Lines Matching refs:unit
33 static bool detect_loud_models(struct fw_unit *unit) in detect_loud_models() argument
46 err = fw_csr_string(unit->directory, CSR_MODEL, in detect_loud_models()
61 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card()
75 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card()
80 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card()
105 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); in name_card()
125 fw_unit_put(oxfw->unit); in oxfw_card_free()
137 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in detect_quirks()
169 static int oxfw_probe(struct fw_unit *unit, in oxfw_probe() argument
176 if ((id->vendor_id == VENDOR_LOUD) && !detect_loud_models(unit)) in oxfw_probe()
179 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, in oxfw_probe()
188 oxfw->unit = fw_unit_get(unit); in oxfw_probe()
239 dev_set_drvdata(&unit->device, oxfw); in oxfw_probe()
247 static void oxfw_bus_reset(struct fw_unit *unit) in oxfw_bus_reset() argument
249 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); in oxfw_bus_reset()
251 fcp_bus_reset(oxfw->unit); in oxfw_bus_reset()
262 static void oxfw_remove(struct fw_unit *unit) in oxfw_remove() argument
264 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); in oxfw_remove()