/linux-master/sound/firewire/dice/ |
H A D | dice-focusrite.c | 2 // dice-focusrite.c - a part of driver for DICE based devices 6 #include "dice.h" 8 int snd_dice_detect_focusrite_pro40_tcd3070_formats(struct snd_dice *dice) argument 12 dice->tx_pcm_chs[0][0] = 20; 13 dice->tx_midi_ports[0] = 1; 14 dice->rx_pcm_chs[0][0] = 20; 15 dice->rx_midi_ports[0] = 1; 17 dice->tx_pcm_chs[0][1] = 16; 18 dice->tx_midi_ports[1] = 1; 19 dice [all...] |
H A D | Makefile | 2 snd-dice-objs := dice-transaction.o dice-stream.o dice-proc.o dice-midi.o \ 3 dice-pcm.o dice-hwdep.o dice.o dice-tcelectronic.o \ 4 dice [all...] |
H A D | dice-harman.c | 2 // dice-harman.c - a part of driver for DICE based devices 6 #include "dice.h" 8 int snd_dice_detect_harman_formats(struct snd_dice *dice) argument 17 dice->tx_pcm_chs[0][i] = 12; 18 dice->tx_midi_ports[0] = 1; 19 dice->rx_pcm_chs[0][i] = 10; 20 dice->rx_midi_ports[0] = 1;
|
H A D | dice-alesis.c | 3 * dice-alesis.c - a part of driver for DICE based devices 8 #include "dice.h" 22 int snd_dice_detect_alesis_formats(struct snd_dice *dice) argument 29 err = snd_dice_transaction_read_tx(dice, TX_NUMBER_AUDIO, ®, 36 memcpy(dice->tx_pcm_chs, alesis_io14_tx_pcm_chs, 40 memcpy(dice->tx_pcm_chs, alesis_io26_tx_pcm_chs, 46 dice->rx_pcm_chs[0][i] = 8; 48 dice->tx_midi_ports[0] = 1; 49 dice->rx_midi_ports[0] = 1; 54 int snd_dice_detect_alesis_mastercontrol_formats(struct snd_dice *dice) argument [all...] |
H A D | dice-hwdep.c | 9 #include "dice.h" 14 struct snd_dice *dice = hwdep->private_data; local 18 spin_lock_irq(&dice->lock); 20 while (!dice->dev_lock_changed && dice->notification_bits == 0) { 21 prepare_to_wait(&dice->hwdep_wait, &wait, TASK_INTERRUPTIBLE); 22 spin_unlock_irq(&dice->lock); 24 finish_wait(&dice->hwdep_wait, &wait); 27 spin_lock_irq(&dice->lock); 31 if (dice 57 struct snd_dice *dice = hwdep->private_data; local 72 hwdep_get_info(struct snd_dice *dice, void __user *arg) argument 91 hwdep_lock(struct snd_dice *dice) argument 109 hwdep_unlock(struct snd_dice *dice) argument 129 struct snd_dice *dice = hwdep->private_data; local 142 struct snd_dice *dice = hwdep->private_data; local 167 snd_dice_create_hwdep(struct snd_dice *dice) argument [all...] |
H A D | dice-stream.c | 9 #include "dice.h" 32 int snd_dice_stream_get_rate_mode(struct snd_dice *dice, unsigned int rate, argument 48 if (!(dice->clock_caps & BIT(i))) 60 static int select_clock(struct snd_dice *dice, unsigned int rate) argument 67 err = snd_dice_transaction_read_global(dice, GLOBAL_CLOCK_SELECT, 83 if (completion_done(&dice->clock_accepted)) 84 reinit_completion(&dice->clock_accepted); 87 err = snd_dice_transaction_write_global(dice, GLOBAL_CLOCK_SELECT, 92 if (wait_for_completion_timeout(&dice->clock_accepted, 101 static int get_register_params(struct snd_dice *dice, argument 125 release_resources(struct snd_dice *dice) argument 135 stop_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, struct reg_params *params) argument 155 keep_resources(struct snd_dice *dice, struct amdtp_stream *stream, struct fw_iso_resources *resources, unsigned int rate, unsigned int pcm_chs, unsigned int midi_ports) argument 197 keep_dual_resources(struct snd_dice *dice, unsigned int rate, enum amdtp_stream_direction dir, struct reg_params *params) argument 256 finish_session(struct snd_dice *dice, struct reg_params *tx_params, struct reg_params *rx_params) argument 265 snd_dice_stream_reserve_duplex(struct snd_dice *dice, unsigned int rate, unsigned int events_per_period, unsigned int events_per_buffer) argument 326 start_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, unsigned int rate, struct reg_params *params) argument 382 snd_dice_stream_start_duplex(struct snd_dice *dice) argument 475 snd_dice_stream_stop_duplex(struct snd_dice *dice) argument 488 init_stream(struct snd_dice *dice, enum amdtp_stream_direction dir, unsigned int index) argument 521 destroy_stream(struct snd_dice *dice, enum amdtp_stream_direction dir, unsigned int index) argument 540 snd_dice_stream_init_duplex(struct snd_dice *dice) argument 575 snd_dice_stream_destroy_duplex(struct snd_dice *dice) argument 587 snd_dice_stream_update_duplex(struct snd_dice *dice) argument 609 snd_dice_stream_detect_current_formats(struct snd_dice *dice) argument 672 dice_lock_changed(struct snd_dice *dice) argument 678 snd_dice_stream_lock_try(struct snd_dice *dice) argument 697 snd_dice_stream_lock_release(struct snd_dice *dice) argument [all...] |
H A D | dice-midi.c | 7 #include "dice.h" 11 struct snd_dice *dice = substream->rmidi->private_data; local 14 err = snd_dice_stream_lock_try(dice); 18 mutex_lock(&dice->mutex); 20 err = snd_dice_stream_reserve_duplex(dice, 0, 0, 0); 22 ++dice->substreams_counter; 23 err = snd_dice_stream_start_duplex(dice); 25 --dice->substreams_counter; 28 mutex_unlock(&dice->mutex); 31 snd_dice_stream_lock_release(dice); 38 struct snd_dice *dice = substream->rmidi->private_data; local 53 struct snd_dice *dice = substrm->rmidi->private_data; local 70 struct snd_dice *dice = substrm->rmidi->private_data; local 85 set_midi_substream_names(struct snd_dice *dice, struct snd_rawmidi_str *str) argument 96 snd_dice_create_midi(struct snd_dice *dice) argument [all...] |
H A D | dice-transaction.c | 9 #include "dice.h" 11 static u64 get_subaddr(struct snd_dice *dice, enum snd_dice_addr_type type, argument 16 offset += dice->tx_offset; 19 offset += dice->rx_offset; 22 offset += dice->sync_offset; 25 offset += dice->rsrv_offset; 29 offset += dice->global_offset; 36 int snd_dice_transaction_write(struct snd_dice *dice, argument 40 return snd_fw_transaction(dice->unit, 43 get_subaddr(dice, typ 46 snd_dice_transaction_read(struct snd_dice *dice, enum snd_dice_addr_type type, unsigned int offset, void *buf, unsigned int len) argument 56 get_clock_info(struct snd_dice *dice, __be32 *info) argument 62 snd_dice_transaction_get_clock_source(struct snd_dice *dice, unsigned int *source) argument 75 snd_dice_transaction_get_rate(struct snd_dice *dice, unsigned int *rate) argument 96 snd_dice_transaction_set_enable(struct snd_dice *dice) argument 118 snd_dice_transaction_clear_enable(struct snd_dice *dice) argument 137 struct snd_dice *dice = callback_data; local 163 register_notification_address(struct snd_dice *dice, bool retry) argument 217 unregister_notification_address(struct snd_dice *dice) argument 241 snd_dice_transaction_destroy(struct snd_dice *dice) argument 254 snd_dice_transaction_reinit(struct snd_dice *dice) argument 264 get_subaddrs(struct snd_dice *dice) argument 342 snd_dice_transaction_init(struct snd_dice *dice) argument [all...] |
H A D | dice.h | 3 * dice.h - a part of driver for Dice based devices 40 #include "dice-interface.h" 73 typedef int (*snd_dice_detect_formats_t)(struct snd_dice *dice); 125 int snd_dice_transaction_write(struct snd_dice *dice, 129 int snd_dice_transaction_read(struct snd_dice *dice, 133 static inline int snd_dice_transaction_write_global(struct snd_dice *dice, argument 137 return snd_dice_transaction_write(dice, 141 static inline int snd_dice_transaction_read_global(struct snd_dice *dice, argument 145 return snd_dice_transaction_read(dice, 149 static inline int snd_dice_transaction_write_tx(struct snd_dice *dice, argument 156 snd_dice_transaction_read_tx(struct snd_dice *dice, unsigned int offset, void *buf, unsigned int len) argument 163 snd_dice_transaction_write_rx(struct snd_dice *dice, unsigned int offset, void *buf, unsigned int len) argument 170 snd_dice_transaction_read_rx(struct snd_dice *dice, unsigned int offset, void *buf, unsigned int len) argument 177 snd_dice_transaction_write_sync(struct snd_dice *dice, unsigned int offset, void *buf, unsigned int len) argument 184 snd_dice_transaction_read_sync(struct snd_dice *dice, unsigned int offset, void *buf, unsigned int len) argument [all...] |
H A D | dice-mytek.c | 3 * dice-mytek.c - a part of driver for DICE based devices 8 #include "dice.h" 28 int snd_dice_detect_mytek_formats(struct snd_dice *dice) argument 35 memcpy(dice->tx_pcm_chs, dev->tx_pcm_chs, 37 memcpy(dice->rx_pcm_chs, dev->rx_pcm_chs, 41 dice->tx_midi_ports[i] = 0; 42 dice->rx_midi_ports[i] = 0;
|
H A D | dice-pcm.c | 9 #include "dice.h" 15 struct snd_dice *dice = substream->private_data; local 30 pcm_channels = dice->tx_pcm_chs[index]; 32 pcm_channels = dice->rx_pcm_chs[index]; 36 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) 53 struct snd_dice *dice = substream->private_data; local 68 pcm_channels = dice->tx_pcm_chs[index]; 70 pcm_channels = dice->rx_pcm_chs[index]; 74 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) 87 static int limit_channels_and_rates(struct snd_dice *dice, argument 125 init_hw_info(struct snd_dice *dice, struct snd_pcm_substream *substream) argument 166 struct snd_dice *dice = substream->private_data; local 256 struct snd_dice *dice = substream->private_data; local 266 struct snd_dice *dice = substream->private_data; local 292 struct snd_dice *dice = substream->private_data; local 308 struct snd_dice *dice = substream->private_data; local 322 struct snd_dice *dice = substream->private_data; local 337 struct snd_dice *dice = substream->private_data; local 355 struct snd_dice *dice = substream->private_data; local 374 struct snd_dice *dice = substream->private_data; local 381 struct snd_dice *dice = substream->private_data; local 389 struct snd_dice *dice = substream->private_data; local 397 struct snd_dice *dice = substream->private_data; local 403 snd_dice_create_pcm(struct snd_dice *dice) argument [all...] |
H A D | dice-extension.c | 3 * dice-extension.c - a part of driver for DICE based devices 8 #include "dice.h" 50 static inline int read_transaction(struct snd_dice *dice, u64 section_addr, argument 53 return snd_fw_transaction(dice->unit, 59 static int read_stream_entries(struct snd_dice *dice, u64 section_addr, argument 72 err = read_transaction(dice, section_addr, 84 static int detect_stream_formats(struct snd_dice *dice, u64 section_addr) argument 107 if (!(cap & dice->clock_caps)) 112 err = read_transaction(dice, section_addr, 120 err = read_stream_entries(dice, section_add 140 snd_dice_detect_extension_formats(struct snd_dice *dice) argument [all...] |
H A D | dice.c | 8 #include "dice.h" 73 static int check_clock_caps(struct snd_dice *dice) argument 79 if (dice->clock_caps > 0) { 80 err = snd_dice_transaction_read_global(dice, 85 dice->clock_caps = be32_to_cpu(value); 88 dice->clock_caps = CLOCK_CAP_RATE_44100 | 97 static void dice_card_strings(struct snd_dice *dice) argument 99 struct snd_card *card = dice->card; 100 struct fw_device *dev = fw_parent_device(dice->unit); 109 err = snd_dice_transaction_read_global(dice, GLOBAL_NICK_NAM 134 struct snd_dice *dice = card->private_data; local 146 struct snd_dice *dice; local 228 struct snd_dice *dice = dev_get_drvdata(&unit->device); local 236 struct snd_dice *dice = dev_get_drvdata(&unit->device); local [all...] |
H A D | dice-tcelectronic.c | 3 * dice-tc_electronic.c - a part of driver for DICE based devices 8 #include "dice.h" 58 int snd_dice_detect_tcelectronic_formats(struct snd_dice *dice) argument 77 fw_csr_iterator_init(&it, dice->unit->directory); 93 memcpy(dice->tx_pcm_chs, entry->spec->tx_pcm_chs, 95 memcpy(dice->rx_pcm_chs, entry->spec->rx_pcm_chs, 99 dice->tx_midi_ports[0] = 1; 100 dice->rx_midi_ports[0] = 1;
|
H A D | dice-presonus.c | 2 // dice-presonus.c - a part of driver for DICE based devices 6 #include "dice.h" 20 int snd_dice_detect_presonus_formats(struct snd_dice *dice) argument 33 fw_csr_iterator_init(&it, dice->unit->directory); 49 memcpy(dice->tx_pcm_chs, entry->spec->tx_pcm_chs, 51 memcpy(dice->rx_pcm_chs, entry->spec->rx_pcm_chs, 55 dice->tx_midi_ports[0] = 1; 56 dice->rx_midi_ports[0] = 1;
|
H A D | dice-proc.c | 9 #include "dice.h" 11 static int dice_proc_read_mem(struct snd_dice *dice, void *buffer, argument 17 err = snd_fw_transaction(dice->unit, TCODE_READ_BLOCK_REQUEST, 70 struct snd_dice *dice = entry->private_data; local 117 if (dice_proc_read_mem(dice, sections, 0, ARRAY_SIZE(sections)) < 0) 126 if (dice_proc_read_mem(dice, &buf.global, sections[0], quadlets) < 0) 170 if (dice_proc_read_mem(dice, &tx_rx_header, sections[2], 2) < 0) 174 if (dice_proc_read_mem(dice, &buf.tx, sections[2] + 2 + 196 if (dice_proc_read_mem(dice, &tx_rx_header, sections[4], 2) < 0) 200 if (dice_proc_read_mem(dice, 253 struct snd_dice *dice = entry->private_data; local 279 add_node(struct snd_dice *dice, struct snd_info_entry *root, const char *name, void (*op)(struct snd_info_entry *entry, struct snd_info_buffer *buffer)) argument 291 snd_dice_create_proc(struct snd_dice *dice) argument [all...] |
H A D | dice-weiss.c | 2 // dice-weiss.c - a part of driver for DICE based devices 6 #include "dice.h" 61 int snd_dice_detect_weiss_formats(struct snd_dice *dice) argument 82 fw_csr_iterator_init(&it, dice->unit->directory); 98 memcpy(dice->tx_pcm_chs, entry->spec->tx_pcm_chs, 100 memcpy(dice->rx_pcm_chs, entry->spec->rx_pcm_chs,
|
/linux-master/sound/firewire/ |
H A D | Makefile | 10 obj-$(CONFIG_SND_DICE) += dice/
|
/linux-master/drivers/misc/ |
H A D | Makefile | 63 obj-$(CONFIG_OPEN_DICE) += open-dice.o
|
/linux-master/drivers/mtd/spi-nor/ |
H A D | core.h | 88 #define SPI_NOR_DIE_ERASE_OP(opcode, addr_nbytes, addr, dice) \ 90 SPI_MEM_OP_ADDR(dice ? addr_nbytes : 0, addr, 0), \ 354 * @n_dice: number of dice in the flash memory.
|