/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_asic.h | 34 uint32_t radeon_legacy_get_engine_clock(struct radeon_device *rdev); 35 void radeon_legacy_set_engine_clock(struct radeon_device *rdev, uint32_t eng_clock); 36 uint32_t radeon_legacy_get_memory_clock(struct radeon_device *rdev); 37 void radeon_legacy_set_clock_gating(struct radeon_device *rdev, int enable); 39 uint32_t radeon_atom_get_engine_clock(struct radeon_device *rdev); 40 void radeon_atom_set_engine_clock(struct radeon_device *rdev, uint32_t eng_clock); 41 uint32_t radeon_atom_get_memory_clock(struct radeon_device *rdev); 42 void radeon_atom_set_memory_clock(struct radeon_device *rdev, uint32_t mem_clock); 43 void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable); 61 int r100_init(struct radeon_device *rdev); [all …]
|
D | r420.c | 44 void r420_pm_init_profile(struct radeon_device *rdev) in r420_pm_init_profile() argument 47 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_ps_idx = rdev->pm.default_power_state_index; in r420_pm_init_profile() 48 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_ps_idx = rdev->pm.default_power_state_index; in r420_pm_init_profile() 49 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_cm_idx = 0; in r420_pm_init_profile() 50 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_cm_idx = 0; in r420_pm_init_profile() 52 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_ps_idx = 0; in r420_pm_init_profile() 53 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_ps_idx = 0; in r420_pm_init_profile() 54 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_cm_idx = 0; in r420_pm_init_profile() 55 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_cm_idx = 0; in r420_pm_init_profile() 57 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_off_ps_idx = 0; in r420_pm_init_profile() [all …]
|
D | radeon_pm.c | 50 static void radeon_debugfs_pm_init(struct radeon_device *rdev); 51 static bool radeon_pm_in_vbl(struct radeon_device *rdev); 52 static bool radeon_pm_debug_check_in_vbl(struct radeon_device *rdev, bool finish); 53 static void radeon_pm_update_profile(struct radeon_device *rdev); 54 static void radeon_pm_set_clocks(struct radeon_device *rdev); 56 int radeon_pm_get_type_index(struct radeon_device *rdev, in radeon_pm_get_type_index() argument 63 for (i = 0; i < rdev->pm.num_power_states; i++) { in radeon_pm_get_type_index() 64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index() 71 return rdev->pm.default_power_state_index; in radeon_pm_get_type_index() 74 void radeon_pm_acpi_event_handler(struct radeon_device *rdev) in radeon_pm_acpi_event_handler() argument [all …]
|
D | radeon_device.c | 160 struct radeon_device *rdev = dev->dev_private; in radeon_is_px() local 162 if (rdev->flags & RADEON_IS_PX) in radeon_is_px() 167 static void radeon_device_handle_px_quirks(struct radeon_device *rdev) in radeon_device_handle_px_quirks() argument 173 if (rdev->pdev->vendor == p->chip_vendor && in radeon_device_handle_px_quirks() 174 rdev->pdev->device == p->chip_device && in radeon_device_handle_px_quirks() 175 rdev->pdev->subsystem_vendor == p->subsys_vendor && in radeon_device_handle_px_quirks() 176 rdev->pdev->subsystem_device == p->subsys_device) { in radeon_device_handle_px_quirks() 177 rdev->px_quirk_flags = p->px_quirk_flags; in radeon_device_handle_px_quirks() 183 if (rdev->px_quirk_flags & RADEON_PX_QUIRK_DISABLE_PX) in radeon_device_handle_px_quirks() 184 rdev->flags &= ~RADEON_IS_PX; in radeon_device_handle_px_quirks() [all …]
|
D | r520.c | 36 int r520_mc_wait_for_idle(struct radeon_device *rdev) in r520_mc_wait_for_idle() argument 41 for (i = 0; i < rdev->usec_timeout; i++) { in r520_mc_wait_for_idle() 52 static void r520_gpu_init(struct radeon_device *rdev) in r520_gpu_init() argument 56 rv515_vga_render_disable(rdev); in r520_gpu_init() 78 if (rdev->family == CHIP_RV530) { in r520_gpu_init() 81 r420_pipes_init(rdev); in r520_gpu_init() 88 if (r520_mc_wait_for_idle(rdev)) { in r520_gpu_init() 93 static void r520_vram_get_type(struct radeon_device *rdev) in r520_vram_get_type() argument 97 rdev->mc.vram_width = 128; in r520_vram_get_type() 98 rdev->mc.vram_is_ddr = true; in r520_vram_get_type() [all …]
|
D | radeon_irq_kms.c | 57 struct radeon_device *rdev = dev->dev_private; in radeon_driver_irq_handler_kms() local 60 ret = radeon_irq_process(rdev); in radeon_driver_irq_handler_kms() 82 struct radeon_device *rdev = container_of(work, struct radeon_device, in radeon_hotplug_work_func() local 84 struct drm_device *dev = rdev->ddev; in radeon_hotplug_work_func() 90 if (!rdev->mode_info.mode_config_initialized) in radeon_hotplug_work_func() 115 struct radeon_device *rdev = dev->dev_private; in radeon_driver_irq_preinstall_kms() local 119 spin_lock_irqsave(&rdev->irq.lock, irqflags); in radeon_driver_irq_preinstall_kms() 122 atomic_set(&rdev->irq.ring_int[i], 0); in radeon_driver_irq_preinstall_kms() 123 rdev->irq.dpm_thermal = false; in radeon_driver_irq_preinstall_kms() 125 rdev->irq.hpd[i] = false; in radeon_driver_irq_preinstall_kms() [all …]
|
D | rs400.c | 40 static void rs400_debugfs_pcie_gart_info_init(struct radeon_device *rdev); 42 void rs400_gart_adjust_size(struct radeon_device *rdev) in rs400_gart_adjust_size() argument 45 switch (rdev->mc.gtt_size/(1024*1024)) { in rs400_gart_adjust_size() 56 (unsigned)(rdev->mc.gtt_size >> 20)); in rs400_gart_adjust_size() 59 rdev->mc.gtt_size = 32 * 1024 * 1024; in rs400_gart_adjust_size() 64 void rs400_gart_tlb_flush(struct radeon_device *rdev) in rs400_gart_tlb_flush() argument 67 unsigned int timeout = rdev->usec_timeout; in rs400_gart_tlb_flush() 80 int rs400_gart_init(struct radeon_device *rdev) in rs400_gart_init() argument 84 if (rdev->gart.ptr) { in rs400_gart_init() 89 switch(rdev->mc.gtt_size / (1024 * 1024)) { in rs400_gart_init() [all …]
|
D | ni.c | 47 u32 tn_smc_rreg(struct radeon_device *rdev, u32 reg) in tn_smc_rreg() argument 52 spin_lock_irqsave(&rdev->smc_idx_lock, flags); in tn_smc_rreg() 55 spin_unlock_irqrestore(&rdev->smc_idx_lock, flags); in tn_smc_rreg() 59 void tn_smc_wreg(struct radeon_device *rdev, u32 reg, u32 v) in tn_smc_wreg() argument 63 spin_lock_irqsave(&rdev->smc_idx_lock, flags); in tn_smc_wreg() 66 spin_unlock_irqrestore(&rdev->smc_idx_lock, flags); in tn_smc_wreg() 443 static void ni_init_golden_registers(struct radeon_device *rdev) in ni_init_golden_registers() argument 445 switch (rdev->family) { in ni_init_golden_registers() 447 radeon_program_register_sequence(rdev, in ni_init_golden_registers() 450 radeon_program_register_sequence(rdev, in ni_init_golden_registers() [all …]
|
D | radeon_gart.c | 71 int radeon_gart_table_ram_alloc(struct radeon_device *rdev) in radeon_gart_table_ram_alloc() argument 75 ptr = dma_alloc_coherent(&rdev->pdev->dev, rdev->gart.table_size, in radeon_gart_table_ram_alloc() 76 &rdev->gart.table_addr, GFP_KERNEL); in radeon_gart_table_ram_alloc() 81 if (rdev->family == CHIP_RS400 || rdev->family == CHIP_RS480 || in radeon_gart_table_ram_alloc() 82 rdev->family == CHIP_RS690 || rdev->family == CHIP_RS740) { in radeon_gart_table_ram_alloc() 84 rdev->gart.table_size >> PAGE_SHIFT); in radeon_gart_table_ram_alloc() 87 rdev->gart.ptr = ptr; in radeon_gart_table_ram_alloc() 100 void radeon_gart_table_ram_free(struct radeon_device *rdev) in radeon_gart_table_ram_free() argument 102 if (rdev->gart.ptr == NULL) { in radeon_gart_table_ram_free() 106 if (rdev->family == CHIP_RS400 || rdev->family == CHIP_RS480 || in radeon_gart_table_ram_free() [all …]
|
D | r600.c | 108 static void r600_debugfs_mc_info_init(struct radeon_device *rdev); 111 int r600_mc_wait_for_idle(struct radeon_device *rdev); 112 static void r600_gpu_init(struct radeon_device *rdev); 113 void r600_fini(struct radeon_device *rdev); 114 void r600_irq_disable(struct radeon_device *rdev); 115 static void r600_pcie_gen2_enable(struct radeon_device *rdev); 120 u32 r600_rcu_rreg(struct radeon_device *rdev, u32 reg) in r600_rcu_rreg() argument 125 spin_lock_irqsave(&rdev->rcu_idx_lock, flags); in r600_rcu_rreg() 128 spin_unlock_irqrestore(&rdev->rcu_idx_lock, flags); in r600_rcu_rreg() 132 void r600_rcu_wreg(struct radeon_device *rdev, u32 reg, u32 v) in r600_rcu_wreg() argument [all …]
|
D | rv770.c | 49 static void rv770_gpu_init(struct radeon_device *rdev); 50 void rv770_fini(struct radeon_device *rdev); 51 static void rv770_pcie_gen2_enable(struct radeon_device *rdev); 52 int evergreen_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk); 54 int rv770_set_uvd_clocks(struct radeon_device *rdev, u32 vclk, u32 dclk) in rv770_set_uvd_clocks() argument 60 if (rdev->family == CHIP_RV740) in rv770_set_uvd_clocks() 61 return evergreen_set_uvd_clocks(rdev, vclk, dclk); in rv770_set_uvd_clocks() 74 r = radeon_uvd_calc_upll_dividers(rdev, vclk, dclk, 50000, 160000, in rv770_set_uvd_clocks() 94 r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL); in rv770_set_uvd_clocks() 125 r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL); in rv770_set_uvd_clocks() [all …]
|
D | radeon_kms.c | 64 struct radeon_device *rdev = dev->dev_private; in radeon_driver_unload_kms() local 66 if (rdev == NULL) in radeon_driver_unload_kms() 69 if (rdev->rmmio == NULL) in radeon_driver_unload_kms() 77 radeon_acpi_fini(rdev); in radeon_driver_unload_kms() 79 radeon_modeset_fini(rdev); in radeon_driver_unload_kms() 80 radeon_device_fini(rdev); in radeon_driver_unload_kms() 82 if (rdev->agp) in radeon_driver_unload_kms() 83 arch_phys_wc_del(rdev->agp->agp_mtrr); in radeon_driver_unload_kms() 84 kfree(rdev->agp); in radeon_driver_unload_kms() 85 rdev->agp = NULL; in radeon_driver_unload_kms() [all …]
|
D | radeon_fence.c | 67 static void radeon_fence_write(struct radeon_device *rdev, u32 seq, int ring) in radeon_fence_write() argument 69 struct radeon_fence_driver *drv = &rdev->fence_drv[ring]; in radeon_fence_write() 70 if (likely(rdev->wb.enabled || !drv->scratch_reg)) { in radeon_fence_write() 88 static u32 radeon_fence_read(struct radeon_device *rdev, int ring) in radeon_fence_read() argument 90 struct radeon_fence_driver *drv = &rdev->fence_drv[ring]; in radeon_fence_read() 93 if (likely(rdev->wb.enabled || !drv->scratch_reg)) { in radeon_fence_read() 113 static void radeon_fence_schedule_check(struct radeon_device *rdev, int ring) in radeon_fence_schedule_check() argument 120 &rdev->fence_drv[ring].lockup_work, in radeon_fence_schedule_check() 134 int radeon_fence_emit(struct radeon_device *rdev, in radeon_fence_emit() argument 145 (*fence)->rdev = rdev; in radeon_fence_emit() [all …]
|
D | radeon.h | 249 bool radeon_get_bios(struct radeon_device *rdev); 259 int radeon_dummy_page_init(struct radeon_device *rdev); 260 void radeon_dummy_page_fini(struct radeon_device *rdev); 285 int radeon_pm_init(struct radeon_device *rdev); 286 int radeon_pm_late_init(struct radeon_device *rdev); 287 void radeon_pm_fini(struct radeon_device *rdev); 288 void radeon_pm_compute_clocks(struct radeon_device *rdev); 289 void radeon_pm_suspend(struct radeon_device *rdev); 290 void radeon_pm_resume(struct radeon_device *rdev); 291 void radeon_combios_get_power_modes(struct radeon_device *rdev); [all …]
|
D | rs600.c | 54 static void rs600_gpu_init(struct radeon_device *rdev); 55 int rs600_mc_wait_for_idle(struct radeon_device *rdev); 63 static bool avivo_is_in_vblank(struct radeon_device *rdev, int crtc) in avivo_is_in_vblank() argument 71 static bool avivo_is_counter_moving(struct radeon_device *rdev, int crtc) in avivo_is_counter_moving() argument 92 void avivo_wait_for_vblank(struct radeon_device *rdev, int crtc) in avivo_wait_for_vblank() argument 96 if (crtc >= rdev->num_crtc) in avivo_wait_for_vblank() 105 while (avivo_is_in_vblank(rdev, crtc)) { in avivo_wait_for_vblank() 107 if (!avivo_is_counter_moving(rdev, crtc)) in avivo_wait_for_vblank() 112 while (!avivo_is_in_vblank(rdev, crtc)) { in avivo_wait_for_vblank() 114 if (!avivo_is_counter_moving(rdev, crtc)) in avivo_wait_for_vblank() [all …]
|
D | rv6xx_dpm.c | 33 static u32 rv6xx_scale_count_given_unit(struct radeon_device *rdev, 43 static struct rv6xx_power_info *rv6xx_get_pi(struct radeon_device *rdev) in rv6xx_get_pi() argument 45 struct rv6xx_power_info *pi = rdev->pm.dpm.priv; in rv6xx_get_pi() 50 static void rv6xx_force_pcie_gen1(struct radeon_device *rdev) in rv6xx_force_pcie_gen1() argument 63 for (i = 0; i < rdev->usec_timeout; i++) { in rv6xx_force_pcie_gen1() 74 static void rv6xx_enable_pcie_gen2_support(struct radeon_device *rdev) in rv6xx_enable_pcie_gen2_support() argument 87 static void rv6xx_enable_bif_dynamic_pcie_gen2(struct radeon_device *rdev, in rv6xx_enable_bif_dynamic_pcie_gen2() argument 100 static void rv6xx_enable_l0s(struct radeon_device *rdev) in rv6xx_enable_l0s() argument 109 static void rv6xx_enable_l1(struct radeon_device *rdev) in rv6xx_enable_l1() argument 121 static void rv6xx_enable_pll_sleep_in_l1(struct radeon_device *rdev) in rv6xx_enable_pll_sleep_in_l1() argument [all …]
|
D | evergreen.c | 56 u32 eg_cg_rreg(struct radeon_device *rdev, u32 reg) in eg_cg_rreg() argument 61 spin_lock_irqsave(&rdev->cg_idx_lock, flags); in eg_cg_rreg() 64 spin_unlock_irqrestore(&rdev->cg_idx_lock, flags); in eg_cg_rreg() 68 void eg_cg_wreg(struct radeon_device *rdev, u32 reg, u32 v) in eg_cg_wreg() argument 72 spin_lock_irqsave(&rdev->cg_idx_lock, flags); in eg_cg_wreg() 75 spin_unlock_irqrestore(&rdev->cg_idx_lock, flags); in eg_cg_wreg() 78 u32 eg_pif_phy0_rreg(struct radeon_device *rdev, u32 reg) in eg_pif_phy0_rreg() argument 83 spin_lock_irqsave(&rdev->pif_idx_lock, flags); in eg_pif_phy0_rreg() 86 spin_unlock_irqrestore(&rdev->pif_idx_lock, flags); in eg_pif_phy0_rreg() 90 void eg_pif_phy0_wreg(struct radeon_device *rdev, u32 reg, u32 v) in eg_pif_phy0_wreg() argument [all …]
|
D | rs690.c | 37 int rs690_mc_wait_for_idle(struct radeon_device *rdev) in rs690_mc_wait_for_idle() argument 42 for (i = 0; i < rdev->usec_timeout; i++) { in rs690_mc_wait_for_idle() 52 static void rs690_gpu_init(struct radeon_device *rdev) in rs690_gpu_init() argument 55 r420_pipes_init(rdev); in rs690_gpu_init() 56 if (rs690_mc_wait_for_idle(rdev)) { in rs690_gpu_init() 66 void rs690_pm_info(struct radeon_device *rdev) in rs690_pm_info() argument 74 if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL, in rs690_pm_info() 76 info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); in rs690_pm_info() 82 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock)); in rs690_pm_info() 83 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info() [all …]
|
D | r300.c | 60 uint32_t rv370_pcie_rreg(struct radeon_device *rdev, uint32_t reg) in rv370_pcie_rreg() argument 65 spin_lock_irqsave(&rdev->pcie_idx_lock, flags); in rv370_pcie_rreg() 66 WREG32(RADEON_PCIE_INDEX, ((reg) & rdev->pcie_reg_mask)); in rv370_pcie_rreg() 68 spin_unlock_irqrestore(&rdev->pcie_idx_lock, flags); in rv370_pcie_rreg() 72 void rv370_pcie_wreg(struct radeon_device *rdev, uint32_t reg, uint32_t v) in rv370_pcie_wreg() argument 76 spin_lock_irqsave(&rdev->pcie_idx_lock, flags); in rv370_pcie_wreg() 77 WREG32(RADEON_PCIE_INDEX, ((reg) & rdev->pcie_reg_mask)); in rv370_pcie_wreg() 79 spin_unlock_irqrestore(&rdev->pcie_idx_lock, flags); in rv370_pcie_wreg() 85 static void rv370_debugfs_pcie_gart_info_init(struct radeon_device *rdev); 87 void rv370_pcie_gart_tlb_flush(struct radeon_device *rdev) in rv370_pcie_gart_tlb_flush() argument [all …]
|
/linux-6.1.9/net/wireless/ |
D | rdev-ops.h | 15 static inline int rdev_suspend(struct cfg80211_registered_device *rdev, in rdev_suspend() argument 19 trace_rdev_suspend(&rdev->wiphy, wowlan); in rdev_suspend() 20 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend() 21 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_suspend() 25 static inline int rdev_resume(struct cfg80211_registered_device *rdev) in rdev_resume() argument 28 trace_rdev_resume(&rdev->wiphy); in rdev_resume() 29 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume() 30 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_resume() 34 static inline void rdev_set_wakeup(struct cfg80211_registered_device *rdev, in rdev_set_wakeup() argument 37 trace_rdev_set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup() [all …]
|
/linux-6.1.9/net/ieee802154/ |
D | rdev-ops.h | 11 rdev_add_virtual_intf_deprecated(struct cfg802154_registered_device *rdev, in rdev_add_virtual_intf_deprecated() argument 16 return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name, in rdev_add_virtual_intf_deprecated() 21 rdev_del_virtual_intf_deprecated(struct cfg802154_registered_device *rdev, in rdev_del_virtual_intf_deprecated() argument 24 rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev); in rdev_del_virtual_intf_deprecated() 28 rdev_suspend(struct cfg802154_registered_device *rdev) in rdev_suspend() argument 31 trace_802154_rdev_suspend(&rdev->wpan_phy); in rdev_suspend() 32 ret = rdev->ops->suspend(&rdev->wpan_phy); in rdev_suspend() 33 trace_802154_rdev_return_int(&rdev->wpan_phy, ret); in rdev_suspend() 38 rdev_resume(struct cfg802154_registered_device *rdev) in rdev_resume() argument 41 trace_802154_rdev_resume(&rdev->wpan_phy); in rdev_resume() [all …]
|
/linux-6.1.9/drivers/regulator/ |
D | helpers.c | 27 int regulator_is_enabled_regmap(struct regulator_dev *rdev) in regulator_is_enabled_regmap() argument 32 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in regulator_is_enabled_regmap() 36 val &= rdev->desc->enable_mask; in regulator_is_enabled_regmap() 38 if (rdev->desc->enable_is_inverted) { in regulator_is_enabled_regmap() 39 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 40 return val != rdev->desc->enable_val; in regulator_is_enabled_regmap() 43 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 44 return val == rdev->desc->enable_val; in regulator_is_enabled_regmap() 59 int regulator_enable_regmap(struct regulator_dev *rdev) in regulator_enable_regmap() argument 63 if (rdev->desc->enable_is_inverted) { in regulator_enable_regmap() [all …]
|
D | core.c | 84 static int _regulator_is_enabled(struct regulator_dev *rdev); 86 static int _regulator_get_error_flags(struct regulator_dev *rdev, unsigned int *flags); 87 static int _regulator_get_current_limit(struct regulator_dev *rdev); 88 static unsigned int _regulator_get_mode(struct regulator_dev *rdev); 89 static int _notifier_call_chain(struct regulator_dev *rdev, 91 static int _regulator_do_set_voltage(struct regulator_dev *rdev, 93 static int regulator_balance_voltage(struct regulator_dev *rdev, 95 static struct regulator *create_regulator(struct regulator_dev *rdev, 101 const char *rdev_get_name(struct regulator_dev *rdev) in rdev_get_name() argument 103 if (rdev->constraints && rdev->constraints->name) in rdev_get_name() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/ |
D | main.c | 81 static void bnxt_re_remove_device(struct bnxt_re_dev *rdev); 84 static void bnxt_re_dev_stop(struct bnxt_re_dev *rdev); 86 static void bnxt_re_set_drv_mode(struct bnxt_re_dev *rdev, u8 mode) in bnxt_re_set_drv_mode() argument 90 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode() 91 cctx->modes.wqe_mode = bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_set_drv_mode() 95 static void bnxt_re_destroy_chip_ctx(struct bnxt_re_dev *rdev) in bnxt_re_destroy_chip_ctx() argument 99 if (!rdev->chip_ctx) in bnxt_re_destroy_chip_ctx() 101 chip_ctx = rdev->chip_ctx; in bnxt_re_destroy_chip_ctx() 102 rdev->chip_ctx = NULL; in bnxt_re_destroy_chip_ctx() 103 rdev->rcfw.res = NULL; in bnxt_re_destroy_chip_ctx() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/cxgb4/ |
D | resource.c | 38 static int c4iw_init_qid_table(struct c4iw_rdev *rdev) in c4iw_init_qid_table() argument 42 if (c4iw_id_table_alloc(&rdev->resource.qid_table, in c4iw_init_qid_table() 43 rdev->lldi.vr->qp.start, in c4iw_init_qid_table() 44 rdev->lldi.vr->qp.size, in c4iw_init_qid_table() 45 rdev->lldi.vr->qp.size, 0)) in c4iw_init_qid_table() 48 for (i = rdev->lldi.vr->qp.start; in c4iw_init_qid_table() 49 i < rdev->lldi.vr->qp.start + rdev->lldi.vr->qp.size; i++) in c4iw_init_qid_table() 50 if (!(i & rdev->qpmask)) in c4iw_init_qid_table() 51 c4iw_id_free(&rdev->resource.qid_table, i); in c4iw_init_qid_table() 56 int c4iw_init_resource(struct c4iw_rdev *rdev, u32 nr_tpt, in c4iw_init_resource() argument [all …]
|