/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
H A 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 *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 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 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 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 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 D | ctresource.h | 31 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...] |
H A 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,
|
H A 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);
|
H A D | ctdaio.h | 43 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);
|
/kernel/linux/linux-6.6/sound/pci/ctxfi/ |
H A 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 *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 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 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 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 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 D | ctresource.h | 31 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...] |
H A 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,
|
H A 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);
|
H A D | ctdaio.h | 43 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);
|
/kernel/linux/linux-6.6/drivers/remoteproc/ |
H A 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 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...] |
H A 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 in rproc_free_vring() 478 struct fw_rsc_vdev *rsc = ptr; rproc_handle_vdev() local 548 struct fw_rsc_trace *rsc = ptr; rproc_handle_trace() local 622 struct fw_rsc_devmem *rsc = ptr; rproc_handle_devmem() local 826 struct fw_rsc_carveout *rsc = ptr; rproc_handle_carveout() local 1033 void *rsc = (void *)hdr + sizeof(*hdr); rproc_handle_resources() local 1156 struct fw_rsc_carveout *rsc; rproc_alloc_registered_carveouts() local [all...] |
/kernel/linux/linux-5.10/drivers/s390/cio/ |
H A 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 > in crw_unregister_handler() [all...] |
/kernel/linux/linux-6.6/drivers/s390/cio/ |
H A 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 > in crw_unregister_handler() [all...] |
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A 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 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...] |
H A 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 in rproc_free_vring() 510 rproc_handle_vdev(struct rproc *rproc, struct fw_rsc_vdev *rsc, int offset, int avail) rproc_handle_vdev() argument 646 rproc_handle_trace(struct rproc *rproc, struct fw_rsc_trace *rsc, int offset, int avail) rproc_handle_trace() argument 721 rproc_handle_devmem(struct rproc *rproc, struct fw_rsc_devmem *rsc, int offset, int avail) rproc_handle_devmem() argument 917 rproc_handle_carveout(struct rproc *rproc, struct fw_rsc_carveout *rsc, int offset, int avail) rproc_handle_carveout() argument 1123 void *rsc = (void *)hdr + sizeof(*hdr); rproc_handle_resources() local 1246 struct fw_rsc_carveout *rsc; rproc_alloc_registered_carveouts() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A 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[ in lpe_audio_platdev_create() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A 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[ in lpe_audio_platdev_create() [all...] |
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A 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 [all...] |
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A 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 [all...] |
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
H A D | cmd-db.c | 244 const struct rsc_hdr *rsc; in cmd_db_debugfs_dump() local 253 rsc = &cmd_db_header->header[i]; in cmd_db_debugfs_dump() 254 if (!rsc->slv_id) in cmd_db_debugfs_dump() 257 switch (le16_to_cpu(rsc->slv_id)) { in cmd_db_debugfs_dump() 272 version = le16_to_cpu(rsc->version); in cmd_db_debugfs_dump() 279 ent = rsc_to_entry_header(rsc); in cmd_db_debugfs_dump() 280 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) { in cmd_db_debugfs_dump() 287 len, rsc_offset(rsc, ent)); in cmd_db_debugfs_dump()
|