Home
last modified time | relevance | path

Searched refs:rdev (Results 1 – 25 of 456) sorted by relevance

12345678910>>...19

/linux/drivers/gpu/drm/radeon/
H A Dr420.c45 void r420_pm_init_profile(struct radeon_device *rdev) in r420_pm_init_profile() argument
48 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_ps_idx = rdev->pm.default_power_state_index; in r420_pm_init_profile()
49 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_ps_idx = rdev->pm.default_power_state_index; in r420_pm_init_profile()
50 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_off_cm_idx = 0; in r420_pm_init_profile()
51 rdev->pm.profiles[PM_PROFILE_DEFAULT_IDX].dpms_on_cm_idx = 0; in r420_pm_init_profile()
53 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_ps_idx = 0; in r420_pm_init_profile()
54 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_ps_idx = 0; in r420_pm_init_profile()
55 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_off_cm_idx = 0; in r420_pm_init_profile()
56 rdev->pm.profiles[PM_PROFILE_LOW_SH_IDX].dpms_on_cm_idx = 0; in r420_pm_init_profile()
58 rdev->pm.profiles[PM_PROFILE_MID_SH_IDX].dpms_off_ps_idx = 0; in r420_pm_init_profile()
[all …]
H A Dr520.c36 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 …]
H A Dni.c47 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()
437 static void ni_init_golden_registers(struct radeon_device *rdev) in ni_init_golden_registers() argument
439 switch (rdev->family) { in ni_init_golden_registers()
441 radeon_program_register_sequence(rdev, in ni_init_golden_registers()
444 radeon_program_register_sequence(rdev, in ni_init_golden_registers()
[all …]
H A Drs400.c41 static void rs400_debugfs_pcie_gart_info_init(struct radeon_device *rdev);
43 void rs400_gart_adjust_size(struct radeon_device *rdev) in rs400_gart_adjust_size() argument
46 switch (rdev->mc.gtt_size/(1024*1024)) { in rs400_gart_adjust_size()
57 (unsigned)(rdev->mc.gtt_size >> 20)); in rs400_gart_adjust_size()
60 rdev->mc.gtt_size = 32 * 1024 * 1024; in rs400_gart_adjust_size()
65 void rs400_gart_tlb_flush(struct radeon_device *rdev) in rs400_gart_tlb_flush() argument
68 unsigned int timeout = rdev->usec_timeout; in rs400_gart_tlb_flush()
81 int rs400_gart_init(struct radeon_device *rdev) in rs400_gart_init() argument
85 if (rdev->gart.ptr) { in rs400_gart_init()
90 switch (rdev->mc.gtt_size / (1024 * 1024)) { in rs400_gart_init()
[all …]
H A Dr600.c108 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 …]
H A Drv770.c49 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 …]
H A Dradeon_kms.c63 struct radeon_device *rdev = dev->dev_private; in radeon_driver_unload_kms() local
65 if (rdev == NULL) in radeon_driver_unload_kms()
68 if (rdev->rmmio == NULL) in radeon_driver_unload_kms()
76 radeon_acpi_fini(rdev); in radeon_driver_unload_kms()
78 radeon_modeset_fini(rdev); in radeon_driver_unload_kms()
79 radeon_device_fini(rdev); in radeon_driver_unload_kms()
81 if (rdev->agp) in radeon_driver_unload_kms()
82 arch_phys_wc_del(rdev->agp->agp_mtrr); in radeon_driver_unload_kms()
83 kfree(rdev->agp); in radeon_driver_unload_kms()
84 rdev->agp = NULL; in radeon_driver_unload_kms()
[all …]
H A Drs600.c54 static void rs600_gpu_init(struct radeon_device *rdev);
55 int rs600_mc_wait_for_idle(struct radeon_device *rdev);
62 static bool avivo_is_in_vblank(struct radeon_device *rdev, int crtc) in avivo_is_in_vblank() argument
70 static bool avivo_is_counter_moving(struct radeon_device *rdev, int crtc) in avivo_is_counter_moving() argument
91 void avivo_wait_for_vblank(struct radeon_device *rdev, int crtc) in avivo_wait_for_vblank() argument
95 if (crtc >= rdev->num_crtc) in avivo_wait_for_vblank()
104 while (avivo_is_in_vblank(rdev, crtc)) { in avivo_wait_for_vblank()
106 if (!avivo_is_counter_moving(rdev, crtc)) in avivo_wait_for_vblank()
111 while (!avivo_is_in_vblank(rdev, crtc)) { in avivo_wait_for_vblank()
113 if (!avivo_is_counter_moving(rdev, crtc)) in avivo_wait_for_vblank()
[all …]
H A Dradeon_fence.c67 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()
71 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()
112 static void radeon_fence_schedule_check(struct radeon_device *rdev, int ring) in radeon_fence_schedule_check() argument
119 &rdev->fence_drv[ring].lockup_work, in radeon_fence_schedule_check()
133 int radeon_fence_emit(struct radeon_device *rdev, in radeon_fence_emit() argument
144 (*fence)->rdev = rdev; in radeon_fence_emit()
[all …]
H A Drv6xx_dpm.c33 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 …]
H A Drs690.c37 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 …]
H A Dkv_dpm.c37 static int kv_enable_nb_dpm(struct radeon_device *rdev,
39 static void kv_init_graphics_levels(struct radeon_device *rdev);
40 static int kv_calculate_ds_divider(struct radeon_device *rdev);
41 static int kv_calculate_nbps_level_settings(struct radeon_device *rdev);
42 static int kv_calculate_dpm_settings(struct radeon_device *rdev);
43 static void kv_enable_new_levels(struct radeon_device *rdev);
44 static void kv_program_nbps_index_settings(struct radeon_device *rdev,
46 static int kv_set_enabled_level(struct radeon_device *rdev, u32 level);
47 static int kv_set_enabled_levels(struct radeon_device *rdev);
48 static int kv_force_dpm_highest(struct radeon_device *rdev);
[all …]
H A Drs780_dpm.c42 static struct igp_power_info *rs780_get_pi(struct radeon_device *rdev) in rs780_get_pi() argument
44 struct igp_power_info *pi = rdev->pm.dpm.priv; in rs780_get_pi()
49 static void rs780_get_pm_mode_parameters(struct radeon_device *rdev) in rs780_get_pm_mode_parameters() argument
51 struct igp_power_info *pi = rs780_get_pi(rdev); in rs780_get_pm_mode_parameters()
52 struct radeon_mode_info *minfo = &rdev->mode_info; in rs780_get_pm_mode_parameters()
61 for (i = 0; i < rdev->num_crtc; i++) { in rs780_get_pm_mode_parameters()
73 static void rs780_voltage_scaling_enable(struct radeon_device *rdev, bool enable);
75 static int rs780_initialize_dpm_power_state(struct radeon_device *rdev, in rs780_initialize_dpm_power_state() argument
82 ret = radeon_atom_get_clock_dividers(rdev, COMPUTE_ENGINE_PLL_PARAM, in rs780_initialize_dpm_power_state()
87 r600_engine_clock_entry_set_reference_divider(rdev, 0, dividers.ref_div); in rs780_initialize_dpm_power_state()
[all …]
H A Dr300.c60 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 …]
H A Dbtc_dpm.c53 extern int ni_mc_load_microcode(struct radeon_device *rdev);
1198 static u32 btc_get_valid_mclk(struct radeon_device *rdev, in btc_get_valid_mclk() argument
1201 return btc_find_valid_clock(&rdev->pm.dpm.dyn_state.valid_mclk_values, in btc_get_valid_mclk()
1205 static u32 btc_get_valid_sclk(struct radeon_device *rdev, in btc_get_valid_sclk() argument
1208 return btc_find_valid_clock(&rdev->pm.dpm.dyn_state.valid_sclk_values, in btc_get_valid_sclk()
1212 void btc_skip_blacklist_clocks(struct radeon_device *rdev, in btc_skip_blacklist_clocks() argument
1231 *sclk = btc_get_valid_sclk(rdev, max_sclk, *sclk + 1); in btc_skip_blacklist_clocks()
1234 btc_skip_blacklist_clocks(rdev, max_sclk, max_mclk, sclk, mclk); in btc_skip_blacklist_clocks()
1239 void btc_adjust_clock_combinations(struct radeon_device *rdev, in btc_adjust_clock_combinations() argument
1251 if (((pl->mclk + (pl->sclk - 1)) / pl->sclk) > rdev->pm.dpm.dyn_state.mclk_sclk_ratio) in btc_adjust_clock_combinations()
[all …]
H A Dtrinity_dpm.c293 static void trinity_program_clk_gating_hw_sequence(struct radeon_device *rdev,
295 static void trinity_override_dynamic_mg_powergating(struct radeon_device *rdev);
296 static void trinity_apply_state_adjust_rules(struct radeon_device *rdev,
307 static struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev) in trinity_get_pi() argument
309 struct trinity_power_info *pi = rdev->pm.dpm.priv; in trinity_get_pi()
314 static void trinity_gfx_powergating_initialize(struct radeon_device *rdev) in trinity_gfx_powergating_initialize() argument
316 struct trinity_power_info *pi = trinity_get_pi(rdev); in trinity_gfx_powergating_initialize()
320 u32 xclk = radeon_get_xclk(rdev); in trinity_gfx_powergating_initialize()
325 ret = radeon_atom_get_clock_dividers(rdev, COMPUTE_ENGINE_PLL_PARAM, in trinity_gfx_powergating_initialize()
345 trinity_override_dynamic_mg_powergating(rdev); in trinity_gfx_powergating_initialize()
[all …]
H A Dradeon_ib.c45 static void radeon_debugfs_sa_init(struct radeon_device *rdev);
60 int radeon_ib_get(struct radeon_device *rdev, int ring, in radeon_ib_get() argument
66 r = radeon_sa_bo_new(&rdev->ring_tmp_bo, &ib->sa_bo, size, 256); in radeon_ib_get()
68 dev_err(rdev->dev, "failed to get a new IB (%d)\n", r); in radeon_ib_get()
99 void radeon_ib_free(struct radeon_device *rdev, struct radeon_ib *ib) in radeon_ib_free() argument
101 radeon_sync_free(rdev, &ib->sync, ib->fence); in radeon_ib_free()
127 int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib, in radeon_ib_schedule() argument
130 struct radeon_ring *ring = &rdev->ring[ib->ring]; in radeon_ib_schedule()
135 dev_err(rdev->dev, "couldn't schedule ib\n"); in radeon_ib_schedule()
140 r = radeon_ring_lock(rdev, ring, 64 + RADEON_NUM_SYNCS * 8); in radeon_ib_schedule()
[all …]
H A Dr600_dpm.h134 void r600_dpm_print_ps_status(struct radeon_device *rdev,
136 u32 r600_dpm_get_vblank_time(struct radeon_device *rdev);
137 u32 r600_dpm_get_vrefresh(struct radeon_device *rdev);
142 void r600_gfx_clockgating_enable(struct radeon_device *rdev, bool enable);
143 void r600_dynamicpm_enable(struct radeon_device *rdev, bool enable);
144 void r600_enable_thermal_protection(struct radeon_device *rdev, bool enable);
145 void r600_enable_acpi_pm(struct radeon_device *rdev);
146 void r600_enable_dynamic_pcie_gen2(struct radeon_device *rdev, bool enable);
147 bool r600_dynamicpm_enabled(struct radeon_device *rdev);
148 void r600_enable_sclk_control(struct radeon_device *rdev, bool enable);
[all …]
H A Dr100.c78 static bool r100_is_in_vblank(struct radeon_device *rdev, int crtc) in r100_is_in_vblank() argument
93 static bool r100_is_counter_moving(struct radeon_device *rdev, int crtc) in r100_is_counter_moving() argument
118 void r100_wait_for_vblank(struct radeon_device *rdev, int crtc) in r100_wait_for_vblank() argument
122 if (crtc >= rdev->num_crtc) in r100_wait_for_vblank()
136 while (r100_is_in_vblank(rdev, crtc)) { in r100_wait_for_vblank()
138 if (!r100_is_counter_moving(rdev, crtc)) in r100_wait_for_vblank()
143 while (!r100_is_in_vblank(rdev, crtc)) { in r100_wait_for_vblank()
145 if (!r100_is_counter_moving(rdev, crtc)) in r100_wait_for_vblank()
164 void r100_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base, bool async) in r100_page_flip() argument
166 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in r100_page_flip()
[all …]
/linux/net/wireless/
H A Drdev-ops.h15 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 in rdev_resume()
34 rdev_set_wakeup(struct cfg80211_registered_device * rdev,bool enabled) rdev_set_wakeup() argument
43 rdev_add_virtual_intf(struct cfg80211_registered_device * rdev,char * name,unsigned char name_assign_type,enum nl80211_iftype type,struct vif_params * params) rdev_add_virtual_intf() argument
57 rdev_del_virtual_intf(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev) rdev_del_virtual_intf() argument
68 rdev_change_virtual_intf(struct cfg80211_registered_device * rdev,struct net_device * dev,enum nl80211_iftype type,struct vif_params * params) rdev_change_virtual_intf() argument
79 rdev_add_key(struct cfg80211_registered_device * rdev,struct net_device * netdev,int link_id,u8 key_index,bool pairwise,const u8 * mac_addr,struct key_params * params) rdev_add_key() argument
94 rdev_get_key(struct cfg80211_registered_device * rdev,struct net_device * netdev,int link_id,u8 key_index,bool pairwise,const u8 * mac_addr,void * cookie,void (* callback)(void * cookie,struct key_params *)) rdev_get_key() argument
108 rdev_del_key(struct cfg80211_registered_device * rdev,struct net_device * netdev,int link_id,u8 key_index,bool pairwise,const u8 * mac_addr) rdev_del_key() argument
122 rdev_set_default_key(struct cfg80211_registered_device * rdev,struct net_device * netdev,int link_id,u8 key_index,bool unicast,bool multicast) rdev_set_default_key() argument
136 rdev_set_default_mgmt_key(struct cfg80211_registered_device * rdev,struct net_device * netdev,int link_id,u8 key_index) rdev_set_default_mgmt_key() argument
149 rdev_set_default_beacon_key(struct cfg80211_registered_device * rdev,struct net_device * netdev,int link_id,u8 key_index) rdev_set_default_beacon_key() argument
163 rdev_start_ap(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_ap_settings * settings) rdev_start_ap() argument
174 rdev_change_beacon(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_ap_update * info) rdev_change_beacon() argument
185 rdev_stop_ap(struct cfg80211_registered_device * rdev,struct net_device * dev,unsigned int link_id) rdev_stop_ap() argument
195 rdev_add_station(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * mac,struct station_parameters * params) rdev_add_station() argument
206 rdev_del_station(struct cfg80211_registered_device * rdev,struct net_device * dev,struct station_del_parameters * params) rdev_del_station() argument
217 rdev_change_station(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * mac,struct station_parameters * params) rdev_change_station() argument
228 rdev_get_station(struct cfg80211_registered_device * rdev,struct net_device * dev,const u8 * mac,struct station_info * sinfo) rdev_get_station() argument
239 rdev_dump_station(struct cfg80211_registered_device * rdev,struct net_device * dev,int idx,u8 * mac,struct station_info * sinfo) rdev_dump_station() argument
250 rdev_add_mpath(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * dst,u8 * next_hop) rdev_add_mpath() argument
260 rdev_del_mpath(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * dst) rdev_del_mpath() argument
270 rdev_change_mpath(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * dst,u8 * next_hop) rdev_change_mpath() argument
281 rdev_get_mpath(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * dst,u8 * next_hop,struct mpath_info * pinfo) rdev_get_mpath() argument
293 rdev_get_mpp(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * dst,u8 * mpp,struct mpath_info * pinfo) rdev_get_mpp() argument
305 rdev_dump_mpath(struct cfg80211_registered_device * rdev,struct net_device * dev,int idx,u8 * dst,u8 * next_hop,struct mpath_info * pinfo) rdev_dump_mpath() argument
318 rdev_dump_mpp(struct cfg80211_registered_device * rdev,struct net_device * dev,int idx,u8 * dst,u8 * mpp,struct mpath_info * pinfo) rdev_dump_mpp() argument
332 rdev_get_mesh_config(struct cfg80211_registered_device * rdev,struct net_device * dev,struct mesh_config * conf) rdev_get_mesh_config() argument
343 rdev_update_mesh_config(struct cfg80211_registered_device * rdev,struct net_device * dev,u32 mask,const struct mesh_config * nconf) rdev_update_mesh_config() argument
354 rdev_join_mesh(struct cfg80211_registered_device * rdev,struct net_device * dev,const struct mesh_config * conf,const struct mesh_setup * setup) rdev_join_mesh() argument
367 rdev_leave_mesh(struct cfg80211_registered_device * rdev,struct net_device * dev) rdev_leave_mesh() argument
377 rdev_join_ocb(struct cfg80211_registered_device * rdev,struct net_device * dev,struct ocb_setup * setup) rdev_join_ocb() argument
388 rdev_leave_ocb(struct cfg80211_registered_device * rdev,struct net_device * dev) rdev_leave_ocb() argument
398 rdev_change_bss(struct cfg80211_registered_device * rdev,struct net_device * dev,struct bss_parameters * params) rdev_change_bss() argument
410 rdev_inform_bss(struct cfg80211_registered_device * rdev,struct cfg80211_bss * bss,const struct cfg80211_bss_ies * ies,void * drv_data) rdev_inform_bss() argument
422 rdev_set_txq_params(struct cfg80211_registered_device * rdev,struct net_device * dev,struct ieee80211_txq_params * params) rdev_set_txq_params() argument
435 rdev_libertas_set_mesh_channel(struct cfg80211_registered_device * rdev,struct net_device * dev,struct ieee80211_channel * chan) rdev_libertas_set_mesh_channel() argument
447 rdev_set_monitor_channel(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_chan_def * chandef) rdev_set_monitor_channel() argument
458 rdev_scan(struct cfg80211_registered_device * rdev,struct cfg80211_scan_request_int * request) rdev_scan() argument
472 rdev_abort_scan(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev) rdev_abort_scan() argument
480 rdev_auth(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_auth_request * req) rdev_auth() argument
491 rdev_assoc(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_assoc_request * req) rdev_assoc() argument
503 rdev_deauth(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_deauth_request * req) rdev_deauth() argument
514 rdev_disassoc(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_disassoc_request * req) rdev_disassoc() argument
525 rdev_connect(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_connect_params * sme) rdev_connect() argument
537 rdev_update_connect_params(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_connect_params * sme,u32 changed) rdev_update_connect_params() argument
548 rdev_disconnect(struct cfg80211_registered_device * rdev,struct net_device * dev,u16 reason_code) rdev_disconnect() argument
558 rdev_join_ibss(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_ibss_params * params) rdev_join_ibss() argument
569 rdev_leave_ibss(struct cfg80211_registered_device * rdev,struct net_device * dev) rdev_leave_ibss() argument
580 rdev_set_wiphy_params(struct cfg80211_registered_device * rdev,int radio_idx,u32 changed) rdev_set_wiphy_params() argument
593 rdev_set_tx_power(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,int radio_idx,enum nl80211_tx_power_setting type,int mbm) rdev_set_tx_power() argument
606 rdev_get_tx_power(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,int radio_idx,unsigned int link_id,int * dbm) rdev_get_tx_power() argument
619 rdev_set_multicast_to_unicast(struct cfg80211_registered_device * rdev,struct net_device * dev,const bool enabled) rdev_set_multicast_to_unicast() argument
631 rdev_get_txq_stats(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct cfg80211_txq_stats * txqstats) rdev_get_txq_stats() argument
642 rdev_rfkill_poll(struct cfg80211_registered_device * rdev) rdev_rfkill_poll() argument
651 rdev_testmode_cmd(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,void * data,int len) rdev_testmode_cmd() argument
662 rdev_testmode_dump(struct cfg80211_registered_device * rdev,struct sk_buff * skb,struct netlink_callback * cb,void * data,int len) rdev_testmode_dump() argument
676 rdev_set_bitrate_mask(struct cfg80211_registered_device * rdev,struct net_device * dev,unsigned int link_id,const u8 * peer,const struct cfg80211_bitrate_mask * mask) rdev_set_bitrate_mask() argument
689 rdev_dump_survey(struct cfg80211_registered_device * rdev,struct net_device * netdev,int idx,struct survey_info * info) rdev_dump_survey() argument
703 rdev_set_pmksa(struct cfg80211_registered_device * rdev,struct net_device * netdev,struct cfg80211_pmksa * pmksa) rdev_set_pmksa() argument
714 rdev_del_pmksa(struct cfg80211_registered_device * rdev,struct net_device * netdev,struct cfg80211_pmksa * pmksa) rdev_del_pmksa() argument
725 rdev_flush_pmksa(struct cfg80211_registered_device * rdev,struct net_device * netdev) rdev_flush_pmksa() argument
736 rdev_remain_on_channel(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct ieee80211_channel * chan,unsigned int duration,u64 * cookie) rdev_remain_on_channel() argument
750 rdev_cancel_remain_on_channel(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,u64 cookie) rdev_cancel_remain_on_channel() argument
760 rdev_mgmt_tx(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct cfg80211_mgmt_tx_params * params,u64 * cookie) rdev_mgmt_tx() argument
772 rdev_tx_control_port(struct cfg80211_registered_device * rdev,struct net_device * dev,const void * buf,size_t len,const u8 * dest,__be16 proto,const bool noencrypt,int link,u64 * cookie) rdev_tx_control_port() argument
792 rdev_mgmt_tx_cancel_wait(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,u64 cookie) rdev_mgmt_tx_cancel_wait() argument
802 rdev_set_power_mgmt(struct cfg80211_registered_device * rdev,struct net_device * dev,bool enabled,int timeout) rdev_set_power_mgmt() argument
814 rdev_set_cqm_rssi_config(struct cfg80211_registered_device * rdev,struct net_device * dev,s32 rssi_thold,u32 rssi_hyst) rdev_set_cqm_rssi_config() argument
827 rdev_set_cqm_rssi_range_config(struct cfg80211_registered_device * rdev,struct net_device * dev,s32 low,s32 high) rdev_set_cqm_rssi_range_config() argument
839 rdev_set_cqm_txe_config(struct cfg80211_registered_device * rdev,struct net_device * dev,u32 rate,u32 pkts,u32 intvl) rdev_set_cqm_txe_config() argument
851 rdev_update_mgmt_frame_registrations(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct mgmt_frame_regs * upd) rdev_update_mgmt_frame_registrations() argument
864 rdev_set_antenna(struct cfg80211_registered_device * rdev,int radio_idx,u32 tx_ant,u32 rx_ant) rdev_set_antenna() argument
874 rdev_get_antenna(struct cfg80211_registered_device * rdev,int radio_idx,u32 * tx_ant,u32 * rx_ant) rdev_get_antenna() argument
889 rdev_sched_scan_start(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_sched_scan_request * request) rdev_sched_scan_start() argument
900 rdev_sched_scan_stop(struct cfg80211_registered_device * rdev,struct net_device * dev,u64 reqid) rdev_sched_scan_stop() argument
910 rdev_set_rekey_data(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_gtk_rekey_data * data) rdev_set_rekey_data() argument
921 rdev_tdls_mgmt(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * peer,int link_id,u8 action_code,u8 dialog_token,u16 status_code,u32 peer_capability,bool initiator,const u8 * buf,size_t len) rdev_tdls_mgmt() argument
939 rdev_tdls_oper(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 * peer,enum nl80211_tdls_operation oper) rdev_tdls_oper() argument
950 rdev_probe_client(struct cfg80211_registered_device * rdev,struct net_device * dev,const u8 * peer,u64 * cookie) rdev_probe_client() argument
961 rdev_set_noack_map(struct cfg80211_registered_device * rdev,struct net_device * dev,u16 noack_map) rdev_set_noack_map() argument
972 rdev_get_channel(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,unsigned int link_id,struct cfg80211_chan_def * chandef) rdev_get_channel() argument
986 rdev_start_p2p_device(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev) rdev_start_p2p_device() argument
997 rdev_stop_p2p_device(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev) rdev_stop_p2p_device() argument
1005 rdev_start_nan(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct cfg80211_nan_conf * conf) rdev_start_nan() argument
1017 rdev_stop_nan(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev) rdev_stop_nan() argument
1026 rdev_add_nan_func(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct cfg80211_nan_func * nan_func) rdev_add_nan_func() argument
1038 rdev_del_nan_func(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,u64 cookie) rdev_del_nan_func() argument
1047 rdev_nan_change_conf(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct cfg80211_nan_conf * conf,u32 changes) rdev_nan_change_conf() argument
1063 rdev_set_mac_acl(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_acl_data * params) rdev_set_mac_acl() argument
1075 rdev_update_ft_ies(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_update_ft_ies_params * ftie) rdev_update_ft_ies() argument
1087 rdev_crit_proto_start(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,enum nl80211_crit_proto_id protocol,u16 duration) rdev_crit_proto_start() argument
1101 rdev_crit_proto_stop(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev) rdev_crit_proto_stop() argument
1109 rdev_channel_switch(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_csa_settings * params) rdev_channel_switch() argument
1121 rdev_set_qos_map(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_qos_map * qos_map) rdev_set_qos_map() argument
1137 rdev_set_ap_chanwidth(struct cfg80211_registered_device * rdev,struct net_device * dev,unsigned int link_id,struct cfg80211_chan_def * chandef) rdev_set_ap_chanwidth() argument
1152 rdev_add_tx_ts(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 tsid,const u8 * peer,u8 user_prio,u16 admitted_time) rdev_add_tx_ts() argument
1169 rdev_del_tx_ts(struct cfg80211_registered_device * rdev,struct net_device * dev,u8 tsid,const u8 * peer) rdev_del_tx_ts() argument
1183 rdev_tdls_channel_switch(struct cfg80211_registered_device * rdev,struct net_device * dev,const u8 * addr,u8 oper_class,struct cfg80211_chan_def * chandef) rdev_tdls_channel_switch() argument
1198 rdev_tdls_cancel_channel_switch(struct cfg80211_registered_device * rdev,struct net_device * dev,const u8 * addr) rdev_tdls_cancel_channel_switch() argument
1207 rdev_start_radar_detection(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_chan_def * chandef,u32 cac_time_ms,int link_id) rdev_start_radar_detection() argument
1225 rdev_end_cac(struct cfg80211_registered_device * rdev,struct net_device * dev,unsigned int link_id) rdev_end_cac() argument
1235 rdev_set_mcast_rate(struct cfg80211_registered_device * rdev,struct net_device * dev,int mcast_rate[NUM_NL80211_BANDS]) rdev_set_mcast_rate() argument
1249 rdev_set_coalesce(struct cfg80211_registered_device * rdev,struct cfg80211_coalesce * coalesce) rdev_set_coalesce() argument
1261 rdev_set_pmk(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_pmk_conf * pmk_conf) rdev_set_pmk() argument
1274 rdev_del_pmk(struct cfg80211_registered_device * rdev,struct net_device * dev,const u8 * aa) rdev_del_pmk() argument
1287 rdev_external_auth(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_external_auth_params * params) rdev_external_auth() argument
1301 rdev_get_ftm_responder_stats(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_ftm_responder_stats * ftm_stats) rdev_get_ftm_responder_stats() argument
1316 rdev_start_pmsr(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct cfg80211_pmsr_request * request) rdev_start_pmsr() argument
1330 rdev_abort_pmsr(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct cfg80211_pmsr_request * request) rdev_abort_pmsr() argument
1340 rdev_update_owe_info(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_update_owe_info * oweinfo) rdev_update_owe_info() argument
1354 rdev_probe_mesh_link(struct cfg80211_registered_device * rdev,struct net_device * dev,const u8 * dest,const void * buf,size_t len) rdev_probe_mesh_link() argument
1366 rdev_set_tid_config(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_tid_config * tid_conf) rdev_set_tid_config() argument
1378 rdev_reset_tid_config(struct cfg80211_registered_device * rdev,struct net_device * dev,const u8 * peer,u8 tids) rdev_reset_tid_config() argument
1390 rdev_set_sar_specs(struct cfg80211_registered_device * rdev,struct cfg80211_sar_specs * sar) rdev_set_sar_specs() argument
1402 rdev_color_change(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_color_change_settings * params) rdev_color_change() argument
1416 rdev_set_fils_aad(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_fils_aad * fils_aad) rdev_set_fils_aad() argument
1430 rdev_set_radar_background(struct cfg80211_registered_device * rdev,struct cfg80211_chan_def * chandef) rdev_set_radar_background() argument
1445 rdev_add_intf_link(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,unsigned int link_id) rdev_add_intf_link() argument
1460 rdev_del_intf_link(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,unsigned int link_id) rdev_del_intf_link() argument
1471 rdev_add_link_station(struct cfg80211_registered_device * rdev,struct net_device * dev,struct link_station_parameters * params) rdev_add_link_station() argument
1485 rdev_mod_link_station(struct cfg80211_registered_device * rdev,struct net_device * dev,struct link_station_parameters * params) rdev_mod_link_station() argument
1499 rdev_del_link_station(struct cfg80211_registered_device * rdev,struct net_device * dev,struct link_station_del_parameters * params) rdev_del_link_station() argument
1513 rdev_set_hw_timestamp(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_set_hw_timestamp * hwts) rdev_set_hw_timestamp() argument
1529 rdev_set_ttlm(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_ttlm_params * params) rdev_set_ttlm() argument
1545 rdev_get_radio_mask(struct cfg80211_registered_device * rdev,struct net_device * dev) rdev_get_radio_mask() argument
1557 rdev_assoc_ml_reconf(struct cfg80211_registered_device * rdev,struct net_device * dev,struct cfg80211_ml_reconf_req * req) rdev_assoc_ml_reconf() argument
1573 rdev_set_epcs(struct cfg80211_registered_device * rdev,struct net_device * dev,bool val) rdev_set_epcs() argument
[all...]
H A Dcore.c62 struct cfg80211_registered_device *result = NULL, *rdev; in cfg80211_rdev_by_wiphy_idx() local
66 for_each_rdev(rdev) { in cfg80211_rdev_by_wiphy_idx()
67 if (rdev->wiphy_idx == wiphy_idx) { in cfg80211_rdev_by_wiphy_idx()
68 result = rdev; in cfg80211_rdev_by_wiphy_idx()
78 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in get_wiphy_idx() local
80 return rdev->wiphy_idx; in get_wiphy_idx()
85 struct cfg80211_registered_device *rdev; in wiphy_idx_to_wiphy() local
89 rdev = cfg80211_rdev_by_wiphy_idx(wiphy_idx); in wiphy_idx_to_wiphy()
90 if (!rdev) in wiphy_idx_to_wiphy()
92 return &rdev->wiphy; in wiphy_idx_to_wiphy()
[all …]
/linux/net/ieee802154/
H A Drdev-ops.h11 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/drivers/regulator/
H A Dhelpers.c28 int regulator_is_enabled_regmap(struct regulator_dev *rdev) in regulator_is_enabled_regmap() argument
33 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in regulator_is_enabled_regmap()
37 val &= rdev->desc->enable_mask; in regulator_is_enabled_regmap()
39 if (rdev->desc->enable_is_inverted) { in regulator_is_enabled_regmap()
40 if (rdev->desc->enable_val) in regulator_is_enabled_regmap()
41 return val != rdev->desc->enable_val; in regulator_is_enabled_regmap()
44 if (rdev->desc->enable_val) in regulator_is_enabled_regmap()
45 return val == rdev->desc->enable_val; in regulator_is_enabled_regmap()
60 int regulator_enable_regmap(struct regulator_dev *rdev) in regulator_enable_regmap() argument
64 if (rdev->desc->enable_is_inverted) { in regulator_enable_regmap()
[all …]
/linux/drivers/infiniband/hw/cxgb4/
H A Dresource.c38 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 …]
/linux/drivers/infiniband/hw/bng_re/
H A Dbng_dev.c26 struct bng_re_dev *rdev; in bng_re_dev_add() local
29 rdev = ib_alloc_device(bng_re_dev, ibdev); in bng_re_dev_add()
30 if (!rdev) { in bng_re_dev_add()
36 rdev->netdev = aux_dev->net; in bng_re_dev_add()
37 rdev->aux_dev = aux_dev; in bng_re_dev_add()
38 rdev->adev = adev; in bng_re_dev_add()
39 rdev->fn_id = rdev->aux_dev->pdev->devfn; in bng_re_dev_add()
41 return rdev; in bng_re_dev_add()
45 static int bng_re_register_netdev(struct bng_re_dev *rdev) in bng_re_register_netdev() argument
49 aux_dev = rdev->aux_dev; in bng_re_register_netdev()
[all …]

12345678910>>...19