Home
last modified time | relevance | path

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

123

/Linux-v4.19/sound/pci/ctxfi/
Dctsrc.c42 hw = src->rsc.hw; in src_set_state()
43 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state()
52 hw = src->rsc.hw; in src_set_bm()
53 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm()
62 hw = src->rsc.hw; in src_set_sf()
63 hw->src_set_sf(src->rsc.ctrl_blk, sf); in src_set_sf()
72 hw = src->rsc.hw; in src_set_pm()
73 hw->src_set_pm(src->rsc.ctrl_blk, pm); in src_set_pm()
82 hw = src->rsc.hw; in src_set_rom()
83 hw->src_set_rom(src->rsc.ctrl_blk, rom); in src_set_rom()
[all …]
Dctamixer.c30 static int amixer_master(struct rsc *rsc) in amixer_master() argument
32 rsc->conj = 0; in amixer_master()
33 return rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master()
36 static int amixer_next_conj(struct rsc *rsc) in amixer_next_conj() argument
38 rsc->conj++; in amixer_next_conj()
39 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_next_conj()
42 static int amixer_index(const struct rsc *rsc) in amixer_index() argument
44 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index()
47 static int amixer_output_slot(const struct rsc *rsc) in amixer_output_slot() argument
49 return (amixer_index(rsc) << 4) + 0x4; in amixer_output_slot()
[all …]
Dctresource.c106 static int rsc_index(const struct rsc *rsc) in rsc_index() argument
108 return rsc->conj; in rsc_index()
111 static int audio_ring_slot(const struct rsc *rsc) in audio_ring_slot() argument
113 return (rsc->conj << 4) + offset_in_audio_slot_block[rsc->type]; in audio_ring_slot()
116 static int rsc_next_conj(struct rsc *rsc) in rsc_next_conj() argument
119 for (i = 0; (i < 8) && (!(rsc->msr & (0x1 << i))); ) in rsc_next_conj()
121 rsc->conj += (AUDIO_SLOT_BLOCK_NUM >> i); in rsc_next_conj()
122 return rsc->conj; in rsc_next_conj()
125 static int rsc_master(struct rsc *rsc) in rsc_master() argument
127 return rsc->conj = rsc->idx; in rsc_master()
[all …]
Dctresource.h35 struct rsc { struct
46 int (*master)(struct rsc *rsc); /* Move to master resource */ argument
47 int (*next_conj)(struct rsc *rsc); /* Move to next conjugate resource */
48 int (*index)(const struct rsc *rsc); /* Return the index of resource */
50 int (*output_slot)(const struct rsc *rsc);
54 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw);
55 int rsc_uninit(struct rsc *rsc);
Dctamixer.h28 struct rsc rsc; /* Basic resource info */ member
57 struct rsc rsc; /* Basic resource info */ member
59 struct rsc *input; /* pointer to a resource acting as source */
65 int (*set_input)(struct amixer *amixer, struct rsc *rsc);
72 int (*setup)(struct amixer *amixer, struct rsc *input,
Dctmixer.h53 struct rsc **rleft, struct rsc **rright);
56 enum MIXER_PORT_T type, struct rsc *rsc);
58 enum MIXER_PORT_T type, struct rsc *rsc);
Dctdaio.h47 struct rsc rscl; /* Basic resource info for left TX/RX */
48 struct rsc rscr; /* Basic resource info for right TX/RX */
78 int (*set_left_input)(struct dao *dao, struct rsc *input);
79 int (*set_right_input)(struct dao *dao, struct rsc *input);
85 int (*set_srt_srcl)(struct dai *dai, struct rsc *src);
86 int (*set_srt_srcr)(struct dai *dai, struct rsc *src);
Dctsrc.h49 struct rsc rsc; /* Basic resource info */ member
108 struct rsc rsc; member
117 int (*map)(struct srcimp *srcimp, struct src *user, struct rsc *input);
Dctdaio.c58 static int daio_master(struct rsc *rsc) in daio_master() argument
63 return rsc->conj = rsc->idx; in daio_master()
66 static int daio_index(const struct rsc *rsc) in daio_index() argument
68 return rsc->conj; in daio_index()
71 static int daio_out_next_conj(struct rsc *rsc) in daio_out_next_conj() argument
73 return rsc->conj += 2; in daio_out_next_conj()
76 static int daio_in_next_conj_20k1(struct rsc *rsc) in daio_in_next_conj_20k1() argument
78 return rsc->conj += 0x200; in daio_in_next_conj_20k1()
81 static int daio_in_next_conj_20k2(struct rsc *rsc) in daio_in_next_conj_20k2() argument
83 return rsc->conj += 0x100; in daio_in_next_conj_20k2()
[all …]
Dctmixer.c950 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
953 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
961 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
964 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
970 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
973 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
1012 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
1015 amix_d->ops->setup(amix_d, &sum->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
1052 static int mixer_set_input_port(struct amixer *amixer, struct rsc *rsc) in mixer_set_input_port() argument
1054 amixer->ops->set_input(amixer, rsc); in mixer_set_input_port()
[all …]
Dctatc.c303 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare()
387 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_start()
448 max_cisz = src->multi * src->rsc.msr; in atc_pcm_playback_position()
654 struct rsc *out_ports[8] = {NULL}; in atc_pcm_capture_prepare()
678 out_ports[0] = &mono->rsc; in atc_pcm_capture_prepare()
688 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in atc_pcm_capture_prepare()
689 out_ports[i%multi] = &amixer->rsc; in atc_pcm_capture_prepare()
710 &amixer->rsc); in atc_pcm_capture_prepare()
922 amixer->ops->setup(amixer, &src->rsc, INIT_VOL, NULL); in spdif_passthru_playback_prepare()
931 dao->ops->set_left_input(dao, &amixer->rsc); in spdif_passthru_playback_prepare()
[all …]
/Linux-v4.19/drivers/remoteproc/
Dremoteproc_virtio.c165 struct fw_rsc_vdev *rsc; in rproc_virtio_get_status() local
167 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_status()
169 return rsc->status; in rproc_virtio_get_status()
175 struct fw_rsc_vdev *rsc; in rproc_virtio_set_status() local
177 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set_status()
179 rsc->status = status; in rproc_virtio_set_status()
186 struct fw_rsc_vdev *rsc; in rproc_virtio_reset() local
188 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_reset()
190 rsc->status = 0; in rproc_virtio_reset()
198 struct fw_rsc_vdev *rsc; in rproc_virtio_get_features() local
[all …]
Dremoteproc_core.c209 struct fw_rsc_vdev *rsc; in rproc_alloc_vring() local
257 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rproc_alloc_vring()
258 rsc->vring[i].da = dma; in rproc_alloc_vring()
259 rsc->vring[i].notifyid = notifyid; in rproc_alloc_vring()
264 rproc_parse_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i) in rproc_parse_vring() argument
268 struct fw_rsc_vdev_vring *vring = &rsc->vring[i]; in rproc_parse_vring()
293 struct fw_rsc_vdev *rsc; in rproc_free_vring() local
299 rsc = (void *)rproc->table_ptr + rvring->rvdev->rsc_offset; in rproc_free_vring()
300 rsc->vring[idx].da = 0; in rproc_free_vring()
301 rsc->vring[idx].notifyid = -1; in rproc_free_vring()
[all …]
Dremoteproc_debugfs.c178 void *rsc = (void *)hdr + sizeof(*hdr); in rproc_rsc_table_show() local
182 c = rsc; in rproc_rsc_table_show()
192 d = rsc; in rproc_rsc_table_show()
202 t = rsc; in rproc_rsc_table_show()
210 v = rsc; in rproc_rsc_table_show()
/Linux-v4.19/drivers/s390/cio/
Dcrw.c32 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()
51 void crw_unregister_handler(int rsc) in crw_unregister_handler() argument
53 if ((rsc < 0) || (rsc >= NR_RSCS)) in crw_unregister_handler()
56 crw_handlers[rsc] = NULL; in crw_unregister_handler()
88 tmp_crw.chn, tmp_crw.rsc, tmp_crw.anc, in crw_collect_info()
103 crw[chain].rsc, crw[chain].anc, crw[chain].erc, in crw_collect_info()
124 handler = crw_handlers[crw[chain].rsc]; in crw_collect_info()
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_lpe_audio.c80 struct resource *rsc; in lpe_audio_platdev_create() local
88 rsc = kcalloc(2, sizeof(*rsc), GFP_KERNEL); in lpe_audio_platdev_create()
89 if (!rsc) { in lpe_audio_platdev_create()
94 rsc[0].start = rsc[0].end = dev_priv->lpe_audio.irq; in lpe_audio_platdev_create()
95 rsc[0].flags = IORESOURCE_IRQ; in lpe_audio_platdev_create()
96 rsc[0].name = "hdmi-lpe-audio-irq"; in lpe_audio_platdev_create()
98 rsc[1].start = pci_resource_start(dev->pdev, 0) + in lpe_audio_platdev_create()
100 rsc[1].end = pci_resource_start(dev->pdev, 0) + in lpe_audio_platdev_create()
102 rsc[1].flags = IORESOURCE_MEM; in lpe_audio_platdev_create()
103 rsc[1].name = "hdmi-lpe-audio-mmio"; in lpe_audio_platdev_create()
[all …]
/Linux-v4.19/arch/ia64/kernel/
Dpal.S69 mov loc4=ar.rsc // save RSE configuration
71 mov ar.rsc=0 // put RSE in enforced lazy, LE mode
85 mov ar.rsc = loc4 // restore RSE configuration
168 mov loc4=ar.rsc // save RSE configuration
173 mov ar.rsc=0 // put RSE in enforced lazy, LE mode
186 mov ar.rsc=0 // put RSE in enforced lazy, LE mode
196 mov ar.rsc=loc4 // restore RSE configuration
222 mov loc4=ar.rsc // save RSE configuration
225 mov ar.rsc=0 // put RSE in enforced lazy, LE mode
244 mov ar.rsc=0 // put RSE in enforced lazy, LE mode
[all …]
Desi_stub.S71 mov loc4=ar.rsc // save RSE configuration
72 mov ar.rsc=0 // put RSE in enforced lazy, LE mode
87 .ret1: mov ar.rsc=0 // put RSE in enforced lazy, LE mode
92 .ret2: mov ar.rsc=loc4 // restore RSE configuration
Defi_stub.S54 mov loc4=ar.rsc // save RSE configuration
55 mov ar.rsc=0 // put RSE in enforced lazy, LE mode
77 .ret1: mov ar.rsc=0 // put RSE in enforced lazy, LE mode
82 .ret2: mov ar.rsc=loc4 // restore RSE configuration
/Linux-v4.19/net/sunrpc/auth_gss/
Dsvcauth_gss.c327 struct rsc { struct
335 static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old); argument
336 static struct rsc *rsc_lookup(struct cache_detail *cd, struct rsc *item);
338 static void rsc_free(struct rsc *rsci) in rsc_free()
348 struct rsc *rsci = container_of(ref, struct rsc, h.ref); in rsc_put()
355 rsc_hash(struct rsc *rsci) in rsc_hash()
363 struct rsc *new = container_of(a, struct rsc, h); in rsc_match()
364 struct rsc *tmp = container_of(b, struct rsc, h); in rsc_match()
372 struct rsc *new = container_of(cnew, struct rsc, h); in rsc_init()
373 struct rsc *tmp = container_of(ctmp, struct rsc, h); in rsc_init()
[all …]
/Linux-v4.19/lib/reed_solomon/
Ddecode_rs.c13 struct rs_codec *rs = rsc->codec;
31 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1);
32 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1);
33 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1);
34 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1);
35 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1);
36 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1);
37 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots + 1);
38 uint16_t *loc = rsc->buffers + RS_DECODE_LOC * (nroots + 1);
/Linux-v4.19/arch/s390/include/asm/
Dcrw.h24 __u32 rsc : 4; /* reporting source code */ member
33 extern int crw_register_handler(int rsc, crw_handler_t handler);
34 extern void crw_unregister_handler(int rsc);
/Linux-v4.19/drivers/infiniband/ulp/iser/
Diser_memory.c44 struct iser_reg_resources *rsc,
49 struct iser_reg_resources *rsc,
230 struct iser_reg_resources *rsc, in iser_fast_reg_fmr() argument
235 struct iser_page_vec *page_vec = rsc->page_vec; in iser_fast_reg_fmr()
236 struct ib_fmr_pool *fmr_pool = rsc->fmr_pool; in iser_fast_reg_fmr()
440 struct iser_reg_resources *rsc, in iser_fast_reg_mr() argument
445 struct ib_mr *mr = rsc->mr; in iser_fast_reg_mr()
449 if (rsc->mr_valid) in iser_fast_reg_mr()
472 rsc->mr_valid = 1; in iser_fast_reg_mr()
497 return device->reg_ops->reg_mem(task, mem, &desc->pi_ctx->rsc, reg); in iser_reg_prot_sg()
[all …]
Diser_verbs.c202 desc->rsc.page_vec = page_vec; in iser_alloc_fmr_pool()
203 desc->rsc.fmr_pool = fmr_pool; in iser_alloc_fmr_pool()
229 ib_conn, desc->rsc.fmr_pool); in iser_free_fmr_pool()
231 ib_destroy_fmr_pool(desc->rsc.fmr_pool); in iser_free_fmr_pool()
232 kfree(desc->rsc.page_vec); in iser_free_fmr_pool()
263 iser_free_reg_res(struct iser_reg_resources *rsc) in iser_free_reg_res() argument
265 ib_dereg_mr(rsc->mr); in iser_free_reg_res()
283 ret = iser_alloc_reg_res(device, pd, &pi_ctx->rsc, size); in iser_alloc_pi_ctx()
300 iser_free_reg_res(&pi_ctx->rsc); in iser_alloc_pi_ctx()
310 iser_free_reg_res(&pi_ctx->rsc); in iser_free_pi_ctx()
[all …]
/Linux-v4.19/drivers/soc/qcom/
DMakefile2 CFLAGS_rpmh-rsc.o := -I$(src)
13 qcom_rpmh-y += rpmh-rsc.o

123