/linux-2.4.37.9/drivers/sound/ |
D | au1550_i2s.c | 1043 if (file->f_mode & FMODE_READ) { in au1550_poll() 1051 if (file->f_mode & FMODE_READ) { in au1550_poll() 1175 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in au1550_ioctl() 1212 if (file->f_mode & FMODE_READ) { in au1550_ioctl() 1225 if (file->f_mode & FMODE_READ) { in au1550_ioctl() 1233 if (s->open_mode & FMODE_READ) in au1550_ioctl() 1240 return put_user((file->f_mode & FMODE_READ) ? in au1550_ioctl() 1248 if (file->f_mode & FMODE_READ) { in au1550_ioctl() 1266 if (file->f_mode & FMODE_READ) { in au1550_ioctl() 1298 if (file->f_mode & FMODE_READ) { in au1550_ioctl() [all …]
|
D | au1550_psc.c | 1246 if (file->f_mode & FMODE_READ) { in au1550_poll() 1254 if (file->f_mode & FMODE_READ) { in au1550_poll() 1378 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in au1550_ioctl() 1415 if (file->f_mode & FMODE_READ) { in au1550_ioctl() 1428 if (file->f_mode & FMODE_READ) { in au1550_ioctl() 1436 if (s->open_mode & FMODE_READ) in au1550_ioctl() 1443 return put_user((file->f_mode & FMODE_READ) ? in au1550_ioctl() 1451 if (file->f_mode & FMODE_READ) { in au1550_ioctl() 1479 if (file->f_mode & FMODE_READ) { in au1550_ioctl() 1554 if (file->f_mode & FMODE_READ) { in au1550_ioctl() [all …]
|
D | swarm_cs4297a.c | 819 out64((s->ena & FMODE_READ) ? M_SYNCSER_DMA_RX_EN : 0, in stop_dac() 860 s->ena &= ~FMODE_READ; in stop_adc() 881 if (!(s->ena & FMODE_READ) && in start_adc() 911 s->ena |= FMODE_READ; in start_adc() 940 if ((s->ena & FMODE_READ) || (status & (M_SYNCSER_RX_EOP_COUNT))) { in cs4297a_update_ptr() 945 if (s->ena & FMODE_READ) { in cs4297a_update_ptr() 1920 if (file->f_mode & FMODE_READ) { in cs4297a_poll() 1944 } else if (file->f_mode & FMODE_READ) { in cs4297a_poll() 1987 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in cs4297a_ioctl() 2024 if (file->f_mode & FMODE_READ) { in cs4297a_ioctl() [all …]
|
D | au1000.c | 1291 if (file->f_mode & FMODE_READ) { in au1000_poll() 1299 if (file->f_mode & FMODE_READ) { in au1000_poll() 1423 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in au1000_ioctl() 1460 if (file->f_mode & FMODE_READ) { in au1000_ioctl() 1473 if (file->f_mode & FMODE_READ) { in au1000_ioctl() 1481 if (s->open_mode & FMODE_READ) in au1000_ioctl() 1488 return put_user((file->f_mode & FMODE_READ) ? in au1000_ioctl() 1496 if (file->f_mode & FMODE_READ) { in au1000_ioctl() 1523 if (file->f_mode & FMODE_READ) { in au1000_ioctl() 1596 if (file->f_mode & FMODE_READ) { in au1000_ioctl() [all …]
|
D | ite8172.c | 1268 if (file->f_mode & FMODE_READ) { in it8172_poll() 1275 if (file->f_mode & FMODE_READ) { in it8172_poll() 1381 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in it8172_ioctl() 1419 if (file->f_mode & FMODE_READ) { in it8172_ioctl() 1432 if (file->f_mode & FMODE_READ) { in it8172_ioctl() 1445 return put_user((file->f_mode & FMODE_READ) ? in it8172_ioctl() 1451 if (file->f_mode & FMODE_READ) { in it8172_ioctl() 1477 if (file->f_mode & FMODE_READ) { in it8172_ioctl() 1518 if (file->f_mode & FMODE_READ) { in it8172_ioctl() 1543 if (file->f_mode & FMODE_READ) in it8172_ioctl() [all …]
|
D | sound_config.h | 114 #if OPEN_READ == FMODE_READ && OPEN_WRITE == FMODE_WRITE 125 return ((file->f_mode & FMODE_READ) ? OPEN_READ : 0) | in translate_mode()
|
D | sonicvibes.c | 289 #define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT) 1503 if (file->f_mode & FMODE_READ) { in sv_poll() 1510 if (file->f_mode & FMODE_READ) { in sv_poll() 1574 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in sv_ioctl() 1596 if (file->f_mode & FMODE_READ) { in sv_ioctl() 1607 if (file->f_mode & FMODE_READ) { in sv_ioctl() 1618 return put_user((file->f_mode & FMODE_READ) ? s->rateadc : s->ratedac, (int *)arg); in sv_ioctl() 1625 if (file->f_mode & FMODE_READ) { in sv_ioctl() 1650 if (file->f_mode & FMODE_READ) { in sv_ioctl() 1668 return put_user((s->fmt & ((file->f_mode & FMODE_READ) ? (SV_CFMT_STEREO << SV_CFMT_CSHIFT) in sv_ioctl() [all …]
|
D | es1371.c | 375 #define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT) 1509 if (file->f_mode & FMODE_READ) { in es1371_poll() 1516 if (file->f_mode & FMODE_READ) { in es1371_poll() 1589 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in es1371_ioctl() 1611 if (file->f_mode & FMODE_READ) { in es1371_ioctl() 1622 if (file->f_mode & FMODE_READ) { in es1371_ioctl() 1633 return put_user((file->f_mode & FMODE_READ) ? s->adcrate : s->dac2rate, (int *)arg); in es1371_ioctl() 1638 if (file->f_mode & FMODE_READ) { in es1371_ioctl() 1666 if (file->f_mode & FMODE_READ) { in es1371_ioctl() 1689 …return put_user((s->sctrl & ((file->f_mode & FMODE_READ) ? SCTRL_R1SMB : SCTRL_P2SMB)) ? 2 : 1, (i… in es1371_ioctl() [all …]
|
D | maestro3.c | 1502 if (file->f_mode & FMODE_READ) in m3_poll() 1508 if (file->f_mode & FMODE_READ) { in m3_poll() 1588 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in m3_ioctl() 1615 if (file->f_mode & FMODE_READ) { in m3_ioctl() 1627 if (file->f_mode & FMODE_READ) { in m3_ioctl() 1639 return put_user((file->f_mode & FMODE_READ) ? s->rateadc : s->ratedac, (int *)arg); in m3_ioctl() 1646 if (file->f_mode & FMODE_READ) { in m3_ioctl() 1672 if (file->f_mode & FMODE_READ) { in m3_ioctl() 1691 return put_user((s->fmt & ((file->f_mode & FMODE_READ) ? (ESS_FMT_STEREO << ESS_ADC_SHIFT) in m3_ioctl() 1703 if (file->f_mode & FMODE_READ) { in m3_ioctl() [all …]
|
D | esssolo1.c | 147 #define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT) 373 s->ena &= ~FMODE_READ; in stop_adc() 383 …if (!(s->ena & FMODE_READ) && (s->dma_adc.mapped || s->dma_adc.count < (signed)(s->dma_adc.dmasize… in start_adc() 385 s->ena |= FMODE_READ; in start_adc() 554 if (s->ena & FMODE_READ) { in solo1_update_ptr() 569 s->ena &= ~FMODE_READ; in solo1_update_ptr() 1193 if (file->f_mode & FMODE_READ) { in solo1_poll() 1200 if (file->f_mode & FMODE_READ) { in solo1_poll() 1270 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in solo1_ioctl() 1292 if (file->f_mode & FMODE_READ) { in solo1_ioctl() [all …]
|
D | es1370.c | 310 #define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT) 1320 if (file->f_mode & FMODE_READ) { in es1370_poll() 1327 if (file->f_mode & FMODE_READ) { in es1370_poll() 1399 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in es1370_ioctl() 1421 if (file->f_mode & FMODE_READ) { in es1370_ioctl() 1432 if (s->open_mode & (~file->f_mode) & (FMODE_READ|FMODE_WRITE)) in es1370_ioctl() 1451 if (file->f_mode & FMODE_READ) { in es1370_ioctl() 1479 if (file->f_mode & FMODE_READ) { in es1370_ioctl() 1502 …return put_user((s->sctrl & ((file->f_mode & FMODE_READ) ? SCTRL_R1SMB : SCTRL_P2SMB)) ? 2 : 1, (i… in es1370_ioctl() 1511 if (file->f_mode & FMODE_READ) { in es1370_ioctl() [all …]
|
D | msnd_pinnacle.c | 162 if (dev.mode & FMODE_READ) { in reset_queues() 189 if (file->f_mode & FMODE_READ) in dsp_set_format() 194 if (file->f_mode & FMODE_READ) in dsp_set_format() 244 if (!(file->f_mode & FMODE_READ)) in dsp_ioctl() 296 if (file->f_mode & FMODE_READ) in dsp_ioctl() 321 if (file->f_mode & FMODE_READ) in dsp_ioctl() 326 if (file->f_mode & FMODE_READ) in dsp_ioctl() 364 if (file->f_mode & FMODE_READ) in dsp_ioctl() 369 if (file->f_mode & FMODE_READ) in dsp_ioctl() 677 if ((file ? file->f_mode : dev.mode) & FMODE_READ) { in dsp_halt() [all …]
|
D | hal2.c | 993 if (file->f_mode & FMODE_READ) { in hal2_ioctl() 1006 if (file->f_mode & FMODE_READ) { in hal2_ioctl() 1023 if (file->f_mode & FMODE_READ) { in hal2_ioctl() 1039 if (file->f_mode & FMODE_READ) { in hal2_ioctl() 1051 if (file->f_mode & FMODE_READ) in hal2_ioctl() 1066 if (file->f_mode & FMODE_READ) { in hal2_ioctl() 1078 if (file->f_mode & FMODE_READ) in hal2_ioctl() 1115 if (!(file->f_mode & FMODE_READ)) in hal2_ioctl() 1144 if (file->f_mode & FMODE_READ) in hal2_ioctl() 1152 if (file->f_mode & FMODE_READ) in hal2_ioctl() [all …]
|
D | rme96xx.c | 1218 if (file->f_mode & FMODE_READ) { in rme96xx_ioctl() 1257 if (file->f_mode & FMODE_READ && s->ctrl & CTRL_ADC_EN) in rme96xx_ioctl() 1268 if (file->f_mode & FMODE_READ) { in rme96xx_ioctl() 1304 if (!(file->f_mode & FMODE_READ)) in rme96xx_ioctl() 1336 if (!(file->f_mode & FMODE_READ)) in rme96xx_ioctl() 1354 if (!(file->f_mode & FMODE_READ)) in rme96xx_ioctl() 1384 if ((file->f_mode & FMODE_READ && s->dma_adc.subdivision) || in rme96xx_ioctl() 1391 if (file->f_mode & FMODE_READ) in rme96xx_ioctl() 1477 dma->open_mode |= (f->f_mode & (FMODE_READ | FMODE_WRITE)); in rme96xx_open() 1503 dma->open_mode &= (~file->f_mode) & (FMODE_READ|FMODE_WRITE); in rme96xx_release() [all …]
|
D | nec_vrc5477.c | 1284 if (file->f_mode & FMODE_READ) in vrc5477_ac97_poll() 1287 if (file->f_mode & FMODE_READ) { in vrc5477_ac97_poll() 1384 if (file->f_mode & FMODE_READ) { in vrc5477_ac97_ioctl() 1396 if (file->f_mode & FMODE_READ) { in vrc5477_ac97_ioctl() 1409 return put_user((file->f_mode & FMODE_READ) ? in vrc5477_ac97_ioctl() 1415 if (file->f_mode & FMODE_READ) { in vrc5477_ac97_ioctl() 1441 if (file->f_mode & FMODE_READ) { in vrc5477_ac97_ioctl() 1464 if (file->f_mode & FMODE_READ) { in vrc5477_ac97_ioctl() 1502 if (!(file->f_mode & FMODE_READ)) in vrc5477_ac97_ioctl() 1548 return put_user((file->f_mode & FMODE_READ) ? in vrc5477_ac97_ioctl() [all …]
|
D | cs46xx.c | 1823 if (file->f_flags & FMODE_READ) in cs_midi_poll() 1826 if (file->f_flags & FMODE_READ) { in cs_midi_poll() 1877 if (!(card->midi.open_mode & (FMODE_READ | FMODE_WRITE))) { in cs_midi_open() 1884 if (file->f_mode & FMODE_READ) { in cs_midi_open() 1891 card->midi.open_mode |= (file->f_mode & (FMODE_READ | FMODE_WRITE)); in cs_midi_open() 1926 card->midi.open_mode &= (~(file->f_mode & (FMODE_READ | FMODE_WRITE))); in cs_midi_release() 2337 if (!(file->f_mode & (FMODE_WRITE | FMODE_READ))) in cs_poll() 2350 if (file->f_mode & FMODE_READ) in cs_poll() 2362 if (file->f_mode & FMODE_READ) { in cs_poll() 2496 mapped = (file->f_mode & FMODE_READ) && dmabuf->mapped; in cs_ioctl() [all …]
|
D | cmpci.c | 325 #define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT) 2061 if (file->f_mode & FMODE_READ) in cm_poll() 2065 if (file->f_mode & FMODE_READ) { in cm_poll() 2138 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in cm_ioctl() 2162 if (file->f_mode & FMODE_READ) { in cm_ioctl() 2173 if (file->f_mode & FMODE_READ) { in cm_ioctl() 2188 return put_user((file->f_mode & FMODE_READ) ? s->rateadc : s->ratedac, (int *)arg); in cm_ioctl() 2195 if (file->f_mode & FMODE_READ) { in cm_ioctl() 2227 if (file->f_mode & FMODE_READ) { in cm_ioctl() 2257 return put_user((s->fmt & ((file->f_mode & FMODE_READ) ? (CM_CFMT_STEREO << CM_CFMT_ADCSHIFT) in cm_ioctl() [all …]
|
D | maestro.c | 2454 if (file->f_mode & FMODE_READ) { in ess_poll() 2461 if (file->f_mode & FMODE_READ) in ess_poll() 2465 if (file->f_mode & FMODE_READ) { in ess_poll() 2535 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in ess_ioctl() 2558 if (file->f_mode & FMODE_READ) { in ess_ioctl() 2569 if (file->f_mode & FMODE_READ) { in ess_ioctl() 2580 return put_user((file->f_mode & FMODE_READ) ? s->rateadc : s->ratedac, (int *)arg); in ess_ioctl() 2587 if (file->f_mode & FMODE_READ) { in ess_ioctl() 2612 if (file->f_mode & FMODE_READ) { in ess_ioctl() 2630 return put_user((s->fmt & ((file->f_mode & FMODE_READ) ? (ESS_FMT_STEREO << ESS_ADC_SHIFT) in ess_ioctl() [all …]
|
/linux-2.4.37.9/drivers/sound/emu10k1/ |
D | audio.c | 267 if (file->f_mode & FMODE_READ) 294 if (file->f_mode & FMODE_READ) { 336 if (file->f_mode & FMODE_READ) { 368 if (file->f_mode & FMODE_READ) { 410 if (file->f_mode & FMODE_READ) 427 if (file->f_mode & FMODE_READ) { 479 if (file->f_mode & FMODE_READ) { 518 if (file->f_mode & FMODE_READ) 530 if (file->f_mode & FMODE_READ) 550 if (file->f_mode & FMODE_READ) { [all …]
|
D | midi.h | 36 #define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT)
|
D | midi.c | 144 if (file->f_mode & FMODE_READ) { in emu10k1_midi_open() 217 if (file->f_mode & FMODE_READ) { in emu10k1_midi_release() 384 if (file->f_mode & FMODE_READ) in emu10k1_midi_poll() 392 if (file->f_mode & FMODE_READ) { in emu10k1_midi_poll()
|
/linux-2.4.37.9/drivers/isdn/hysdn/ |
D | hysdn_procconf.c | 222 if (!(file->f_mode & FMODE_READ)) in hysdn_conf_read() 273 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_conf_open() 285 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_conf_open() 358 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_conf_close() 368 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_conf_close()
|
D | hysdn_proclog.c | 272 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_open() 274 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_log_open() 310 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_close() 367 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) in hysdn_log_poll()
|
/linux-2.4.37.9/drivers/sound/cs4281/ |
D | cs4281m.c | 209 #define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT) 1667 s->ena &= ~FMODE_READ; in stop_adc() 1689 if (!(s->ena & FMODE_READ) && in start_adc() 1728 s->ena |= FMODE_READ; in start_adc() 2012 if (s->ena & FMODE_READ) { in cs4281_update_ptr() 2149 s->ena &= ~FMODE_READ; // not capturing data yet in prog_codec() 3155 } else if (file->f_mode & FMODE_READ) { in cs4281_poll() 3179 } else if (file->f_mode & FMODE_READ) { in cs4281_poll() 3259 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); in cs4281_ioctl() 3295 if (file->f_mode & FMODE_READ) { in cs4281_ioctl() [all …]
|
/linux-2.4.37.9/drivers/sound/dmasound/ |
D | dmasound_core.c | 670 if (file->f_mode & FMODE_READ) in sq_poll() 672 if (file->f_mode & FMODE_READ) in sq_poll() 854 #define read_sq_wake_up(file) sq_wake_up(&read_sq, file, FMODE_READ) 858 sq_open2(&read_sq, file, FMODE_READ, numReadBufs, readBufSize ) 885 if (file->f_mode & FMODE_READ) { in sq_open() 893 if (file->f_mode & FMODE_READ) { in sq_open() 1031 if (file->f_mode & FMODE_READ) { in sq_release() 1175 if (dmasound.mach.record && (file->f_mode & FMODE_READ)) { in sq_ioctl() 1203 if ((file->f_mode & FMODE_READ) && dmasound.mach.record) in sq_ioctl() 1286 if ((file->f_mode & FMODE_READ) && dmasound.mach.record) { in sq_ioctl()
|