/openbmc/linux/drivers/s390/cio/ |
H A D | device_id.c | 102 struct senseid *senseid = &cdev->private->dma_area->senseid; in diag210_get_dev_info() 138 memset(&cdev->private->dma_area->senseid, 0, in snsid_init() 139 sizeof(cdev->private->dma_area->senseid)); in snsid_init() 140 cdev->private->dma_area->senseid.cu_type = 0xffff; in snsid_init() 148 struct cmd_scsw *scsw = &cdev->private->dma_area->irb.scsw.cmd; in snsid_check() 154 if (cdev->private->dma_area->senseid.cu_type == 0xffff) in snsid_check() 157 if (cdev->private->dma_area->senseid.reserved != 0xff) in snsid_check() 175 struct senseid *senseid = &cdev->private->dma_area->senseid; in snsid_callback() 205 struct ccw1 *cp = cdev->private->dma_area->iccws; in ccw_device_sense_id_start() 213 cp->cda = (u32)virt_to_phys(&cdev->private->dma_area->senseid); in ccw_device_sense_id_start()
|
H A D | device_status.c | 83 cdev->private->dma_area->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw() 86 cdev->private->dma_area->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw() 88 if (!cdev->private->dma_area->irb.scsw.cmd.ectl) in ccw_device_accumulate_ecw() 91 memcpy(&cdev->private->dma_area->irb.ecw, irb->ecw, sizeof(irb->ecw)); in ccw_device_accumulate_ecw() 122 cdev_irb = &cdev->private->dma_area->irb; in ccw_device_accumulate_esw() 214 memcpy(&cdev->private->dma_area->irb, irb, sizeof(struct irb)); in ccw_device_accumulate_irb() 223 cdev_irb = &cdev->private->dma_area->irb; in ccw_device_accumulate_irb() 231 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_accumulate_irb() 333 sense_ccw = &to_io_private(sch)->dma_area->sense_ccw; in ccw_device_do_sense() 335 sense_ccw->cda = virt_to_phys(cdev->private->dma_area->irb.ecw); in ccw_device_do_sense() [all …]
|
H A D | device_fsm.c | 72 &private->dma_area->sense_ccw || in ccw_timeout_log() 74 cdev->private->dma_area->iccws) in ccw_timeout_log() 143 cdev->id.cu_type = cdev->private->dma_area->senseid.cu_type; in ccw_device_update_sense_data() 144 cdev->id.cu_model = cdev->private->dma_area->senseid.cu_model; in ccw_device_update_sense_data() 145 cdev->id.dev_type = cdev->private->dma_area->senseid.dev_type; in ccw_device_update_sense_data() 146 cdev->id.dev_model = cdev->private->dma_area->senseid.dev_model; in ccw_device_update_sense_data() 152 cdev->private->dma_area->senseid.cu_type && in ccw_device_test_sense_data() 154 cdev->private->dma_area->senseid.cu_model && in ccw_device_test_sense_data() 156 cdev->private->dma_area->senseid.dev_type && in ccw_device_test_sense_data() 158 cdev->private->dma_area->senseid.dev_model; in ccw_device_test_sense_data() [all …]
|
H A D | device_pgid.c | 61 struct ccw1 *cp = cdev->private->dma_area->iccws; in nop_build_cp() 138 struct ccw1 *cp = cdev->private->dma_area->iccws; in spid_build_cp() 140 struct pgid *pgid = &cdev->private->dma_area->pgid[i]; in spid_build_cp() 304 struct pgid *pgid = &cdev->private->dma_area->pgid[0]; in pgid_analyze() 346 pgid = &cdev->private->dma_area->pgid[i]; in pgid_to_donepm() 372 memcpy(&cdev->private->dma_area->pgid[i], pgid, in pgid_fill() 440 struct ccw1 *cp = cdev->private->dma_area->iccws; in snid_build_cp() 445 cp->cda = (u32)virt_to_phys(&cdev->private->dma_area->pgid[i]); in snid_build_cp() 521 memset(cdev->private->dma_area->pgid, 0, in verify_start() 522 sizeof(cdev->private->dma_area->pgid)); in verify_start() [all …]
|
H A D | ccwreq.c | 66 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccwreq_stop() 89 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccwreq_do() 172 struct irb *irb = &cdev->private->dma_area->irb; in ccwreq_status() 190 CIO_HEX_EVENT(2, &cdev->private->dma_area->irb.ecw, in ccwreq_status()
|
H A D | device.c | 677 cio_gp_dma_free(cdev->private->dma_pool, cdev->private->dma_area, in ccw_device_release() 678 sizeof(*cdev->private->dma_area)); in ccw_device_release() 715 cdev->private->dma_area = cio_gp_dma_zalloc(dma_pool, &cdev->dev, in io_subchannel_allocate_dev() 716 sizeof(*cdev->private->dma_area)); in io_subchannel_allocate_dev() 717 if (!cdev->private->dma_area) { in io_subchannel_allocate_dev() 1070 io_priv->dma_area = dma_alloc_coherent(&sch->dev, in io_subchannel_probe() 1071 sizeof(*io_priv->dma_area), in io_subchannel_probe() 1073 if (!io_priv->dma_area) { in io_subchannel_probe() 1104 dma_free_coherent(&sch->dev, sizeof(*io_priv->dma_area), in io_subchannel_remove() 1105 io_priv->dma_area, io_priv->dma_area_dma); in io_subchannel_remove() [all …]
|
H A D | io_sch.h | 24 struct io_subchannel_dma_area *dma_area; member 180 struct ccw_device_dma_area *dma_area; member
|
/openbmc/linux/sound/soc/au1x/ |
H A D | dbdma2.c | 49 dma_addr_t dma_area; /* address of queued DMA area */ member 80 au1xxx_dbdma_put_source(cd->ddma_chan, cd->dma_area, in au1x_pcm_queue_tx() 85 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx() 88 cd->dma_area = cd->dma_area_s; in au1x_pcm_queue_tx() 94 au1xxx_dbdma_put_dest(cd->ddma_chan, cd->dma_area, in au1x_pcm_queue_rx() 99 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_rx() 102 cd->dma_area = cd->dma_area_s; in au1x_pcm_queue_rx() 205 (unsigned long)runtime->dma_area, in au1xpsc_pcm_hw_params() 221 pcd->dma_area_s = pcd->dma_area = runtime->dma_addr; in au1xpsc_pcm_hw_params()
|
/openbmc/linux/sound/soc/bcm/ |
H A D | bcm63xx-pcm-whistler.c | 19 unsigned char *dma_area; member 154 dma_desc->dma_area = runtime->dma_area; in bcm63xx_pcm_prepare() 272 dma_desc->dma_area += in i2s_dma_isr() 277 dma_desc->dma_area = runtime->dma_area; in i2s_dma_isr() 321 dma_desc->dma_area += in i2s_dma_isr() 327 dma_desc->dma_area = runtime->dma_area; in i2s_dma_isr()
|
/openbmc/linux/sound/core/ |
H A D | pcm_memory.c | 493 if (runtime->dma_area == NULL) in snd_pcm_lib_free_pages() 515 if (runtime->dma_area) { in _snd_pcm_lib_alloc_vmalloc_buffer() 518 vfree(runtime->dma_area); in _snd_pcm_lib_alloc_vmalloc_buffer() 520 runtime->dma_area = __vmalloc(size, gfp_flags); in _snd_pcm_lib_alloc_vmalloc_buffer() 521 if (!runtime->dma_area) in _snd_pcm_lib_alloc_vmalloc_buffer() 542 vfree(runtime->dma_area); in snd_pcm_lib_free_vmalloc_buffer() 543 runtime->dma_area = NULL; in snd_pcm_lib_free_vmalloc_buffer() 561 return vmalloc_to_page(substream->runtime->dma_area + offset); in snd_pcm_lib_get_vmalloc_page()
|
/openbmc/linux/drivers/s390/virtio/ |
H A D | virtio_ccw.c | 74 struct vcdev_dma_area *dma_area; member 79 return &vcdev->dma_area->indicators; in indicators() 84 return &vcdev->dma_area->indicators2; in indicators2() 425 vcdev->dma_area->config_block.index = index; in virtio_ccw_read_vq_conf() 429 ccw->cda = (__u32)virt_to_phys(&vcdev->dma_area->config_block); in virtio_ccw_read_vq_conf() 433 return vcdev->dma_area->config_block.num ?: -ENOENT; in virtio_ccw_read_vq_conf() 746 vcdev->dma_area->status = 0; in virtio_ccw_reset() 953 u8 old_status = vcdev->dma_area->status; in virtio_ccw_get_status() 957 return vcdev->dma_area->status; in virtio_ccw_get_status() 965 ccw->count = sizeof(vcdev->dma_area->status); in virtio_ccw_get_status() [all …]
|
/openbmc/linux/sound/firewire/fireface/ |
H A D | amdtp-ff.c | 45 src = (void *)runtime->dma_area + in write_pcm_s32() 56 src = (void *)runtime->dma_area; in write_pcm_s32() 75 dst = (void *)runtime->dma_area + in read_pcm_s32() 86 dst = (void *)runtime->dma_area; in read_pcm_s32()
|
/openbmc/linux/sound/drivers/ |
H A D | pcmtest.c | 178 current_byte = runtime->dma_area[v_iter->buf_pos]; in check_buf_block_i() 204 current_byte = runtime->dma_area[buf_pos_n(v_iter, channels, ch_num)]; in check_buf_block_ni() 246 runtime->dma_area[buf_pos_n(v_iter, channels, ch_num)] = in fill_block_pattern_n() 267 runtime->dma_area[v_iter->buf_pos] = patt_bufs[ch].buf[pos_pattern]; in fill_block_pattern_i() 292 get_random_bytes(runtime->dma_area + buf_pos_n(v_iter, channels, i), in fill_block_rand_n() 296 get_random_bytes(runtime->dma_area + buf_pos_n(v_iter, channels, i), in fill_block_rand_n() 298 get_random_bytes(runtime->dma_area + v_iter->chan_block * i, in fill_block_rand_n() 310 get_random_bytes(&runtime->dma_area[v_iter->buf_pos], v_iter->b_rw); in fill_block_rand_i() 312 get_random_bytes(&runtime->dma_area[v_iter->buf_pos], in_cur_block); in fill_block_rand_i() 313 get_random_bytes(runtime->dma_area, v_iter->b_rw - in_cur_block); in fill_block_rand_i()
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-alsa-pcm.c | 95 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data() 104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data() 109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
|
/openbmc/linux/include/sound/ |
H A D | compress_driver.h | 53 unsigned char *dma_area; member 228 runtime->dma_area = bufp->area; in snd_compr_set_runtime_buffer() 233 runtime->dma_area = NULL; in snd_compr_set_runtime_buffer()
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-alsa-pcm.c | 92 if (runtime->dma_area == NULL) { in ivtv_alsa_announce_pcm_data() 101 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() 103 memcpy(runtime->dma_area, pcm_data + cnt * stride, in ivtv_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data()
|
/openbmc/linux/drivers/media/pci/cobalt/ |
H A D | cobalt-alsa-pcm.c | 137 if (runtime->dma_area == NULL) { in cobalt_alsa_announce_pcm_data() 148 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data() 152 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data() 158 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data() 336 if (runtime->dma_area == NULL) { in cobalt_alsa_pb_pcm_data() 344 runtime->dma_area + pos + i * stride, in cobalt_alsa_pb_pcm_data()
|
/openbmc/linux/sound/soc/sof/ |
H A D | compress.c | 80 unsigned char *dma_area, size_t size) in create_page_table() argument 208 ret = create_page_table(component, cstream, crtd->dma_area, crtd->dma_bytes); in sof_compr_set_params() 313 ptr = rtd->dma_area + offset; in sof_compr_copy_playback() 320 ret += copy_from_user(rtd->dma_area, buf + n, count - n); in sof_compr_copy_playback() 334 ptr = rtd->dma_area + offset; in sof_compr_copy_capture() 341 ret += copy_to_user(buf + n, rtd->dma_area, count - n); in sof_compr_copy_capture()
|
/openbmc/linux/drivers/media/pci/cx23885/ |
H A D | cx23885-alsa.c | 365 if (substream->runtime->dma_area) { in snd_cx23885_hw_params() 367 substream->runtime->dma_area = NULL; in snd_cx23885_hw_params() 403 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx23885_hw_params() 423 if (substream->runtime->dma_area) { in snd_cx23885_hw_free() 425 substream->runtime->dma_area = NULL; in snd_cx23885_hw_free() 489 void *pageptr = substream->runtime->dma_area + offset; in snd_cx23885_page()
|
/openbmc/linux/sound/firewire/tascam/ |
H A D | amdtp-tascam.c | 50 src = (void *)runtime->dma_area + in write_pcm_s32() 61 src = (void *)runtime->dma_area; in write_pcm_s32() 80 dst = (void *)runtime->dma_area + in read_pcm_s32() 94 dst = (void *)runtime->dma_area; in read_pcm_s32()
|
/openbmc/linux/sound/firewire/digi00x/ |
H A D | amdtp-dot.c | 160 src = (void *)runtime->dma_area + in write_pcm_s32() 173 src = (void *)runtime->dma_area; in write_pcm_s32() 192 dst = (void *)runtime->dma_area + in read_pcm_s32() 204 dst = (void *)runtime->dma_area; in read_pcm_s32()
|
/openbmc/linux/sound/firewire/ |
H A D | amdtp-am824.c | 163 src = (void *)runtime->dma_area + in write_pcm_s32() 175 src = (void *)runtime->dma_area; in write_pcm_s32() 194 dst = (void *)runtime->dma_area + in read_pcm_s32() 205 dst = (void *)runtime->dma_area; in read_pcm_s32()
|
/openbmc/linux/sound/soc/mediatek/common/ |
H A D | mtk-afe-fe-dai.c | 139 substream->runtime->dma_area, in mtk_afe_fe_hw_params() 142 memset_io((void __force __iomem *)substream->runtime->dma_area, 0, in mtk_afe_fe_hw_params() 147 substream->runtime->dma_area, in mtk_afe_fe_hw_params() 402 unsigned char *dma_area, in mtk_memif_set_addr() argument 411 memif->dma_area = dma_area; in mtk_memif_set_addr()
|
/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-audio.c | 131 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq() 133 memcpy(runtime->dma_area, cp + cnt * stride, in cx231xx_audio_isocirq() 136 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq() 218 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_bulkirq() 220 memcpy(runtime->dma_area, cp + cnt * stride, in cx231xx_audio_bulkirq() 223 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_bulkirq()
|
/openbmc/linux/drivers/media/pci/cx25821/ |
H A D | cx25821-alsa.c | 503 if (substream->runtime->dma_area) { in snd_cx25821_hw_params() 505 substream->runtime->dma_area = NULL; in snd_cx25821_hw_params() 546 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx25821_hw_params() 565 if (substream->runtime->dma_area) { in snd_cx25821_hw_free() 567 substream->runtime->dma_area = NULL; in snd_cx25821_hw_free() 631 void *pageptr = substream->runtime->dma_area + offset; in snd_cx25821_page()
|