Lines Matching refs:unit
18 struct fw_device *fw_dev = fw_parent_device(ff->unit); in name_card()
36 dev_name(&ff->unit->device), 100 << fw_dev->max_speed); in name_card()
55 err = snd_card_new(&ff->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
95 dev_info(&ff->unit->device, in do_registration()
99 static int snd_ff_probe(struct fw_unit *unit, in snd_ff_probe() argument
104 ff = devm_kzalloc(&unit->device, sizeof(struct snd_ff), GFP_KERNEL); in snd_ff_probe()
107 ff->unit = fw_unit_get(unit); in snd_ff_probe()
108 dev_set_drvdata(&unit->device, ff); in snd_ff_probe()
119 snd_fw_schedule_registration(unit, &ff->dwork); in snd_ff_probe()
124 static void snd_ff_update(struct fw_unit *unit) in snd_ff_update() argument
126 struct snd_ff *ff = dev_get_drvdata(&unit->device); in snd_ff_update()
130 snd_fw_schedule_registration(unit, &ff->dwork); in snd_ff_update()
138 static void snd_ff_remove(struct fw_unit *unit) in snd_ff_remove() argument
140 struct snd_ff *ff = dev_get_drvdata(&unit->device); in snd_ff_remove()
155 fw_unit_put(ff->unit); in snd_ff_remove()