Home
last modified time | relevance | path

Searched refs:rsc (Results 1 – 25 of 116) sorted by relevance

12345

/linux-6.15/sound/pci/ctxfi/
H A Dctsrc.c181 src->rsc.ops->master(&src->rsc); in src_commit_write()
199 src->rsc.ops->master(&src->rsc); in src_commit_write()
250 src->rsc.ops->master(&src->rsc); in src_default_config_memrd()
260 src->rsc.ops->master(&src->rsc); in src_default_config_memrd()
286 src->rsc.ops->master(&src->rsc); in src_default_config_memwr()
322 src->rsc.ops->master(&src->rsc); in src_default_config_arcrw()
329 src->rsc.ops->master(&src->rsc); in src_default_config_arcrw()
472 src->rsc.ops->master(&src->rsc); in put_src_rsc()
491 src->rsc.ops->master(&src->rsc); in src_enable_s()
597 rsc->idx = container_of(rsc, struct srcimp, rsc)->idx[0]; in srcimp_master()
[all …]
H A Dctamixer.c26 static void amixer_master(struct rsc *rsc) in amixer_master() argument
29 rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master()
39 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index()
65 rsc->ops->output_slot(rsc)); in amixer_set_input()
102 sum->rsc.ops->index(&sum->rsc)); in amixer_set_sum()
126 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write()
137 sum->rsc.ops->index(&sum->rsc)); in amixer_commit_write()
138 sum->rsc.ops->next_conj(&sum->rsc); in amixer_commit_write()
149 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write()
337 rsc->idx = container_of(rsc, struct sum, rsc)->idx[0]; in sum_master()
[all …]
H A Dctresource.c102 static int rsc_index(const struct rsc *rsc) in rsc_index() argument
107 static int audio_ring_slot(const struct rsc *rsc) in audio_ring_slot() argument
112 static void rsc_next_conj(struct rsc *rsc) in rsc_next_conj() argument
120 static void rsc_master(struct rsc *rsc) in rsc_master() argument
122 rsc->conj = rsc->idx; in rsc_master()
174 int rsc_uninit(struct rsc *rsc) in rsc_uninit() argument
176 if ((NULL != rsc->hw) && (NULL != rsc->ctrl_blk)) { in rsc_uninit()
179 rsc->hw->src_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit()
182 rsc->hw->amixer_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit()
194 rsc->hw = rsc->ctrl_blk = NULL; in rsc_uninit()
[all …]
H A Dctresource.h31 struct rsc { struct
42 void (*master)(struct rsc *rsc); /* Move to master resource */ argument
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 *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw);
51 int rsc_uninit(struct rsc *rsc);
H A Dctamixer.h24 struct rsc rsc; /* Basic resource info */ member
53 struct rsc rsc; /* Basic resource info */ member
55 struct rsc *input; /* pointer to a resource acting as source */
61 int (*set_input)(struct amixer *amixer, struct rsc *rsc);
68 int (*setup)(struct amixer *amixer, struct rsc *input,
H A Dctmixer.h49 struct rsc **rleft, struct rsc **rright);
52 enum MIXER_PORT_T type, struct rsc *rsc);
54 enum MIXER_PORT_T type, struct rsc *rsc);
H A Dctdaio.h43 struct rsc rscl; /* Basic resource info for left TX/RX */
44 struct rsc rscr; /* Basic resource info for right TX/RX */
74 int (*set_left_input)(struct dao *dao, struct rsc *input);
75 int (*set_right_input)(struct dao *dao, struct rsc *input);
81 int (*set_srt_srcl)(struct dai *dai, struct rsc *src);
82 int (*set_srt_srcr)(struct dai *dai, struct rsc *src);
H A Dctdaio.c54 static void daio_master(struct rsc *rsc) in daio_master() argument
59 rsc->conj = rsc->idx; in daio_master()
62 static int daio_index(const struct rsc *rsc) in daio_index() argument
64 return rsc->conj; in daio_index()
67 static void daio_out_next_conj(struct rsc *rsc) in daio_out_next_conj() argument
69 rsc->conj += 2; in daio_out_next_conj()
72 static void daio_in_next_conj_20k1(struct rsc *rsc) in daio_in_next_conj_20k1() argument
74 rsc->conj += 0x200; in daio_in_next_conj_20k1()
77 static void daio_in_next_conj_20k2(struct rsc *rsc) in daio_in_next_conj_20k2() argument
79 rsc->conj += 0x100; in daio_in_next_conj_20k2()
[all …]
H A Dctsrc.h45 struct rsc rsc; /* Basic resource info */ member
104 struct rsc rsc; member
113 int (*map)(struct srcimp *srcimp, struct src *user, struct rsc *input);
H A Dctmixer.c946 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
949 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
966 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
1008 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
1011 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
1048 static int mixer_set_input_port(struct amixer *amixer, struct rsc *rsc) in mixer_set_input_port() argument
1050 amixer->ops->set_input(amixer, rsc); in mixer_set_input_port()
1078 struct rsc **rleft, struct rsc **rright) in mixer_get_output_ports()
1093 enum MIXER_PORT_T type, struct rsc *rsc) in mixer_set_input_left() argument
1097 mixer_set_input_port(mixer->amixers[amix*CHN_NUM], rsc); in mixer_set_input_left()
[all …]
/linux-6.15/drivers/remoteproc/
H A Dremoteproc_virtio.c113 struct fw_rsc_vdev *rsc; in rp_find_vq() local
216 struct fw_rsc_vdev *rsc; in rproc_virtio_get_status() local
220 return rsc->status; in rproc_virtio_get_status()
226 struct fw_rsc_vdev *rsc; in rproc_virtio_set_status() local
230 rsc->status = status; in rproc_virtio_set_status()
237 struct fw_rsc_vdev *rsc; in rproc_virtio_reset() local
241 rsc->status = 0; in rproc_virtio_reset()
253 return rsc->dfeatures; in rproc_virtio_get_features()
299 cfg = &rsc->vring[rsc->num_of_vrings]; in rproc_virtio_get()
317 cfg = &rsc->vring[rsc->num_of_vrings]; in rproc_virtio_set()
[all …]
H A Dremoteproc_core.c487 rsc_size = struct_size(rsc, vring, rsc->num_of_vrings); in rproc_handle_vdev()
494 if (rsc->reserved[0] || rsc->reserved[1]) { in rproc_handle_vdev()
500 rsc->id, rsc->dfeatures, rsc->config_len, rsc->num_of_vrings); in rproc_handle_vdev()
511 rvdev_data.rsc = rsc; in rproc_handle_vdev()
560 if (rsc->reserved) { in rproc_handle_trace()
587 name, rsc->da, rsc->len); in rproc_handle_trace()
647 ret = iommu_map(rproc->domain, rsc->da, rsc->pa, rsc->len, rsc->flags, in rproc_handle_devmem()
666 rsc->pa, rsc->da, rsc->len); in rproc_handle_devmem()
843 rsc->name, rsc->da, rsc->pa, rsc->len, rsc->flags); in rproc_handle_carveout()
858 if (rproc_check_carveout_da(rproc, carveout, rsc->da, rsc->len)) in rproc_handle_carveout()
[all …]
H A Dremoteproc_internal.h39 struct fw_rsc_vdev *rsc; member
109 int rproc_parse_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i);
185 int rproc_handle_rsc(struct rproc *rproc, u32 rsc_type, void *rsc, int offset, in rproc_handle_rsc() argument
189 return rproc->ops->handle_rsc(rproc, rsc_type, rsc, offset, in rproc_handle_rsc()
/linux-6.15/drivers/s390/cio/
H A Dcrw.c31 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()
50 void crw_unregister_handler(int rsc) in crw_unregister_handler() argument
52 if ((rsc < 0) || (rsc >= NR_RSCS)) in crw_unregister_handler()
55 crw_handlers[rsc] = NULL; in crw_unregister_handler()
86 tmp_crw.chn, tmp_crw.rsc, tmp_crw.anc, in crw_collect_info()
101 crw[chain].rsc, crw[chain].anc, crw[chain].erc, in crw_collect_info()
122 handler = crw_handlers[crw[chain].rsc]; in crw_collect_info()
H A Dcio_inject.c88 u32 slct, oflw, chn, rsc, anc, erc, rsid; in crw_inject_write() local
102 rc = sscanf(buffer, "%x %x %x %x %x %x %x", &slct, &oflw, &chn, &rsc, &anc, in crw_inject_write()
115 crw.rsc = rsc; in crw_inject_write()
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_lpe_audio.c87 struct resource *rsc; in lpe_audio_platdev_create() local
95 rsc = kcalloc(2, sizeof(*rsc), GFP_KERNEL); in lpe_audio_platdev_create()
96 if (!rsc) { in lpe_audio_platdev_create()
101 rsc[0].start = display->audio.lpe.irq; in lpe_audio_platdev_create()
102 rsc[0].end = display->audio.lpe.irq; in lpe_audio_platdev_create()
103 rsc[0].flags = IORESOURCE_IRQ; in lpe_audio_platdev_create()
104 rsc[0].name = "hdmi-lpe-audio-irq"; in lpe_audio_platdev_create()
110 rsc[1].flags = IORESOURCE_MEM; in lpe_audio_platdev_create()
111 rsc[1].name = "hdmi-lpe-audio-mmio"; in lpe_audio_platdev_create()
116 pinfo.res = rsc; in lpe_audio_platdev_create()
[all …]
/linux-6.15/drivers/soc/qcom/
H A Dcmd-db.c274 const struct rsc_hdr *rsc; in cmd_db_debugfs_dump() local
283 rsc = &cmd_db_header->header[i]; in cmd_db_debugfs_dump()
284 if (!rsc->slv_id) in cmd_db_debugfs_dump()
287 switch (le16_to_cpu(rsc->slv_id)) { in cmd_db_debugfs_dump()
302 version = le16_to_cpu(rsc->version); in cmd_db_debugfs_dump()
309 ent = rsc_to_entry_header(rsc); in cmd_db_debugfs_dump()
310 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) { in cmd_db_debugfs_dump()
317 len, rsc_offset(rsc, ent)); in cmd_db_debugfs_dump()
/linux-6.15/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c368 struct rsc { struct
377 static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old); argument
390 struct rsc *rsci = container_of(head, struct rsc, rcu_head); in rsc_free_rcu()
398 struct rsc *rsci = container_of(ref, struct rsc, h.ref); in rsc_put()
415 struct rsc *new = container_of(a, struct rsc, h); in rsc_match()
416 struct rsc *tmp = container_of(b, struct rsc, h); in rsc_match()
424 struct rsc *new = container_of(cnew, struct rsc, h); in rsc_init()
425 struct rsc *tmp = container_of(ctmp, struct rsc, h); in rsc_init()
438 struct rsc *new = container_of(cnew, struct rsc, h); in update_rsc()
439 struct rsc *tmp = container_of(ctmp, struct rsc, h); in update_rsc()
[all …]
/linux-6.15/lib/reed_solomon/
H A Ddecode_rs.c13 struct rs_codec *rs = rsc->codec;
32 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1);
33 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1);
34 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1);
35 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1);
36 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1);
37 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1);
38 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots + 1);
39 uint16_t *loc = rsc->buffers + RS_DECODE_LOC * (nroots + 1);
H A Dtest_rslib.c229 static void compute_syndrome(struct rs_control *rsc, uint16_t *data, in compute_syndrome() argument
232 struct rs_codec *rs = rsc->codec; in compute_syndrome()
446 struct rs_control *rsc; in run_exercise() local
453 rsc = init_rs(e->symsize, e->genpoly, e->fcs, e->prim, e->nroots); in run_exercise()
454 if (!rsc) in run_exercise()
457 ws = alloc_ws(rsc->codec); in run_exercise()
475 retval |= exercise_rs(rsc, ws, len, e->ntrials); in run_exercise()
477 retval |= exercise_rs_bc(rsc, ws, len, e->ntrials); in run_exercise()
483 free_rs(rsc); in run_exercise()
/linux-6.15/drivers/infiniband/ulp/iser/
H A Diser_memory.c169 ib_check_mr_status(desc->rsc.sig_mr, IB_MR_CHECK_SIG_STATUS, in iser_unreg_mem_fastreg()
250 struct iser_reg_resources *rsc, in iser_reg_sig_mr() argument
255 struct ib_mr *mr = rsc->sig_mr; in iser_reg_sig_mr()
267 if (rsc->sig_mr->need_inval) in iser_reg_sig_mr()
291 rsc->sig_mr->need_inval = true; in iser_reg_sig_mr()
307 struct iser_reg_resources *rsc, in iser_fast_reg_mr() argument
312 struct ib_mr *mr = rsc->mr; in iser_fast_reg_mr()
316 if (rsc->mr->need_inval) in iser_fast_reg_mr()
339 rsc->mr->need_inval = true; in iser_fast_reg_mr()
371 err = iser_fast_reg_mr(task, mem, &desc->rsc, reg); in iser_reg_mem_fastreg()
[all …]
/linux-6.15/Documentation/devicetree/bindings/soc/qcom/
H A Dqcom,rpmh-rsc.yaml31 See also:: <dt-bindings/soc/qcom,rpmh-rsc.h>
47 const: qcom,rpmh-rsc
141 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
143 rsc@179c0000 {
144 compatible = "qcom,rpmh-rsc";
169 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
171 rsc@af20000 {
172 compatible = "qcom,rpmh-rsc";
188 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
191 rsc@18200000 {
[all …]
/linux-6.15/arch/s390/include/asm/
H A Dcrw.h23 __u32 rsc : 4; /* reporting source code */ member
32 extern int crw_register_handler(int rsc, crw_handler_t handler);
33 extern void crw_unregister_handler(int rsc);
/linux-6.15/drivers/gpu/ipu-v3/
H A Dipu-ic.c81 u32 rsc; member
96 .rsc = IC_PRP_ENC_RSC,
100 .rsc = IC_PRP_VF_RSC,
104 .rsc = IC_PP_RSC,
328 u32 rsc) in ipu_ic_task_init_rsc() argument
335 if (!rsc) { in ipu_ic_task_init_rsc()
343 rsc = (downsize_coeff << 30) | (resize_coeff << 16); in ipu_ic_task_init_rsc()
351 rsc |= (downsize_coeff << 14) | resize_coeff; in ipu_ic_task_init_rsc()
356 ipu_ic_write(ic, rsc, ic->reg->rsc); in ipu_ic_task_init_rsc()
/linux-6.15/drivers/net/hyperv/
H A Drndis_filter.c435 u32 cnt = nvchan->rsc.cnt; in rsc_add_data()
438 nvchan->rsc.pktlen += len; in rsc_add_data()
456 nvchan->rsc.pktlen = len; in rsc_add_data()
465 nvchan->rsc.data[cnt] = data; in rsc_add_data()
466 nvchan->rsc.len[cnt] = len; in rsc_add_data()
467 nvchan->rsc.cnt++; in rsc_add_data()
535 nvchan->rsc.cnt = 0; in rndis_filter_receive_data()
536 else if (nvchan->rsc.cnt == 0) in rndis_filter_receive_data()
547 nvchan->rsc.cnt = 0; in rndis_filter_receive_data()
565 nvchan->rsc.cnt = 0; in rndis_filter_receive_data()
[all …]

12345