Lines Matching defs:rdev

133 void bnxt_re_set_dma_device(struct ib_device *ibdev, struct bnxt_re_dev *rdev)  in bnxt_re_set_dma_device()
138 void bnxt_re_init_resolve_wq(struct bnxt_re_dev *rdev) in bnxt_re_init_resolve_wq()
144 void bnxt_re_uninit_resolve_wq(struct bnxt_re_dev *rdev) in bnxt_re_uninit_resolve_wq()
175 static void bnxt_re_update_fifo_occup_slabs(struct bnxt_re_dev *rdev, in bnxt_re_update_fifo_occup_slabs()
191 static void bnxt_re_update_do_pacing_slabs(struct bnxt_re_dev *rdev) in bnxt_re_update_do_pacing_slabs()
215 static struct bnxt_re_qp *bnxt_re_get_qp1_qp(struct bnxt_re_dev *rdev) in bnxt_re_get_qp1_qp()
235 static void bnxt_re_limit_pf_res(struct bnxt_re_dev *rdev) in bnxt_re_limit_pf_res()
267 static void bnxt_re_limit_vf_res(struct bnxt_re_dev *rdev, in bnxt_re_limit_vf_res()
286 static void bnxt_re_set_resource_limits(struct bnxt_re_dev *rdev) in bnxt_re_set_resource_limits()
298 static void bnxt_re_dettach_irq(struct bnxt_re_dev *rdev) in bnxt_re_dettach_irq()
315 static void bnxt_re_detach_err_device(struct bnxt_re_dev *rdev) in bnxt_re_detach_err_device()
330 struct bnxt_re_dev *rdev; member
334 static void bnxt_re_init_dcb_wq(struct bnxt_re_dev *rdev) in bnxt_re_init_dcb_wq()
339 static void bnxt_re_uninit_dcb_wq(struct bnxt_re_dev *rdev) in bnxt_re_uninit_dcb_wq()
348 static void bnxt_re_init_aer_wq(struct bnxt_re_dev *rdev) in bnxt_re_init_aer_wq()
353 static void bnxt_re_uninit_aer_wq(struct bnxt_re_dev *rdev) in bnxt_re_uninit_aer_wq()
362 static int bnxt_re_update_qp1_tos_dscp(struct bnxt_re_dev *rdev) in bnxt_re_update_qp1_tos_dscp()
379 static void bnxt_re_reconfigure_dscp(struct bnxt_re_dev *rdev) in bnxt_re_reconfigure_dscp()
424 struct bnxt_re_dev *rdev; in bnxt_re_dcb_wq_task() local
466 static int bnxt_re_hwrm_dbr_pacing_broadcast_event(struct bnxt_re_dev *rdev) in bnxt_re_hwrm_dbr_pacing_broadcast_event()
488 static int bnxt_re_hwrm_dbr_pacing_nqlist_query(struct bnxt_re_dev *rdev) in bnxt_re_hwrm_dbr_pacing_nqlist_query()
539 static void __wait_for_fifo_occupancy_below_th(struct bnxt_re_dev *rdev) in __wait_for_fifo_occupancy_below_th()
566 static void bnxt_re_set_default_pacing_data(struct bnxt_re_dev *rdev) in bnxt_re_set_default_pacing_data()
581 static bool bnxt_re_check_if_dbq_intr_triggered(struct bnxt_re_dev *rdev) in bnxt_re_check_if_dbq_intr_triggered()
596 int bnxt_re_set_dbq_throttling_reg(struct bnxt_re_dev *rdev, u16 nq_id, u32 throttle) in bnxt_re_set_dbq_throttling_reg()
623 static void bnxt_re_set_dbq_throttling_for_non_primary(struct bnxt_re_dev *rdev) in bnxt_re_set_dbq_throttling_for_non_primary()
649 static void bnxt_re_handle_dbr_nq_pacing_notification(struct bnxt_re_dev *rdev) in bnxt_re_handle_dbr_nq_pacing_notification()
681 struct bnxt_re_dev *rdev; in bnxt_re_dbq_wq_task() local
721 struct bnxt_re_dev *rdev; in bnxt_re_async_notifier() local
814 struct bnxt_re_dev *rdev = container_of(work, struct bnxt_re_dev, in bnxt_re_db_fifo_check() local
858 struct bnxt_re_dev *rdev = container_of(work, struct bnxt_re_dev, in bnxt_re_pacing_timer_exp() local
912 void bnxt_re_pacing_alert(struct bnxt_re_dev *rdev) in bnxt_re_pacing_alert()
935 struct bnxt_re_dev *rdev; in bnxt_re_schedule_dbq_event() local
963 static void bnxt_re_free_msix(struct bnxt_re_dev *rdev) in bnxt_re_free_msix()
974 static int bnxt_re_request_msix(struct bnxt_re_dev *rdev) in bnxt_re_request_msix()
1029 static int __wait_for_ib_unregister(struct bnxt_re_dev *rdev, in __wait_for_ib_unregister()
1079 struct bnxt_re_dev *rdev = NULL; in bnxt_re_handle_start() local
1137 struct bnxt_re_dev *rdev; in bnxt_re_stop() local
1221 struct bnxt_re_dev *rdev; in bnxt_re_shutdown() local
1246 struct bnxt_re_dev *rdev; in bnxt_re_stop_irq() local
1276 struct bnxt_re_dev *rdev; in bnxt_re_start_irq() local
1358 static void bnxt_re_unregister_netdev(struct bnxt_re_dev *rdev) in bnxt_re_unregister_netdev()
1374 static int bnxt_re_register_netdev(struct bnxt_re_dev *rdev) in bnxt_re_register_netdev()
1394 static void bnxt_re_set_db_offset(struct bnxt_re_dev *rdev) in bnxt_re_set_db_offset()
1436 static void bnxt_re_set_drv_mode(struct bnxt_re_dev *rdev, u8 mode) in bnxt_re_set_drv_mode()
1468 static void bnxt_re_destroy_chip_ctx(struct bnxt_re_dev *rdev) in bnxt_re_destroy_chip_ctx()
1493 static int bnxt_re_setup_chip_ctx(struct bnxt_re_dev *rdev, u8 wqe_mode) in bnxt_re_setup_chip_ctx()
1553 static u16 bnxt_re_get_rtype(struct bnxt_re_dev *rdev) { in bnxt_re_get_rtype()
1559 static int bnxt_re_net_ring_free(struct bnxt_re_dev *rdev, u16 fw_ring_id) in bnxt_re_net_ring_free()
1598 static int bnxt_re_net_ring_alloc(struct bnxt_re_dev *rdev, in bnxt_re_net_ring_alloc()
1647 static int bnxt_re_net_stats_ctx_free(struct bnxt_re_dev *rdev, in bnxt_re_net_stats_ctx_free()
1680 static int bnxt_re_net_stats_ctx_alloc(struct bnxt_re_dev *rdev, u16 tid) in bnxt_re_net_stats_ctx_alloc()
1719 static void bnxt_re_net_unregister_async_event(struct bnxt_re_dev *rdev) in bnxt_re_net_unregister_async_event()
1737 static void bnxt_re_net_register_async_event(struct bnxt_re_dev *rdev) in bnxt_re_net_register_async_event()
1762 static int bnxt_re_query_hwrm_intf_version(struct bnxt_re_dev *rdev) in bnxt_re_query_hwrm_intf_version()
1803 static int bnxt_re_hwrm_qcfg(struct bnxt_re_dev *rdev, u32 *db_len, in bnxt_re_hwrm_qcfg()
1831 int bnxt_re_hwrm_qcaps(struct bnxt_re_dev *rdev) in bnxt_re_hwrm_qcaps()
1887 static int bnxt_re_hwrm_dbr_pacing_qcfg(struct bnxt_re_dev *rdev) in bnxt_re_hwrm_dbr_pacing_qcfg()
1957 static int bnxt_re_hwrm_dbr_pacing_cfg(struct bnxt_re_dev *rdev, bool enable) in bnxt_re_hwrm_dbr_pacing_cfg()
1999 struct bnxt_re_dev *rdev; in bnxt_re_from_netdev() local
2018 struct bnxt_re_dev *rdev = to_bnxt_re_dev(device, ibdev.dev); in show_rev() local
2027 struct bnxt_re_dev *rdev = to_bnxt_re_dev(device, ibdev.dev); in show_hca() local
2039 int ib_register_device_compat(struct bnxt_re_dev *rdev) in ib_register_device_compat()
2052 static int bnxt_re_register_ib(struct bnxt_re_dev *rdev) in bnxt_re_register_ib()
2165 static void bnxt_re_dev_dealloc(struct bnxt_re_dev *rdev) in bnxt_re_dev_dealloc()
2192 struct bnxt_re_dev *rdev; in bnxt_re_dev_alloc() local
2484 struct bnxt_qplib_nq *bnxt_re_get_nq(struct bnxt_re_dev *rdev) in bnxt_re_get_nq()
2499 void bnxt_re_put_nq(struct bnxt_re_dev *rdev, struct bnxt_qplib_nq *nq) in bnxt_re_put_nq()
2506 static bool bnxt_re_check_min_attr(struct bnxt_re_dev *rdev) in bnxt_re_check_min_attr()
2546 static bool bnxt_re_is_qp1_or_shadow_qp(struct bnxt_re_dev *rdev, in bnxt_re_is_qp1_or_shadow_qp()
2556 static void bnxt_re_stop_all_nonqp1_nonshadow_qps(struct bnxt_re_dev *rdev) in bnxt_re_stop_all_nonqp1_nonshadow_qps()
2622 static int bnxt_re_update_gid(struct bnxt_re_dev *rdev) in bnxt_re_update_gid()
2661 static void bnxt_re_clear_cc(struct bnxt_re_dev *rdev) in bnxt_re_clear_cc()
2685 static int bnxt_re_setup_cc(struct bnxt_re_dev *rdev) in bnxt_re_setup_cc()
2731 int bnxt_re_query_hwrm_dscp2pri(struct bnxt_re_dev *rdev, in bnxt_re_query_hwrm_dscp2pri()
2783 int bnxt_re_prio_vlan_tx_update(struct bnxt_re_dev *rdev) in bnxt_re_prio_vlan_tx_update()
2794 int bnxt_re_set_hwrm_dscp2pri(struct bnxt_re_dev *rdev, in bnxt_re_set_hwrm_dscp2pri()
2840 int bnxt_re_query_hwrm_qportcfg(struct bnxt_re_dev *rdev, in bnxt_re_query_hwrm_qportcfg()
2902 int bnxt_re_hwrm_cos2bw_qcfg(struct bnxt_re_dev *rdev, u16 target_id, in bnxt_re_hwrm_cos2bw_qcfg()
2934 int bnxt_re_hwrm_cos2bw_cfg(struct bnxt_re_dev *rdev, u16 target_id, in bnxt_re_hwrm_cos2bw_cfg()
2975 int bnxt_re_host_pf_id_query(struct bnxt_re_dev *rdev, in bnxt_re_host_pf_id_query()
3018 static void bnxt_re_put_stats_ctx(struct bnxt_re_dev *rdev) in bnxt_re_put_stats_ctx()
3033 static void bnxt_re_put_stats2_ctx(struct bnxt_re_dev *rdev) in bnxt_re_put_stats2_ctx()
3038 static int bnxt_re_get_stats_ctx(struct bnxt_re_dev *rdev) in bnxt_re_get_stats_ctx()
3064 static int bnxt_re_update_dev_attr(struct bnxt_re_dev *rdev) in bnxt_re_update_dev_attr()
3076 static void bnxt_re_free_tbls(struct bnxt_re_dev *rdev) in bnxt_re_free_tbls()
3082 static int bnxt_re_alloc_init_tbls(struct bnxt_re_dev *rdev) in bnxt_re_alloc_init_tbls()
3104 static void bnxt_re_clean_nqs(struct bnxt_re_dev *rdev) in bnxt_re_clean_nqs()
3121 static int bnxt_re_setup_nqs(struct bnxt_re_dev *rdev) in bnxt_re_setup_nqs()
3193 static void bnxt_re_sysfs_destroy_file(struct bnxt_re_dev *rdev) in bnxt_re_sysfs_destroy_file()
3201 static int bnxt_re_sysfs_create_file(struct bnxt_re_dev *rdev) in bnxt_re_sysfs_create_file()
3226 struct bnxt_re_dev *rdev = container_of(work, struct bnxt_re_dev, in bnxt_re_worker() local
3261 static int bnxt_re_alloc_dbr_sw_stats_mem(struct bnxt_re_dev *rdev) in bnxt_re_alloc_dbr_sw_stats_mem()
3273 static void bnxt_re_free_dbr_sw_stats_mem(struct bnxt_re_dev *rdev) in bnxt_re_free_dbr_sw_stats_mem()
3279 static int bnxt_re_initialize_dbr_drop_recov(struct bnxt_re_dev *rdev) in bnxt_re_initialize_dbr_drop_recov()
3296 static void bnxt_re_deinitialize_dbr_drop_recov(struct bnxt_re_dev *rdev) in bnxt_re_deinitialize_dbr_drop_recov()
3306 static int bnxt_re_initialize_dbr_pacing(struct bnxt_re_dev *rdev) in bnxt_re_initialize_dbr_pacing()
3360 static void bnxt_re_deinitialize_dbr_pacing(struct bnxt_re_dev *rdev) in bnxt_re_deinitialize_dbr_pacing()
3383 int bnxt_re_enable_dbr_pacing(struct bnxt_re_dev *rdev) in bnxt_re_enable_dbr_pacing()
3414 int bnxt_re_disable_dbr_pacing(struct bnxt_re_dev *rdev) in bnxt_re_disable_dbr_pacing()
3425 static void bnxt_re_ib_uninit(struct bnxt_re_dev *rdev) in bnxt_re_ib_uninit()
3436 static void bnxt_re_dev_uninit(struct bnxt_re_dev *rdev, u8 op_type) in bnxt_re_dev_uninit()
3533 static int bnxt_re_dev_init(struct bnxt_re_dev *rdev, u8 op_type, u8 wqe_mode) in bnxt_re_dev_init()
3735 static int bnxt_re_ib_init(struct bnxt_re_dev *rdev) in bnxt_re_ib_init()
3763 int _bnxt_re_ib_init(struct bnxt_re_dev *rdev) in _bnxt_re_ib_init()
3769 int _bnxt_re_ib_init2(struct bnxt_re_dev *rdev) in _bnxt_re_ib_init2()
3775 static void bnxt_re_dev_unreg(struct bnxt_re_dev *rdev) in bnxt_re_dev_unreg()
3781 static int bnxt_re_dev_reg(struct bnxt_re_dev **rdev, struct ifnet *netdev, in bnxt_re_dev_reg()
3811 void bnxt_re_get_link_speed(struct bnxt_re_dev *rdev) in bnxt_re_get_link_speed()
3817 void bnxt_re_stopqps_and_ib_uninit(struct bnxt_re_dev *rdev) in bnxt_re_stopqps_and_ib_uninit()
3825 void bnxt_re_remove_device(struct bnxt_re_dev *rdev, u8 op_type, in bnxt_re_remove_device()
3853 int bnxt_re_add_device(struct bnxt_re_dev **rdev, in bnxt_re_add_device()
3954 struct bnxt_re_dev *bnxt_re_get_peer_pf(struct bnxt_re_dev *rdev) in bnxt_re_get_peer_pf()
3979 int bnxt_re_schedule_work(struct bnxt_re_dev *rdev, unsigned long event, in bnxt_re_schedule_work()
4005 int bnxt_re_get_slot_pf_count(struct bnxt_re_dev *rdev) in bnxt_re_get_slot_pf_count()
4031 struct bnxt_re_dev *rdev; in bnxt_re_task() local
4157 struct bnxt_re_dev *rdev = NULL; in bnxt_re_netdev_event() local
4252 static void bnxt_re_remove_base_interface(struct bnxt_re_dev *rdev, in bnxt_re_remove_base_interface()
4276 struct bnxt_re_dev *rdev; in bnxt_re_remove() local
4332 static void bnxt_re_ib_init_2(struct bnxt_re_dev *rdev) in bnxt_re_ib_init_2()
4351 struct bnxt_re_dev *rdev; in bnxt_re_probe() local