Lines Matching refs:unit
30 struct fw_device *fw_dev = fw_parent_device(motu->unit); in name_card()
35 fw_csr_iterator_init(&it, motu->unit->directory); in name_card()
51 dev_name(&motu->unit->device), 100 << fw_dev->max_speed); in name_card()
70 err = snd_card_new(&motu->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
115 dev_info(&motu->unit->device, in do_registration()
119 static int motu_probe(struct fw_unit *unit, in motu_probe() argument
125 motu = devm_kzalloc(&unit->device, sizeof(struct snd_motu), GFP_KERNEL); in motu_probe()
128 motu->unit = fw_unit_get(unit); in motu_probe()
129 dev_set_drvdata(&unit->device, motu); in motu_probe()
138 snd_fw_schedule_registration(unit, &motu->dwork); in motu_probe()
143 static void motu_remove(struct fw_unit *unit) in motu_remove() argument
145 struct snd_motu *motu = dev_get_drvdata(&unit->device); in motu_remove()
160 fw_unit_put(motu->unit); in motu_remove()
163 static void motu_bus_update(struct fw_unit *unit) in motu_bus_update() argument
165 struct snd_motu *motu = dev_get_drvdata(&unit->device); in motu_bus_update()
169 snd_fw_schedule_registration(unit, &motu->dwork); in motu_bus_update()