Searched refs:md_ctrl (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/drivers/net/wwan/t7xx/ |
H A D | t7xx_hif_cldma.c | 62 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 …]
|
H A D | t7xx_hif_cldma.h | 73 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 …]
|
H A D | t7xx_modem_ops.c | 260 static void t7xx_cldma_exception(struct cldma_ctrl *md_ctrl, enum hif_ex_stage stage) in t7xx_cldma_exception() argument 264 t7xx_cldma_stop_all_qs(md_ctrl, MTK_TX); in t7xx_cldma_exception() 265 t7xx_cldma_clear_all_qs(md_ctrl, MTK_TX); in t7xx_cldma_exception() 272 t7xx_cldma_stop_all_qs(md_ctrl, MTK_RX); in t7xx_cldma_exception() 273 t7xx_cldma_stop(md_ctrl); in t7xx_cldma_exception() 275 if (md_ctrl->hif_id == CLDMA_ID_MD) in t7xx_cldma_exception() 276 t7xx_cldma_hw_reset(md_ctrl->t7xx_dev->base_addr.infracfg_ao_base); in t7xx_cldma_exception() 278 t7xx_cldma_clear_all_qs(md_ctrl, MTK_RX); in t7xx_cldma_exception() 282 t7xx_cldma_hw_init(&md_ctrl->hw_info); in t7xx_cldma_exception() 283 t7xx_cldma_start(md_ctrl); in t7xx_cldma_exception() [all …]
|
H A D | t7xx_port_proxy.c | 220 struct cldma_ctrl *md_ctrl; in t7xx_port_send_raw_skb() local 223 md_ctrl = port->t7xx_dev->md->md_ctrl[path_id]; in t7xx_port_send_raw_skb() 225 ret = t7xx_cldma_send_skb(md_ctrl, tx_qno, skb); in t7xx_port_send_raw_skb() 345 if (queue->md_ctrl->hif_id == port_conf->path_id && in t7xx_port_proxy_find_port() 365 struct t7xx_pci_dev *t7xx_dev = queue->md_ctrl->t7xx_dev; in t7xx_port_proxy_recv_skb() 367 struct device *dev = queue->md_ctrl->dev; in t7xx_port_proxy_recv_skb() 495 t7xx_cldma_set_recv_skb(md->md_ctrl[CLDMA_ID_AP], t7xx_port_proxy_recv_skb); in t7xx_port_proxy_init() 496 t7xx_cldma_set_recv_skb(md->md_ctrl[CLDMA_ID_MD], t7xx_port_proxy_recv_skb); in t7xx_port_proxy_init()
|
H A D | t7xx_state_monitor.c | 237 struct cldma_ctrl *md_ctrl; in fsm_routine_stopping() local 245 md_ctrl = ctl->md->md_ctrl[CLDMA_ID_MD]; in fsm_routine_stopping() 250 t7xx_cldma_stop(md_ctrl); in fsm_routine_stopping() 353 t7xx_cldma_hif_hw_init(md->md_ctrl[CLDMA_ID_AP]); in fsm_routine_start() 354 t7xx_cldma_hif_hw_init(md->md_ctrl[CLDMA_ID_MD]); in fsm_routine_start()
|
H A D | t7xx_modem_ops.h | 66 struct cldma_ctrl *md_ctrl[CLDMA_NUM]; member
|