Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c41 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/
Dctvmem.c30 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/core/
Dpcm_memory.c55 int str, size_t size, struct snd_dma_buffer *dmab) in do_alloc_pages() argument
63 card->total_pcm_alloc_bytes + size > max_alloc_per_card) { in do_alloc_pages()
67 __update_allocated_size(card, size); in do_alloc_pages()
74 err = snd_dma_alloc_dir_pages(type, dev, dir, size, dmab); in do_alloc_pages()
79 if (dmab->bytes != size) in do_alloc_pages()
80 update_allocated_size(card, dmab->bytes - size); in do_alloc_pages()
83 decrease_allocated_size(card, size); in do_alloc_pages()
104 size_t size, bool no_fallback) in preallocate_pcm_pages() argument
108 size_t orig_size = size; in preallocate_pcm_pages()
113 substream->stream, size, dmab); in preallocate_pcm_pages()
[all …]
Dmemalloc.c31 static void *snd_dma_sg_fallback_alloc(struct snd_dma_buffer *dmab, size_t size);
34 static void *__snd_dma_alloc_pages(struct snd_dma_buffer *dmab, size_t size) in __snd_dma_alloc_pages() argument
40 return ops->alloc(dmab, size); in __snd_dma_alloc_pages()
59 enum dma_data_direction dir, size_t size, in snd_dma_alloc_dir_pages() argument
62 if (WARN_ON(!size)) in snd_dma_alloc_dir_pages()
67 size = PAGE_ALIGN(size); in snd_dma_alloc_dir_pages()
74 dmab->area = __snd_dma_alloc_pages(dmab, size); in snd_dma_alloc_dir_pages()
77 dmab->bytes = size; in snd_dma_alloc_dir_pages()
97 int snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size, in snd_dma_alloc_pages_fallback() argument
102 while ((err = snd_dma_alloc_pages(type, device, size, dmab)) < 0) { in snd_dma_alloc_pages_fallback()
[all …]
/sound/pci/asihpi/
Dhpimsginit.c30 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 …]
Dhpios.c35 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()
Dhpioctl.c142 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/
Dgus_dram.c14 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 …]
Dgus_mem.c130 unsigned int size, int w_16, int align) in snd_gf1_mem_find() argument
148 while (pblock->ptr >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find()
150 while (pblock->ptr + pblock->size >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find()
154 if (pblock->ptr + pblock->size == pblock->next->ptr) in snd_gf1_mem_find()
159 ptr1 = ALIGN(pblock->ptr + pblock->size, align); in snd_gf1_mem_find()
163 if ((int)size <= size1) { in snd_gf1_mem_find()
165 block->size = size; in snd_gf1_mem_find()
170 if (size <= info[idx].size) { in snd_gf1_mem_find()
173 block->size = size; in snd_gf1_mem_find()
181 char *name, int size, int w_16, int align, in snd_gf1_mem_alloc() argument
[all …]
/sound/pci/emu10k1/
Demu10k1_patch.c30 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/soc/sof/
Ddebug.c25 size_t size; in sof_dfsentry_write() local
33 size = simple_write_to_buffer(string, count, ppos, buffer, count); in sof_dfsentry_write()
34 ret = size; in sof_dfsentry_write()
48 int size; in sof_dfsentry_read() local
51 size = dfse->size; in sof_dfsentry_read()
56 if (pos >= size || !count) in sof_dfsentry_read()
59 if (count > size - pos) in sof_dfsentry_read()
60 count = size - pos; in sof_dfsentry_read()
66 size = ALIGN(count, 4); in sof_dfsentry_read()
71 if (pos + size + 4 < dfse->size) in sof_dfsentry_read()
[all …]
Dipc3-loader.c75 elems_size = config->hdr.size - sizeof(struct sof_ext_man_elem_header); in ipc3_fw_ext_man_get_config_data()
123 if (fw->size < sizeof(*head)) in ipc3_fw_ext_man_size()
174 elem_hdr->type, elem_hdr->size); in sof_ipc3_fw_parse_ext_man()
176 if (elem_hdr->size < sizeof(*elem_hdr) || in sof_ipc3_fw_parse_ext_man()
177 elem_hdr->size > remaining) { in sof_ipc3_fw_parse_ext_man()
180 elem_hdr->type, elem_hdr->size); in sof_ipc3_fw_parse_ext_man()
207 elem_hdr->type, elem_hdr->size); in sof_ipc3_fw_parse_ext_man()
214 elem_hdr->type, elem_hdr->size); in sof_ipc3_fw_parse_ext_man()
218 remaining -= elem_hdr->size; in sof_ipc3_fw_parse_ext_man()
219 iptr += elem_hdr->size; in sof_ipc3_fw_parse_ext_man()
[all …]
Dipc3-control.c77 cdata->num_elems = cdata->data->size; in sof_ipc3_set_get_kcontrol_data()
79 msg_bytes = cdata->data->size; in sof_ipc3_set_get_kcontrol_data()
87 cdata->rhdr.hdr.size = msg_bytes; in sof_ipc3_set_get_kcontrol_data()
90 return iops->set_get_data(sdev, cdata, cdata->rhdr.hdr.size, set); in sof_ipc3_set_get_kcontrol_data()
273 size_t size; in sof_ipc3_bytes_get() local
284 if (data->size > scontrol->max_size - sizeof(*data)) { in sof_ipc3_bytes_get()
287 data->size, scontrol->max_size - sizeof(*data)); in sof_ipc3_bytes_get()
291 size = data->size + sizeof(*data); in sof_ipc3_bytes_get()
294 memcpy(ucontrol->value.bytes.data, data, size); in sof_ipc3_bytes_get()
305 size_t size; in sof_ipc3_bytes_put() local
[all …]
Dipc3.c239 if (!reply->hdr.size) { in sof_ipc3_get_reply()
252 if (reply->hdr.size == msg->reply_size) { in sof_ipc3_get_reply()
254 } else if (reply->hdr.size < msg->reply_size) { in sof_ipc3_get_reply()
257 reply->hdr.size, msg->reply_size); in sof_ipc3_get_reply()
259 msg->reply_size = reply->hdr.size; in sof_ipc3_get_reply()
264 reply->hdr.size, msg->reply_size); in sof_ipc3_get_reply()
295 hdr->cmd, hdr->size, msg->reply_size); in ipc3_wait_tx_done()
303 hdr->cmd, hdr->size, msg->reply_size, ret); in ipc3_wait_tx_done()
405 if (cdata->rhdr.hdr.size <= ipc->max_payload_size) in sof_ipc3_set_get_data()
406 return sof_ipc3_tx_msg(sdev, cdata, cdata->rhdr.hdr.size, in sof_ipc3_set_get_data()
[all …]
/sound/synth/
Dutil_mem.c32 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/
Dseq_memory.c80 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/
Dsoc-topology-test.c127 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_hdr)),
135 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_manifest)),
155 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_hdr)),
162 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_manifest)),
171 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_hdr)),
178 .size = cpu_to_le32(sizeof(struct snd_soc_tplg_pcm)),
387 int size; in snd_soc_tplg_test_load_empty_tplg() local
396 size = sizeof(tplg_tmpl_empty); in snd_soc_tplg_test_load_empty_tplg()
397 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg()
403 kunit_comp->fw.size = size; in snd_soc_tplg_test_load_empty_tplg()
[all …]
/sound/soc/intel/catpt/
Dloader.c48 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 …]
Dmessages.c21 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/
Ddmasound_paula.c74 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/
Dhelper.c16 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/
Dmotu-transaction.c16 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/
Dskl-sst-cldma.c79 __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/
Dmixart_core.c65 u32 size; in get_msg() local
74size = readl_be(MIXART_MEM(mgr, msg_frame_address)); /* size of descriptor +… in get_msg()
79 if( (size < MSG_DESCRIPTOR_SIZE) || (resp->size < (size - MSG_DESCRIPTOR_SIZE))) { in get_msg()
82 "problem with response size = %d\n", size); in get_msg()
85 size -= MSG_DESCRIPTOR_SIZE; in get_msg()
87 memcpy_fromio(resp->data, MIXART_MEM(mgr, msg_frame_address + MSG_HEADER_SIZE ), size); in get_msg()
88 resp->size = size; in get_msg()
92 size /= 4; /* u32 size */ in get_msg()
93 for(i=0; i < size; i++) { in get_msg()
137 if (snd_BUG_ON(msg->size % 4)) in send_msg()
[all …]
/sound/soc/intel/avs/
Dtrace.h38 void trace_avs_msg_payload(const void *data, size_t size);
43 trace_avs_msg_payload((msg)->data, (msg)->size); \
49 trace_avs_msg_payload((msg)->data, (msg)->size); \
55 trace_avs_msg_payload((msg)->data, (msg)->size); \
98 TP_PROTO(const u8 *data, size_t size, size_t offset, size_t total),
100 TP_ARGS(data, size, offset, total),
102 TP_CONDITION(data && size),
105 __dynamic_array(u8, buf, size )
112 memcpy(__get_dynamic_array(buf), data + offset, size);
114 __entry->pos = offset + size;

12345678910>>...16