Home
last modified time | relevance | path

Searched refs:dpmaif_ctrl (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_dpmaif.c58 static void t7xx_dpmaif_enable_irq(struct dpmaif_ctrl *dpmaif_ctrl) in t7xx_dpmaif_enable_irq() argument
63 for (i = 0; i < ARRAY_SIZE(dpmaif_ctrl->isr_para); i++) { in t7xx_dpmaif_enable_irq()
64 isr_para = &dpmaif_ctrl->isr_para[i]; in t7xx_dpmaif_enable_irq()
65 t7xx_pcie_mac_set_int(dpmaif_ctrl->t7xx_dev, isr_para->pcie_int); in t7xx_dpmaif_enable_irq()
69 static void t7xx_dpmaif_disable_irq(struct dpmaif_ctrl *dpmaif_ctrl) in t7xx_dpmaif_disable_irq() argument
74 for (i = 0; i < ARRAY_SIZE(dpmaif_ctrl->isr_para); i++) { in t7xx_dpmaif_disable_irq()
75 isr_para = &dpmaif_ctrl->isr_para[i]; in t7xx_dpmaif_disable_irq()
76 t7xx_pcie_mac_clear_int(dpmaif_ctrl->t7xx_dev, isr_para->pcie_int); in t7xx_dpmaif_disable_irq()
82 struct dpmaif_ctrl *dpmaif_ctrl = isr_para->dpmaif_ctrl; in t7xx_dpmaif_irq_cb() local
84 struct device *dev = dpmaif_ctrl->dev; in t7xx_dpmaif_irq_cb()
[all …]
H A Dt7xx_hif_dpmaif_rx.c81 static int t7xx_dpmaif_update_bat_wr_idx(struct dpmaif_ctrl *dpmaif_ctrl, in t7xx_dpmaif_update_bat_wr_idx() argument
84 struct dpmaif_rx_queue *rxq = &dpmaif_ctrl->rxq[q_num]; in t7xx_dpmaif_update_bat_wr_idx()
89 dev_err(dpmaif_ctrl->dev, "RX queue %d has not been started\n", rxq->index); in t7xx_dpmaif_update_bat_wr_idx()
110 dev_err(dpmaif_ctrl->dev, "RX BAT flow check fail\n"); in t7xx_dpmaif_update_bat_wr_idx()
114 static bool t7xx_alloc_and_map_skb_info(const struct dpmaif_ctrl *dpmaif_ctrl, in t7xx_alloc_and_map_skb_info() argument
124 data_bus_addr = dma_map_single(dpmaif_ctrl->dev, skb->data, size, DMA_FROM_DEVICE); in t7xx_alloc_and_map_skb_info()
125 if (dma_mapping_error(dpmaif_ctrl->dev, data_bus_addr)) { in t7xx_alloc_and_map_skb_info()
126 dev_err_ratelimited(dpmaif_ctrl->dev, "DMA mapping error\n"); in t7xx_alloc_and_map_skb_info()
165 int t7xx_dpmaif_rx_buf_alloc(struct dpmaif_ctrl *dpmaif_ctrl, in t7xx_dpmaif_rx_buf_alloc() argument
196 !t7xx_alloc_and_map_skb_info(dpmaif_ctrl, bat_req->pkt_buf_sz, cur_skb)) in t7xx_dpmaif_rx_buf_alloc()
[all …]
H A Dt7xx_hif_dpmaif_rx.h99 void t7xx_dpmaif_rx_clear(struct dpmaif_ctrl *dpmaif_ctrl);
100 int t7xx_dpmaif_bat_rel_wq_alloc(struct dpmaif_ctrl *dpmaif_ctrl);
101 int t7xx_dpmaif_rx_buf_alloc(struct dpmaif_ctrl *dpmaif_ctrl,
105 int t7xx_dpmaif_rx_frag_alloc(struct dpmaif_ctrl *dpmaif_ctrl, struct dpmaif_bat_request *bat_req,
107 void t7xx_dpmaif_rx_stop(struct dpmaif_ctrl *dpmaif_ctrl);
108 void t7xx_dpmaif_irq_rx_done(struct dpmaif_ctrl *dpmaif_ctrl, const unsigned int que_mask);
110 void t7xx_dpmaif_bat_wq_rel(struct dpmaif_ctrl *dpmaif_ctrl);
111 int t7xx_dpmaif_bat_alloc(const struct dpmaif_ctrl *dpmaif_ctrl, struct dpmaif_bat_request *bat_req,
113 void t7xx_dpmaif_bat_free(const struct dpmaif_ctrl *dpmaif_ctrl,
H A Dt7xx_hif_dpmaif_tx.h68 int t7xx_dpmaif_tx_send_skb(struct dpmaif_ctrl *dpmaif_ctrl, unsigned int txq_number,
70 void t7xx_dpmaif_tx_thread_rel(struct dpmaif_ctrl *dpmaif_ctrl);
71 int t7xx_dpmaif_tx_thread_init(struct dpmaif_ctrl *dpmaif_ctrl);
73 void t7xx_dpmaif_irq_tx_done(struct dpmaif_ctrl *dpmaif_ctrl, unsigned int que_mask);
75 void t7xx_dpmaif_tx_stop(struct dpmaif_ctrl *dpmaif_ctrl);
76 void t7xx_dpmaif_tx_clear(struct dpmaif_ctrl *dpmaif_ctrl);
H A Dt7xx_hif_dpmaif.h115 struct dpmaif_ctrl *dpmaif_ctrl; member
140 struct dpmaif_ctrl *dpmaif_ctrl; member
145 struct dpmaif_ctrl *dpmaif_ctrl; member
170 struct dpmaif_ctrl { struct
194 struct dpmaif_ctrl *t7xx_dpmaif_hif_init(struct t7xx_pci_dev *t7xx_dev, argument
196 void t7xx_dpmaif_hif_exit(struct dpmaif_ctrl *dpmaif_ctrl);
197 int t7xx_dpmaif_md_state_callback(struct dpmaif_ctrl *dpmaif_ctrl, enum md_state state);
H A Dt7xx_netdev.h44 struct dpmaif_ctrl *hif_ctrl;
H A Dt7xx_netdev.c49 struct dpmaif_ctrl *ctrl; in t7xx_ccmni_enable_napi()