Lines Matching refs:unit
46 static bool detect_loud_models(struct fw_unit *unit) in detect_loud_models() argument
57 err = fw_csr_string(unit->directory, CSR_MODEL, in detect_loud_models()
67 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card()
82 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card()
87 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card()
116 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); in name_card()
129 fw_unit_put(oxfw->unit); in oxfw_card_free()
134 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in detect_quirks()
209 static int oxfw_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry) in oxfw_probe() argument
215 if (entry->vendor_id == VENDOR_LOUD && entry->model_id == 0 && !detect_loud_models(unit)) in oxfw_probe()
218 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, sizeof(*oxfw), &card); in oxfw_probe()
224 oxfw->unit = fw_unit_get(unit); in oxfw_probe()
225 dev_set_drvdata(&unit->device, oxfw); in oxfw_probe()
279 static void oxfw_bus_reset(struct fw_unit *unit) in oxfw_bus_reset() argument
281 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); in oxfw_bus_reset()
283 fcp_bus_reset(oxfw->unit); in oxfw_bus_reset()
295 static void oxfw_remove(struct fw_unit *unit) in oxfw_remove() argument
297 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); in oxfw_remove()