/linux-6.6.21/drivers/fpga/ |
D | fpga-mgr.c | 25 struct fpga_manager *mgr; member 28 static inline void fpga_mgr_fpga_remove(struct fpga_manager *mgr) in fpga_mgr_fpga_remove() argument 30 if (mgr->mops->fpga_remove) in fpga_mgr_fpga_remove() 31 mgr->mops->fpga_remove(mgr); in fpga_mgr_fpga_remove() 34 static inline enum fpga_mgr_states fpga_mgr_state(struct fpga_manager *mgr) in fpga_mgr_state() argument 36 if (mgr->mops->state) in fpga_mgr_state() 37 return mgr->mops->state(mgr); in fpga_mgr_state() 41 static inline u64 fpga_mgr_status(struct fpga_manager *mgr) in fpga_mgr_status() argument 43 if (mgr->mops->status) in fpga_mgr_status() 44 return mgr->mops->status(mgr); in fpga_mgr_status() [all …]
|
D | xilinx-spi.c | 30 static int get_done_gpio(struct fpga_manager *mgr) in get_done_gpio() argument 32 struct xilinx_spi_conf *conf = mgr->priv; in get_done_gpio() 38 dev_err(&mgr->dev, "Error reading DONE (%d)\n", ret); in get_done_gpio() 43 static enum fpga_mgr_states xilinx_spi_state(struct fpga_manager *mgr) in xilinx_spi_state() argument 45 if (!get_done_gpio(mgr)) in xilinx_spi_state() 63 static int wait_for_init_b(struct fpga_manager *mgr, int value, in wait_for_init_b() argument 66 struct xilinx_spi_conf *conf = mgr->priv; in wait_for_init_b() 77 dev_err(&mgr->dev, "Error reading INIT_B (%d)\n", ret); in wait_for_init_b() 84 dev_err(&mgr->dev, "Timeout waiting for INIT_B to %s\n", in wait_for_init_b() 94 static int xilinx_spi_write_init(struct fpga_manager *mgr, in xilinx_spi_write_init() argument [all …]
|
/linux-6.6.21/sound/pci/pcxhr/ |
D | pcxhr_hwdep.c | 25 static int pcxhr_sub_init(struct pcxhr_mgr *mgr); 29 static int pcxhr_init_board(struct pcxhr_mgr *mgr) in pcxhr_init_board() argument 36 if (mgr->mono_capture) in pcxhr_init_board() 37 card_streams = mgr->capture_chips * 2; in pcxhr_init_board() 39 card_streams = mgr->capture_chips; in pcxhr_init_board() 40 card_streams += mgr->playback_chips * PCXHR_PLAYBACK_STREAMS; in pcxhr_init_board() 43 pcxhr_enable_dsp(mgr); in pcxhr_init_board() 46 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_init_board() 50 if ((rmh.stat[0] & MASK_FIRST_FIELD) < mgr->playback_chips * 2) in pcxhr_init_board() 54 mgr->capture_chips * 2) in pcxhr_init_board() [all …]
|
D | pcxhr_core.c | 59 #define PCXHR_INPB(mgr,x) inb((mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument 60 #define PCXHR_INPL(mgr,x) inl((mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument 61 #define PCXHR_OUTPB(mgr,x,data) outb((data), (mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument 62 #define PCXHR_OUTPL(mgr,x,data) outl((data), (mgr)->port[PCXHR_REG_TO_PORT(x)] + (x)) argument 113 static int pcxhr_check_reg_bit(struct pcxhr_mgr *mgr, unsigned int reg, in pcxhr_check_reg_bit() argument 120 *read = PCXHR_INPB(mgr, reg); in pcxhr_check_reg_bit() 123 dev_dbg(&mgr->pci->dev, in pcxhr_check_reg_bit() 130 dev_err(&mgr->pci->dev, in pcxhr_check_reg_bit() 166 static int pcxhr_send_it_dsp(struct pcxhr_mgr *mgr, in pcxhr_send_it_dsp() argument 174 PCXHR_OUTPL(mgr, PCXHR_PLX_MBOX0, in pcxhr_send_it_dsp() [all …]
|
D | pcxhr_mix22.c | 36 #define PCXHR_INPB(mgr, x) inb((mgr)->port[PCXHR_DSP] + (x)) argument 37 #define PCXHR_OUTPB(mgr, x, data) outb((data), (mgr)->port[PCXHR_DSP] + (x)) argument 206 static void hr222_config_akm(struct pcxhr_mgr *mgr, unsigned short data) in hr222_config_akm() argument 210 PCXHR_INPB(mgr, PCXHR_XLX_HIFREQ); in hr222_config_akm() 213 PCXHR_OUTPB(mgr, PCXHR_XLX_DATA, in hr222_config_akm() 218 PCXHR_INPB(mgr, PCXHR_XLX_RUER); in hr222_config_akm() 222 static int hr222_set_hw_playback_level(struct pcxhr_mgr *mgr, in hr222_set_hw_playback_level() argument 239 hr222_config_akm(mgr, cmd); in hr222_set_hw_playback_level() 244 static int hr222_set_hw_capture_level(struct pcxhr_mgr *mgr, in hr222_set_hw_capture_level() argument 251 if (!mgr->capture_chips) in hr222_set_hw_capture_level() [all …]
|
D | pcxhr.c | 234 static int pcxhr_get_clock_reg(struct pcxhr_mgr *mgr, unsigned int rate, in pcxhr_get_clock_reg() argument 242 switch (mgr->use_clock_type) { in pcxhr_get_clock_reg() 271 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_get_clock_reg() 273 dev_err(&mgr->pci->dev, in pcxhr_get_clock_reg() 307 static int pcxhr_sub_set_clock(struct pcxhr_mgr *mgr, in pcxhr_sub_set_clock() argument 315 err = pcxhr_get_clock_reg(mgr, rate, &val, &realfreq); in pcxhr_sub_set_clock() 326 if (mgr->codec_speed != speed) { in pcxhr_sub_set_clock() 329 if (DSP_EXT_CMD_SET(mgr)) { in pcxhr_sub_set_clock() 333 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_set_clock() 341 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_set_clock() [all …]
|
D | pcxhr_mixer.c | 60 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_analog_audio_level() 82 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_info() 94 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_info() 113 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_get() 121 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_get() 132 mutex_lock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_put() 140 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_put() 150 if (chip->mgr->is_hr_stereo) { in pcxhr_analog_vol_put() 163 if (chip->mgr->is_hr_stereo) in pcxhr_analog_vol_put() 171 mutex_unlock(&chip->mgr->mixer_mutex); in pcxhr_analog_vol_put() [all …]
|
/linux-6.6.21/sound/pci/mixart/ |
D | mixart_core.c | 34 static int retrieve_msg_frame(struct mixart_mgr *mgr, u32 *msg_frame) in retrieve_msg_frame() argument 39 tailptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL)); in retrieve_msg_frame() 40 headptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_HEAD)); in retrieve_msg_frame() 50 *msg_frame = readl_be(MIXART_MEM(mgr, tailptr)); in retrieve_msg_frame() 56 writel_be(tailptr, MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL)); in retrieve_msg_frame() 61 static int get_msg(struct mixart_mgr *mgr, struct mixart_msg *resp, in get_msg() argument 74 …size = readl_be(MIXART_MEM(mgr, msg_frame_address)); /* size of descriptor +… in get_msg() 75 resp->message_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 4)); /* dwMessageID */ in get_msg() 76 resp->uid.object_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 8)); /* uidDest */ in get_msg() 77 resp->uid.desc = readl_be(MIXART_MEM(mgr, msg_frame_address + 12)); /* */ in get_msg() [all …]
|
D | mixart_hwdep.c | 34 static int mixart_wait_nice_for_register_value(struct mixart_mgr *mgr, in mixart_wait_nice_for_register_value() argument 46 read = readl_be( MIXART_MEM( mgr, offset )); in mixart_wait_nice_for_register_value() 90 static int mixart_load_elf(struct mixart_mgr *mgr, const struct firmware *dsp ) in mixart_load_elf() argument 111 memcpy_toio( MIXART_MEM( mgr, be32_to_cpu(elf_programheader.p_vaddr)), in mixart_load_elf() 129 static int mixart_enum_connectors(struct mixart_mgr *mgr) in mixart_enum_connectors() argument 155 err = snd_mixart_send_msg(mgr, &request, sizeof(*connector), connector); in mixart_enum_connectors() 157 dev_err(&mgr->pci->dev, in mixart_enum_connectors() 167 pipe = &mgr->chip[k/2]->pipe_out_ana; in mixart_enum_connectors() 169 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_out_dig; in mixart_enum_connectors() 185 err = snd_mixart_send_msg(mgr, &request, sizeof(*audio_info), audio_info); in mixart_enum_connectors() [all …]
|
D | mixart.c | 58 static int mixart_set_pipe_state(struct mixart_mgr *mgr, in mixart_set_pipe_state() argument 76 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 90 err = snd_mixart_send_msg_wait_notif(mgr, &request, system_msg_uid); in mixart_set_pipe_state() 92 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 112 err = snd_mixart_send_msg(mgr, &request, sizeof(group_state_resp), &group_state_resp); in mixart_set_pipe_state() 114 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 125 err = snd_mixart_send_msg(mgr, &request, sizeof(group_state_resp), &group_state_resp); in mixart_set_pipe_state() 127 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() 140 err = snd_mixart_send_msg(mgr, &request, sizeof(stat), &stat); in mixart_set_pipe_state() 142 dev_err(&mgr->pci->dev, in mixart_set_pipe_state() [all …]
|
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/dss/ |
D | manager-sysfs.c | 24 static ssize_t manager_name_show(struct omap_overlay_manager *mgr, char *buf) in manager_name_show() argument 26 return sysfs_emit(buf, "%s\n", mgr->name); in manager_name_show() 29 static ssize_t manager_display_show(struct omap_overlay_manager *mgr, char *buf) in manager_display_show() argument 31 struct omap_dss_device *dssdev = mgr->get_device(mgr); in manager_display_show() 44 static ssize_t manager_display_store(struct omap_overlay_manager *mgr, in manager_display_store() argument 78 old_dssdev = mgr->get_device(mgr); in manager_display_store() 96 old_dssdev = mgr->get_device(mgr); in manager_display_store() 103 r = mgr->apply(mgr); in manager_display_store() 117 static ssize_t manager_default_color_show(struct omap_overlay_manager *mgr, in manager_default_color_show() argument 122 mgr->get_manager_info(mgr, &info); in manager_default_color_show() [all …]
|
D | apply.c | 123 static struct mgr_priv_data *get_mgr_priv(struct omap_overlay_manager *mgr) in get_mgr_priv() argument 125 return &dss_data.mgr_priv_data_array[mgr->id]; in get_mgr_priv() 188 static bool mgr_manual_update(struct omap_overlay_manager *mgr) in mgr_manual_update() argument 190 struct mgr_priv_data *mp = get_mgr_priv(mgr); in mgr_manual_update() 195 static int dss_check_settings_low(struct omap_overlay_manager *mgr, in dss_check_settings_low() argument 205 mp = get_mgr_priv(mgr); in dss_check_settings_low() 216 list_for_each_entry(ovl, &mgr->overlays, list) { in dss_check_settings_low() 229 return dss_mgr_check(mgr, mi, &mp->timings, &mp->lcd_config, ois); in dss_check_settings_low() 235 static int dss_check_settings(struct omap_overlay_manager *mgr) in dss_check_settings() argument 237 return dss_check_settings_low(mgr, false); in dss_check_settings() [all …]
|
D | manager.c | 40 struct omap_overlay_manager *mgr = &managers[i]; in dss_init_overlay_managers() local 44 mgr->name = "lcd"; in dss_init_overlay_managers() 45 mgr->id = OMAP_DSS_CHANNEL_LCD; in dss_init_overlay_managers() 48 mgr->name = "tv"; in dss_init_overlay_managers() 49 mgr->id = OMAP_DSS_CHANNEL_DIGIT; in dss_init_overlay_managers() 52 mgr->name = "lcd2"; in dss_init_overlay_managers() 53 mgr->id = OMAP_DSS_CHANNEL_LCD2; in dss_init_overlay_managers() 56 mgr->name = "lcd3"; in dss_init_overlay_managers() 57 mgr->id = OMAP_DSS_CHANNEL_LCD3; in dss_init_overlay_managers() 61 mgr->supported_displays = in dss_init_overlay_managers() [all …]
|
/linux-6.6.21/drivers/isdn/mISDN/ |
D | tei.c | 72 struct manager *mgr = fi->userdata; in da_debug() local 84 printk(KERN_DEBUG "mgr(%d): %pV\n", mgr->ch.st->dev->id, &vaf); in da_debug() 92 struct manager *mgr = fi->userdata; in da_activate() local 95 mISDN_FsmDelTimer(&mgr->datimer, 1); in da_activate() 108 struct manager *mgr = fi->userdata; in da_deactivate() local 112 read_lock_irqsave(&mgr->lock, flags); in da_deactivate() 113 list_for_each_entry(l2, &mgr->layer2, list) { in da_deactivate() 116 read_unlock_irqrestore(&mgr->lock, flags); in da_deactivate() 120 read_unlock_irqrestore(&mgr->lock, flags); in da_deactivate() 122 if (!test_bit(OPTION_L1_HOLD, &mgr->options)) { in da_deactivate() [all …]
|
/linux-6.6.21/net/bluetooth/ |
D | a2mp.c | 42 static void a2mp_send(struct amp_mgr *mgr, u8 code, u8 ident, u16 len, void *data) in a2mp_send() argument 44 struct l2cap_chan *chan = mgr->a2mp_chan; in a2mp_send() 66 static u8 __next_ident(struct amp_mgr *mgr) in __next_ident() argument 68 if (++mgr->ident == 0) in __next_ident() 69 mgr->ident = 1; in __next_ident() 71 return mgr->ident; in __next_ident() 76 struct amp_mgr *mgr; in amp_mgr_lookup_by_state() local 79 list_for_each_entry(mgr, &_mgr_list, list) { in amp_mgr_lookup_by_state() 80 if (test_and_clear_bit(state, &mgr->state)) { in amp_mgr_lookup_by_state() 81 amp_mgr_get(mgr); in amp_mgr_lookup_by_state() [all …]
|
/linux-6.6.21/sound/pci/ctxfi/ |
D | ctdaio.c | 173 dao->mgr->imap_add(dao->mgr, entry); in dao_set_left_input() 202 dao->mgr->imap_add(dao->mgr, entry); in dao_set_right_input() 224 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_left_input() 228 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_left_input() 248 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_right_input() 252 dao->mgr->imap_delete(dao->mgr, entry); in dao_clear_right_input() 387 struct daio_mgr *mgr) in dao_rsc_init() argument 389 struct hw *hw = mgr->mgr.hw; in dao_rsc_init() 393 err = daio_rsc_init(&dao->daio, desc, mgr->mgr.hw); in dao_rsc_init() 404 dao->mgr = mgr; in dao_rsc_init() [all …]
|
D | ctresource.c | 73 int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx) in mgr_get_resource() argument 77 if (n > mgr->avail) in mgr_get_resource() 80 err = get_resource(mgr->rscs, mgr->amount, n, ridx); in mgr_get_resource() 82 mgr->avail -= n; in mgr_get_resource() 87 int mgr_put_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int idx) in mgr_put_resource() argument 89 put_resource(mgr->rscs, n, idx); in mgr_put_resource() 90 mgr->avail += n; in mgr_put_resource() 204 int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type, in rsc_mgr_init() argument 209 mgr->type = NUM_RSCTYP; in rsc_mgr_init() 211 mgr->rscs = kzalloc(DIV_ROUND_UP(amount, 8), GFP_KERNEL); in rsc_mgr_init() [all …]
|
D | ctsrc.c | 357 const struct src_desc *desc, struct src_mgr *mgr) in src_rsc_init() argument 365 err = rsc_init(&p->rsc, idx + i, SRC, desc->msr, mgr->mgr.hw); in src_rsc_init() 374 mgr->src_enable(mgr, p); in src_rsc_init() 379 mgr->commit_write(mgr); in src_rsc_init() 385 mgr->src_disable(mgr, p); in src_rsc_init() 388 mgr->commit_write(mgr); in src_rsc_init() 392 static int src_rsc_uninit(struct src *src, struct src_mgr *mgr) in src_rsc_uninit() argument 399 mgr->src_disable(mgr, p); in src_rsc_uninit() 406 mgr->commit_write(mgr); in src_rsc_uninit() 412 get_src_rsc(struct src_mgr *mgr, const struct src_desc *desc, struct src **rsrc) in get_src_rsc() argument [all …]
|
D | ctamixer.c | 197 struct amixer_mgr *mgr) in amixer_rsc_init() argument 202 AMIXER, desc->msr, mgr->mgr.hw); in amixer_rsc_init() 227 static int get_amixer_rsc(struct amixer_mgr *mgr, in get_amixer_rsc() argument 246 spin_lock_irqsave(&mgr->mgr_lock, flags); in get_amixer_rsc() 248 err = mgr_get_resource(&mgr->mgr, 1, &idx); in get_amixer_rsc() 254 spin_unlock_irqrestore(&mgr->mgr_lock, flags); in get_amixer_rsc() 256 dev_err(mgr->card->dev, in get_amixer_rsc() 261 err = amixer_rsc_init(amixer, desc, mgr); in get_amixer_rsc() 270 spin_lock_irqsave(&mgr->mgr_lock, flags); in get_amixer_rsc() 272 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in get_amixer_rsc() [all …]
|
/linux-6.6.21/drivers/gpu/drm/display/ |
D | drm_dp_mst_topology.c | 65 static bool dump_dp_payload_table(struct drm_dp_mst_topology_mgr *mgr, 70 static int drm_dp_dpcd_write_payload(struct drm_dp_mst_topology_mgr *mgr, 73 static int drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr, 76 static int drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr, 80 static int drm_dp_send_link_address(struct drm_dp_mst_topology_mgr *mgr, 84 drm_dp_send_clear_payload_id_table(struct drm_dp_mst_topology_mgr *mgr, 87 static int drm_dp_send_enum_path_resources(struct drm_dp_mst_topology_mgr *mgr, 90 static bool drm_dp_validate_guid(struct drm_dp_mst_topology_mgr *mgr, 95 static void drm_dp_mst_kick_tx(struct drm_dp_mst_topology_mgr *mgr); 292 static bool drm_dp_decode_sideband_msg_hdr(const struct drm_dp_mst_topology_mgr *mgr, in drm_dp_decode_sideband_msg_hdr() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_ptrn.c | 52 dr_ptrn_find_cached_pattern(struct mlx5dr_ptrn_mgr *mgr, in dr_ptrn_find_cached_pattern() argument 59 list_for_each_entry_safe(cached_pattern, tmp, &mgr->ptrn_list, list) { in dr_ptrn_find_cached_pattern() 68 list_add(&cached_pattern->list, &mgr->ptrn_list); in dr_ptrn_find_cached_pattern() 77 dr_ptrn_alloc_pattern(struct mlx5dr_ptrn_mgr *mgr, in dr_ptrn_alloc_pattern() argument 89 chunk = mlx5dr_icm_alloc_chunk(mgr->ptrn_icm_pool, chunk_size); in dr_ptrn_alloc_pattern() 94 mgr->dmn->info.caps.hdr_modify_pattern_icm_addr) / in dr_ptrn_alloc_pattern() 111 list_add(&pattern->list, &mgr->ptrn_list); in dr_ptrn_alloc_pattern() 133 mlx5dr_ptrn_cache_get_pattern(struct mlx5dr_ptrn_mgr *mgr, in mlx5dr_ptrn_cache_get_pattern() argument 142 mutex_lock(&mgr->modify_hdr_mutex); in mlx5dr_ptrn_cache_get_pattern() 143 pattern = dr_ptrn_find_cached_pattern(mgr, in mlx5dr_ptrn_cache_get_pattern() [all …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_gpuva_mgr.c | 612 static int __drm_gpuva_insert(struct drm_gpuva_manager *mgr, 626 drm_gpuva_in_mm_range(struct drm_gpuva_manager *mgr, u64 addr, u64 range) in drm_gpuva_in_mm_range() argument 629 u64 mm_start = mgr->mm_start; in drm_gpuva_in_mm_range() 630 u64 mm_end = mm_start + mgr->mm_range; in drm_gpuva_in_mm_range() 636 drm_gpuva_in_kernel_node(struct drm_gpuva_manager *mgr, u64 addr, u64 range) in drm_gpuva_in_kernel_node() argument 639 u64 kstart = mgr->kernel_alloc_node.va.addr; in drm_gpuva_in_kernel_node() 640 u64 krange = mgr->kernel_alloc_node.va.range; in drm_gpuva_in_kernel_node() 647 drm_gpuva_range_valid(struct drm_gpuva_manager *mgr, in drm_gpuva_range_valid() argument 651 drm_gpuva_in_mm_range(mgr, addr, range) && in drm_gpuva_range_valid() 652 !drm_gpuva_in_kernel_node(mgr, addr, range); in drm_gpuva_range_valid() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vram_mgr.c | 48 to_amdgpu_device(struct amdgpu_vram_mgr *mgr) in to_amdgpu_device() argument 50 return container_of(mgr, struct amdgpu_device, mman.vram_mgr); in to_amdgpu_device() 271 struct amdgpu_vram_mgr *mgr = to_vram_mgr(man); in amdgpu_vram_mgr_do_reserve() local 272 struct amdgpu_device *adev = to_amdgpu_device(mgr); in amdgpu_vram_mgr_do_reserve() 273 struct drm_buddy *mm = &mgr->mm; in amdgpu_vram_mgr_do_reserve() 278 list_for_each_entry_safe(rsv, temp, &mgr->reservations_pending, blocks) { in amdgpu_vram_mgr_do_reserve() 292 atomic64_add(vis_usage, &mgr->vis_usage); in amdgpu_vram_mgr_do_reserve() 296 list_move(&rsv->blocks, &mgr->reserved_pages); in amdgpu_vram_mgr_do_reserve() 309 int amdgpu_vram_mgr_reserve_range(struct amdgpu_vram_mgr *mgr, in amdgpu_vram_mgr_reserve_range() argument 324 mutex_lock(&mgr->lock); in amdgpu_vram_mgr_reserve_range() [all …]
|
D | amdgpu_gtt_mgr.c | 118 struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man); in amdgpu_gtt_mgr_new() local 135 spin_lock(&mgr->lock); in amdgpu_gtt_mgr_new() 136 r = drm_mm_insert_node_in_range(&mgr->mm, &node->mm_nodes[0], in amdgpu_gtt_mgr_new() 140 spin_unlock(&mgr->lock); in amdgpu_gtt_mgr_new() 172 struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man); in amdgpu_gtt_mgr_del() local 174 spin_lock(&mgr->lock); in amdgpu_gtt_mgr_del() 177 spin_unlock(&mgr->lock); in amdgpu_gtt_mgr_del() 190 void amdgpu_gtt_mgr_recover(struct amdgpu_gtt_mgr *mgr) in amdgpu_gtt_mgr_recover() argument 196 adev = container_of(mgr, typeof(*adev), mman.gtt_mgr); in amdgpu_gtt_mgr_recover() 197 spin_lock(&mgr->lock); in amdgpu_gtt_mgr_recover() [all …]
|
/linux-6.6.21/drivers/gpu/drm/lima/ |
D | lima_ctx.c | 9 int lima_ctx_create(struct lima_device *dev, struct lima_ctx_mgr *mgr, u32 *id) in lima_ctx_create() argument 26 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); in lima_ctx_create() 52 int lima_ctx_free(struct lima_ctx_mgr *mgr, u32 id) in lima_ctx_free() argument 57 mutex_lock(&mgr->lock); in lima_ctx_free() 58 ctx = xa_erase(&mgr->handles, id); in lima_ctx_free() 63 mutex_unlock(&mgr->lock); in lima_ctx_free() 67 struct lima_ctx *lima_ctx_get(struct lima_ctx_mgr *mgr, u32 id) in lima_ctx_get() argument 71 mutex_lock(&mgr->lock); in lima_ctx_get() 72 ctx = xa_load(&mgr->handles, id); in lima_ctx_get() 75 mutex_unlock(&mgr->lock); in lima_ctx_get() [all …]
|