ac97_ctrl          52 include/sound/ac97/codec.h 	struct ac97_controller	*ac97_ctrl;
ac97_ctrl          66 include/sound/ac97/controller.h void snd_ac97_controller_unregister(struct ac97_controller *ac97_ctrl);
ac97_ctrl          78 include/sound/ac97/controller.h snd_ac97_controller_unregister(struct ac97_controller *ac97_ctrl)
ac97_ctrl          61 sound/ac97/bus.c ac97_codec_find(struct ac97_controller *ac97_ctrl, unsigned int codec_num)
ac97_ctrl          66 sound/ac97/bus.c 	return ac97_ctrl->codecs[codec_num];
ac97_ctrl          70 sound/ac97/bus.c ac97_of_get_child_device(struct ac97_controller *ac97_ctrl, int idx,
ac97_ctrl          80 sound/ac97/bus.c 	for_each_child_of_node(ac97_ctrl->parent->of_node, node) {
ac97_ctrl          93 sound/ac97/bus.c 	struct ac97_controller *ac97_ctrl;
ac97_ctrl          96 sound/ac97/bus.c 	ac97_ctrl = adev->ac97_ctrl;
ac97_ctrl          97 sound/ac97/bus.c 	ac97_ctrl->codecs[adev->num] = NULL;
ac97_ctrl         102 sound/ac97/bus.c static int ac97_codec_add(struct ac97_controller *ac97_ctrl, int idx,
ac97_ctrl         111 sound/ac97/bus.c 	ac97_ctrl->codecs[idx] = codec;
ac97_ctrl         115 sound/ac97/bus.c 	codec->dev.parent = &ac97_ctrl->adap;
ac97_ctrl         117 sound/ac97/bus.c 	codec->ac97_ctrl = ac97_ctrl;
ac97_ctrl         120 sound/ac97/bus.c 	dev_set_name(&codec->dev, "%s:%u", dev_name(ac97_ctrl->parent), idx);
ac97_ctrl         121 sound/ac97/bus.c 	codec->dev.of_node = ac97_of_get_child_device(ac97_ctrl, idx,
ac97_ctrl         154 sound/ac97/bus.c static int ac97_bus_scan(struct ac97_controller *ac97_ctrl)
ac97_ctrl         160 sound/ac97/bus.c 		if (ac97_codec_find(ac97_ctrl, i))
ac97_ctrl         162 sound/ac97/bus.c 		if (!(ac97_ctrl->slots_available & BIT(i)))
ac97_ctrl         164 sound/ac97/bus.c 		vendor_id = snd_ac97_bus_scan_one(ac97_ctrl, i);
ac97_ctrl         168 sound/ac97/bus.c 		ret = ac97_codec_add(ac97_ctrl, i, vendor_id);
ac97_ctrl         175 sound/ac97/bus.c static int ac97_bus_reset(struct ac97_controller *ac97_ctrl)
ac97_ctrl         177 sound/ac97/bus.c 	ac97_ctrl->ops->reset(ac97_ctrl);
ac97_ctrl         222 sound/ac97/bus.c 	struct ac97_controller *ac97_ctrl = adev->ac97_ctrl;
ac97_ctrl         224 sound/ac97/bus.c 	return ac97_ctrl->codecs_pdata[adev->num];
ac97_ctrl         228 sound/ac97/bus.c static void ac97_ctrl_codecs_unregister(struct ac97_controller *ac97_ctrl)
ac97_ctrl         233 sound/ac97/bus.c 		if (ac97_ctrl->codecs[i]) {
ac97_ctrl         234 sound/ac97/bus.c 			ac97_ctrl->codecs[i]->ac97_ctrl = &ac97_unbound_ctrl;
ac97_ctrl         235 sound/ac97/bus.c 			device_unregister(&ac97_ctrl->codecs[i]->dev);
ac97_ctrl         243 sound/ac97/bus.c 	struct ac97_controller *ac97_ctrl;
ac97_ctrl         246 sound/ac97/bus.c 	ac97_ctrl = to_ac97_controller(dev);
ac97_ctrl         247 sound/ac97/bus.c 	ac97_ctrl->ops->reset(ac97_ctrl);
ac97_ctrl         257 sound/ac97/bus.c 	struct ac97_controller *ac97_ctrl;
ac97_ctrl         263 sound/ac97/bus.c 	ac97_ctrl = to_ac97_controller(dev);
ac97_ctrl         264 sound/ac97/bus.c 	ac97_ctrl->ops->warm_reset(ac97_ctrl);
ac97_ctrl         286 sound/ac97/bus.c static void ac97_del_adapter(struct ac97_controller *ac97_ctrl)
ac97_ctrl         289 sound/ac97/bus.c 	ac97_ctrl_codecs_unregister(ac97_ctrl);
ac97_ctrl         290 sound/ac97/bus.c 	list_del(&ac97_ctrl->controllers);
ac97_ctrl         293 sound/ac97/bus.c 	device_unregister(&ac97_ctrl->adap);
ac97_ctrl         298 sound/ac97/bus.c 	struct ac97_controller *ac97_ctrl;
ac97_ctrl         300 sound/ac97/bus.c 	ac97_ctrl = to_ac97_controller(dev);
ac97_ctrl         301 sound/ac97/bus.c 	idr_remove(&ac97_adapter_idr, ac97_ctrl->nr);
ac97_ctrl         302 sound/ac97/bus.c 	dev_dbg(&ac97_ctrl->adap, "adapter unregistered by %s\n",
ac97_ctrl         303 sound/ac97/bus.c 		dev_name(ac97_ctrl->parent));
ac97_ctrl         311 sound/ac97/bus.c static int ac97_add_adapter(struct ac97_controller *ac97_ctrl)
ac97_ctrl         316 sound/ac97/bus.c 	ret = idr_alloc(&ac97_adapter_idr, ac97_ctrl, 0, 0, GFP_KERNEL);
ac97_ctrl         317 sound/ac97/bus.c 	ac97_ctrl->nr = ret;
ac97_ctrl         319 sound/ac97/bus.c 		dev_set_name(&ac97_ctrl->adap, "ac97-%d", ret);
ac97_ctrl         320 sound/ac97/bus.c 		ac97_ctrl->adap.type = &ac97_adapter_type;
ac97_ctrl         321 sound/ac97/bus.c 		ac97_ctrl->adap.parent = ac97_ctrl->parent;
ac97_ctrl         322 sound/ac97/bus.c 		ret = device_register(&ac97_ctrl->adap);
ac97_ctrl         324 sound/ac97/bus.c 			put_device(&ac97_ctrl->adap);
ac97_ctrl         327 sound/ac97/bus.c 		list_add(&ac97_ctrl->controllers, &ac97_controllers);
ac97_ctrl         331 sound/ac97/bus.c 		dev_dbg(&ac97_ctrl->adap, "adapter registered by %s\n",
ac97_ctrl         332 sound/ac97/bus.c 			dev_name(ac97_ctrl->parent));
ac97_ctrl         352 sound/ac97/bus.c 	struct ac97_controller *ac97_ctrl;
ac97_ctrl         355 sound/ac97/bus.c 	ac97_ctrl = kzalloc(sizeof(*ac97_ctrl), GFP_KERNEL);
ac97_ctrl         356 sound/ac97/bus.c 	if (!ac97_ctrl)
ac97_ctrl         360 sound/ac97/bus.c 		ac97_ctrl->codecs_pdata[i] = codecs_pdata[i];
ac97_ctrl         362 sound/ac97/bus.c 	ac97_ctrl->ops = ops;
ac97_ctrl         363 sound/ac97/bus.c 	ac97_ctrl->slots_available = slots_available;
ac97_ctrl         364 sound/ac97/bus.c 	ac97_ctrl->parent = dev;
ac97_ctrl         365 sound/ac97/bus.c 	ret = ac97_add_adapter(ac97_ctrl);
ac97_ctrl         369 sound/ac97/bus.c 	ac97_bus_reset(ac97_ctrl);
ac97_ctrl         370 sound/ac97/bus.c 	ac97_bus_scan(ac97_ctrl);
ac97_ctrl         372 sound/ac97/bus.c 	return ac97_ctrl;
ac97_ctrl         374 sound/ac97/bus.c 	kfree(ac97_ctrl);
ac97_ctrl         384 sound/ac97/bus.c void snd_ac97_controller_unregister(struct ac97_controller *ac97_ctrl)
ac97_ctrl         386 sound/ac97/bus.c 	ac97_del_adapter(ac97_ctrl);
ac97_ctrl          23 sound/ac97/snd_ac97_compat.c 	struct ac97_controller *actrl = adev->ac97_ctrl;
ac97_ctrl          32 sound/ac97/snd_ac97_compat.c 	struct ac97_controller *actrl = adev->ac97_ctrl;
ac97_ctrl          42 sound/ac97/snd_ac97_compat.c 	struct ac97_controller *actrl = adev->ac97_ctrl;
ac97_ctrl          51 sound/ac97/snd_ac97_compat.c 	struct ac97_controller *actrl = adev->ac97_ctrl;
ac97_ctrl         102 sound/ac97/snd_ac97_compat.c 	struct ac97_controller *actrl = adev->ac97_ctrl;
ac97_ctrl         360 sound/pci/trident/trident.h 	unsigned int ac97_ctrl;
ac97_ctrl        2528 sound/pci/trident/trident_main.c 	val = trident->ac97_ctrl = inl(TRID_REG(trident, NX_ACR0_AC97_COM_STAT));
ac97_ctrl        2542 sound/pci/trident/trident_main.c 	val = trident->ac97_ctrl = inl(TRID_REG(trident, NX_ACR0_AC97_COM_STAT));
ac97_ctrl        2546 sound/pci/trident/trident_main.c 	change = val != trident->ac97_ctrl;
ac97_ctrl        2547 sound/pci/trident/trident_main.c 	trident->ac97_ctrl = val;
ac97_ctrl        2548 sound/pci/trident/trident_main.c 	outl(trident->ac97_ctrl = val, TRID_REG(trident, NX_ACR0_AC97_COM_STAT));
ac97_ctrl        3297 sound/pci/trident/trident_main.c 		snd_iprintf(buffer, "Rear Speakers    : %s\n", trident->ac97_ctrl & 0x00000010 ? "on" : "off");
ac97_ctrl        3407 sound/pci/trident/trident_main.c 	trident->ac97_ctrl = 0x0000004a;
ac97_ctrl        3408 sound/pci/trident/trident_main.c 	outl(trident->ac97_ctrl, TRID_REG(trident, DX_ACR2_AC97_COM_STAT));
ac97_ctrl        3460 sound/pci/trident/trident_main.c 	trident->ac97_ctrl = 0x00000002;
ac97_ctrl        3461 sound/pci/trident/trident_main.c 	outl(trident->ac97_ctrl, TRID_REG(trident, NX_ACR0_AC97_COM_STAT));