Home
last modified time | relevance | path

Searched refs:hinic_hwdev (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_mbox.h29 bool (*check_cmd)(struct hinic_hwdev *hwdev, u16 src_func_idx,
89 struct hinic_hwdev *hwdev;
131 bool hinic_mbox_check_func_id_8B(struct hinic_hwdev *hwdev, u16 func_idx,
134 bool hinic_mbox_check_cmd_valid(struct hinic_hwdev *hwdev,
139 int hinic_register_pf_mbox_cb(struct hinic_hwdev *hwdev,
143 int hinic_register_vf_mbox_cb(struct hinic_hwdev *hwdev,
147 void hinic_unregister_pf_mbox_cb(struct hinic_hwdev *hwdev,
150 void hinic_unregister_vf_mbox_cb(struct hinic_hwdev *hwdev,
153 int hinic_func_to_func_init(struct hinic_hwdev *hwdev);
155 void hinic_func_to_func_free(struct hinic_hwdev *hwdev);
[all …]
Dhinic_hw_dev.h426 struct hinic_hwdev { struct
464 struct hinic_hwdev hwdev;
610 void hinic_hwdev_cb_register(struct hinic_hwdev *hwdev,
616 void hinic_hwdev_cb_unregister(struct hinic_hwdev *hwdev,
619 int hinic_port_msg_cmd(struct hinic_hwdev *hwdev, enum hinic_port_cmd cmd,
623 int hinic_hilink_msg_cmd(struct hinic_hwdev *hwdev, enum hinic_hilink_cmd cmd,
627 int hinic_hwdev_ifup(struct hinic_hwdev *hwdev, u16 sq_depth, u16 rq_depth);
629 void hinic_hwdev_ifdown(struct hinic_hwdev *hwdev);
631 struct hinic_hwdev *hinic_init_hwdev(struct pci_dev *pdev, struct devlink *devlink);
633 void hinic_free_hwdev(struct hinic_hwdev *hwdev);
[all …]
Dhinic_hw_dev.c51 static int parse_capability(struct hinic_hwdev *hwdev, in parse_capability()
96 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in get_capability()
122 static int get_dev_cap(struct hinic_hwdev *hwdev) in get_dev_cap()
154 static int init_msix(struct hinic_hwdev *hwdev) in init_msix()
189 static void disable_msix(struct hinic_hwdev *hwdev) in disable_msix()
208 int hinic_port_msg_cmd(struct hinic_hwdev *hwdev, enum hinic_port_cmd cmd, in hinic_port_msg_cmd()
220 int hinic_hilink_msg_cmd(struct hinic_hwdev *hwdev, enum hinic_hilink_cmd cmd, in hinic_hilink_msg_cmd()
239 static int init_fw_ctxt(struct hinic_hwdev *hwdev) in init_fw_ctxt()
270 static int set_hw_ioctxt(struct hinic_hwdev *hwdev, unsigned int sq_depth, in set_hw_ioctxt()
299 static int wait_for_outbound_state(struct hinic_hwdev *hwdev) in wait_for_outbound_state()
[all …]
Dhinic_port.c37 struct hinic_hwdev *hwdev = nic_dev->hwdev; in change_mac()
116 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_mac()
147 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_mtu()
178 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_add_vlan()
198 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_del_vlan()
218 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_rx_mode()
239 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_link_state()
270 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_state()
305 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_func_state()
336 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_cap()
[all …]
Dhinic_hw_mbox.c186 static bool check_func_id(struct hinic_hwdev *hwdev, u16 src_func_idx, in check_func_id()
210 bool hinic_mbox_check_func_id_8B(struct hinic_hwdev *hwdev, u16 func_idx, in hinic_mbox_check_func_id_8B()
224 int hinic_register_pf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_register_pf_mbox_cb()
247 int hinic_register_vf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_register_vf_mbox_cb()
268 void hinic_unregister_pf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_unregister_pf_mbox_cb()
287 void hinic_unregister_vf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_unregister_vf_mbox_cb()
514 static int set_vf_mbox_random_id(struct hinic_hwdev *hwdev, u16 func_id) in set_vf_mbox_random_id()
570 struct hinic_hwdev *hwdev = func_to_func->hwdev; in check_vf_mbox_random_id()
626 func_to_func = ((struct hinic_hwdev *)handle)->func_to_func; in hinic_mbox_func_aeqe_handler()
652 func_to_func = ((struct hinic_hwdev *)handle)->func_to_func; in hinic_mbox_self_aeqe_handler()
[all …]
Dhinic_sriov.c29 static int hinic_set_mac(struct hinic_hwdev *hwdev, const u8 *mac_addr, in hinic_set_mac()
52 static void hinic_notify_vf_link_status(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_notify_vf_link_status()
76 void hinic_notify_all_vfs_link_changed(struct hinic_hwdev *hwdev, in hinic_notify_all_vfs_link_changed()
89 static u16 hinic_vf_info_vlanprio(struct hinic_hwdev *hwdev, int vf_id) in hinic_vf_info_vlanprio()
102 static int hinic_set_vf_vlan(struct hinic_hwdev *hwdev, bool add, u16 vid, in hinic_set_vf_vlan()
134 static int hinic_set_vf_tx_rate_max_min(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_set_vf_tx_rate_max_min()
164 static int hinic_set_vf_rate_limit(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_set_vf_rate_limit()
193 static int hinic_set_vf_tx_rate(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_set_vf_tx_rate()
212 static int hinic_init_vf_config(struct hinic_hwdev *hwdev, u16 vf_id) in hinic_init_vf_config()
262 struct hinic_hwdev *hw_dev = hwdev; in hinic_register_vf_msg_handler()
[all …]
Dhinic_sriov.h28 struct hinic_hwdev *hwdev;
96 void hinic_notify_all_vfs_link_changed(struct hinic_hwdev *hwdev,
101 int hinic_vf_func_init(struct hinic_hwdev *hwdev);
103 void hinic_vf_func_free(struct hinic_hwdev *hwdev);
Dhinic_port.h848 int hinic_set_link_settings(struct hinic_hwdev *hwdev,
851 int hinic_get_link_mode(struct hinic_hwdev *hwdev,
854 int hinic_set_autoneg(struct hinic_hwdev *hwdev, bool enable);
856 int hinic_set_speed(struct hinic_hwdev *hwdev, enum nic_speed_level speed);
858 int hinic_get_hw_pause_info(struct hinic_hwdev *hwdev,
861 int hinic_set_hw_pause_info(struct hinic_hwdev *hwdev,
864 int hinic_dcb_set_pfc(struct hinic_hwdev *hwdev, u8 pfc_en, u8 pfc_bitmap);
866 int hinic_set_loopback_mode(struct hinic_hwdev *hwdev, u32 mode, u32 enable);
887 int hinic_reset_led_status(struct hinic_hwdev *hwdev, u8 port);
889 int hinic_set_led_status(struct hinic_hwdev *hwdev, u8 port,
[all …]
Dhinic_hw_eqs.h175 struct hinic_hwdev *hwdev;
224 struct hinic_hwdev *hwdev;
258 void hinic_dump_ceq_info(struct hinic_hwdev *hwdev);
260 void hinic_dump_aeq_info(struct hinic_hwdev *hwdev);
Dhinic_hw_io.h61 struct hinic_hwdev *hwdev;
106 int hinic_set_wq_page_size(struct hinic_hwdev *hwdev, u16 func_idx,
Dhinic_dev.h81 struct hinic_hwdev *hwdev;
127 struct hinic_hwdev *hwdev;
Dhinic_rx.c131 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_alloc_skb()
166 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_unmap_skb()
518 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_request_irq()
Dhinic_hw_cmdq.c786 static int init_cmdqs_ctxt(struct hinic_hwdev *hwdev, in init_cmdqs_ctxt()
848 static int hinic_set_cmdq_depth(struct hinic_hwdev *hwdev, u16 cmdq_depth) in hinic_set_cmdq_depth()
880 struct hinic_hwdev *hwdev; in hinic_init_cmdqs()
907 hwdev = container_of(func_to_io, struct hinic_hwdev, func_to_io); in hinic_init_cmdqs()
Dhinic_hw_mgmt.h131 struct hinic_hwdev *hwdev;
Dhinic_tx.c135 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_map_skb()
186 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_unmap_skb()
801 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_request_irq()
863 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_init_txq()
Dhinic_hw_cmdq.h141 struct hinic_hwdev *hwdev;
Dhinic_hw_mgmt.c620 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in hinic_pf_to_mgmt_init()
672 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in hinic_pf_to_mgmt_free()
Dhinic_hw_eqs.c542 struct hinic_hwdev *hwdev = eq->hwdev; in set_ceq_ctrl_reg()
959 void hinic_dump_ceq_info(struct hinic_hwdev *hwdev) in hinic_dump_ceq_info()
978 void hinic_dump_aeq_info(struct hinic_hwdev *hwdev) in hinic_dump_aeq_info()
Dhinic_main.c364 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_enable_rss()
1163 struct hinic_hwdev *hwdev; in nic_dev_init()
Dhinic_hw_io.c491 int hinic_set_wq_page_size(struct hinic_hwdev *hwdev, u16 func_idx, in hinic_set_wq_page_size()
Dhinic_ethtool.c534 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_drvinfo()
887 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_channels()
/linux-6.12.1/Documentation/networking/device_drivers/ethernet/huawei/
Dhinic.rst37 hinic_hwdev - Implement the HW details of the device and include the components
40 hinic_hwdev contains the following components: