/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 54 static inline void pdacf_transfer_mono16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono16() argument 56 while (size-- > 0) { in pdacf_transfer_mono16() 62 static inline void pdacf_transfer_mono32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_po… in pdacf_transfer_mono32() argument 66 while (size-- > 0) { in pdacf_transfer_mono32() 74 static inline void pdacf_transfer_stereo16(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo16() argument 76 while (size-- > 0) { in pdacf_transfer_stereo16() 82 static inline void pdacf_transfer_stereo32(u32 *dst, u32 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_stereo32() argument 86 while (size-- > 0) { in pdacf_transfer_stereo32() 95 static inline void pdacf_transfer_mono16sw(u16 *dst, u16 xor, unsigned int size, unsigned long rdp_… in pdacf_transfer_mono16sw() argument 97 while (size-- > 0) { in pdacf_transfer_mono16sw() [all …]
|
/sound/pci/ctxfi/ |
D | ctvmem.c | 33 get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc) in get_vm_block() argument 38 size = CT_PAGE_ALIGN(size); in get_vm_block() 39 if (size > vm->size) { in get_vm_block() 48 if (entry->size >= size) in get_vm_block() 54 if (entry->size == size) { in get_vm_block() 57 vm->size -= size; in get_vm_block() 67 block->size = size; in get_vm_block() 69 entry->addr += size; in get_vm_block() 70 entry->size -= size; in get_vm_block() 71 vm->size -= size; in get_vm_block() [all …]
|
/sound/core/ |
D | memalloc.c | 45 void *snd_malloc_pages(size_t size, gfp_t gfp_flags) in snd_malloc_pages() argument 49 if (WARN_ON(!size)) in snd_malloc_pages() 54 pg = get_order(size); in snd_malloc_pages() 66 void snd_free_pages(void *ptr, size_t size) in snd_free_pages() argument 72 pg = get_order(size); in snd_free_pages() 85 static void *snd_malloc_dev_pages(struct device *dev, size_t size, dma_addr_t *dma) in snd_malloc_dev_pages() argument 92 pg = get_order(size); in snd_malloc_dev_pages() 101 static void snd_free_dev_pages(struct device *dev, size_t size, void *ptr, in snd_free_dev_pages() argument 108 pg = get_order(size); in snd_free_dev_pages() 120 static void snd_malloc_dev_iram(struct snd_dma_buffer *dmab, size_t size) in snd_malloc_dev_iram() argument [all …]
|
D | pcm_memory.c | 51 static int preallocate_pcm_pages(struct snd_pcm_substream *substream, size_t size) in preallocate_pcm_pages() argument 54 size_t orig_size = size; in preallocate_pcm_pages() 59 size, dmab)) < 0) { in preallocate_pcm_pages() 64 size >>= 1; in preallocate_pcm_pages() 65 } while (size >= snd_minimum_buffer); in preallocate_pcm_pages() 160 size_t size; in snd_pcm_lib_preallocate_proc_write() local 169 size = simple_strtoul(str, NULL, 10) * 1024; in snd_pcm_lib_preallocate_proc_write() 170 if ((size != 0 && size < 8192) || size > substream->dma_max) { in snd_pcm_lib_preallocate_proc_write() 174 if (substream->dma_buffer.bytes == size) in snd_pcm_lib_preallocate_proc_write() 178 if (size > 0) { in snd_pcm_lib_preallocate_proc_write() [all …]
|
D | isadma.c | 43 unsigned long addr, unsigned int size, in snd_dma_program() argument 53 set_dma_count(dma, size); in snd_dma_program() 84 unsigned int snd_dma_pointer(unsigned long dma, unsigned int size) in snd_dma_pointer() argument 106 if (result > size) in snd_dma_pointer() 107 …err("ALSA: pointer (0x%x) for DMA #%ld is greater than transfer size (0x%x)\n", result, dma, size); in snd_dma_pointer() 109 if (result >= size || result == 0) in snd_dma_pointer() 112 return size - result; in snd_dma_pointer()
|
D | info.c | 124 loff_t ret = -EINVAL, size; in snd_info_entry_llseek() local 136 size = entry->size; in snd_info_entry_llseek() 144 if (!size) in snd_info_entry_llseek() 146 offset += size; in snd_info_entry_llseek() 153 if (size && offset > size) in snd_info_entry_llseek() 154 offset = size; in snd_info_entry_llseek() 167 size_t size; in snd_info_entry_read() local 173 if (pos >= entry->size) in snd_info_entry_read() 175 size = entry->size - pos; in snd_info_entry_read() 176 size = min(count, size); in snd_info_entry_read() [all …]
|
D | sgbuf.c | 67 size_t size, struct snd_dma_buffer *dmab, in snd_malloc_sgbuf_pages() argument 82 pages = snd_sgbuf_aligned_pages(size); in snd_malloc_sgbuf_pages() 107 size = sgbuf->pages * PAGE_SIZE; in snd_malloc_sgbuf_pages() 127 sgbuf->size = size; in snd_malloc_sgbuf_pages() 132 *res_size = sgbuf->size; in snd_malloc_sgbuf_pages() 144 unsigned int ofs, unsigned int size) in snd_sgbuf_get_chunk_size() argument 150 end = (ofs + size - 1) >> PAGE_SHIFT; in snd_sgbuf_get_chunk_size() 162 return size; in snd_sgbuf_get_chunk_size()
|
/sound/pci/asihpi/ |
D | hpimsginit.c | 41 u16 size; in hpi_init_message() local 45 size = msg_size[object]; in hpi_init_message() 47 size = sizeof(*phm); in hpi_init_message() 50 memset(phm, 0, size); in hpi_init_message() 51 phm->size = size; in hpi_init_message() 70 u16 size; in hpi_init_response() local 74 size = res_size[object]; in hpi_init_response() 76 size = sizeof(*phr); in hpi_init_response() 80 phr->size = size; in hpi_init_response() 99 static void hpi_init_messageV1(struct hpi_message_header *phm, u16 size, in hpi_init_messageV1() argument [all …]
|
D | hpios.c | 46 u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size, in hpios_locked_mem_alloc() argument 51 dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle, in hpios_locked_mem_alloc() 56 size, (unsigned int)p_mem_area->dma_handle, in hpios_locked_mem_alloc() 59 p_mem_area->size = size; in hpios_locked_mem_alloc() 63 "failed to allocate %d bytes locked memory\n", size); in hpios_locked_mem_alloc() 64 p_mem_area->size = 0; in hpios_locked_mem_alloc() 71 if (p_mem_area->size) { in hpios_locked_mem_free() 72 dma_free_coherent(p_mem_area->pdev, p_mem_area->size, in hpios_locked_mem_free() 75 (unsigned long)p_mem_area->size, in hpios_locked_mem_free() 78 p_mem_area->size = 0; in hpios_locked_mem_free()
|
D | hpioctl.c | 149 hm->h.size = msg_size; in asihpi_hpi_ioctl() 168 hr->h.size = sizeof(hr->h); in asihpi_hpi_ioctl() 171 uncopied_bytes = copy_to_user(puhr, hr, hr->h.size); in asihpi_hpi_ioctl() 179 hr->h.size = res_max_size; in asihpi_hpi_ioctl() 184 u32 size = 0; in asihpi_hpi_ioctl() local 217 size = hm->m0.u.d.u.data.data_size; in asihpi_hpi_ioctl() 223 if (pa->buffer_size < size) { in asihpi_hpi_ioctl() 228 pa->buffer_size, size); in asihpi_hpi_ioctl() 233 pa->p_buffer = vmalloc(size); in asihpi_hpi_ioctl() 235 pa->buffer_size = size; in asihpi_hpi_ioctl() [all …]
|
/sound/isa/gus/ |
D | gus_dram.c | 29 unsigned int address, unsigned int size) in snd_gus_dram_poke() argument 35 while (size > 0) { in snd_gus_dram_poke() 36 size1 = size > sizeof(buffer) ? sizeof(buffer) : size; in snd_gus_dram_poke() 52 size -= size1; in snd_gus_dram_poke() 60 unsigned int address, unsigned int size) in snd_gus_dram_write() argument 62 return snd_gus_dram_poke(gus, buffer, address, size); in snd_gus_dram_write() 66 unsigned int address, unsigned int size, in snd_gus_dram_peek() argument 73 while (size > 0) { in snd_gus_dram_peek() 74 size1 = size > sizeof(buffer) ? sizeof(buffer) : size; in snd_gus_dram_peek() 91 size -= size1; in snd_gus_dram_peek() [all …]
|
D | gus_mem.c | 138 unsigned int size, int w_16, int align) in snd_gf1_mem_find() argument 156 while (pblock->ptr >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find() 158 while (pblock->ptr + pblock->size >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find() 162 if (pblock->ptr + pblock->size == pblock->next->ptr) in snd_gf1_mem_find() 167 ptr1 = ALIGN(pblock->ptr + pblock->size, align); in snd_gf1_mem_find() 171 if ((int)size <= size1) { in snd_gf1_mem_find() 173 block->size = size; in snd_gf1_mem_find() 178 if (size <= info[idx].size) { in snd_gf1_mem_find() 181 block->size = size; in snd_gf1_mem_find() 189 char *name, int size, int w_16, int align, in snd_gf1_mem_alloc() argument [all …]
|
D | gus_mem_proc.c | 30 unsigned int size; member 67 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init() 79 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init() 97 priv->size = entry->size = gus->gf1.rom_memory; in snd_gf1_mem_proc_init()
|
/sound/pci/emu10k1/ |
D | emu10k1_patch.c | 43 int truesize, size, loopsize, blocksize; in snd_emu10k1_sample_new() local 52 if (sp->v.size == 0) { in snd_emu10k1_sample_new() 66 if (sampleend > sp->v.size) in snd_emu10k1_sample_new() 67 sampleend = sp->v.size; in snd_emu10k1_sample_new() 80 truesize = sp->v.size + BLANK_HEAD_SIZE; in snd_emu10k1_sample_new() 106 size = BLANK_HEAD_SIZE; in snd_emu10k1_sample_new() 108 size *= 2; in snd_emu10k1_sample_new() 109 if (offset + size > blocksize) in snd_emu10k1_sample_new() 111 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new() 112 offset += size; in snd_emu10k1_sample_new() [all …]
|
/sound/synth/ |
D | util_mem.c | 45 hdr->size = memsize; in snd_util_memhdr_new() 73 __snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size) in __snd_util_mem_alloc() argument 79 if (snd_BUG_ON(!hdr || size <= 0)) in __snd_util_mem_alloc() 83 units = size; in __snd_util_mem_alloc() 86 if (units > hdr->size) in __snd_util_mem_alloc() 95 prev_offset = blk->offset + blk->size; in __snd_util_mem_alloc() 97 if (hdr->size - prev_offset < units) in __snd_util_mem_alloc() 124 blk->offset = p->offset + p->size; in __snd_util_memblk_new() 126 blk->size = units; in __snd_util_memblk_new() 138 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 | 93 int size = sizeof(buf); in snd_seq_dump_var_event() local 94 if (len < size) in snd_seq_dump_var_event() 95 size = len; in snd_seq_dump_var_event() 96 if (copy_from_user(buf, curptr, size)) in snd_seq_dump_var_event() 98 err = func(private_data, buf, size); in snd_seq_dump_var_event() 101 curptr += size; in snd_seq_dump_var_event() 102 len -= size; in snd_seq_dump_var_event() 111 int size = sizeof(struct snd_seq_event); in snd_seq_dump_var_event() local 112 if (len < size) in snd_seq_dump_var_event() 113 size = len; in snd_seq_dump_var_event() [all …]
|
/sound/usb/ |
D | helper.c | 29 unsigned int snd_usb_combine_bytes(unsigned char *bytes, int size) in snd_usb_combine_bytes() argument 31 switch (size) { in snd_usb_combine_bytes() 85 __u16 size) in snd_usb_ctl_msg() argument 91 if (size > 0) { in snd_usb_ctl_msg() 92 buf = kmemdup(data, size, GFP_KERNEL); in snd_usb_ctl_msg() 103 value, index, buf, size, timeout); in snd_usb_ctl_msg() 105 if (size > 0) { in snd_usb_ctl_msg() 106 memcpy(data, buf, size); in snd_usb_ctl_msg() 111 value, index, data, size); in snd_usb_ctl_msg()
|
/sound/soc/intel/common/ |
D | sst-firmware.c | 80 dma_addr_t src_addr, size_t size) in sst_dsp_dma_copy() argument 91 (unsigned long)src_addr, (unsigned long)dest_addr, size); in sst_dsp_dma_copy() 94 src_addr, size, DMA_CTRL_ACK); in sst_dsp_dma_copy() 111 dma_addr_t src_addr, size_t size) in sst_dsp_dma_copyto() argument 114 src_addr, size); in sst_dsp_dma_copyto() 120 dma_addr_t src_addr, size_t size) in sst_dsp_dma_copyfrom() argument 123 src_addr | SST_HSW_MASK_DMA_ADDR_DSP, size); in sst_dsp_dma_copyfrom() 355 sst_fw->size = fw->size; in sst_fw_new() 358 sst_fw->dma_buf = dma_alloc_coherent(dsp->dma_dev, sst_fw->size, in sst_fw_new() 367 memcpy((void *)sst_fw->dma_buf, (void *)fw->data, fw->size); in sst_fw_new() [all …]
|
/sound/oss/dmasound/ |
D | dmasound_paula.c | 73 static void *AmiAlloc(unsigned int size, gfp_t flags); 74 static void AmiFree(void *obj, unsigned int size); 318 static void *AmiAlloc(unsigned int size, gfp_t flags) in AmiAlloc() argument 320 return amiga_chip_alloc((long)size, "dmasound [Paula]"); in AmiAlloc() 323 static void AmiFree(void *obj, unsigned int size) in AmiFree() argument 386 int size; in AmiSetFormat() local 397 size = 8; in AmiSetFormat() 403 size = 16; in AmiSetFormat() 406 size = 8; in AmiSetFormat() 411 dmasound.soft.size = size; in AmiSetFormat() [all …]
|
/sound/firewire/motu/ |
D | motu-transaction.c | 17 size_t size) in snd_motu_transaction_read() argument 21 if (size % sizeof(__be32) > 0 || size <= 0) in snd_motu_transaction_read() 23 if (size == sizeof(__be32)) in snd_motu_transaction_read() 29 SND_MOTU_ADDR_BASE + offset, reg, size, 0); in snd_motu_transaction_read() 33 size_t size) in snd_motu_transaction_write() argument 37 if (size % sizeof(__be32) > 0 || size <= 0) in snd_motu_transaction_write() 39 if (size == sizeof(__be32)) in snd_motu_transaction_write() 45 SND_MOTU_ADDR_BASE + offset, reg, size, 0); in snd_motu_transaction_write()
|
/sound/soc/intel/skylake/ |
D | skl-sst-cldma.c | 86 u32 **bdlp, int size, int with_ioc) in skl_cldma_setup_bdle() argument 91 while (size > 0) { in skl_cldma_setup_bdle() 100 size -= ctx->cl_dev.bufsize; in skl_cldma_setup_bdle() 101 bdl[3] = (size || !with_ioc) ? 0 : cpu_to_le32(0x01); in skl_cldma_setup_bdle() 137 unsigned int size, bool enable) in skl_cldma_setup_spb() argument 145 sst_dsp_shim_write_unlocked(ctx, SKL_ADSP_REG_CL_SPBFIFO_SPIB, size); in skl_cldma_setup_spb() 195 static void skl_cldma_fill_buffer(struct sst_dsp *ctx, unsigned int size, in skl_cldma_fill_buffer() argument 198 dev_dbg(ctx->dev, "Size: %x, intr_enable: %d\n", size, intr_enable); in skl_cldma_fill_buffer() 208 if (ctx->cl_dev.dma_buffer_offset + size > ctx->cl_dev.bufsize) { in skl_cldma_fill_buffer() 213 size -= size_b; in skl_cldma_fill_buffer() [all …]
|
/sound/usb/line6/ |
D | midibuf.c | 57 int line6_midibuf_init(struct midi_buffer *this, int size, int split) in line6_midibuf_init() argument 59 this->buf = kmalloc(size, GFP_KERNEL); in line6_midibuf_init() 64 this->size = size; in line6_midibuf_init() 75 (this->pos_read - this->pos_write + this->size - 1) % this->size + in line6_midibuf_bytes_free() 84 (this->pos_write - this->pos_read + this->size - 1) % this->size + in line6_midibuf_bytes_used() 110 length1 = this->size - this->pos_write; in line6_midibuf_write() 153 length1 = this->size - this->pos_read; in line6_midibuf_read() 243 this->pos_read = (this->pos_read + length) % this->size; in line6_midibuf_ignore()
|
/sound/pci/mixart/ |
D | mixart_core.c | 80 u32 size; in get_msg() local 90 …size = readl_be(MIXART_MEM(mgr, msg_frame_address)); /* size of descriptor +… in get_msg() 95 if( (size < MSG_DESCRIPTOR_SIZE) || (resp->size < (size - MSG_DESCRIPTOR_SIZE))) { in get_msg() 98 "problem with response size = %d\n", size); in get_msg() 101 size -= MSG_DESCRIPTOR_SIZE; in get_msg() 103 memcpy_fromio(resp->data, MIXART_MEM(mgr, msg_frame_address + MSG_HEADER_SIZE ), size); in get_msg() 104 resp->size = size; in get_msg() 108 size /= 4; /* u32 size */ in get_msg() 109 for(i=0; i < size; i++) { in get_msg() 155 if (snd_BUG_ON(msg->size % 4)) in send_msg() [all …]
|
/sound/soc/intel/atom/sst/ |
D | sst_loader.c | 115 static int sst_validate_fw_image(struct intel_sst_drv *ctx, unsigned long size, in sst_validate_fw_image() argument 132 (size != header->file_size + sizeof(*header))) { in sst_validate_fw_image() 155 void *destn, const void *src, u32 size, bool is_io) in sst_fill_memcpy_list() argument 164 listnode->size = size; in sst_fill_memcpy_list() 196 if (block->size <= 0) { in sst_parse_module_memcpy() 211 block = (void *)block + sizeof(*block) + block->size; in sst_parse_module_memcpy() 221 (void *)block + sizeof(*block), block->size, 1); in sst_parse_module_memcpy() 225 block = (void *)block + sizeof(*block) + block->size; in sst_parse_module_memcpy() 239 static int sst_parse_fw_memcpy(struct intel_sst_drv *ctx, unsigned long size, in sst_parse_fw_memcpy() argument 246 ret_val = sst_validate_fw_image(ctx, size, &module, &num_modules); in sst_parse_fw_memcpy() [all …]
|
/sound/soc/blackfin/ |
D | bf5xx-ac97-pcm.c | 121 size_t size = bf5xx_pcm_hardware.buffer_bytes_max in bf5xx_pcm_hw_params() local 124 snd_pcm_lib_malloc_pages(substream, size); in bf5xx_pcm_hw_params() 275 size_t size = vma->vm_end - vma->vm_start; in bf5xx_pcm_mmap() local 277 vma->vm_end = vma->vm_start + size; in bf5xx_pcm_mmap() 334 size_t size = bf5xx_pcm_hardware.buffer_bytes_max in bf5xx_pcm_preallocate_dma_buffer() local 340 buf->area = dma_alloc_coherent(pcm->card->dev, size, in bf5xx_pcm_preallocate_dma_buffer() 347 buf->bytes = size; in bf5xx_pcm_preallocate_dma_buffer() 365 size, &sport_handle->tx_dma_phy, GFP_KERNEL); in bf5xx_pcm_preallocate_dma_buffer() 370 memset(sport_handle->tx_dma_buf, 0, size); in bf5xx_pcm_preallocate_dma_buffer() 372 memset(sport_handle->tx_dma_buf, 0, size); in bf5xx_pcm_preallocate_dma_buffer() [all …]
|