Lines Matching defs:unit

72 	struct fw_device *fw_dev = fw_parent_device(bebob->unit);
87 /* get model name from unit directory */
88 err = fw_csr_string(bebob->unit->directory, CSR_MODEL,
94 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID,
100 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION,
106 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID,
111 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION,
123 data[0], data[1], dev_name(&bebob->unit->device),
142 get_saffire_spec(struct fw_unit *unit)
146 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0)
156 check_audiophile_booted(struct fw_unit *unit)
160 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0)
187 err = snd_card_new(&bebob->unit->device, index[card_index],
243 dev_info(&bebob->unit->device,
248 bebob_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry)
255 spec = get_saffire_spec(unit);
258 !check_audiophile_booted(unit))
266 return snd_bebob_maudio_load_firmware(unit);
272 bebob = devm_kzalloc(&unit->device, sizeof(struct snd_bebob),
276 bebob->unit = fw_unit_get(unit);
277 dev_set_drvdata(&unit->device, bebob);
291 snd_fw_schedule_registration(unit, &bebob->dwork);
303 fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card,
327 bebob_update(struct fw_unit *unit)
329 struct snd_bebob *bebob = dev_get_drvdata(&unit->device);
336 snd_fw_schedule_registration(unit, &bebob->dwork);
338 fcp_bus_reset(bebob->unit);
341 static void bebob_remove(struct fw_unit *unit)
343 struct snd_bebob *bebob = dev_get_drvdata(&unit->device);
361 fw_unit_put(bebob->unit);