/linux-6.1.9/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_if.c | 38 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, in hinic_msix_attr_set() argument 45 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_set() 56 hinic_hwif_write_reg(hwif, addr, msix_ctrl); in hinic_msix_attr_set() 67 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index) in hinic_msix_attr_cnt_clear() argument 71 if (!VALID_MSIX_IDX(&hwif->attr, msix_index)) in hinic_msix_attr_cnt_clear() 77 hinic_hwif_write_reg(hwif, addr, msix_ctrl); in hinic_msix_attr_cnt_clear() 86 void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action) in hinic_set_pf_action() argument 90 if (HINIC_IS_VF(hwif)) in hinic_set_pf_action() 93 attr5 = hinic_hwif_read_reg(hwif, HINIC_CSR_FUNC_ATTR5_ADDR); in hinic_set_pf_action() 97 hinic_hwif_write_reg(hwif, HINIC_CSR_FUNC_ATTR5_ADDR, attr5); in hinic_set_pf_action() [all …]
|
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 …]
|
D | hinic_hw_dev.c | 57 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE) in parse_capability() 60 num_aeqs = HINIC_HWIF_NUM_AEQS(hwdev->hwif); in parse_capability() 61 num_ceqs = HINIC_HWIF_NUM_CEQS(hwdev->hwif); in parse_capability() 62 num_irqs = HINIC_HWIF_NUM_IRQS(hwdev->hwif); in parse_capability() 70 if (!HINIC_IS_VF(hwdev->hwif)) in parse_capability() 78 if (!HINIC_IS_VF(hwdev->hwif)) { in parse_capability() 97 struct hinic_hwif *hwif = hwdev->hwif; in get_capability() local 98 struct pci_dev *pdev = hwif->pdev; in get_capability() 124 struct hinic_hwif *hwif = hwdev->hwif; in get_dev_cap() local 125 struct pci_dev *pdev = hwif->pdev; in get_dev_cap() [all …]
|
D | hinic_port.c | 42 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() local 44 struct pci_dev *pdev = hwif->pdev; in change_mac() 53 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in change_mac() 62 (port_mac_cmd.status != HINIC_PF_SET_VF_ALREADY || !HINIC_IS_VF(hwif)) && in change_mac() 121 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() local 123 struct pci_dev *pdev = hwif->pdev; in hinic_port_get_mac() 126 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_mac() 153 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() local 155 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_mtu() 169 port_mtu_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_mtu() [all …]
|
D | hinic_hw_api_cmd.c | 92 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx() local 96 prod_idx = hinic_hwif_read_reg(hwif, addr); in set_prod_idx() 102 hinic_hwif_write_reg(hwif, addr, prod_idx); in set_prod_idx() 110 val = hinic_hwif_read_reg(chain->hwif, addr); in get_hw_cons_idx() 120 val = hinic_hwif_read_reg(chain->hwif, addr); in dump_api_chain_reg() 122 …dev_err(&chain->hwif->pdev->dev, "Chain type: 0x%x, cpld error: 0x%x, check error: 0x%x, current f… in dump_api_chain_reg() 127 dev_err(&chain->hwif->pdev->dev, "Chain hw current ci: 0x%x\n", in dump_api_chain_reg() 131 val = hinic_hwif_read_reg(chain->hwif, addr); in dump_api_chain_reg() 132 dev_err(&chain->hwif->pdev->dev, "Chain hw current pi: 0x%x\n", val); in dump_api_chain_reg() 143 struct hinic_hwif *hwif = chain->hwif; in chain_busy() local [all …]
|
D | hinic_hw_eqs.c | 198 val = hinic_hwif_read_reg(eq->hwif, addr); in eq_update_ci() 211 hinic_hwif_write_reg(eq->hwif, addr, val); in eq_update_ci() 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() 393 hinic_msix_attr_cnt_clear(aeq->hwif, aeq->msix_entry.entry); in aeq_interrupt() 414 hinic_msix_attr_cnt_clear(ceq->hwif, ceq->msix_entry.entry); in ceq_interrupt() 431 val = hinic_hwif_read_reg(eq->hwif, addr); in get_ctrl0_val() 440 HINIC_AEQ_CTRL_0_SET(HINIC_HWIF_PCI_INTF(eq->hwif), in get_ctrl0_val() [all …]
|
D | hinic_hw_wq.c | 103 static int queue_alloc_page(struct hinic_hwif *hwif, u64 **vaddr, u64 *paddr, in queue_alloc_page() argument 106 struct pci_dev *pdev = hwif->pdev; in queue_alloc_page() 139 return queue_alloc_page(wqs->hwif, &wqs->page_vaddr[page_idx], in wqs_allocate_page() 152 struct hinic_hwif *hwif = wqs->hwif; in wqs_free_page() local 153 struct pci_dev *pdev = hwif->pdev; in wqs_free_page() 169 return queue_alloc_page(cmdq_pages->hwif, &cmdq_pages->page_vaddr, in cmdq_allocate_page() 181 struct hinic_hwif *hwif = cmdq_pages->hwif; in cmdq_free_page() local 182 struct pci_dev *pdev = hwif->pdev; in cmdq_free_page() 192 struct hinic_hwif *hwif = wqs->hwif; in alloc_page_arrays() local 193 struct pci_dev *pdev = hwif->pdev; in alloc_page_arrays() [all …]
|
D | hinic_hw_mbox.c | 140 #define MBOX_AREA(hwif) \ argument 141 ((hwif)->cfg_regs_bar + HINIC_FUNC_CSR_MAILBOX_DATA_OFF) 192 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 201 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 309 dev_err(&func_to_func->hwif->pdev->dev, "Receive illegal mbox message, mod = %d\n", in recv_vf_mbox_handler() 323 dev_err(&func_to_func->hwif->pdev->dev, "VF mbox cb is not registered\n"); in recv_vf_mbox_handler() 344 dev_err(&func_to_func->hwif->pdev->dev, "Receive illegal mbox message, mod = %d\n", in recv_pf_from_vf_mbox_handler() 356 hinic_glb_pf_vf_offset(func_to_func->hwif); in recv_pf_from_vf_mbox_handler() 361 dev_err(&func_to_func->hwif->pdev->dev, "PF mbox mod(0x%x) cb is not registered\n", in recv_pf_from_vf_mbox_handler() 398 dev_err(&func_to_func->hwif->pdev->dev, in resp_mbox_handler() [all …]
|
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() 309 err = hinic_init_sq(&qp->sq, hwif, &func_to_io->sq_wq[q_id], in init_qp() 319 err = hinic_init_rq(&qp->rq, hwif, &func_to_io->rq_wq[q_id], in init_qp() [all …]
|
D | hinic_hw_mgmt.c | 132 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in prepare_header() local 143 HINIC_MSG_HEADER_SET(HINIC_HWIF_PCI_INTF(hwif), PCI_INTF) | in prepare_header() 144 HINIC_MSG_HEADER_SET(HINIC_HWIF_PF_IDX(hwif), PF_IDX) | in prepare_header() 252 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in msg_to_mgmt_sync() local 253 struct pci_dev *pdev = hwif->pdev; in msg_to_mgmt_sync() 355 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in hinic_msg_to_mgmt() local 356 struct pci_dev *pdev = hwif->pdev; in hinic_msg_to_mgmt() 369 if (HINIC_IS_VF(hwif)) { in hinic_msg_to_mgmt() 392 struct pci_dev *pdev = pf_to_mgmt->hwif->pdev; in recv_mgmt_msg_work_handler() 490 struct hinic_hwif *hwif = pf_to_mgmt->hwif; in recv_mgmt_msg_handler() local [all …]
|
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 678 struct pci_dev *pdev = hwif->pdev; in cmdq_ceq_handler() 724 cmdq_ctxt->func_idx = HINIC_HWIF_FUNC_IDX(cmdqs->hwif); in cmdq_init_queue_ctxt() 725 cmdq_ctxt->ppf_idx = HINIC_HWIF_PPF_IDX(cmdqs->hwif); in cmdq_init_queue_ctxt() [all …]
|
D | hinic_sriov.c | 44 …dev_err(&hwdev->func_to_io.hwif->pdev->dev, "Failed to set MAC, err: %d, status: 0x%x, out size: 0… in hinic_set_mac() 62 link.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_notify_vf_link_status() 68 dev_err(&hwdev->hwif->pdev->dev, in hinic_notify_vf_link_status() 114 vf_vlan.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_vlan() 126 …dev_err(&hwdev->hwif->pdev->dev, "Failed to set VF %d vlan, err: %d, status: 0x%x, out size: 0x%x\… in hinic_set_vf_vlan() 142 rate_cfg.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_tx_rate_max_min() 150 …dev_err(&hwdev->hwif->pdev->dev, "Failed to set VF(%d) max rate(%d), min rate(%d), err: %d, status… in hinic_set_vf_tx_rate_max_min() 172 rate_cfg.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_rate_limit() 178 …dev_err(&hwdev->hwif->pdev->dev, "Failed to set VF(%d) rate(%d), err: %d, status: 0x%x, out size: … in hinic_set_vf_rate_limit() 203 dev_err(&hwdev->hwif->pdev->dev, "Current firmware doesn't support to set min tx rate\n"); in hinic_set_vf_tx_rate() [all …]
|
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);
|
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() 92 …dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid: 0x%x or 0x%lx, current… 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() 115 …dev_err(&priv->hwdev->hwif->pdev->dev, "The device type of upgrade file doesn't match the device t… in check_image_device_type() 116 dev_err(&priv->hwdev->hwif->pdev->dev, "The image device type: 0x%x, firmware device type: 0x%x\n", in check_image_device_type() 223 …dev_err(&priv->hwdev->hwif->pdev->dev, "Failed to update firmware, err: %d, status: 0x%x, out size… in hinic_flash_fw() [all …]
|
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 …]
|
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,
|
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()
|
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,
|
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()
|
D | hinic_hw_api_cmd.h | 126 struct hinic_hwif *hwif; member 173 struct hinic_hwif *hwif; member 199 struct hinic_hwif *hwif);
|
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.1.9/drivers/scsi/bfa/ |
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 …]
|
D | bfa_core.c | 886 bfa_isr_reqq(bfa, vec - bfa->iocfc.hwif.cpe_vec_q0); in bfa_msix_reqq() 902 bfa_isr_rspq(bfa, vec - bfa->iocfc.hwif.rme_vec_q0); in bfa_msix_rspq() 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() 1053 iocfc->hwif.hw_msix_ctrl_install = bfa_hwct_msix_ctrl_install; in bfa_iocfc_init_mem() 1054 iocfc->hwif.hw_msix_queue_install = bfa_hwct_msix_queue_install; in bfa_iocfc_init_mem() 1055 iocfc->hwif.hw_msix_uninstall = bfa_hwct_msix_uninstall; in bfa_iocfc_init_mem() 1056 iocfc->hwif.hw_isr_mode_set = bfa_hwct_isr_mode_set; in bfa_iocfc_init_mem() [all …]
|
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()
|
D | bfa_ioc_ct.c | 503 bfa_ioc_set_ctx_hwif(struct bfa_ioc_s *ioc, struct bfa_ioc_hwif_s *hwif) in bfa_ioc_set_ctx_hwif() argument 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() [all …]
|