/sound/firewire/fireworks/ |
D | fireworks_hwdep.c | 28 long count = 0; in hwdep_read_resp_buf() local 37 count += sizeof(type); in hwdep_read_resp_buf() 78 count += till_end; in hwdep_read_resp_buf() 95 return count; in hwdep_read_resp_buf() 99 hwdep_read_locked(struct snd_efw *efw, char __user *buf, long count, in hwdep_read_locked() argument 113 count = min_t(long, count, sizeof(event.lock_status)); in hwdep_read_locked() 115 if (copy_to_user(buf, &event, count)) in hwdep_read_locked() 118 return count; in hwdep_read_locked() 122 hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument 150 count = hwdep_read_locked(efw, buf, count, offset); in hwdep_read() [all …]
|
/sound/core/ |
D | memory.c | 23 int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count) in copy_to_user_fromio() argument 26 return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0; in copy_to_user_fromio() 29 while (count) { in copy_to_user_fromio() 30 size_t c = count; in copy_to_user_fromio() 36 count -= c; in copy_to_user_fromio() 55 int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count) in copy_from_user_toio() argument 58 return copy_from_user((void __force *)dst, src, count) ? -EFAULT : 0; in copy_from_user_toio() 61 while (count) { in copy_from_user_toio() 62 size_t c = count; in copy_from_user_toio() 68 count -= c; in copy_from_user_toio()
|
D | rawmidi.c | 116 size_t count) in snd_rawmidi_ready_append() argument 121 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 1062 const unsigned char *buffer, int count) in snd_rawmidi_receive() argument 1079 result = receive_with_tstamp_framing(substream, buffer, count, &ts64); in snd_rawmidi_receive() 1080 } else if (count == 1) { /* special case, faster code */ in snd_rawmidi_receive() 1091 substream->bytes += count; in snd_rawmidi_receive() 1093 if (count1 > count) in snd_rawmidi_receive() 1094 count1 = count; in snd_rawmidi_receive() 1101 count -= count1; in snd_rawmidi_receive() 1103 if (count > 0) { in snd_rawmidi_receive() [all …]
|
D | control_compat.c | 17 u32 count; member 54 u32 count; member 194 *countp = info->count; in get_ctl_type() 200 static int get_elem_size(int type, int count) in get_elem_size() argument 204 return sizeof(s64) * count; in get_elem_size() 206 return sizeof(int) * count; in get_elem_size() 224 int count; in copy_ctl_value_from_user() local 233 type = get_ctl_type(card, &data->id, &count); in copy_ctl_value_from_user() 239 for (i = 0; i < count; i++) { in copy_ctl_value_from_user() 247 size = get_elem_size(type, count); in copy_ctl_value_from_user() [all …]
|
D | vmaster.c | 19 int count; /* item count */ member 69 for (ch = 0; ch < follower->info.count; ch++) in follower_update() 82 if (follower->info.count) { in follower_init() 99 follower->info.count = uinfo->count; in follower_init() 100 if (follower->info.count > 2 || in follower_init() 119 if (master->info.count) in master_init() 127 master->info.count = 1; /* always mono */ in master_init() 145 for (ch = 0; ch < follower->info.count; ch++) in follower_get_val() 161 for (ch = 0; ch < follower->info.count; ch++) in follower_put_val() 166 for (ch = 0; ch < follower->info.count; ch++) { in follower_put_val() [all …]
|
D | control.c | 126 for (idx = 0; idx < control->count; idx++) in snd_ctl_release() 230 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument 235 if (count == 0 || count > MAX_CONTROL_COUNT) in snd_ctl_new() 238 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new() 242 for (idx = 0; idx < count; idx++) { in snd_ctl_new() 246 (*kctl)->count = count; in snd_ctl_new() 266 unsigned int count; in snd_ctl_new1() local 273 count = ncontrol->count; in snd_ctl_new1() 274 if (count == 0) in snd_ctl_new1() 275 count = 1; in snd_ctl_new1() [all …]
|
/sound/soc/sof/ |
D | debug.c | 37 size_t count = 0; in strsplit_u32() local 48 ret = kstrtouint(s, 0, data + count); in strsplit_u32() 51 if (++count >= cap) { in strsplit_u32() 62 if (!count) in strsplit_u32() 64 *tkns = kmemdup(data, count * sizeof(*data), GFP_KERNEL); in strsplit_u32() 69 *num_tkns = count; in strsplit_u32() 76 static int tokenize_input(const char __user *from, size_t count, in tokenize_input() argument 82 buf = kmalloc(count + 1, GFP_KERNEL); in tokenize_input() 86 ret = simple_write_to_buffer(buf, count, ppos, from, count); in tokenize_input() 87 if (ret != count) { in tokenize_input() [all …]
|
D | trace.c | 164 size_t count, loff_t *ppos) in sof_dfsentry_trace_filter_write() argument 174 if (count > TRACE_FILTER_MAX_CONFIG_STRING_LENGTH) { in sof_dfsentry_trace_filter_write() 175 dev_err(sdev->dev, "%s too long input, %zu > %d\n", __func__, count, in sof_dfsentry_trace_filter_write() 180 string = kmalloc(count + 1, GFP_KERNEL); in sof_dfsentry_trace_filter_write() 185 string[count] = 0; in sof_dfsentry_trace_filter_write() 186 ret = simple_write_to_buffer(string, count, &pos, from, count); in sof_dfsentry_trace_filter_write() 203 ret = count; in sof_dfsentry_trace_filter_write() 289 size_t count, loff_t *ppos) in sof_dfsentry_trace_read() argument 304 if (!count) in sof_dfsentry_trace_read() 311 if (count > buffer_size - lpos) /* min() not used to avoid sparse warnings */ in sof_dfsentry_trace_read() [all …]
|
D | compress.c | 122 char __user *buf, size_t count) in sof_probe_compr_copy() argument 129 if (count > rtd->buffer_size) in sof_probe_compr_copy() 130 count = rtd->buffer_size; in sof_probe_compr_copy() 136 if (count < n) { in sof_probe_compr_copy() 137 ret = copy_to_user(buf, ptr, count); in sof_probe_compr_copy() 140 ret += copy_to_user(buf + n, rtd->dma_area, count - n); in sof_probe_compr_copy() 144 return count - ret; in sof_probe_compr_copy() 145 return count; in sof_probe_compr_copy()
|
/sound/oss/dmasound/ |
D | dmasound_paula.c | 160 ssize_t count, used; in ami_ct_s8() local 164 count = min_t(unsigned long, userCount, frameLeft) & ~1; in ami_ct_s8() 165 used = count; in ami_ct_s8() 166 if (copy_from_user(p, userPtr, count)) in ami_ct_s8() 171 count = min_t(unsigned long, userCount, frameLeft)>>1 & ~1; in ami_ct_s8() 172 used = count*2; in ami_ct_s8() 173 while (count > 0) { in ami_ct_s8() 177 count--; in ami_ct_s8() 194 ssize_t count, used; \ 198 count = min_t(size_t, userCount, frameLeft) & ~1; \ [all …]
|
D | dmasound_atari.c | 161 ssize_t count, used; in ata_ct_law() local 164 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_law() 166 count &= ~1; in ata_ct_law() 167 used = count; in ata_ct_law() 168 while (count > 0) { in ata_ct_law() 173 count--; in ata_ct_law() 184 ssize_t count, used; in ata_ct_s8() local 187 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_s8() 189 count &= ~1; in ata_ct_s8() 190 used = count; in ata_ct_s8() [all …]
|
/sound/firewire/tascam/ |
D | tascam-hwdep.c | 19 long count, loff_t *offset) in tscm_hwdep_read_locked() argument 28 count = min_t(long, count, sizeof(event)); in tscm_hwdep_read_locked() 32 if (copy_to_user(buf, &event, count)) in tscm_hwdep_read_locked() 35 return count; in tscm_hwdep_read_locked() 45 long count; in tscm_hwdep_read_queue() local 54 count = sizeof(type); in tscm_hwdep_read_queue() 85 count += length; in tscm_hwdep_read_queue() 95 return count; in tscm_hwdep_read_queue() 98 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument 118 count = tscm_hwdep_read_locked(tscm, buf, count, offset); in hwdep_read() [all …]
|
/sound/drivers/opl4/ |
D | opl4_proc.c | 41 size_t count, loff_t pos) in snd_opl4_mem_proc_read() argument 46 buf = vmalloc(count); in snd_opl4_mem_proc_read() 49 snd_opl4_read_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_read() 50 if (copy_to_user(_buf, buf, count)) { in snd_opl4_mem_proc_read() 55 return count; in snd_opl4_mem_proc_read() 62 size_t count, loff_t pos) in snd_opl4_mem_proc_write() argument 67 buf = vmalloc(count); in snd_opl4_mem_proc_write() 70 if (copy_from_user(buf, _buf, count)) { in snd_opl4_mem_proc_write() 74 snd_opl4_write_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_write() 76 return count; in snd_opl4_mem_proc_write()
|
/sound/hda/ |
D | intel-sdw-acpi.c | 55 u8 count; in sdw_intel_scan_controller() local 61 count = 0; in sdw_intel_scan_controller() 63 "mipi-sdw-master-count", &count, 1); in sdw_intel_scan_controller() 84 if (count > SDW_MAX_LINKS) { in sdw_intel_scan_controller() 86 count, SDW_MAX_LINKS); in sdw_intel_scan_controller() 90 if (!count) { in sdw_intel_scan_controller() 94 dev_dbg(&adev->dev, "ACPI reports %d SDW Link devices\n", count); in sdw_intel_scan_controller() 96 info->count = count; in sdw_intel_scan_controller() 99 for (i = 0; i < count; i++) { in sdw_intel_scan_controller()
|
/sound/soc/ |
D | soc-jack.c | 90 int snd_soc_jack_add_zones(struct snd_soc_jack *jack, int count, in snd_soc_jack_add_zones() argument 95 for (i = 0; i < count; i++) { in snd_soc_jack_add_zones() 137 int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count, in snd_soc_jack_add_pins() argument 142 for (i = 0; i < count; i++) { in snd_soc_jack_add_pins() 205 int count; member 279 static void jack_free_gpios(struct snd_soc_jack *jack, int count, in jack_free_gpios() argument 284 for (i = 0; i < count; i++) { in jack_free_gpios() 298 jack_free_gpios(tbl->jack, tbl->count, tbl->gpios); in jack_devres_free_gpios() 311 int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, in snd_soc_jack_add_gpios() argument 321 tbl->count = count; in snd_soc_jack_add_gpios() [all …]
|
/sound/isa/sb/ |
D | emu8000_pcm.c | 435 #define LOOP_WRITE(rec, offset, _buf, count, mode) \ argument 441 while (count > 0) { \ 446 count--; \ 453 void __user *src, unsigned long count) in emu8k_pcm_copy() argument 459 count <<= 1; in emu8k_pcm_copy() 460 LOOP_WRITE(rec, pos, src, count, COPY_USER); in emu8k_pcm_copy() 466 void *src, unsigned long count) in emu8k_pcm_copy_kernel() argument 472 count <<= 1; in emu8k_pcm_copy_kernel() 473 LOOP_WRITE(rec, pos, src, count, COPY_KERNEL); in emu8k_pcm_copy_kernel() 479 int voice, unsigned long pos, unsigned long count) in emu8k_pcm_silence() argument [all …]
|
D | sb8_main.c | 95 unsigned int mixreg, rate, size, count; in snd_sb8_playback_prepare() local 144 count = chip->p_period_size = snd_pcm_lib_period_bytes(substream); in snd_sb8_playback_prepare() 180 count /= 2; in snd_sb8_playback_prepare() 181 count--; in snd_sb8_playback_prepare() 183 snd_sbdsp_command(chip, count & 0xff); in snd_sb8_playback_prepare() 184 snd_sbdsp_command(chip, count >> 8); in snd_sb8_playback_prepare() 197 unsigned int count; in snd_sb8_playback_trigger() local 204 count = chip->p_period_size - 1; in snd_sb8_playback_trigger() 205 snd_sbdsp_command(chip, count & 0xff); in snd_sb8_playback_trigger() 206 snd_sbdsp_command(chip, count >> 8); in snd_sb8_playback_trigger() [all …]
|
/sound/drivers/pcsp/ |
D | pcsp_input.c | 16 static void pcspkr_do_sound(unsigned int count) in pcspkr_do_sound() argument 22 if (count) { in pcspkr_do_sound() 26 outb_p(count & 0xff, 0x42); in pcspkr_do_sound() 27 outb((count >> 8) & 0xff, 0x42); in pcspkr_do_sound() 46 unsigned int count = 0; in pcspkr_input_event() local 70 count = PIT_TICK_RATE / value; in pcspkr_input_event() 72 pcspkr_do_sound(count); in pcspkr_input_event()
|
/sound/isa/gus/ |
D | gus_dma.c | 25 unsigned int count, in snd_gf1_dma_program() argument 34 addr, buf_addr, count); in snd_gf1_dma_program() 55 count++; in snd_gf1_dma_program() 56 count &= ~1; /* align */ in snd_gf1_dma_program() 60 count++; in snd_gf1_dma_program() 61 count &= ~1; /* align */ in snd_gf1_dma_program() 64 …snd_dma_program(gus->gf1.dma1, buf_addr, count, dma_cmd & SNDRV_GF1_DMA_READ ? DMA_MODE_READ : DMA… in snd_gf1_dma_program() 67 address << 1, count, dma_cmd); in snd_gf1_dma_program() 131 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_interrupt() 136 block->addr, block->buf_addr, block->count, block->cmd); in snd_gf1_dma_interrupt() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_rw.c | 31 snd_seq_oss_read(struct seq_oss_devinfo *dp, char __user *buf, int count) in snd_seq_oss_read() argument 42 while (count >= SHORT_EVENT_SIZE) { in snd_seq_oss_read() 60 if (ev_len < count) { in snd_seq_oss_read() 72 count -= ev_len; in snd_seq_oss_read() 83 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) in snd_seq_oss_write() argument 92 while (count >= SHORT_EVENT_SIZE) { in snd_seq_oss_write() 106 fmt, buf, 0, count); in snd_seq_oss_write() 116 if (count < ev_size) in snd_seq_oss_write() 141 count -= ev_size; in snd_seq_oss_write()
|
/sound/pci/oxygen/ |
D | oxygen_io.c | 120 unsigned int count, succeeded; in oxygen_write_ac97() local 128 for (count = 5; count > 0; --count) { in oxygen_write_ac97() 145 unsigned int count; in oxygen_read_ac97() local 152 for (count = 5; count > 0; --count) { in oxygen_read_ac97() 187 unsigned int count; in oxygen_wait_spi() local 193 for (count = 50; count > 0; count--) { in oxygen_wait_spi()
|
/sound/core/oss/ |
D | io.c | 28 #define pcm_write(plug,buf,count) snd_pcm_oss_write3(plug,buf,count,1) argument 29 #define pcm_writev(plug,vec,count) snd_pcm_oss_writev3(plug,vec,count) argument 30 #define pcm_read(plug,buf,count) snd_pcm_oss_read3(plug,buf,count,1) argument 31 #define pcm_readv(plug,vec,count) snd_pcm_oss_readv3(plug,vec,count) argument
|
/sound/soc/intel/atom/sst/ |
D | sst_loader.c | 33 void memcpy32_toio(void __iomem *dst, const void *src, int count) in memcpy32_toio() argument 38 __iowrite32_copy(dst, src, count / 4); in memcpy32_toio() 41 void memcpy32_fromio(void *dst, const void __iomem *src, int count) in memcpy32_fromio() argument 46 __ioread32_copy(dst, src, count / 4); in memcpy32_fromio() 177 u32 count; in sst_parse_module_memcpy() local 188 for (count = 0; count < module->blocks; count++) { in sst_parse_module_memcpy() 208 block->type, count); in sst_parse_module_memcpy() 236 u32 count, num_modules; in sst_parse_fw_memcpy() local 243 for (count = 0; count < num_modules; count++) { in sst_parse_fw_memcpy()
|
/sound/synth/emux/ |
D | soundfont.c | 25 int count, int client); 40 static int load_map(struct snd_sf_list *sflist, const void __user *data, int count); 41 static int load_info(struct snd_sf_list *sflist, const void __user *data, long count); 49 static int load_data(struct snd_sf_list *sflist, const void __user *data, long count); 117 long count, int client) in snd_soundfont_load() argument 123 if (count < (long)sizeof(patch)) { in snd_soundfont_load() 124 snd_printk(KERN_ERR "patch record too small %ld\n", count); in snd_soundfont_load() 130 count -= sizeof(patch); in snd_soundfont_load() 137 if (count < patch.len) { in snd_soundfont_load() 139 count, patch.len); in snd_soundfont_load() [all …]
|
/sound/i2c/ |
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 275 while (count-- > 0) { in snd_i2c_bit_sendbytes() 288 unsigned char *bytes, int count) in snd_i2c_bit_readbytes() argument 301 while (count-- > 0) { in snd_i2c_bit_readbytes() [all …]
|