Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 50) sorted by relevance

12

/sound/firewire/
Dpackets-buffer.c21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, in iso_packets_buffer_init() argument
30 b->packets = kmalloc(count * sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
31 if (!b->packets) { in iso_packets_buffer_init()
44 err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, in iso_packets_buffer_init()
51 p = page_address(b->iso_buffer.pages[page_index]); in iso_packets_buffer_init()
53 b->packets[i].buffer = p + offset_in_page; in iso_packets_buffer_init()
54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page; in iso_packets_buffer_init()
60 kfree(b->packets); in iso_packets_buffer_init()
71 void iso_packets_buffer_destroy(struct iso_packets_buffer *b, in iso_packets_buffer_destroy() argument
74 fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); in iso_packets_buffer_destroy()
[all …]
Damdtp-am824.c359 u8 *b; in write_midi_messages() local
362 b = (u8 *)&buffer[p->midi_position]; in write_midi_messages()
368 snd_rawmidi_transmit(p->midi[port], &b[1], 1) == 1) { in write_midi_messages()
370 b[0] = 0x81; in write_midi_messages()
372 b[0] = 0x80; in write_midi_messages()
373 b[1] = 0; in write_midi_messages()
375 b[2] = 0; in write_midi_messages()
376 b[3] = 0; in write_midi_messages()
388 u8 *b; in read_midi_messages() local
392 b = (u8 *)&buffer[p->midi_position]; in read_midi_messages()
[all …]
Dpackets-buffer.h20 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit,
23 void iso_packets_buffer_destroy(struct iso_packets_buffer *b,
/sound/firewire/digi00x/
Damdtp-dot.c273 u8 *b; in write_midi_messages() local
277 b = (u8 *)&buffer[0]; in write_midi_messages()
283 len = snd_rawmidi_transmit(p->midi[port], b + 1, 2); in write_midi_messages()
293 b[3] = 0xe0; in write_midi_messages()
295 b[3] = 0x20; in write_midi_messages()
297 b[3] = 0x00; in write_midi_messages()
298 b[3] |= len; in write_midi_messages()
301 b[1] = 0; in write_midi_messages()
302 b[2] = 0; in write_midi_messages()
303 b[3] = 0; in write_midi_messages()
[all …]
Ddigi00x-transaction.c30 u8 *b; in handle_midi_control() local
39 b = (u8 *)&buf[i]; in handle_midi_control()
40 len = b[3] & 0xf; in handle_midi_control()
42 snd_rawmidi_receive(dg00x->in_control, b + 1, len); in handle_midi_control()
/sound/pci/riptide/
Driptide.c243 #define SEND_GETV(p,b) sendcmd(p,RESP,GETV,0,RET(b)) /* get version */ argument
244 #define SEND_GETC(p,b,c) sendcmd(p,PARM|RESP,GETC,c,RET(b)) argument
245 #define SEND_GUNS(p,b) sendcmd(p,RESP,GUNS,0,RET(b)) argument
246 #define SEND_SCID(p,b) sendcmd(p,RESP,SCID,0,RET(b)) argument
247 #define SEND_RMEM(p,b,c,d) sendcmd(p,PARM|RESP,RMEM|BYTE1(b),LONG0(c),RET(d)) /* memory acc… argument
248 #define SEND_SMEM(p,b,c) sendcmd(p,PARM,SMEM|BYTE1(b),LONG0(c),RET(0)) /* memory access f… argument
249 #define SEND_WMEM(p,b,c) sendcmd(p,PARM,WMEM|BYTE1(b),LONG0(c),RET(0)) /* memory access f… argument
250 #define SEND_SDTM(p,b,c) sendcmd(p,PARM|RESP,SDTM|TRINIB1(b),0,RET(c)) /* memory access f… argument
251 #define SEND_GOTO(p,b) sendcmd(p,PARM,GOTO,LONG0(b),RET(0)) /* memory access for firmwa… argument
253 #define SEND_SSTR(p,b,c) sendcmd(p,PARM,SSTR|BYTE3(b),LONG0(c),RET(0)) /* start stream */ argument
[all …]
/sound/pci/au88x0/
Dau88x0_eq.c111 static void vortex_EqHw_SetLeftStates(vortex_t * vortex, u16 a[], u16 b[]) in vortex_EqHw_SetLeftStates() argument
120 hwwrite(vortex->mmio, 0x2b014 + (i * 0xc), b[i]); in vortex_EqHw_SetLeftStates()
121 hwwrite(vortex->mmio, 0x2b018 + (i * 0xc), b[1 + i]); in vortex_EqHw_SetLeftStates()
122 hwwrite(vortex->mmio, 0x2b01c + (i * 0xc), b[2 + i]); in vortex_EqHw_SetLeftStates()
123 hwwrite(vortex->mmio, 0x2b020 + (i * 0xc), b[3 + i]); in vortex_EqHw_SetLeftStates()
128 static void vortex_EqHw_SetRightStates(vortex_t * vortex, u16 a[], u16 b[]) in vortex_EqHw_SetRightStates() argument
137 hwwrite(vortex->mmio, 0x2b1f4 + (i * 0xc), b[i]); in vortex_EqHw_SetRightStates()
138 hwwrite(vortex->mmio, 0x2b1f8 + (i * 0xc), b[1 + i]); in vortex_EqHw_SetRightStates()
139 hwwrite(vortex->mmio, 0x2b1fc + (i * 0xc), b[2 + i]); in vortex_EqHw_SetRightStates()
140 hwwrite(vortex->mmio, 0x2b200 + (i * 0xc), b[3 + i]); in vortex_EqHw_SetRightStates()
[all …]
Dau88x0_a3d.c59 a3dsrc_SetAtmosTarget(a3dsrc_t * a, short aa, short b, short c, short d, in a3dsrc_SetAtmosTarget() argument
68 (b << 0x10) | aa); in a3dsrc_SetAtmosTarget()
74 a3dsrc_SetAtmosCurrent(a3dsrc_t * a, short aa, short b, short c, short d, in a3dsrc_SetAtmosCurrent() argument
83 (b << 0x10) | aa); in a3dsrc_SetAtmosCurrent()
100 a3dsrc_GetAtmosTarget(a3dsrc_t * a, short *aa, short *b, short *c,
136 a3dsrc_SetHrtfTarget(a3dsrc_t * a, a3d_Hrtf_t const aa, a3d_Hrtf_t const b) in a3dsrc_SetHrtfTarget() argument
145 (b[i] << 0x10) | aa[i]); in a3dsrc_SetHrtfTarget()
149 a3dsrc_SetHrtfCurrent(a3dsrc_t * a, a3d_Hrtf_t const aa, a3d_Hrtf_t const b) in a3dsrc_SetHrtfCurrent() argument
158 (b[i] << 0x10) | aa[i]); in a3dsrc_SetHrtfCurrent()
162 a3dsrc_SetHrtfState(a3dsrc_t * a, a3d_Hrtf_t const aa, a3d_Hrtf_t const b) in a3dsrc_SetHrtfState() argument
[all …]
/sound/core/seq/
Dseq_timer.h81 static inline int snd_seq_compare_tick_time(snd_seq_tick_time_t *a, snd_seq_tick_time_t *b) in snd_seq_compare_tick_time() argument
84 return (*a >= *b); in snd_seq_compare_tick_time()
87 static inline int snd_seq_compare_real_time(snd_seq_real_time_t *a, snd_seq_real_time_t *b) in snd_seq_compare_real_time() argument
90 if (a->tv_sec > b->tv_sec) in snd_seq_compare_real_time()
92 if ((a->tv_sec == b->tv_sec) && (a->tv_nsec >= b->tv_nsec)) in snd_seq_compare_real_time()
Dseq_prioq.c102 struct snd_seq_event *b) in compare_timestamp() argument
106 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
109 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp()
119 struct snd_seq_event *b) in compare_timestamp_rel() argument
123 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
125 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
131 if (a->time.time.tv_sec > b->time.time.tv_sec) in compare_timestamp_rel()
133 else if (a->time.time.tv_sec == b->time.time.tv_sec) { in compare_timestamp_rel()
134 if (a->time.time.tv_nsec > b->time.time.tv_nsec) in compare_timestamp_rel()
136 else if (a->time.time.tv_nsec == b->time.time.tv_nsec) in compare_timestamp_rel()
/sound/oss/
Dvidc_fill.S29 blt 1b
43 blt 1b
55 blt 1b
69 blt 1b
87 blt 1b
101 blt 1b
111 blt 1b
121 b 2b
/sound/firewire/tascam/
Dtascam-transaction.c158 u8 *b; in handle_midi_tx() local
166 b = (u8 *)(buf + i * 2); in handle_midi_tx()
168 port = b[0] >> 4; in handle_midi_tx()
174 bytes = calculate_message_bytes(b[1]); in handle_midi_tx()
179 if (b[bytes] == 0xf7) in handle_midi_tx()
188 snd_rawmidi_receive(substream, b + 1, bytes); in handle_midi_tx()
/sound/core/
Dpcm_lib.c537 static inline unsigned int div32(unsigned int a, unsigned int b, in div32() argument
540 if (b == 0) { in div32()
544 *r = a % b; in div32()
545 return a / b; in div32()
548 static inline unsigned int div_down(unsigned int a, unsigned int b) in div_down() argument
550 if (b == 0) in div_down()
552 return a / b; in div_down()
555 static inline unsigned int div_up(unsigned int a, unsigned int b) in div_up() argument
559 if (b == 0) in div_up()
561 q = div32(a, b, &r); in div_up()
[all …]
/sound/soc/fsl/
Dfsl_asrc.h125 #define ASRCNCR_ANCi_SHIFT(i, b) (b * i) argument
126 #define ASRCNCR_ANCi_MASK(i, b) (((1 << b) - 1) << ASRCNCR_ANCi_SHIFT(i, b)) argument
127 #define ASRCNCR_ANCi(i, v, b) ((v << ASRCNCR_ANCi_SHIFT(i, b)) & ASRCNCR_ANCi_MASK(i, b)) argument
/sound/soc/samsung/
Ds3c24xx-i2s.h30 #define S3C24XX_PRESCALE(a,b) \ argument
31 (((a - 1) << S3C2410_IISPSR_INTSHIFT) | ((b - 1) << S3C2410_IISPSR_EXTSHFIT))
/sound/usb/
Dmidi.c557 uint8_t b, struct urb *urb) in snd_usbmidi_transmit_byte() argument
563 if (b >= 0xf8) { in snd_usbmidi_transmit_byte()
564 output_packet(urb, p0 | 0x0f, b, 0, 0); in snd_usbmidi_transmit_byte()
565 } else if (b >= 0xf0) { in snd_usbmidi_transmit_byte()
566 switch (b) { in snd_usbmidi_transmit_byte()
568 port->data[0] = b; in snd_usbmidi_transmit_byte()
573 port->data[0] = b; in snd_usbmidi_transmit_byte()
577 port->data[0] = b; in snd_usbmidi_transmit_byte()
605 } else if (b >= 0x80) { in snd_usbmidi_transmit_byte()
606 port->data[0] = b; in snd_usbmidi_transmit_byte()
[all …]
/sound/soc/codecs/
Dcs42l51.h33 #define CS42L51_MK_CHIP_REV(a, b) ((a)<<3|(b)) argument
/sound/pci/cs46xx/
Dcs46xx_dsp_scb_types.h34 #define ___DSP_DUAL_16BIT_ALLOC(a,b) u16 a; u16 b; argument
36 #define ___DSP_DUAL_16BIT_ALLOC(a,b) u16 b; u16 a; argument
/sound/sparc/
Ddbri.c577 static __u32 reverse_bytes(__u32 b, int len) in reverse_bytes() argument
581 b = ((b & 0xffff0000) >> 16) | ((b & 0x0000ffff) << 16); in reverse_bytes()
583 b = ((b & 0xff00ff00) >> 8) | ((b & 0x00ff00ff) << 8); in reverse_bytes()
585 b = ((b & 0xf0f0f0f0) >> 4) | ((b & 0x0f0f0f0f) << 4); in reverse_bytes()
587 b = ((b & 0xcccccccc) >> 2) | ((b & 0x33333333) << 2); in reverse_bytes()
589 b = ((b & 0xaaaaaaaa) >> 1) | ((b & 0x55555555) << 1); in reverse_bytes()
597 return b; in reverse_bytes()
/sound/isa/msnd/
Dmsnd_pinnacle_mixer.c153 #define update_volm(a, b) \ argument
157 dev->SMA + SMA_##b##Left); \
160 dev->SMA + SMA_##b##Right); \
/sound/drivers/vx/
Dvx_mixer.c56 struct b { struct
61 } b; member
67 struct b { struct
72 } b; member
76 #define SET_CDC_DATA_SEL(di,s) ((di).b.mh = (u8) (s))
77 #define SET_CDC_DATA_REG(di,r) ((di).b.ml = (u8) (r))
78 #define SET_CDC_DATA_VAL(di,d) ((di).b.ll = (u8) (d))
/sound/pci/asihpi/
Dhpi6205.h65 struct hpi_fifo_buffer b; member
/sound/pci/ctxfi/
Dctatc.c199 int b; in atc_get_pitch() local
206 for (b = 31; ((b >= 0) && !(input_rate >> b)); ) in atc_get_pitch()
207 b--; in atc_get_pitch()
209 if (b >= 0) { in atc_get_pitch()
210 input_rate <<= (31 - b); in atc_get_pitch()
212 b = 24 - (31 - b); in atc_get_pitch()
213 if (b >= 0) in atc_get_pitch()
214 input_rate <<= b; in atc_get_pitch()
216 input_rate >>= -b; in atc_get_pitch()
/sound/pci/hda/
Dhda_auto_parser.c41 const struct auto_out_pin *b = bp; in compare_seq() local
42 return (int)(a->seq - b->seq); in compare_seq()
75 const struct auto_pin_cfg_item *b = bp; in compare_input_type() local
76 if (a->type != b->type) in compare_input_type()
77 return (int)(a->type - b->type); in compare_input_type()
81 return (int)(b->has_boost_on_pin - a->has_boost_on_pin); in compare_input_type()
/sound/isa/sb/
Demu8000_callback.c58 #define LIMITVALUE(x, a, b) do { if ((x) < (a)) (x) = (a); else if ((x) > (b)) (x) = (b); } while (… argument

12