| /kernel/linux/linux-6.6/sound/pci/ctxfi/ |
| D | ctsrc.c | 38 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 …]
|
| D | ctamixer.c | 26 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 *rsc) in amixer_index() argument 39 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index() 42 static int amixer_output_slot(const struct rsc *rsc) in amixer_output_slot() argument 44 return (amixer_index(rsc) << 4) + 0x4; in amixer_output_slot() 54 static int amixer_set_input(struct amixer *amixer, struct rsc *rsc) in amixer_set_input() argument [all …]
|
| D | ctresource.c | 102 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->msr & (0x1 << i))); ) in rsc_next_conj() 117 rsc->conj += (AUDIO_SLOT_BLOCK_NUM >> i); in rsc_next_conj() 120 static void rsc_master(struct rsc *rsc) in rsc_master() argument 122 rsc->conj = rsc->idx; in rsc_master() 133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument [all …]
|
| D | ctresource.h | 31 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);
|
| D | ctamixer.h | 24 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,
|
| D | ctmixer.h | 49 struct rsc **rleft, struct rsc **rright); 52 enum MIXER_PORT_T type, struct rsc *rsc); 54 enum MIXER_PORT_T type, struct rsc *rsc);
|
| /kernel/linux/linux-5.10/sound/pci/ctxfi/ |
| D | ctsrc.c | 38 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 …]
|
| D | ctamixer.c | 26 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 *rsc) in amixer_index() argument 39 return container_of(rsc, struct amixer, rsc)->idx[rsc->conj]; in amixer_index() 42 static int amixer_output_slot(const struct rsc *rsc) in amixer_output_slot() argument 44 return (amixer_index(rsc) << 4) + 0x4; in amixer_output_slot() 54 static int amixer_set_input(struct amixer *amixer, struct rsc *rsc) in amixer_set_input() argument [all …]
|
| D | ctresource.c | 102 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->msr & (0x1 << i))); ) in rsc_next_conj() 117 rsc->conj += (AUDIO_SLOT_BLOCK_NUM >> i); in rsc_next_conj() 120 static void rsc_master(struct rsc *rsc) in rsc_master() argument 122 rsc->conj = rsc->idx; in rsc_master() 133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument [all …]
|
| D | ctresource.h | 31 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);
|
| D | ctamixer.h | 24 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,
|
| D | ctmixer.h | 49 struct rsc **rleft, struct rsc **rright); 52 enum MIXER_PORT_T type, struct rsc *rsc); 54 enum MIXER_PORT_T type, struct rsc *rsc);
|
| /kernel/linux/linux-6.6/drivers/s390/cio/ |
| D | crw.c | 26 * @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 >= NR_RSCS)) in crw_unregister_handler() 55 crw_handlers[rsc] = NULL; in crw_unregister_handler() 85 "chn=%d, rsc=%X, anc=%d, erc=%X, rsid=%X\n", in crw_collect_info() [all …]
|
| /kernel/linux/linux-5.10/drivers/s390/cio/ |
| D | crw.c | 27 * @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 …]
|
| /kernel/linux/linux-5.10/drivers/remoteproc/ |
| D | remoteproc_virtio.c | 75 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 …]
|
| D | remoteproc_core.c | 326 struct fw_rsc_vdev *rsc; in rproc_alloc_vring() local 334 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rproc_alloc_vring() 340 if (rproc_check_carveout_da(rproc, mem, rsc->vring[i].da, size)) in rproc_alloc_vring() 345 size, rsc->vring[i].da, in rproc_alloc_vring() 377 rsc->vring[i].notifyid = notifyid; in rproc_alloc_vring() 382 rproc_parse_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i) in rproc_parse_vring() argument 386 struct fw_rsc_vdev_vring *vring = &rsc->vring[i]; in rproc_parse_vring() 389 dev_dbg(dev, "vdev rsc: vring%d: da 0x%x, qsz %d, align %d\n", in rproc_parse_vring() 410 struct fw_rsc_vdev *rsc; in rproc_free_vring() local 426 rsc = (void *)rproc->table_ptr + rvring->rvdev->rsc_offset; in rproc_free_vring() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/soc/qcom/ |
| D | qcom,rpmh-rsc.yaml | 4 $id: http://devicetree.org/schemas/soc/qcom/qcom,rpmh-rsc.yaml# 7 title: Qualcomm RPMH RSC 20 (Resource State Coordinator a.k.a RSC) that can handle multiple sleep and 31 See also:: <dt-bindings/soc/qcom,rpmh-rsc.h> 42 Drivers that want to use the RSC to communicate with RPMH must specify their 43 bindings as child nodes of the RSC controllers they wish to communicate with. 47 const: qcom,rpmh-rsc 59 Name for the RSC. The name would be used in trace logs. 64 The ID of the DRV in the RSC block that will be used by this controller. 133 // For a TCS whose RSC base address is 0x179C0000 and is at a DRV id of [all …]
|
| /kernel/linux/linux-6.6/drivers/remoteproc/ |
| D | remoteproc_virtio.c | 113 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 [all …]
|
| D | remoteproc_core.c | 330 struct fw_rsc_vdev *rsc; in rproc_alloc_vring() local 338 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rproc_alloc_vring() 344 if (rproc_check_carveout_da(rproc, mem, rsc->vring[i].da, size)) in rproc_alloc_vring() 349 size, rsc->vring[i].da, in rproc_alloc_vring() 381 rsc->vring[i].notifyid = notifyid; in rproc_alloc_vring() 386 rproc_parse_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i) in rproc_parse_vring() argument 390 struct fw_rsc_vdev_vring *vring = &rsc->vring[i]; in rproc_parse_vring() 393 dev_dbg(dev, "vdev rsc: vring%d: da 0x%x, qsz %d, align %d\n", in rproc_parse_vring() 414 struct fw_rsc_vdev *rsc; in rproc_free_vring() local 430 rsc = (void *)rproc->table_ptr + rvring->rvdev->rsc_offset; in rproc_free_vring() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/qcom/ |
| D | rpmh-rsc.txt | 1 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| D | intel_lpe_audio.c | 84 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[1].end = pci_resource_start(dev->pdev, 0) + in lpe_audio_platdev_create() 106 rsc[1].flags = IORESOURCE_MEM; in lpe_audio_platdev_create() 107 rsc[1].name = "hdmi-lpe-audio-mmio"; in lpe_audio_platdev_create() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
| D | intel_lpe_audio.c | 87 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 = rsc[0].end = dev_priv->display.audio.lpe.irq; in lpe_audio_platdev_create() 102 rsc[0].flags = IORESOURCE_IRQ; in lpe_audio_platdev_create() 103 rsc[0].name = "hdmi-lpe-audio-irq"; in lpe_audio_platdev_create() 105 rsc[1].start = pci_resource_start(pdev, GEN4_GTTMMADR_BAR) + in lpe_audio_platdev_create() 107 rsc[1].end = pci_resource_start(pdev, GEN4_GTTMMADR_BAR) + in lpe_audio_platdev_create() 109 rsc[1].flags = IORESOURCE_MEM; in lpe_audio_platdev_create() 110 rsc[1].name = "hdmi-lpe-audio-mmio"; in lpe_audio_platdev_create() [all …]
|
| /kernel/linux/linux-6.6/arch/ia64/kernel/ |
| D | pal.S | 69 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 …]
|
| /kernel/linux/linux-5.10/arch/ia64/kernel/ |
| D | pal.S | 69 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/interconnect/ |
| D | qcom,bcm-voter.yaml | 15 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/qcom,rpmh-rsc.yaml 56 # as defined in Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
|