/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 41 static inline void pdacf_transfer_mono16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono16() argument 43 while (size-- > 0) { in pdacf_transfer_mono16() 49 static inline void pdacf_transfer_mono32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono32() argument 53 while (size-- > 0) { in pdacf_transfer_mono32() 61 static inline void pdacf_transfer_stereo16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo16() argument 63 while (size-- > 0) { in pdacf_transfer_stereo16() 69 static inline void pdacf_transfer_stereo32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo32() argument 73 while (size-- > 0) { in pdacf_transfer_stereo32() 82 static inline void pdacf_transfer_mono16sw(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_mono16sw() argument 84 while (size-- > 0) { in pdacf_transfer_mono16sw() [all …]
|
/sound/pci/ctxfi/ |
D | ctvmem.c | 30 get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc) in get_vm_block() argument 35 size = CT_PAGE_ALIGN(size); in get_vm_block() 36 if (size > vm->size) { in get_vm_block() 45 if (entry->size >= size) in get_vm_block() 51 if (entry->size == size) { in get_vm_block() 54 vm->size -= size; in get_vm_block() 64 block->size = size; in get_vm_block() 66 entry->addr += size; in get_vm_block() 67 entry->size -= size; in get_vm_block() 68 vm->size -= size; in get_vm_block() [all …]
|
/sound/soc/sof/ |
D | probe.c | 33 size_t size = struct_size(msg, dma, 1); in sof_ipc_probe_init() local 36 msg = kmalloc(size, GFP_KERNEL); in sof_ipc_probe_init() 39 msg->hdr.size = size; in sof_ipc_probe_init() 45 ret = sof_ipc_tx_message(sdev->ipc, msg->hdr.cmd, msg, msg->hdr.size, in sof_ipc_probe_init() 65 msg.size = sizeof(msg); in sof_ipc_probe_deinit() 68 return sof_ipc_tx_message(sdev->ipc, msg.cmd, &msg, msg.size, in sof_ipc_probe_deinit() 87 msg.rhdr.hdr.size = sizeof(msg); in sof_ipc_probe_info() 91 msg.rhdr.hdr.size, reply, SOF_IPC_MSG_MAX_SIZE); in sof_ipc_probe_info() 154 size_t size = struct_size(msg, dma, num_dma); in sof_ipc_probe_dma_add() local 157 msg = kmalloc(size, GFP_KERNEL); in sof_ipc_probe_dma_add() [all …]
|
D | loader.c | 28 if (memcmp(sdev->info_window, w, ext_hdr->hdr.size)) { in get_ext_windows() 36 sdev->info_window = devm_kmemdup(sdev->dev, w, ext_hdr->hdr.size, in get_ext_windows() 53 if (memcmp(sdev->cc_version, cc, cc->ext_hdr.hdr.size)) { in get_cc_info() 67 sdev->cc_version = devm_kmalloc(sdev->dev, cc->ext_hdr.hdr.size, in get_cc_info() 73 memcpy(sdev->cc_version, cc, cc->ext_hdr.hdr.size); in get_cc_info() 75 cc->ext_hdr.hdr.size, in get_cc_info() 108 ext_hdr->hdr.size - sizeof(*ext_hdr)); in snd_sof_fw_parse_ext_data() 111 ext_hdr->type, ext_hdr->hdr.size); in snd_sof_fw_parse_ext_data() 128 ext_hdr->type, ext_hdr->hdr.size); in snd_sof_fw_parse_ext_data() 140 offset += ext_hdr->hdr.size; in snd_sof_fw_parse_ext_data() [all …]
|
D | control.c | 48 static inline u32 mixer_to_ipc(unsigned int value, u32 *volume_map, int size) in mixer_to_ipc() argument 50 if (value >= size) in mixer_to_ipc() 51 return volume_map[size - 1]; in mixer_to_ipc() 56 static inline u32 ipc_to_mixer(u32 value, u32 *volume_map, int size) in ipc_to_mixer() argument 60 for (i = 0; i < size; i++) { in ipc_to_mixer() 245 size_t size; in snd_sof_bytes_get() local 255 if (data->size > be->max - sizeof(*data)) { in snd_sof_bytes_get() 258 data->size, be->max - sizeof(*data)); in snd_sof_bytes_get() 262 size = data->size + sizeof(*data); in snd_sof_bytes_get() 265 memcpy(ucontrol->value.bytes.data, data, size); in snd_sof_bytes_get() [all …]
|
D | debug.c | 260 hdr.size = sizeof(hdr); in sof_debug_ipc_flood_test() 269 ret = sof_ipc_tx_message(sdev->ipc, hdr.cmd, &hdr, hdr.size, in sof_debug_ipc_flood_test() 351 size_t size; in sof_dfsentry_write() local 359 size = simple_write_to_buffer(string, count, ppos, buffer, count); in sof_dfsentry_write() 360 ret = size; in sof_dfsentry_write() 391 ret = size; in sof_dfsentry_write() 400 ret = size; in sof_dfsentry_write() 431 ret = size; in sof_dfsentry_write() 446 int size; in sof_dfsentry_read() local 467 size = dfse->size; in sof_dfsentry_read() [all …]
|
D | topology.c | 81 pcm.hdr.size = sizeof(pcm); in ipc_pcm_params() 84 pcm.params.hdr.size = sizeof(pcm.params); in ipc_pcm_params() 127 stream.hdr.size = sizeof(stream); in ipc_trigger() 351 int tlv[TLV_ITEMS], int size) in set_up_volume_table() argument 356 scontrol->volume_table = kcalloc(size, sizeof(u32), GFP_KERNEL); in set_up_volume_table() 361 for (j = 0; j < size ; j++) in set_up_volume_table() 472 int (*get_token)(void *elem, void *object, u32 offset, u32 size); 474 u32 size; member 477 static int get_token_u32(void *elem, void *object, u32 offset, u32 size) in get_token_u32() argument 486 static int get_token_u16(void *elem, void *object, u32 offset, u32 size) in get_token_u16() argument [all …]
|
/sound/core/ |
D | pcm_memory.c | 55 size_t size, struct snd_dma_buffer *dmab) in do_alloc_pages() argument 62 card->total_pcm_alloc_bytes + size > max_alloc_per_card) { in do_alloc_pages() 66 __update_allocated_size(card, size); in do_alloc_pages() 69 err = snd_dma_alloc_pages(type, dev, size, dmab); in do_alloc_pages() 74 if (dmab->bytes != size) in do_alloc_pages() 75 update_allocated_size(card, dmab->bytes - size); in do_alloc_pages() 78 decrease_allocated_size(card, size); in do_alloc_pages() 99 size_t size, bool no_fallback) in preallocate_pcm_pages() argument 103 size_t orig_size = size; in preallocate_pcm_pages() 108 size, dmab); in preallocate_pcm_pages() [all …]
|
D | memalloc.c | 32 static void *__snd_dma_alloc_pages(struct snd_dma_buffer *dmab, size_t size) in __snd_dma_alloc_pages() argument 38 return ops->alloc(dmab, size); in __snd_dma_alloc_pages() 54 int snd_dma_alloc_pages(int type, struct device *device, size_t size, in snd_dma_alloc_pages() argument 57 if (WARN_ON(!size)) in snd_dma_alloc_pages() 62 size = PAGE_ALIGN(size); in snd_dma_alloc_pages() 68 dmab->area = __snd_dma_alloc_pages(dmab, size); in snd_dma_alloc_pages() 71 dmab->bytes = size; in snd_dma_alloc_pages() 91 int snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size, in snd_dma_alloc_pages_fallback() argument 96 while ((err = snd_dma_alloc_pages(type, device, size, dmab)) < 0) { in snd_dma_alloc_pages_fallback() 99 if (size <= PAGE_SIZE) in snd_dma_alloc_pages_fallback() [all …]
|
/sound/pci/asihpi/ |
D | hpimsginit.c | 30 u16 size; in hpi_init_message() local 34 size = msg_size[object]; in hpi_init_message() 36 size = sizeof(*phm); in hpi_init_message() 39 memset(phm, 0, size); in hpi_init_message() 40 phm->size = size; in hpi_init_message() 59 u16 size; in hpi_init_response() local 63 size = res_size[object]; in hpi_init_response() 65 size = sizeof(*phr); in hpi_init_response() 69 phr->size = size; in hpi_init_response() 88 static void hpi_init_messageV1(struct hpi_message_header *phm, u16 size, in hpi_init_messageV1() argument [all …]
|
D | hpios.c | 35 u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size, in hpios_locked_mem_alloc() argument 40 dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle, in hpios_locked_mem_alloc() 45 size, (unsigned int)p_mem_area->dma_handle, in hpios_locked_mem_alloc() 48 p_mem_area->size = size; in hpios_locked_mem_alloc() 52 "failed to allocate %d bytes locked memory\n", size); in hpios_locked_mem_alloc() 53 p_mem_area->size = 0; in hpios_locked_mem_alloc() 60 if (p_mem_area->size) { in hpios_locked_mem_free() 61 dma_free_coherent(p_mem_area->pdev, p_mem_area->size, in hpios_locked_mem_free() 64 (unsigned long)p_mem_area->size, in hpios_locked_mem_free() 67 p_mem_area->size = 0; in hpios_locked_mem_free()
|
D | hpioctl.c | 142 hm->h.size = msg_size; in asihpi_hpi_ioctl() 161 hr->h.size = sizeof(hr->h); in asihpi_hpi_ioctl() 164 uncopied_bytes = copy_to_user(puhr, hr, hr->h.size); in asihpi_hpi_ioctl() 172 hr->h.size = res_max_size; in asihpi_hpi_ioctl() 177 u32 size = 0; in asihpi_hpi_ioctl() local 210 size = hm->m0.u.d.u.data.data_size; in asihpi_hpi_ioctl() 216 if (pa->buffer_size < size) { in asihpi_hpi_ioctl() 221 pa->buffer_size, size); in asihpi_hpi_ioctl() 226 pa->p_buffer = vmalloc(size); in asihpi_hpi_ioctl() 228 pa->buffer_size = size; in asihpi_hpi_ioctl() [all …]
|
/sound/isa/gus/ |
D | gus_dram.c | 14 unsigned int address, unsigned int size) in snd_gus_dram_poke() argument 20 while (size > 0) { in snd_gus_dram_poke() 21 size1 = size > sizeof(buffer) ? sizeof(buffer) : size; in snd_gus_dram_poke() 37 size -= size1; in snd_gus_dram_poke() 45 unsigned int address, unsigned int size) in snd_gus_dram_write() argument 47 return snd_gus_dram_poke(gus, buffer, address, size); in snd_gus_dram_write() 51 unsigned int address, unsigned int size, in snd_gus_dram_peek() argument 58 while (size > 0) { in snd_gus_dram_peek() 59 size1 = size > sizeof(buffer) ? sizeof(buffer) : size; in snd_gus_dram_peek() 76 size -= size1; in snd_gus_dram_peek() [all …]
|
D | gus_mem.c | 123 unsigned int size, int w_16, int align) in snd_gf1_mem_find() argument 141 while (pblock->ptr >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find() 143 while (pblock->ptr + pblock->size >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find() 147 if (pblock->ptr + pblock->size == pblock->next->ptr) in snd_gf1_mem_find() 152 ptr1 = ALIGN(pblock->ptr + pblock->size, align); in snd_gf1_mem_find() 156 if ((int)size <= size1) { in snd_gf1_mem_find() 158 block->size = size; in snd_gf1_mem_find() 163 if (size <= info[idx].size) { in snd_gf1_mem_find() 166 block->size = size; in snd_gf1_mem_find() 174 char *name, int size, int w_16, int align, in snd_gf1_mem_alloc() argument [all …]
|
/sound/pci/emu10k1/ |
D | emu10k1_patch.c | 30 int truesize, size, blocksize; in snd_emu10k1_sample_new() local 40 if (sp->v.size == 0) { in snd_emu10k1_sample_new() 54 if (sampleend > sp->v.size) in snd_emu10k1_sample_new() 55 sampleend = sp->v.size; in snd_emu10k1_sample_new() 65 truesize = sp->v.size + BLANK_HEAD_SIZE; in snd_emu10k1_sample_new() 91 size = BLANK_HEAD_SIZE; in snd_emu10k1_sample_new() 93 size *= 2; in snd_emu10k1_sample_new() 94 if (offset + size > blocksize) in snd_emu10k1_sample_new() 96 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new() 97 offset += size; in snd_emu10k1_sample_new() [all …]
|
/sound/synth/ |
D | util_mem.c | 32 hdr->size = memsize; in snd_util_memhdr_new() 60 __snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size) in __snd_util_mem_alloc() argument 66 if (snd_BUG_ON(!hdr || size <= 0)) in __snd_util_mem_alloc() 70 units = size; in __snd_util_mem_alloc() 73 if (units > hdr->size) in __snd_util_mem_alloc() 82 prev_offset = blk->offset + blk->size; in __snd_util_mem_alloc() 84 if (hdr->size - prev_offset < units) in __snd_util_mem_alloc() 111 blk->offset = p->offset + p->size; in __snd_util_memblk_new() 113 blk->size = units; in __snd_util_memblk_new() 125 snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size) in snd_util_mem_alloc() argument [all …]
|
/sound/core/seq/ |
D | seq_memory.c | 80 int size = sizeof(buf); in snd_seq_dump_var_event() local 81 if (len < size) in snd_seq_dump_var_event() 82 size = len; in snd_seq_dump_var_event() 83 if (copy_from_user(buf, curptr, size)) in snd_seq_dump_var_event() 85 err = func(private_data, buf, size); in snd_seq_dump_var_event() 88 curptr += size; in snd_seq_dump_var_event() 89 len -= size; in snd_seq_dump_var_event() 98 int size = sizeof(struct snd_seq_event); in snd_seq_dump_var_event() local 99 if (len < size) in snd_seq_dump_var_event() 100 size = len; in snd_seq_dump_var_event() [all …]
|
/sound/soc/ |
D | soc-topology-test.c | 128 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_hdr)), 136 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_manifest)), 156 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_hdr)), 163 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_manifest)), 172 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_hdr)), 179 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_pcm)), 394 int size; in snd_soc_tplg_test_load_empty_tplg() local 403 size = sizeof(tplg_tmpl_empty); in snd_soc_tplg_test_load_empty_tplg() 404 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg() 410 kunit_comp->fw.size = size; in snd_soc_tplg_test_load_empty_tplg() [all …]
|
/sound/soc/intel/catpt/ |
D | loader.c | 48 u32 size; member 53 void catpt_sram_init(struct resource *sram, u32 start, u32 size) in catpt_sram_init() argument 56 sram->end = start + size - 1; in catpt_sram_init() 72 catpt_request_region(struct resource *root, resource_size_t size) in catpt_request_region() argument 78 if (res->start - addr >= size) in catpt_request_region() 86 return __request_region(root, addr, size, NULL, 0); in catpt_request_region() 94 u32 off, size; in catpt_store_streams_context() local 98 size = resource_size(stream->persistent); in catpt_store_streams_context() 100 stream->info.stream_hw_id, off, size); in catpt_store_streams_context() 105 ALIGN(size, 4)); in catpt_store_streams_context() [all …]
|
D | messages.c | 21 reply.size = sizeof(*version); in catpt_ipc_get_fw_version() 59 size_t size, arrsz; in catpt_ipc_alloc_stream() local 66 size = sizeof(input) + arrsz; in catpt_ipc_alloc_stream() 68 payload = kzalloc(size, GFP_KERNEL); in catpt_ipc_alloc_stream() 80 input.persistent_mem.size = resource_size(persistent); in catpt_ipc_alloc_stream() 83 input.scratch_mem.size = resource_size(scratch); in catpt_ipc_alloc_stream() 92 request.size = size; in catpt_ipc_alloc_stream() 94 reply.size = sizeof(*sinfo); in catpt_ipc_alloc_stream() 113 request.size = sizeof(stream_hw_id); in catpt_ipc_free_stream() 132 request.size = sizeof(*devfmt); in catpt_ipc_set_device_format() [all …]
|
/sound/oss/dmasound/ |
D | dmasound_paula.c | 74 static void *AmiAlloc(unsigned int size, gfp_t flags); 75 static void AmiFree(void *obj, unsigned int size); 319 static void *AmiAlloc(unsigned int size, gfp_t flags) in AmiAlloc() argument 321 return amiga_chip_alloc((long)size, "dmasound [Paula]"); in AmiAlloc() 324 static void AmiFree(void *obj, unsigned int size) in AmiFree() argument 387 int size; in AmiSetFormat() local 398 size = 8; in AmiSetFormat() 404 size = 16; in AmiSetFormat() 407 size = 8; in AmiSetFormat() 412 dmasound.soft.size = size; in AmiSetFormat() [all …]
|
/sound/usb/ |
D | helper.c | 16 unsigned int snd_usb_combine_bytes(unsigned char *bytes, int size) in snd_usb_combine_bytes() argument 18 switch (size) { in snd_usb_combine_bytes() 72 __u16 size) in snd_usb_ctl_msg() argument 81 if (size > 0) { in snd_usb_ctl_msg() 82 buf = kmemdup(data, size, GFP_KERNEL); in snd_usb_ctl_msg() 93 value, index, buf, size, timeout); in snd_usb_ctl_msg() 95 if (size > 0) { in snd_usb_ctl_msg() 96 memcpy(data, buf, size); in snd_usb_ctl_msg() 101 value, index, data, size); in snd_usb_ctl_msg()
|
/sound/firewire/motu/ |
D | motu-transaction.c | 16 size_t size) in snd_motu_transaction_read() argument 20 if (size % sizeof(__be32) > 0 || size <= 0) in snd_motu_transaction_read() 22 if (size == sizeof(__be32)) in snd_motu_transaction_read() 28 SND_MOTU_ADDR_BASE + offset, reg, size, 0); in snd_motu_transaction_read() 32 size_t size) in snd_motu_transaction_write() argument 36 if (size % sizeof(__be32) > 0 || size <= 0) in snd_motu_transaction_write() 38 if (size == sizeof(__be32)) in snd_motu_transaction_write() 44 SND_MOTU_ADDR_BASE + offset, reg, size, 0); in snd_motu_transaction_write()
|
/sound/soc/intel/skylake/ |
D | skl-sst-cldma.c | 79 __le32 **bdlp, int size, int with_ioc) in skl_cldma_setup_bdle() argument 84 while (size > 0) { in skl_cldma_setup_bdle() 93 size -= ctx->cl_dev.bufsize; in skl_cldma_setup_bdle() 94 bdl[3] = (size || !with_ioc) ? 0 : cpu_to_le32(0x01); in skl_cldma_setup_bdle() 130 unsigned int size, bool enable) in skl_cldma_setup_spb() argument 138 sst_dsp_shim_write_unlocked(ctx, SKL_ADSP_REG_CL_SPBFIFO_SPIB, size); in skl_cldma_setup_spb() 188 static void skl_cldma_fill_buffer(struct sst_dsp *ctx, unsigned int size, in skl_cldma_fill_buffer() argument 191 dev_dbg(ctx->dev, "Size: %x, intr_enable: %d\n", size, intr_enable); in skl_cldma_fill_buffer() 201 if (ctx->cl_dev.dma_buffer_offset + size > ctx->cl_dev.bufsize) { in skl_cldma_fill_buffer() 206 size -= size_b; in skl_cldma_fill_buffer() [all …]
|
/sound/pci/mixart/ |
D | mixart_core.c | 67 u32 size; in get_msg() local 76 …size = readl_be(MIXART_MEM(mgr, msg_frame_address)); /* size of descriptor +… in get_msg() 81 if( (size < MSG_DESCRIPTOR_SIZE) || (resp->size < (size - MSG_DESCRIPTOR_SIZE))) { in get_msg() 84 "problem with response size = %d\n", size); in get_msg() 87 size -= MSG_DESCRIPTOR_SIZE; in get_msg() 89 memcpy_fromio(resp->data, MIXART_MEM(mgr, msg_frame_address + MSG_HEADER_SIZE ), size); in get_msg() 90 resp->size = size; in get_msg() 94 size /= 4; /* u32 size */ in get_msg() 95 for(i=0; i < size; i++) { in get_msg() 139 if (snd_BUG_ON(msg->size % 4)) in send_msg() [all …]
|