Home
last modified time | relevance | path

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

12

/sound/core/seq/
Dseq_fifo.c35 struct snd_seq_fifo *f; in snd_seq_fifo_new() local
37 f = kzalloc(sizeof(*f), GFP_KERNEL); in snd_seq_fifo_new()
38 if (!f) 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) 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.c341 unsigned long flags,f ; in dma_reset_output() local
371 f=claim_dma_lock(); in dma_reset_output()
374 release_dma_lock(f); in dma_reset_output()
643 unsigned long f; in DMAbuf_get_buffer_pointer() local
650 f=claim_dma_lock(); in DMAbuf_get_buffer_pointer()
679 release_dma_lock(f); in DMAbuf_get_buffer_pointer()
1038 unsigned long f; in DMAbuf_outputintr() local
1040 f=claim_dma_lock(); in DMAbuf_outputintr()
1048 release_dma_lock(f); in DMAbuf_outputintr()
1140 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.c291 unsigned int f, port; in write_midi_messages() local
294 for (f = 0; f < frames; f++) { in write_midi_messages()
297 port = (s->data_block_counter + f) % 8; in write_midi_messages()
298 if (f < MAX_MIDI_RX_BLOCKS && in write_midi_messages()
319 unsigned int f, port; in read_midi_messages() local
323 for (f = 0; f < frames; f++) { in read_midi_messages()
324 port = (8 - s->tx_first_dbc + s->data_block_counter + f) % 8; in read_midi_messages()
/sound/firewire/digi00x/
Damdtp-dot.c241 unsigned int f, port; in write_midi_messages() local
245 for (f = 0; f < data_blocks; f++) { in write_midi_messages()
246 port = (s->data_block_counter + f) % 8; in write_midi_messages()
285 unsigned int f, port, len; in read_midi_messages() local
288 for (f = 0; f < data_blocks; f++) { in read_midi_messages()
/sound/usb/
Dendpoint.c1096 unsigned int f; in snd_usb_handle_sync_urb() local
1178 f = le32_to_cpup(urb->transfer_buffer); in snd_usb_handle_sync_urb()
1180 f &= 0x00ffffff; in snd_usb_handle_sync_urb()
1182 f &= 0x0fffffff; in snd_usb_handle_sync_urb()
1184 if (f == 0) in snd_usb_handle_sync_urb()
1193 if (f < ep->freqn - 0x8000) in snd_usb_handle_sync_urb()
1194 f += 0xf000; in snd_usb_handle_sync_urb()
1195 else if (f > ep->freqn + 0x8000) in snd_usb_handle_sync_urb()
1196 f -= 0xf000; in snd_usb_handle_sync_urb()
1205 while (f < ep->freqn - ep->freqn / 4) { in snd_usb_handle_sync_urb()
[all …]
/sound/core/
Dcompress_offload.c90 static int snd_compr_open(struct inode *inode, struct file *f) in snd_compr_open() argument
99 if ((f->f_flags & O_ACCMODE) == O_WRONLY) in snd_compr_open()
101 else if ((f->f_flags & O_ACCMODE) == O_RDONLY) in snd_compr_open()
144 f->private_data = (void *)data; in snd_compr_open()
156 static int snd_compr_free(struct inode *inode, struct file *f) in snd_compr_free() argument
158 struct snd_compr_file *data = f->private_data; in snd_compr_free()
293 static ssize_t snd_compr_write(struct file *f, const char __user *buf, in snd_compr_write() argument
296 struct snd_compr_file *data = f->private_data; in snd_compr_write()
344 static ssize_t snd_compr_read(struct file *f, char __user *buf, in snd_compr_read() argument
347 struct snd_compr_file *data = f->private_data; in snd_compr_read()
[all …]
Dpcm_native.c1943 struct fd f = fdget(fd); in snd_pcm_link() local
1945 if (!f.file) in snd_pcm_link()
1947 if (!is_pcm_file(f.file)) { in snd_pcm_link()
1951 pcm_file = f.file->private_data; in snd_pcm_link()
1989 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 = DIV_ROUND_UP(size, 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.c336 snd_pcm_format_t f = preferred_formats[i]; in snd_pcm_plug_slave_format() local
338 if (!snd_mask_test(format_mask, (__force int)f)) in snd_pcm_plug_slave_format()
340 w = snd_pcm_format_width(f); in snd_pcm_plug_slave_format()
345 badness += snd_pcm_format_unsigned(f) != unsignd; in snd_pcm_plug_slave_format()
346 badness += snd_pcm_format_big_endian(f) != big; in snd_pcm_plug_slave_format()
348 best_format = f; in snd_pcm_plug_slave_format()
/sound/soc/sh/rcar/
Dssi.c103 #define rsnd_ssi_flags_has(p, f) ((p)->flags & f) argument
104 #define rsnd_ssi_flags_set(p, f) ((p)->flags |= f) argument
105 #define rsnd_ssi_flags_del(p, f) ((p)->flags = ((p)->flags & ~f)) argument
/sound/pci/oxygen/
Doxygen_regs.h147 #define OXYGEN_I2S_MCLK(f) (((f) & 3) << OXYGEN_I2S_MCLK_SHIFT) argument
/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/codecs/
Dwm8974.c425 unsigned int f; in wm8974_update_clocks() local
433 f = wm8974_get_mclkdiv(priv->mclk, fs256, &mclkdiv); in wm8974_update_clocks()
435 if (f != priv->mclk) { in wm8974_update_clocks()
/sound/soc/intel/atom/
Dsst-atom-controls.h327 dst.location_id.f = (loc_id))
355 u16 f; /* full */ member
/sound/sparc/
Ddbri.c2010 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in snd_hw_rule_format() local
2016 return snd_mask_refine(f, &fmt); in snd_hw_rule_format()
2026 struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in snd_hw_rule_channels() local
2030 if (!(f->bits[0] & SNDRV_PCM_FMTBIT_S16_BE)) { in snd_hw_rule_channels()

12