Lines Matching refs:unit

71 	struct fw_device *fw_dev = fw_parent_device(bebob->unit);  in name_device()
87 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device()
93 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device()
99 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device()
105 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device()
110 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION, in name_device()
122 data[0], data[1], dev_name(&bebob->unit->device), in name_device()
141 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument
145 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in get_saffire_spec()
155 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument
159 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in check_audiophile_booted()
186 err = snd_card_new(&bebob->unit->device, index[card_index], in do_registration()
242 dev_info(&bebob->unit->device, in do_registration()
247 bebob_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) in bebob_probe() argument
254 spec = get_saffire_spec(unit); in bebob_probe()
257 !check_audiophile_booted(unit)) in bebob_probe()
265 return snd_bebob_maudio_load_firmware(unit); in bebob_probe()
271 bebob = devm_kzalloc(&unit->device, sizeof(struct snd_bebob), in bebob_probe()
275 bebob->unit = fw_unit_get(unit); in bebob_probe()
276 dev_set_drvdata(&unit->device, bebob); in bebob_probe()
290 snd_fw_schedule_registration(unit, &bebob->dwork); in bebob_probe()
302 fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, in bebob_probe()
326 bebob_update(struct fw_unit *unit) in bebob_update() argument
328 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); in bebob_update()
335 snd_fw_schedule_registration(unit, &bebob->dwork); in bebob_update()
337 fcp_bus_reset(bebob->unit); in bebob_update()
340 static void bebob_remove(struct fw_unit *unit) in bebob_remove() argument
342 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); in bebob_remove()
360 fw_unit_put(bebob->unit); in bebob_remove()