Searched refs:hinic_dev (Results 1 – 11 of 11) sorted by relevance
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_debugfs.h | 81 int hinic_sq_debug_add(struct hinic_dev *dev, u16 sq_id); 85 int hinic_rq_debug_add(struct hinic_dev *dev, u16 rq_id); 89 int hinic_func_table_debug_add(struct hinic_dev *dev); 91 void hinic_func_table_debug_rem(struct hinic_dev *dev); 93 void hinic_sq_dbgfs_init(struct hinic_dev *nic_dev); 95 void hinic_sq_dbgfs_uninit(struct hinic_dev *nic_dev); 97 void hinic_rq_dbgfs_init(struct hinic_dev *nic_dev); 99 void hinic_rq_dbgfs_uninit(struct hinic_dev *nic_dev); 101 void hinic_func_tbl_dbgfs_init(struct hinic_dev *nic_dev); 103 void hinic_func_tbl_dbgfs_uninit(struct hinic_dev *nic_dev); [all …]
|
D | hinic_port.h | 757 int hinic_port_add_mac(struct hinic_dev *nic_dev, const u8 *addr, 760 int hinic_port_del_mac(struct hinic_dev *nic_dev, const u8 *addr, 763 int hinic_port_get_mac(struct hinic_dev *nic_dev, u8 *addr); 765 int hinic_port_set_mtu(struct hinic_dev *nic_dev, int new_mtu); 767 int hinic_port_add_vlan(struct hinic_dev *nic_dev, u16 vlan_id); 769 int hinic_port_del_vlan(struct hinic_dev *nic_dev, u16 vlan_id); 771 int hinic_port_set_rx_mode(struct hinic_dev *nic_dev, u32 rx_mode); 773 int hinic_port_link_state(struct hinic_dev *nic_dev, 776 int hinic_port_set_state(struct hinic_dev *nic_dev, 779 int hinic_port_set_func_state(struct hinic_dev *nic_dev, [all …]
|
D | hinic_debugfs.c | 23 static u64 hinic_dbg_get_sq_info(struct hinic_dev *nic_dev, struct hinic_sq *sq, int idx) in hinic_dbg_get_sq_info() 53 static u64 hinic_dbg_get_rq_info(struct hinic_dev *nic_dev, struct hinic_rq *rq, int idx) in hinic_dbg_get_rq_info() 83 static int hinic_dbg_get_func_table(struct hinic_dev *nic_dev, int idx) in hinic_dbg_get_func_table() 178 static int create_dbg_files(struct hinic_dev *dev, enum hinic_dbg_type type, void *data, in create_dbg_files() 212 int hinic_sq_debug_add(struct hinic_dev *dev, u16 sq_id) in hinic_sq_debug_add() 234 int hinic_rq_debug_add(struct hinic_dev *dev, u16 rq_id) in hinic_rq_debug_add() 256 int hinic_func_table_debug_add(struct hinic_dev *dev) in hinic_func_table_debug_add() 265 void hinic_func_table_debug_rem(struct hinic_dev *dev) in hinic_func_table_debug_rem() 271 void hinic_sq_dbgfs_init(struct hinic_dev *nic_dev) in hinic_sq_dbgfs_init() 276 void hinic_sq_dbgfs_uninit(struct hinic_dev *nic_dev) in hinic_sq_dbgfs_uninit() [all …]
|
D | hinic_main.c | 69 container_of(rx_mode_work, struct hinic_dev, rx_mode_work) 79 static int set_features(struct hinic_dev *nic_dev, 110 static void gather_nic_stats(struct hinic_dev *nic_dev, in gather_nic_stats() 129 static int create_txqs(struct hinic_dev *nic_dev) in create_txqs() 178 static void enable_txqs_napi(struct hinic_dev *nic_dev) in enable_txqs_napi() 187 static void disable_txqs_napi(struct hinic_dev *nic_dev) in disable_txqs_napi() 200 static void free_txqs(struct hinic_dev *nic_dev) in free_txqs() 225 static int create_rxqs(struct hinic_dev *nic_dev) in create_rxqs() 278 static void free_rxqs(struct hinic_dev *nic_dev) in free_rxqs() 297 static int hinic_configure_max_qnum(struct hinic_dev *nic_dev) in hinic_configure_max_qnum() [all …]
|
D | hinic_port.c | 37 static int change_mac(struct hinic_dev *nic_dev, const u8 *addr, in change_mac() 90 int hinic_port_add_mac(struct hinic_dev *nic_dev, in hinic_port_add_mac() 104 int hinic_port_del_mac(struct hinic_dev *nic_dev, const u8 *addr, in hinic_port_del_mac() 117 int hinic_port_get_mac(struct hinic_dev *nic_dev, u8 *addr) in hinic_port_get_mac() 148 int hinic_port_set_mtu(struct hinic_dev *nic_dev, int new_mtu) in hinic_port_set_mtu() 191 int hinic_port_add_vlan(struct hinic_dev *nic_dev, u16 vlan_id) in hinic_port_add_vlan() 211 int hinic_port_del_vlan(struct hinic_dev *nic_dev, u16 vlan_id) in hinic_port_del_vlan() 231 int hinic_port_set_rx_mode(struct hinic_dev *nic_dev, u32 rx_mode) in hinic_port_set_rx_mode() 251 int hinic_port_link_state(struct hinic_dev *nic_dev, in hinic_port_link_state() 283 int hinic_port_set_state(struct hinic_dev *nic_dev, enum hinic_port_state state) in hinic_port_set_state() [all …]
|
D | hinic_ethtool.c | 259 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_get_link_ksettings() 365 static bool hinic_is_speed_legal(struct hinic_dev *nic_dev, u32 speed) in hinic_is_speed_legal() 391 static int get_link_settings_type(struct hinic_dev *nic_dev, in get_link_settings_type() 423 static int set_link_settings_separate_cmd(struct hinic_dev *nic_dev, in set_link_settings_separate_cmd() 457 static int hinic_set_settings_to_hw(struct hinic_dev *nic_dev, in hinic_set_settings_to_hw() 504 struct hinic_dev *nic_dev = netdev_priv(netdev); in set_link_settings() 532 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_get_drvinfo() 553 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_get_ringparam() 561 static int check_ringparam_valid(struct hinic_dev *nic_dev, in check_ringparam_valid() 588 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_set_ringparam() [all …]
|
D | hinic_rx.c | 130 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_alloc_skb() 165 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_unmap_skb() 195 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_alloc_pkts() 314 static void hinic_copy_lp_data(struct hinic_dev *nic_dev, in hinic_copy_lp_data() 361 struct hinic_dev *nic_dev; in rxq_recv() 460 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_poll() 480 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_add_napi() 497 struct hinic_dev *nic_dev; in rx_irq() 515 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_request_irq()
|
D | hinic_tx.c | 132 static int tx_map_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_map_skb() 183 static void tx_unmap_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_unmap_skb() 493 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_lb_xmit_frame() 554 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_xmit_frame() 653 static void tx_free_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_free_skb() 667 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in free_all_tx_skbs() 701 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in free_tx_poll() 780 struct hinic_dev *nic_dev; in tx_irq() 798 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in tx_request_irq() 862 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_init_txq()
|
D | hinic_sriov.c | 500 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_get_sriov_info_by_pcidev() 582 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_ndo_get_vf_config() 626 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_ndo_set_vf_mac() 684 static int hinic_update_mac_vlan(struct hinic_dev *nic_dev, u16 old_vlan, in hinic_update_mac_vlan() 731 static int set_hw_vf_vlan(struct hinic_dev *nic_dev, in set_hw_vf_vlan() 773 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_ndo_set_vf_vlan() 810 struct hinic_dev *adapter = netdev_priv(netdev); in hinic_ndo_set_vf_trust() 845 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_ndo_set_vf_bw() 932 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_ndo_set_vf_spoofchk() 997 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_ndo_set_vf_link_state() [all …]
|
D | hinic_dev.h | 68 struct hinic_dev *dev; 75 struct hinic_dev { struct
|
D | hinic_devlink.c | 296 return devlink_alloc(&hinic_devlink_ops, sizeof(struct hinic_dev), dev); in hinic_devlink_alloc()
|