Lines Matching refs:unit
30 static bool detect_loud_models(struct fw_unit *unit) in detect_loud_models() argument
43 err = fw_csr_string(unit->directory, CSR_MODEL, in detect_loud_models()
58 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card()
72 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card()
77 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card()
102 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); in name_card()
122 fw_unit_put(oxfw->unit); in oxfw_card_free()
132 static int oxfw_probe(struct fw_unit *unit, in oxfw_probe() argument
139 if ((id->vendor_id == VENDOR_LOUD) && !detect_loud_models(unit)) in oxfw_probe()
142 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, in oxfw_probe()
151 oxfw->unit = fw_unit_get(unit); in oxfw_probe()
200 dev_set_drvdata(&unit->device, oxfw); in oxfw_probe()
208 static void oxfw_bus_reset(struct fw_unit *unit) in oxfw_bus_reset() argument
210 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); in oxfw_bus_reset()
212 fcp_bus_reset(oxfw->unit); in oxfw_bus_reset()
223 static void oxfw_remove(struct fw_unit *unit) in oxfw_remove() argument
225 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); in oxfw_remove()