/sound/usb/line6/ |
D | midibuf.c | 23 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local 25 message_length = length[(code >> 4) - 8]; in midibuf_message_length() 32 static const int length[] = { -1, 2, -1, 2, -1, -1, 1, 1, 1, 1, in midibuf_message_length() local 35 message_length = length[code & 0x0f]; in midibuf_message_length() 89 int length) in line6_midibuf_write() argument 95 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write() 99 if (data[length - 1] == 0xfe) { in line6_midibuf_write() 100 --length; in line6_midibuf_write() 106 if (length > bytes_free) in line6_midibuf_write() 107 length = bytes_free; in line6_midibuf_write() [all …]
|
D | midibuf.h | 27 extern int line6_midibuf_ignore(struct midi_buffer *mb, int length); 30 int length); 33 int length);
|
D | midi.c | 25 int length); 31 int length) in line6_midi_receive() argument 35 data, length); in line6_midi_receive() 109 int length) in send_midi_async() argument 120 transfer_buffer = kmemdup(data, length, GFP_ATOMIC); in send_midi_async() 130 transfer_buffer, length, midi_sent, line6, in send_midi_async()
|
D | capture.c | 47 fin->length = line6pcm->max_packet_size_in; in submit_audio_in_urb() 132 void line6_capture_check_period(struct snd_line6_pcm *line6pcm, int length) in line6_capture_check_period() argument 137 line6pcm->in.bytes += length; in line6_capture_check_period() 151 int i, index, length = 0, shutdown = 0; in audio_in_callback() local 184 length += fsize; in audio_in_callback() 216 line6_capture_check_period(line6pcm, length); in audio_in_callback()
|
D | playback.c | 190 fout->length = fsize; in submit_audio_out_urb() 308 int i, index, length = 0, shutdown = 0; in audio_out_callback() local 332 length += urb->iso_frame_desc[i].length; in audio_out_callback() 340 length / bytes_per_frame; in audio_out_callback() 361 line6pcm->out.bytes += length; in audio_out_callback()
|
/sound/firewire/fireworks/ |
D | fireworks_transaction.c | 119 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode) in copy_resp_to_buf() argument 125 length = min_t(size_t, be32_to_cpu(t->length) * sizeof(u32), length); in copy_resp_to_buf() 136 if (capacity < length) { in copy_resp_to_buf() 142 while (length > 0) { in copy_resp_to_buf() 145 till_end = min_t(unsigned int, length, till_end); in copy_resp_to_buf() 153 length -= till_end; in copy_resp_to_buf() 167 void *data, size_t length, int *rcode) in handle_resp_for_user() argument 192 copy_resp_to_buf(efw, data, length, rcode); in handle_resp_for_user() 199 void *data, size_t length, int *rcode, u32 seqnum) in handle_resp_for_kernel() argument 217 t->size = min_t(unsigned int, length, t->size); in handle_resp_for_kernel() [all …]
|
D | fireworks_hwdep.c | 26 unsigned int length, till_end, type; in hwdep_read_resp_buf() local 53 length = be32_to_cpu(t->length) * sizeof(__be32); in hwdep_read_resp_buf() 56 if (remained < length) in hwdep_read_resp_buf() 60 while (length > 0) { in hwdep_read_resp_buf() 63 till_end = min_t(unsigned int, length, till_end); in hwdep_read_resp_buf() 76 length -= till_end; in hwdep_read_resp_buf()
|
/sound/soc/codecs/ |
D | sigmadsp.c | 43 unsigned int length; member 48 __le32 length; member 199 const struct sigma_fw_chunk *chunk, unsigned int length) in sigma_fw_load_control() argument 208 if (length <= sizeof(*ctrl_chunk)) in sigma_fw_load_control() 213 name_len = length - sizeof(*ctrl_chunk); in sigma_fw_load_control() 250 const struct sigma_fw_chunk *chunk, unsigned int length) in sigma_fw_load_data() argument 255 if (length <= sizeof(*data_chunk)) in sigma_fw_load_data() 260 length -= sizeof(*data_chunk); in sigma_fw_load_data() 262 data = kzalloc(sizeof(*data) + length, GFP_KERNEL); in sigma_fw_load_data() 267 data->length = length; in sigma_fw_load_data() [all …]
|
D | wm0010.c | 47 u32 length:24; member 61 u32 length:24; member 404 offset += ((rec->length) + 8); in wm0010_firmware_load() 405 rec = (void *)&rec->data[rec->length]; in wm0010_firmware_load() 410 rec->command, rec->length); in wm0010_firmware_load() 411 len = rec->length + 8; in wm0010_firmware_load() 459 offset += ((rec->length) + 8); in wm0010_firmware_load() 460 rec = (void *)&rec->data[rec->length]; in wm0010_firmware_load() 650 pll_rec.length = (sizeof(pll_rec) - 8); in wm0010_boot() 656 len = pll_rec.length + 8; in wm0010_boot()
|
/sound/pci/asihpi/ |
D | hpi6000.c | 195 u32 length); 198 u32 length); 954 u32 length; in hpi6000_adapter_boot_load_dsp() local 959 error = hpi_dsp_code_read_word(&dsp_code, &length); in hpi6000_adapter_boot_load_dsp() 962 if (length == 0xFFFFFFFF) in hpi6000_adapter_boot_load_dsp() 971 error = hpi_dsp_code_read_block(length, &dsp_code, in hpi6000_adapter_boot_load_dsp() 976 address, pcode, length); in hpi6000_adapter_boot_load_dsp() 989 u32 length; in hpi6000_adapter_boot_load_dsp() local 994 hpi_dsp_code_read_word(&dsp_code, &length); in hpi6000_adapter_boot_load_dsp() 995 if (length == 0xFFFFFFFF) in hpi6000_adapter_boot_load_dsp() [all …]
|
/sound/aoa/soundbus/ |
D | sysfs.c | 21 int length; in modalias_show() local 26 length = strlen(buf); in modalias_show() 28 length = sprintf(buf, "of:N%sT%s\n", in modalias_show() 32 return length; in modalias_show()
|
/sound/firewire/ |
D | fcp.c | 320 const void *response, size_t length) in is_matching_response() argument 335 if (--length == 0) in is_matching_response() 343 void *data, size_t length, void *callback_data) in fcp_response() argument 348 if (length < 1 || (*(const u8 *)data & 0xf0) != CTS_AVC) in fcp_response() 362 is_matching_response(t, data, length)) { in fcp_response() 367 t->response_size = min_t(unsigned int, length, in fcp_response() 379 .length = 0x200,
|
D | lib.c | 34 u64 offset, void *buffer, size_t length, in snd_fw_transaction() argument 49 buffer, length); in snd_fw_transaction()
|
/sound/pcmcia/vx/ |
D | vxp_ops.c | 373 int length = pipe->buffer_bytes - offset; in vxp_dma_write() local 374 count -= length; in vxp_dma_write() 375 length >>= 1; /* in 16bit words */ in vxp_dma_write() 377 for (; length > 0; length--) { in vxp_dma_write() 415 int length = pipe->buffer_bytes - offset; in vxp_dma_read() local 416 count -= length; in vxp_dma_read() 417 length >>= 1; /* in 16bit words */ in vxp_dma_read() 419 for (; length > 0; length--) in vxp_dma_read()
|
/sound/firewire/fireface/ |
D | ff-transaction.c | 37 void *data, size_t length, in finish_transmit_midi0_msg() argument 46 void *data, size_t length, in finish_transmit_midi1_msg() argument 139 void *data, size_t length, void *callback_data) in handle_midi_msg() argument 151 for (i = 0; i < length / 4; i++) { in handle_midi_msg() 186 ff->async_handler.length = SND_FF_MAXIMIM_MIDI_QUADS * 4; in allocate_own_address() 191 midi_msg_region.end = midi_msg_region.start + ff->async_handler.length; in allocate_own_address()
|
/sound/core/ |
D | hwdep_compat.c | 29 u32 length; member 48 if (get_user(val, &src->length) || in snd_hwdep_dsp_load_compat() 49 put_user(val, &dst->length)) in snd_hwdep_dsp_load_compat()
|
/sound/usb/usx2y/ |
D | usb_stream.c | 46 urb->iso_frame_desc[pack].length = l; in playback_prep_freqn() 86 desc->length = maxpacket; in init_pipe_urbs() 89 desc[p].length = maxpacket; in init_pipe_urbs() 303 od[p].length = l; in usb_stream_prepare_playback() 316 od[p].length = l; in usb_stream_prepare_playback() 356 id[p + 1].offset = id[p].offset + id[p].length; in prepare_inurb() 359 id[0].length * iu->number_of_packets; in prepare_inurb() 475 s->inpacket[s->inpacket_head].length = l; in stream_idle() 499 s->outpacket[0].length = sk->idle_outurb->transfer_buffer_length + l; in stream_idle() 578 while (l > s->inpacket[split].length) { in stream_start() [all …]
|
D | usx2yhwdeppcm.c | 129 counts = shm->captured_iso[shm->playback_iso_head].length / usX2Y->stride; in usX2Y_hwdep_urb_play_prepare() 136 urb->iso_frame_desc[pack].length = shm->captured_iso[shm->playback_iso_head].length; in usX2Y_hwdep_urb_play_prepare() 139 urb->iso_frame_desc[pack].length); in usX2Y_hwdep_urb_play_prepare() 162 shm->captured_iso[head].length = desc->actual_length; in usX2Y_usbpcm_urb_capt_iso_advance() 166 if ((desc->offset += desc->length * NRURBS*nr_of_packs()) + in usX2Y_usbpcm_urb_capt_iso_advance() 167 desc->length >= SSS) in usX2Y_usbpcm_urb_capt_iso_advance() 168 desc->offset -= (SSS - desc->length); in usX2Y_usbpcm_urb_capt_iso_advance() 443 urb->iso_frame_desc[pack].length = subs->maxpacksize; in usX2Y_usbpcm_urbs_start()
|
/sound/usb/ |
D | midi.c | 227 int portidx, uint8_t *data, int length) in snd_usbmidi_input_data() argument 237 snd_rawmidi_receive(port->substream, data, length); in snd_usbmidi_input_data() 241 static void dump_urb(const char *type, const u8 *data, int length) in dump_urb() argument 244 for (; length > 0; ++data, --length) in dump_urb() 249 #define dump_urb(type, data, length) /* nothing */ argument 412 int length = snd_usbmidi_cin_length[buffer[i] & 0x0f]; in snd_usbmidi_standard_input() local 414 length); in snd_usbmidi_standard_input() 426 int length = buffer[i + 3] & 3; in snd_usbmidi_midiman_input() local 427 snd_usbmidi_input_data(ep, port, &buffer[i], length); in snd_usbmidi_midiman_input() 446 int length; in snd_usbmidi_maudio_broken_running_status_input() local [all …]
|
/sound/pci/vx222/ |
D | vx222_ops.c | 273 int length = pipe->buffer_bytes - offset; in vx2_dma_write() local 274 count -= length; in vx2_dma_write() 275 length >>= 2; /* in 32bit words */ in vx2_dma_write() 277 for (; length > 0; length--) { in vx2_dma_write() 311 int length = pipe->buffer_bytes - offset; in vx2_dma_read() local 312 count -= length; in vx2_dma_read() 313 length >>= 2; /* in 32bit words */ in vx2_dma_read() 315 for (; length > 0; length--) in vx2_dma_read()
|
/sound/firewire/motu/ |
D | motu-transaction.c | 51 void *data, size_t length, void *callback_data) in handle_message() argument 62 if (offset != motu->async_handler.offset || length != 4) { in handle_message() 107 motu->async_handler.length = 4; in snd_motu_transaction_register()
|
/sound/sh/ |
D | aica.c | 103 static void spu_memset(u32 toi, u32 what, int length) in spu_memset() argument 107 if (snd_BUG_ON(length % 4)) in spu_memset() 109 for (i = 0; i < length; i++) { in spu_memset() 120 static void spu_memload(u32 toi, const void *from, int length) in spu_memload() argument 127 length = DIV_ROUND_UP(length, 4); in spu_memload() 129 for (i = 0; i < length; i++) { in spu_memload()
|
/sound/firewire/oxfw/ |
D | oxfw-scs1x.c | 97 unsigned long long offset, void *data, size_t length, in handle_hss() argument 114 if (length >= 1) { in handle_hss() 117 midi_input_packet(scs, stream, data, length); in handle_hss() 126 void *data, size_t length, void *callback_data) in scs_write_callback() argument 382 scs->hss_handler.length = HSS1394_MAX_PACKET_SIZE; in snd_oxfw_scs1x_add()
|
/sound/firewire/tascam/ |
D | tascam-transaction.c | 147 void *data, size_t length, in async_midi_port_callback() argument 249 void *data, size_t length, void *callback_data) in handle_midi_tx() argument 263 messages = length / 8; in handle_midi_tx() 307 tscm->async_handler.length = 8 * 8; in snd_tscm_transaction_register()
|
/sound/soc/intel/skylake/ |
D | skl-nhlt.c | 44 if (nhlt_ptr->length) in skl_nhlt_init() 46 memremap(nhlt_ptr->min_addr, nhlt_ptr->length, in skl_nhlt_init() 152 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); in skl_get_ep_blob() 191 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); in skl_get_dmic_geo()
|