Lines Matching refs:unit

70 	struct fw_device *fw_dev = fw_parent_device(bebob->unit);  in name_device()
85 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device()
91 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device()
97 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device()
103 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device()
114 data[0], data[1], dev_name(&bebob->unit->device), in name_device()
132 fw_unit_put(bebob->unit); in bebob_card_free()
136 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument
140 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in get_saffire_spec()
150 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument
154 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in check_audiophile_booted()
184 static int bebob_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) in bebob_probe() argument
194 spec = get_saffire_spec(unit); in bebob_probe()
197 !check_audiophile_booted(unit)) in bebob_probe()
205 return snd_bebob_maudio_load_firmware(unit); in bebob_probe()
220 err = snd_card_new(&unit->device, index[card_index], id[card_index], THIS_MODULE, in bebob_probe()
231 bebob->unit = fw_unit_get(unit); in bebob_probe()
232 dev_set_drvdata(&unit->device, bebob); in bebob_probe()
293 fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, false, true); in bebob_probe()
319 bebob_update(struct fw_unit *unit) in bebob_update() argument
321 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); in bebob_update()
326 fcp_bus_reset(bebob->unit); in bebob_update()
329 static void bebob_remove(struct fw_unit *unit) in bebob_remove() argument
331 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); in bebob_remove()