Lines Matching refs:hwdev
41 struct hinic_hwdev *hwdev = nic_dev->hwdev; in change_mac() local
43 struct hinic_hwif *hwif = hwdev->hwif; in change_mac()
63 err = hinic_port_msg_cmd(hwdev, cmd, &port_mac_cmd, in change_mac()
112 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_mac() local
114 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac()
121 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_MAC, in hinic_port_get_mac()
144 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_mtu() local
146 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu()
165 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_CHANGE_MTU, in hinic_port_set_mtu()
186 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_add_vlan() local
189 port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_add_vlan()
192 return hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_ADD_VLAN, in hinic_port_add_vlan()
206 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_del_vlan() local
209 port_vlan_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_del_vlan()
212 return hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_DEL_VLAN, in hinic_port_del_vlan()
226 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_rx_mode() local
229 rx_mode_cmd.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_port_set_rx_mode()
232 return hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_RX_MODE, in hinic_port_set_rx_mode()
247 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_link_state() local
248 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_link_state()
261 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_LINK_STATE, in hinic_port_link_state()
283 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_state() local
285 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_state()
297 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_PORT_STATE, in hinic_port_set_state()
320 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_func_state() local
321 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_func_state()
329 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_FUNC_STATE, in hinic_port_set_func_state()
351 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_cap() local
352 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_cap()
359 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_CAP, in hinic_port_get_cap()
381 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_tso() local
382 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_tso()
391 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_TSO, in hinic_port_set_tso()
407 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_set_rx_csum_offload() local
413 if (!hwdev) in hinic_set_rx_csum_offload()
416 hwif = hwdev->hwif; in hinic_set_rx_csum_offload()
421 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_RX_CSUM, in hinic_set_rx_csum_offload()
436 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_set_rx_vlan_offload() local
443 if (!hwdev) in hinic_set_rx_vlan_offload()
446 hwif = hwdev->hwif; in hinic_set_rx_vlan_offload()
451 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_RX_VLAN_OFFLOAD, in hinic_set_rx_vlan_offload()
466 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_set_max_qnum() local
467 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_max_qnum()
477 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_RQ_IQ_MAP, in hinic_set_max_qnum()
493 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_set_rx_lro() local
494 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_rx_lro()
505 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_LRO, in hinic_set_rx_lro()
520 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_set_rx_lro_timer() local
522 struct hinic_hwif *hwif = hwdev->hwif; in hinic_set_rx_lro_timer()
532 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_LRO_TIMER, in hinic_set_rx_lro_timer()
556 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_set_rx_lro_state() local
561 if (!hwdev) in hinic_set_rx_lro_state()
584 struct hinic_hwdev *hwdev; in hinic_rss_set_indir_tbl() local
592 hwdev = nic_dev->hwdev; in hinic_rss_set_indir_tbl()
593 func_to_io = &hwdev->func_to_io; in hinic_rss_set_indir_tbl()
594 hwif = hwdev->hwif; in hinic_rss_set_indir_tbl()
653 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_rss_get_indir_tbl() local
654 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_get_indir_tbl()
662 err = hinic_port_msg_cmd(hwdev, in hinic_rss_get_indir_tbl()
685 struct hinic_hwdev *hwdev; in hinic_set_rss_type() local
692 hwdev = nic_dev->hwdev; in hinic_set_rss_type()
693 func_to_io = &hwdev->func_to_io; in hinic_set_rss_type()
694 hwif = hwdev->hwif; in hinic_set_rss_type()
743 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_rss_type() local
749 if (!hwdev || !rss_type) in hinic_get_rss_type()
752 hwif = hwdev->hwif; in hinic_get_rss_type()
758 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_RSS_CTX_TBL, in hinic_get_rss_type()
783 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_rss_set_template_tbl() local
784 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_set_template_tbl()
794 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_RSS_TEMPLATE_TBL, in hinic_rss_set_template_tbl()
811 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_rss_get_template_tbl() local
817 if (!hwdev || !temp) in hinic_rss_get_template_tbl()
820 hwif = hwdev->hwif; in hinic_rss_get_template_tbl()
826 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_RSS_TEMPLATE_TBL, in hinic_rss_get_template_tbl()
844 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_rss_set_hash_engine() local
845 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_set_hash_engine()
854 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_RSS_HASH_ENGINE, in hinic_rss_set_hash_engine()
870 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_rss_get_hash_engine() local
876 if (!hwdev || !type) in hinic_rss_get_hash_engine()
879 hwif = hwdev->hwif; in hinic_rss_get_hash_engine()
885 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_RSS_HASH_ENGINE, in hinic_rss_get_hash_engine()
900 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_rss_cfg() local
902 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_cfg()
912 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_RSS_CFG, in hinic_rss_cfg()
928 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_rss_template_alloc() local
929 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_template_alloc()
937 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_RSS_TEMP_MGR, in hinic_rss_template_alloc()
954 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_rss_template_free() local
955 struct hinic_hwif *hwif = hwdev->hwif; in hinic_rss_template_free()
964 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_RSS_TEMP_MGR, in hinic_rss_template_free()
981 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_vport_stats() local
982 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_vport_stats()
991 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_VPORT_STAT, in hinic_get_vport_stats()
1009 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_phy_port_stats() local
1010 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_phy_port_stats()
1023 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_PORT_STATISTICS, in hinic_get_phy_port_stats()
1044 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_mgmt_version() local
1051 if (!hwdev) in hinic_get_mgmt_version()
1054 hwif = hwdev->hwif; in hinic_get_mgmt_version()
1057 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_MGMT_VERSION, in hinic_get_mgmt_version()