Home
last modified time | relevance | path

Searched refs:t7xx_dev (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/drivers/net/wwan/t7xx/
H A Dt7xx_pci.c117 t7xx_mhccif_mask_clr(t7xx_dev, in t7xx_pci_pm_init_late()
148 t7xx_wait_pm_config(t7xx_dev); in t7xx_pci_pm_exp_detected()
277 struct t7xx_pci_dev *t7xx_dev; in __t7xx_pci_pm_suspend() local
372 t7xx_mhccif_init(t7xx_dev); in t7xx_pcie_reinit()
673 t7xx_dev->base_addr.infracfg_ao_base = t7xx_dev->base_addr.pcie_ext_reg_base + in t7xx_pci_infracfg_ao_calc()
683 t7xx_dev = devm_kzalloc(&pdev->dev, sizeof(*t7xx_dev), GFP_KERNEL); in t7xx_pci_probe()
684 if (!t7xx_dev) in t7xx_pci_probe()
688 t7xx_dev->pdev = pdev; in t7xx_pci_probe()
724 t7xx_mhccif_init(t7xx_dev); in t7xx_pci_probe()
734 t7xx_md_exit(t7xx_dev); in t7xx_pci_probe()
[all …]
H A Dt7xx_mhccif.c39 t7xx_mhccif_read_sw_int_sts(t7xx_dev); in t7xx_mhccif_clear_interrupts()
46 struct t7xx_pci_dev *t7xx_dev = data; in t7xx_mhccif_isr_thread() local
52 int_status = t7xx_mhccif_read_sw_int_sts(t7xx_dev); in t7xx_mhccif_isr_thread()
54 int ret = t7xx_pci_mhccif_isr(t7xx_dev); in t7xx_mhccif_isr_thread()
60 t7xx_mhccif_clear_interrupts(t7xx_dev, int_status); in t7xx_mhccif_isr_thread()
63 complete_all(&t7xx_dev->sleep_lock_acquire); in t7xx_mhccif_isr_thread()
66 complete(&t7xx_dev->pm_sr_ack); in t7xx_mhccif_isr_thread()
70 int_status = t7xx_mhccif_read_sw_int_sts(t7xx_dev); in t7xx_mhccif_isr_thread()
76 t7xx_pcie_mac_set_int(t7xx_dev, MHCCIF_INT); in t7xx_mhccif_isr_thread()
107 t7xx_dev->base_addr.mhccif_rc_base = t7xx_dev->base_addr.pcie_ext_reg_base + in t7xx_mhccif_init()
[all …]
H A Dt7xx_modem_ops.c188 t7xx_acpi_fldr_func(t7xx_dev); in t7xx_reset_device_via_pmic()
205 t7xx_clear_rgu_irq(t7xx_dev); in t7xx_rgu_isr_handler()
206 if (!t7xx_dev->rgu_pci_irq_en) in t7xx_rgu_isr_handler()
209 modem = t7xx_dev->md; in t7xx_rgu_isr_handler()
223 t7xx_dev->callback_param[SAP_RGU_INT] = t7xx_dev; in t7xx_pcie_register_rgu_isr()
293 struct t7xx_pci_dev *t7xx_dev = md->t7xx_dev; in t7xx_md_exception() local
647 md->t7xx_dev = t7xx_dev; in t7xx_md_alloc()
648 t7xx_dev->md = md; in t7xx_md_alloc()
698 md = t7xx_md_alloc(t7xx_dev); in t7xx_md_init()
748 t7xx_ccmni_exit(t7xx_dev); in t7xx_md_init()
[all …]
H A Dt7xx_pcie_mac.c84 struct device *dev = &t7xx_dev->pdev->dev; in t7xx_pcie_mac_atr_cfg()
85 void __iomem *pbase = IREG_BASE(t7xx_dev); in t7xx_pcie_mac_atr_cfg()
142 t7xx_pcie_mac_atr_tables_dis(IREG_BASE(t7xx_dev), i); in t7xx_pcie_mac_atr_init()
153 t7xx_pcie_mac_atr_cfg(t7xx_dev, &cfg); in t7xx_pcie_mac_atr_init()
167 t7xx_pcie_mac_atr_cfg(t7xx_dev, &cfg); in t7xx_pcie_mac_atr_init()
182 value = ioread32(IREG_BASE(t7xx_dev) + ISTAT_HST_CTRL); in t7xx_pcie_mac_enable_disable_int()
189 iowrite32(value, IREG_BASE(t7xx_dev) + ISTAT_HST_CTRL); in t7xx_pcie_mac_enable_disable_int()
194 t7xx_pcie_mac_enable_disable_int(t7xx_dev, true); in t7xx_pcie_mac_interrupts_en()
199 t7xx_pcie_mac_enable_disable_int(t7xx_dev, false); in t7xx_pcie_mac_interrupts_dis()
227 t7xx_pcie_mac_clear_set_int(t7xx_dev, int_type, true); in t7xx_pcie_mac_clear_int()
[all …]
H A Dt7xx_pcie_mac.h21 #define IREG_BASE(t7xx_dev) ((t7xx_dev)->base_addr.pcie_mac_ireg_base) argument
23 void t7xx_pcie_mac_interrupts_en(struct t7xx_pci_dev *t7xx_dev);
24 void t7xx_pcie_mac_interrupts_dis(struct t7xx_pci_dev *t7xx_dev);
25 void t7xx_pcie_mac_atr_init(struct t7xx_pci_dev *t7xx_dev);
26 void t7xx_pcie_mac_clear_int(struct t7xx_pci_dev *t7xx_dev, enum t7xx_int int_type);
27 void t7xx_pcie_mac_set_int(struct t7xx_pci_dev *t7xx_dev, enum t7xx_int int_type);
28 void t7xx_pcie_mac_clear_int_status(struct t7xx_pci_dev *t7xx_dev, enum t7xx_int int_type);
29 void t7xx_pcie_set_mac_msix_cfg(struct t7xx_pci_dev *t7xx_dev, unsigned int irq_count);
H A Dt7xx_pci.h108 int (*suspend)(struct t7xx_pci_dev *t7xx_dev, void *entity_param);
109 void (*suspend_late)(struct t7xx_pci_dev *t7xx_dev, void *entity_param);
110 void (*resume_early)(struct t7xx_pci_dev *t7xx_dev, void *entity_param);
111 int (*resume)(struct t7xx_pci_dev *t7xx_dev, void *entity_param);
116 void t7xx_pci_disable_sleep(struct t7xx_pci_dev *t7xx_dev);
117 void t7xx_pci_enable_sleep(struct t7xx_pci_dev *t7xx_dev);
118 int t7xx_pci_sleep_disable_complete(struct t7xx_pci_dev *t7xx_dev);
119 int t7xx_pci_pm_entity_register(struct t7xx_pci_dev *t7xx_dev, struct md_pm_entity *pm_entity);
120 int t7xx_pci_pm_entity_unregister(struct t7xx_pci_dev *t7xx_dev, struct md_pm_entity *pm_entity);
121 void t7xx_pci_pm_init_late(struct t7xx_pci_dev *t7xx_dev);
[all …]
H A Dt7xx_mhccif.h31 void t7xx_mhccif_mask_set(struct t7xx_pci_dev *t7xx_dev, u32 val);
32 void t7xx_mhccif_mask_clr(struct t7xx_pci_dev *t7xx_dev, u32 val);
33 u32 t7xx_mhccif_mask_get(struct t7xx_pci_dev *t7xx_dev);
34 void t7xx_mhccif_init(struct t7xx_pci_dev *t7xx_dev);
35 u32 t7xx_mhccif_read_sw_int_sts(struct t7xx_pci_dev *t7xx_dev);
36 void t7xx_mhccif_h2d_swint_trigger(struct t7xx_pci_dev *t7xx_dev, u32 channel);
H A Dt7xx_modem_ops.h67 struct t7xx_pci_dev *t7xx_dev; member
83 int t7xx_md_reset(struct t7xx_pci_dev *t7xx_dev);
84 int t7xx_md_init(struct t7xx_pci_dev *t7xx_dev);
85 void t7xx_md_exit(struct t7xx_pci_dev *t7xx_dev);
86 void t7xx_clear_rgu_irq(struct t7xx_pci_dev *t7xx_dev);
87 int t7xx_acpi_fldr_func(struct t7xx_pci_dev *t7xx_dev);
88 int t7xx_pci_mhccif_isr(struct t7xx_pci_dev *t7xx_dev);
H A Dt7xx_hif_dpmaif.c65 t7xx_pcie_mac_set_int(dpmaif_ctrl->t7xx_dev, isr_para->pcie_int); in t7xx_dpmaif_enable_irq()
187 struct t7xx_pci_dev *t7xx_dev = dpmaif_ctrl->t7xx_dev; in t7xx_dpmaif_register_pcie_irq() local
197 t7xx_pcie_mac_clear_int(t7xx_dev, int_type); in t7xx_dpmaif_register_pcie_irq()
199 t7xx_dev->intr_handler[int_type] = t7xx_dpmaif_isr_handler; in t7xx_dpmaif_register_pcie_irq()
200 t7xx_dev->intr_thread[int_type] = t7xx_dpmaif_isr_thread; in t7xx_dpmaif_register_pcie_irq()
201 t7xx_dev->callback_param[int_type] = isr_para; in t7xx_dpmaif_register_pcie_irq()
203 t7xx_pcie_mac_clear_int_status(t7xx_dev, int_type); in t7xx_dpmaif_register_pcie_irq()
204 t7xx_pcie_mac_set_int(t7xx_dev, int_type); in t7xx_dpmaif_register_pcie_irq()
538 struct device *dev = &t7xx_dev->pdev->dev; in t7xx_dpmaif_hif_init()
549 dpmaif_ctrl->t7xx_dev = t7xx_dev; in t7xx_dpmaif_hif_init()
[all …]
H A Dt7xx_netdev.c394 struct t7xx_ccmni_ctrl *ctlb = t7xx_dev->ccmni_ctlb; in init_md_status_notifier()
402 t7xx_fsm_notifier_register(t7xx_dev->md, md_status_notifier); in init_md_status_notifier()
463 struct t7xx_ccmni_ctrl *ctlb = t7xx_dev->ccmni_ctlb; in t7xx_ccmni_queue_state_notify()
479 int t7xx_ccmni_init(struct t7xx_pci_dev *t7xx_dev) in t7xx_ccmni_init() argument
481 struct device *dev = &t7xx_dev->pdev->dev; in t7xx_ccmni_init()
488 t7xx_dev->ccmni_ctlb = ctlb; in t7xx_ccmni_init()
489 ctlb->t7xx_dev = t7xx_dev; in t7xx_ccmni_init()
499 init_md_status_notifier(t7xx_dev); in t7xx_ccmni_init()
503 void t7xx_ccmni_exit(struct t7xx_pci_dev *t7xx_dev) in t7xx_ccmni_exit() argument
505 struct t7xx_ccmni_ctrl *ctlb = t7xx_dev->ccmni_ctlb; in t7xx_ccmni_exit()
[all …]
H A Dt7xx_state_monitor.c118 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; in fsm_flush_event_cmd_qs()
172 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; in fsm_routine_exception()
191 t7xx_pci_pm_exp_detected(ctl->md->t7xx_dev); in fsm_routine_exception()
214 return t7xx_md_reset(ctl->md->t7xx_dev); in fsm_stopped_handler()
229 struct t7xx_pci_dev *t7xx_dev; in fsm_routine_stopping() local
239 t7xx_dev = ctl->md->t7xx_dev; in fsm_routine_stopping()
250 err = t7xx_acpi_fldr_func(t7xx_dev); in fsm_routine_stopping()
291 dev = &md->t7xx_dev->pdev->dev; in fsm_routine_starting()
312 t7xx_pci_pm_init_late(md->t7xx_dev); in fsm_routine_starting()
339 struct device *dev = &md->t7xx_dev->pdev->dev; in fsm_routine_start()
[all …]
H A Dt7xx_port_proxy.c154 struct t7xx_fsm_ctl *ctl = port->t7xx_dev->md->fsm_ctl; in t7xx_port_get_queue_no()
223 md_ctrl = port->t7xx_dev->md->md_ctrl[path_id]; in t7xx_port_send_raw_skb()
277 struct t7xx_fsm_ctl *ctl = port->t7xx_dev->md->fsm_ctl; in t7xx_port_send_skb()
332 static struct t7xx_port *t7xx_port_proxy_find_port(struct t7xx_pci_dev *t7xx_dev, in t7xx_port_proxy_find_port() argument
335 struct port_proxy *port_prox = t7xx_dev->md->port_prox; in t7xx_port_proxy_find_port()
365 struct t7xx_pci_dev *t7xx_dev = queue->md_ctrl->t7xx_dev; in t7xx_port_proxy_recv_skb() local
366 struct t7xx_fsm_ctl *ctl = t7xx_dev->md->fsm_ctl; in t7xx_port_proxy_recv_skb()
379 port = t7xx_port_proxy_find_port(t7xx_dev, queue, channel); in t7xx_port_proxy_recv_skb()
442 port->t7xx_dev = md->t7xx_dev; in t7xx_proxy_init_all_ports()
443 port->dev = &md->t7xx_dev->pdev->dev; in t7xx_proxy_init_all_ports()
[all …]
H A Dt7xx_netdev.h43 struct t7xx_pci_dev *t7xx_dev; member
57 int t7xx_ccmni_init(struct t7xx_pci_dev *t7xx_dev);
58 void t7xx_ccmni_exit(struct t7xx_pci_dev *t7xx_dev);
H A Dt7xx_hif_cldma.c937 t7xx_pci_disable_sleep(md_ctrl->t7xx_dev); in t7xx_cldma_send_skb()
959 if (!t7xx_pci_sleep_disable_complete(md_ctrl->t7xx_dev)) { in t7xx_cldma_send_skb()
976 if (!t7xx_pci_sleep_disable_complete(md_ctrl->t7xx_dev)) { in t7xx_cldma_send_skb()
991 t7xx_pci_enable_sleep(md_ctrl->t7xx_dev); in t7xx_cldma_send_skb()
1096 struct device *dev = &t7xx_dev->pdev->dev; in t7xx_cldma_alloc()
1103 md_ctrl->t7xx_dev = t7xx_dev; in t7xx_cldma_alloc()
1108 t7xx_dev->md->md_ctrl[hif_id] = md_ctrl; in t7xx_cldma_alloc()
1149 t7xx_mhccif_mask_clr(t7xx_dev, D2H_SW_INT_MASK); in t7xx_cldma_resume()
1179 t7xx_mhccif_mask_set(t7xx_dev, D2H_SW_INT_MASK); in t7xx_cldma_suspend()
1246 t7xx_pcie_mac_clear_int(md_ctrl->t7xx_dev, interrupt); in t7xx_cldma_isr_handler()
[all …]
H A Dt7xx_hif_dpmaif.h164 void (*state_notify)(struct t7xx_pci_dev *t7xx_dev,
172 struct t7xx_pci_dev *t7xx_dev; member
194 struct dpmaif_ctrl *t7xx_dpmaif_hif_init(struct t7xx_pci_dev *t7xx_dev,
H A Dt7xx_hif_dpmaif_tx.c125 cb->state_notify(dpmaif_ctrl->t7xx_dev, DMPAIF_TXQ_STATE_IRQ, txq->index); in t7xx_dpmaif_release_tx_buffer()
170 t7xx_pci_disable_sleep(dpmaif_ctrl->t7xx_dev); in t7xx_dpmaif_tx_done()
171 if (t7xx_pci_sleep_disable_complete(dpmaif_ctrl->t7xx_dev)) { in t7xx_dpmaif_tx_done()
187 t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); in t7xx_dpmaif_tx_done()
312 cb->state_notify(dpmaif_ctrl->t7xx_dev, DMPAIF_TXQ_STATE_FULL, txq->index); in t7xx_dpmaif_add_skb_to_ring()
432 if (!t7xx_pci_sleep_disable_complete(dpmaif_ctrl->t7xx_dev)) in t7xx_do_tx_hw_push()
468 t7xx_pci_disable_sleep(dpmaif_ctrl->t7xx_dev); in t7xx_dpmaif_tx_hw_push_thread()
470 t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); in t7xx_dpmaif_tx_hw_push_thread()
515 cb->state_notify(dpmaif_ctrl->t7xx_dev, DMPAIF_TXQ_STATE_FULL, txq_number); in t7xx_dpmaif_tx_send_skb()
H A Dt7xx_port_trace.c54 struct dentry *debugfs_dir = port->t7xx_dev->debugfs_dir; in t7xx_trace_port_uninit()
103 port->t7xx_dev->debugfs_dir = debugfs_dir; in t7xx_port_trace_md_state_notify()
H A Dt7xx_hif_cldma.h90 struct t7xx_pci_dev *t7xx_dev; member
113 int t7xx_cldma_alloc(enum cldma_id hif_id, struct t7xx_pci_dev *t7xx_dev);
H A Dt7xx_port_ctrl_msg.c60 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; in fsm_ee_message_handler()
129 struct device *dev = &md->t7xx_dev->pdev->dev; in t7xx_port_enum_msg_handler()
161 struct t7xx_fsm_ctl *ctl = port->t7xx_dev->md->fsm_ctl; in control_msg_handler()
H A Dt7xx_hif_dpmaif_rx.c714 dpmaif_ctrl->callbacks->recv_skb(dpmaif_ctrl->t7xx_dev->ccmni_ctlb, skb, &rxq->napi); in t7xx_dpmaif_rx_skb()
834 struct t7xx_pci_dev *t7xx_dev = rxq->dpmaif_ctrl->t7xx_dev; in t7xx_dpmaif_napi_rx_poll() local
849 t7xx_pci_disable_sleep(t7xx_dev); in t7xx_dpmaif_napi_rx_poll()
851 ret = try_wait_for_completion(&t7xx_dev->sleep_lock_acquire); in t7xx_dpmaif_napi_rx_poll()
878 t7xx_pci_enable_sleep(rxq->dpmaif_ctrl->t7xx_dev); in t7xx_dpmaif_napi_rx_poll()
1070 t7xx_pci_disable_sleep(dpmaif_ctrl->t7xx_dev); in t7xx_dpmaif_bat_release_work()
1074 if (t7xx_pci_sleep_disable_complete(dpmaif_ctrl->t7xx_dev)) { in t7xx_dpmaif_bat_release_work()
1079 t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); in t7xx_dpmaif_bat_release_work()
H A Dt7xx_port.h106 struct t7xx_pci_dev *t7xx_dev; member
H A Dt7xx_port_wwan.c67 ctl = port_private->t7xx_dev->md->fsm_ctl; in t7xx_port_ctrl_tx()