Lines Matching refs:bnxt

184 static int bnxt_init_resources(struct bnxt *bp, bool reconfig_dev);
185 static int bnxt_uninit_resources(struct bnxt *bp, bool reconfig_dev);
186 static void bnxt_cancel_fw_health_check(struct bnxt *bp);
187 static int bnxt_restore_vlan_filters(struct bnxt *bp);
189 static void bnxt_free_error_recovery_info(struct bnxt *bp);
190 static void bnxt_free_rep_info(struct bnxt *bp);
192 int is_bnxt_in_error(struct bnxt *bp) in is_bnxt_in_error()
208 static uint16_t bnxt_rss_ctxts(const struct bnxt *bp) in bnxt_rss_ctxts()
218 uint16_t bnxt_rss_hash_tbl_size(const struct bnxt *bp) in bnxt_rss_hash_tbl_size()
226 static void bnxt_free_parent_info(struct bnxt *bp) in bnxt_free_parent_info()
231 static void bnxt_free_pf_info(struct bnxt *bp) in bnxt_free_pf_info()
236 static void bnxt_free_link_info(struct bnxt *bp) in bnxt_free_link_info()
241 static void bnxt_free_leds_info(struct bnxt *bp) in bnxt_free_leds_info()
250 static void bnxt_free_flow_stats_info(struct bnxt *bp) in bnxt_free_flow_stats_info()
256 static void bnxt_free_cos_queues(struct bnxt *bp) in bnxt_free_cos_queues()
262 static void bnxt_free_mem(struct bnxt *bp, bool reconfig) in bnxt_free_mem()
284 static int bnxt_alloc_parent_info(struct bnxt *bp) in bnxt_alloc_parent_info()
294 static int bnxt_alloc_pf_info(struct bnxt *bp) in bnxt_alloc_pf_info()
303 static int bnxt_alloc_link_info(struct bnxt *bp) in bnxt_alloc_link_info()
313 static int bnxt_alloc_leds_info(struct bnxt *bp) in bnxt_alloc_leds_info()
327 static int bnxt_alloc_cos_queues(struct bnxt *bp) in bnxt_alloc_cos_queues()
348 static int bnxt_alloc_flow_stats_info(struct bnxt *bp) in bnxt_alloc_flow_stats_info()
358 static int bnxt_alloc_mem(struct bnxt *bp, bool reconfig) in bnxt_alloc_mem()
403 static int bnxt_setup_one_vnic(struct bnxt *bp, uint16_t vnic_id) in bnxt_setup_one_vnic()
493 static int bnxt_register_fc_ctx_mem(struct bnxt *bp) in bnxt_register_fc_ctx_mem()
586 static int bnxt_init_fc_ctx_mem(struct bnxt *bp) in bnxt_init_fc_ctx_mem()
636 static int bnxt_init_ctx_mem(struct bnxt *bp) in bnxt_init_ctx_mem()
654 static int bnxt_update_phy_setting(struct bnxt *bp) in bnxt_update_phy_setting()
681 static int bnxt_init_chip(struct bnxt *bp) in bnxt_init_chip()
834 static int bnxt_shutdown_nic(struct bnxt *bp) in bnxt_shutdown_nic()
846 uint32_t bnxt_get_speed_capabilities(struct bnxt *bp) in bnxt_get_speed_capabilities()
895 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_info_get_op()
1013 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_configure_op()
1160 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_receive_function()
1206 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_transmit_function()
1232 static int bnxt_handle_if_change_status(struct bnxt *bp) in bnxt_handle_if_change_status()
1253 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_start_op()
1328 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_set_link_up_op()
1342 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_set_link_down_op()
1351 static void bnxt_free_switch_domain(struct bnxt *bp) in bnxt_free_switch_domain()
1366 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_stop_op()
1434 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_close_op()
1474 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_mac_addr_remove_op()
1506 static int bnxt_add_mac_filter(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_add_mac_filter()
1555 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_mac_addr_add_op()
1585 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_link_update_op()
1636 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_promiscuous_enable_op()
1665 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_promiscuous_disable_op()
1694 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_allmulticast_enable_op()
1723 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_allmulticast_disable_op()
1751 static struct bnxt_rx_queue *bnxt_qid_to_rxq(struct bnxt *bp, uint16_t qid) in bnxt_qid_to_rxq()
1760 static uint16_t bnxt_rss_to_qid(struct bnxt *bp, uint16_t fwr) in bnxt_rss_to_qid()
1785 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_reta_update_op()
1843 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_reta_query_op()
1893 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_rss_hash_update_op()
1948 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_rss_hash_conf_get_op()
2014 struct bnxt *bp = dev->data->dev_private; in bnxt_flow_ctrl_get_op()
2050 struct bnxt *bp = dev->data->dev_private; in bnxt_flow_ctrl_set_op()
2111 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_udp_tunnel_port_add_op()
2163 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_udp_tunnel_port_del_op()
2216 static int bnxt_del_vlan_filter(struct bnxt *bp, uint16_t vlan_id) in bnxt_del_vlan_filter()
2245 static int bnxt_add_vlan_filter(struct bnxt *bp, uint16_t vlan_id) in bnxt_add_vlan_filter()
2317 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_vlan_filter_set_op()
2336 static int bnxt_del_dflt_mac_filter(struct bnxt *bp, in bnxt_del_dflt_mac_filter()
2361 bnxt_config_vlan_hw_filter(struct bnxt *bp, uint64_t rx_offloads) in bnxt_config_vlan_hw_filter()
2393 static int bnxt_free_one_vnic(struct bnxt *bp, uint16_t vnic_id) in bnxt_free_one_vnic()
2420 bnxt_config_vlan_hw_stripping(struct bnxt *bp, uint64_t rx_offloads) in bnxt_config_vlan_hw_stripping()
2463 struct bnxt *bp = dev->data->dev_private; in bnxt_vlan_offload_set_op()
2502 struct bnxt *bp = dev->data->dev_private; in bnxt_vlan_tpid_set_op()
2560 struct bnxt *bp = dev->data->dev_private; in bnxt_set_default_mac_addr_op()
2603 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_set_mc_addr_list_op()
2641 struct bnxt *bp = dev->data->dev_private; in bnxt_fw_version_get()
2662 struct bnxt *bp = dev->data->dev_private; in bnxt_rxq_info_get_op()
2684 struct bnxt *bp = dev->data->dev_private; in bnxt_txq_info_get_op()
2766 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_mtu_set_op()
2840 struct bnxt *bp = dev->data->dev_private; in bnxt_vlan_pvid_set_op()
2864 struct bnxt *bp = dev->data->dev_private; in bnxt_dev_led_on_op()
2877 struct bnxt *bp = dev->data->dev_private; in bnxt_dev_led_off_op()
2890 struct bnxt *bp = (struct bnxt *)dev->data->dev_private; in bnxt_rx_queue_count_op()
3011 struct bnxt *bp = dev->data->dev_private; in bnxt_filter_ctrl_op()
3082 static int bnxt_map_regs(struct bnxt *bp, uint32_t *reg_arr, int count, in bnxt_map_regs()
3098 static int bnxt_map_ptp_regs(struct bnxt *bp) in bnxt_map_ptp_regs()
3123 static void bnxt_unmap_ptp_regs(struct bnxt *bp) in bnxt_unmap_ptp_regs()
3131 static uint64_t bnxt_cc_read(struct bnxt *bp) in bnxt_cc_read()
3142 static int bnxt_get_tx_ts(struct bnxt *bp, uint64_t *ts) in bnxt_get_tx_ts()
3162 static int bnxt_get_rx_ts(struct bnxt *bp, uint64_t *ts) in bnxt_get_rx_ts()
3200 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_write_time()
3216 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_read_time()
3238 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_enable()
3279 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_disable()
3302 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_read_rx_timestamp()
3324 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_read_tx_timestamp()
3348 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_adjust_time()
3362 struct bnxt *bp = dev->data->dev_private; in bnxt_get_eeprom_length_op()
3386 struct bnxt *bp = dev->data->dev_private; in bnxt_get_eeprom_op()
3462 struct bnxt *bp = dev->data->dev_private; in bnxt_set_eeprom_op()
3579 static uint32_t bnxt_map_reset_regs(struct bnxt *bp, uint32_t reg) in bnxt_map_reset_regs()
3592 int bnxt_map_fw_health_status_regs(struct bnxt *bp) in bnxt_map_fw_health_status_regs()
3626 static void bnxt_write_fw_reset_reg(struct bnxt *bp, uint32_t index) in bnxt_write_fw_reset_reg()
3654 static void bnxt_dev_cleanup(struct bnxt *bp) in bnxt_dev_cleanup()
3664 static int bnxt_restore_vlan_filters(struct bnxt *bp) in bnxt_restore_vlan_filters()
3687 static int bnxt_restore_mac_filters(struct bnxt *bp) in bnxt_restore_mac_filters()
3729 static int bnxt_restore_filters(struct bnxt *bp) in bnxt_restore_filters()
3756 struct bnxt *bp = arg; in bnxt_dev_recover()
3807 struct bnxt *bp = arg; in bnxt_dev_reset_and_resume()
3820 uint32_t bnxt_read_fw_status_reg(struct bnxt *bp, uint32_t index) in bnxt_read_fw_status_reg()
3845 static int bnxt_fw_reset_all(struct bnxt *bp) in bnxt_fw_reset_all()
3869 struct bnxt *bp = arg; in bnxt_fw_reset_cb()
3908 struct bnxt *bp = arg; in bnxt_check_fw_health()
3948 void bnxt_schedule_fw_health_check(struct bnxt *bp) in bnxt_schedule_fw_health_check()
3970 static void bnxt_cancel_fw_health_check(struct bnxt *bp) in bnxt_cancel_fw_health_check()
4020 bool bnxt_stratus_device(struct bnxt *bp) in bnxt_stratus_device()
4038 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_init_board()
4054 static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, in bnxt_alloc_ctx_mem_blk()
4148 static void bnxt_free_ctx_mem(struct bnxt *bp) in bnxt_free_ctx_mem()
4190 int bnxt_alloc_ctx_mem(struct bnxt *bp) in bnxt_alloc_ctx_mem()
4275 static int bnxt_alloc_stats_mem(struct bnxt *bp) in bnxt_alloc_stats_mem()
4367 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_setup_mac_addr()
4402 static int bnxt_restore_dflt_mac(struct bnxt *bp) in bnxt_restore_dflt_mac()
4418 static void bnxt_config_vf_req_fwd(struct bnxt *bp) in bnxt_config_vf_req_fwd()
4438 struct bnxt *bp; in bnxt_get_svif()
4462 struct bnxt *bp; in bnxt_get_vnic_id()
4487 struct bnxt *bp; in bnxt_get_fw_func_id()
4510 struct bnxt *bp; in bnxt_get_interface_type()
4532 struct bnxt *bp; in bnxt_get_phy_port_id()
4552 struct bnxt *bp; in bnxt_get_parif()
4577 static void bnxt_alloc_error_recovery_info(struct bnxt *bp) in bnxt_alloc_error_recovery_info()
4598 static void bnxt_check_fw_status(struct bnxt *bp) in bnxt_check_fw_status()
4612 static int bnxt_map_hcomm_fw_status_reg(struct bnxt *bp) in bnxt_map_hcomm_fw_status_reg()
4660 static int bnxt_init_fw(struct bnxt *bp) in bnxt_init_fw()
4719 bnxt_init_locks(struct bnxt *bp) in bnxt_init_locks()
4739 static int bnxt_init_resources(struct bnxt *bp, bool reconfig_dev) in bnxt_init_resources()
4811 struct bnxt *bp = opaque_arg; in bnxt_parse_devarg_truflow()
4850 struct bnxt *bp = opaque_arg; in bnxt_parse_devarg_flow_xstat()
4885 struct bnxt *bp = opaque_arg; in bnxt_parse_devarg_max_num_kflows()
5141 bnxt_parse_dev_args(struct bnxt *bp, struct rte_devargs *devargs) in bnxt_parse_dev_args()
5176 static int bnxt_alloc_switch_domain(struct bnxt *bp) in bnxt_alloc_switch_domain()
5199 struct bnxt *bp; in bnxt_dev_init()
5326 static void bnxt_unregister_fc_ctx_mem(struct bnxt *bp) in bnxt_unregister_fc_ctx_mem()
5357 static void bnxt_uninit_fc_ctx_mem(struct bnxt *bp) in bnxt_uninit_fc_ctx_mem()
5367 static void bnxt_uninit_ctx_mem(struct bnxt *bp) in bnxt_uninit_ctx_mem()
5374 bnxt_free_error_recovery_info(struct bnxt *bp) in bnxt_free_error_recovery_info()
5382 bnxt_uninit_locks(struct bnxt *bp) in bnxt_uninit_locks()
5394 bnxt_uninit_resources(struct bnxt *bp, bool reconfig_dev) in bnxt_uninit_resources()
5438 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_pci_remove_dev_with_reps()
5460 static void bnxt_free_rep_info(struct bnxt *bp) in bnxt_free_rep_info()
5468 static int bnxt_init_rep_info(struct bnxt *bp) in bnxt_init_rep_info()
5518 struct bnxt *backing_bp; in bnxt_rep_port_probe()
5713 sizeof(struct bnxt), in bnxt_pci_probe()
5784 RTE_LOG_REGISTER(bnxt_logtype_driver, pmd.net.bnxt.driver, NOTICE);