Lines Matching refs:unit

72 	struct fw_device *fw_dev = fw_parent_device(bebob->unit);  in name_device()
88 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device()
94 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device()
100 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device()
106 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device()
111 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION, in name_device()
123 data[0], data[1], dev_name(&bebob->unit->device), in name_device()
141 fw_unit_put(bebob->unit); in bebob_card_free()
155 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument
159 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in get_saffire_spec()
169 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument
173 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in check_audiophile_booted()
180 bebob_probe(struct fw_unit *unit, in bebob_probe() argument
202 spec = get_saffire_spec(unit); in bebob_probe()
205 !check_audiophile_booted(unit)) in bebob_probe()
213 err = snd_bebob_maudio_load_firmware(unit); in bebob_probe()
219 err = snd_card_new(&unit->device, index[card_index], id[card_index], in bebob_probe()
229 bebob->unit = fw_unit_get(unit); in bebob_probe()
289 fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, in bebob_probe()
293 dev_set_drvdata(&unit->device, bebob); in bebob_probe()
304 bebob_update(struct fw_unit *unit) in bebob_update() argument
306 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); in bebob_update()
311 fcp_bus_reset(bebob->unit); in bebob_update()
323 static void bebob_remove(struct fw_unit *unit) in bebob_remove() argument
325 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); in bebob_remove()