/sound/oss/ |
D | msnd.c | 121 int count = 0; in msnd_fifo_write_io() local 123 while ((count < len) && (f->len != f->n)) { in msnd_fifo_write_io() 128 nwritten = len - count; in msnd_fifo_write_io() 134 if (nwritten > len - count) in msnd_fifo_write_io() 135 nwritten = len - count; in msnd_fifo_write_io() 140 count += nwritten; in msnd_fifo_write_io() 147 return count; in msnd_fifo_write_io() 152 int count = 0; in msnd_fifo_write() local 154 while ((count < len) && (f->len != f->n)) { in msnd_fifo_write() 159 nwritten = len - count; in msnd_fifo_write() [all …]
|
D | pas2_pcm.c | 242 static void pas_audio_output_block(int dev, unsigned long buf, int count, in pas_audio_output_block() argument 247 cnt = count; in pas_audio_output_block() 264 count >>= 1; in pas_audio_output_block() 266 if (count != pcm_count) in pas_audio_output_block() 270 pas_write(count & 0xff, 0x1389); in pas_audio_output_block() 271 pas_write((count >> 8) & 0xff, 0x1389); in pas_audio_output_block() 274 pcm_count = count; in pas_audio_output_block() 286 static void pas_audio_start_input(int dev, unsigned long buf, int count, in pas_audio_start_input() argument 292 cnt = count; in pas_audio_start_input() 306 count >>= 1; in pas_audio_start_input() [all …]
|
D | sound_calls.h | 15 int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode); 32 int audio_read (int dev, struct file *file, char __user *buf, int count); 33 int audio_write (int dev, struct file *file, const char __user *buf, int count); 45 int sequencer_read (int dev, struct file *file, char __user *buf, int count); 46 int sequencer_write (int dev, struct file *file, const char __user *buf, int count); 65 int MIDIbuf_read (int dev, struct file *file, char __user *buf, int count); 66 int MIDIbuf_write (int dev, struct file *file, const char __user *buf, int count); 73 void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); 77 void request_sound_timer (int count);
|
D | audio.c | 222 int audio_write(int dev, struct file *file, const char __user *buf, int count) in audio_write() argument 231 c = count; in audio_write() 233 if(count < 0) in audio_write() 244 if (!count) /* Flush output */ in audio_write() 300 return count; in audio_write() 303 int audio_read(int dev, struct file *file, char __user *buf, int count) in audio_read() argument 311 c = count; in audio_read() 365 return count - c; in audio_read() 370 int val, count; in audio_ioctl() local 512 count = DMAbuf_get_buffer_pointer (dev, dmap, DMODE_OUTPUT); in audio_ioctl() [all …]
|
D | swarm_cs4297a.c | 252 int count; member 841 (s->dma_dac.count > 0 in start_dac() 889 (s->dma_adc.mapped || s->dma_adc.count <= in start_adc() 984 if (d->count && (d->sb_hwptr == d->sb_swptr)) { in cs4297a_update_ptr() 1006 d->count += good_diff * FRAME_SAMPLE_BYTES; in cs4297a_update_ptr() 1007 if (d->count > d->sbufsz) { in cs4297a_update_ptr() 1013 if (d->count >= (signed) d->fragsize) in cs4297a_update_ptr() 1016 if (d->count > 0) { in cs4297a_update_ptr() 1019 … "cs4297a: update count -> %d\n", d->count)); in cs4297a_update_ptr() 1078 d->total_bytes, d->count)); in cs4297a_update_ptr() [all …]
|
/sound/core/ |
D | memory.c | 38 int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count) in copy_to_user_fromio() argument 41 return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0; in copy_to_user_fromio() 44 while (count) { in copy_to_user_fromio() 45 size_t c = count; in copy_to_user_fromio() 51 count -= c; in copy_to_user_fromio() 71 int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count) in copy_from_user_toio() argument 74 return copy_from_user((void __force *)dst, src, count) ? -EFAULT : 0; in copy_from_user_toio() 77 while (count) { in copy_from_user_toio() 78 size_t c = count; in copy_from_user_toio() 84 count -= c; in copy_from_user_toio()
|
D | rawmidi.c | 95 size_t count) in snd_rawmidi_ready_append() argument 99 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 884 const unsigned char *buffer, int count) in snd_rawmidi_receive() argument 898 if (count == 1) { /* special case, faster code */ in snd_rawmidi_receive() 909 substream->bytes += count; in snd_rawmidi_receive() 911 if (count1 > count) in snd_rawmidi_receive() 912 count1 = count; in snd_rawmidi_receive() 919 count -= count1; in snd_rawmidi_receive() 921 if (count > 0) { in snd_rawmidi_receive() 923 count1 = count; in snd_rawmidi_receive() [all …]
|
D | control.c | 132 for (idx = 0; idx < control->count; idx++) in snd_ctl_release() 209 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument 215 if (count == 0 || count > MAX_CONTROL_COUNT) in snd_ctl_new() 219 size += sizeof(struct snd_kcontrol_volatile) * count; in snd_ctl_new() 225 for (idx = 0; idx < count; idx++) { in snd_ctl_new() 229 (*kctl)->count = count; in snd_ctl_new() 249 unsigned int count; in snd_ctl_new1() local 256 count = ncontrol->count; in snd_ctl_new1() 257 if (count == 0) in snd_ctl_new1() 258 count = 1; in snd_ctl_new1() [all …]
|
D | control_compat.c | 30 u32 count; member 69 u32 count; member 211 *countp = info->count; in get_ctl_type() 217 static int get_elem_size(int type, int count) in get_elem_size() argument 221 return sizeof(s64) * count; in get_elem_size() 223 return sizeof(int) * count; in get_elem_size() 241 int uninitialized_var(count); in copy_ctl_value_from_user() 250 type = get_ctl_type(card, &data->id, &count); in copy_ctl_value_from_user() 256 for (i = 0; i < count; i++) { in copy_ctl_value_from_user() 264 size = get_elem_size(type, count); in copy_ctl_value_from_user() [all …]
|
D | vmaster.c | 23 int count; /* item count */ member 71 for (ch = 0; ch < slave->info.count; ch++) in slave_update() 83 if (slave->info.count) { in slave_init() 100 slave->info.count = uinfo->count; in slave_init() 101 if (slave->info.count > 2 || in slave_init() 120 if (master->info.count) in master_init() 128 master->info.count = 1; /* always mono */ in master_init() 146 for (ch = 0; ch < slave->info.count; ch++) in slave_get_val() 162 for (ch = 0; ch < slave->info.count; ch++) in slave_put_val() 167 for (ch = 0; ch < slave->info.count; ch++) { in slave_put_val() [all …]
|
/sound/firewire/fireworks/ |
D | fireworks_hwdep.c | 29 long count = 0; in hwdep_read_resp_buf() local 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() 152 count = hwdep_read_resp_buf(efw, buf, count, offset); in hwdep_read() [all …]
|
/sound/oss/dmasound/ |
D | dmasound_paula.c | 159 ssize_t count, used; in ami_ct_s8() local 163 count = min_t(unsigned long, userCount, frameLeft) & ~1; in ami_ct_s8() 164 used = count; in ami_ct_s8() 165 if (copy_from_user(p, userPtr, count)) in ami_ct_s8() 170 count = min_t(unsigned long, userCount, frameLeft)>>1 & ~1; in ami_ct_s8() 171 used = count*2; in ami_ct_s8() 172 while (count > 0) { in ami_ct_s8() 176 count--; in ami_ct_s8() 193 ssize_t count, used; \ 197 count = min_t(size_t, userCount, frameLeft) & ~1; \ [all …]
|
D | dmasound_atari.c | 160 ssize_t count, used; in ata_ct_law() local 163 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_law() 165 count &= ~1; in ata_ct_law() 166 used = count; in ata_ct_law() 167 while (count > 0) { in ata_ct_law() 172 count--; in ata_ct_law() 183 ssize_t count, used; in ata_ct_s8() local 186 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_s8() 188 count &= ~1; in ata_ct_s8() 189 used = count; in ata_ct_s8() [all …]
|
/sound/drivers/opl4/ |
D | opl4_proc.c | 54 size_t count, loff_t pos) in snd_opl4_mem_proc_read() argument 59 buf = vmalloc(count); in snd_opl4_mem_proc_read() 62 snd_opl4_read_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_read() 63 if (copy_to_user(_buf, buf, count)) { in snd_opl4_mem_proc_read() 68 return count; in snd_opl4_mem_proc_read() 75 size_t count, loff_t pos) in snd_opl4_mem_proc_write() argument 80 buf = vmalloc(count); in snd_opl4_mem_proc_write() 83 if (copy_from_user(buf, _buf, count)) { in snd_opl4_mem_proc_write() 87 snd_opl4_write_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_write() 89 return count; in snd_opl4_mem_proc_write()
|
/sound/drivers/pcsp/ |
D | pcsp_input.c | 21 static void pcspkr_do_sound(unsigned int count) in pcspkr_do_sound() argument 27 if (count) { in pcspkr_do_sound() 31 outb_p(count & 0xff, 0x42); in pcspkr_do_sound() 32 outb((count >> 8) & 0xff, 0x42); in pcspkr_do_sound() 51 unsigned int count = 0; in pcspkr_input_event() local 74 count = PIT_TICK_RATE / value; in pcspkr_input_event() 76 pcspkr_do_sound(count); in pcspkr_input_event()
|
/sound/isa/gus/ |
D | gus_dma.c | 40 unsigned int count, in snd_gf1_dma_program() argument 49 addr, buf_addr, count); in snd_gf1_dma_program() 70 count++; in snd_gf1_dma_program() 71 count &= ~1; /* align */ in snd_gf1_dma_program() 75 count++; in snd_gf1_dma_program() 76 count &= ~1; /* align */ in snd_gf1_dma_program() 79 …snd_dma_program(gus->gf1.dma1, buf_addr, count, dma_cmd & SNDRV_GF1_DMA_READ ? DMA_MODE_READ : DMA… in snd_gf1_dma_program() 82 address << 1, count, dma_cmd); in snd_gf1_dma_program() 144 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_interrupt() 149 block->addr, block->buf_addr, block->count, block->cmd); in snd_gf1_dma_interrupt() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_rw.c | 44 snd_seq_oss_read(struct seq_oss_devinfo *dp, char __user *buf, int count) in snd_seq_oss_read() argument 55 while (count >= SHORT_EVENT_SIZE) { in snd_seq_oss_read() 73 if (ev_len < count) { in snd_seq_oss_read() 85 count -= ev_len; in snd_seq_oss_read() 96 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) in snd_seq_oss_write() argument 105 while (count >= SHORT_EVENT_SIZE) { in snd_seq_oss_write() 119 fmt, buf, 0, count); in snd_seq_oss_write() 129 if (count < ev_size) in snd_seq_oss_write() 153 count -= ev_size; in snd_seq_oss_write()
|
/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,1) 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,1) argument
|
/sound/pci/oxygen/ |
D | oxygen_io.c | 132 unsigned int count, succeeded; in oxygen_write_ac97() local 140 for (count = 5; count > 0; --count) { in oxygen_write_ac97() 157 unsigned int count; in oxygen_read_ac97() local 164 for (count = 5; count > 0; --count) { in oxygen_read_ac97() 199 unsigned int count; in oxygen_wait_spi() local 205 for (count = 50; count > 0; count--) { in oxygen_wait_spi()
|
/sound/soc/blackfin/ |
D | bf5xx-ad73311.c | 80 int count = 0; in snd_ad73311_configure() local 107 for (count = 0; count < 6; count++) in snd_ad73311_configure() 108 bfin_write_SPORT_TX16(ctrl_regs[count]); in snd_ad73311_configure() 114 while (!(status & TUVF) && ++count < 10000) { in snd_ad73311_configure() 123 if (count >= 10000) { in snd_ad73311_configure()
|
/sound/isa/sb/ |
D | sb8_main.c | 109 unsigned int mixreg, rate, size, count; in snd_sb8_playback_prepare() local 158 count = chip->p_period_size = snd_pcm_lib_period_bytes(substream); in snd_sb8_playback_prepare() 194 count /= 2; in snd_sb8_playback_prepare() 195 count--; in snd_sb8_playback_prepare() 197 snd_sbdsp_command(chip, count & 0xff); in snd_sb8_playback_prepare() 198 snd_sbdsp_command(chip, count >> 8); in snd_sb8_playback_prepare() 211 unsigned int count; in snd_sb8_playback_trigger() local 218 count = chip->p_period_size - 1; in snd_sb8_playback_trigger() 219 snd_sbdsp_command(chip, count & 0xff); in snd_sb8_playback_trigger() 220 snd_sbdsp_command(chip, count >> 8); in snd_sb8_playback_trigger() [all …]
|
D | emu8000_pcm.c | 426 static int emu8k_transfer_block(struct snd_emu8000 *emu, int offset, unsigned short *buf, int count) in emu8k_transfer_block() argument 429 while (count > 0) { in emu8k_transfer_block() 436 count--; in emu8k_transfer_block() 445 snd_pcm_uframes_t count) in emu8k_pcm_copy() argument 454 count /= rec->voices; in emu8k_pcm_copy() 456 err = emu8k_transfer_block(emu, pos + rec->loop_start[i], buf, count); in emu8k_pcm_copy() 459 buf += count; in emu8k_pcm_copy() 463 return emu8k_transfer_block(emu, pos + rec->loop_start[voice], src, count); in emu8k_pcm_copy() 468 static int emu8k_silence_block(struct snd_emu8000 *emu, int offset, int count) in emu8k_silence_block() argument 471 while (count > 0) { in emu8k_silence_block() [all …]
|
/sound/soc/intel/atom/sst/ |
D | sst_loader.c | 42 void memcpy32_toio(void __iomem *dst, const void *src, int count) in memcpy32_toio() argument 47 __iowrite32_copy(dst, src, count/4); in memcpy32_toio() 50 void memcpy32_fromio(void *dst, const void __iomem *src, int count) in memcpy32_fromio() argument 55 __iowrite32_copy(dst, src, count/4); in memcpy32_fromio() 184 u32 count; in sst_parse_module_memcpy() local 195 for (count = 0; count < module->blocks; count++) { in sst_parse_module_memcpy() 215 block->type, count); in sst_parse_module_memcpy() 243 u32 count, num_modules; in sst_parse_fw_memcpy() local 250 for (count = 0; count < num_modules; count++) { in sst_parse_fw_memcpy()
|
/sound/i2c/ |
D | i2c.c | 36 unsigned char *bytes, int count); 38 unsigned char *bytes, int count); 146 int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) in snd_i2c_sendbytes() argument 148 return device->bus->ops->sendbytes(device, bytes, count); in snd_i2c_sendbytes() 153 int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) in snd_i2c_readbytes() argument 155 return device->bus->ops->readbytes(device, bytes, count); in snd_i2c_readbytes() 276 unsigned char *bytes, int count) in snd_i2c_bit_sendbytes() argument 289 while (count-- > 0) { in snd_i2c_bit_sendbytes() 302 unsigned char *bytes, int count) in snd_i2c_bit_readbytes() argument 315 while (count-- > 0) { in snd_i2c_bit_readbytes() [all …]
|
/sound/synth/emux/ |
D | soundfont.c | 38 int count, int client); 53 static int load_map(struct snd_sf_list *sflist, const void __user *data, int count); 54 static int load_info(struct snd_sf_list *sflist, const void __user *data, long count); 62 static int load_data(struct snd_sf_list *sflist, const void __user *data, long count); 130 long count, int client) in snd_soundfont_load() argument 136 if (count < (long)sizeof(patch)) { in snd_soundfont_load() 137 snd_printk(KERN_ERR "patch record too small %ld\n", count); in snd_soundfont_load() 143 count -= sizeof(patch); in snd_soundfont_load() 150 if (count < patch.len) { in snd_soundfont_load() 152 count, patch.len); in snd_soundfont_load() [all …]
|