Lines Matching refs:hwif
39 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() local
41 struct pci_dev *pdev = hwif->pdev; in change_mac()
50 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in change_mac()
59 (port_mac_cmd.status != HINIC_PF_SET_VF_ALREADY || !HINIC_IS_VF(hwif)) && in change_mac()
118 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() local
120 struct pci_dev *pdev = hwif->pdev; in hinic_port_get_mac()
123 port_mac_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_mac()
149 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() local
151 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_mtu()
154 port_mtu_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_mtu()
181 port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_add_vlan()
201 port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_del_vlan()
221 rx_mode_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_set_rx_mode()
240 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_link_state() local
242 struct pci_dev *pdev = hwif->pdev; in hinic_port_link_state()
246 link_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_link_state()
272 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_state() local
273 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_state()
277 if (HINIC_IS_VF(hwdev->hwif)) in hinic_port_set_state()
306 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_func_state() local
307 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_func_state()
311 func_state.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_func_state()
337 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_cap() local
338 struct pci_dev *pdev = hwif->pdev; in hinic_port_get_cap()
342 port_cap->func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_get_cap()
367 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_tso() local
369 struct pci_dev *pdev = hwif->pdev; in hinic_port_set_tso()
373 tso_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_tso()
394 struct hinic_hwif *hwif; in hinic_set_rx_csum_offload() local
401 hwif = hwdev->hwif; in hinic_set_rx_csum_offload()
402 pdev = hwif->pdev; in hinic_set_rx_csum_offload()
403 rx_csum_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_csum_offload()
423 struct hinic_hwif *hwif; in hinic_set_rx_vlan_offload() local
432 hwif = hwdev->hwif; in hinic_set_rx_vlan_offload()
433 pdev = hwif->pdev; in hinic_set_rx_vlan_offload()
434 vlan_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_vlan_offload()
453 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_vlan_fliter() local
454 struct pci_dev *pdev = hwif->pdev; in hinic_set_vlan_fliter()
462 vlan_filter.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_vlan_fliter()
471 HINIC_IS_VF(hwif)) { in hinic_set_vlan_fliter()
486 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_max_qnum() local
488 struct pci_dev *pdev = hwif->pdev; in hinic_set_max_qnum()
492 rq_num.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_max_qnum()
514 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_rx_lro() local
515 struct pci_dev *pdev = hwif->pdev; in hinic_set_rx_lro()
519 lro_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_lro()
541 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_rx_lro_timer() local
542 struct pci_dev *pdev = hwif->pdev; in hinic_set_rx_lro_timer()
590 if (HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_set_rx_lro_state()
607 struct hinic_hwif *hwif; in hinic_rss_set_indir_tbl() local
616 hwif = hwdev->hwif; in hinic_rss_set_indir_tbl()
617 pdev = hwif->pdev; in hinic_rss_set_indir_tbl()
676 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_get_indir_tbl() local
677 struct pci_dev *pdev = hwif->pdev; in hinic_rss_get_indir_tbl()
681 rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_indir_tbl()
708 struct hinic_hwif *hwif; in hinic_set_rss_type() local
716 hwif = hwdev->hwif; in hinic_set_rss_type()
717 pdev = hwif->pdev; in hinic_set_rss_type()
767 struct hinic_hwif *hwif; in hinic_get_rss_type() local
774 hwif = hwdev->hwif; in hinic_get_rss_type()
775 pdev = hwif->pdev; in hinic_get_rss_type()
777 ctx_tbl.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_get_rss_type()
806 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_set_template_tbl() local
808 struct pci_dev *pdev = hwif->pdev; in hinic_rss_set_template_tbl()
812 rss_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_set_template_tbl()
835 struct hinic_hwif *hwif; in hinic_rss_get_template_tbl() local
842 hwif = hwdev->hwif; in hinic_rss_get_template_tbl()
843 pdev = hwif->pdev; in hinic_rss_get_template_tbl()
845 temp_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_template_tbl()
867 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_set_hash_engine() local
868 struct pci_dev *pdev = hwif->pdev; in hinic_rss_set_hash_engine()
872 rss_engine.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_set_hash_engine()
894 struct hinic_hwif *hwif; in hinic_rss_get_hash_engine() local
901 hwif = hwdev->hwif; in hinic_rss_get_hash_engine()
902 pdev = hwif->pdev; in hinic_rss_get_hash_engine()
904 hash_type.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_hash_engine()
924 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_cfg() local
925 struct pci_dev *pdev = hwif->pdev; in hinic_rss_cfg()
929 rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_cfg()
951 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_template_alloc() local
953 struct pci_dev *pdev = hwif->pdev; in hinic_rss_template_alloc()
956 template_mgmt.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_template_alloc()
977 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_template_free() local
979 struct pci_dev *pdev = hwif->pdev; in hinic_rss_template_free()
982 template_mgmt.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_template_free()
1004 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_vport_stats() local
1006 struct pci_dev *pdev = hwif->pdev; in hinic_get_vport_stats()
1010 stats_info.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_get_vport_stats()
1032 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_phy_port_stats() local
1035 struct pci_dev *pdev = hwif->pdev; in hinic_get_phy_port_stats()
1069 struct hinic_hwif *hwif; in hinic_get_mgmt_version() local
1076 hwif = hwdev->hwif; in hinic_get_mgmt_version()
1077 pdev = hwif->pdev; in hinic_get_mgmt_version()
1103 link_mode->func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_get_link_mode()
1110 dev_err(&hwdev->hwif->pdev->dev, in hinic_get_link_mode()
1128 autoneg.func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_set_autoneg()
1135 dev_err(&hwdev->hwif->pdev->dev, "Failed to %s autoneg, err: %d, status: 0x%x, out size: 0x%x\n", in hinic_set_autoneg()
1153 speed_info.func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_set_speed()
1160 dev_err(&hwdev->hwif->pdev->dev, in hinic_set_speed()
1179 dev_err(&hwdev->hwif->pdev->dev, in hinic_set_link_settings()
1194 pause_info->func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_get_hw_pause_info()
1200 …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()
1214 pause_info->func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_set_hw_pause_info()
1220 …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()
1235 if (HINIC_IS_VF(hwdev->hwif)) in hinic_dcb_set_pfc()
1240 pfc.func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_dcb_set_pfc()
1247 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()
1273 dev_err(&hwdev->hwif->pdev->dev, in hinic_set_loopback_mode()
1281 dev_err(&hwdev->hwif->pdev->dev, in hinic_set_loopback_mode()
1312 …dev_err(&hwdev->hwif->pdev->dev, "Failed to set led status, err: %d, status: 0x%x, out size: 0x%x\… in _set_led_status()
1339 dev_err(&hwdev->hwif->pdev->dev, in hinic_reset_led_status()
1357 dev_err(&hwdev->hwif->pdev->dev, in hinic_if_sfp_absent()
1386 dev_err(&hwdev->hwif->pdev->dev, in hinic_get_sfp_eeprom()