Home
last modified time | relevance | path

Searched refs:rsc (Results 1 - 25 of 287) sorted by relevance

12345678910>>...12

/kernel/linux/linux-5.10/sound/pci/ctxfi/
H A Dctsrc.c38 hw = src->rsc.hw; in src_set_state()
39 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state()
48 hw = src->rsc.hw; in src_set_bm()
49 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm()
58 hw = src->rsc.hw; in src_set_sf()
59 hw->src_set_sf(src->rsc.ctrl_blk, sf); in src_set_sf()
68 hw = src->rsc.hw; in src_set_pm()
69 hw->src_set_pm(src->rsc.ctrl_blk, pm); in src_set_pm()
78 hw = src->rsc.hw; in src_set_rom()
79 hw->src_set_rom(src->rsc in src_set_rom()
593 srcimp_master(struct rsc *rsc) srcimp_master() argument
599 srcimp_next_conj(struct rsc *rsc) srcimp_next_conj() argument
604 srcimp_index(const struct rsc *rsc) srcimp_index() argument
[all...]
H A Dctamixer.c26 static void amixer_master(struct rsc *rsc) in amixer_master() argument
28 rsc->conj = 0; in amixer_master()
29 rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master()
32 static void amixer_next_conj(struct rsc *rsc) in amixer_next_conj() argument
34 rsc->conj++; in amixer_next_conj()
37 static int amixer_index(const struct rsc *rs argument
42 amixer_output_slot(const struct rsc *rsc) amixer_output_slot() argument
54 amixer_set_input(struct amixer *amixer, struct rsc *rsc) amixer_set_input() argument
333 sum_master(struct rsc *rsc) sum_master() argument
339 sum_next_conj(struct rsc *rsc) sum_next_conj() argument
344 sum_index(const struct rsc *rsc) sum_index() argument
349 sum_output_slot(const struct rsc *rsc) sum_output_slot() argument
[all...]
H A Dctresource.c102 static int rsc_index(const struct rsc *rsc) in rsc_index() argument
104 return rsc->conj; in rsc_index()
107 static int audio_ring_slot(const struct rsc *rsc) in audio_ring_slot() argument
109 return (rsc->conj << 4) + offset_in_audio_slot_block[rsc->type]; in audio_ring_slot()
112 static void rsc_next_conj(struct rsc *rsc) in rsc_next_conj() argument
115 for (i = 0; (i < 8) && (!(rsc in rsc_next_conj()
120 rsc_master(struct rsc *rsc) rsc_master() argument
133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) rsc_init() argument
174 rsc_uninit(struct rsc *rsc) rsc_uninit() argument
[all...]
H A Dctresource.h31 struct rsc { struct
42 void (*master)(struct rsc *rsc); /* Move to master resource */
43 void (*next_conj)(struct rsc *rsc); /* Move to next conjugate resource */
44 int (*index)(const struct rsc *rsc); /* Return the index of resource */
46 int (*output_slot)(const struct rsc *rsc);
50 rsc_init(struct rsc *rs
[all...]
/kernel/linux/linux-6.6/sound/pci/ctxfi/
H A Dctsrc.c38 hw = src->rsc.hw; in src_set_state()
39 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state()
48 hw = src->rsc.hw; in src_set_bm()
49 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm()
58 hw = src->rsc.hw; in src_set_sf()
59 hw->src_set_sf(src->rsc.ctrl_blk, sf); in src_set_sf()
68 hw = src->rsc.hw; in src_set_pm()
69 hw->src_set_pm(src->rsc.ctrl_blk, pm); in src_set_pm()
78 hw = src->rsc.hw; in src_set_rom()
79 hw->src_set_rom(src->rsc in src_set_rom()
593 srcimp_master(struct rsc *rsc) srcimp_master() argument
599 srcimp_next_conj(struct rsc *rsc) srcimp_next_conj() argument
604 srcimp_index(const struct rsc *rsc) srcimp_index() argument
[all...]
H A Dctamixer.c26 static void amixer_master(struct rsc *rsc) in amixer_master() argument
28 rsc->conj = 0; in amixer_master()
29 rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master()
32 static void amixer_next_conj(struct rsc *rsc) in amixer_next_conj() argument
34 rsc->conj++; in amixer_next_conj()
37 static int amixer_index(const struct rsc *rs argument
42 amixer_output_slot(const struct rsc *rsc) amixer_output_slot() argument
54 amixer_set_input(struct amixer *amixer, struct rsc *rsc) amixer_set_input() argument
333 sum_master(struct rsc *rsc) sum_master() argument
339 sum_next_conj(struct rsc *rsc) sum_next_conj() argument
344 sum_index(const struct rsc *rsc) sum_index() argument
349 sum_output_slot(const struct rsc *rsc) sum_output_slot() argument
[all...]
H A Dctresource.c102 static int rsc_index(const struct rsc *rsc) in rsc_index() argument
104 return rsc->conj; in rsc_index()
107 static int audio_ring_slot(const struct rsc *rsc) in audio_ring_slot() argument
109 return (rsc->conj << 4) + offset_in_audio_slot_block[rsc->type]; in audio_ring_slot()
112 static void rsc_next_conj(struct rsc *rsc) in rsc_next_conj() argument
115 for (i = 0; (i < 8) && (!(rsc in rsc_next_conj()
120 rsc_master(struct rsc *rsc) rsc_master() argument
133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) rsc_init() argument
174 rsc_uninit(struct rsc *rsc) rsc_uninit() argument
[all...]
H A Dctresource.h31 struct rsc { struct
42 void (*master)(struct rsc *rsc); /* Move to master resource */
43 void (*next_conj)(struct rsc *rsc); /* Move to next conjugate resource */
44 int (*index)(const struct rsc *rsc); /* Return the index of resource */
46 int (*output_slot)(const struct rsc *rsc);
50 rsc_init(struct rsc *rs
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_resource.c120 valid_format_cast(struct fd_resource *rsc, enum pipe_format format) in valid_format_cast() argument
130 if (is_norm(format) != is_norm(rsc->b.b.format)) in valid_format_cast()
139 sb = util_format_get_component_bits(rsc->b.b.format, UTIL_FORMAT_COLORSPACE_RGB, i); in valid_format_cast()
162 * Ensure the rsc is in an ok state to be used with the specified format.
167 fd6_validate_format(struct fd_context *ctx, struct fd_resource *rsc, in fd6_validate_format() argument
170 enum pipe_format orig_format = rsc->b.b.format; in fd6_validate_format()
177 if (rsc->layout.tile_mode && (is_r8g8(orig_format) != is_r8g8(format))) { in fd6_validate_format()
180 PRSC_ARGS(&rsc->b.b), util_format_short_name(format)); in fd6_validate_format()
182 fd_resource_uncompress(ctx, rsc, true); in fd6_validate_format()
186 if (!rsc in fd6_validate_format()
200 setup_lrz(struct fd_resource *rsc) setup_lrz() argument
227 fd6_setup_slices(struct fd_resource *rsc) fd6_setup_slices() argument
245 fill_ubwc_buffer_sizes(struct fd_resource *rsc) fill_ubwc_buffer_sizes() argument
271 fd6_layout_resource_for_modifier(struct fd_resource *rsc, uint64_t modifier) fd6_layout_resource_for_modifier() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_resource.c84 struct etna_resource *rsc) in etna_screen_resource_alloc_ts()
91 assert(!rsc->ts_bo); in etna_screen_resource_alloc_ts()
97 ts_compress_fmt = (screen->specs.v4_compression || rsc->base.nr_samples > 1) ? in etna_screen_resource_alloc_ts()
98 translate_ts_format(rsc->base.format) : -1; in etna_screen_resource_alloc_ts()
105 (rsc->layout != ETNA_LAYOUT_LINEAR || in etna_screen_resource_alloc_ts()
106 rsc->levels[0].stride % 256 == 0) ) in etna_screen_resource_alloc_ts()
109 ts_layer_stride = align(DIV_ROUND_UP(rsc->levels[0].layer_stride, in etna_screen_resource_alloc_ts()
113 rt_ts_size = ts_layer_stride * rsc->base.array_size; in etna_screen_resource_alloc_ts()
118 rsc, rt_ts_size); in etna_screen_resource_alloc_ts()
128 rsc in etna_screen_resource_alloc_ts()
83 etna_screen_resource_alloc_ts(struct pipe_screen *pscreen, struct etna_resource *rsc) etna_screen_resource_alloc_ts() argument
157 setup_miptree(struct etna_resource *rsc, unsigned paddingX, unsigned paddingY, unsigned msaa_xscale, unsigned msaa_yscale) setup_miptree() argument
205 struct etna_resource *rsc; etna_resource_alloc() local
441 struct etna_resource *rsc = etna_resource(prsc); etna_resource_destroy() local
469 struct etna_resource *rsc; etna_resource_from_handle() local
565 struct etna_resource *rsc = etna_resource(prsc); etna_resource_get_handle() local
628 struct etna_resource *rsc = etna_resource(cur); etna_resource_get_param() local
649 struct etna_resource *rsc; etna_resource_used() local
683 etna_resource_has_valid_ts(struct etna_resource *rsc) etna_resource_has_valid_ts() argument
[all...]
H A Detnaviv_transfer.c64 struct etna_resource *rsc = etna_resource(prsc); in etna_patch_data() local
65 struct etna_resource_level *level = &rsc->levels[ptrans->level]; in etna_patch_data()
90 struct etna_resource *rsc = etna_resource(prsc); in etna_unpatch_data() local
91 struct etna_resource_level *level = &rsc->levels[ptrans->level]; in etna_unpatch_data()
106 struct etna_resource *rsc = etna_resource(ptrans->resource); in etna_transfer_unmap() local
114 assert(ptrans->level <= rsc->base.last_level); in etna_transfer_unmap()
116 if (rsc->texture && !etna_resource_newer(rsc, etna_resource(rsc->texture))) in etna_transfer_unmap()
117 rsc in etna_transfer_unmap()
199 struct etna_resource *rsc = etna_resource(prsc); etna_transfer_map() local
486 struct etna_resource *rsc = etna_resource(ptrans->resource); etna_transfer_flush_region() local
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_resource.h147 * If so, it no longer "owns" it's rsc->track, and so should not
148 * invalidate when the rsc is destroyed.
196 pending(struct fd_resource *rsc, bool write) in pending() argument
199 if (rsc->track->write_batch) in pending()
203 if (write && rsc->track->batch_mask) in pending()
206 if (rsc->stencil && pending(rsc->stencil, write)) in pending()
213 resource_busy(struct fd_resource *rsc, unsigned op) in resource_busy() argument
215 return fd_bo_cpu_prep(rsc->bo, NULL, op | FD_BO_PREP_NOSYNC) != 0; in resource_busy()
218 int __fd_resource_wait(struct fd_context *ctx, struct fd_resource *rsc,
224 fd_resource_lock(struct fd_resource *rsc) fd_resource_lock() argument
230 fd_resource_unlock(struct fd_resource *rsc) fd_resource_unlock() argument
240 struct fd_resource *rsc = fd_resource(prsc); fd_resource_set_usage() local
271 fd_resource_slice(struct fd_resource *rsc, unsigned level) fd_resource_slice() argument
278 fd_resource_layer_stride(struct fd_resource *rsc, unsigned level) fd_resource_layer_stride() argument
285 fd_resource_pitch(struct fd_resource *rsc, unsigned level) fd_resource_pitch() argument
295 fd_resource_offset(struct fd_resource *rsc, unsigned level, unsigned layer) fd_resource_offset() argument
303 fd_resource_ubwc_offset(struct fd_resource *rsc, unsigned level, unsigned layer) fd_resource_ubwc_offset() argument
327 fd_resource_tile_mode_desc(const struct fd_resource *rsc, int level) fd_resource_tile_mode_desc() argument
333 fd_resource_ubwc_enabled(struct fd_resource *rsc, int level) fd_resource_ubwc_enabled() argument
369 fd_batch_references_resource(struct fd_batch *batch, struct fd_resource *rsc) fd_batch_references_resource() argument
[all...]
H A Dfreedreno_resource.c71 struct fd_resource *rsc) assert_dt
73 struct pipe_resource *prsc = &rsc->b.b;
76 ctx->rebind_resource(ctx, rsc);
79 if (rsc->dirty & FD_DIRTY_VTXBUF) {
91 if (!(rsc->dirty & per_stage_dirty))
99 if ((rsc->dirty & FD_DIRTY_CONST) &&
112 if ((rsc->dirty & FD_DIRTY_TEX) &&
124 if ((rsc->dirty & FD_DIRTY_IMAGE) &&
137 if ((rsc->dirty & FD_DIRTY_SSBO) &&
152 rebind_resource(struct fd_resource *rsc) assert_d
157 fd_resource_lock(rsc); global() variable
163 fd_resource_unlock(rsc); global() variable
168 fd_resource_set_bo(struct fd_resource *rsc, struct fd_bo *bo) fd_resource_set_bo() argument
177 __fd_resource_wait(struct fd_context *ctx, struct fd_resource *rsc, unsigned op, const char *func) __fd_resource_wait() argument
194 realloc_bo(struct fd_resource *rsc, uint32_t size) realloc_bo() argument
322 struct fd_resource *rsc = fd_resource(prsc); fd_resource_busy() local
424 rebind_resource(rsc); global() variable
552 fd_resource_uncompress(struct fd_context *ctx, struct fd_resource *rsc, bool linear) fd_resource_uncompress() argument
568 fd_resource_dump(struct fd_resource *rsc, const char *name) fd_resource_dump() argument
664 struct fd_resource *rsc = fd_resource(ptrans->resource); fd_resource_transfer_flush_region() local
688 struct fd_resource *rsc = fd_resource(prsc); global() variable
704 struct fd_resource *rsc = fd_resource(ptrans->resource); global() variable
737 rebind_resource(rsc); global() variable
753 struct fd_resource *rsc = fd_resource(prsc); global() variable
787 struct fd_resource *rsc = fd_resource(prsc); resource_transfer_map_unsync() local
825 struct fd_resource *rsc = fd_resource(prsc); global() variable
970 struct fd_resource *rsc = fd_resource(prsc); fd_resource_transfer_map() local
1022 struct fd_resource *rsc = fd_resource(prsc); fd_resource_destroy() local
1046 fd_resource_modifier(struct fd_resource *rsc) fd_resource_modifier() argument
1063 struct fd_resource *rsc = fd_resource(prsc); fd_resource_get_handle() local
1079 struct fd_resource *rsc = fd_resource(prsc); fd_resource_resize() local
1092 struct fd_resource *rsc = fd_resource(prsc); fd_resource_layout_init() local
1111 struct fd_resource *rsc = CALLOC_STRUCT(fd_resource); alloc_resource_struct() local
1237 struct fd_resource *rsc; fd_resource_allocate_and_resolve() local
1316 struct fd_resource *rsc; fd_resource_create_with_modifiers() local
1386 struct fd_resource *rsc = alloc_resource_struct(pscreen, tmpl); fd_resource_from_handle() local
1477 struct fd_resource *rsc = fd_resource(prsc); global() variable
1523 struct fd_resource *rsc = fd_resource(prsc); fd_resource_get_stencil() local
1545 fd_layout_resource_for_modifier(struct fd_resource *rsc, uint64_t modifier) fd_layout_resource_for_modifier() argument
1569 struct fd_resource *rsc; fd_resource_from_memobj() local
[all...]
H A Dfreedreno_batch.c257 struct fd_resource *rsc = (struct fd_resource *)entry->key; in batch_reset_resources() local
259 assert(rsc->track->batch_mask & (1 << batch->idx)); in batch_reset_resources()
260 rsc->track->batch_mask &= ~(1 << batch->idx); in batch_reset_resources()
261 if (rsc->track->write_batch == batch) in batch_reset_resources()
262 fd_batch_reference_locked(&rsc->track->write_batch, NULL); in batch_reset_resources()
424 flush_write_batch(struct fd_resource *rsc) assert_dt
427 fd_batch_reference_locked(&b, rsc->track->write_batch);
437 fd_batch_add_resource(struct fd_batch *batch, struct fd_resource *rsc) in fd_batch_add_resource() argument
440 if (likely(fd_batch_references_resource(batch, rsc))) { in fd_batch_add_resource()
441 assert(_mesa_set_search_pre_hashed(batch->resources, rsc in fd_batch_add_resource()
452 fd_batch_resource_write(struct fd_batch *batch, struct fd_resource *rsc) fd_batch_resource_write() argument
502 fd_batch_resource_read_slowpath(struct fd_batch *batch, struct fd_resource *rsc) fd_batch_resource_read_slowpath() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/v3d/
H A Dv3d_resource.c42 v3d_debug_resource_layout(struct v3d_resource *rsc, const char *caller) in v3d_debug_resource_layout() argument
47 struct pipe_resource *prsc = &rsc->base; in v3d_debug_resource_layout()
51 "rsc %s %p (format %s), %dx%d buffer @0x%08x-0x%08x\n", in v3d_debug_resource_layout()
52 caller, rsc, in v3d_debug_resource_layout()
55 rsc->bo->offset, in v3d_debug_resource_layout()
56 rsc->bo->offset + rsc->bo->size - 1); in v3d_debug_resource_layout()
70 struct v3d_resource_slice *slice = &rsc->slices[i]; in v3d_debug_resource_layout()
72 int level_width = slice->stride / rsc->cpp; in v3d_debug_resource_layout()
78 "rsc in v3d_debug_resource_layout()
96 v3d_resource_bo_alloc(struct v3d_resource *rsc) v3d_resource_bo_alloc() argument
122 struct v3d_resource *rsc = v3d_resource(ptrans->resource); v3d_resource_transfer_unmap() local
150 rebind_sampler_views(struct v3d_context *v3d, struct v3d_resource *rsc) rebind_sampler_views() argument
178 struct v3d_resource *rsc = v3d_resource(prsc); v3d_map_usage_prep() local
237 struct v3d_resource *rsc = v3d_resource(prsc); v3d_resource_transfer_map() local
351 struct v3d_resource *rsc = v3d_resource(prsc); v3d_texture_subdata() local
391 struct v3d_resource *rsc = v3d_resource(prsc); v3d_resource_destroy() local
401 v3d_resource_modifier(struct v3d_resource *rsc) v3d_resource_modifier() argument
423 struct v3d_resource *rsc = v3d_resource(prsc); v3d_resource_get_handle() local
464 struct v3d_resource *rsc = v3d_resource(prsc); v3d_resource_get_param() local
494 v3d_get_ub_pad(struct v3d_resource *rsc, uint32_t height) v3d_get_ub_pad() argument
528 v3d_setup_slices(struct v3d_resource *rsc, uint32_t winsys_stride, bool uif_top) v3d_setup_slices() argument
696 struct v3d_resource *rsc = v3d_resource(prsc); v3d_layer_offset() local
710 struct v3d_resource *rsc = CALLOC_STRUCT(v3d_resource); v3d_resource_setup() local
765 struct v3d_resource *rsc = v3d_resource_setup(pscreen, tmpl); v3d_resource_create_with_modifiers() local
876 struct v3d_resource *rsc = v3d_resource_setup(pscreen, tmpl); v3d_resource_from_handle() local
1049 struct v3d_resource *rsc = v3d_resource(ptex); v3d_create_surface() local
1154 struct v3d_resource *rsc = v3d_resource(prsc); v3d_resource_get_stencil() local
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_resource.c42 vc4_resource_bo_alloc(struct vc4_resource *rsc) in vc4_resource_bo_alloc() argument
44 struct pipe_resource *prsc = &rsc->base; in vc4_resource_bo_alloc()
50 rsc, in vc4_resource_bo_alloc()
51 rsc->slices[0].size, in vc4_resource_bo_alloc()
52 rsc->slices[0].offset, in vc4_resource_bo_alloc()
53 rsc->slices[0].offset + in vc4_resource_bo_alloc()
54 rsc->slices[0].size + in vc4_resource_bo_alloc()
55 rsc->cube_map_stride * (prsc->array_size - 1)); in vc4_resource_bo_alloc()
59 rsc->slices[0].offset + in vc4_resource_bo_alloc()
60 rsc in vc4_resource_bo_alloc()
80 struct vc4_resource *rsc = vc4_resource(ptrans->resource); vc4_resource_transfer_unmap() local
106 struct vc4_resource *rsc = vc4_resource(prsc); vc4_resource_transfer_map() local
231 struct vc4_resource *rsc = vc4_resource(prsc); vc4_texture_subdata() local
264 struct vc4_resource *rsc = vc4_resource(prsc); vc4_resource_destroy() local
274 vc4_resource_modifier(struct vc4_resource *rsc) vc4_resource_modifier() argument
290 struct vc4_resource *rsc = vc4_resource(prsc); vc4_resource_get_handle() local
336 struct vc4_resource *rsc = vc4_resource(prsc); vc4_resource_get_param() local
354 vc4_setup_slices(struct vc4_resource *rsc, const char *caller) vc4_setup_slices() argument
456 struct vc4_resource *rsc = CALLOC_STRUCT(vc4_resource); vc4_resource_setup() local
479 struct vc4_resource *rsc = vc4_resource(prsc); get_resource_texture_format() local
503 struct vc4_resource *rsc = vc4_resource_setup(pscreen, tmpl); vc4_resource_create_with_modifiers() local
620 struct vc4_resource *rsc = vc4_resource_setup(pscreen, tmpl); vc4_resource_from_handle() local
739 struct vc4_resource *rsc = vc4_resource(ptex); vc4_create_surface() local
777 struct vc4_resource *rsc = vc4_resource(prsc); vc4_dump_surface_non_msaa() local
874 struct vc4_resource *rsc = vc4_resource(prsc); vc4_surface_msaa_get_sample() local
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
H A Dfd5_resource.c30 setup_lrz(struct fd_resource *rsc) in setup_lrz() argument
32 struct fd_screen *screen = fd_screen(rsc->b.b.screen); in setup_lrz()
33 unsigned lrz_pitch = align(DIV_ROUND_UP(rsc->b.b.width0, 8), 64); in setup_lrz()
34 unsigned lrz_height = DIV_ROUND_UP(rsc->b.b.height0, 8); in setup_lrz()
37 switch (rsc->b.b.nr_samples) { in setup_lrz()
49 rsc->lrz_height = lrz_height; in setup_lrz()
50 rsc->lrz_width = lrz_pitch; in setup_lrz()
51 rsc->lrz_pitch = lrz_pitch; in setup_lrz()
52 rsc->lrz = fd_bo_new(screen->dev, size, FD_BO_NOMAP, "lrz"); in setup_lrz()
56 fd5_setup_slices(struct fd_resource *rsc) in fd5_setup_slices() argument
[all...]
H A Dfd5_gmem.c56 struct fd_resource *rsc = NULL; in emit_mrt() local
72 rsc = fd_resource(psurf->texture); in emit_mrt()
82 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt()
90 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt()
91 size = fd_resource_layer_stride(rsc, psurf->u.tex.level); in emit_mrt()
113 OUT_RELOC(ring, rsc->bo, offset, 0, 0); /* BASE_LO/HI */ in emit_mrt()
138 struct fd_resource *rsc = fd_resource(zsbuf->texture); in emit_zs() local
140 uint32_t cpp = rsc->layout.cpp; in emit_zs()
148 stride = fd_resource_pitch(rsc, zsbuf->u.tex.level); in emit_zs()
149 size = fd_resource_layer_stride(rsc, zsbu in emit_zs()
511 struct fd_resource *rsc = fd_resource(psurf->texture); emit_mem2gmem_surf() local
596 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); fd5_emit_tile_mem2gmem() local
631 struct fd_resource *rsc = fd_resource(psurf->texture); emit_gmem2mem_surf() local
680 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); fd5_emit_tile_gmem2mem() local
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
H A Dfd3_resource.c29 setup_slices(struct fd_resource *rsc, uint32_t alignment, in setup_slices() argument
32 struct pipe_resource *prsc = &rsc->b.b; in setup_slices()
36 fdl_set_pitchalign(&rsc->layout, fdl_cpp_shift(&rsc->layout) + 5); in setup_slices()
39 struct fdl_slice *slice = fd_resource_slice(rsc, level); in setup_slices()
40 uint32_t pitch = fdl_pitch(&rsc->layout, level); in setup_slices()
42 if (rsc->layout.tile_mode) { in setup_slices()
59 (level > 1 && fd_resource_slice(rsc, level - 1)->size0 > 0xf000))) in setup_slices()
64 slice->size0 = fd_resource_slice(rsc, level - 1)->size0; in setup_slices()
73 fd3_setup_slices(struct fd_resource *rsc) in fd3_setup_slices() argument
[all...]
/kernel/linux/linux-6.6/drivers/remoteproc/
H A Dremoteproc_virtio.c113 struct fw_rsc_vdev *rsc; in rp_find_vq() local
160 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rp_find_vq()
161 rsc->vring[id].da = mem->da; in rp_find_vq()
216 struct fw_rsc_vdev *rsc; in rproc_virtio_get_status() local
218 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_status()
220 return rsc->status; in rproc_virtio_get_status()
226 struct fw_rsc_vdev *rsc; in rproc_virtio_set_status() local
228 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set_status()
230 rsc->status = status; in rproc_virtio_set_status()
237 struct fw_rsc_vdev *rsc; in rproc_virtio_reset() local
249 struct fw_rsc_vdev *rsc; rproc_virtio_get_features() local
269 struct fw_rsc_vdev *rsc; rproc_virtio_finalize_features() local
295 struct fw_rsc_vdev *rsc; rproc_virtio_get() local
313 struct fw_rsc_vdev *rsc; rproc_virtio_set() local
500 struct fw_rsc_vdev *rsc; rproc_virtio_probe() local
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
H A Dfd4_resource.c31 fd4_setup_slices(struct fd_resource *rsc) in fd4_setup_slices() argument
33 struct pipe_resource *prsc = &rsc->b.b; in fd4_setup_slices()
45 rsc->layout.layer_first = false; in fd4_setup_slices()
49 rsc->layout.layer_first = true; in fd4_setup_slices()
55 fdl_set_pitchalign(&rsc->layout, fdl_cpp_shift(&rsc->layout) + 5); in fd4_setup_slices()
58 struct fdl_slice *slice = fd_resource_slice(rsc, level); in fd4_setup_slices()
59 uint32_t pitch = fdl_pitch(&rsc->layout, level); in fd4_setup_slices()
70 (level > 1 && fd_resource_slice(rsc, level - 1)->size0 <= 0xf000)) in fd4_setup_slices()
71 slice->size0 = fd_resource_slice(rsc, leve in fd4_setup_slices()
[all...]
/kernel/linux/linux-5.10/drivers/s390/cio/
H A Dcrw.c27 * @rsc: reporting source code to handle
32 int crw_register_handler(int rsc, crw_handler_t handler) in crw_register_handler() argument
36 if ((rsc < 0) || (rsc >= NR_RSCS)) in crw_register_handler()
39 if (crw_handlers[rsc]) in crw_register_handler()
42 crw_handlers[rsc] = handler; in crw_register_handler()
49 * @rsc: reporting source code to handle
51 void crw_unregister_handler(int rsc) in crw_unregister_handler() argument
53 if ((rsc < 0) || (rsc > in crw_unregister_handler()
[all...]
/kernel/linux/linux-6.6/drivers/s390/cio/
H A Dcrw.c26 * @rsc: reporting source code to handle
31 int crw_register_handler(int rsc, crw_handler_t handler) in crw_register_handler() argument
35 if ((rsc < 0) || (rsc >= NR_RSCS)) in crw_register_handler()
38 if (crw_handlers[rsc]) in crw_register_handler()
41 crw_handlers[rsc] = handler; in crw_register_handler()
48 * @rsc: reporting source code to handle
50 void crw_unregister_handler(int rsc) in crw_unregister_handler() argument
52 if ((rsc < 0) || (rsc > in crw_unregister_handler()
[all...]
/kernel/linux/linux-5.10/drivers/remoteproc/
H A Dremoteproc_virtio.c75 struct fw_rsc_vdev *rsc; in rp_find_vq() local
120 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rp_find_vq()
121 rsc->vring[id].da = mem->da; in rp_find_vq()
176 struct fw_rsc_vdev *rsc; in rproc_virtio_get_status() local
178 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_status()
180 return rsc->status; in rproc_virtio_get_status()
186 struct fw_rsc_vdev *rsc; in rproc_virtio_set_status() local
188 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set_status()
190 rsc->status = status; in rproc_virtio_set_status()
197 struct fw_rsc_vdev *rsc; in rproc_virtio_reset() local
209 struct fw_rsc_vdev *rsc; rproc_virtio_get_features() local
229 struct fw_rsc_vdev *rsc; rproc_virtio_finalize_features() local
255 struct fw_rsc_vdev *rsc; rproc_virtio_get() local
273 struct fw_rsc_vdev *rsc; rproc_virtio_set() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_lpe_audio.c84 struct resource *rsc; in lpe_audio_platdev_create() local
92 rsc = kcalloc(2, sizeof(*rsc), GFP_KERNEL); in lpe_audio_platdev_create()
93 if (!rsc) { in lpe_audio_platdev_create()
98 rsc[0].start = rsc[0].end = dev_priv->lpe_audio.irq; in lpe_audio_platdev_create()
99 rsc[0].flags = IORESOURCE_IRQ; in lpe_audio_platdev_create()
100 rsc[0].name = "hdmi-lpe-audio-irq"; in lpe_audio_platdev_create()
102 rsc[1].start = pci_resource_start(dev->pdev, 0) + in lpe_audio_platdev_create()
104 rsc[ in lpe_audio_platdev_create()
[all...]

Completed in 13 milliseconds

12345678910>>...12