Home
last modified time | relevance | path

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

123

/linux/drivers/fpga/
H A Dfpga-mgr.c25 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 …]
H A Daltera-pr-ip-core.c32 static enum fpga_mgr_states alt_pr_fpga_state(struct fpga_manager *mgr) in alt_pr_fpga_state() argument
34 struct alt_pr_priv *priv = mgr->priv; in alt_pr_fpga_state()
72 dev_err(&mgr->dev, "encountered error code %d (%s) in %s()\n", in alt_pr_fpga_state()
77 static int alt_pr_fpga_write_init(struct fpga_manager *mgr, in alt_pr_fpga_write_init() argument
81 struct alt_pr_priv *priv = mgr->priv; in alt_pr_fpga_write_init()
85 dev_err(&mgr->dev, "%s Partial Reconfiguration flag not set\n", in alt_pr_fpga_write_init()
93 dev_err(&mgr->dev, in alt_pr_fpga_write_init()
104 static int alt_pr_fpga_write(struct fpga_manager *mgr, const char *buf, in alt_pr_fpga_write() argument
107 struct alt_pr_priv *priv = mgr->priv; in alt_pr_fpga_write()
138 if (alt_pr_fpga_state(mgr) == FPGA_MGR_STATE_WRITE_ERR) in alt_pr_fpga_write()
[all …]
H A Daltera-cvp.c86 int (*wait_credit)(struct fpga_manager *mgr, u32 blocks);
113 static enum fpga_mgr_states altera_cvp_state(struct fpga_manager *mgr) in altera_cvp_state() argument
115 struct altera_cvp_conf *conf = mgr->priv; in altera_cvp_state()
178 static int altera_cvp_chk_error(struct fpga_manager *mgr, size_t bytes) in altera_cvp_chk_error() argument
180 struct altera_cvp_conf *conf = mgr->priv; in altera_cvp_chk_error()
187 dev_err(&mgr->dev, "CVP_CONFIG_ERROR after %zu bytes!\n", in altera_cvp_chk_error()
225 static int altera_cvp_v2_wait_for_credit(struct fpga_manager *mgr, in altera_cvp_v2_wait_for_credit() argument
229 struct altera_cvp_conf *conf = mgr->priv; in altera_cvp_v2_wait_for_credit()
245 ret = altera_cvp_chk_error(mgr, blocks * ALTERA_CVP_V2_SIZE); in altera_cvp_v2_wait_for_credit()
281 static int altera_cvp_teardown(struct fpga_manager *mgr, in altera_cvp_teardown() argument
[all …]
H A Dmachxo2-spi.c135 static int machxo2_cleanup(struct fpga_manager *mgr) in machxo2_cleanup() argument
137 struct spi_device *spi = mgr->priv; in machxo2_cleanup()
169 dev_err(&mgr->dev, "Cleanup failed\n"); in machxo2_cleanup()
174 static enum fpga_mgr_states machxo2_spi_state(struct fpga_manager *mgr) in machxo2_spi_state() argument
176 struct spi_device *spi = mgr->priv; in machxo2_spi_state()
187 static int machxo2_write_init(struct fpga_manager *mgr, in machxo2_write_init() argument
191 struct spi_device *spi = mgr->priv; in machxo2_write_init()
201 dev_err(&mgr->dev, in machxo2_write_init()
247 dev_err(&mgr->dev, "Error during FPGA init.\n"); in machxo2_write_init()
252 static int machxo2_write(struct fpga_manager *mgr, const char *buf, in machxo2_write() argument
[all …]
/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 in pcxhr_init_board()
87 pcxhr_sub_init(struct pcxhr_mgr * mgr) pcxhr_sub_init() argument
121 pcxhr_reset_board(struct pcxhr_mgr * mgr) pcxhr_reset_board() argument
153 pcxhr_dsp_allocate_pipe(struct pcxhr_mgr * mgr,struct pcxhr_pipe * pipe,int is_capture,int pin) pcxhr_dsp_allocate_pipe() argument
229 pcxhr_config_pipes(struct pcxhr_mgr * mgr) pcxhr_config_pipes() argument
257 pcxhr_start_pipes(struct pcxhr_mgr * mgr) pcxhr_start_pipes() argument
276 pcxhr_dsp_load(struct pcxhr_mgr * mgr,int index,const struct firmware * dsp) pcxhr_dsp_load() argument
352 pcxhr_setup_firmware(struct pcxhr_mgr * mgr) pcxhr_setup_firmware() argument
[all...]
H A Dpcxhr.c236 static int pcxhr_get_clock_reg(struct pcxhr_mgr *mgr, unsigned int rate, in pcxhr_get_clock_reg()
244 switch (mgr->use_clock_type) { in pcxhr_get_clock_reg()
274 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_get_clock_reg()
276 dev_err(&mgr->pci->dev, in pcxhr_get_clock_reg()
310 static int pcxhr_sub_set_clock(struct pcxhr_mgr *mgr, in pcxhr_sub_set_clock()
318 err = pcxhr_get_clock_reg(mgr, rate, &val, &realfreq); in pcxhr_sub_set_clock()
329 if (mgr->codec_speed != speed) { in pcxhr_sub_set_clock()
332 if (DSP_EXT_CMD_SET(mgr)) { in pcxhr_sub_set_clock()
336 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_sub_set_clock()
344 err = pcxhr_send_msg(mgr, in pcxhr_sub_set_clock()
234 pcxhr_get_clock_reg(struct pcxhr_mgr * mgr,unsigned int rate,unsigned int * reg,unsigned int * freq) pcxhr_get_clock_reg() argument
307 pcxhr_sub_set_clock(struct pcxhr_mgr * mgr,unsigned int rate,int * changed) pcxhr_sub_set_clock() argument
379 pcxhr_set_clock(struct pcxhr_mgr * mgr,unsigned int rate) pcxhr_set_clock() argument
412 pcxhr_sub_get_external_clock(struct pcxhr_mgr * mgr,enum pcxhr_clock_type clock_type,int * sample_rate) pcxhr_sub_get_external_clock() argument
475 pcxhr_get_external_clock(struct pcxhr_mgr * mgr,enum pcxhr_clock_type clock_type,int * sample_rate) pcxhr_get_external_clock() argument
691 pcxhr_start_linked_stream(struct pcxhr_mgr * mgr) pcxhr_start_linked_stream() argument
872 pcxhr_hardware_timer(struct pcxhr_mgr * mgr,int start) pcxhr_hardware_timer() argument
896 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_prepare() local
931 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_hw_params() local
978 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_open() local
1059 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_close() local
1157 pcxhr_create(struct pcxhr_mgr * mgr,struct snd_card * card,int idx) pcxhr_create() argument
1202 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_proc_info() local
1273 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_proc_sync() local
1315 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_proc_gpio_read() local
1332 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_proc_gpo_write() local
1360 struct pcxhr_mgr *mgr = chip->mgr; pcxhr_proc_ltc() local
1422 pcxhr_free(struct pcxhr_mgr * mgr) pcxhr_free() argument
1463 struct pcxhr_mgr *mgr; pcxhr_probe() 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 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 Ddss.h210 int dss_mgr_simple_check(struct omap_overlay_manager *mgr,
212 int dss_mgr_check_timings(struct omap_overlay_manager *mgr,
214 int dss_mgr_check(struct omap_overlay_manager *mgr,
229 int dss_manager_kobj_init(struct omap_overlay_manager *mgr,
231 void dss_manager_kobj_uninit(struct omap_overlay_manager *mgr);
236 void dss_overlay_setup_dispc_manager(struct omap_overlay_manager *mgr);
482 int (*connect)(struct omap_overlay_manager *mgr,
484 void (*disconnect)(struct omap_overlay_manager *mgr,
487 void (*start_update)(struct omap_overlay_manager *mgr);
488 int (*enable)(struct omap_overlay_manager *mgr);
[all …]
/linux/sound/pci/mixart/
H A Dmixart_hwdep.c28 * @mgr: pointer to miXart manager structure
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 in mixart_enum_connectors()
247 mixart_enum_physio(struct mixart_mgr * mgr) mixart_enum_physio() argument
303 mixart_first_init(struct mixart_mgr * mgr) mixart_first_init() argument
337 mixart_dsp_load(struct mixart_mgr * mgr,int index,const struct firmware * dsp) mixart_dsp_load() argument
557 snd_mixart_setup_firmware(struct mixart_mgr * mgr) snd_mixart_setup_firmware() argument
[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 in mixart_set_pipe_state()
157 mixart_set_clock(struct mixart_mgr * mgr,struct mixart_pipe * pipe,unsigned int rate) mixart_set_clock() argument
328 snd_mixart_kill_ref_pipe(struct mixart_mgr * mgr,struct mixart_pipe * pipe,int monitoring) snd_mixart_kill_ref_pipe() argument
460 mixart_sync_nonblock_events(struct mixart_mgr * mgr) mixart_sync_nonblock_events() argument
594 struct mixart_mgr *mgr = chip->mgr; snd_mixart_hw_params() local
704 struct mixart_mgr *mgr = chip->mgr; snd_mixart_playback_open() local
776 struct mixart_mgr *mgr = chip->mgr; snd_mixart_capture_open() local
851 struct mixart_mgr *mgr = chip->mgr; snd_mixart_close() local
1012 snd_mixart_create(struct mixart_mgr * mgr,struct snd_card * card,int idx) snd_mixart_create() argument
1060 snd_mixart_free(struct mixart_mgr * mgr) snd_mixart_free() argument
1116 struct mixart_mgr *mgr = entry->private_data; snd_mixart_BA0_read() local
1132 struct mixart_mgr *mgr = entry->private_data; snd_mixart_BA1_read() local
1216 struct mixart_mgr *mgr; snd_mixart_probe() local
[all...]
/linux/sound/pci/ctxfi/
H A Dctdaio.c181 dao->mgr->imap_add(dao->mgr, entry); in dao_set_left_input()
210 dao->mgr->imap_add(dao->mgr, entry); in dao_set_right_input()
229 dao->mgr->imap_delete(dao->mgr, dao->imappers[i]); in dao_clear_input()
377 struct daio_mgr *mgr) in dao_rsc_init() argument
379 struct hw *hw = mgr->mgr.hw; in dao_rsc_init()
383 err = daio_rsc_init(&dao->daio, desc, mgr->mgr.hw); in dao_rsc_init()
394 dao->mgr = mgr; in dao_rsc_init()
406 hw->daio_mgr_dsb_dao(mgr->mgr.ctrl_blk, idx); in dao_rsc_init()
407 hw->daio_mgr_commit_write(hw, mgr->mgr.ctrl_blk); in dao_rsc_init()
410 hw->daio_mgr_dao_init(hw, mgr->mgr.ctrl_blk, idx, conf); 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 in src_rsc_init()
392 src_rsc_uninit(struct src * src,struct src_mgr * mgr) src_rsc_uninit() argument
412 get_src_rsc(struct src_mgr * mgr,const struct src_desc * desc,struct src ** rsrc) get_src_rsc() argument
464 put_src_rsc(struct src_mgr * mgr,struct src * src) put_src_rsc() argument
480 src_enable_s(struct src_mgr * mgr,struct src * src) src_enable_s() argument
496 src_enable(struct src_mgr * mgr,struct src * src) src_enable() argument
512 src_disable(struct src_mgr * mgr,struct src * src) src_disable() argument
528 src_mgr_commit_write(struct src_mgr * mgr) src_mgr_commit_write() argument
662 srcimp_rsc_init(struct srcimp * srcimp,const struct srcimp_desc * desc,struct srcimp_mgr * mgr) srcimp_rsc_init() argument
703 get_srcimp_rsc(struct srcimp_mgr * mgr,const struct srcimp_desc * desc,struct srcimp ** rsrcimp) get_srcimp_rsc() argument
752 put_srcimp_rsc(struct srcimp_mgr * mgr,struct srcimp * srcimp) put_srcimp_rsc() argument
768 struct rsc_mgr *mgr = &((struct srcimp_mgr *)data)->mgr; srcimp_map_op() local
780 srcimp_imap_add(struct srcimp_mgr * mgr,struct imapper * entry) srcimp_imap_add() argument
791 srcimp_imap_delete(struct srcimp_mgr * mgr,struct imapper * entry) srcimp_imap_delete() 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()
228 static int get_amixer_rsc(struct amixer_mgr *mgr, in get_amixer_rsc() argument
246 scoped_guard(spinlock_irqsave, &mgr->mgr_lock) { in get_amixer_rsc()
248 err = mgr_get_resource(&mgr->mgr, 1, &idx); 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 scoped_guard(spinlock_irqsave, &mgr->mgr_lock) { in get_amixer_rsc()
272 mgr_put_resource(&mgr->mgr, 1, amixer->idx[i]); in get_amixer_rsc()
279 static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer) in put_amixer_rsc() argument
[all …]
H A Dctsrc.h84 struct rsc_mgr mgr; /* Basic resource manager info */ member
89 int (*get_src)(struct src_mgr *mgr,
92 int (*put_src)(struct src_mgr *mgr, struct src *src);
93 int (*src_enable_s)(struct src_mgr *mgr, struct src *src);
94 int (*src_enable)(struct src_mgr *mgr, struct src *src);
95 int (*src_disable)(struct src_mgr *mgr, struct src *src);
96 int (*commit_write)(struct src_mgr *mgr);
107 struct srcimp_mgr *mgr;
123 struct rsc_mgr mgr; /* Basic resource manager info */ member
132 int (*get_srcimp)(struct srcimp_mgr *mgr,
108 struct srcimp_mgr *mgr; global() member
[all...]
/linux/drivers/gpu/drm/display/
H A Ddrm_dp_mst_topology.c66 static bool dump_dp_payload_table(struct drm_dp_mst_topology_mgr *mgr,
71 static int drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr,
74 static int drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr,
78 static int drm_dp_send_link_address(struct drm_dp_mst_topology_mgr *mgr,
82 drm_dp_send_clear_payload_id_table(struct drm_dp_mst_topology_mgr *mgr,
85 static int drm_dp_send_enum_path_resources(struct drm_dp_mst_topology_mgr *mgr,
88 static bool drm_dp_validate_guid(struct drm_dp_mst_topology_mgr *mgr,
93 static void drm_dp_mst_kick_tx(struct drm_dp_mst_topology_mgr *mgr);
302 static bool drm_dp_decode_sideband_msg_hdr(const struct drm_dp_mst_topology_mgr *mgr, in drm_dp_decode_sideband_msg_hdr() argument
320 drm_dbg_kms(mgr->dev, "crc4 mismatch 0x%x 0x%x\n", crc4, buf[len - 1]); in drm_dp_decode_sideband_msg_hdr()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ptrn.c52 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/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gtt_mgr.c118 struct amdgpu_gtt_mgr *mgr = &adev->mman.gtt_mgr; in amdgpu_gtt_mgr_mark_bo_teardown() local
122 spin_lock(&mgr->lock); in amdgpu_gtt_mgr_mark_bo_teardown()
125 spin_unlock(&mgr->lock); in amdgpu_gtt_mgr_mark_bo_teardown()
143 struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man); in amdgpu_gtt_mgr_new() local
160 spin_lock(&mgr->lock); in amdgpu_gtt_mgr_new()
161 r = drm_mm_insert_node_in_range(&mgr->mm, &node->mm_nodes[0], in amdgpu_gtt_mgr_new()
165 spin_unlock(&mgr->lock); in amdgpu_gtt_mgr_new()
197 struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man); in amdgpu_gtt_mgr_del() local
199 spin_lock(&mgr->lock); in amdgpu_gtt_mgr_del()
202 spin_unlock(&mgr->lock); in amdgpu_gtt_mgr_del()
[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()
235 fpriv = container_of(ctx->mgr, struct amdgpu_fpriv, ctx_mgr); in amdgpu_ctx_init_entity()
315 static int amdgpu_ctx_init(struct amdgpu_ctx_mgr *mgr, int32_t priority, in amdgpu_ctx_init() argument
328 ctx->mgr = mgr; in amdgpu_ctx_init()
331 ctx->reset_counter = atomic_read(&mgr->adev->gpu_reset_counter); in amdgpu_ctx_init()
333 ctx->generation = amdgpu_vm_generation(mgr->adev, &fpriv->vm); in amdgpu_ctx_init()
344 struct amdgpu_device *adev = ctx->mgr->adev; in __amdgpu_ctx_set_stable_pstate()
399 struct amdgpu_device *adev = ctx->mgr->adev; in amdgpu_ctx_set_stable_pstate()
412 struct amdgpu_ctx_mgr *mgr = ctx->mgr; in amdgpu_ctx_fini() local
[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 …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_mstate_mgr.h61 void adf_mstate_mgr_destroy(struct adf_mstate_mgr *mgr);
62 void adf_mstate_mgr_init(struct adf_mstate_mgr *mgr, u8 *buf, u32 size);
63 void adf_mstate_mgr_init_from_parent(struct adf_mstate_mgr *mgr,
65 void adf_mstate_mgr_init_from_psect(struct adf_mstate_mgr *mgr,
67 int adf_mstate_mgr_init_from_remote(struct adf_mstate_mgr *mgr,
71 struct adf_mstate_preh *adf_mstate_preamble_add(struct adf_mstate_mgr *mgr);
72 int adf_mstate_preamble_update(struct adf_mstate_mgr *mgr);
73 u32 adf_mstate_state_size(struct adf_mstate_mgr *mgr);
74 u32 adf_mstate_state_size_from_remote(struct adf_mstate_mgr *mgr);
78 struct adf_mstate_sect_h *adf_mstate_sect_add_vreg(struct adf_mstate_mgr *mgr,
[all …]
/linux/include/drm/
H A Ddrm_vma_manager.h64 void drm_vma_offset_manager_init(struct drm_vma_offset_manager *mgr,
66 void drm_vma_offset_manager_destroy(struct drm_vma_offset_manager *mgr);
68 struct drm_vma_offset_node *drm_vma_offset_lookup_locked(struct drm_vma_offset_manager *mgr,
71 int drm_vma_offset_add(struct drm_vma_offset_manager *mgr,
73 void drm_vma_offset_remove(struct drm_vma_offset_manager *mgr,
96 drm_vma_offset_exact_lookup_locked(struct drm_vma_offset_manager *mgr, in drm_vma_offset_exact_lookup_locked() argument
102 node = drm_vma_offset_lookup_locked(mgr, start, pages); in drm_vma_offset_exact_lookup_locked()
122 static inline void drm_vma_offset_lock_lookup(struct drm_vma_offset_manager *mgr) in drm_vma_offset_lock_lookup() argument
124 read_lock(&mgr->vm_lock); in drm_vma_offset_lock_lookup()
133 static inline void drm_vma_offset_unlock_lookup(struct drm_vma_offset_manager *mgr) in drm_vma_offset_unlock_lookup() argument
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_vma_manager.c86 void drm_vma_offset_manager_init(struct drm_vma_offset_manager *mgr, in drm_vma_offset_manager_init() argument
89 rwlock_init(&mgr->vm_lock); in drm_vma_offset_manager_init()
90 drm_mm_init(&mgr->vm_addr_space_mm, page_offset, size); in drm_vma_offset_manager_init()
105 void drm_vma_offset_manager_destroy(struct drm_vma_offset_manager *mgr) in drm_vma_offset_manager_destroy() argument
107 drm_mm_takedown(&mgr->vm_addr_space_mm); in drm_vma_offset_manager_destroy()
141 struct drm_vma_offset_node *drm_vma_offset_lookup_locked(struct drm_vma_offset_manager *mgr, in drm_vma_offset_lookup_locked() argument
149 iter = mgr->vm_addr_space_mm.interval_tree.rb_root.rb_node; in drm_vma_offset_lookup_locked()
202 int drm_vma_offset_add(struct drm_vma_offset_manager *mgr, in drm_vma_offset_add() argument
207 write_lock(&mgr->vm_lock); in drm_vma_offset_add()
210 ret = drm_mm_insert_node(&mgr->vm_addr_space_mm, in drm_vma_offset_add()
[all …]

123