Home
last modified time | relevance | path

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

12

/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) in snd_seq_fifo_new()
39 f->pool = snd_seq_pool_new(poolsize); in snd_seq_fifo_new()
40 if (f->pool == NULL) { in snd_seq_fifo_new()
41 kfree(f); in snd_seq_fifo_new()
44 if (snd_seq_pool_init(f->pool) < 0) { in snd_seq_fifo_new()
45 snd_seq_pool_delete(&f->pool); in snd_seq_fifo_new()
46 kfree(f); in snd_seq_fifo_new()
50 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) in snd_seq_prioq_new()
65 spin_lock_init(&f->lock); in snd_seq_prioq_new()
66 f->head = NULL; in snd_seq_prioq_new()
67 f->tail = NULL; in snd_seq_prioq_new()
68 f->cells = 0; in snd_seq_prioq_new()
70 return f; in snd_seq_prioq_new()
76 struct snd_seq_prioq *f = *fifo; in snd_seq_prioq_delete() local
79 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);
72 int snd_seq_fifo_unused_cells(struct snd_seq_fifo *f);
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,
51 int snd_seq_prioq_avail(struct snd_seq_prioq *f);
54 void snd_seq_prioq_leave(struct snd_seq_prioq *f, int client, int timestamp);
57 void snd_seq_prioq_remove_events(struct snd_seq_prioq *f, int client,
/sound/oss/
Dmsnd.c88 void msnd_fifo_init(msnd_fifo *f) in msnd_fifo_init() argument
90 f->data = NULL; in msnd_fifo_init()
93 void msnd_fifo_free(msnd_fifo *f) in msnd_fifo_free() argument
95 vfree(f->data); in msnd_fifo_free()
96 f->data = NULL; in msnd_fifo_free()
99 int msnd_fifo_alloc(msnd_fifo *f, size_t n) in msnd_fifo_alloc() argument
101 msnd_fifo_free(f); in msnd_fifo_alloc()
102 f->data = vmalloc(n); in msnd_fifo_alloc()
103 f->n = n; in msnd_fifo_alloc()
104 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.c339 unsigned long flags,f ; in dma_reset_output() local
369 f=claim_dma_lock(); in dma_reset_output()
372 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()
1036 unsigned long f; in DMAbuf_outputintr() local
1038 f=claim_dma_lock(); in DMAbuf_outputintr()
1046 release_dma_lock(f); in DMAbuf_outputintr()
1138 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()
Dvidc_fill.S178 bne 1f
/sound/firewire/
Damdtp-am824.c358 unsigned int f, port; in write_midi_messages() local
361 for (f = 0; f < frames; f++) { in write_midi_messages()
364 port = (s->data_block_counter + f) % 8; in write_midi_messages()
365 if (f < MAX_MIDI_RX_BLOCKS && in write_midi_messages()
386 unsigned int f, port; in read_midi_messages() local
390 for (f = 0; f < frames; f++) { in read_midi_messages()
391 port = (8 - s->tx_first_dbc + s->data_block_counter + f) % 8; in read_midi_messages()
/sound/usb/
Dendpoint.c1086 unsigned int f; in snd_usb_handle_sync_urb() local
1168 f = le32_to_cpup(urb->transfer_buffer); in snd_usb_handle_sync_urb()
1170 f &= 0x00ffffff; in snd_usb_handle_sync_urb()
1172 f &= 0x0fffffff; in snd_usb_handle_sync_urb()
1174 if (f == 0) in snd_usb_handle_sync_urb()
1182 if (f < ep->freqn - 0x8000) in snd_usb_handle_sync_urb()
1183 f += 0x10000; in snd_usb_handle_sync_urb()
1184 else if (f > ep->freqn + 0x8000) in snd_usb_handle_sync_urb()
1185 f -= 0x10000; in snd_usb_handle_sync_urb()
1194 while (f < ep->freqn - ep->freqn / 4) { in snd_usb_handle_sync_urb()
[all …]
/sound/firewire/digi00x/
Damdtp-dot.c271 unsigned int f, port; in write_midi_messages() local
275 for (f = 0; f < data_blocks; f++) { in write_midi_messages()
276 port = (s->data_block_counter + f) % 8; in write_midi_messages()
315 unsigned int f, port, len; in read_midi_messages() local
318 for (f = 0; f < data_blocks; f++) { in read_midi_messages()
/sound/core/
Dcompress_offload.c84 static int snd_compr_open(struct inode *inode, struct file *f) in snd_compr_open() argument
93 if ((f->f_flags & O_ACCMODE) == O_WRONLY) in snd_compr_open()
95 else if ((f->f_flags & O_ACCMODE) == O_RDONLY) in snd_compr_open()
135 f->private_data = (void *)data; in snd_compr_open()
147 static int snd_compr_free(struct inode *inode, struct file *f) in snd_compr_free() argument
149 struct snd_compr_file *data = f->private_data; in snd_compr_free()
273 static ssize_t snd_compr_write(struct file *f, const char __user *buf, in snd_compr_write() argument
276 struct snd_compr_file *data = f->private_data; in snd_compr_write()
320 static ssize_t snd_compr_read(struct file *f, char __user *buf, in snd_compr_read() argument
323 struct snd_compr_file *data = f->private_data; in snd_compr_read()
[all …]
Dpcm_native.c1829 struct fd f = fdget(fd); in snd_pcm_link() local
1831 if (!f.file) in snd_pcm_link()
1833 if (!is_pcm_file(f.file)) { in snd_pcm_link()
1837 pcm_file = f.file->private_data; in snd_pcm_link()
1880 fdput(f); in snd_pcm_link()
/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.c258 #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
265 #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
276 #define SEND_TXAC(p,b,c,d,e,f) sendcmd(p,PARM,TXAC|BYTE1(b)|WORD2(c),WORD0(d)|BYTE2(e)|BYTE3(f)… argument
1491 unsigned int i, j, size, pages, f, pt, period; in snd_riptide_prepare() local
1496 f = PAGE_SIZE; in snd_riptide_prepare()
1497 while ((size + (f >> 1) - 1) <= (f << 7) && (f << 1) > period) in snd_riptide_prepare()
1498 f = f >> 1; in snd_riptide_prepare()
1499 pages = (size + f - 1) / f; in snd_riptide_prepare()
1504 size, pages, f, period); in snd_riptide_prepare()
1519 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.c355 snd_pcm_format_t f = preferred_formats[i]; in snd_pcm_plug_slave_format() local
357 if (!snd_mask_test(format_mask, (__force int)f)) in snd_pcm_plug_slave_format()
359 w = snd_pcm_format_width(f); in snd_pcm_plug_slave_format()
364 badness += snd_pcm_format_unsigned(f) != unsignd; in snd_pcm_plug_slave_format()
365 badness += snd_pcm_format_big_endian(f) != big; in snd_pcm_plug_slave_format()
367 best_format = f; in snd_pcm_plug_slave_format()
Dpcm_oss.c1925 int f = snd_pcm_oss_format_to(fmt); in snd_pcm_oss_get_formats() local
1926 if (f >= 0) in snd_pcm_oss_get_formats()
1927 formats |= f; in snd_pcm_oss_get_formats()
/sound/pci/oxygen/
Doxygen_regs.h146 #define OXYGEN_I2S_MCLK(f) (((f) & 3) << OXYGEN_I2S_MCLK_SHIFT) argument
Dxonar_wm87x6.c1001 #define WM8776_FIELD_CTL_VOLUME(a, b, c, d, e, f, g, h, tlv_p) { \ argument
1002 _WM8776_FIELD_CTL(a " Capture Volume", b, c, d, e, f, g, h), \
/sound/pci/asihpi/
Dhpi_internal.h357 #define HPI_ADAPTER_FAMILY_ASI(f) (f & HPI_ADAPTER_FAMILY_MASK) argument
358 #define HPI_MODULE_FAMILY_ASI(f) (f & HPI_MODULE_FAMILY_MASK) argument
359 #define HPI_ADAPTER_ASI(f) (f) argument
/sound/pci/echoaudio/
Dechoaudio.c123 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_rule_capture_format_by_channels() local
132 return snd_mask_refine(f, &fmt); in hw_rule_capture_format_by_channels()
138 return snd_mask_refine(f, &fmt); in hw_rule_capture_format_by_channels()
151 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_rule_capture_channels_by_format() local
157 if (f->bits[0] == SNDRV_PCM_FMTBIT_S32_BE) { in hw_rule_capture_channels_by_format()
168 if (f->bits[0] == SNDRV_PCM_FMTBIT_U8) { in hw_rule_capture_channels_by_format()
185 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_rule_playback_format_by_channels() local
210 return snd_mask_refine(f, &fmt); in hw_rule_playback_format_by_channels()
220 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_rule_playback_channels_by_format() local
226 fmask = f->bits[0] + ((u64)f->bits[1] << 32); in hw_rule_playback_channels_by_format()
/sound/soc/intel/atom/
Dsst-atom-controls.h320 dst.location_id.f = (loc_id))
348 u16 f; /* full */ member
/sound/sparc/
Ddbri.c2003 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in snd_hw_rule_format() local
2009 return snd_mask_refine(f, &fmt); in snd_hw_rule_format()
2019 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in snd_hw_rule_channels() local
2023 if (!(f->bits[0] & SNDRV_PCM_FMTBIT_S16_BE)) { in snd_hw_rule_channels()

12