Lines Matching refs:unit
46 struct fw_device *fw_dev = fw_parent_device(tscm->unit); in identify_model()
53 dev_err(&tscm->unit->device, in identify_model()
82 dev_name(&tscm->unit->device), 100 << fw_dev->max_speed); in identify_model()
100 err = snd_card_new(&tscm->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
142 dev_info(&tscm->unit->device, in do_registration()
146 static int snd_tscm_probe(struct fw_unit *unit, in snd_tscm_probe() argument
152 tscm = devm_kzalloc(&unit->device, sizeof(struct snd_tscm), GFP_KERNEL); in snd_tscm_probe()
155 tscm->unit = fw_unit_get(unit); in snd_tscm_probe()
156 dev_set_drvdata(&unit->device, tscm); in snd_tscm_probe()
164 snd_fw_schedule_registration(unit, &tscm->dwork); in snd_tscm_probe()
169 static void snd_tscm_update(struct fw_unit *unit) in snd_tscm_update() argument
171 struct snd_tscm *tscm = dev_get_drvdata(&unit->device); in snd_tscm_update()
175 snd_fw_schedule_registration(unit, &tscm->dwork); in snd_tscm_update()
190 static void snd_tscm_remove(struct fw_unit *unit) in snd_tscm_remove() argument
192 struct snd_tscm *tscm = dev_get_drvdata(&unit->device); in snd_tscm_remove()
207 fw_unit_put(tscm->unit); in snd_tscm_remove()