Lines Matching refs:unit
18 struct fw_device *fw_dev = fw_parent_device(ff->unit); in name_card()
26 dev_name(&ff->unit->device), 100 << fw_dev->max_speed); in name_card()
45 err = snd_card_new(&ff->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
85 dev_info(&ff->unit->device, in do_registration()
89 static int snd_ff_probe(struct fw_unit *unit, in snd_ff_probe() argument
94 ff = devm_kzalloc(&unit->device, sizeof(struct snd_ff), GFP_KERNEL); in snd_ff_probe()
97 ff->unit = fw_unit_get(unit); in snd_ff_probe()
98 dev_set_drvdata(&unit->device, ff); in snd_ff_probe()
108 snd_fw_schedule_registration(unit, &ff->dwork); in snd_ff_probe()
113 static void snd_ff_update(struct fw_unit *unit) in snd_ff_update() argument
115 struct snd_ff *ff = dev_get_drvdata(&unit->device); in snd_ff_update()
119 snd_fw_schedule_registration(unit, &ff->dwork); in snd_ff_update()
127 static void snd_ff_remove(struct fw_unit *unit) in snd_ff_remove() argument
129 struct snd_ff *ff = dev_get_drvdata(&unit->device); in snd_ff_remove()
144 fw_unit_put(ff->unit); in snd_ff_remove()