Lines Matching refs:unit

69 	struct fw_device *fw_dev = fw_parent_device(bebob->unit);  in name_device()
84 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device()
90 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device()
96 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device()
102 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device()
113 data[0], data[1], dev_name(&bebob->unit->device), in name_device()
131 fw_unit_put(bebob->unit); in bebob_card_free()
145 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument
149 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in get_saffire_spec()
159 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument
163 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in check_audiophile_booted()
170 bebob_probe(struct fw_unit *unit, in bebob_probe() argument
192 spec = get_saffire_spec(unit); in bebob_probe()
195 !check_audiophile_booted(unit)) in bebob_probe()
203 err = snd_bebob_maudio_load_firmware(unit); in bebob_probe()
209 err = snd_card_new(&unit->device, index[card_index], id[card_index], in bebob_probe()
219 bebob->unit = fw_unit_get(unit); in bebob_probe()
279 fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, in bebob_probe()
283 dev_set_drvdata(&unit->device, bebob); in bebob_probe()
294 bebob_update(struct fw_unit *unit) in bebob_update() argument
296 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); in bebob_update()
301 fcp_bus_reset(bebob->unit); in bebob_update()
313 static void bebob_remove(struct fw_unit *unit) in bebob_remove() argument
315 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); in bebob_remove()