Home
last modified time | relevance | path

Searched refs:hinic_hwif (Results 1 – 23 of 23) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_if.c33 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_set()
67 int hinic_msix_attr_get(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_get()
95 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index) in hinic_msix_attr_cnt_clear()
116 void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action) in hinic_set_pf_action()
126 enum hinic_outbound_state hinic_outbound_state_get(struct hinic_hwif *hwif) in hinic_outbound_state_get()
133 void hinic_outbound_state_set(struct hinic_hwif *hwif, in hinic_outbound_state_set()
144 enum hinic_db_state hinic_db_state_get(struct hinic_hwif *hwif) in hinic_db_state_get()
151 void hinic_db_state_set(struct hinic_hwif *hwif, in hinic_db_state_set()
162 void hinic_set_msix_state(struct hinic_hwif *hwif, u16 msix_idx, in hinic_set_msix_state()
184 static int hwif_ready(struct hinic_hwif *hwif) in hwif_ready()
[all …]
Dhinic_hw_if.h227 struct hinic_hwif { struct
235 static inline u32 hinic_hwif_read_reg(struct hinic_hwif *hwif, u32 reg) in hinic_hwif_read_reg() argument
240 static inline void hinic_hwif_write_reg(struct hinic_hwif *hwif, u32 reg, in hinic_hwif_write_reg()
246 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index,
251 int hinic_msix_attr_get(struct hinic_hwif *hwif, u16 msix_index,
256 void hinic_set_msix_state(struct hinic_hwif *hwif, u16 msix_idx,
259 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index);
261 void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action);
263 enum hinic_outbound_state hinic_outbound_state_get(struct hinic_hwif *hwif);
265 void hinic_outbound_state_set(struct hinic_hwif *hwif,
[all …]
Dhinic_hw_api_cmd.c92 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx()
123 struct hinic_hwif *hwif = chain->hwif; in chain_busy()
206 struct hinic_hwif *hwif = chain->hwif; in prepare_api_cmd()
268 struct hinic_hwif *hwif = chain->hwif; in api_cmd_status_update()
326 struct hinic_hwif *hwif = chain->hwif; in wait_for_api_cmd_completion()
413 struct hinic_hwif *hwif = chain->hwif; in api_cmd_hw_restart()
448 struct hinic_hwif *hwif = chain->hwif; in api_cmd_ctrl_init()
478 struct hinic_hwif *hwif = chain->hwif; in api_cmd_set_status_addr()
496 struct hinic_hwif *hwif = chain->hwif; in api_cmd_set_num_cells()
510 struct hinic_hwif *hwif = chain->hwif; in api_cmd_head_init()
[all …]
Dhinic_hw_wq.h23 struct hinic_hwif *hwif;
51 struct hinic_hwif *hwif;
74 struct hinic_hwif *hwif;
78 struct hinic_wq *wq, struct hinic_hwif *hwif,
86 struct hinic_hwif *hwif);
Dhinic_port.c43 struct hinic_hwif *hwif = hwdev->hwif; in change_mac()
114 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac()
146 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu()
248 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_link_state()
285 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_state()
321 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_func_state()
352 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_cap()
382 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_tso()
408 struct hinic_hwif *hwif; in hinic_set_rx_csum_offload()
438 struct hinic_hwif *hwif; in hinic_set_rx_vlan_offload()
[all …]
Dhinic_hw_dev.c111 struct hinic_hwif *hwif = hwdev->hwif; in get_cap_from_fw()
139 struct hinic_hwif *hwif = hwdev->hwif; in get_dev_cap()
172 struct hinic_hwif *hwif = hwdev->hwif; in init_msix()
208 struct hinic_hwif *hwif = hwdev->hwif; in disable_msix()
228 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_msg_cmd()
252 struct hinic_hwif *hwif = hwdev->hwif; in init_fw_ctxt()
289 struct hinic_hwif *hwif = hwdev->hwif; in set_hw_ioctxt()
323 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_outbound_state()
343 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_db_state()
365 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_io_stopped()
[all …]
Dhinic_hw_eqs.h173 struct hinic_hwif *hwif;
204 struct hinic_hwif *hwif;
221 struct hinic_hwif *hwif;
244 int hinic_aeqs_init(struct hinic_aeqs *aeqs, struct hinic_hwif *hwif,
250 int hinic_ceqs_init(struct hinic_ceqs *ceqs, struct hinic_hwif *hwif,
Dhinic_hw_mgmt.c124 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in prepare_header()
243 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in msg_to_mgmt_sync()
342 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in hinic_msg_to_mgmt()
368 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in mgmt_recv_msg_handler()
426 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in recv_mgmt_msg_handler()
488 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in alloc_recv_msg()
512 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in alloc_msg_buf()
547 struct hinic_hwif *hwif) in hinic_pf_to_mgmt_init()
Dhinic_hw_wq.c102 static int queue_alloc_page(struct hinic_hwif *hwif, u64 **vaddr, u64 *paddr, in queue_alloc_page()
151 struct hinic_hwif *hwif = wqs->hwif; in wqs_free_page()
182 struct hinic_hwif *hwif = cmdq_pages->hwif; in cmdq_free_page()
193 struct hinic_hwif *hwif = wqs->hwif; in alloc_page_arrays()
224 struct hinic_hwif *hwif = wqs->hwif; in free_page_arrays()
306 struct hinic_hwif *hwif) in hinic_wqs_alloc()
359 struct hinic_hwif *hwif = wqs->hwif; in hinic_wqs_free()
379 struct hinic_hwif *hwif = wq->hwif; in alloc_wqes_shadow()
406 struct hinic_hwif *hwif = wq->hwif; in free_wqes_shadow()
419 static void free_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, in free_wq_pages()
[all …]
Dhinic_hw_qp.h77 struct hinic_hwif *hwif;
93 struct hinic_hwif *hwif;
128 int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif,
134 int hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif,
Dhinic_hw_io.h49 struct hinic_hwif *hwif;
83 struct hinic_hwif *hwif, u16 max_qps, int num_ceqs,
Dhinic_hw_api_cmd.h122 struct hinic_hwif *hwif;
169 struct hinic_hwif *hwif;
195 struct hinic_hwif *hwif);
Dhinic_hw_io.c105 struct hinic_hwif *hwif = func_to_io->hwif; in write_sq_ctxts()
149 struct hinic_hwif *hwif = func_to_io->hwif; in write_rq_ctxts()
208 struct hinic_hwif *hwif = func_to_io->hwif; in hinic_clean_queue_offload_ctxt()
273 struct hinic_hwif *hwif = func_to_io->hwif; in init_qp()
371 struct hinic_hwif *hwif = func_to_io->hwif; in hinic_io_create_qps()
466 struct hinic_hwif *hwif = func_to_io->hwif; in hinic_io_destroy_qps()
498 struct hinic_hwif *hwif, u16 max_qps, int num_ceqs, in hinic_io_init()
Dhinic_hw_mgmt.h109 struct hinic_hwif *hwif;
140 struct hinic_hwif *hwif);
Dhinic_hw_cmdq.h149 struct hinic_hwif *hwif;
173 int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif,
Dhinic_hw_eqs.c219 struct hinic_hwif *hwif = aeqs->hwif; in aeq_irq_handler()
280 struct hinic_hwif *hwif = ceqs->hwif; in ceq_event_handler()
568 struct hinic_hwif *hwif = eq->hwif; in alloc_eq_pages()
635 struct hinic_hwif *hwif = eq->hwif; in free_eq_pages()
660 static int init_eq(struct hinic_eq *eq, struct hinic_hwif *hwif, in init_eq()
781 int hinic_aeqs_init(struct hinic_aeqs *aeqs, struct hinic_hwif *hwif, in hinic_aeqs_init()
839 int hinic_ceqs_init(struct hinic_ceqs *ceqs, struct hinic_hwif *hwif, in hinic_ceqs_init()
Dhinic_hw_cmdq.c134 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_alloc_cmdq_buf()
488 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_cmdq_direct_resp()
514 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_set_arm_bit()
678 struct hinic_hwif *hwif = cmdqs->hwif; in cmdq_ceq_handler()
787 struct hinic_hwif *hwif = hwdev->hwif; in init_cmdqs_ctxt()
859 int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif, in hinic_init_cmdqs()
922 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_free_cmdqs()
Dhinic_hw_qp.c276 int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif, in hinic_init_sq()
313 struct hinic_hwif *hwif = rq->hwif; in alloc_rq_cqe()
357 struct hinic_hwif *hwif = rq->hwif; in free_rq_cqe()
379 int hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif, in hinic_init_rq()
433 struct hinic_hwif *hwif = rq->hwif; in hinic_clean_rq()
Dhinic_hw_dev.h223 struct hinic_hwif *hwif;
Dhinic_rx.c133 struct hinic_hwif *hwif = hwdev->hwif; in rx_alloc_skb()
170 struct hinic_hwif *hwif = hwdev->hwif; in rx_unmap_skb()
Dhinic_tx.c137 struct hinic_hwif *hwif = hwdev->hwif; in tx_map_skb()
188 struct hinic_hwif *hwif = hwdev->hwif; in tx_unmap_skb()
717 struct hinic_hwif *hwif = hwdev->hwif; in tx_request_irq()
Dhinic_ethtool.c122 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_drvinfo()
Dhinic_main.c320 struct hinic_hwif *hwif = hwdev->hwif; in hinic_enable_rss()