Lines Matching refs:hw_dev

261 	struct hinic_hwdev *hw_dev = hwdev;  in hinic_register_vf_msg_handler()  local
265 nic_io = &hw_dev->func_to_io; in hinic_register_vf_msg_handler()
267 dev_err(&hw_dev->hwif->pdev->dev, "Register VF id %d exceed limit[0-%d]\n", in hinic_register_vf_msg_handler()
274 err = hinic_init_vf_config(hw_dev, vf_id); in hinic_register_vf_msg_handler()
289 struct hinic_hwdev *hw_dev = hwdev; in hinic_unregister_vf_msg_handler() local
292 nic_io = &hw_dev->func_to_io; in hinic_unregister_vf_msg_handler()
306 struct hinic_hwdev *hw_dev = hwdev; in hinic_change_vf_mtu_msg_handler() local
312 dev_err(&hw_dev->hwif->pdev->dev, "Failed to set VF %u mtu\n", in hinic_change_vf_mtu_msg_handler()
345 struct hinic_hwdev *hw_dev = hwdev; in hinic_set_vf_mac_msg_handler() local
350 nic_io = &hw_dev->func_to_io; in hinic_set_vf_mac_msg_handler()
354 dev_warn(&hw_dev->hwif->pdev->dev, "PF has already set VF %d MAC address\n", in hinic_set_vf_mac_msg_handler()
361 err = hinic_port_msg_cmd(hw_dev, HINIC_PORT_CMD_SET_MAC, buf_in, in hinic_set_vf_mac_msg_handler()
364 dev_err(&hw_dev->hwif->pdev->dev, in hinic_set_vf_mac_msg_handler()
379 struct hinic_hwdev *hw_dev = hwdev; in hinic_del_vf_mac_msg_handler() local
384 nic_io = &hw_dev->func_to_io; in hinic_del_vf_mac_msg_handler()
388 dev_warn(&hw_dev->hwif->pdev->dev, "PF has already set VF mac.\n"); in hinic_del_vf_mac_msg_handler()
394 err = hinic_port_msg_cmd(hw_dev, HINIC_PORT_CMD_DEL_MAC, buf_in, in hinic_del_vf_mac_msg_handler()
397 …dev_err(&hw_dev->hwif->pdev->dev, "Failed to delete VF %d MAC, err: %d, status: 0x%x, out size: 0x… in hinic_del_vf_mac_msg_handler()
410 struct hinic_hwdev *hw_dev = hwdev; in hinic_get_vf_link_status_msg_handler() local
415 nic_io = &hw_dev->func_to_io; in hinic_get_vf_link_status_msg_handler()