Home
last modified time | relevance | path

Searched refs:f (Results 1 – 19 of 19) sorted by relevance

/sound/core/seq/
Dseq_fifo.c33 struct snd_seq_fifo *f; in snd_seq_fifo_new() local
35 f = kzalloc(sizeof(*f), GFP_KERNEL); in snd_seq_fifo_new()
36 if (f == NULL) { in snd_seq_fifo_new()
41 f->pool = snd_seq_pool_new(poolsize); in snd_seq_fifo_new()
42 if (f->pool == NULL) { in snd_seq_fifo_new()
43 kfree(f); in snd_seq_fifo_new()
46 if (snd_seq_pool_init(f->pool) < 0) { in snd_seq_fifo_new()
47 snd_seq_pool_delete(&f->pool); in snd_seq_fifo_new()
48 kfree(f); in snd_seq_fifo_new()
52 spin_lock_init(&f->lock); in snd_seq_fifo_new()
[all …]
Dseq_prioq.c59 struct snd_seq_prioq *f; in snd_seq_prioq_new() local
61 f = kzalloc(sizeof(*f), GFP_KERNEL); in snd_seq_prioq_new()
62 if (f == NULL) { in snd_seq_prioq_new()
67 spin_lock_init(&f->lock); in snd_seq_prioq_new()
68 f->head = NULL; in snd_seq_prioq_new()
69 f->tail = NULL; in snd_seq_prioq_new()
70 f->cells = 0; in snd_seq_prioq_new()
72 return f; in snd_seq_prioq_new()
78 struct snd_seq_prioq *f = *fifo; in snd_seq_prioq_delete() local
81 if (f == NULL) { in snd_seq_prioq_delete()
[all …]
Dseq_fifo.h46 void snd_seq_fifo_delete(struct snd_seq_fifo **f);
50 int snd_seq_fifo_event_in(struct snd_seq_fifo *f, struct snd_seq_event *event);
57 int snd_seq_fifo_cell_out(struct snd_seq_fifo *f, struct snd_seq_event_cell **cellp, int nonblock);
60 void snd_seq_fifo_cell_putback(struct snd_seq_fifo *f, struct snd_seq_event_cell *cell);
63 void snd_seq_fifo_clear(struct snd_seq_fifo *f);
66 int snd_seq_fifo_poll_wait(struct snd_seq_fifo *f, struct file *file, poll_table *wait);
69 int snd_seq_fifo_resize(struct snd_seq_fifo *f, int poolsize);
Dseq_prioq.h44 int snd_seq_prioq_cell_in(struct snd_seq_prioq *f, struct snd_seq_event_cell *cell);
47 struct snd_seq_event_cell *snd_seq_prioq_cell_out(struct snd_seq_prioq *f);
50 int snd_seq_prioq_avail(struct snd_seq_prioq *f);
53 struct snd_seq_event_cell *snd_seq_prioq_cell_peek(struct snd_seq_prioq *f);
56 void snd_seq_prioq_leave(struct snd_seq_prioq *f, int client, int timestamp);
59 void snd_seq_prioq_remove_events(struct snd_seq_prioq *f, int client,
/sound/oss/
Dmsnd.c89 void msnd_fifo_init(msnd_fifo *f) in msnd_fifo_init() argument
91 f->data = NULL; in msnd_fifo_init()
94 void msnd_fifo_free(msnd_fifo *f) in msnd_fifo_free() argument
96 vfree(f->data); in msnd_fifo_free()
97 f->data = NULL; in msnd_fifo_free()
100 int msnd_fifo_alloc(msnd_fifo *f, size_t n) in msnd_fifo_alloc() argument
102 msnd_fifo_free(f); in msnd_fifo_alloc()
103 f->data = (char *)vmalloc(n); in msnd_fifo_alloc()
104 f->n = n; in msnd_fifo_alloc()
105 f->tail = 0; in msnd_fifo_alloc()
[all …]
Dmsnd.h262 void msnd_fifo_init(msnd_fifo *f);
263 void msnd_fifo_free(msnd_fifo *f);
264 int msnd_fifo_alloc(msnd_fifo *f, size_t n);
265 void msnd_fifo_make_empty(msnd_fifo *f);
266 int msnd_fifo_write_io(msnd_fifo *f, char __iomem *buf, size_t len);
267 int msnd_fifo_read_io(msnd_fifo *f, char __iomem *buf, size_t len);
268 int msnd_fifo_write(msnd_fifo *f, const char *buf, size_t len);
269 int msnd_fifo_read(msnd_fifo *f, char *buf, size_t len);
Ddmabuf.c336 unsigned long flags,f ; in dma_reset_output() local
367 f=claim_dma_lock(); in dma_reset_output()
370 release_dma_lock(f); in dma_reset_output()
641 unsigned long f; in DMAbuf_get_buffer_pointer() local
648 f=claim_dma_lock(); in DMAbuf_get_buffer_pointer()
677 release_dma_lock(f); in DMAbuf_get_buffer_pointer()
1037 unsigned long f; in DMAbuf_outputintr() local
1039 f=claim_dma_lock(); in DMAbuf_outputintr()
1047 release_dma_lock(f); in DMAbuf_outputintr()
1139 unsigned long f; in DMAbuf_inputintr() local
[all …]
Dopl3.c679 int f, octave; in freq_to_fnum() local
688 f = freq; in freq_to_fnum()
692 if (f == 0) in freq_to_fnum()
694 else if (f < 261) in freq_to_fnum()
696 while (f < 261) in freq_to_fnum()
699 f <<= 1; in freq_to_fnum()
702 else if (f > 493) in freq_to_fnum()
704 while (f > 493) in freq_to_fnum()
707 f >>= 1; in freq_to_fnum()
Dac97_codec.c704 u16 f; in ac97_probe_codec() local
756 f = codec->codec_read(codec, AC97_EXTENDED_STATUS); in ac97_probe_codec()
757 if((codec->codec_ops == &null_ops) && (f & 4)) in ac97_probe_codec()
Dvidc_fill.S178 bne 1f
Dswarm_cs4297a.c191 #define SERDMA_NEXTBUF(d,f) (((d)->f+1) % (d)->ringsz) argument
/sound/usb/
Dusbaudio.c444 unsigned int f; in retire_playback_sync_urb() local
449 f = combine_triple((u8*)urb->transfer_buffer) << 2; in retire_playback_sync_urb()
450 if (f >= subs->freqn - subs->freqn / 8 && f <= subs->freqmax) { in retire_playback_sync_urb()
452 subs->freqm = f; in retire_playback_sync_urb()
470 unsigned int f; in retire_playback_sync_urb_hs() local
475 f = combine_quad((u8*)urb->transfer_buffer) & 0x0fffffff; in retire_playback_sync_urb_hs()
476 if (f >= subs->freqn - subs->freqn / 8 && f <= subs->freqmax) { in retire_playback_sync_urb_hs()
478 subs->freqm = f; in retire_playback_sync_urb_hs()
496 unsigned int f; in retire_playback_sync_urb_hs_emu() local
501 f = combine_quad((u8*)urb->transfer_buffer) & 0x0fffffff; in retire_playback_sync_urb_hs_emu()
[all …]
/sound/ppc/
Dbeep.c108 int i, j, f; in snd_pmac_beep_event() local
152 f = ncycles * 65536 / nsamples; in snd_pmac_beep_event()
157 j = (j + f) & 0xffff; in snd_pmac_beep_event()
/sound/pci/riptide/
Driptide.c256 #define SEND_SETF(p,b,c,d,e,f,g) sendcmd(p,PARM,SETF|WORD1(b)|BYTE3(c),d|BYTE1(e)|BYTE2(f)|BYTE3(… argument
263 #define SEND_LSEL(p,b,c,d,e,f,g,h) sendcmd(p,PARM,LSEL|BYTE1(b)|BYTE2(c)|BYTE3(d),BYTE0(e)|BYTE1(f)… argument
274 #define SEND_TXAC(p,b,c,d,e,f) sendcmd(p,PARM,TXAC|BYTE1(b)|WORD2(c),WORD0(d)|BYTE2(e)|BYTE3(f)… argument
1520 unsigned int i, j, size, pages, f, pt, period; in snd_riptide_prepare() local
1525 f = PAGE_SIZE; in snd_riptide_prepare()
1526 while ((size + (f >> 1) - 1) <= (f << 7) && (f << 1) > period) in snd_riptide_prepare()
1527 f = f >> 1; in snd_riptide_prepare()
1528 pages = (size + f - 1) / f; in snd_riptide_prepare()
1533 size, pages, f, period); in snd_riptide_prepare()
1548 pt = (pt + f) % PAGE_SIZE; in snd_riptide_prepare()
[all …]
/sound/pci/au88x0/
Dau88x0_core.c809 int empty, int valid, int f) in vortex_fifo_setadbctrl()
846 temp = (temp & 0xfffbffff) | ((f & 1) << 0x12); in vortex_fifo_setadbctrl()
849 temp = (temp & 0xf7ffffff) | ((f & 1) << 0x1b); in vortex_fifo_setadbctrl()
850 temp = (temp & 0xefffffff) | ((f & 1) << 0x1c); in vortex_fifo_setadbctrl()
853 temp = (temp & 0xfeffffff) | ((f & 1) << 0x18); in vortex_fifo_setadbctrl()
854 temp = (temp & 0xfdffffff) | ((f & 1) << 0x19); in vortex_fifo_setadbctrl()
860 temp = ((f & 1) << 0x12) | (temp & 0xfffbffef); in vortex_fifo_setadbctrl()
864 ((f & 1) << 0x1b) | (temp & 0xe7ffffef) | FIFO_BITS; in vortex_fifo_setadbctrl()
868 ((f & 1) << 0x18) | (temp & 0xfcffffef) | FIFO_BITS; in vortex_fifo_setadbctrl()
910 int empty, int valid, int f) in vortex_fifo_setwtctrl()
[all …]
/sound/core/oss/
Dpcm_plugin.c324 int f = preferred_formats[i]; in snd_pcm_plug_slave_format() local
326 if (!snd_mask_test(format_mask, f)) in snd_pcm_plug_slave_format()
328 w = snd_pcm_format_width(f); in snd_pcm_plug_slave_format()
333 badness += snd_pcm_format_unsigned(f) != unsignd; in snd_pcm_plug_slave_format()
334 badness += snd_pcm_format_big_endian(f) != big; in snd_pcm_plug_slave_format()
336 best_format = f; in snd_pcm_plug_slave_format()
Dpcm_oss.c1783 int f = snd_pcm_oss_format_to(fmt); in snd_pcm_oss_get_formats() local
1784 if (f >= 0) in snd_pcm_oss_get_formats()
1785 formats |= f; in snd_pcm_oss_get_formats()
/sound/pci/echoaudio/
Dechoaudio.c79 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_rule_capture_format_by_channels() local
88 return snd_mask_refine(f, &fmt); in hw_rule_capture_format_by_channels()
94 return snd_mask_refine(f, &fmt); in hw_rule_capture_format_by_channels()
107 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_rule_capture_channels_by_format() local
113 if (f->bits[0] == SNDRV_PCM_FMTBIT_S32_BE) { in hw_rule_capture_channels_by_format()
124 if (f->bits[0] == SNDRV_PCM_FMTBIT_U8) { in hw_rule_capture_channels_by_format()
141 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_rule_playback_format_by_channels() local
166 return snd_mask_refine(f, &fmt); in hw_rule_playback_format_by_channels()
176 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_rule_playback_channels_by_format() local
182 fmask = f->bits[0] + ((u64)f->bits[1] << 32); in hw_rule_playback_channels_by_format()
/sound/sparc/
Ddbri.c2000 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in snd_hw_rule_format() local
2006 return snd_mask_refine(f, &fmt); in snd_hw_rule_format()
2016 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in snd_hw_rule_channels() local
2020 if (!(f->bits[0] & SNDRV_PCM_FMTBIT_S16_BE)) { in snd_hw_rule_channels()