Searched refs:hwif (Results 1 - 25 of 34) sorted by relevance

12

/linux-master/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_if.c28 * @hwif: the HW interface of a pci function device
38 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index, argument
45 if (!VALID_MSIX_IDX(&hwif->attr, msix_index))
56 hinic_hwif_write_reg(hwif, addr, msix_ctrl);
62 * @hwif: the HW interface of a pci function device
67 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index) argument
71 if (!VALID_MSIX_IDX(&hwif->attr, msix_index))
77 hinic_hwif_write_reg(hwif, addr, msix_ctrl);
83 * @hwif: the HW interface of a pci function device
86 void hinic_set_pf_action(struct hinic_hwif *hwif, enu argument
100 hinic_outbound_state_get(struct hinic_hwif *hwif) argument
107 hinic_outbound_state_set(struct hinic_hwif *hwif, enum hinic_outbound_state outbound_state) argument
118 hinic_db_state_get(struct hinic_hwif *hwif) argument
125 hinic_db_state_set(struct hinic_hwif *hwif, enum hinic_db_state db_state) argument
136 hinic_set_msix_state(struct hinic_hwif *hwif, u16 msix_idx, enum hinic_msix_state flag) argument
158 hwif_ready(struct hinic_hwif *hwif) argument
176 wait_hwif_ready(struct hinic_hwif *hwif) argument
200 set_hwif_attr(struct hinic_hwif *hwif, u32 attr0, u32 attr1, u32 attr2) argument
220 read_hwif_attr(struct hinic_hwif *hwif) argument
240 set_ppf(struct hinic_hwif *hwif) argument
274 set_dma_attr(struct hinic_hwif *hwif, u32 entry_idx, u8 st, u8 at, u8 ph, enum hinic_pcie_nosnoop no_snooping, enum hinic_pcie_tph tph_en) argument
305 dma_attr_init(struct hinic_hwif *hwif) argument
312 hinic_glb_pf_vf_offset(struct hinic_hwif *hwif) argument
320 hinic_global_func_id_hw(struct hinic_hwif *hwif) argument
330 hinic_pf_id_of_vf_hw(struct hinic_hwif *hwif) argument
340 __print_selftest_reg(struct hinic_hwif *hwif) argument
367 hinic_init_hwif(struct hinic_hwif *hwif, struct pci_dev *pdev) argument
415 hinic_free_hwif(struct hinic_hwif *hwif) argument
[all...]
H A Dhinic_hw_if.h142 #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs)
143 #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs)
144 #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs)
145 #define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx)
146 #define HINIC_HWIF_PCI_INTF(hwif) ((hwif)
248 hinic_hwif_read_reg(struct hinic_hwif *hwif, u32 reg) argument
255 hinic_hwif_write_reg(struct hinic_hwif *hwif, u32 reg, u32 val) argument
[all...]
H A Dhinic_port.c39 struct hinic_hwif *hwif = hwdev->hwif; local
41 struct pci_dev *pdev = hwif->pdev;
50 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif);
59 (port_mac_cmd.status != HINIC_PF_SET_VF_ALREADY || !HINIC_IS_VF(hwif)) &&
118 struct hinic_hwif *hwif = hwdev->hwif; local
120 struct pci_dev *pdev = hwif->pdev;
123 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif);
149 struct hinic_hwif *hwif local
240 struct hinic_hwif *hwif = hwdev->hwif; local
272 struct hinic_hwif *hwif = hwdev->hwif; local
306 struct hinic_hwif *hwif = hwdev->hwif; local
337 struct hinic_hwif *hwif = hwdev->hwif; local
367 struct hinic_hwif *hwif = hwdev->hwif; local
394 struct hinic_hwif *hwif; local
423 struct hinic_hwif *hwif; local
453 struct hinic_hwif *hwif = hwdev->hwif; local
483 struct hinic_hwif *hwif = hwdev->hwif; local
511 struct hinic_hwif *hwif = hwdev->hwif; local
538 struct hinic_hwif *hwif = hwdev->hwif; local
604 struct hinic_hwif *hwif; local
673 struct hinic_hwif *hwif = hwdev->hwif; local
705 struct hinic_hwif *hwif; local
764 struct hinic_hwif *hwif; local
803 struct hinic_hwif *hwif = hwdev->hwif; local
832 struct hinic_hwif *hwif; local
864 struct hinic_hwif *hwif = hwdev->hwif; local
891 struct hinic_hwif *hwif; local
921 struct hinic_hwif *hwif = hwdev->hwif; local
948 struct hinic_hwif *hwif = hwdev->hwif; local
974 struct hinic_hwif *hwif = hwdev->hwif; local
1001 struct hinic_hwif *hwif = hwdev->hwif; local
1029 struct hinic_hwif *hwif = hwdev->hwif; local
1066 struct hinic_hwif *hwif; local
[all...]
H A Dhinic_hw_dev.c57 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE)
60 num_aeqs = HINIC_HWIF_NUM_AEQS(hwdev->hwif);
61 num_ceqs = HINIC_HWIF_NUM_CEQS(hwdev->hwif);
62 num_irqs = HINIC_HWIF_NUM_IRQS(hwdev->hwif);
70 if (!HINIC_IS_VF(hwdev->hwif))
78 if (!HINIC_IS_VF(hwdev->hwif)) {
97 struct hinic_hwif *hwif = hwdev->hwif; local
98 struct pci_dev *pdev = hwif->pdev;
124 struct hinic_hwif *hwif local
156 struct hinic_hwif *hwif = hwdev->hwif; local
191 struct hinic_hwif *hwif = hwdev->hwif; local
241 struct hinic_hwif *hwif = hwdev->hwif; local
273 struct hinic_hwif *hwif = hwdev->hwif; local
302 struct hinic_hwif *hwif = hwdev->hwif; local
322 struct hinic_hwif *hwif = hwdev->hwif; local
350 struct hinic_hwif *hwif = hwdev->hwif; local
385 struct hinic_hwif *hwif = hwdev->hwif; local
410 struct hinic_hwif *hwif = hwdev->hwif; local
442 struct hinic_hwif *hwif = hwdev->hwif; local
556 struct hinic_hwif *hwif = hwdev->hwif; local
593 struct hinic_hwif *hwif; local
740 struct hinic_hwif *hwif = hwdev->hwif; local
909 struct hinic_hwif *hwif; local
1135 struct hinic_hwif *hwif = hwdev->hwif; local
[all...]
H A Dhinic_hw_api_cmd.c92 struct hinic_hwif *hwif = chain->hwif; local
96 prod_idx = hinic_hwif_read_reg(hwif, addr);
102 hinic_hwif_write_reg(hwif, addr, prod_idx);
110 val = hinic_hwif_read_reg(chain->hwif, addr);
120 val = hinic_hwif_read_reg(chain->hwif, addr);
122 dev_err(&chain->hwif->pdev->dev, "Chain type: 0x%x, cpld error: 0x%x, check error: 0x%x, current fsm: 0x%x\n",
127 dev_err(&chain->hwif->pdev->dev, "Chain hw current ci: 0x%x\n",
131 val = hinic_hwif_read_reg(chain->hwif, addr);
132 dev_err(&chain->hwif
143 struct hinic_hwif *hwif = chain->hwif; local
228 struct hinic_hwif *hwif = chain->hwif; local
290 struct hinic_hwif *hwif = chain->hwif; local
348 struct hinic_hwif *hwif = chain->hwif; local
436 struct hinic_hwif *hwif = chain->hwif; local
471 struct hinic_hwif *hwif = chain->hwif; local
501 struct hinic_hwif *hwif = chain->hwif; local
519 struct hinic_hwif *hwif = chain->hwif; local
533 struct hinic_hwif *hwif = chain->hwif; local
551 struct hinic_hwif *hwif = chain->hwif; local
574 struct hinic_hwif *hwif = chain->hwif; local
602 struct hinic_hwif *hwif = chain->hwif; local
624 struct hinic_hwif *hwif = chain->hwif; local
672 struct hinic_hwif *hwif = chain->hwif; local
729 struct hinic_hwif *hwif = chain->hwif; local
779 struct hinic_hwif *hwif = chain->hwif; local
815 struct hinic_hwif *hwif = attr->hwif; local
851 struct hinic_hwif *hwif = chain->hwif; local
867 struct hinic_hwif *hwif = attr->hwif; local
927 hinic_api_cmd_init(struct hinic_api_cmd_chain **chain, struct hinic_hwif *hwif) argument
[all...]
H A Dhinic_hw_wq.h23 struct hinic_hwif *hwif; member in struct:hinic_wq
51 struct hinic_hwif *hwif; member in struct:hinic_wqs
74 struct hinic_hwif *hwif; member in struct:hinic_cmdq_pages
78 struct hinic_wq *wq, struct hinic_hwif *hwif,
86 struct hinic_hwif *hwif);
H A Dhinic_hw_mbox.c140 #define MBOX_AREA(hwif) \
141 ((hwif)->cfg_regs_bar + HINIC_FUNC_CSR_MAILBOX_DATA_OFF)
192 dev_warn(&hwdev->hwif->pdev->dev,
201 dev_warn(&hwdev->hwif->pdev->dev,
309 dev_err(&func_to_func->hwif->pdev->dev, "Receive illegal mbox message, mod = %d\n",
323 dev_err(&func_to_func->hwif->pdev->dev, "VF mbox cb is not registered\n");
344 dev_err(&func_to_func->hwif->pdev->dev, "Receive illegal mbox message, mod = %d\n",
356 hinic_glb_pf_vf_offset(func_to_func->hwif);
361 dev_err(&func_to_func->hwif->pdev->dev, "PF mbox mod(0x%x) cb is not registered\n",
398 dev_err(&func_to_func->hwif
[all...]
H A Dhinic_hw_eqs.c198 val = hinic_hwif_read_reg(eq->hwif, addr);
211 hinic_hwif_write_reg(eq->hwif, addr, val);
221 struct hinic_hwif *hwif = aeqs->hwif; local
222 struct pci_dev *pdev = hwif->pdev;
284 struct hinic_hwif *hwif = ceqs->hwif; local
285 struct pci_dev *pdev = hwif->pdev;
393 hinic_msix_attr_cnt_clear(aeq->hwif, aeq->msix_entry.entry);
414 hinic_msix_attr_cnt_clear(ceq->hwif, ce
631 struct hinic_hwif *hwif = eq->hwif; local
697 struct hinic_hwif *hwif = eq->hwif; local
722 init_eq(struct hinic_eq *eq, struct hinic_hwif *hwif, enum hinic_eq_type type, int q_id, u32 q_len, u32 page_size, struct msix_entry entry) argument
860 hinic_aeqs_init(struct hinic_aeqs *aeqs, struct hinic_hwif *hwif, int num_aeqs, u32 q_len, u32 page_size, struct msix_entry *msix_entries) argument
918 hinic_ceqs_init(struct hinic_ceqs *ceqs, struct hinic_hwif *hwif, int num_ceqs, u32 q_len, u32 page_size, struct msix_entry *msix_entries) argument
[all...]
H A Dhinic_hw_io.c108 struct hinic_hwif *hwif = func_to_io->hwif; local
110 struct pci_dev *pdev = hwif->pdev;
152 struct hinic_hwif *hwif = func_to_io->hwif; local
154 struct pci_dev *pdev = hwif->pdev;
211 struct hinic_hwif *hwif = func_to_io->hwif; local
213 struct pci_dev *pdev = hwif->pdev;
276 struct hinic_hwif *hwif local
376 struct hinic_hwif *hwif = func_to_io->hwif; local
470 struct hinic_hwif *hwif = func_to_io->hwif; local
528 hinic_io_init(struct hinic_func_to_io *func_to_io, struct hinic_hwif *hwif, u16 max_qps, int num_ceqs, struct msix_entry *ceq_msix_entries) argument
[all...]
H A Dhinic_hw_wq.c95 * @hwif: HW interface for allocating DMA
103 static int queue_alloc_page(struct hinic_hwif *hwif, u64 **vaddr, u64 *paddr, argument
106 struct pci_dev *pdev = hwif->pdev;
139 return queue_alloc_page(wqs->hwif, &wqs->page_vaddr[page_idx],
152 struct hinic_hwif *hwif = wqs->hwif; local
153 struct pci_dev *pdev = hwif->pdev;
169 return queue_alloc_page(cmdq_pages->hwif, &cmdq_pages->page_vaddr,
181 struct hinic_hwif *hwif = cmdq_pages->hwif; local
192 struct hinic_hwif *hwif = wqs->hwif; local
223 struct hinic_hwif *hwif = wqs->hwif; local
304 hinic_wqs_alloc(struct hinic_wqs *wqs, int max_wqs, struct hinic_hwif *hwif) argument
358 struct hinic_hwif *hwif = wqs->hwif; local
378 struct hinic_hwif *hwif = wq->hwif; local
404 struct hinic_hwif *hwif = wq->hwif; local
417 free_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, int num_q_pages) argument
444 alloc_wq_pages(struct hinic_wq *wq, struct hinic_hwif *hwif, int max_pages) argument
507 struct hinic_hwif *hwif = wqs->hwif; local
599 hinic_wqs_cmdq_alloc(struct hinic_cmdq_pages *cmdq_pages, struct hinic_wq *wq, struct hinic_hwif *hwif, int cmdq_blocks, u16 wqebb_size, u32 wq_page_size, u16 q_depth, u16 max_wqe_size) argument
[all...]
H A Dhinic_hw_mgmt.c132 struct hinic_hwif *hwif = pf_to_mgmt->hwif; local
143 HINIC_MSG_HEADER_SET(HINIC_HWIF_PCI_INTF(hwif), PCI_INTF) |
144 HINIC_MSG_HEADER_SET(HINIC_HWIF_PF_IDX(hwif), PF_IDX) |
252 struct hinic_hwif *hwif = pf_to_mgmt->hwif; local
253 struct pci_dev *pdev = hwif->pdev;
355 struct hinic_hwif *hwif = pf_to_mgmt->hwif; local
356 struct pci_dev *pdev = hwif
490 struct hinic_hwif *hwif = pf_to_mgmt->hwif; local
552 struct hinic_hwif *hwif = pf_to_mgmt->hwif; local
576 struct hinic_hwif *hwif = pf_to_mgmt->hwif; local
616 hinic_pf_to_mgmt_init(struct hinic_pf_to_mgmt *pf_to_mgmt, struct hinic_hwif *hwif) argument
[all...]
H A Dhinic_devlink.c33 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong fw_magic read from file, fw_magic: 0x%x\n",
39 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong fw_type_num read from file, fw_type_num: 0x%x\n",
51 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong data size read from file\n");
73 dev_err(&priv->hwdev->hwif->pdev->dev, "Duplicate section type: %u\n",
92 dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid: 0x%x or 0x%lx, current: 0x%x\n",
96 dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid:0x%x, current: 0x%x\n",
108 dev_err(&priv->hwdev->hwif->pdev->dev, "Get board info failed\n");
115 dev_err(&priv->hwdev->hwif->pdev->dev, "The device type of upgrade file doesn't match the device type of current firmware, please check the upgrade file\n");
116 dev_err(&priv->hwdev->hwif->pdev->dev, "The image device type: 0x%x, firmware device type: 0x%x\n",
223 dev_err(&priv->hwdev->hwif
[all...]
H A Dhinic_sriov.c44 dev_err(&hwdev->func_to_io.hwif->pdev->dev, "Failed to set MAC, err: %d, status: 0x%x, out size: 0x%x\n",
62 link.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id;
68 dev_err(&hwdev->hwif->pdev->dev,
114 vf_vlan.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id;
126 dev_err(&hwdev->hwif->pdev->dev, "Failed to set VF %d vlan, err: %d, status: 0x%x, out size: 0x%x\n",
142 rate_cfg.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id;
150 dev_err(&hwdev->hwif->pdev->dev, "Failed to set VF(%d) max rate(%d), min rate(%d), err: %d, status: 0x%x, out size: 0x%x\n",
172 rate_cfg.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id;
178 dev_err(&hwdev->hwif->pdev->dev, "Failed to set VF(%d) rate(%d), err: %d, status: 0x%x, out size: 0x%x\n",
203 dev_err(&hwdev->hwif
[all...]
H A Dhinic_hw_cmdq.c129 struct hinic_hwif *hwif = cmdqs->hwif; local
130 struct pci_dev *pdev = hwif->pdev;
485 struct hinic_hwif *hwif = cmdqs->hwif; local
486 struct pci_dev *pdev = hwif->pdev;
511 struct hinic_hwif *hwif = cmdqs->hwif; local
512 struct pci_dev *pdev = hwif->pdev;
677 struct hinic_hwif *hwif local
789 struct hinic_hwif *hwif = hwdev->hwif; local
875 hinic_init_cmdqs(struct hinic_cmdqs *cmdqs, struct hinic_hwif *hwif, void __iomem **db_area) argument
947 struct hinic_hwif *hwif = cmdqs->hwif; local
[all...]
H A Dhinic_hw_io.h60 struct hinic_hwif *hwif; member in struct:hinic_func_to_io
118 struct hinic_hwif *hwif, u16 max_qps, int num_ceqs,
H A Dhinic_hw_eqs.h174 struct hinic_hwif *hwif; member in struct:hinic_eq
206 struct hinic_hwif *hwif; member in struct:hinic_aeqs
223 struct hinic_hwif *hwif; member in struct:hinic_ceqs
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,
H A Dhinic_hw_api_cmd.h126 struct hinic_hwif *hwif; member in struct:hinic_api_cmd_chain_attr
173 struct hinic_hwif *hwif; member in struct:hinic_api_cmd_chain
199 struct hinic_hwif *hwif);
H A Dhinic_debugfs.c98 read_data->lt_index = HINIC_HWIF_FUNC_IDX(nic_dev->hwdev->hwif);
258 if (HINIC_IS_VF(dev->hwdev->hwif))
267 if (!HINIC_IS_VF(dev->hwdev->hwif) && dev->dbg)
293 if (!HINIC_IS_VF(nic_dev->hwdev->hwif))
299 if (!HINIC_IS_VF(nic_dev->hwdev->hwif))
305 nic_dev->dbgfs_root = debugfs_create_dir(pci_name(nic_dev->hwdev->hwif->pdev),
H A Dhinic_hw_qp.c272 * @hwif: HW Interface for accessing HW
281 int hinic_init_sq(struct hinic_sq *sq, struct hinic_hwif *hwif, argument
286 sq->hwif = hwif;
318 struct hinic_hwif *hwif = rq->hwif; local
319 struct pci_dev *pdev = hwif->pdev;
362 struct hinic_hwif *hwif = rq->hwif; local
363 struct pci_dev *pdev = hwif
384 hinic_init_rq(struct hinic_rq *rq, struct hinic_hwif *hwif, struct hinic_wq *wq, struct msix_entry *entry) argument
437 struct hinic_hwif *hwif = rq->hwif; local
[all...]
H A Dhinic_hw_qp.h80 struct hinic_hwif *hwif; member in struct:hinic_sq
99 struct hinic_hwif *hwif; member in struct:hinic_rq
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,
H A Dhinic_hw_mgmt.h130 struct hinic_hwif *hwif; member in struct:hinic_pf_to_mgmt
177 struct hinic_hwif *hwif);
/linux-master/drivers/scsi/bfa/
H A Dbfa_hw_cb.c169 bfa->iocfc.hwif.hw_reqq_ack = bfa_hwcb_reqq_ack_msix;
170 bfa->iocfc.hwif.hw_rspq_ack = bfa_hwcb_rspq_ack_msix;
172 bfa->iocfc.hwif.hw_reqq_ack = NULL;
173 bfa->iocfc.hwif.hw_rspq_ack = bfa_hwcb_rspq_ack;
H A Dbfa.h262 struct bfa_hwif_s hwif; member in struct:bfa_iocfc_s
283 ((__bfa)->iocfc.hwif.hw_msix_init(__bfa, __nvecs))
285 ((__bfa)->iocfc.hwif.hw_msix_ctrl_install(__bfa))
287 ((__bfa)->iocfc.hwif.hw_msix_queue_install(__bfa))
289 ((__bfa)->iocfc.hwif.hw_msix_uninstall(__bfa))
291 ((__bfa)->iocfc.hwif.hw_rspq_ack(__bfa, __queue, __ci))
293 if ((__bfa)->iocfc.hwif.hw_reqq_ack) \
294 (__bfa)->iocfc.hwif.hw_reqq_ack(__bfa, __queue); \
297 if ((__bfa)->iocfc.hwif.hw_isr_mode_set) \
298 (__bfa)->iocfc.hwif
[all...]
H A Dbfa_core.c886 bfa_isr_reqq(bfa, vec - bfa->iocfc.hwif.cpe_vec_q0);
902 bfa_isr_rspq(bfa, vec - bfa->iocfc.hwif.rme_vec_q0);
1049 iocfc->hwif.hw_reginit = bfa_hwct_reginit;
1050 iocfc->hwif.hw_reqq_ack = bfa_hwct_reqq_ack;
1051 iocfc->hwif.hw_rspq_ack = bfa_hwct_rspq_ack;
1052 iocfc->hwif.hw_msix_init = bfa_hwct_msix_init;
1053 iocfc->hwif.hw_msix_ctrl_install = bfa_hwct_msix_ctrl_install;
1054 iocfc->hwif.hw_msix_queue_install = bfa_hwct_msix_queue_install;
1055 iocfc->hwif.hw_msix_uninstall = bfa_hwct_msix_uninstall;
1056 iocfc->hwif
[all...]
H A Dbfa_ioc_ct.c503 bfa_ioc_set_ctx_hwif(struct bfa_ioc_s *ioc, struct bfa_ioc_hwif_s *hwif) argument
505 hwif->ioc_firmware_lock = bfa_ioc_ct_firmware_lock;
506 hwif->ioc_firmware_unlock = bfa_ioc_ct_firmware_unlock;
507 hwif->ioc_notify_fail = bfa_ioc_ct_notify_fail;
508 hwif->ioc_ownership_reset = bfa_ioc_ct_ownership_reset;
509 hwif->ioc_sync_start = bfa_ioc_ct_sync_start;
510 hwif->ioc_sync_join = bfa_ioc_ct_sync_join;
511 hwif->ioc_sync_leave = bfa_ioc_ct_sync_leave;
512 hwif->ioc_sync_ack = bfa_ioc_ct_sync_ack;
513 hwif
[all...]

Completed in 220 milliseconds

12