Home
last modified time | relevance | path

Searched refs:md_ctrl (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.1/drivers/net/wwan/t7xx/
Dt7xx_hif_cldma.c62 static void md_cd_queue_struct_reset(struct cldma_queue *queue, struct cldma_ctrl *md_ctrl, in md_cd_queue_struct_reset() argument
67 queue->md_ctrl = md_ctrl; in md_cd_queue_struct_reset()
73 static void md_cd_queue_struct_init(struct cldma_queue *queue, struct cldma_ctrl *md_ctrl, in md_cd_queue_struct_init() argument
76 md_cd_queue_struct_reset(queue, md_ctrl, tx_rx, index); in md_cd_queue_struct_init()
93 static int t7xx_cldma_alloc_and_map_skb(struct cldma_ctrl *md_ctrl, struct cldma_request *req, in t7xx_cldma_alloc_and_map_skb() argument
100 req->mapped_buff = dma_map_single(md_ctrl->dev, req->skb->data, size, DMA_FROM_DEVICE); in t7xx_cldma_alloc_and_map_skb()
101 if (dma_mapping_error(md_ctrl->dev, req->mapped_buff)) { in t7xx_cldma_alloc_and_map_skb()
105 dev_err(md_ctrl->dev, "DMA mapping failed\n"); in t7xx_cldma_alloc_and_map_skb()
114 struct cldma_ctrl *md_ctrl = queue->md_ctrl; in t7xx_cldma_gpd_rx_from_q() local
121 hw_info = &md_ctrl->hw_info; in t7xx_cldma_gpd_rx_from_q()
[all …]
Dt7xx_hif_cldma.h73 struct cldma_ctrl *md_ctrl; member
114 void t7xx_cldma_hif_hw_init(struct cldma_ctrl *md_ctrl);
115 int t7xx_cldma_init(struct cldma_ctrl *md_ctrl);
116 void t7xx_cldma_exit(struct cldma_ctrl *md_ctrl);
117 void t7xx_cldma_switch_cfg(struct cldma_ctrl *md_ctrl);
118 void t7xx_cldma_start(struct cldma_ctrl *md_ctrl);
119 int t7xx_cldma_stop(struct cldma_ctrl *md_ctrl);
120 void t7xx_cldma_reset(struct cldma_ctrl *md_ctrl);
121 void t7xx_cldma_set_recv_skb(struct cldma_ctrl *md_ctrl,
123 int t7xx_cldma_send_skb(struct cldma_ctrl *md_ctrl, int qno, struct sk_buff *skb);
[all …]
Dt7xx_modem_ops.c259 static void t7xx_cldma_exception(struct cldma_ctrl *md_ctrl, enum hif_ex_stage stage) in t7xx_cldma_exception() argument
263 t7xx_cldma_stop_all_qs(md_ctrl, MTK_TX); in t7xx_cldma_exception()
264 t7xx_cldma_clear_all_qs(md_ctrl, MTK_TX); in t7xx_cldma_exception()
271 t7xx_cldma_stop_all_qs(md_ctrl, MTK_RX); in t7xx_cldma_exception()
272 t7xx_cldma_stop(md_ctrl); in t7xx_cldma_exception()
274 if (md_ctrl->hif_id == CLDMA_ID_MD) in t7xx_cldma_exception()
275 t7xx_cldma_hw_reset(md_ctrl->t7xx_dev->base_addr.infracfg_ao_base); in t7xx_cldma_exception()
277 t7xx_cldma_clear_all_qs(md_ctrl, MTK_RX); in t7xx_cldma_exception()
281 t7xx_cldma_hw_init(&md_ctrl->hw_info); in t7xx_cldma_exception()
282 t7xx_cldma_start(md_ctrl); in t7xx_cldma_exception()
[all …]
Dt7xx_port_proxy.c200 struct cldma_ctrl *md_ctrl; in t7xx_port_send_raw_skb() local
203 md_ctrl = port->t7xx_dev->md->md_ctrl[path_id]; in t7xx_port_send_raw_skb()
205 ret = t7xx_cldma_send_skb(md_ctrl, tx_qno, skb); in t7xx_port_send_raw_skb()
325 if (queue->md_ctrl->hif_id == port_conf->path_id && in t7xx_port_proxy_find_port()
345 struct t7xx_pci_dev *t7xx_dev = queue->md_ctrl->t7xx_dev; in t7xx_port_proxy_recv_skb()
347 struct device *dev = queue->md_ctrl->dev; in t7xx_port_proxy_recv_skb()
472 t7xx_cldma_set_recv_skb(md->md_ctrl[CLDMA_ID_MD], t7xx_port_proxy_recv_skb); in t7xx_port_proxy_init()
Dt7xx_state_monitor.c230 struct cldma_ctrl *md_ctrl; in fsm_routine_stopping() local
238 md_ctrl = ctl->md->md_ctrl[CLDMA_ID_MD]; in fsm_routine_stopping()
243 t7xx_cldma_stop(md_ctrl); in fsm_routine_stopping()
338 t7xx_cldma_hif_hw_init(md->md_ctrl[CLDMA_ID_MD]); in fsm_routine_start()
Dt7xx_modem_ops.h66 struct cldma_ctrl *md_ctrl[CLDMA_NUM]; member