Home
last modified time | relevance | path

Searched refs:FMODE_READ (Results 1 – 25 of 75) sorted by relevance

123

/linux-2.4.37.9/drivers/sound/
Dau1550_i2s.c1043 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 …]
Dau1550_psc.c1246 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 …]
Dswarm_cs4297a.c819 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 …]
Dau1000.c1291 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 …]
Dite8172.c1268 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 …]
Dsound_config.h114 #if OPEN_READ == FMODE_READ && OPEN_WRITE == FMODE_WRITE
125 return ((file->f_mode & FMODE_READ) ? OPEN_READ : 0) | in translate_mode()
Dsonicvibes.c289 #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 …]
Des1371.c375 #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 …]
Dmaestro3.c1502 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 …]
Desssolo1.c147 #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 …]
Des1370.c310 #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 …]
Dmsnd_pinnacle.c162 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 …]
Dhal2.c993 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 …]
Drme96xx.c1218 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 …]
Dnec_vrc5477.c1284 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 …]
Dcs46xx.c1823 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 …]
Dcmpci.c325 #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 …]
Dmaestro.c2454 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/
Daudio.c267 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 …]
Dmidi.h36 #define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT)
Dmidi.c144 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/
Dhysdn_procconf.c222 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()
Dhysdn_proclog.c272 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/
Dcs4281m.c209 #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/
Ddmasound_core.c670 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()

123