Lines Matching refs:hwif
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()
196 port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_add_vlan()
216 port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_del_vlan()
236 rx_mode_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_set_rx_mode()
255 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_link_state() local
257 struct pci_dev *pdev = hwif->pdev; in hinic_port_link_state()
261 link_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_link_state()
287 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_state() local
288 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_state()
292 if (HINIC_IS_VF(hwdev->hwif)) in hinic_port_set_state()
321 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_func_state() local
322 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_func_state()
326 func_state.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_func_state()
352 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_cap() local
353 struct pci_dev *pdev = hwif->pdev; in hinic_port_get_cap()
357 port_cap->func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_cap()
382 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_tso() local
384 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_tso()
388 tso_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_tso()
409 struct hinic_hwif *hwif; in hinic_set_rx_csum_offload() local
416 hwif = hwdev->hwif; in hinic_set_rx_csum_offload()
417 pdev = hwif->pdev; in hinic_set_rx_csum_offload()
418 rx_csum_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_csum_offload()
438 struct hinic_hwif *hwif; in hinic_set_rx_vlan_offload() local
447 hwif = hwdev->hwif; in hinic_set_rx_vlan_offload()
448 pdev = hwif->pdev; in hinic_set_rx_vlan_offload()
449 vlan_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_vlan_offload()
468 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_max_qnum() local
470 struct pci_dev *pdev = hwif->pdev; in hinic_set_max_qnum()
474 rq_num.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_max_qnum()
496 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_rx_lro() local
497 struct pci_dev *pdev = hwif->pdev; in hinic_set_rx_lro()
501 lro_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_lro()
523 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_rx_lro_timer() local
524 struct pci_dev *pdev = hwif->pdev; in hinic_set_rx_lro_timer()
572 if (HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_set_rx_lro_state()
589 struct hinic_hwif *hwif; in hinic_rss_set_indir_tbl() local
598 hwif = hwdev->hwif; in hinic_rss_set_indir_tbl()
599 pdev = hwif->pdev; in hinic_rss_set_indir_tbl()
658 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_get_indir_tbl() local
659 struct pci_dev *pdev = hwif->pdev; in hinic_rss_get_indir_tbl()
663 rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_indir_tbl()
690 struct hinic_hwif *hwif; in hinic_set_rss_type() local
698 hwif = hwdev->hwif; in hinic_set_rss_type()
699 pdev = hwif->pdev; in hinic_set_rss_type()
749 struct hinic_hwif *hwif; in hinic_get_rss_type() local
756 hwif = hwdev->hwif; in hinic_get_rss_type()
757 pdev = hwif->pdev; in hinic_get_rss_type()
759 ctx_tbl.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_get_rss_type()
788 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_set_template_tbl() local
790 struct pci_dev *pdev = hwif->pdev; in hinic_rss_set_template_tbl()
794 rss_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_set_template_tbl()
817 struct hinic_hwif *hwif; in hinic_rss_get_template_tbl() local
824 hwif = hwdev->hwif; in hinic_rss_get_template_tbl()
825 pdev = hwif->pdev; in hinic_rss_get_template_tbl()
827 temp_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_template_tbl()
849 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_set_hash_engine() local
850 struct pci_dev *pdev = hwif->pdev; in hinic_rss_set_hash_engine()
854 rss_engine.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_set_hash_engine()
876 struct hinic_hwif *hwif; in hinic_rss_get_hash_engine() local
883 hwif = hwdev->hwif; in hinic_rss_get_hash_engine()
884 pdev = hwif->pdev; in hinic_rss_get_hash_engine()
886 hash_type.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_hash_engine()
906 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_cfg() local
907 struct pci_dev *pdev = hwif->pdev; in hinic_rss_cfg()
911 rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_cfg()
933 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_template_alloc() local
935 struct pci_dev *pdev = hwif->pdev; in hinic_rss_template_alloc()
938 template_mgmt.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_template_alloc()
959 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_template_free() local
961 struct pci_dev *pdev = hwif->pdev; in hinic_rss_template_free()
964 template_mgmt.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_template_free()
986 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_vport_stats() local
988 struct pci_dev *pdev = hwif->pdev; in hinic_get_vport_stats()
992 stats_info.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_get_vport_stats()
1014 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_phy_port_stats() local
1017 struct pci_dev *pdev = hwif->pdev; in hinic_get_phy_port_stats()
1051 struct hinic_hwif *hwif; in hinic_get_mgmt_version() local
1058 hwif = hwdev->hwif; in hinic_get_mgmt_version()
1059 pdev = hwif->pdev; in hinic_get_mgmt_version()
1085 link_mode->func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_get_link_mode()
1092 dev_err(&hwdev->hwif->pdev->dev, in hinic_get_link_mode()
1110 autoneg.func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_set_autoneg()
1117 dev_err(&hwdev->hwif->pdev->dev, "Failed to %s autoneg, err: %d, status: 0x%x, out size: 0x%x\n", in hinic_set_autoneg()
1135 speed_info.func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_set_speed()
1142 dev_err(&hwdev->hwif->pdev->dev, in hinic_set_speed()
1161 dev_err(&hwdev->hwif->pdev->dev, in hinic_set_link_settings()
1176 pause_info->func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_get_hw_pause_info()
1182 …dev_err(&hwdev->hwif->pdev->dev, "Failed to get pause info, err: %d, status: 0x%x, out size: 0x%x\… in hinic_get_hw_pause_info()
1196 pause_info->func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_set_hw_pause_info()
1202 …dev_err(&hwdev->hwif->pdev->dev, "Failed to set pause info, err: %d, status: 0x%x, out size: 0x%x\… in hinic_set_hw_pause_info()
1217 if (HINIC_IS_VF(hwdev->hwif)) in hinic_dcb_set_pfc()
1222 pfc.func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_dcb_set_pfc()
1229 dev_err(&hwdev->hwif->pdev->dev, "Failed to %s pfc, err: %d, status: 0x%x, out size: 0x%x\n", in hinic_dcb_set_pfc()
1255 dev_err(&hwdev->hwif->pdev->dev, in hinic_set_loopback_mode()
1263 dev_err(&hwdev->hwif->pdev->dev, in hinic_set_loopback_mode()
1294 …dev_err(&hwdev->hwif->pdev->dev, "Failed to set led status, err: %d, status: 0x%x, out size: 0x%x\… in _set_led_status()
1321 dev_err(&hwdev->hwif->pdev->dev, in hinic_reset_led_status()
1339 dev_err(&hwdev->hwif->pdev->dev, in hinic_if_sfp_absent()
1368 dev_err(&hwdev->hwif->pdev->dev, in hinic_get_sfp_eeprom()