/linux-6.12.1/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-core.c | 17 static int get_done_gpio(struct fpga_manager *mgr) in get_done_gpio() argument 19 struct xilinx_fpga_core *core = mgr->priv; in get_done_gpio() 24 dev_err(&mgr->dev, "Error reading DONE (%d)\n", ret); in get_done_gpio() 29 static enum fpga_mgr_states xilinx_core_state(struct fpga_manager *mgr) in xilinx_core_state() argument 31 if (!get_done_gpio(mgr)) in xilinx_core_state() 49 static int wait_for_init_b(struct fpga_manager *mgr, int value, in wait_for_init_b() argument 52 struct xilinx_fpga_core *core = mgr->priv; in wait_for_init_b() 63 dev_err(&mgr->dev, in wait_for_init_b() 71 dev_err(&mgr->dev, "Timeout waiting for INIT_B to %s\n", in wait_for_init_b() 81 static int xilinx_core_write_init(struct fpga_manager *mgr, in xilinx_core_write_init() argument [all …]
|
/linux-6.12.1/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.12.1/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.12.1/drivers/crypto/intel/qat/qat_common/ |
D | adf_mstate_mgr.c | 18 u32 adf_mstate_state_size(struct adf_mstate_mgr *mgr) in adf_mstate_state_size() argument 20 return mgr->state - mgr->buf; in adf_mstate_state_size() 23 static inline u32 adf_mstate_avail_room(struct adf_mstate_mgr *mgr) in adf_mstate_avail_room() argument 25 return mgr->buf + mgr->size - mgr->state; in adf_mstate_avail_room() 28 void adf_mstate_mgr_init(struct adf_mstate_mgr *mgr, u8 *buf, u32 size) in adf_mstate_mgr_init() argument 30 mgr->buf = buf; in adf_mstate_mgr_init() 31 mgr->state = buf; in adf_mstate_mgr_init() 32 mgr->size = size; in adf_mstate_mgr_init() 33 mgr->n_sects = 0; in adf_mstate_mgr_init() 38 struct adf_mstate_mgr *mgr; in adf_mstate_mgr_new() local [all …]
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/drivers/gpu/drm/display/ |
D | drm_dp_mst_topology.c | 66 static bool dump_dp_payload_table(struct drm_dp_mst_topology_mgr *mgr, 71 static int drm_dp_dpcd_write_payload(struct drm_dp_mst_topology_mgr *mgr, 74 static int drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr, 77 static int drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr, 81 static int drm_dp_send_link_address(struct drm_dp_mst_topology_mgr *mgr, 85 drm_dp_send_clear_payload_id_table(struct drm_dp_mst_topology_mgr *mgr, 88 static int drm_dp_send_enum_path_resources(struct drm_dp_mst_topology_mgr *mgr, 91 static bool drm_dp_validate_guid(struct drm_dp_mst_topology_mgr *mgr, 96 static void drm_dp_mst_kick_tx(struct drm_dp_mst_topology_mgr *mgr); 293 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.12.1/drivers/gpu/drm/xe/ |
D | xe_ttm_stolen_mgr.c | 60 static s64 detect_bar2_dgfx(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr) in detect_bar2_dgfx() argument 73 mgr->stolen_base = (xe_mmio_read64_2x32(mmio, DSMBASE) & BDSM_MASK) - tile_offset; in detect_bar2_dgfx() 74 if (drm_WARN_ON(&xe->drm, tile_size < mgr->stolen_base)) in detect_bar2_dgfx() 77 stolen_size = tile_size - mgr->stolen_base; in detect_bar2_dgfx() 80 if (mgr->stolen_base + stolen_size <= pci_resource_len(pdev, LMEM_BAR)) in detect_bar2_dgfx() 81 mgr->io_base = tile->mem.vram.io_start + mgr->stolen_base; in detect_bar2_dgfx() 115 static u32 detect_bar2_integrated(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr) in detect_bar2_integrated() argument 138 mgr->stolen_base = SZ_8M; in detect_bar2_integrated() 139 mgr->io_base = pci_resource_start(pdev, 2) + mgr->stolen_base; in detect_bar2_integrated() 173 if (gscpsmi_base >= mgr->io_base && in detect_bar2_integrated() [all …]
|
D | xe_ttm_vram_mgr.c | 52 struct xe_ttm_vram_mgr *mgr = to_xe_ttm_vram_mgr(man); in xe_ttm_vram_mgr_new() local 54 struct drm_buddy *mm = &mgr->mm; in xe_ttm_vram_mgr_new() 92 min_page_size = mgr->default_page_size; in xe_ttm_vram_mgr_new() 117 mutex_lock(&mgr->lock); in xe_ttm_vram_mgr_new() 118 if (lpfn <= mgr->visible_size >> PAGE_SHIFT && size > mgr->visible_avail) { in xe_ttm_vram_mgr_new() 119 mutex_unlock(&mgr->lock); in xe_ttm_vram_mgr_new() 157 if (lpfn <= mgr->visible_size >> PAGE_SHIFT) { in xe_ttm_vram_mgr_new() 165 if (start < mgr->visible_size) { in xe_ttm_vram_mgr_new() 169 min(end, mgr->visible_size) - start; in xe_ttm_vram_mgr_new() 174 mgr->visible_avail -= vres->used_visible_size; in xe_ttm_vram_mgr_new() [all …]
|
/linux-6.12.1/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.12.1/drivers/gpu/drm/lima/ |
D | lima_ctx.c | 10 int lima_ctx_create(struct lima_device *dev, struct lima_ctx_mgr *mgr, u32 *id) in lima_ctx_create() argument 27 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); in lima_ctx_create() 53 int lima_ctx_free(struct lima_ctx_mgr *mgr, u32 id) in lima_ctx_free() argument 58 mutex_lock(&mgr->lock); in lima_ctx_free() 59 ctx = xa_erase(&mgr->handles, id); in lima_ctx_free() 64 mutex_unlock(&mgr->lock); in lima_ctx_free() 68 struct lima_ctx *lima_ctx_get(struct lima_ctx_mgr *mgr, u32 id) in lima_ctx_get() argument 72 mutex_lock(&mgr->lock); in lima_ctx_get() 73 ctx = xa_load(&mgr->handles, id); in lima_ctx_get() 76 mutex_unlock(&mgr->lock); in lima_ctx_get() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
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 …]
|