Lines Matching refs:unit
42 static bool detect_loud_models(struct fw_unit *unit) in detect_loud_models() argument
55 err = fw_csr_string(unit->directory, CSR_MODEL, in detect_loud_models()
65 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card()
80 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card()
85 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card()
112 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); in name_card()
127 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in detect_quirks()
191 err = snd_card_new(&oxfw->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration()
239 dev_info(&oxfw->unit->device, in do_registration()
243 static int oxfw_probe(struct fw_unit *unit, in oxfw_probe() argument
248 if (entry->vendor_id == VENDOR_LOUD && !detect_loud_models(unit)) in oxfw_probe()
252 oxfw = devm_kzalloc(&unit->device, sizeof(struct snd_oxfw), GFP_KERNEL); in oxfw_probe()
255 oxfw->unit = fw_unit_get(unit); in oxfw_probe()
256 dev_set_drvdata(&unit->device, oxfw); in oxfw_probe()
265 snd_fw_schedule_registration(unit, &oxfw->dwork); in oxfw_probe()
270 static void oxfw_bus_reset(struct fw_unit *unit) in oxfw_bus_reset() argument
272 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); in oxfw_bus_reset()
275 snd_fw_schedule_registration(unit, &oxfw->dwork); in oxfw_bus_reset()
277 fcp_bus_reset(oxfw->unit); in oxfw_bus_reset()
291 static void oxfw_remove(struct fw_unit *unit) in oxfw_remove() argument
293 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); in oxfw_remove()
308 fw_unit_put(oxfw->unit); in oxfw_remove()