Home
last modified time | relevance | path

Searched refs:mgr (Results 1 – 25 of 120) sorted by relevance

12345

/linux/sound/pci/pcxhr/
H A Dpcxhr_hwdep.c25 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 …]
H A Dpcxhr_core.c59 #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 …]
H A Dpcxhr_mix22.c36 #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 …]
H A Dpcxhr.c234 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 …]
H A Dpcxhr_mixer.c60 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/sound/pci/mixart/
H A Dmixart_core.c34 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 …]
H A Dmixart_hwdep.c34 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 …]
H A Dmixart.c58 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/drivers/crypto/intel/qat/qat_common/
H A Dadf_mstate_mgr.c18 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/drivers/video/fbdev/omap2/omapfb/dss/
H A Dmanager-sysfs.c24 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 …]
H A Dapply.c123 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 …]
H A Dmanager.c40 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 …]
H A Doutput.c164 struct omap_overlay_manager *mgr; in omapdss_find_mgr_from_display() local
171 mgr = out->manager; in omapdss_find_mgr_from_display()
175 return mgr; in omapdss_find_mgr_from_display()
198 int dss_mgr_connect(struct omap_overlay_manager *mgr, in dss_mgr_connect() argument
201 return dss_mgr_ops->connect(mgr, dst); in dss_mgr_connect()
205 void dss_mgr_disconnect(struct omap_overlay_manager *mgr, in dss_mgr_disconnect() argument
208 dss_mgr_ops->disconnect(mgr, dst); in dss_mgr_disconnect()
212 void dss_mgr_set_timings(struct omap_overlay_manager *mgr, in dss_mgr_set_timings() argument
215 dss_mgr_ops->set_timings(mgr, timings); in dss_mgr_set_timings()
219 void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr, in dss_mgr_set_lcd_config() argument
[all …]
/linux/drivers/isdn/mISDN/
H A Dtei.c72 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/sound/pci/ctxfi/
H A Dctdaio.c173 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 …]
H A Dctresource.c73 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 …]
H A Dctsrc.c357 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 …]
H A Dctamixer.c197 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/drivers/gpu/drm/xe/
H A Dxe_ttm_stolen_mgr.c60 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 …]
H A Dxe_ttm_vram_mgr.c52 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/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vram_mgr.c50 to_amdgpu_device(struct amdgpu_vram_mgr *mgr) in to_amdgpu_device() argument
52 return container_of(mgr, struct amdgpu_device, mman.vram_mgr); in to_amdgpu_device()
297 struct amdgpu_vram_mgr *mgr = to_vram_mgr(man); in amdgpu_vram_mgr_do_reserve() local
298 struct amdgpu_device *adev = to_amdgpu_device(mgr); in amdgpu_vram_mgr_do_reserve()
299 struct drm_buddy *mm = &mgr->mm; in amdgpu_vram_mgr_do_reserve()
304 list_for_each_entry_safe(rsv, temp, &mgr->reservations_pending, blocks) { in amdgpu_vram_mgr_do_reserve()
318 atomic64_add(vis_usage, &mgr->vis_usage); in amdgpu_vram_mgr_do_reserve()
322 list_move(&rsv->blocks, &mgr->reserved_pages); in amdgpu_vram_mgr_do_reserve()
335 int amdgpu_vram_mgr_reserve_range(struct amdgpu_vram_mgr *mgr, in amdgpu_vram_mgr_reserve_range() argument
350 mutex_lock(&mgr->lock); in amdgpu_vram_mgr_reserve_range()
[all …]
H A Damdgpu_ctx.c141 struct amdgpu_device *adev = ctx->mgr->adev; in amdgpu_ctx_get_hw_prio()
208 struct amdgpu_device *adev = ctx->mgr->adev; in amdgpu_ctx_init_entity()
295 struct amdgpu_device *adev = ctx->mgr->adev; in amdgpu_ctx_get_stable_pstate()
320 static int amdgpu_ctx_init(struct amdgpu_ctx_mgr *mgr, int32_t priority, in amdgpu_ctx_init() argument
334 ctx->mgr = mgr; in amdgpu_ctx_init()
337 ctx->reset_counter = atomic_read(&mgr->adev->gpu_reset_counter); in amdgpu_ctx_init()
339 ctx->generation = amdgpu_vm_generation(mgr->adev, &fpriv->vm); in amdgpu_ctx_init()
347 if (mgr->adev->pm.stable_pstate_ctx) in amdgpu_ctx_init()
348 ctx->stable_pstate = mgr->adev->pm.stable_pstate_ctx->stable_pstate; in amdgpu_ctx_init()
359 struct amdgpu_device *adev = ctx->mgr->adev; in amdgpu_ctx_set_stable_pstate()
[all …]
H A Damdgpu_gtt_mgr.c118 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/drivers/gpu/drm/lima/
H A Dlima_ctx.c10 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/drivers/fpga/tests/
H A Dfpga-mgr-test.c42 struct fpga_manager *mgr; member
84 static int op_parse_header(struct fpga_manager *mgr, struct fpga_image_info *info, in op_parse_header() argument
87 struct mgr_stats *stats = mgr->priv; in op_parse_header()
90 stats->op_parse_header_state = mgr->state; in op_parse_header()
108 static int op_write_init(struct fpga_manager *mgr, struct fpga_image_info *info, in op_write_init() argument
111 struct mgr_stats *stats = mgr->priv; in op_write_init()
113 stats->op_write_init_state = mgr->state; in op_write_init()
123 static int op_write(struct fpga_manager *mgr, const char *buf, size_t count) in op_write() argument
125 struct mgr_stats *stats = mgr->priv; in op_write()
128 stats->op_write_state = mgr->state; in op_write()
[all …]

12345