/sound/drivers/ |
D | pcm-indirect2.c | 126 unsigned int bytes) in snd_pcm_indirect2_increase_min_periods() argument 130 rec->sw_io += bytes; in snd_pcm_indirect2_increase_min_periods() 182 if (bytes >= diff) in snd_pcm_indirect2_increase_min_periods() 185 rec->sw_io += bytes; in snd_pcm_indirect2_increase_min_periods() 192 rec->min_period_count += bytes; in snd_pcm_indirect2_increase_min_periods() 261 unsigned int bytes; in snd_pcm_indirect2_playback_transfer() local 282 bytes = zero(substream, rec); in snd_pcm_indirect2_playback_transfer() 285 rec->zeros2hw += bytes; in snd_pcm_indirect2_playback_transfer() 286 if (bytes < 64) in snd_pcm_indirect2_playback_transfer() 287 rec->zero_sizes[bytes]++; in snd_pcm_indirect2_playback_transfer() [all …]
|
D | aloop.c | 358 static void clear_capture_buf(struct loopback_pcm *dpcm, unsigned int bytes) in clear_capture_buf() argument 366 if (dpcm->silent_size + bytes > dpcm->pcm_buffer_size) in clear_capture_buf() 367 bytes = dpcm->pcm_buffer_size - dpcm->silent_size; in clear_capture_buf() 370 unsigned int size = bytes; in clear_capture_buf() 377 bytes -= size; in clear_capture_buf() 378 if (!bytes) in clear_capture_buf() 386 unsigned int bytes) in copy_play_buf() argument 406 if (diff < bytes) { in copy_play_buf() 407 clear_bytes = bytes - diff; in copy_play_buf() 408 bytes = diff; in copy_play_buf() [all …]
|
/sound/i2c/other/ |
D | pt2258.c | 34 unsigned char bytes[2]; in snd_pt2258_reset() local 38 bytes[0] = PT2258_CMD_RESET; in snd_pt2258_reset() 40 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset() 46 bytes[0] = PT2258_CMD_MUTE; in snd_pt2258_reset() 48 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset() 55 bytes[0] = 0xd0; in snd_pt2258_reset() 56 bytes[1] = 0xe0; in snd_pt2258_reset() 58 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset() 97 unsigned char bytes[2]; in pt2258_stereo_volume_put() local 108 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); in pt2258_stereo_volume_put() [all …]
|
/sound/i2c/ |
D | tea6330t.c | 98 unsigned char bytes[3]; in snd_tea6330t_put_master_volume() local 109 bytes[count++] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_volume() 110 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = tea->mleft; in snd_tea6330t_put_master_volume() 114 bytes[count++] = TEA6330T_SADDR_VOLUME_RIGHT; in snd_tea6330t_put_master_volume() 115 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] = tea->mright; in snd_tea6330t_put_master_volume() 118 if ((err = snd_i2c_sendbytes(tea->device, bytes, count)) < 0) in snd_tea6330t_put_master_volume() 149 unsigned char bytes[3]; in snd_tea6330t_put_master_switch() local 160 bytes[0] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_switch() 161 bytes[1] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT]; in snd_tea6330t_put_master_switch() 162 bytes[2] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT]; in snd_tea6330t_put_master_switch() [all …]
|
D | i2c.c | 22 unsigned char *bytes, int count); 24 unsigned char *bytes, int count); 132 int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) in snd_i2c_sendbytes() argument 134 return device->bus->ops->sendbytes(device, bytes, count); in snd_i2c_sendbytes() 139 int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) in snd_i2c_readbytes() argument 141 return device->bus->ops->readbytes(device, bytes, count); in snd_i2c_readbytes() 262 unsigned char *bytes, int count) in snd_i2c_bit_sendbytes() argument 276 err = snd_i2c_bit_sendbyte(bus, *bytes++); in snd_i2c_bit_sendbytes() 288 unsigned char *bytes, int count) in snd_i2c_bit_readbytes() argument 307 *bytes++ = (unsigned char)err; in snd_i2c_bit_readbytes()
|
/sound/soc/intel/common/ |
D | sst-dsp.c | 51 u32 *src, size_t bytes) in _sst_memcpy_toio_32() argument 53 int i, words = bytes >> 2; in _sst_memcpy_toio_32() 60 const volatile __iomem u32 *src, size_t bytes) in _sst_memcpy_fromio_32() argument 62 int i, words = bytes >> 2; in _sst_memcpy_fromio_32() 69 void __iomem *dest, void *src, size_t bytes) in sst_memcpy_toio_32() argument 71 _sst_memcpy_toio_32(dest, src, bytes); in sst_memcpy_toio_32() 76 void __iomem *src, size_t bytes) in sst_memcpy_fromio_32() argument 78 _sst_memcpy_fromio_32(dest, src, bytes); in sst_memcpy_fromio_32() 360 void sst_dsp_outbox_write(struct sst_dsp *sst, void *message, size_t bytes) in sst_dsp_outbox_write() argument 364 trace_sst_ipc_outbox_write(bytes); in sst_dsp_outbox_write() [all …]
|
D | sst-dsp.h | 247 void __iomem *dest, void *src, size_t bytes); 249 void *dest, void __iomem *src, size_t bytes); 273 void sst_dsp_inbox_write(struct sst_dsp *dsp, void *message, size_t bytes); 274 void sst_dsp_inbox_read(struct sst_dsp *dsp, void *message, size_t bytes); 275 void sst_dsp_outbox_write(struct sst_dsp *dsp, void *message, size_t bytes); 276 void sst_dsp_outbox_read(struct sst_dsp *dsp, void *message, size_t bytes); 277 void sst_dsp_mailbox_dump(struct sst_dsp *dsp, size_t bytes);
|
D | sst-dsp-priv.h | 44 size_t bytes); 46 size_t bytes); 320 u32 dest_offset, size_t bytes) in sst_dsp_write() argument 322 sst->ops->ram_write(sst, sst->addr.lpe + dest_offset, src, bytes); in sst_dsp_write() 326 u32 src_offset, size_t bytes) in sst_dsp_read() argument 328 sst->ops->ram_read(sst, dest, sst->addr.lpe + src_offset, bytes); in sst_dsp_read()
|
/sound/soc/intel/atom/sst/ |
D | sst_stream.c | 172 struct snd_sst_bytes_v2 *bytes) in sst_send_byte_stream_mrfld() argument 180 bytes->type, bytes->ipc_msg, bytes->block, bytes->task_id, in sst_send_byte_stream_mrfld() 181 bytes->pipe_id, bytes->len); in sst_send_byte_stream_mrfld() 187 sst_fill_header_mrfld(&msg->mrfld_header, bytes->ipc_msg, in sst_send_byte_stream_mrfld() 188 bytes->task_id, 1, pvt_id); in sst_send_byte_stream_mrfld() 189 msg->mrfld_header.p.header_high.part.res_rqd = bytes->block; in sst_send_byte_stream_mrfld() 190 length = bytes->len; in sst_send_byte_stream_mrfld() 193 memcpy(msg->mailbox_data, &bytes->bytes, bytes->len); in sst_send_byte_stream_mrfld() 194 if (bytes->block) { in sst_send_byte_stream_mrfld() 195 block = sst_create_block(sst_drv_ctx, bytes->ipc_msg, pvt_id); in sst_send_byte_stream_mrfld() [all …]
|
D | sst_drv_interface.c | 245 unsigned long bytes) in sst_cdev_ack() argument 258 stream->cumm_bytes += bytes; in sst_cdev_ack() 259 dev_dbg(dev, "bytes copied %d inc by %ld\n", stream->cumm_bytes, bytes); in sst_cdev_ack() 268 fw_tstamp.bytes_copied, bytes); in sst_cdev_ack() 644 struct snd_sst_bytes_v2 *bytes) in sst_send_byte_stream() argument 649 if (NULL == bytes) in sst_send_byte_stream() 657 ret_val = sst_send_byte_stream_mrfld(ctx, bytes); in sst_send_byte_stream()
|
/sound/pci/echoaudio/ |
D | midi.c | 60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) in write_midi() argument 62 if (snd_BUG_ON(bytes <= 0 || bytes >= MIDI_OUT_BUFFER_SIZE)) in write_midi() 72 chip->comm_page->midi_output[0] = bytes; in write_midi() 73 memcpy(&chip->comm_page->midi_output[1], data, bytes); in write_midi() 77 dev_dbg(chip->card->dev, "write_midi: %d\n", bytes); in write_midi() 78 return bytes; in write_midi() 206 int bytes, sent, time; in snd_echo_midi_output_write() local 211 sent = bytes = 0; in snd_echo_midi_output_write() 215 bytes = snd_rawmidi_transmit_peek(chip->midi_out, buf, in snd_echo_midi_output_write() 217 dev_dbg(chip->card->dev, "Try to send %d bytes...\n", bytes); in snd_echo_midi_output_write() [all …]
|
/sound/soc/uniphier/ |
D | aio-dma.c | 31 int bytes = runtime->period_size * in aiodma_pcm_irq() local 37 sub->threshold + bytes); in aiodma_pcm_irq() 39 sub->threshold += bytes; in aiodma_pcm_irq() 41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq() 51 int bytes = runtime->fragment_size; in aiodma_compr_irq() local 56 sub->threshold + bytes); in aiodma_compr_irq() 58 sub->threshold += bytes; in aiodma_compr_irq() 60 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in aiodma_compr_irq() 129 int bytes = runtime->period_size * in uniphier_aiodma_prepare() local 141 bytes); in uniphier_aiodma_prepare() [all …]
|
D | aio-compress.c | 182 int bytes = runtime->fragment_size; in uniphier_aio_compr_prepare() local 193 bytes); in uniphier_aio_compr_prepare() 221 int bytes = runtime->fragment_size, ret = 0; in uniphier_aio_compr_trigger() local 227 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_trigger() 253 int bytes = runtime->fragment_size; in uniphier_aio_compr_pointer() local 259 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_pointer() 328 int bytes = runtime->fragment_size; in uniphier_aio_compr_copy() local 359 sub->threshold = 2 * bytes; in uniphier_aio_compr_copy() 360 aiodma_rb_set_threshold(sub, sub->compr_bytes, 2 * bytes); in uniphier_aio_compr_copy() 371 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); in uniphier_aio_compr_copy()
|
/sound/firewire/tascam/ |
D | tascam-transaction.c | 257 int bytes; in handle_midi_tx() local 272 bytes = calculate_message_bytes(b[1]); in handle_midi_tx() 274 if (bytes <= 0) { in handle_midi_tx() 276 for (bytes = 1; bytes < 4; bytes++) { in handle_midi_tx() 277 if (b[bytes] == 0xf7) in handle_midi_tx() 280 if (bytes == 4) in handle_midi_tx() 281 bytes = 3; in handle_midi_tx() 286 snd_rawmidi_receive(substream, b + 1, bytes); in handle_midi_tx()
|
/sound/core/ |
D | memalloc.c | 49 PAGE_ALIGN(dmab->bytes) >> PAGE_SHIFT); in snd_free_dev_pages() 51 dma_free_coherent(dmab->dev.dev, dmab->bytes, dmab->area, dmab->addr); in snd_free_dev_pages() 91 gen_pool_free(pool, (unsigned long)dmab->area, dmab->bytes); in snd_free_dev_iram() 128 dmab->bytes = 0; in snd_dma_alloc_pages() 166 dmab->bytes = size; in snd_dma_alloc_pages() 216 free_pages_exact(dmab->area, dmab->bytes); in snd_dma_free_pages()
|
D | pcm_memory.c | 51 dmab->bytes = 0; /* tell error */ in preallocate_pcm_pages() 108 snd_iprintf(buffer, "%lu\n", (unsigned long) substream->dma_buffer.bytes / 1024); in snd_pcm_lib_preallocate_proc_read() 147 if (substream->dma_buffer.bytes == size) in snd_pcm_lib_preallocate_proc_write() 203 if (substream->dma_buffer.bytes > 0) in snd_pcm_lib_preallocate_pages1() 204 substream->buffer_bytes_max = substream->dma_buffer.bytes; in snd_pcm_lib_preallocate_pages1() 303 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages() 310 substream->dma_buffer.bytes >= size) { in snd_pcm_lib_malloc_pages()
|
/sound/usb/ |
D | helper.c | 16 unsigned int snd_usb_combine_bytes(unsigned char *bytes, int size) in snd_usb_combine_bytes() argument 19 case 1: return *bytes; in snd_usb_combine_bytes() 20 case 2: return combine_word(bytes); in snd_usb_combine_bytes() 21 case 3: return combine_triple(bytes); in snd_usb_combine_bytes() 22 case 4: return combine_quad(bytes); in snd_usb_combine_bytes()
|
D | pcm.c | 1515 unsigned int stride, frames, bytes, oldptr; in retire_capture_urb() local 1533 bytes = urb->iso_frame_desc[i].actual_length; in retire_capture_urb() 1534 frames = bytes / stride; in retire_capture_urb() 1536 bytes = frames * stride; in retire_capture_urb() 1537 if (bytes % (runtime->sample_bits >> 3) != 0) { in retire_capture_urb() 1538 int oldbytes = bytes; in retire_capture_urb() 1539 bytes = frames * stride; in retire_capture_urb() 1542 oldbytes, bytes); in retire_capture_urb() 1547 subs->hwptr_done += bytes; in retire_capture_urb() 1550 frames = (bytes + (oldptr % stride)) / stride; in retire_capture_urb() [all …]
|
/sound/soc/sof/ |
D | utils.c | 53 void *message, size_t bytes) in sof_mailbox_write() argument 57 memcpy_toio(dest, message, bytes); in sof_mailbox_write() 62 void *message, size_t bytes) in sof_mailbox_read() argument 66 memcpy_fromio(message, src, bytes); in sof_mailbox_read()
|
/sound/core/oss/ |
D | pcm_oss.c | 589 long bytes = frames_to_bytes(runtime, frames); in snd_pcm_oss_bytes() local 591 return bytes; in snd_pcm_oss_bytes() 593 return runtime->oss.buffer_bytes * bytes / buffer_size; in snd_pcm_oss_bytes() 596 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; in snd_pcm_oss_bytes() 602 static long snd_pcm_alsa_frames(struct snd_pcm_substream *substream, long bytes) in snd_pcm_alsa_frames() argument 607 return bytes_to_frames(runtime, bytes); in snd_pcm_alsa_frames() 608 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames() 1335 …d_pcm_oss_write2(struct snd_pcm_substream *substream, const char *buf, size_t bytes, int in_kernel) in snd_pcm_oss_write2() argument 1344 if (copy_from_user(runtime->oss.buffer, (const char __force __user *)buf, bytes)) in snd_pcm_oss_write2() 1348 frames = bytes / oss_frame_bytes; in snd_pcm_oss_write2() [all …]
|
/sound/firewire/ |
D | iso-resources.c | 50 unsigned int bytes, s400_bytes; in packet_bandwidth() local 53 bytes = 3 * 4 + ALIGN(max_payload_bytes, 4); in packet_bandwidth() 57 s400_bytes = bytes * (1 << (SCODE_400 - speed)); in packet_bandwidth() 59 s400_bytes = DIV_ROUND_UP(bytes, 1 << (speed - SCODE_400)); in packet_bandwidth()
|
/sound/hda/ |
D | hdac_regmap.c | 284 int i, bytes, err; in hda_reg_write() local 330 bytes = 2; in hda_reg_write() 333 bytes = 4; in hda_reg_write() 336 bytes = 1; in hda_reg_write() 340 for (i = 0; i < bytes; i++) { in hda_reg_write()
|
/sound/core/seq/ |
D | seq_midi_event.c | 434 unsigned char bytes[4]; in extra_decode_xrpn() local 442 bytes[0] = (ev->data.control.param & 0x3f80) >> 7; in extra_decode_xrpn() 443 bytes[1] = ev->data.control.param & 0x007f; in extra_decode_xrpn() 444 bytes[2] = (ev->data.control.value & 0x3f80) >> 7; in extra_decode_xrpn() 445 bytes[3] = ev->data.control.value & 0x007f; in extra_decode_xrpn() 456 buf[idx++] = bytes[i]; in extra_decode_xrpn()
|
/sound/arm/ |
D | aaci.c | 226 if (aacirun->bytes <= 0) { in aaci_fifo_irq() 227 aacirun->bytes += aacirun->period; in aaci_fifo_irq() 239 aacirun->bytes -= len; in aaci_fifo_irq() 286 if (aacirun->bytes <= 0) { in aaci_fifo_irq() 287 aacirun->bytes += aacirun->period; in aaci_fifo_irq() 299 aacirun->bytes -= len; in aaci_fifo_irq() 552 aacirun->bytes = aacirun->period; in aaci_pcm_prepare() 561 ssize_t bytes = aacirun->ptr - aacirun->start; in aaci_pcm_pointer() local 563 return bytes_to_frames(runtime, bytes); in aaci_pcm_pointer()
|
/sound/soc/ |
D | soc-generic-dmaengine-pcm.c | 336 void __user *buf, unsigned long bytes) in dmaengine_copy_user() argument 345 void *buf, unsigned long bytes) = pcm->config->process; in dmaengine_copy_user() 352 if (copy_from_user(dma_ptr, buf, bytes)) in dmaengine_copy_user() 356 ret = process(substream, channel, hwoff, (__force void *)buf, bytes); in dmaengine_copy_user() 362 if (copy_to_user(buf, dma_ptr, bytes)) in dmaengine_copy_user()
|