/linux-6.3-rc2/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_hw_if.c | 90 if (HINIC_IS_VF(hwif)) in hinic_set_pf_action() 168 if (HINIC_IS_VF(hwif)) { in hwif_ready() 181 if (!hwif_ready(hwif)) in wait_hwif_ready() 314 if (!hwif) in hinic_glb_pf_vf_offset() 371 hwif->pdev = pdev; in hinic_init_hwif() 374 if (!hwif->cfg_regs_bar) { in hinic_init_hwif() 380 if (!hwif->intr_regs_base) { in hinic_init_hwif() 393 read_hwif_attr(hwif); in hinic_init_hwif() 395 if (HINIC_IS_PF(hwif)) in hinic_init_hwif() 396 set_ppf(hwif); in hinic_init_hwif() [all …]
|
A D | hinic_hw_if.h | 142 #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs) argument 143 #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs) argument 144 #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs) argument 145 #define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx) argument 146 #define HINIC_HWIF_PCI_INTF(hwif) ((hwif)->attr.pci_intf_idx) argument 147 #define HINIC_HWIF_PF_IDX(hwif) ((hwif)->attr.pf_idx) argument 148 #define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx) argument 150 #define HINIC_FUNC_TYPE(hwif) ((hwif)->attr.func_type) argument 151 #define HINIC_IS_VF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_VF) argument 152 #define HINIC_IS_PF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PF) argument [all …]
|
A D | hinic_port.c | 39 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() local 118 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() local 149 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() local 401 hwif = hwdev->hwif; in hinic_set_rx_csum_offload() 432 hwif = hwdev->hwif; in hinic_set_rx_vlan_offload() 616 hwif = hwdev->hwif; in hinic_rss_set_indir_tbl() 716 hwif = hwdev->hwif; in hinic_set_rss_type() 774 hwif = hwdev->hwif; in hinic_get_rss_type() 842 hwif = hwdev->hwif; in hinic_rss_get_template_tbl() 901 hwif = hwdev->hwif; in hinic_rss_get_hash_engine() [all …]
|
A D | hinic_hw_dev.c | 97 struct hinic_hwif *hwif = hwdev->hwif; in get_capability() local 124 struct hinic_hwif *hwif = hwdev->hwif; in get_dev_cap() local 156 struct hinic_hwif *hwif = hwdev->hwif; in init_msix() local 191 struct hinic_hwif *hwif = hwdev->hwif; in disable_msix() local 241 struct hinic_hwif *hwif = hwdev->hwif; in init_fw_ctxt() local 273 struct hinic_hwif *hwif = hwdev->hwif; in set_hw_ioctxt() local 302 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_outbound_state() local 322 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_db_state() local 350 struct hinic_hwif *hwif = hwdev->hwif; in clear_io_resources() local 598 hwif = hwdev->hwif; in nic_mgmt_msg_handler() [all …]
|
A D | hinic_hw_api_cmd.c | 92 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx() local 143 struct hinic_hwif *hwif = chain->hwif; in chain_busy() local 228 struct hinic_hwif *hwif = chain->hwif; in prepare_api_cmd() local 290 struct hinic_hwif *hwif = chain->hwif; in api_cmd_status_update() local 348 struct hinic_hwif *hwif = chain->hwif; in wait_for_api_cmd_completion() local 436 struct hinic_hwif *hwif = chain->hwif; in api_cmd_hw_restart() local 471 struct hinic_hwif *hwif = chain->hwif; in api_cmd_ctrl_init() local 501 struct hinic_hwif *hwif = chain->hwif; in api_cmd_set_status_addr() local 519 struct hinic_hwif *hwif = chain->hwif; in api_cmd_set_num_cells() local 818 chain->hwif = hwif; in api_chain_init() [all …]
|
A D | hinic_hw_eqs.c | 221 struct hinic_hwif *hwif = aeqs->hwif; in aeq_irq_handler() local 222 struct pci_dev *pdev = hwif->pdev; in aeq_irq_handler() 284 struct hinic_hwif *hwif = ceqs->hwif; in ceq_event_handler() local 285 struct pci_dev *pdev = hwif->pdev; in ceq_event_handler() 631 struct hinic_hwif *hwif = eq->hwif; in alloc_eq_pages() local 697 struct hinic_hwif *hwif = eq->hwif; in free_eq_pages() local 729 eq->hwif = hwif; in init_eq() 833 hinic_hwif_write_reg(eq->hwif, in remove_eq() 838 hinic_hwif_write_reg(eq->hwif, in remove_eq() 871 aeqs->hwif = hwif; in hinic_aeqs_init() [all …]
|
A D | hinic_hw_wq.c | 152 struct hinic_hwif *hwif = wqs->hwif; in wqs_free_page() local 192 struct hinic_hwif *hwif = wqs->hwif; in alloc_page_arrays() local 223 struct hinic_hwif *hwif = wqs->hwif; in free_page_arrays() local 316 wqs->hwif = hwif; in hinic_wqs_alloc() 358 struct hinic_hwif *hwif = wqs->hwif; in hinic_wqs_free() local 378 struct hinic_hwif *hwif = wq->hwif; in alloc_wqes_shadow() local 404 struct hinic_hwif *hwif = wq->hwif; in free_wqes_shadow() local 507 struct hinic_hwif *hwif = wqs->hwif; in hinic_wq_allocate() local 537 wq->hwif = hwif; in hinic_wq_allocate() 634 cmdq_pages->hwif = hwif; in hinic_wqs_cmdq_alloc() [all …]
|
A D | hinic_hw_mbox.c | 140 #define MBOX_AREA(hwif) \ argument 192 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 201 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 582 if (!HINIC_IS_PPF(hwdev->hwif)) { in check_vf_mbox_random_id() 1073 if (!HINIC_IS_VF(hwdev->hwif)) { in hinic_mbox_to_pf() 1075 HINIC_FUNC_TYPE(hwdev->hwif)); in hinic_mbox_to_pf() 1100 if (HINIC_IS_VF(hwdev->hwif)) { in hinic_mbox_to_vf() 1102 HINIC_FUNC_TYPE(hwdev->hwif)); in hinic_mbox_to_vf() 1411 func_to_func->hwif = hwdev->hwif; in hinic_func_to_func_init() 1447 if (!HINIC_IS_VF(hwdev->hwif)) in hinic_func_to_func_init() [all …]
|
A D | hinic_hw_io.c | 108 struct hinic_hwif *hwif = func_to_io->hwif; in write_sq_ctxts() local 110 struct pci_dev *pdev = hwif->pdev; in write_sq_ctxts() 152 struct hinic_hwif *hwif = func_to_io->hwif; in write_rq_ctxts() local 154 struct pci_dev *pdev = hwif->pdev; in write_rq_ctxts() 211 struct hinic_hwif *hwif = func_to_io->hwif; in hinic_clean_queue_offload_ctxt() local 213 struct pci_dev *pdev = hwif->pdev; in hinic_clean_queue_offload_ctxt() 276 struct hinic_hwif *hwif = func_to_io->hwif; in init_qp() local 277 struct pci_dev *pdev = hwif->pdev; in init_qp() 376 struct hinic_hwif *hwif = func_to_io->hwif; in hinic_io_create_qps() local 470 struct hinic_hwif *hwif = func_to_io->hwif; in hinic_io_destroy_qps() local [all …]
|
A D | hinic_hw_mgmt.c | 132 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in prepare_header() local 252 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in msg_to_mgmt_sync() local 355 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in hinic_msg_to_mgmt() local 369 if (HINIC_IS_VF(hwif)) { in hinic_msg_to_mgmt() 490 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in recv_mgmt_msg_handler() local 552 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in alloc_recv_msg() local 576 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in alloc_msg_buf() local 617 struct hinic_hwif *hwif) in hinic_pf_to_mgmt_init() argument 624 pf_to_mgmt->hwif = hwif; in hinic_pf_to_mgmt_init() 627 if (HINIC_IS_VF(hwif)) in hinic_pf_to_mgmt_init() [all …]
|
A D | hinic_hw_cmdq.c | 129 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_alloc_cmdq_buf() local 130 struct pci_dev *pdev = hwif->pdev; in hinic_alloc_cmdq_buf() 485 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_cmdq_direct_resp() local 486 struct pci_dev *pdev = hwif->pdev; in hinic_cmdq_direct_resp() 511 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_set_arm_bit() local 512 struct pci_dev *pdev = hwif->pdev; in hinic_set_arm_bit() 677 struct hinic_hwif *hwif = cmdqs->hwif; in cmdq_ceq_handler() local 789 struct hinic_hwif *hwif = hwdev->hwif; in init_cmdqs_ctxt() local 792 struct pci_dev *pdev = hwif->pdev; in init_cmdqs_ctxt() 884 cmdqs->hwif = hwif; in hinic_init_cmdqs() [all …]
|
A D | hinic_sriov.c | 68 dev_err(&hwdev->hwif->pdev->dev, in hinic_notify_vf_link_status() 220 func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_init_vf_config() 365 dev_err(&hw_dev->hwif->pdev->dev, in hinic_set_vf_mac_msg_handler() 561 dev_err(&hwdev->hwif->pdev->dev, in hinic_update_mac() 629 func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf; in hinic_set_vf_mac() 1047 dev_err(&dev->hwif->pdev->dev, in nic_pf_mbox_handler() 1186 if (HINIC_IS_VF(hwdev->hwif)) { in hinic_vf_func_init() 1192 dev_err(&hwdev->hwif->pdev->dev, in hinic_vf_func_init() 1201 dev_err(&hwdev->hwif->pdev->dev, in hinic_vf_func_init() 1242 if (HINIC_IS_VF(hwdev->hwif)) { in hinic_vf_func_free() [all …]
|
A D | hinic_hw_wq.h | 23 struct hinic_hwif *hwif; member 51 struct hinic_hwif *hwif; member 74 struct hinic_hwif *hwif; member 78 struct hinic_wq *wq, struct hinic_hwif *hwif, 86 struct hinic_hwif *hwif);
|
A D | hinic_devlink.c | 33 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong fw_magic read from file, fw_magic: 0x%x\n", in check_image_valid() 39 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong fw_type_num read from file, fw_type_num: 0x%x\n", in check_image_valid() 51 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong data size read from file\n"); in check_image_valid() 73 dev_err(&priv->hwdev->hwif->pdev->dev, "Duplicate section type: %u\n", in check_image_integrity() 96 dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid:0x%x, current: 0x%x\n", in check_image_integrity() 108 dev_err(&priv->hwdev->hwif->pdev->dev, "Get board info failed\n"); in check_image_device_type() 258 dev_info(&priv->hwdev->hwif->pdev->dev, "Flash firmware begin\n"); in hinic_firmware_update() 268 dev_err(&priv->hwdev->hwif->pdev->dev, "Send firmware image data failed, err: %d\n", in hinic_firmware_update() 276 dev_info(&priv->hwdev->hwif->pdev->dev, "Flash firmware end\n"); in hinic_firmware_update() 554 dev_warn(&priv->hwdev->hwif->pdev->dev, "Failed to create hw fault reporter, err: %ld\n", in hinic_health_reporters_create() [all …]
|
A D | hinic_hw_qp.c | 281 int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif, in hinic_init_sq() argument 286 sq->hwif = hwif; in hinic_init_sq() 318 struct hinic_hwif *hwif = rq->hwif; in alloc_rq_cqe() local 319 struct pci_dev *pdev = hwif->pdev; in alloc_rq_cqe() 362 struct hinic_hwif *hwif = rq->hwif; in free_rq_cqe() local 363 struct pci_dev *pdev = hwif->pdev; in free_rq_cqe() 384 int hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif, in hinic_init_rq() argument 387 struct pci_dev *pdev = hwif->pdev; in hinic_init_rq() 391 rq->hwif = hwif; in hinic_init_rq() 437 struct hinic_hwif *hwif = rq->hwif; in hinic_clean_rq() local [all …]
|
A D | hinic_hw_eqs.h | 174 struct hinic_hwif *hwif; member 206 struct hinic_hwif *hwif; member 223 struct hinic_hwif *hwif; member 246 int hinic_aeqs_init(struct hinic_aeqs *aeqs, struct hinic_hwif *hwif, 252 int hinic_ceqs_init(struct hinic_ceqs *ceqs, struct hinic_hwif *hwif,
|
A D | hinic_debugfs.c | 98 read_data->lt_index = HINIC_HWIF_FUNC_IDX(nic_dev->hwdev->hwif); in hinic_dbg_get_func_table() 258 if (HINIC_IS_VF(dev->hwdev->hwif)) in hinic_func_table_debug_add() 267 if (!HINIC_IS_VF(dev->hwdev->hwif) && dev->dbg) in hinic_func_table_debug_rem() 293 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_init() 299 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_uninit() 305 nic_dev->dbgfs_root = debugfs_create_dir(pci_name(nic_dev->hwdev->hwif->pdev), in hinic_dbg_init()
|
A D | hinic_hw_qp.h | 80 struct hinic_hwif *hwif; member 99 struct hinic_hwif *hwif; member 138 int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif, 144 int hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif,
|
A D | hinic_rx.c | 132 struct hinic_hwif *hwif = hwdev->hwif; in rx_alloc_skb() local 133 struct pci_dev *pdev = hwif->pdev; in rx_alloc_skb() 167 struct hinic_hwif *hwif = hwdev->hwif; in rx_unmap_skb() local 168 struct pci_dev *pdev = hwif->pdev; in rx_unmap_skb() 470 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_poll() 501 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_irq()
|
A D | hinic_hw_api_cmd.h | 126 struct hinic_hwif *hwif; member 173 struct hinic_hwif *hwif; member 199 struct hinic_hwif *hwif);
|
A D | hinic_tx.c | 136 struct hinic_hwif *hwif = hwdev->hwif; in tx_map_skb() local 137 struct pci_dev *pdev = hwif->pdev; in tx_map_skb() 187 struct hinic_hwif *hwif = hwdev->hwif; in tx_unmap_skb() local 188 struct pci_dev *pdev = hwif->pdev; in tx_unmap_skb() 766 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in free_tx_poll() 784 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in tx_irq() 802 struct hinic_hwif *hwif = hwdev->hwif; in tx_request_irq() local 803 struct pci_dev *pdev = hwif->pdev; in tx_request_irq()
|
/linux-6.3-rc2/drivers/scsi/bfa/ |
A D | bfa.h | 244 struct bfa_hwif_s hwif; member 265 ((__bfa)->iocfc.hwif.hw_msix_init(__bfa, __nvecs)) 267 ((__bfa)->iocfc.hwif.hw_msix_ctrl_install(__bfa)) 269 ((__bfa)->iocfc.hwif.hw_msix_queue_install(__bfa)) 271 ((__bfa)->iocfc.hwif.hw_msix_uninstall(__bfa)) 273 ((__bfa)->iocfc.hwif.hw_rspq_ack(__bfa, __queue, __ci)) 275 if ((__bfa)->iocfc.hwif.hw_reqq_ack) \ 276 (__bfa)->iocfc.hwif.hw_reqq_ack(__bfa, __queue); \ 279 if ((__bfa)->iocfc.hwif.hw_isr_mode_set) \ 280 (__bfa)->iocfc.hwif.hw_isr_mode_set(__bfa, __msix); \ [all …]
|
A D | bfa_core.c | 1049 iocfc->hwif.hw_reginit = bfa_hwct_reginit; in bfa_iocfc_init_mem() 1050 iocfc->hwif.hw_reqq_ack = bfa_hwct_reqq_ack; in bfa_iocfc_init_mem() 1051 iocfc->hwif.hw_rspq_ack = bfa_hwct_rspq_ack; in bfa_iocfc_init_mem() 1052 iocfc->hwif.hw_msix_init = bfa_hwct_msix_init; in bfa_iocfc_init_mem() 1062 iocfc->hwif.hw_reginit = bfa_hwcb_reginit; in bfa_iocfc_init_mem() 1063 iocfc->hwif.hw_reqq_ack = NULL; in bfa_iocfc_init_mem() 1064 iocfc->hwif.hw_rspq_ack = bfa_hwcb_rspq_ack; in bfa_iocfc_init_mem() 1079 iocfc->hwif.hw_reginit = bfa_hwct2_reginit; in bfa_iocfc_init_mem() 1080 iocfc->hwif.hw_isr_mode_set = NULL; in bfa_iocfc_init_mem() 1081 iocfc->hwif.hw_rspq_ack = bfa_hwct2_rspq_ack; in bfa_iocfc_init_mem() [all …]
|
A D | bfa_hw_cb.c | 169 bfa->iocfc.hwif.hw_reqq_ack = bfa_hwcb_reqq_ack_msix; in bfa_hwcb_isr_mode_set() 170 bfa->iocfc.hwif.hw_rspq_ack = bfa_hwcb_rspq_ack_msix; in bfa_hwcb_isr_mode_set() 172 bfa->iocfc.hwif.hw_reqq_ack = NULL; in bfa_hwcb_isr_mode_set() 173 bfa->iocfc.hwif.hw_rspq_ack = bfa_hwcb_rspq_ack; in bfa_hwcb_isr_mode_set()
|
A D | bfa_ioc_ct.c | 505 hwif->ioc_firmware_lock = bfa_ioc_ct_firmware_lock; in bfa_ioc_set_ctx_hwif() 506 hwif->ioc_firmware_unlock = bfa_ioc_ct_firmware_unlock; in bfa_ioc_set_ctx_hwif() 507 hwif->ioc_notify_fail = bfa_ioc_ct_notify_fail; in bfa_ioc_set_ctx_hwif() 508 hwif->ioc_ownership_reset = bfa_ioc_ct_ownership_reset; in bfa_ioc_set_ctx_hwif() 509 hwif->ioc_sync_start = bfa_ioc_ct_sync_start; in bfa_ioc_set_ctx_hwif() 510 hwif->ioc_sync_join = bfa_ioc_ct_sync_join; in bfa_ioc_set_ctx_hwif() 511 hwif->ioc_sync_leave = bfa_ioc_ct_sync_leave; in bfa_ioc_set_ctx_hwif() 512 hwif->ioc_sync_ack = bfa_ioc_ct_sync_ack; in bfa_ioc_set_ctx_hwif() 513 hwif->ioc_sync_complete = bfa_ioc_ct_sync_complete; in bfa_ioc_set_ctx_hwif() 514 hwif->ioc_set_fwstate = bfa_ioc_ct_set_cur_ioc_fwstate; in bfa_ioc_set_ctx_hwif() [all …]
|