Lines Matching refs:dice

11 static int dice_proc_read_mem(struct snd_dice *dice, void *buffer,  in dice_proc_read_mem()  argument
17 err = snd_fw_transaction(dice->unit, TCODE_READ_BLOCK_REQUEST, in dice_proc_read_mem()
70 struct snd_dice *dice = entry->private_data; in dice_proc_read() local
117 if (dice_proc_read_mem(dice, sections, 0, ARRAY_SIZE(sections)) < 0) in dice_proc_read()
126 if (dice_proc_read_mem(dice, &buf.global, sections[0], quadlets) < 0) in dice_proc_read()
170 if (dice_proc_read_mem(dice, &tx_rx_header, sections[2], 2) < 0) in dice_proc_read()
174 if (dice_proc_read_mem(dice, &buf.tx, sections[2] + 2 + in dice_proc_read()
196 if (dice_proc_read_mem(dice, &tx_rx_header, sections[4], 2) < 0) in dice_proc_read()
200 if (dice_proc_read_mem(dice, &buf.rx, sections[4] + 2 + in dice_proc_read()
224 if (dice_proc_read_mem(dice, &buf.ext_sync, in dice_proc_read()
253 struct snd_dice *dice = entry->private_data; in dice_proc_read_formation() local
263 snd_iprintf(buffer, "\t%u", dice->tx_pcm_chs[i][j]); in dice_proc_read_formation()
264 snd_iprintf(buffer, "\t%u\n", dice->tx_midi_ports[i]); in dice_proc_read_formation()
274 snd_iprintf(buffer, "\t%u", dice->rx_pcm_chs[i][j]); in dice_proc_read_formation()
275 snd_iprintf(buffer, "\t%u\n", dice->rx_midi_ports[i]); in dice_proc_read_formation()
279 static void add_node(struct snd_dice *dice, struct snd_info_entry *root, in add_node() argument
286 entry = snd_info_create_card_entry(dice->card, name, root); in add_node()
288 snd_info_set_text_ops(entry, dice, op); in add_node()
291 void snd_dice_create_proc(struct snd_dice *dice) in snd_dice_create_proc() argument
299 root = snd_info_create_card_entry(dice->card, "firewire", in snd_dice_create_proc()
300 dice->card->proc_root); in snd_dice_create_proc()
305 add_node(dice, root, "dice", dice_proc_read); in snd_dice_create_proc()
306 add_node(dice, root, "formation", dice_proc_read_formation); in snd_dice_create_proc()