Lines Matching refs:unit
21 struct fw_device *fw_dev = fw_parent_device(dg00x->unit); in name_card()
26 err = fw_csr_string(dg00x->unit->directory, CSR_MODEL, name, in name_card()
39 dev_name(&dg00x->unit->device), 100 << fw_dev->max_speed); in name_card()
61 err = snd_card_new(&dg00x->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
103 dev_info(&dg00x->unit->device, in do_registration()
107 static int snd_dg00x_probe(struct fw_unit *unit, in snd_dg00x_probe() argument
113 dg00x = devm_kzalloc(&unit->device, sizeof(struct snd_dg00x), in snd_dg00x_probe()
118 dg00x->unit = fw_unit_get(unit); in snd_dg00x_probe()
119 dev_set_drvdata(&unit->device, dg00x); in snd_dg00x_probe()
129 snd_fw_schedule_registration(unit, &dg00x->dwork); in snd_dg00x_probe()
134 static void snd_dg00x_update(struct fw_unit *unit) in snd_dg00x_update() argument
136 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); in snd_dg00x_update()
140 snd_fw_schedule_registration(unit, &dg00x->dwork); in snd_dg00x_update()
155 static void snd_dg00x_remove(struct fw_unit *unit) in snd_dg00x_remove() argument
157 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); in snd_dg00x_remove()
172 fw_unit_put(dg00x->unit); in snd_dg00x_remove()