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