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