Home
last modified time | relevance | path

Searched refs:dpmaif_ctrl (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/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 in t7xx_dpmaif_disable_irq()
82 struct dpmaif_ctrl *dpmaif_ctrl = isr_para->dpmaif_ctrl; t7xx_dpmaif_irq_cb() local
146 struct dpmaif_ctrl *dpmaif_ctrl; t7xx_dpmaif_isr_handler() local
162 struct dpmaif_ctrl *dpmaif_ctrl = isr_para->dpmaif_ctrl; t7xx_dpmaif_isr_thread() local
169 t7xx_dpmaif_isr_parameter_init(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_isr_parameter_init() argument
185 t7xx_dpmaif_register_pcie_irq(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_register_pcie_irq() argument
208 t7xx_dpmaif_rxtx_sw_allocs(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_rxtx_sw_allocs() argument
279 t7xx_dpmaif_sw_release(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_sw_release() argument
299 t7xx_dpmaif_start(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_start() argument
380 t7xx_dpmaif_stop_sw(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_stop_sw() argument
386 t7xx_dpmaif_stop_hw(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_stop_hw() argument
392 t7xx_dpmaif_stop(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_stop() argument
412 struct dpmaif_ctrl *dpmaif_ctrl = param; t7xx_dpmaif_suspend() local
422 t7xx_dpmaif_unmask_dlq_intr(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_unmask_dlq_intr() argument
430 t7xx_dpmaif_start_txrx_qs(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_start_txrx_qs() argument
449 struct dpmaif_ctrl *dpmaif_ctrl = param; t7xx_dpmaif_resume() local
462 t7xx_dpmaif_pm_entity_init(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_pm_entity_init() argument
482 t7xx_dpmaif_pm_entity_release(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_pm_entity_release() argument
494 t7xx_dpmaif_md_state_callback(struct dpmaif_ctrl *dpmaif_ctrl, enum md_state state) t7xx_dpmaif_md_state_callback() argument
539 struct dpmaif_ctrl *dpmaif_ctrl; t7xx_dpmaif_hif_init() local
575 t7xx_dpmaif_hif_exit(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_hif_exit() argument
[all...]
H A Dt7xx_hif_dpmaif_tx.c51 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 in t7xx_dpmaif_release_tx_buffer()
134 t7xx_dpmaif_tx_release(struct dpmaif_ctrl *dpmaif_ctrl, unsigned int q_num, unsigned int budget) t7xx_dpmaif_tx_release() argument
161 struct dpmaif_ctrl *dpmaif_ctrl = txq->dpmaif_ctrl; t7xx_dpmaif_tx_done() local
192 t7xx_setup_msg_drb(struct dpmaif_ctrl *dpmaif_ctrl, unsigned int q_num, unsigned int cur_idx, unsigned int pkt_len, unsigned int count_l, unsigned int channel_id) t7xx_setup_msg_drb() argument
208 t7xx_setup_payload_drb(struct dpmaif_ctrl *dpmaif_ctrl, unsigned int q_num, unsigned int cur_idx, dma_addr_t data_addr, unsigned int pkt_size, bool last_one) t7xx_setup_payload_drb() argument
225 t7xx_record_drb_skb(struct dpmaif_ctrl *dpmaif_ctrl, unsigned int q_num, unsigned int cur_idx, struct sk_buff *skb, bool is_msg, bool is_frag, bool is_last_one, dma_addr_t bus_addr, unsigned int data_len) t7xx_record_drb_skb() argument
242 t7xx_dpmaif_add_skb_to_ring(struct dpmaif_ctrl *dpmaif_ctrl, struct sk_buff *skb) t7xx_dpmaif_add_skb_to_ring() argument
334 t7xx_tx_lists_are_all_empty(const struct dpmaif_ctrl *dpmaif_ctrl) t7xx_tx_lists_are_all_empty() argument
347 t7xx_select_tx_queue(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_select_tx_queue() argument
411 t7xx_do_tx_hw_push(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_do_tx_hw_push() argument
448 struct dpmaif_ctrl *dpmaif_ctrl = arg; t7xx_dpmaif_tx_hw_push_thread() local
478 t7xx_dpmaif_tx_thread_init(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_tx_thread_init() argument
486 t7xx_dpmaif_tx_thread_rel(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_tx_thread_rel() argument
507 t7xx_dpmaif_tx_send_skb(struct dpmaif_ctrl *dpmaif_ctrl, unsigned int txq_number, struct sk_buff *skb) t7xx_dpmaif_tx_send_skb() argument
527 t7xx_dpmaif_irq_tx_done(struct dpmaif_ctrl *dpmaif_ctrl, unsigned int que_mask) t7xx_dpmaif_irq_tx_done() argument
642 t7xx_dpmaif_tx_stop(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_tx_stop() argument
678 t7xx_dpmaif_tx_clear(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_tx_clear() argument
[all...]
H A Dt7xx_hif_dpmaif_rx.c80 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 in t7xx_alloc_and_map_skb_info()
164 t7xx_dpmaif_rx_buf_alloc(struct dpmaif_ctrl *dpmaif_ctrl, const struct dpmaif_bat_request *bat_req, const unsigned int q_num, const unsigned int buf_cnt, const bool initial) t7xx_dpmaif_rx_buf_alloc() argument
319 t7xx_dpmaif_rx_frag_alloc(struct dpmaif_ctrl *dpmaif_ctrl, struct dpmaif_bat_request *bat_req, const unsigned int buf_cnt, const bool initial) t7xx_dpmaif_rx_frag_alloc() argument
681 struct dpmaif_ctrl *dpmaif_ctrl = rxq->dpmaif_ctrl; t7xx_dpmaifq_rx_notify_hw() local
696 struct dpmaif_ctrl *dpmaif_ctrl = rxq->dpmaif_ctrl; t7xx_dpmaif_rx_skb() local
812 t7xx_dpmaif_napi_rx_data_collect(struct dpmaif_ctrl *dpmaif_ctrl, const unsigned int q_num, const unsigned int budget, int *once_more) t7xx_dpmaif_napi_rx_data_collect() argument
889 t7xx_dpmaif_irq_rx_done(struct dpmaif_ctrl *dpmaif_ctrl, const unsigned int que_mask) t7xx_dpmaif_irq_rx_done() argument
917 t7xx_dpmaif_base_free(const struct dpmaif_ctrl *dpmaif_ctrl, const struct dpmaif_bat_request *bat_req) t7xx_dpmaif_base_free() argument
939 t7xx_dpmaif_bat_alloc(const struct dpmaif_ctrl *dpmaif_ctrl, struct dpmaif_bat_request *bat_req, const enum bat_type buf_type) t7xx_dpmaif_bat_alloc() argument
984 t7xx_dpmaif_bat_free(const struct dpmaif_ctrl *dpmaif_ctrl, struct dpmaif_bat_request *bat_req) t7xx_dpmaif_bat_free() argument
1062 struct dpmaif_ctrl *dpmaif_ctrl = container_of(work, struct dpmaif_ctrl, bat_release_work); t7xx_dpmaif_bat_release_work() local
1084 t7xx_dpmaif_bat_rel_wq_alloc(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_bat_rel_wq_alloc() argument
1095 t7xx_dpmaif_bat_wq_rel(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_bat_wq_rel() argument
1111 t7xx_dpmaif_rx_stop(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_rx_stop() argument
1162 t7xx_dpmaif_rx_clear(struct dpmaif_ctrl *dpmaif_ctrl) t7xx_dpmaif_rx_clear() argument
[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);
[all...]
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);
[all...]
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,
196 void t7xx_dpmaif_hif_exit(struct dpmaif_ctrl *dpmaif_ctrl);
[all...]
H A Dt7xx_netdev.h44 struct dpmaif_ctrl *hif_ctrl;
H A Dt7xx_netdev.c49 struct dpmaif_ctrl *ctrl; in t7xx_ccmni_enable_napi()

Completed in 5 milliseconds