Searched refs:md_ctrl (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/net/wwan/t7xx/ |
H A D | t7xx_hif_cldma.c | 60 static void md_cd_queue_struct_reset(struct cldma_queue *queue, struct cldma_ctrl *md_ctrl, in md_cd_queue_struct_reset() argument 65 queue->md_ctrl = md_ctrl; in md_cd_queue_struct_reset() 71 static void md_cd_queue_struct_init(struct cldma_queue *queue, struct cldma_ctrl *md_ctrl, in md_cd_queue_struct_init() argument 74 md_cd_queue_struct_reset(queue, md_ctrl, tx_rx, index); in md_cd_queue_struct_init() 91 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 98 req->mapped_buff = dma_map_single(md_ctrl->dev, req->skb->data, size, DMA_FROM_DEVICE); in t7xx_cldma_alloc_and_map_skb() 99 if (dma_mapping_error(md_ctrl->dev, req->mapped_buff)) { in t7xx_cldma_alloc_and_map_skb() 103 dev_err(md_ctrl->dev, "DMA mapping failed\n"); in t7xx_cldma_alloc_and_map_skb() 112 struct cldma_ctrl *md_ctrl = queue->md_ctrl; in t7xx_cldma_gpd_rx_from_q() local 119 hw_info = &md_ctrl->hw_info; in t7xx_cldma_gpd_rx_from_q() [all …]
|
H A D | t7xx_hif_cldma.h | 82 struct cldma_ctrl *md_ctrl; member 122 void t7xx_cldma_hif_hw_init(struct cldma_ctrl *md_ctrl); 123 int t7xx_cldma_init(struct cldma_ctrl *md_ctrl); 124 void t7xx_cldma_exit(struct cldma_ctrl *md_ctrl); 125 void t7xx_cldma_switch_cfg(struct cldma_ctrl *md_ctrl, enum cldma_cfg cfg_id); 126 void t7xx_cldma_start(struct cldma_ctrl *md_ctrl); 127 int t7xx_cldma_stop(struct cldma_ctrl *md_ctrl); 128 void t7xx_cldma_reset(struct cldma_ctrl *md_ctrl); 131 int t7xx_cldma_send_skb(struct cldma_ctrl *md_ctrl, int qno, struct sk_buff *skb); 132 void t7xx_cldma_stop_all_qs(struct cldma_ctrl *md_ctrl, enum mtk_txrx tx_rx); [all …]
|
H A D | t7xx_modem_ops.c | 300 static void t7xx_cldma_exception(struct cldma_ctrl *md_ctrl, enum hif_ex_stage stage) in t7xx_cldma_exception() argument 304 t7xx_cldma_stop_all_qs(md_ctrl, MTK_TX); in t7xx_cldma_exception() 305 t7xx_cldma_clear_all_qs(md_ctrl, MTK_TX); in t7xx_cldma_exception() 312 t7xx_cldma_stop_all_qs(md_ctrl, MTK_RX); in t7xx_cldma_exception() 313 t7xx_cldma_stop(md_ctrl); in t7xx_cldma_exception() 315 if (md_ctrl->hif_id == CLDMA_ID_MD) in t7xx_cldma_exception() 316 t7xx_cldma_hw_reset(md_ctrl->t7xx_dev->base_addr.infracfg_ao_base); in t7xx_cldma_exception() 318 t7xx_cldma_clear_all_qs(md_ctrl, MTK_RX); in t7xx_cldma_exception() 322 t7xx_cldma_hw_init(&md_ctrl->hw_info); in t7xx_cldma_exception() 323 t7xx_cldma_start(md_ctrl); in t7xx_cldma_exception() [all …]
|
H A D | t7xx_state_monitor.c | 219 struct cldma_ctrl *md_ctrl; in t7xx_lk_stage_event_handling() local 233 md_ctrl = md->md_ctrl[CLDMA_ID_AP]; in t7xx_lk_stage_event_handling() 234 t7xx_cldma_hif_hw_init(md_ctrl); in t7xx_lk_stage_event_handling() 235 t7xx_cldma_stop(md_ctrl); in t7xx_lk_stage_event_handling() 236 t7xx_cldma_switch_cfg(md_ctrl, CLDMA_DEDICATED_Q_CFG); in t7xx_lk_stage_event_handling() 241 t7xx_cldma_start(md_ctrl); in t7xx_lk_stage_event_handling() 281 struct cldma_ctrl *md_ctrl = ctl->md->md_ctrl[CLDMA_ID_MD]; in fsm_routine_stopping() local 291 t7xx_cldma_stop(md_ctrl); in fsm_routine_stopping() 411 t7xx_cldma_hif_hw_init(md->md_ctrl[CLDMA_ID_AP]); in fsm_routine_start() 412 t7xx_cldma_hif_hw_init(md->md_ctrl[CLDMA_ID_MD]); in fsm_routine_start()
|
H A D | t7xx_port_proxy.c | 260 struct cldma_ctrl *md_ctrl; in t7xx_get_port_mtu() local 262 md_ctrl = port->t7xx_dev->md->md_ctrl[path_id]; in t7xx_get_port_mtu() 263 return md_ctrl->tx_ring[tx_qno].pkt_size; in t7xx_get_port_mtu() 269 struct cldma_ctrl *md_ctrl; in t7xx_port_send_raw_skb() local 272 md_ctrl = port->t7xx_dev->md->md_ctrl[path_id]; in t7xx_port_send_raw_skb() 274 ret = t7xx_cldma_send_skb(md_ctrl, tx_qno, skb); in t7xx_port_send_raw_skb() 392 struct t7xx_pci_dev *t7xx_dev = queue->md_ctrl->t7xx_dev; in t7xx_port_proxy_recv_skb_from_dedicated_queue() 427 if (queue->md_ctrl->hif_id == port_conf->path_id && in t7xx_port_proxy_find_port() 447 struct t7xx_pci_dev *t7xx_dev = queue->md_ctrl->t7xx_dev; in t7xx_port_proxy_recv_skb() 449 struct device *dev = queue->md_ctrl->dev; in t7xx_port_proxy_recv_skb()
|
H A D | t7xx_modem_ops.h | 66 struct cldma_ctrl *md_ctrl[CLDMA_NUM]; member
|