Lines Matching refs:hw_dev

262 	struct hinic_hwdev *hw_dev = hwdev;  in hinic_register_vf_msg_handler()  local
266 nic_io = &hw_dev->func_to_io; in hinic_register_vf_msg_handler()
268 dev_err(&hw_dev->hwif->pdev->dev, "Register VF id %d exceed limit[0-%d]\n", in hinic_register_vf_msg_handler()
275 err = hinic_init_vf_config(hw_dev, vf_id); in hinic_register_vf_msg_handler()
290 struct hinic_hwdev *hw_dev = hwdev; in hinic_unregister_vf_msg_handler() local
293 nic_io = &hw_dev->func_to_io; in hinic_unregister_vf_msg_handler()
307 struct hinic_hwdev *hw_dev = hwdev; in hinic_change_vf_mtu_msg_handler() local
313 dev_err(&hw_dev->hwif->pdev->dev, "Failed to set VF %u mtu\n", in hinic_change_vf_mtu_msg_handler()
346 struct hinic_hwdev *hw_dev = hwdev; in hinic_set_vf_mac_msg_handler() local
351 nic_io = &hw_dev->func_to_io; in hinic_set_vf_mac_msg_handler()
355 dev_warn(&hw_dev->hwif->pdev->dev, "PF has already set VF %d MAC address\n", in hinic_set_vf_mac_msg_handler()
362 err = hinic_port_msg_cmd(hw_dev, HINIC_PORT_CMD_SET_MAC, buf_in, in hinic_set_vf_mac_msg_handler()
365 dev_err(&hw_dev->hwif->pdev->dev, in hinic_set_vf_mac_msg_handler()
380 struct hinic_hwdev *hw_dev = hwdev; in hinic_del_vf_mac_msg_handler() local
385 nic_io = &hw_dev->func_to_io; in hinic_del_vf_mac_msg_handler()
389 dev_warn(&hw_dev->hwif->pdev->dev, "PF has already set VF mac.\n"); in hinic_del_vf_mac_msg_handler()
395 err = hinic_port_msg_cmd(hw_dev, HINIC_PORT_CMD_DEL_MAC, buf_in, in hinic_del_vf_mac_msg_handler()
398 …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()
411 struct hinic_hwdev *hw_dev = hwdev; in hinic_get_vf_link_status_msg_handler() local
416 nic_io = &hw_dev->func_to_io; in hinic_get_vf_link_status_msg_handler()