/Linux-v4.19/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_if.c | 42 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_set() 76 int hinic_msix_attr_get(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_get() 104 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index) in hinic_msix_attr_cnt_clear() 125 void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action) in hinic_set_pf_action() 135 enum hinic_outbound_state hinic_outbound_state_get(struct hinic_hwif *hwif) in hinic_outbound_state_get() 142 void hinic_outbound_state_set(struct hinic_hwif *hwif, in hinic_outbound_state_set() 153 enum hinic_db_state hinic_db_state_get(struct hinic_hwif *hwif) in hinic_db_state_get() 160 void hinic_db_state_set(struct hinic_hwif *hwif, in hinic_db_state_set() 177 static int hwif_ready(struct hinic_hwif *hwif) in hwif_ready() 199 static void set_hwif_attr(struct hinic_hwif *hwif, u32 attr0, u32 attr1) in set_hwif_attr() [all …]
|
D | hinic_hw_if.h | 226 struct hinic_hwif { struct 233 static inline u32 hinic_hwif_read_reg(struct hinic_hwif *hwif, u32 reg) in hinic_hwif_read_reg() argument 238 static inline void hinic_hwif_write_reg(struct hinic_hwif *hwif, u32 reg, in hinic_hwif_write_reg() 244 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, 249 int hinic_msix_attr_get(struct hinic_hwif *hwif, u16 msix_index, 254 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index); 256 void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action); 258 enum hinic_outbound_state hinic_outbound_state_get(struct hinic_hwif *hwif); 260 void hinic_outbound_state_set(struct hinic_hwif *hwif, 263 enum hinic_db_state hinic_db_state_get(struct hinic_hwif *hwif); [all …]
|
D | hinic_hw_api_cmd.c | 101 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx() 132 struct hinic_hwif *hwif = chain->hwif; in chain_busy() 215 struct hinic_hwif *hwif = chain->hwif; in prepare_api_cmd() 277 struct hinic_hwif *hwif = chain->hwif; in api_cmd_status_update() 335 struct hinic_hwif *hwif = chain->hwif; in wait_for_api_cmd_completion() 422 struct hinic_hwif *hwif = chain->hwif; in api_cmd_hw_restart() 457 struct hinic_hwif *hwif = chain->hwif; in api_cmd_ctrl_init() 487 struct hinic_hwif *hwif = chain->hwif; in api_cmd_set_status_addr() 505 struct hinic_hwif *hwif = chain->hwif; in api_cmd_set_num_cells() 519 struct hinic_hwif *hwif = chain->hwif; in api_cmd_head_init() [all …]
|
D | hinic_hw_wq.h | 32 struct hinic_hwif *hwif; 59 struct hinic_hwif *hwif; 82 struct hinic_hwif *hwif; 86 struct hinic_wq *wq, struct hinic_hwif *hwif, 94 struct hinic_hwif *hwif);
|
D | hinic_hw_dev.c | 123 struct hinic_hwif *hwif = hwdev->hwif; in get_cap_from_fw() 151 struct hinic_hwif *hwif = hwdev->hwif; in get_dev_cap() 184 struct hinic_hwif *hwif = hwdev->hwif; in init_msix() 220 struct hinic_hwif *hwif = hwdev->hwif; in disable_msix() 240 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_msg_cmd() 264 struct hinic_hwif *hwif = hwdev->hwif; in init_fw_ctxt() 301 struct hinic_hwif *hwif = hwdev->hwif; in set_hw_ioctxt() 333 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_outbound_state() 353 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_db_state() 375 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_io_stopped() [all …]
|
D | hinic_port.c | 52 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() 123 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() 155 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() 257 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_link_state() 294 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_state() 330 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_func_state() 361 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_cap()
|
D | hinic_hw_eqs.h | 182 struct hinic_hwif *hwif; 213 struct hinic_hwif *hwif; 230 struct hinic_hwif *hwif; 253 int hinic_aeqs_init(struct hinic_aeqs *aeqs, struct hinic_hwif *hwif, 259 int hinic_ceqs_init(struct hinic_ceqs *ceqs, struct hinic_hwif *hwif,
|
D | hinic_hw_wq.c | 106 static int queue_alloc_page(struct hinic_hwif *hwif, u64 **vaddr, u64 *paddr, in queue_alloc_page() 155 struct hinic_hwif *hwif = wqs->hwif; in wqs_free_page() 186 struct hinic_hwif *hwif = cmdq_pages->hwif; in cmdq_free_page() 197 struct hinic_hwif *hwif = wqs->hwif; in alloc_page_arrays() 228 struct hinic_hwif *hwif = wqs->hwif; in free_page_arrays() 310 struct hinic_hwif *hwif) in hinic_wqs_alloc() 363 struct hinic_hwif *hwif = wqs->hwif; in hinic_wqs_free() 383 struct hinic_hwif *hwif = wq->hwif; in alloc_wqes_shadow() 410 struct hinic_hwif *hwif = wq->hwif; in free_wqes_shadow() 423 static void free_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, in free_wq_pages() [all …]
|
D | hinic_hw_mgmt.c | 133 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in prepare_header() 252 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in msg_to_mgmt_sync() 351 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in hinic_msg_to_mgmt() 377 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in mgmt_recv_msg_handler() 435 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in recv_mgmt_msg_handler() 497 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in alloc_recv_msg() 521 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in alloc_msg_buf() 556 struct hinic_hwif *hwif) in hinic_pf_to_mgmt_init()
|
D | hinic_hw_qp.h | 86 struct hinic_hwif *hwif; 102 struct hinic_hwif *hwif; 137 int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif, 143 int hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif,
|
D | hinic_hw_io.h | 58 struct hinic_hwif *hwif; 92 struct hinic_hwif *hwif, u16 max_qps, int num_ceqs,
|
D | hinic_hw_api_cmd.h | 131 struct hinic_hwif *hwif; 178 struct hinic_hwif *hwif; 204 struct hinic_hwif *hwif);
|
D | hinic_hw_io.c | 113 struct hinic_hwif *hwif = func_to_io->hwif; in write_sq_ctxts() 157 struct hinic_hwif *hwif = func_to_io->hwif; in write_rq_ctxts() 228 struct hinic_hwif *hwif = func_to_io->hwif; in init_qp() 326 struct hinic_hwif *hwif = func_to_io->hwif; in hinic_io_create_qps() 415 struct hinic_hwif *hwif = func_to_io->hwif; in hinic_io_destroy_qps() 447 struct hinic_hwif *hwif, u16 max_qps, int num_ceqs, in hinic_io_init()
|
D | hinic_hw_mgmt.h | 118 struct hinic_hwif *hwif; 149 struct hinic_hwif *hwif);
|
D | hinic_hw_cmdq.h | 158 struct hinic_hwif *hwif; 182 int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif,
|
D | hinic_hw_eqs.c | 228 struct hinic_hwif *hwif = aeqs->hwif; in aeq_irq_handler() 289 struct hinic_hwif *hwif = ceqs->hwif; in ceq_event_handler() 577 struct hinic_hwif *hwif = eq->hwif; in alloc_eq_pages() 644 struct hinic_hwif *hwif = eq->hwif; in free_eq_pages() 669 static int init_eq(struct hinic_eq *eq, struct hinic_hwif *hwif, in init_eq() 790 int hinic_aeqs_init(struct hinic_aeqs *aeqs, struct hinic_hwif *hwif, in hinic_aeqs_init() 848 int hinic_ceqs_init(struct hinic_ceqs *ceqs, struct hinic_hwif *hwif, in hinic_ceqs_init()
|
D | hinic_hw_cmdq.c | 143 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_alloc_cmdq_buf() 497 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_cmdq_direct_resp() 523 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_set_arm_bit() 687 struct hinic_hwif *hwif = cmdqs->hwif; in cmdq_ceq_handler() 796 struct hinic_hwif *hwif = hwdev->hwif; in init_cmdqs_ctxt() 868 int hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif, in hinic_init_cmdqs() 931 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_free_cmdqs()
|
D | hinic_hw_qp.c | 287 int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif, in hinic_init_sq() 324 struct hinic_hwif *hwif = rq->hwif; in alloc_rq_cqe() 368 struct hinic_hwif *hwif = rq->hwif; in free_rq_cqe() 390 int hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif, in hinic_init_rq() 444 struct hinic_hwif *hwif = rq->hwif; in hinic_clean_rq()
|
D | hinic_tx.c | 115 struct hinic_hwif *hwif = hwdev->hwif; in tx_map_skb() 166 struct hinic_hwif *hwif = hwdev->hwif; in tx_unmap_skb() 414 struct hinic_hwif *hwif = hwdev->hwif; in tx_request_irq()
|
D | hinic_rx.c | 104 struct hinic_hwif *hwif = hwdev->hwif; in rx_alloc_skb() 141 struct hinic_hwif *hwif = hwdev->hwif; in rx_unmap_skb()
|
D | hinic_hw_dev.h | 176 struct hinic_hwif *hwif;
|
D | hinic_main.c | 167 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_drvinfo()
|