Home
last modified time | relevance | path

Searched full:rsc (Results 1 – 25 of 141) sorted by relevance

123456

/Linux-v5.15/sound/pci/ctxfi/
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.ctrl_blk, rom); in src_set_rom()
[all …]
Dctamixer.c26 static int amixer_master(struct rsc *rsc) in amixer_master() argument
28 rsc->conj = 0; in amixer_master()
29 return rsc->idx = container_of(rsc, struct amixer, rsc)->idx[0]; in amixer_master()
32 static int amixer_next_conj(struct rsc *rsc) in amixer_next_conj() argument
34 rsc->conj++; in amixer_next_conj()
35 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_next_conj()
38 static int amixer_index(const struct rsc *rsc) in amixer_index() argument
40 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index()
43 static int amixer_output_slot(const struct rsc *rsc) in amixer_output_slot() argument
45 return (amixer_index(rsc) << 4) + 0x4; in amixer_output_slot()
[all …]
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 int rsc_next_conj(struct rsc *rsc) in rsc_next_conj() argument
115 for (i = 0; (i < 8) && (!(rsc->msr & (0x1 << i))); ) in rsc_next_conj()
117 rsc->conj += (AUDIO_SLOT_BLOCK_NUM >> i); in rsc_next_conj()
118 return rsc->conj; in rsc_next_conj()
121 static int rsc_master(struct rsc *rsc) in rsc_master() argument
123 return rsc->conj = rsc->idx; in rsc_master()
[all …]
Dctresource.h31 struct rsc { struct
42 int (*master)(struct rsc *rsc); /* Move to master resource */ argument
43 int (*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);
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,
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);
Dctdaio.c54 static int daio_master(struct rsc *rsc) in daio_master() argument
59 return 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 int daio_out_next_conj(struct rsc *rsc) in daio_out_next_conj() argument
69 return rsc->conj += 2; in daio_out_next_conj()
72 static int daio_in_next_conj_20k1(struct rsc *rsc) in daio_in_next_conj_20k1() argument
74 return rsc->conj += 0x200; in daio_in_next_conj_20k1()
77 static int daio_in_next_conj_20k2(struct rsc *rsc) in daio_in_next_conj_20k2() argument
79 return rsc->conj += 0x100; in daio_in_next_conj_20k2()
[all …]
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);
Dctsrc.h45 struct rsc rsc; /* Basic resource info */ member
104 struct rsc rsc; member
107 unsigned int mapped; /* A bit-map indicating which conj rsc is mapped */
113 int (*map)(struct srcimp *srcimp, struct src *user, struct rsc *input);
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()
957 amix_d->ops->setup(amix_d, &amix_s->rsc, INIT_VOL, NULL); in ct_mixer_topology_build()
960 amix_d->ops->setup(amix_d, &amix_s->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()
969 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()
[all …]
/Linux-v5.15/drivers/s390/cio/
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 >= NR_RSCS)) in crw_unregister_handler()
56 crw_handlers[rsc] = NULL; in crw_unregister_handler()
86 "chn=%d, rsc=%X, anc=%d, erc=%X, rsid=%X\n", in crw_collect_info()
[all …]
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()
107 …pr_warn("crw_inject: Invalid format (need <solicited> <overflow> <chaining> <rsc> <ancillary> <erc… in crw_inject_write()
115 crw.rsc = rsc; in crw_inject_write()
/Linux-v5.15/drivers/remoteproc/
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
[all …]
Dremoteproc_core.c331 struct fw_rsc_vdev *rsc; in rproc_alloc_vring() local
339 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rproc_alloc_vring()
345 if (rproc_check_carveout_da(rproc, mem, rsc->vring[i].da, size)) in rproc_alloc_vring()
350 size, rsc->vring[i].da, in rproc_alloc_vring()
382 rsc->vring[i].notifyid = notifyid; in rproc_alloc_vring()
387 rproc_parse_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i) in rproc_parse_vring() argument
391 struct fw_rsc_vdev_vring *vring = &rsc->vring[i]; in rproc_parse_vring()
394 dev_dbg(dev, "vdev rsc: vring%d: da 0x%x, qsz %d, align %d\n", in rproc_parse_vring()
415 struct fw_rsc_vdev *rsc; in rproc_free_vring() local
431 rsc = (void *)rproc->table_ptr + rvring->rvdev->rsc_offset; in rproc_free_vring()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/soc/qcom/
Drpmh-rsc.txt1 RPMH RSC:
11 (Resource State Coordinator a.k.a RSC) that can handle multiple sleep and
38 Definition: Should be "qcom,rpmh-rsc".
44 DRV(s). The number of DRVs in the dependent on the RSC.
63 Definition: The id of the DRV in the RSC block that will be used by
84 Definition: Name for the RSC. The name would be used in trace logs.
86 Drivers that want to use the RSC to communicate with RPMH must specify their
87 bindings as child nodes of the RSC controllers they wish to communicate with.
91 For a TCS whose RSC base address is is 0x179C0000 and is at a DRV id of 2, the
99 apps_rsc: rsc@179c0000 {
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/display/
Dintel_lpe_audio.c85 struct resource *rsc; in lpe_audio_platdev_create() local
93 rsc = kcalloc(2, sizeof(*rsc), GFP_KERNEL); in lpe_audio_platdev_create()
94 if (!rsc) { in lpe_audio_platdev_create()
99 rsc[0].start = rsc[0].end = dev_priv->lpe_audio.irq; in lpe_audio_platdev_create()
100 rsc[0].flags = IORESOURCE_IRQ; in lpe_audio_platdev_create()
101 rsc[0].name = "hdmi-lpe-audio-irq"; in lpe_audio_platdev_create()
103 rsc[1].start = pci_resource_start(pdev, 0) + in lpe_audio_platdev_create()
105 rsc[1].end = pci_resource_start(pdev, 0) + in lpe_audio_platdev_create()
107 rsc[1].flags = IORESOURCE_MEM; in lpe_audio_platdev_create()
108 rsc[1].name = "hdmi-lpe-audio-mmio"; in lpe_audio_platdev_create()
[all …]
/Linux-v5.15/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 …]
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-v5.15/Documentation/devicetree/bindings/interconnect/
Dqcom,bcm-voter.yaml15 Coordinators (RSC). Interconnect providers are able to vote for aggregated
31 WAKE/SLEEP TCSs are triggered when the RSC transitions between active and
35 ensure resources are available before use. If a specific RSC and its use
48 # as defined in Documentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt
56 # as defined in Documentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt
/Linux-v5.15/net/sunrpc/auth_gss/
Dsvcauth_gss.c344 struct rsc { struct
353 static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old); argument
354 static struct rsc *rsc_lookup(struct cache_detail *cd, struct rsc *item);
356 static void rsc_free(struct rsc *rsci) in rsc_free()
366 struct rsc *rsci = container_of(head, struct rsc, rcu_head); in rsc_free_rcu()
374 struct rsc *rsci = container_of(ref, struct rsc, h.ref); in rsc_put()
383 rsc_hash(struct rsc *rsci) in rsc_hash()
391 struct rsc *new = container_of(a, struct rsc, h); in rsc_match()
392 struct rsc *tmp = container_of(b, struct rsc, h); in rsc_match()
400 struct rsc *new = container_of(cnew, struct rsc, h); in rsc_init()
[all …]
/Linux-v5.15/drivers/infiniband/ulp/iser/
Diser_memory.c150 ib_check_mr_status(desc->rsc.sig_mr, IB_MR_CHECK_SIG_STATUS, in iser_unreg_mem_fastreg()
236 struct iser_reg_resources *rsc, in iser_reg_sig_mr() argument
241 struct ib_mr *mr = rsc->sig_mr; in iser_reg_sig_mr()
253 if (rsc->mr_valid) in iser_reg_sig_mr()
277 rsc->mr_valid = 1; in iser_reg_sig_mr()
293 struct iser_reg_resources *rsc, in iser_fast_reg_mr() argument
298 struct ib_mr *mr = rsc->mr; in iser_fast_reg_mr()
302 if (rsc->mr_valid) in iser_fast_reg_mr()
325 rsc->mr_valid = 1; in iser_fast_reg_mr()
350 return iser_fast_reg_mr(task, mem, &desc->rsc, reg); in iser_reg_data_sg()
[all …]
/Linux-v5.15/drivers/soc/qcom/
Dcmd-db.c245 const struct rsc_hdr *rsc; in cmd_db_debugfs_dump() local
254 rsc = &cmd_db_header->header[i]; in cmd_db_debugfs_dump()
255 if (!rsc->slv_id) in cmd_db_debugfs_dump()
258 switch (le16_to_cpu(rsc->slv_id)) { in cmd_db_debugfs_dump()
273 version = le16_to_cpu(rsc->version); in cmd_db_debugfs_dump()
280 ent = rsc_to_entry_header(rsc); in cmd_db_debugfs_dump()
281 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) { in cmd_db_debugfs_dump()
288 len, rsc_offset(rsc, ent)); in cmd_db_debugfs_dump()
/Linux-v5.15/lib/reed_solomon/
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);
Dreed_solomon.c318 * @rsc: the rs control structure
328 int encode_rs8(struct rs_control *rsc, uint8_t *data, int len, uint16_t *par, in encode_rs8() argument
339 * @rsc: the rs control structure
354 * Note: The rs_control struct @rsc contains buffers which are used for
361 int decode_rs8(struct rs_control *rsc, uint8_t *data, uint16_t *par, int len, in decode_rs8() argument
373 * @rsc: the rs control structure
381 int encode_rs16(struct rs_control *rsc, uint16_t *data, int len, uint16_t *par, in encode_rs16() argument
392 * @rsc: the rs control structure
405 * Note: The rc_control struct @rsc contains buffers which are used for
412 int decode_rs16(struct rs_control *rsc, uint16_t *data, uint16_t *par, int len, in decode_rs16() argument
/Linux-v5.15/drivers/net/hyperv/
Drndis_filter.c445 u32 cnt = nvchan->rsc.cnt; in rsc_add_data()
448 nvchan->rsc.pktlen += len; in rsc_add_data()
451 * across the different 'fragments' of the RSC packet; store them into in rsc_add_data()
455 memcpy(&nvchan->rsc.vlan, vlan, sizeof(*vlan)); in rsc_add_data()
456 nvchan->rsc.ppi_flags |= NVSC_RSC_VLAN; in rsc_add_data()
458 nvchan->rsc.ppi_flags &= ~NVSC_RSC_VLAN; in rsc_add_data()
461 memcpy(&nvchan->rsc.csum_info, csum_info, sizeof(*csum_info)); in rsc_add_data()
462 nvchan->rsc.ppi_flags |= NVSC_RSC_CSUM_INFO; in rsc_add_data()
464 nvchan->rsc.ppi_flags &= ~NVSC_RSC_CSUM_INFO; in rsc_add_data()
466 nvchan->rsc.pktlen = len; in rsc_add_data()
[all …]

123456