| /linux/drivers/net/ethernet/huawei/hinic/ |
| A D | hinic_hw_if.c | 125 if (HINIC_IS_VF(hwif)) in hinic_set_pf_action() 203 if (HINIC_IS_VF(hwif)) { in hwif_ready() 216 if (!hwif_ready(hwif)) in wait_hwif_ready() 349 if (!hwif) in hinic_glb_pf_vf_offset() 406 hwif->pdev = pdev; in hinic_init_hwif() 409 if (!hwif->cfg_regs_bar) { in hinic_init_hwif() 415 if (!hwif->intr_regs_base) { in hinic_init_hwif() 428 read_hwif_attr(hwif); in hinic_init_hwif() 430 if (HINIC_IS_PF(hwif)) in hinic_init_hwif() 431 set_ppf(hwif); in hinic_init_hwif() [all …]
|
| A D | hinic_hw_if.h | 146 #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs) argument 147 #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs) argument 148 #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs) argument 149 #define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx) argument 150 #define HINIC_HWIF_PCI_INTF(hwif) ((hwif)->attr.pci_intf_idx) argument 151 #define HINIC_HWIF_PF_IDX(hwif) ((hwif)->attr.pf_idx) argument 152 #define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx) argument 154 #define HINIC_FUNC_TYPE(hwif) ((hwif)->attr.func_type) argument 155 #define HINIC_IS_VF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_VF) argument 156 #define HINIC_IS_PF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PF) argument [all …]
|
| A D | hinic_hw_dev.c | 103 struct hinic_hwif *hwif = hwdev->hwif; in get_capability() local 130 struct hinic_hwif *hwif = hwdev->hwif; in get_dev_cap() local 162 struct hinic_hwif *hwif = hwdev->hwif; in init_msix() local 198 struct hinic_hwif *hwif = hwdev->hwif; in disable_msix() local 248 struct hinic_hwif *hwif = hwdev->hwif; in init_fw_ctxt() local 280 struct hinic_hwif *hwif = hwdev->hwif; in set_hw_ioctxt() local 309 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_outbound_state() local 329 struct hinic_hwif *hwif = hwdev->hwif; in wait_for_db_state() local 357 struct hinic_hwif *hwif = hwdev->hwif; in clear_io_resources() local 605 hwif = hwdev->hwif; in nic_mgmt_msg_handler() [all …]
|
| A D | hinic_port.c | 42 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() local 121 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() local 153 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() local 416 hwif = hwdev->hwif; in hinic_set_rx_csum_offload() 447 hwif = hwdev->hwif; in hinic_set_rx_vlan_offload() 598 hwif = hwdev->hwif; in hinic_rss_set_indir_tbl() 698 hwif = hwdev->hwif; in hinic_set_rss_type() 756 hwif = hwdev->hwif; in hinic_get_rss_type() 824 hwif = hwdev->hwif; in hinic_rss_get_template_tbl() 883 hwif = hwdev->hwif; in hinic_rss_get_hash_engine() [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 819 chain->hwif = hwif; in api_chain_init() [all …]
|
| A D | hinic_hw_wq.c | 152 struct hinic_hwif *hwif = wqs->hwif; in wqs_free_page() local 194 struct hinic_hwif *hwif = wqs->hwif; in alloc_page_arrays() local 225 struct hinic_hwif *hwif = wqs->hwif; in free_page_arrays() local 318 wqs->hwif = hwif; in hinic_wqs_alloc() 360 struct hinic_hwif *hwif = wqs->hwif; in hinic_wqs_free() local 380 struct hinic_hwif *hwif = wq->hwif; in alloc_wqes_shadow() local 407 struct hinic_hwif *hwif = wq->hwif; in free_wqes_shadow() local 510 struct hinic_hwif *hwif = wqs->hwif; in hinic_wq_allocate() local 540 wq->hwif = hwif; in hinic_wq_allocate() 637 cmdq_pages->hwif = hwif; in hinic_wqs_cmdq_alloc() [all …]
|
| A D | hinic_hw_mbox.c | 144 #define MBOX_AREA(hwif) \ argument 197 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 206 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 587 if (!HINIC_IS_PPF(hwdev->hwif)) { in check_vf_mbox_random_id() 1078 if (!HINIC_IS_VF(hwdev->hwif)) { in hinic_mbox_to_pf() 1080 HINIC_FUNC_TYPE(hwdev->hwif)); in hinic_mbox_to_pf() 1105 if (HINIC_IS_VF(hwdev->hwif)) { in hinic_mbox_to_vf() 1107 HINIC_FUNC_TYPE(hwdev->hwif)); in hinic_mbox_to_vf() 1416 func_to_func->hwif = hwdev->hwif; in hinic_func_to_func_init() 1452 if (!HINIC_IS_VF(hwdev->hwif)) in hinic_func_to_func_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 698 struct hinic_hwif *hwif = eq->hwif; in free_eq_pages() local 730 eq->hwif = hwif; in init_eq() 834 hinic_hwif_write_reg(eq->hwif, in remove_eq() 839 hinic_hwif_write_reg(eq->hwif, in remove_eq() 872 aeqs->hwif = hwif; in hinic_aeqs_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 471 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_sriov.c | 67 dev_err(&hwdev->hwif->pdev->dev, in hinic_notify_vf_link_status() 219 func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_init_vf_config() 364 dev_err(&hw_dev->hwif->pdev->dev, in hinic_set_vf_mac_msg_handler() 542 dev_err(&hwdev->hwif->pdev->dev, in hinic_update_mac() 610 func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf; in hinic_set_vf_mac() 1034 dev_err(&dev->hwif->pdev->dev, in nic_pf_mbox_handler() 1175 if (HINIC_IS_VF(hwdev->hwif)) { in hinic_vf_func_init() 1181 dev_err(&hwdev->hwif->pdev->dev, in hinic_vf_func_init() 1191 dev_err(&hwdev->hwif->pdev->dev, in hinic_vf_func_init() 1232 if (HINIC_IS_VF(hwdev->hwif)) { in hinic_vf_func_free() [all …]
|
| A D | hinic_hw_cmdq.c | 134 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_alloc_cmdq_buf() local 135 struct pci_dev *pdev = hwif->pdev; in hinic_alloc_cmdq_buf() 490 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_cmdq_direct_resp() local 491 struct pci_dev *pdev = hwif->pdev; in hinic_cmdq_direct_resp() 516 struct hinic_hwif *hwif = cmdqs->hwif; in hinic_set_arm_bit() local 517 struct pci_dev *pdev = hwif->pdev; in hinic_set_arm_bit() 682 struct hinic_hwif *hwif = cmdqs->hwif; in cmdq_ceq_handler() local 794 struct hinic_hwif *hwif = hwdev->hwif; in init_cmdqs_ctxt() local 797 struct pci_dev *pdev = hwif->pdev; in init_cmdqs_ctxt() 891 cmdqs->hwif = hwif; in hinic_init_cmdqs() [all …]
|
| 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() 53 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong data size read from file\n"); in check_image_valid() 75 dev_err(&priv->hwdev->hwif->pdev->dev, "Duplicate section type: %u\n", in check_image_integrity() 98 dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid:0x%x, current: 0x%x\n", in check_image_integrity() 110 dev_err(&priv->hwdev->hwif->pdev->dev, "Get board info failed\n"); in check_image_device_type() 260 dev_info(&priv->hwdev->hwif->pdev->dev, "Flash firmware begin\n"); in hinic_firmware_update() 270 dev_err(&priv->hwdev->hwif->pdev->dev, "Send firmware image data failed, err: %d\n", in hinic_firmware_update() 278 dev_info(&priv->hwdev->hwif->pdev->dev, "Flash firmware end\n"); in hinic_firmware_update() 556 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_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_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 | 97 read_data->lt_index = HINIC_HWIF_FUNC_IDX(nic_dev->hwdev->hwif); in hinic_dbg_get_func_table() 252 if (HINIC_IS_VF(dev->hwdev->hwif)) in hinic_func_table_debug_add() 261 if (!HINIC_IS_VF(dev->hwdev->hwif) && dev->dbg) in hinic_func_table_debug_rem() 287 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_init() 293 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_uninit() 299 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 | 134 struct hinic_hwif *hwif = hwdev->hwif; in rx_alloc_skb() local 135 struct pci_dev *pdev = hwif->pdev; in rx_alloc_skb() 169 struct hinic_hwif *hwif = hwdev->hwif; in rx_unmap_skb() local 170 struct pci_dev *pdev = hwif->pdev; in rx_unmap_skb() 472 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_poll() 502 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 | 137 struct hinic_hwif *hwif = hwdev->hwif; in tx_map_skb() local 138 struct pci_dev *pdev = hwif->pdev; in tx_map_skb() 188 struct hinic_hwif *hwif = hwdev->hwif; in tx_unmap_skb() local 189 struct pci_dev *pdev = hwif->pdev; in tx_unmap_skb() 767 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in free_tx_poll() 785 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in tx_irq() 803 struct hinic_hwif *hwif = hwdev->hwif; in tx_request_irq() local 804 struct pci_dev *pdev = hwif->pdev; in tx_request_irq()
|
| /linux/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_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 …]
|
| 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()
|