Lines Matching defs:bp
182 int is_bnxt_in_error(struct bnxt *bp) in is_bnxt_in_error()
198 static uint16_t bnxt_rss_ctxts(const struct bnxt *bp) in bnxt_rss_ctxts()
211 uint16_t bnxt_rss_hash_tbl_size(const struct bnxt *bp) in bnxt_rss_hash_tbl_size()
219 static void bnxt_free_parent_info(struct bnxt *bp) in bnxt_free_parent_info()
225 static void bnxt_free_pf_info(struct bnxt *bp) in bnxt_free_pf_info()
231 static void bnxt_free_link_info(struct bnxt *bp) in bnxt_free_link_info()
237 static void bnxt_free_leds_info(struct bnxt *bp) in bnxt_free_leds_info()
246 static void bnxt_free_flow_stats_info(struct bnxt *bp) in bnxt_free_flow_stats_info()
252 static void bnxt_free_cos_queues(struct bnxt *bp) in bnxt_free_cos_queues()
260 static void bnxt_free_mem(struct bnxt *bp, bool reconfig) in bnxt_free_mem()
282 static int bnxt_alloc_parent_info(struct bnxt *bp) in bnxt_alloc_parent_info()
292 static int bnxt_alloc_pf_info(struct bnxt *bp) in bnxt_alloc_pf_info()
301 static int bnxt_alloc_link_info(struct bnxt *bp) in bnxt_alloc_link_info()
311 static int bnxt_alloc_leds_info(struct bnxt *bp) in bnxt_alloc_leds_info()
325 static int bnxt_alloc_cos_queues(struct bnxt *bp) in bnxt_alloc_cos_queues()
346 static int bnxt_alloc_flow_stats_info(struct bnxt *bp) in bnxt_alloc_flow_stats_info()
356 static int bnxt_alloc_mem(struct bnxt *bp, bool reconfig) in bnxt_alloc_mem()
401 static int bnxt_setup_one_vnic(struct bnxt *bp, uint16_t vnic_id) in bnxt_setup_one_vnic()
501 static int bnxt_register_fc_ctx_mem(struct bnxt *bp) in bnxt_register_fc_ctx_mem()
576 static int bnxt_alloc_ctx_mem_buf(struct bnxt *bp, char *type, size_t size, in bnxt_alloc_ctx_mem_buf()
595 static int bnxt_init_fc_ctx_mem(struct bnxt *bp) in bnxt_init_fc_ctx_mem()
645 static int bnxt_init_ctx_mem(struct bnxt *bp) in bnxt_init_ctx_mem()
663 static inline bool bnxt_force_link_config(struct bnxt *bp) in bnxt_force_link_config()
676 static int bnxt_update_phy_setting(struct bnxt *bp) in bnxt_update_phy_setting()
704 static void bnxt_free_prev_ring_stats(struct bnxt *bp) in bnxt_free_prev_ring_stats()
713 static int bnxt_alloc_prev_ring_stats(struct bnxt *bp) in bnxt_alloc_prev_ring_stats()
736 static int bnxt_start_nic(struct bnxt *bp) in bnxt_start_nic()
892 static int bnxt_shutdown_nic(struct bnxt *bp) in bnxt_shutdown_nic()
904 uint32_t bnxt_get_speed_capabilities(struct bnxt *bp) in bnxt_get_speed_capabilities()
956 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_info_get_op() local
1071 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_configure_op() local
1222 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_receive_function() local
1295 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_transmit_function() local
1342 static int bnxt_handle_if_change_status(struct bnxt *bp) in bnxt_handle_if_change_status()
1368 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_set_link_up_op() local
1385 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_set_link_down_op() local
1397 static void bnxt_free_switch_domain(struct bnxt *bp) in bnxt_free_switch_domain()
1412 struct bnxt *bp = arg; in bnxt_ptp_get_current_time() local
1433 static int bnxt_schedule_ptp_alarm(struct bnxt *bp) in bnxt_schedule_ptp_alarm()
1448 static void bnxt_cancel_ptp_alarm(struct bnxt *bp) in bnxt_cancel_ptp_alarm()
1456 static void bnxt_ptp_stop(struct bnxt *bp) in bnxt_ptp_stop()
1462 static int bnxt_ptp_start(struct bnxt *bp) in bnxt_ptp_start()
1479 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_stop() local
1549 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_stop_op() local
1565 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_start_op() local
1642 bnxt_uninit_locks(struct bnxt *bp) in bnxt_uninit_locks()
1654 static void bnxt_drv_uninit(struct bnxt *bp) in bnxt_drv_uninit()
1676 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_close_op() local
1710 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_mac_addr_remove_op() local
1742 static int bnxt_add_mac_filter(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_add_mac_filter()
1791 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_mac_addr_add_op() local
1821 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_link_update_op() local
1873 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_promiscuous_enable_op() local
1902 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_promiscuous_disable_op() local
1931 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_allmulticast_enable_op() local
1960 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_allmulticast_disable_op() local
1988 static struct bnxt_rx_queue *bnxt_qid_to_rxq(struct bnxt *bp, uint16_t qid) in bnxt_qid_to_rxq()
1997 static uint16_t bnxt_rss_to_qid(struct bnxt *bp, uint16_t fwr) in bnxt_rss_to_qid()
2022 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_reta_update_op() local
2080 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_reta_query_op() local
2129 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_rss_hash_update_op() local
2186 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_rss_hash_conf_get_op() local
2252 struct bnxt *bp = dev->data->dev_private; in bnxt_flow_ctrl_get_op() local
2288 struct bnxt *bp = dev->data->dev_private; in bnxt_flow_ctrl_set_op() local
2350 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_udp_tunnel_port_add_op() local
2412 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_udp_tunnel_port_del_op() local
2465 static int bnxt_del_vlan_filter(struct bnxt *bp, uint16_t vlan_id) in bnxt_del_vlan_filter()
2494 static int bnxt_add_vlan_filter(struct bnxt *bp, uint16_t vlan_id) in bnxt_add_vlan_filter()
2566 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_vlan_filter_set_op() local
2585 static int bnxt_del_dflt_mac_filter(struct bnxt *bp, in bnxt_del_dflt_mac_filter()
2610 bnxt_config_vlan_hw_filter(struct bnxt *bp, uint64_t rx_offloads) in bnxt_config_vlan_hw_filter()
2642 static int bnxt_free_one_vnic(struct bnxt *bp, uint16_t vnic_id) in bnxt_free_one_vnic()
2673 bnxt_config_vlan_hw_stripping(struct bnxt *bp, uint64_t rx_offloads) in bnxt_config_vlan_hw_stripping()
2716 struct bnxt *bp = dev->data->dev_private; in bnxt_vlan_offload_set_op() local
2755 struct bnxt *bp = dev->data->dev_private; in bnxt_vlan_tpid_set_op() local
2813 struct bnxt *bp = dev->data->dev_private; in bnxt_set_default_mac_addr_op() local
2856 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_dev_set_mc_addr_list_op() local
2891 struct bnxt *bp = dev->data->dev_private; in bnxt_fw_version_get() local
2914 struct bnxt *bp = dev->data->dev_private; in bnxt_rxq_info_get_op() local
2936 struct bnxt *bp = dev->data->dev_private; in bnxt_txq_info_get_op() local
3027 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_mtu_set_op() local
3095 struct bnxt *bp = dev->data->dev_private; in bnxt_vlan_pvid_set_op() local
3118 struct bnxt *bp = dev->data->dev_private; in bnxt_dev_led_on_op() local
3131 struct bnxt *bp = dev->data->dev_private; in bnxt_dev_led_off_op() local
3144 struct bnxt *bp; in bnxt_rx_queue_count_op() local
3213 struct bnxt *bp = rxq->bp; in bnxt_rx_descriptor_status_op() local
3369 struct bnxt *bp = dev->data->dev_private; in bnxt_flow_ops_get_op() local
3427 static int bnxt_map_regs(struct bnxt *bp, uint32_t *reg_arr, int count, in bnxt_map_regs()
3443 static int bnxt_map_ptp_regs(struct bnxt *bp) in bnxt_map_ptp_regs()
3468 static void bnxt_unmap_ptp_regs(struct bnxt *bp) in bnxt_unmap_ptp_regs()
3476 static uint64_t bnxt_cc_read(struct bnxt *bp) in bnxt_cc_read()
3487 static int bnxt_get_tx_ts(struct bnxt *bp, uint64_t *ts) in bnxt_get_tx_ts()
3508 static int bnxt_clr_rx_ts(struct bnxt *bp, uint64_t *last_ts) in bnxt_clr_rx_ts()
3540 static int bnxt_get_rx_ts(struct bnxt *bp, uint64_t *ts) in bnxt_get_rx_ts()
3573 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_write_time() local
3591 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_read_time() local
3613 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_enable() local
3656 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_disable() local
3681 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_read_rx_timestamp() local
3703 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_read_tx_timestamp() local
3727 struct bnxt *bp = dev->data->dev_private; in bnxt_timesync_adjust_time() local
3743 struct bnxt *bp = dev->data->dev_private; in bnxt_get_eeprom_length_op() local
3767 struct bnxt *bp = dev->data->dev_private; in bnxt_get_eeprom_op() local
3843 struct bnxt *bp = dev->data->dev_private; in bnxt_set_eeprom_op() local
3894 struct bnxt *bp = dev->data->dev_private; in bnxt_get_module_info() local
3957 struct bnxt *bp = dev->data->dev_private; in bnxt_get_module_eeprom() local
4105 static uint32_t bnxt_map_reset_regs(struct bnxt *bp, uint32_t reg) in bnxt_map_reset_regs()
4118 int bnxt_map_fw_health_status_regs(struct bnxt *bp) in bnxt_map_fw_health_status_regs()
4152 static void bnxt_write_fw_reset_reg(struct bnxt *bp, uint32_t index) in bnxt_write_fw_reset_reg()
4186 static void bnxt_dev_cleanup(struct bnxt *bp) in bnxt_dev_cleanup()
4197 bnxt_check_fw_reset_done(struct bnxt *bp) in bnxt_check_fw_reset_done()
4222 static int bnxt_restore_vlan_filters(struct bnxt *bp) in bnxt_restore_vlan_filters()
4245 static int bnxt_restore_mac_filters(struct bnxt *bp) in bnxt_restore_mac_filters()
4287 static int bnxt_restore_mcast_mac_filters(struct bnxt *bp) in bnxt_restore_mcast_mac_filters()
4299 static int bnxt_restore_filters(struct bnxt *bp) in bnxt_restore_filters()
4331 static int bnxt_check_fw_ready(struct bnxt *bp) in bnxt_check_fw_ready()
4352 struct bnxt *bp = arg; in bnxt_dev_recover() local
4418 struct bnxt *bp = arg; in bnxt_dev_reset_and_resume() local
4453 uint32_t bnxt_read_fw_status_reg(struct bnxt *bp, uint32_t index) in bnxt_read_fw_status_reg()
4482 static int bnxt_fw_reset_all(struct bnxt *bp) in bnxt_fw_reset_all()
4506 struct bnxt *bp = arg; in bnxt_fw_reset_cb() local
4545 struct bnxt *bp = arg; in bnxt_check_fw_health() local
4587 void bnxt_schedule_fw_health_check(struct bnxt *bp) in bnxt_schedule_fw_health_check()
4609 static void bnxt_cancel_fw_health_check(struct bnxt *bp) in bnxt_cancel_fw_health_check()
4662 bool bnxt_stratus_device(struct bnxt *bp) in bnxt_stratus_device()
4680 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_map_pci_bars() local
4696 static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, in bnxt_alloc_ctx_mem_blk()
4790 static void bnxt_free_ctx_mem(struct bnxt *bp) in bnxt_free_ctx_mem()
4832 int bnxt_alloc_ctx_mem(struct bnxt *bp) in bnxt_alloc_ctx_mem()
4936 static int bnxt_alloc_stats_mem(struct bnxt *bp) in bnxt_alloc_stats_mem()
5028 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_setup_mac_addr() local
5084 static int bnxt_restore_dflt_mac(struct bnxt *bp) in bnxt_restore_dflt_mac()
5100 static void bnxt_config_vf_req_fwd(struct bnxt *bp) in bnxt_config_vf_req_fwd()
5115 static void bnxt_alloc_error_recovery_info(struct bnxt *bp) in bnxt_alloc_error_recovery_info()
5136 static void bnxt_check_fw_status(struct bnxt *bp) in bnxt_check_fw_status()
5150 static int bnxt_map_hcomm_fw_status_reg(struct bnxt *bp) in bnxt_map_hcomm_fw_status_reg()
5202 static int bnxt_get_config(struct bnxt *bp) in bnxt_get_config()
5261 bnxt_init_locks(struct bnxt *bp) in bnxt_init_locks()
5290 static int bnxt_init_resources(struct bnxt *bp, bool reconfig_dev) in bnxt_init_resources()
5368 struct bnxt *bp = opaque_arg; in bnxt_parse_devarg_flow_xstat() local
5403 struct bnxt *bp = opaque_arg; in bnxt_parse_devarg_max_num_kflows() local
5439 struct bnxt *bp = opaque_arg; in bnxt_parse_devarg_app_id() local
5695 bnxt_parse_dev_args(struct bnxt *bp, struct rte_devargs *devargs) in bnxt_parse_dev_args()
5737 static int bnxt_alloc_switch_domain(struct bnxt *bp) in bnxt_alloc_switch_domain()
5761 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_drv_init() local
5843 struct bnxt *bp; in bnxt_dev_init() local
5911 static void bnxt_unregister_fc_ctx_mem(struct bnxt *bp) in bnxt_unregister_fc_ctx_mem()
5942 static void bnxt_uninit_fc_ctx_mem(struct bnxt *bp) in bnxt_uninit_fc_ctx_mem()
5952 static void bnxt_uninit_ctx_mem(struct bnxt *bp) in bnxt_uninit_ctx_mem()
5959 bnxt_free_error_recovery_info(struct bnxt *bp) in bnxt_free_error_recovery_info()
5967 bnxt_uninit_resources(struct bnxt *bp, bool reconfig_dev) in bnxt_uninit_resources()
6019 struct bnxt *bp = eth_dev->data->dev_private; in bnxt_pci_remove_dev_with_reps() local
6041 static void bnxt_free_rep_info(struct bnxt *bp) in bnxt_free_rep_info()
6049 static int bnxt_init_rep_info(struct bnxt *bp) in bnxt_init_rep_info()