Searched refs:dpmaif_ctrl (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/net/wwan/t7xx/ |
H A D | t7xx_hif_dpmaif.c | 58 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 D | t7xx_hif_dpmaif_tx.c | 51 static unsigned int t7xx_dpmaif_update_drb_rd_idx(struct dpmaif_ctrl *dpmaif_ctrl, in t7xx_dpmaif_update_drb_rd_idx() argument 54 struct dpmaif_tx_queue *txq = &dpmaif_ctrl->txq[q_num]; in t7xx_dpmaif_update_drb_rd_idx() 62 new_hw_rd_idx = t7xx_dpmaif_ul_get_rd_idx(&dpmaif_ctrl->hw_info, q_num); in t7xx_dpmaif_update_drb_rd_idx() 64 dev_err(dpmaif_ctrl->dev, "Out of range read index: %u\n", new_hw_rd_idx); in t7xx_dpmaif_update_drb_rd_idx() 80 static unsigned int t7xx_dpmaif_release_tx_buffer(struct dpmaif_ctrl *dpmaif_ctrl, in t7xx_dpmaif_release_tx_buffer() argument 83 struct dpmaif_tx_queue *txq = &dpmaif_ctrl->txq[q_num]; in t7xx_dpmaif_release_tx_buffer() 84 struct dpmaif_callbacks *cb = dpmaif_ctrl->callbacks; in t7xx_dpmaif_release_tx_buffer() 103 dma_unmap_single(dpmaif_ctrl->dev, cur_drb_skb->bus_addr, in t7xx_dpmaif_release_tx_buffer() 108 dev_err(dpmaif_ctrl->dev, in t7xx_dpmaif_release_tx_buffer() 125 cb->state_notify(dpmaif_ctrl->t7xx_dev, DMPAIF_TXQ_STATE_IRQ, txq->index); in t7xx_dpmaif_release_tx_buffer() [all …]
|
H A D | t7xx_hif_dpmaif_rx.c | 80 static int t7xx_dpmaif_update_bat_wr_idx(struct dpmaif_ctrl *dpmaif_ctrl, in t7xx_dpmaif_update_bat_wr_idx() argument 83 struct dpmaif_rx_queue *rxq = &dpmaif_ctrl->rxq[q_num]; in t7xx_dpmaif_update_bat_wr_idx() 88 dev_err(dpmaif_ctrl->dev, "RX queue %d has not been started\n", rxq->index); in t7xx_dpmaif_update_bat_wr_idx() 109 dev_err(dpmaif_ctrl->dev, "RX BAT flow check fail\n"); in t7xx_dpmaif_update_bat_wr_idx() 113 static bool t7xx_alloc_and_map_skb_info(const struct dpmaif_ctrl *dpmaif_ctrl, in t7xx_alloc_and_map_skb_info() argument 123 data_bus_addr = dma_map_single(dpmaif_ctrl->dev, skb->data, size, DMA_FROM_DEVICE); in t7xx_alloc_and_map_skb_info() 124 if (dma_mapping_error(dpmaif_ctrl->dev, data_bus_addr)) { in t7xx_alloc_and_map_skb_info() 125 dev_err_ratelimited(dpmaif_ctrl->dev, "DMA mapping error\n"); in t7xx_alloc_and_map_skb_info() 164 int t7xx_dpmaif_rx_buf_alloc(struct dpmaif_ctrl *dpmaif_ctrl, in t7xx_dpmaif_rx_buf_alloc() argument 195 !t7xx_alloc_and_map_skb_info(dpmaif_ctrl, bat_req->pkt_buf_sz, cur_skb)) in t7xx_dpmaif_rx_buf_alloc() [all …]
|
H A D | t7xx_hif_dpmaif_rx.h | 99 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 D | t7xx_hif_dpmaif_tx.h | 68 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 D | t7xx_hif_dpmaif.h | 115 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 D | t7xx_netdev.h | 44 struct dpmaif_ctrl *hif_ctrl;
|
H A D | t7xx_netdev.c | 49 struct dpmaif_ctrl *ctrl; in t7xx_ccmni_enable_napi()
|