Home
last modified time | relevance | path

Searched refs:hwif (Results 1 – 10 of 10) sorted by relevance

/f-stack/dpdk/drivers/net/hinic/base/
H A Dhinic_pmd_hwif.c251 struct hinic_hwif *hwif = ((struct hinic_hwdev *)hwdev)->hwif; in hinic_free_db_addr() local
259 struct hinic_hwif *hwif = ((struct hinic_hwdev *)hwdev)->hwif; in hinic_alloc_db_addr() local
275 struct hinic_hwif *hwif = hw->hwif; in hinic_set_msix_state() local
403 hwif = hwdev->hwif; in hinic_init_hwif()
431 set_ppf(hwif); in hinic_init_hwif()
450 struct hinic_hwif *hwif = hwdev->hwif; in hinic_parse_hwif_attr() local
456 hwif->attr.port_to_port_idx, hwif->attr.pci_intf_idx, in hinic_parse_hwif_attr()
457 hwif->attr.vf_in_pf, hwif->attr.ppf_idx, in hinic_parse_hwif_attr()
458 hwif->attr.global_vf_id_of_pf, hwif->attr.func_type); in hinic_parse_hwif_attr()
460 hwif->attr.num_aeqs, hwif->attr.num_ceqs, in hinic_parse_hwif_attr()
[all …]
H A Dhinic_pmd_hwif.h10 #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs) argument
11 #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs) argument
12 #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs) argument
13 #define HINIC_HWIF_GLOBAL_IDX(hwif) ((hwif)->attr.func_global_idx) argument
14 #define HINIC_HWIF_GLOBAL_VF_OFFSET(hwif) ((hwif)->attr.global_vf_id_of_pf) argument
15 #define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx) argument
16 #define HINIC_PCI_INTF_IDX(hwif) ((hwif)->attr.pci_intf_idx) argument
83 return be32_to_cpu(readl(hwif->cfg_regs_base + reg)); in hinic_hwif_read_reg()
89 writel(cpu_to_be32(val), hwif->cfg_regs_base + reg); in hinic_hwif_write_reg()
100 void hinic_enable_doorbell(struct hinic_hwif *hwif);
[all …]
H A Dhinic_pmd_api_cmd.c81 struct hinic_hwif *hwif = chain->hwdev->hwif; in set_prod_idx() local
440 struct hinic_hwif *hwif = chain->hwdev->hwif; in api_cmd_hw_restart() local
476 struct hinic_hwif *hwif = chain->hwdev->hwif; in api_cmd_ctrl_init() local
503 struct hinic_hwif *hwif = chain->hwdev->hwif; in api_cmd_set_status_addr() local
508 hinic_hwif_write_reg(hwif, addr, val); in api_cmd_set_status_addr()
512 hinic_hwif_write_reg(hwif, addr, val); in api_cmd_set_status_addr()
521 struct hinic_hwif *hwif = chain->hwdev->hwif; in api_cmd_set_num_cells() local
526 hinic_hwif_write_reg(hwif, addr, val); in api_cmd_set_num_cells()
535 struct hinic_hwif *hwif = chain->hwdev->hwif; in api_cmd_head_init() local
554 struct hinic_hwif *hwif = chain->hwdev->hwif; in wait_for_ready_chain() local
[all …]
H A Dhinic_pmd_eqs.c156 struct hinic_hwif *hwif = eq->hwdev->hwif; in set_aeq_ctrls() local
159 u32 pci_intf_idx = HINIC_PCI_INTF_IDX(hwif); in set_aeq_ctrls()
164 val = hinic_hwif_read_reg(hwif, addr); in set_aeq_ctrls()
178 hinic_hwif_write_reg(hwif, addr, val); in set_aeq_ctrls()
190 hinic_hwif_write_reg(hwif, addr, ctrl1); in set_aeq_ctrls()
217 struct hinic_hwif *hwif = eq->hwdev->hwif; in alloc_eq_pages() local
249 hinic_hwif_write_reg(hwif, in alloc_eq_pages()
254 hinic_hwif_write_reg(hwif, in alloc_eq_pages()
320 hinic_hwif_write_reg(eq->hwdev->hwif, in init_aeq()
378 hinic_hwif_write_reg(eq->hwdev->hwif, in remove_aeq()
[all …]
H A Dhinic_pmd_mbox.c128 #define MBOX_AREA(hwif) \ argument
304 u16 aeq_num = HINIC_HWIF_NUM_AEQS(hwdev->hwif); in mbox_msg_ack_aeqn()
354 hinic_hwif_write_reg(func_to_func->hwdev->hwif, in write_mbox_msg_attr()
365 hinic_hwif_write_reg(func_to_func->hwdev->hwif, in write_mbox_msg_attr()
435 send_mbox->data = MBOX_AREA(func_to_func->hwdev->hwif); in prepare_send_mbox()
442 struct hinic_hwif *hwif = hwdev->hwif; in alloc_mbox_wb_status() local
465 struct hinic_hwif *hwif = hwdev->hwif; in free_mbox_wb_status() local
587 val = hinic_hwif_read_reg(hwdev->hwif, in dump_mox_reg()
590 val = hinic_hwif_read_reg(hwdev->hwif, in dump_mox_reg()
809 struct hinic_hwif *hwif = ((struct hinic_hwdev *)hwdev)->hwif; in hinic_pf_id_of_vf() local
[all …]
H A Dhinic_pmd_hwdev.c470 status = hinic_get_pf_status(hwif); in wait_for_flr_finish()
564 struct hinic_hwif *hwif = hwdev->hwif; in hinic_pf_rx_tx_flush() local
579 hinic_disable_doorbell(hwif); in hinic_pf_rx_tx_flush()
584 clear_db.ppf_idx = HINIC_HWIF_PPF_IDX(hwif); in hinic_pf_rx_tx_flush()
597 clr_res.func_idx = HINIC_HWIF_GLOBAL_IDX(hwif); in hinic_pf_rx_tx_flush()
598 clr_res.ppf_idx = HINIC_HWIF_PPF_IDX(hwif); in hinic_pf_rx_tx_flush()
608 err = wait_for_flr_finish(hwif); in hinic_pf_rx_tx_flush()
614 hinic_enable_doorbell(hwif); in hinic_pf_rx_tx_flush()
779 val = hinic_hwif_read_reg(hwdev->hwif, addr); in set_pf_dma_attr_entry()
793 hinic_hwif_write_reg(hwdev->hwif, addr, val); in set_pf_dma_attr_entry()
[all …]
H A Dhinic_pmd_mgmt.c110 struct hinic_hwif *hwif = pf_to_mgmt->hwdev->hwif; in prepare_header() local
121 HINIC_MSG_HEADER_SET(HINIC_PCI_INTF_IDX(hwif), PCI_INTF_IDX) | in prepare_header()
122 HINIC_MSG_HEADER_SET(hwif->attr.port_to_port_idx, P2P_IDX) | in prepare_header()
253 struct hinic_hwif *hwif = ((struct hinic_hwdev *)hwdev)->hwif; in hinic_get_mgmt_channel_status() local
259 val = hinic_hwif_read_reg(hwif, HINIC_ICPL_RESERVD_ADDR); in hinic_get_mgmt_channel_status()
H A Dhinic_pmd_hwdev.h438 struct hinic_hwif *hwif; member
H A Dhinic_pmd_cmdq.c708 cmdq_ctxt->func_idx = HINIC_HWIF_GLOBAL_IDX(hwdev->hwif); in cmdq_init_queue_ctxt()
709 cmdq_ctxt->ppf_idx = HINIC_HWIF_PPF_IDX(hwdev->hwif); in cmdq_init_queue_ctxt()
/f-stack/dpdk/drivers/net/hinic/
H A Dhinic_pmd_ethdev.c1032 hinic_set_pf_status(nic_dev->hwdev->hwif, HINIC_PF_STATUS_ACTIVE_FLAG); in hinic_dev_start()
1061 hinic_set_pf_status(nic_dev->hwdev->hwif, HINIC_PF_STATUS_INIT); in hinic_dev_start()