atc                70 arch/ia64/kernel/efi.c 	efi_time_cap_t *atc = NULL;					       \
atc                74 arch/ia64/kernel/efi.c 		atc = adjust_arg(tc);					       \
atc                77 arch/ia64/kernel/efi.c 				adjust_arg(tm), atc);			       \
atc                87 drivers/base/transport_class.c int anon_transport_class_register(struct anon_transport_class *atc)
atc                90 drivers/base/transport_class.c 	atc->container.class = &atc->tclass.class;
atc                91 drivers/base/transport_class.c 	attribute_container_set_no_classdevs(&atc->container);
atc                92 drivers/base/transport_class.c 	error = attribute_container_register(&atc->container);
atc                95 drivers/base/transport_class.c 	atc->tclass.setup = anon_transport_dummy_function;
atc                96 drivers/base/transport_class.c 	atc->tclass.remove = anon_transport_dummy_function;
atc               109 drivers/base/transport_class.c void anon_transport_class_unregister(struct anon_transport_class *atc)
atc               111 drivers/base/transport_class.c 	if (unlikely(attribute_container_unregister(&atc->container)))
atc                80 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c 		uint32_t atc:1;
atc               688 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c 	cntl.bitfields.atc = 1;
atc               135 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c 	rm_packet->bitfields2.atc = 0;
atc               321 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c 				cntl.bitfields.atc);
atc               418 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c 				cntl.bitfields.atc);
atc               200 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.h 		uint32_t atc:1;
atc               346 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c 	packet->bitfields2.atc = 0;
atc               136 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_diq.h 			unsigned int atc:1;
atc               462 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_vi.h 			unsigned int atc:1;
atc               232 drivers/gpu/drm/radeon/cik_reg.h 		uint32_t atc:1;
atc               472 drivers/iommu/arm-smmu-v3.c 		} atc;
atc               877 drivers/iommu/arm-smmu-v3.c 		cmd[0] |= FIELD_PREP(CMDQ_ATC_0_GLOBAL, ent->atc.global);
atc               878 drivers/iommu/arm-smmu-v3.c 		cmd[0] |= FIELD_PREP(CMDQ_ATC_0_SSID, ent->atc.ssid);
atc               879 drivers/iommu/arm-smmu-v3.c 		cmd[0] |= FIELD_PREP(CMDQ_ATC_0_SID, ent->atc.sid);
atc               880 drivers/iommu/arm-smmu-v3.c 		cmd[1] |= FIELD_PREP(CMDQ_ATC_1_SIZE, ent->atc.size);
atc               881 drivers/iommu/arm-smmu-v3.c 		cmd[1] |= ent->atc.addr & CMDQ_ATC_1_ADDR_MASK;
atc              1865 drivers/iommu/arm-smmu-v3.c 		.atc.ssid		= ssid,
atc              1869 drivers/iommu/arm-smmu-v3.c 		cmd->atc.size = ATC_INV_SIZE_ALL;
atc              1901 drivers/iommu/arm-smmu-v3.c 	cmd->atc.addr	= page_start << inval_grain_shift;
atc              1902 drivers/iommu/arm-smmu-v3.c 	cmd->atc.size	= log2_span;
atc              1914 drivers/iommu/arm-smmu-v3.c 		cmd->atc.sid = master->sids[i];
atc              2051 drivers/pinctrl/tegra/pinctrl-tegra20.c 	MUX_PG(atc,    IDE,       NAND,      GMI,       SDIO4,         0x14, 2,  0x80, 22, 0xa0, 4),
atc                48 drivers/video/fbdev/i740fb.c 	u8 atc[VGA_ATT_C];
atc               555 drivers/video/fbdev/i740fb.c 		par->atc[i] = i;
atc               556 drivers/video/fbdev/i740fb.c 	par->atc[VGA_ATC_MODE] = 0x81;
atc               557 drivers/video/fbdev/i740fb.c 	par->atc[VGA_ATC_OVERSCAN] = 0x00;	/* 0 for EGA, 0xFF for VGA */
atc               558 drivers/video/fbdev/i740fb.c 	par->atc[VGA_ATC_PLANE_ENABLE] = 0x0F;
atc               559 drivers/video/fbdev/i740fb.c 	par->atc[VGA_ATC_COLOR_PAGE] = 0x00;
atc               643 drivers/video/fbdev/i740fb.c 	par->atc[VGA_ATC_OVERSCAN] = 0;
atc               792 drivers/video/fbdev/i740fb.c 		i740outb(par, VGA_ATT_IW, par->atc[i]);
atc               523 drivers/video/fbdev/vga16fb.c 	u8 atc[VGA_ATT_C];
atc               558 drivers/video/fbdev/vga16fb.c 		atc[i] = i;
atc               560 drivers/video/fbdev/vga16fb.c 		atc[VGA_ATC_MODE] = 0x04;
atc               562 drivers/video/fbdev/vga16fb.c 		atc[VGA_ATC_MODE] = 0x41;
atc               564 drivers/video/fbdev/vga16fb.c 		atc[VGA_ATC_MODE] = 0x81;
atc               565 drivers/video/fbdev/vga16fb.c 	atc[VGA_ATC_OVERSCAN] = 0x00;	/* 0 for EGA, 0xFF for VGA */
atc               566 drivers/video/fbdev/vga16fb.c 	atc[VGA_ATC_PLANE_ENABLE] = 0x0F;
atc               568 drivers/video/fbdev/vga16fb.c 		atc[VGA_ATC_PEL] = (info->var.xoffset & 3) << 1;
atc               570 drivers/video/fbdev/vga16fb.c 		atc[VGA_ATC_PEL] = info->var.xoffset & 7;
atc               571 drivers/video/fbdev/vga16fb.c 	atc[VGA_ATC_COLOR_PAGE] = 0x00;
atc               621 drivers/video/fbdev/vga16fb.c 		vga_io_wattr(i, atc[i]);
atc                28 include/linux/attribute_container.h attribute_container_no_classdevs(struct attribute_container *atc)
atc                30 include/linux/attribute_container.h 	return atc->flags & ATTRIBUTE_CONTAINER_NO_CLASSDEVS;
atc                34 include/linux/attribute_container.h attribute_container_set_no_classdevs(struct attribute_container *atc)
atc                36 include/linux/attribute_container.h 	atc->flags |= ATTRIBUTE_CONTAINER_NO_CLASSDEVS;
atc                80 sound/pci/ctxfi/ctatc.c 	int (*create)(struct ct_atc *atc,
atc               126 sound/pci/ctxfi/ctatc.c atc_pcm_release_resources(struct ct_atc *atc, struct ct_atc_pcm *apcm);
atc               133 sound/pci/ctxfi/ctatc.c static int ct_map_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               142 sound/pci/ctxfi/ctatc.c 	vm = atc->vm;
atc               152 sound/pci/ctxfi/ctatc.c static void ct_unmap_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               159 sound/pci/ctxfi/ctatc.c 	vm = atc->vm;
atc               166 sound/pci/ctxfi/ctatc.c static unsigned long atc_get_ptp_phys(struct ct_atc *atc, int index)
atc               168 sound/pci/ctxfi/ctatc.c 	return atc->vm->get_ptp_phys(atc->vm, index);
atc               240 sound/pci/ctxfi/ctatc.c static int atc_pcm_playback_prepare(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               242 sound/pci/ctxfi/ctatc.c 	struct src_mgr *src_mgr = atc->rsc_mgrs[SRC];
atc               243 sound/pci/ctxfi/ctatc.c 	struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER];
atc               254 sound/pci/ctxfi/ctatc.c 	atc_pcm_release_resources(atc, apcm);
atc               258 sound/pci/ctxfi/ctatc.c 	desc.msr = atc->msr;
atc               265 sound/pci/ctxfi/ctatc.c 						(atc->rsr * atc->msr));
atc               270 sound/pci/ctxfi/ctatc.c 					     atc->card));
atc               280 sound/pci/ctxfi/ctatc.c 	mix_dsc.msr = atc->msr;
atc               291 sound/pci/ctxfi/ctatc.c 	err = ct_map_audio_buffer(atc, apcm);
atc               299 sound/pci/ctxfi/ctatc.c 		mutex_lock(&atc->atc_mutex);
atc               301 sound/pci/ctxfi/ctatc.c 					INIT_VOL, atc->pcm[i+device*2]);
atc               302 sound/pci/ctxfi/ctatc.c 		mutex_unlock(&atc->atc_mutex);
atc               313 sound/pci/ctxfi/ctatc.c 	atc_pcm_release_resources(atc, apcm);
atc               318 sound/pci/ctxfi/ctatc.c atc_pcm_release_resources(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               320 sound/pci/ctxfi/ctatc.c 	struct src_mgr *src_mgr = atc->rsc_mgrs[SRC];
atc               321 sound/pci/ctxfi/ctatc.c 	struct srcimp_mgr *srcimp_mgr = atc->rsc_mgrs[SRCIMP];
atc               322 sound/pci/ctxfi/ctatc.c 	struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER];
atc               323 sound/pci/ctxfi/ctatc.c 	struct sum_mgr *sum_mgr = atc->rsc_mgrs[SUM];
atc               368 sound/pci/ctxfi/ctatc.c 		ct_unmap_audio_buffer(atc, apcm);
atc               375 sound/pci/ctxfi/ctatc.c static int atc_pcm_playback_start(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               400 sound/pci/ctxfi/ctatc.c static int atc_pcm_stop(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               427 sound/pci/ctxfi/ctatc.c atc_pcm_playback_position(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               438 sound/pci/ctxfi/ctatc.c 		dev_dbg(atc->card->dev,
atc               459 sound/pci/ctxfi/ctatc.c static void setup_src_node_conf(struct ct_atc *atc, struct ct_atc_pcm *apcm,
atc               465 sound/pci/ctxfi/ctatc.c 	pitch = atc_get_pitch((atc->rsr * atc->msr),
atc               469 sound/pci/ctxfi/ctatc.c 	if (1 == atc->msr) { /* FIXME: do we really need SRC here if pitch==1 */
atc               474 sound/pci/ctxfi/ctatc.c 	} else if (2 <= atc->msr) {
atc               478 sound/pci/ctxfi/ctatc.c 			conf[0].pitch = (atc->msr << 24);
atc               480 sound/pci/ctxfi/ctatc.c 			conf[0].imp_msr = atc->msr;
atc               482 sound/pci/ctxfi/ctatc.c 			conf[1].pitch = atc_get_pitch(atc->rsr,
atc               492 sound/pci/ctxfi/ctatc.c 				    = conf[0].imp_msr = atc->msr;
atc               500 sound/pci/ctxfi/ctatc.c atc_pcm_capture_get_resources(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               502 sound/pci/ctxfi/ctatc.c 	struct src_mgr *src_mgr = atc->rsc_mgrs[SRC];
atc               503 sound/pci/ctxfi/ctatc.c 	struct srcimp_mgr *srcimp_mgr = atc->rsc_mgrs[SRCIMP];
atc               504 sound/pci/ctxfi/ctatc.c 	struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER];
atc               505 sound/pci/ctxfi/ctatc.c 	struct sum_mgr *sum_mgr = atc->rsc_mgrs[SUM];
atc               518 sound/pci/ctxfi/ctatc.c 	atc_pcm_release_resources(atc, apcm);
atc               526 sound/pci/ctxfi/ctatc.c 	pitch = atc_get_pitch((atc->rsr * atc->msr),
atc               529 sound/pci/ctxfi/ctatc.c 	setup_src_node_conf(atc, apcm, src_node_conf, &n_srcc);
atc               536 sound/pci/ctxfi/ctatc.c 		n_amixer += multi * atc->msr;
atc               537 sound/pci/ctxfi/ctatc.c 		n_srcimp += multi * atc->msr;
atc               582 sound/pci/ctxfi/ctatc.c 			mix_dsc.msr = atc->msr;
atc               597 sound/pci/ctxfi/ctatc.c 	sum_dsc.msr = atc->msr;
atc               602 sound/pci/ctxfi/ctatc.c 	pitch = atc_get_pitch((atc->rsr * atc->msr),
atc               609 sound/pci/ctxfi/ctatc.c 			srcimp_dsc.msr = (pitch <= 0x8000000) ? atc->msr : 1;
atc               633 sound/pci/ctxfi/ctatc.c 	err = ct_map_audio_buffer(atc, apcm);
atc               640 sound/pci/ctxfi/ctatc.c 	atc_pcm_release_resources(atc, apcm);
atc               644 sound/pci/ctxfi/ctatc.c static int atc_pcm_capture_prepare(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               649 sound/pci/ctxfi/ctatc.c 	struct ct_mixer *mixer = atc->mixer;
atc               656 sound/pci/ctxfi/ctatc.c 	atc_pcm_release_resources(atc, apcm);
atc               659 sound/pci/ctxfi/ctatc.c 	err = atc_pcm_capture_get_resources(atc, apcm);
atc               689 sound/pci/ctxfi/ctatc.c 	pitch = atc_get_pitch((atc->rsr * atc->msr),
atc               697 sound/pci/ctxfi/ctatc.c 			for (j = 0; j < atc->msr; j++) {
atc               722 sound/pci/ctxfi/ctatc.c static int atc_pcm_capture_start(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               725 sound/pci/ctxfi/ctatc.c 	struct src_mgr *src_mgr = atc->rsc_mgrs[SRC];
atc               743 sound/pci/ctxfi/ctatc.c 					     atc->card));
atc               773 sound/pci/ctxfi/ctatc.c atc_pcm_capture_position(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               782 sound/pci/ctxfi/ctatc.c static int spdif_passthru_playback_get_resources(struct ct_atc *atc,
atc               785 sound/pci/ctxfi/ctatc.c 	struct src_mgr *src_mgr = atc->rsc_mgrs[SRC];
atc               786 sound/pci/ctxfi/ctatc.c 	struct amixer_mgr *amixer_mgr = atc->rsc_mgrs[AMIXER];
atc               792 sound/pci/ctxfi/ctatc.c 	unsigned int pitch, rsr = atc->pll_rate;
atc               795 sound/pci/ctxfi/ctatc.c 	atc_pcm_release_resources(atc, apcm);
atc               813 sound/pci/ctxfi/ctatc.c 					     atc->card));
atc               835 sound/pci/ctxfi/ctatc.c 	err = ct_map_audio_buffer(atc, apcm);
atc               842 sound/pci/ctxfi/ctatc.c 	atc_pcm_release_resources(atc, apcm);
atc               846 sound/pci/ctxfi/ctatc.c static int atc_pll_init(struct ct_atc *atc, int rate)
atc               848 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc               851 sound/pci/ctxfi/ctatc.c 	atc->pll_rate = err ? 0 : rate;
atc               856 sound/pci/ctxfi/ctatc.c spdif_passthru_playback_setup(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               858 sound/pci/ctxfi/ctatc.c 	struct dao *dao = container_of(atc->daios[SPDIFOO], struct dao, daio);
atc               878 sound/pci/ctxfi/ctatc.c 	mutex_lock(&atc->atc_mutex);
atc               886 sound/pci/ctxfi/ctatc.c 	if ((rate != atc->pll_rate) && (32000 != rate))
atc               887 sound/pci/ctxfi/ctatc.c 		err = atc_pll_init(atc, rate);
atc               888 sound/pci/ctxfi/ctatc.c 	mutex_unlock(&atc->atc_mutex);
atc               894 sound/pci/ctxfi/ctatc.c spdif_passthru_playback_prepare(struct ct_atc *atc, struct ct_atc_pcm *apcm)
atc               902 sound/pci/ctxfi/ctatc.c 	atc_pcm_release_resources(atc, apcm);
atc               906 sound/pci/ctxfi/ctatc.c 	err = spdif_passthru_playback_setup(atc, apcm);
atc               911 sound/pci/ctxfi/ctatc.c 	err = spdif_passthru_playback_get_resources(atc, apcm);
atc               925 sound/pci/ctxfi/ctatc.c 	mutex_lock(&atc->atc_mutex);
atc               926 sound/pci/ctxfi/ctatc.c 	dao = container_of(atc->daios[SPDIFOO], struct dao, daio);
atc               931 sound/pci/ctxfi/ctatc.c 	mutex_unlock(&atc->atc_mutex);
atc               938 sound/pci/ctxfi/ctatc.c static int atc_select_line_in(struct ct_atc *atc)
atc               940 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc               941 sound/pci/ctxfi/ctatc.c 	struct ct_mixer *mixer = atc->mixer;
atc               952 sound/pci/ctxfi/ctatc.c 	src = atc->srcs[2];
atc               954 sound/pci/ctxfi/ctatc.c 	src = atc->srcs[3];
atc               960 sound/pci/ctxfi/ctatc.c static int atc_select_mic_in(struct ct_atc *atc)
atc               962 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc               963 sound/pci/ctxfi/ctatc.c 	struct ct_mixer *mixer = atc->mixer;
atc               974 sound/pci/ctxfi/ctatc.c 	src = atc->srcs[2];
atc               976 sound/pci/ctxfi/ctatc.c 	src = atc->srcs[3];
atc               982 sound/pci/ctxfi/ctatc.c static struct capabilities atc_capabilities(struct ct_atc *atc)
atc               984 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc               989 sound/pci/ctxfi/ctatc.c static int atc_output_switch_get(struct ct_atc *atc)
atc               991 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc               996 sound/pci/ctxfi/ctatc.c static int atc_output_switch_put(struct ct_atc *atc, int position)
atc               998 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc              1003 sound/pci/ctxfi/ctatc.c static int atc_mic_source_switch_get(struct ct_atc *atc)
atc              1005 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc              1010 sound/pci/ctxfi/ctatc.c static int atc_mic_source_switch_put(struct ct_atc *atc, int position)
atc              1012 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc              1017 sound/pci/ctxfi/ctatc.c static int atc_select_digit_io(struct ct_atc *atc)
atc              1019 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc              1029 sound/pci/ctxfi/ctatc.c static int atc_daio_unmute(struct ct_atc *atc, unsigned char state, int type)
atc              1031 sound/pci/ctxfi/ctatc.c 	struct daio_mgr *daio_mgr = atc->rsc_mgrs[DAIO];
atc              1034 sound/pci/ctxfi/ctatc.c 		daio_mgr->daio_enable(daio_mgr, atc->daios[type]);
atc              1036 sound/pci/ctxfi/ctatc.c 		daio_mgr->daio_disable(daio_mgr, atc->daios[type]);
atc              1044 sound/pci/ctxfi/ctatc.c atc_dao_get_status(struct ct_atc *atc, unsigned int *status, int type)
atc              1046 sound/pci/ctxfi/ctatc.c 	struct dao *dao = container_of(atc->daios[type], struct dao, daio);
atc              1051 sound/pci/ctxfi/ctatc.c atc_dao_set_status(struct ct_atc *atc, unsigned int status, int type)
atc              1053 sound/pci/ctxfi/ctatc.c 	struct dao *dao = container_of(atc->daios[type], struct dao, daio);
atc              1060 sound/pci/ctxfi/ctatc.c static int atc_line_front_unmute(struct ct_atc *atc, unsigned char state)
atc              1062 sound/pci/ctxfi/ctatc.c 	return atc_daio_unmute(atc, state, LINEO1);
atc              1065 sound/pci/ctxfi/ctatc.c static int atc_line_surround_unmute(struct ct_atc *atc, unsigned char state)
atc              1067 sound/pci/ctxfi/ctatc.c 	return atc_daio_unmute(atc, state, LINEO2);
atc              1070 sound/pci/ctxfi/ctatc.c static int atc_line_clfe_unmute(struct ct_atc *atc, unsigned char state)
atc              1072 sound/pci/ctxfi/ctatc.c 	return atc_daio_unmute(atc, state, LINEO3);
atc              1075 sound/pci/ctxfi/ctatc.c static int atc_line_rear_unmute(struct ct_atc *atc, unsigned char state)
atc              1077 sound/pci/ctxfi/ctatc.c 	return atc_daio_unmute(atc, state, LINEO4);
atc              1080 sound/pci/ctxfi/ctatc.c static int atc_line_in_unmute(struct ct_atc *atc, unsigned char state)
atc              1082 sound/pci/ctxfi/ctatc.c 	return atc_daio_unmute(atc, state, LINEIM);
atc              1085 sound/pci/ctxfi/ctatc.c static int atc_mic_unmute(struct ct_atc *atc, unsigned char state)
atc              1087 sound/pci/ctxfi/ctatc.c 	return atc_daio_unmute(atc, state, MIC);
atc              1090 sound/pci/ctxfi/ctatc.c static int atc_spdif_out_unmute(struct ct_atc *atc, unsigned char state)
atc              1092 sound/pci/ctxfi/ctatc.c 	return atc_daio_unmute(atc, state, SPDIFOO);
atc              1095 sound/pci/ctxfi/ctatc.c static int atc_spdif_in_unmute(struct ct_atc *atc, unsigned char state)
atc              1097 sound/pci/ctxfi/ctatc.c 	return atc_daio_unmute(atc, state, SPDIFIO);
atc              1100 sound/pci/ctxfi/ctatc.c static int atc_spdif_out_get_status(struct ct_atc *atc, unsigned int *status)
atc              1102 sound/pci/ctxfi/ctatc.c 	return atc_dao_get_status(atc, status, SPDIFOO);
atc              1105 sound/pci/ctxfi/ctatc.c static int atc_spdif_out_set_status(struct ct_atc *atc, unsigned int status)
atc              1107 sound/pci/ctxfi/ctatc.c 	return atc_dao_set_status(atc, status, SPDIFOO);
atc              1110 sound/pci/ctxfi/ctatc.c static int atc_spdif_out_passthru(struct ct_atc *atc, unsigned char state)
atc              1115 sound/pci/ctxfi/ctatc.c 	struct ct_mixer *mixer = atc->mixer;
atc              1119 sound/pci/ctxfi/ctatc.c 	mutex_lock(&atc->atc_mutex);
atc              1120 sound/pci/ctxfi/ctatc.c 	dao = container_of(atc->daios[SPDIFOO], struct dao, daio);
atc              1121 sound/pci/ctxfi/ctatc.c 	da_dsc.msr = state ? 1 : atc->msr;
atc              1132 sound/pci/ctxfi/ctatc.c 		if (atc->pll_rate != atc->rsr)
atc              1133 sound/pci/ctxfi/ctatc.c 			err = atc_pll_init(atc, atc->rsr);
atc              1137 sound/pci/ctxfi/ctatc.c 	mutex_unlock(&atc->atc_mutex);
atc              1142 sound/pci/ctxfi/ctatc.c static int atc_release_resources(struct ct_atc *atc)
atc              1155 sound/pci/ctxfi/ctatc.c 	if (atc->mixer) {
atc              1156 sound/pci/ctxfi/ctatc.c 		mixer = atc->mixer;
atc              1165 sound/pci/ctxfi/ctatc.c 	if (atc->daios) {
atc              1166 sound/pci/ctxfi/ctatc.c 		daio_mgr = (struct daio_mgr *)atc->rsc_mgrs[DAIO];
atc              1167 sound/pci/ctxfi/ctatc.c 		for (i = 0; i < atc->n_daio; i++) {
atc              1168 sound/pci/ctxfi/ctatc.c 			daio = atc->daios[i];
atc              1176 sound/pci/ctxfi/ctatc.c 		kfree(atc->daios);
atc              1177 sound/pci/ctxfi/ctatc.c 		atc->daios = NULL;
atc              1180 sound/pci/ctxfi/ctatc.c 	if (atc->pcm) {
atc              1181 sound/pci/ctxfi/ctatc.c 		sum_mgr = atc->rsc_mgrs[SUM];
atc              1182 sound/pci/ctxfi/ctatc.c 		for (i = 0; i < atc->n_pcm; i++)
atc              1183 sound/pci/ctxfi/ctatc.c 			sum_mgr->put_sum(sum_mgr, atc->pcm[i]);
atc              1185 sound/pci/ctxfi/ctatc.c 		kfree(atc->pcm);
atc              1186 sound/pci/ctxfi/ctatc.c 		atc->pcm = NULL;
atc              1189 sound/pci/ctxfi/ctatc.c 	if (atc->srcs) {
atc              1190 sound/pci/ctxfi/ctatc.c 		src_mgr = atc->rsc_mgrs[SRC];
atc              1191 sound/pci/ctxfi/ctatc.c 		for (i = 0; i < atc->n_src; i++)
atc              1192 sound/pci/ctxfi/ctatc.c 			src_mgr->put_src(src_mgr, atc->srcs[i]);
atc              1194 sound/pci/ctxfi/ctatc.c 		kfree(atc->srcs);
atc              1195 sound/pci/ctxfi/ctatc.c 		atc->srcs = NULL;
atc              1198 sound/pci/ctxfi/ctatc.c 	if (atc->srcimps) {
atc              1199 sound/pci/ctxfi/ctatc.c 		srcimp_mgr = atc->rsc_mgrs[SRCIMP];
atc              1200 sound/pci/ctxfi/ctatc.c 		for (i = 0; i < atc->n_srcimp; i++) {
atc              1201 sound/pci/ctxfi/ctatc.c 			srcimp = atc->srcimps[i];
atc              1203 sound/pci/ctxfi/ctatc.c 			srcimp_mgr->put_srcimp(srcimp_mgr, atc->srcimps[i]);
atc              1205 sound/pci/ctxfi/ctatc.c 		kfree(atc->srcimps);
atc              1206 sound/pci/ctxfi/ctatc.c 		atc->srcimps = NULL;
atc              1212 sound/pci/ctxfi/ctatc.c static int ct_atc_destroy(struct ct_atc *atc)
atc              1216 sound/pci/ctxfi/ctatc.c 	if (!atc)
atc              1219 sound/pci/ctxfi/ctatc.c 	if (atc->timer) {
atc              1220 sound/pci/ctxfi/ctatc.c 		ct_timer_free(atc->timer);
atc              1221 sound/pci/ctxfi/ctatc.c 		atc->timer = NULL;
atc              1224 sound/pci/ctxfi/ctatc.c 	atc_release_resources(atc);
atc              1227 sound/pci/ctxfi/ctatc.c 	if (atc->mixer)
atc              1228 sound/pci/ctxfi/ctatc.c 		ct_mixer_destroy(atc->mixer);
atc              1231 sound/pci/ctxfi/ctatc.c 		if (rsc_mgr_funcs[i].destroy && atc->rsc_mgrs[i])
atc              1232 sound/pci/ctxfi/ctatc.c 			rsc_mgr_funcs[i].destroy(atc->rsc_mgrs[i]);
atc              1236 sound/pci/ctxfi/ctatc.c 	if (atc->hw)
atc              1237 sound/pci/ctxfi/ctatc.c 		destroy_hw_obj(atc->hw);
atc              1240 sound/pci/ctxfi/ctatc.c 	if (atc->vm) {
atc              1241 sound/pci/ctxfi/ctatc.c 		ct_vm_destroy(atc->vm);
atc              1242 sound/pci/ctxfi/ctatc.c 		atc->vm = NULL;
atc              1245 sound/pci/ctxfi/ctatc.c 	kfree(atc);
atc              1252 sound/pci/ctxfi/ctatc.c 	struct ct_atc *atc = dev->device_data;
atc              1253 sound/pci/ctxfi/ctatc.c 	return ct_atc_destroy(atc);
atc              1256 sound/pci/ctxfi/ctatc.c static int atc_identify_card(struct ct_atc *atc, unsigned int ssid)
atc              1262 sound/pci/ctxfi/ctatc.c 	switch (atc->chip_type) {
atc              1264 sound/pci/ctxfi/ctatc.c 		atc->chip_name = "20K1";
atc              1268 sound/pci/ctxfi/ctatc.c 		atc->chip_name = "20K2";
atc              1278 sound/pci/ctxfi/ctatc.c 		vendor_id = atc->pci->subsystem_vendor;
atc              1279 sound/pci/ctxfi/ctatc.c 		device_id = atc->pci->subsystem_device;
atc              1284 sound/pci/ctxfi/ctatc.c 			dev_err(atc->card->dev,
atc              1289 sound/pci/ctxfi/ctatc.c 		atc->model = p->value;
atc              1291 sound/pci/ctxfi/ctatc.c 		if (atc->chip_type == ATC20K1)
atc              1292 sound/pci/ctxfi/ctatc.c 			atc->model = CT20K1_UNKNOWN;
atc              1294 sound/pci/ctxfi/ctatc.c 			atc->model = CT20K2_UNKNOWN;
atc              1296 sound/pci/ctxfi/ctatc.c 	atc->model_name = ct_subsys_name[atc->model];
atc              1297 sound/pci/ctxfi/ctatc.c 	dev_info(atc->card->dev, "chip %s model %s (%04x:%04x) is found\n",
atc              1298 sound/pci/ctxfi/ctatc.c 		   atc->chip_name, atc->model_name,
atc              1303 sound/pci/ctxfi/ctatc.c int ct_atc_create_alsa_devs(struct ct_atc *atc)
atc              1308 sound/pci/ctxfi/ctatc.c 	alsa_dev_funcs[MIXER].public_name = atc->chip_name;
atc              1314 sound/pci/ctxfi/ctatc.c 		err = alsa_dev_funcs[i].create(atc, i,
atc              1317 sound/pci/ctxfi/ctatc.c 			dev_err(atc->card->dev,
atc              1326 sound/pci/ctxfi/ctatc.c static int atc_create_hw_devs(struct ct_atc *atc)
atc              1332 sound/pci/ctxfi/ctatc.c 	err = create_hw_obj(atc->pci, atc->chip_type, atc->model, &hw);
atc              1334 sound/pci/ctxfi/ctatc.c 		dev_err(atc->card->dev, "Failed to create hw obj!!!\n");
atc              1337 sound/pci/ctxfi/ctatc.c 	hw->card = atc->card;
atc              1338 sound/pci/ctxfi/ctatc.c 	atc->hw = hw;
atc              1341 sound/pci/ctxfi/ctatc.c 	info.rsr = atc->rsr;
atc              1342 sound/pci/ctxfi/ctatc.c 	info.msr = atc->msr;
atc              1343 sound/pci/ctxfi/ctatc.c 	info.vm_pgt_phys = atc_get_ptp_phys(atc, 0);
atc              1352 sound/pci/ctxfi/ctatc.c 		err = rsc_mgr_funcs[i].create(atc->hw, &atc->rsc_mgrs[i]);
atc              1354 sound/pci/ctxfi/ctatc.c 			dev_err(atc->card->dev,
atc              1363 sound/pci/ctxfi/ctatc.c static int atc_get_resources(struct ct_atc *atc)
atc              1375 sound/pci/ctxfi/ctatc.c 	num_daios = ((atc->model == CTSB1270) ? 8 : 7);
atc              1376 sound/pci/ctxfi/ctatc.c 	num_srcs = ((atc->model == CTSB1270) ? 6 : 4);
atc              1378 sound/pci/ctxfi/ctatc.c 	atc->daios = kcalloc(num_daios, sizeof(void *), GFP_KERNEL);
atc              1379 sound/pci/ctxfi/ctatc.c 	if (!atc->daios)
atc              1382 sound/pci/ctxfi/ctatc.c 	atc->srcs = kcalloc(num_srcs, sizeof(void *), GFP_KERNEL);
atc              1383 sound/pci/ctxfi/ctatc.c 	if (!atc->srcs)
atc              1386 sound/pci/ctxfi/ctatc.c 	atc->srcimps = kcalloc(num_srcs, sizeof(void *), GFP_KERNEL);
atc              1387 sound/pci/ctxfi/ctatc.c 	if (!atc->srcimps)
atc              1390 sound/pci/ctxfi/ctatc.c 	atc->pcm = kcalloc(2 * 4, sizeof(void *), GFP_KERNEL);
atc              1391 sound/pci/ctxfi/ctatc.c 	if (!atc->pcm)
atc              1394 sound/pci/ctxfi/ctatc.c 	daio_mgr = (struct daio_mgr *)atc->rsc_mgrs[DAIO];
atc              1395 sound/pci/ctxfi/ctatc.c 	da_desc.msr = atc->msr;
atc              1396 sound/pci/ctxfi/ctatc.c 	for (i = 0, atc->n_daio = 0; i < num_daios; i++) {
atc              1397 sound/pci/ctxfi/ctatc.c 		da_desc.type = (atc->model != CTSB073X) ? i :
atc              1400 sound/pci/ctxfi/ctatc.c 					(struct daio **)&atc->daios[i]);
atc              1402 sound/pci/ctxfi/ctatc.c 			dev_err(atc->card->dev,
atc              1407 sound/pci/ctxfi/ctatc.c 		atc->n_daio++;
atc              1410 sound/pci/ctxfi/ctatc.c 	src_mgr = atc->rsc_mgrs[SRC];
atc              1412 sound/pci/ctxfi/ctatc.c 	src_dsc.msr = atc->msr;
atc              1414 sound/pci/ctxfi/ctatc.c 	for (i = 0, atc->n_src = 0; i < num_srcs; i++) {
atc              1416 sound/pci/ctxfi/ctatc.c 					(struct src **)&atc->srcs[i]);
atc              1420 sound/pci/ctxfi/ctatc.c 		atc->n_src++;
atc              1423 sound/pci/ctxfi/ctatc.c 	srcimp_mgr = atc->rsc_mgrs[SRCIMP];
atc              1425 sound/pci/ctxfi/ctatc.c 	for (i = 0, atc->n_srcimp = 0; i < num_srcs; i++) {
atc              1427 sound/pci/ctxfi/ctatc.c 					(struct srcimp **)&atc->srcimps[i]);
atc              1431 sound/pci/ctxfi/ctatc.c 		atc->n_srcimp++;
atc              1434 sound/pci/ctxfi/ctatc.c 	sum_mgr = atc->rsc_mgrs[SUM];
atc              1435 sound/pci/ctxfi/ctatc.c 	sum_dsc.msr = atc->msr;
atc              1436 sound/pci/ctxfi/ctatc.c 	for (i = 0, atc->n_pcm = 0; i < (2*4); i++) {
atc              1438 sound/pci/ctxfi/ctatc.c 					(struct sum **)&atc->pcm[i]);
atc              1442 sound/pci/ctxfi/ctatc.c 		atc->n_pcm++;
atc              1487 sound/pci/ctxfi/ctatc.c static void atc_connect_resources(struct ct_atc *atc)
atc              1497 sound/pci/ctxfi/ctatc.c 	mixer = atc->mixer;
atc              1501 sound/pci/ctxfi/ctatc.c 		dao = container_of(atc->daios[j], struct dao, daio);
atc              1506 sound/pci/ctxfi/ctatc.c 	dai = container_of(atc->daios[LINEIM], struct dai, daio);
atc              1507 sound/pci/ctxfi/ctatc.c 	atc_connect_dai(atc->rsc_mgrs[SRC], dai,
atc              1508 sound/pci/ctxfi/ctatc.c 			(struct src **)&atc->srcs[2],
atc              1509 sound/pci/ctxfi/ctatc.c 			(struct srcimp **)&atc->srcimps[2]);
atc              1510 sound/pci/ctxfi/ctatc.c 	src = atc->srcs[2];
atc              1512 sound/pci/ctxfi/ctatc.c 	src = atc->srcs[3];
atc              1515 sound/pci/ctxfi/ctatc.c 	if (atc->model == CTSB1270) {
atc              1517 sound/pci/ctxfi/ctatc.c 		dai = container_of(atc->daios[MIC], struct dai, daio);
atc              1518 sound/pci/ctxfi/ctatc.c 		atc_connect_dai(atc->rsc_mgrs[SRC], dai,
atc              1519 sound/pci/ctxfi/ctatc.c 			(struct src **)&atc->srcs[4],
atc              1520 sound/pci/ctxfi/ctatc.c 			(struct srcimp **)&atc->srcimps[4]);
atc              1521 sound/pci/ctxfi/ctatc.c 		src = atc->srcs[4];
atc              1523 sound/pci/ctxfi/ctatc.c 		src = atc->srcs[5];
atc              1527 sound/pci/ctxfi/ctatc.c 	dai = container_of(atc->daios[SPDIFIO], struct dai, daio);
atc              1528 sound/pci/ctxfi/ctatc.c 	atc_connect_dai(atc->rsc_mgrs[SRC], dai,
atc              1529 sound/pci/ctxfi/ctatc.c 			(struct src **)&atc->srcs[0],
atc              1530 sound/pci/ctxfi/ctatc.c 			(struct srcimp **)&atc->srcimps[0]);
atc              1532 sound/pci/ctxfi/ctatc.c 	src = atc->srcs[0];
atc              1534 sound/pci/ctxfi/ctatc.c 	src = atc->srcs[1];
atc              1538 sound/pci/ctxfi/ctatc.c 		sum = atc->pcm[j];
atc              1540 sound/pci/ctxfi/ctatc.c 		sum = atc->pcm[j+1];
atc              1546 sound/pci/ctxfi/ctatc.c static int atc_suspend(struct ct_atc *atc)
atc              1548 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc              1550 sound/pci/ctxfi/ctatc.c 	snd_power_change_state(atc->card, SNDRV_CTL_POWER_D3hot);
atc              1552 sound/pci/ctxfi/ctatc.c 	atc_release_resources(atc);
atc              1559 sound/pci/ctxfi/ctatc.c static int atc_hw_resume(struct ct_atc *atc)
atc              1561 sound/pci/ctxfi/ctatc.c 	struct hw *hw = atc->hw;
atc              1565 sound/pci/ctxfi/ctatc.c 	info.rsr = atc->rsr;
atc              1566 sound/pci/ctxfi/ctatc.c 	info.msr = atc->msr;
atc              1567 sound/pci/ctxfi/ctatc.c 	info.vm_pgt_phys = atc_get_ptp_phys(atc, 0);
atc              1571 sound/pci/ctxfi/ctatc.c static int atc_resources_resume(struct ct_atc *atc)
atc              1577 sound/pci/ctxfi/ctatc.c 	err = atc_get_resources(atc);
atc              1579 sound/pci/ctxfi/ctatc.c 		atc_release_resources(atc);
atc              1584 sound/pci/ctxfi/ctatc.c 	atc_connect_resources(atc);
atc              1586 sound/pci/ctxfi/ctatc.c 	mixer = atc->mixer;
atc              1592 sound/pci/ctxfi/ctatc.c static int atc_resume(struct ct_atc *atc)
atc              1597 sound/pci/ctxfi/ctatc.c 	err = atc_hw_resume(atc);
atc              1599 sound/pci/ctxfi/ctatc.c 		dev_err(atc->card->dev,
atc              1601 sound/pci/ctxfi/ctatc.c 		snd_card_disconnect(atc->card);
atc              1605 sound/pci/ctxfi/ctatc.c 	err = atc_resources_resume(atc);
atc              1609 sound/pci/ctxfi/ctatc.c 	snd_power_change_state(atc->card, SNDRV_CTL_POWER_D0);
atc              1671 sound/pci/ctxfi/ctatc.c 	struct ct_atc *atc;
atc              1679 sound/pci/ctxfi/ctatc.c 	atc = kzalloc(sizeof(*atc), GFP_KERNEL);
atc              1680 sound/pci/ctxfi/ctatc.c 	if (!atc)
atc              1684 sound/pci/ctxfi/ctatc.c 	*atc = atc_preset;
atc              1686 sound/pci/ctxfi/ctatc.c 	atc->card = card;
atc              1687 sound/pci/ctxfi/ctatc.c 	atc->pci = pci;
atc              1688 sound/pci/ctxfi/ctatc.c 	atc->rsr = rsr;
atc              1689 sound/pci/ctxfi/ctatc.c 	atc->msr = msr;
atc              1690 sound/pci/ctxfi/ctatc.c 	atc->chip_type = chip_type;
atc              1692 sound/pci/ctxfi/ctatc.c 	mutex_init(&atc->atc_mutex);
atc              1695 sound/pci/ctxfi/ctatc.c 	err = atc_identify_card(atc, ssid);
atc              1702 sound/pci/ctxfi/ctatc.c 	err = ct_vm_create(&atc->vm, pci);
atc              1707 sound/pci/ctxfi/ctatc.c 	err = atc_create_hw_devs(atc);
atc              1711 sound/pci/ctxfi/ctatc.c 	err = ct_mixer_create(atc, (struct ct_mixer **)&atc->mixer);
atc              1718 sound/pci/ctxfi/ctatc.c 	err = atc_get_resources(atc);
atc              1723 sound/pci/ctxfi/ctatc.c 	atc_connect_resources(atc);
atc              1725 sound/pci/ctxfi/ctatc.c 	atc->timer = ct_timer_new(atc);
atc              1726 sound/pci/ctxfi/ctatc.c 	if (!atc->timer) {
atc              1731 sound/pci/ctxfi/ctatc.c 	err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, atc, &ops);
atc              1735 sound/pci/ctxfi/ctatc.c 	*ratc = atc;
atc              1739 sound/pci/ctxfi/ctatc.c 	ct_atc_destroy(atc);
atc                86 sound/pci/ctxfi/ctatc.h 	int (*map_audio_buffer)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
atc                87 sound/pci/ctxfi/ctatc.h 	void (*unmap_audio_buffer)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
atc                88 sound/pci/ctxfi/ctatc.h 	unsigned long (*get_ptp_phys)(struct ct_atc *atc, int index);
atc                92 sound/pci/ctxfi/ctatc.h 	int (*pcm_playback_prepare)(struct ct_atc *atc,
atc                94 sound/pci/ctxfi/ctatc.h 	int (*pcm_playback_start)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
atc                95 sound/pci/ctxfi/ctatc.h 	int (*pcm_playback_stop)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
atc                96 sound/pci/ctxfi/ctatc.h 	int (*pcm_playback_position)(struct ct_atc *atc,
atc                98 sound/pci/ctxfi/ctatc.h 	int (*spdif_passthru_playback_prepare)(struct ct_atc *atc,
atc               100 sound/pci/ctxfi/ctatc.h 	int (*pcm_capture_prepare)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
atc               101 sound/pci/ctxfi/ctatc.h 	int (*pcm_capture_start)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
atc               102 sound/pci/ctxfi/ctatc.h 	int (*pcm_capture_stop)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
atc               103 sound/pci/ctxfi/ctatc.h 	int (*pcm_capture_position)(struct ct_atc *atc,
atc               105 sound/pci/ctxfi/ctatc.h 	int (*pcm_release_resources)(struct ct_atc *atc,
atc               107 sound/pci/ctxfi/ctatc.h 	int (*select_line_in)(struct ct_atc *atc);
atc               108 sound/pci/ctxfi/ctatc.h 	int (*select_mic_in)(struct ct_atc *atc);
atc               109 sound/pci/ctxfi/ctatc.h 	int (*select_digit_io)(struct ct_atc *atc);
atc               110 sound/pci/ctxfi/ctatc.h 	int (*line_front_unmute)(struct ct_atc *atc, unsigned char state);
atc               111 sound/pci/ctxfi/ctatc.h 	int (*line_surround_unmute)(struct ct_atc *atc, unsigned char state);
atc               112 sound/pci/ctxfi/ctatc.h 	int (*line_clfe_unmute)(struct ct_atc *atc, unsigned char state);
atc               113 sound/pci/ctxfi/ctatc.h 	int (*line_rear_unmute)(struct ct_atc *atc, unsigned char state);
atc               114 sound/pci/ctxfi/ctatc.h 	int (*line_in_unmute)(struct ct_atc *atc, unsigned char state);
atc               115 sound/pci/ctxfi/ctatc.h 	int (*mic_unmute)(struct ct_atc *atc, unsigned char state);
atc               116 sound/pci/ctxfi/ctatc.h 	int (*spdif_out_unmute)(struct ct_atc *atc, unsigned char state);
atc               117 sound/pci/ctxfi/ctatc.h 	int (*spdif_in_unmute)(struct ct_atc *atc, unsigned char state);
atc               118 sound/pci/ctxfi/ctatc.h 	int (*spdif_out_get_status)(struct ct_atc *atc, unsigned int *status);
atc               119 sound/pci/ctxfi/ctatc.h 	int (*spdif_out_set_status)(struct ct_atc *atc, unsigned int status);
atc               120 sound/pci/ctxfi/ctatc.h 	int (*spdif_out_passthru)(struct ct_atc *atc, unsigned char state);
atc               121 sound/pci/ctxfi/ctatc.h 	struct capabilities (*capabilities)(struct ct_atc *atc);
atc               122 sound/pci/ctxfi/ctatc.h 	int (*output_switch_get)(struct ct_atc *atc);
atc               123 sound/pci/ctxfi/ctatc.h 	int (*output_switch_put)(struct ct_atc *atc, int position);
atc               124 sound/pci/ctxfi/ctatc.h 	int (*mic_source_switch_get)(struct ct_atc *atc);
atc               125 sound/pci/ctxfi/ctatc.h 	int (*mic_source_switch_put)(struct ct_atc *atc, int position);
atc               143 sound/pci/ctxfi/ctatc.h 	int (*suspend)(struct ct_atc *atc);
atc               144 sound/pci/ctxfi/ctatc.h 	int (*resume)(struct ct_atc *atc);
atc               154 sound/pci/ctxfi/ctatc.h int ct_atc_create_alsa_devs(struct ct_atc *atc);
atc               344 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               350 sound/pci/ctxfi/ctmixer.c 		amixer = ((struct ct_mixer *)atc->mixer)->
atc               366 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               367 sound/pci/ctxfi/ctmixer.c 	struct ct_mixer *mixer = atc->mixer;
atc               423 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               424 sound/pci/ctxfi/ctmixer.c 	ucontrol->value.enumerated.item[0] = atc->output_switch_get(atc);
atc               431 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               434 sound/pci/ctxfi/ctmixer.c 	return atc->output_switch_put(atc, ucontrol->value.enumerated.item[0]);
atc               458 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               459 sound/pci/ctxfi/ctmixer.c 	ucontrol->value.enumerated.item[0] = atc->mic_source_switch_get(atc);
atc               466 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               469 sound/pci/ctxfi/ctmixer.c 	return atc->mic_source_switch_put(atc,
atc               482 sound/pci/ctxfi/ctmixer.c do_line_mic_switch(struct ct_atc *atc, enum CTALSA_MIXER_CTL type)
atc               486 sound/pci/ctxfi/ctmixer.c 		atc->select_line_in(atc);
atc               487 sound/pci/ctxfi/ctmixer.c 		set_switch_state(atc->mixer, MIXER_MIC_C_S, 0);
atc               488 sound/pci/ctxfi/ctmixer.c 		snd_ctl_notify(atc->card, SNDRV_CTL_EVENT_MASK_VALUE,
atc               491 sound/pci/ctxfi/ctmixer.c 		atc->select_mic_in(atc);
atc               492 sound/pci/ctxfi/ctmixer.c 		set_switch_state(atc->mixer, MIXER_LINEIN_C_S, 0);
atc               493 sound/pci/ctxfi/ctmixer.c 		snd_ctl_notify(atc->card, SNDRV_CTL_EVENT_MASK_VALUE,
atc               499 sound/pci/ctxfi/ctmixer.c do_digit_io_switch(struct ct_atc *atc, int state)
atc               501 sound/pci/ctxfi/ctmixer.c 	struct ct_mixer *mixer = atc->mixer;
atc               504 sound/pci/ctxfi/ctmixer.c 		atc->select_digit_io(atc);
atc               505 sound/pci/ctxfi/ctmixer.c 		atc->spdif_out_unmute(atc,
atc               507 sound/pci/ctxfi/ctmixer.c 		atc->spdif_in_unmute(atc, 1);
atc               508 sound/pci/ctxfi/ctmixer.c 		atc->line_in_unmute(atc, 0);
atc               513 sound/pci/ctxfi/ctmixer.c 		atc->select_line_in(atc);
atc               515 sound/pci/ctxfi/ctmixer.c 		atc->select_mic_in(atc);
atc               517 sound/pci/ctxfi/ctmixer.c 	atc->spdif_out_unmute(atc, 0);
atc               518 sound/pci/ctxfi/ctmixer.c 	atc->spdif_in_unmute(atc, 0);
atc               519 sound/pci/ctxfi/ctmixer.c 	atc->line_in_unmute(atc, 1);
atc               523 sound/pci/ctxfi/ctmixer.c static void do_switch(struct ct_atc *atc, enum CTALSA_MIXER_CTL type, int state)
atc               525 sound/pci/ctxfi/ctmixer.c 	struct ct_mixer *mixer = atc->mixer;
atc               526 sound/pci/ctxfi/ctmixer.c 	struct capabilities cap = atc->capabilities(atc);
atc               542 sound/pci/ctxfi/ctmixer.c 			do_line_mic_switch(atc, type);
atc               543 sound/pci/ctxfi/ctmixer.c 		atc->line_in_unmute(atc, state);
atc               545 sound/pci/ctxfi/ctmixer.c 		atc->line_in_unmute(atc, state);
atc               547 sound/pci/ctxfi/ctmixer.c 		atc->mic_unmute(atc, state);
atc               549 sound/pci/ctxfi/ctmixer.c 		atc->spdif_in_unmute(atc, state);
atc               551 sound/pci/ctxfi/ctmixer.c 		atc->line_front_unmute(atc, state);
atc               553 sound/pci/ctxfi/ctmixer.c 		atc->line_surround_unmute(atc, state);
atc               555 sound/pci/ctxfi/ctmixer.c 		atc->line_clfe_unmute(atc, state);
atc               557 sound/pci/ctxfi/ctmixer.c 		atc->line_rear_unmute(atc, state);
atc               559 sound/pci/ctxfi/ctmixer.c 		atc->spdif_out_unmute(atc, state);
atc               561 sound/pci/ctxfi/ctmixer.c 		do_digit_io_switch(atc, state);
atc               592 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               593 sound/pci/ctxfi/ctmixer.c 	struct ct_mixer *mixer = atc->mixer;
atc               602 sound/pci/ctxfi/ctmixer.c 	do_switch(atc, type, state);
atc               636 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               639 sound/pci/ctxfi/ctmixer.c 	atc->spdif_out_get_status(atc, &status);
atc               655 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = snd_kcontrol_chip(kcontrol);
atc               664 sound/pci/ctxfi/ctmixer.c 	atc->spdif_out_get_status(atc, &old_status);
atc               667 sound/pci/ctxfi/ctmixer.c 		atc->spdif_out_set_status(atc, status);
atc               711 sound/pci/ctxfi/ctmixer.c 	kctl = snd_ctl_new1(new, mixer->atc);
atc               718 sound/pci/ctxfi/ctmixer.c 	err = snd_ctl_add(mixer->atc->card, kctl);
atc               737 sound/pci/ctxfi/ctmixer.c 	struct ct_atc *atc = mixer->atc;
atc               738 sound/pci/ctxfi/ctmixer.c 	struct capabilities cap = atc->capabilities(atc);
atc               787 sound/pci/ctxfi/ctmixer.c 	atc->line_front_unmute(atc, 1);
atc               789 sound/pci/ctxfi/ctmixer.c 	atc->line_surround_unmute(atc, 0);
atc               791 sound/pci/ctxfi/ctmixer.c 	atc->line_clfe_unmute(atc, 0);
atc               793 sound/pci/ctxfi/ctmixer.c 	atc->line_rear_unmute(atc, 0);
atc               795 sound/pci/ctxfi/ctmixer.c 	atc->spdif_out_unmute(atc, 0);
atc               797 sound/pci/ctxfi/ctmixer.c 	atc->line_in_unmute(atc, 0);
atc               799 sound/pci/ctxfi/ctmixer.c 		atc->mic_unmute(atc, 0);
atc               800 sound/pci/ctxfi/ctmixer.c 	atc->spdif_in_unmute(atc, 0);
atc               848 sound/pci/ctxfi/ctmixer.c 	sum_mgr = (struct sum_mgr *)mixer->atc->rsc_mgrs[SUM];
atc               849 sound/pci/ctxfi/ctmixer.c 	sum_desc.msr = mixer->atc->msr;
atc               853 sound/pci/ctxfi/ctmixer.c 			dev_err(mixer->atc->card->dev,
atc               863 sound/pci/ctxfi/ctmixer.c 	amixer_mgr = (struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER];
atc               864 sound/pci/ctxfi/ctmixer.c 	am_desc.msr = mixer->atc->msr;
atc               868 sound/pci/ctxfi/ctmixer.c 			dev_err(mixer->atc->card->dev,
atc              1134 sound/pci/ctxfi/ctmixer.c 		do_switch(mixer->atc, i, state);
atc              1143 sound/pci/ctxfi/ctmixer.c 	struct sum_mgr *sum_mgr = (struct sum_mgr *)mixer->atc->rsc_mgrs[SUM];
atc              1145 sound/pci/ctxfi/ctmixer.c 			(struct amixer_mgr *)mixer->atc->rsc_mgrs[AMIXER];
atc              1171 sound/pci/ctxfi/ctmixer.c int ct_mixer_create(struct ct_atc *atc, struct ct_mixer **rmixer)
atc              1184 sound/pci/ctxfi/ctmixer.c 	mixer->atc = atc;
atc              1210 sound/pci/ctxfi/ctmixer.c int ct_alsa_mix_create(struct ct_atc *atc,
atc              1218 sound/pci/ctxfi/ctmixer.c 	err = ct_mixer_kcontrols_create((struct ct_mixer *)atc->mixer);
atc              1222 sound/pci/ctxfi/ctmixer.c 	strcpy(atc->card->mixername, device_name);
atc                42 sound/pci/ctxfi/ctmixer.h 	struct ct_atc *atc;
atc                60 sound/pci/ctxfi/ctmixer.h int ct_alsa_mix_create(struct ct_atc *atc,
atc                63 sound/pci/ctxfi/ctmixer.h int ct_mixer_create(struct ct_atc *atc, struct ct_mixer **rmixer);
atc               106 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream);
atc               108 sound/pci/ctxfi/ctpcm.c 	atc->pcm_release_resources(atc, apcm);
atc               117 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               130 sound/pci/ctxfi/ctpcm.c 		atc->spdif_out_passthru(atc, 1);
atc               148 sound/pci/ctxfi/ctpcm.c 	apcm->timer = ct_timer_instance_new(atc->timer, apcm);
atc               165 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               169 sound/pci/ctxfi/ctpcm.c 		atc->spdif_out_passthru(atc, 0);
atc               179 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               188 sound/pci/ctxfi/ctpcm.c 	atc->pcm_release_resources(atc, apcm);
atc               194 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               198 sound/pci/ctxfi/ctpcm.c 	atc->pcm_release_resources(atc, apcm);
atc               207 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               212 sound/pci/ctxfi/ctpcm.c 		err = atc->spdif_passthru_playback_prepare(atc, apcm);
atc               214 sound/pci/ctxfi/ctpcm.c 		err = atc->pcm_playback_prepare(atc, apcm);
atc               217 sound/pci/ctxfi/ctpcm.c 		dev_err(atc->card->dev,
atc               228 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               236 sound/pci/ctxfi/ctpcm.c 		atc->pcm_playback_start(atc, apcm);
atc               241 sound/pci/ctxfi/ctpcm.c 		atc->pcm_playback_stop(atc, apcm);
atc               254 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               259 sound/pci/ctxfi/ctpcm.c 	position = atc->pcm_playback_position(atc, apcm);
atc               269 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               282 sound/pci/ctxfi/ctpcm.c 	runtime->hw.rate_max = atc->rsr * atc->msr;
atc               295 sound/pci/ctxfi/ctpcm.c 	apcm->timer = ct_timer_instance_new(atc->timer, apcm);
atc               320 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               324 sound/pci/ctxfi/ctpcm.c 	err = atc->pcm_capture_prepare(atc, apcm);
atc               326 sound/pci/ctxfi/ctpcm.c 		dev_err(atc->card->dev,
atc               337 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               343 sound/pci/ctxfi/ctpcm.c 		atc->pcm_capture_start(atc, apcm);
atc               346 sound/pci/ctxfi/ctpcm.c 		atc->pcm_capture_stop(atc, apcm);
atc               349 sound/pci/ctxfi/ctpcm.c 		atc->pcm_capture_stop(atc, apcm);
atc               360 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               365 sound/pci/ctxfi/ctpcm.c 	position = atc->pcm_capture_position(atc, apcm);
atc               423 sound/pci/ctxfi/ctpcm.c int ct_alsa_pcm_create(struct ct_atc *atc,
atc               435 sound/pci/ctxfi/ctpcm.c 	err = snd_pcm_new(atc->card, "ctxfi", device,
atc               438 sound/pci/ctxfi/ctpcm.c 		dev_err(atc->card->dev, "snd_pcm_new failed!! Err=%d\n",
atc               443 sound/pci/ctxfi/ctpcm.c 	pcm->private_data = atc;
atc               455 sound/pci/ctxfi/ctpcm.c 			snd_dma_pci_data(atc->pci), 128*1024, 128*1024);
atc               482 sound/pci/ctxfi/ctpcm.c 	atc->pcms[device] = pcm;
atc                19 sound/pci/ctxfi/ctpcm.h int ct_alsa_pcm_create(struct ct_atc *atc,
atc                48 sound/pci/ctxfi/cttimer.c 	struct ct_atc *atc;
atc               146 sound/pci/ctxfi/cttimer.c 	struct hw *hw = atimer->atc->hw;
atc               158 sound/pci/ctxfi/cttimer.c 		struct hw *hw = atimer->atc->hw;
atc               167 sound/pci/ctxfi/cttimer.c 	struct hw *hw = atimer->atc->hw;
atc               405 sound/pci/ctxfi/cttimer.c struct ct_timer *ct_timer_new(struct ct_atc *atc)
atc               417 sound/pci/ctxfi/cttimer.c 	atimer->atc = atc;
atc               418 sound/pci/ctxfi/cttimer.c 	hw = atc->hw;
atc               420 sound/pci/ctxfi/cttimer.c 		dev_info(atc->card->dev, "Use xfi-native timer\n");
atc               425 sound/pci/ctxfi/cttimer.c 		dev_info(atc->card->dev, "Use system timer\n");
atc               433 sound/pci/ctxfi/cttimer.c 	struct hw *hw = atimer->atc->hw;
atc                20 sound/pci/ctxfi/cttimer.h struct ct_timer *ct_timer_new(struct ct_atc *atc);
atc                30 sound/pci/ctxfi/ctvmem.c get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc)
atc                37 sound/pci/ctxfi/ctvmem.c 		dev_err(atc->card->dev,
atc               130 sound/pci/ctxfi/ctvmem.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
atc               132 sound/pci/ctxfi/ctvmem.c 	block = get_vm_block(vm, size, atc);
atc               134 sound/pci/ctxfi/ctvmem.c 		dev_err(atc->card->dev,
atc                61 sound/pci/ctxfi/xfi.c 	struct ct_atc *atc;
atc                91 sound/pci/ctxfi/xfi.c 			    pci_id->driver_data, subsystem[dev], &atc);
atc                95 sound/pci/ctxfi/xfi.c 	card->private_data = atc;
atc                98 sound/pci/ctxfi/xfi.c 	err = ct_atc_create_alsa_devs(atc);
atc               105 sound/pci/ctxfi/xfi.c 		 card->shortname, atc->chip_name, atc->model_name);
atc               130 sound/pci/ctxfi/xfi.c 	struct ct_atc *atc = card->private_data;
atc               132 sound/pci/ctxfi/xfi.c 	return atc->suspend(atc);
atc               138 sound/pci/ctxfi/xfi.c 	struct ct_atc *atc = card->private_data;
atc               140 sound/pci/ctxfi/xfi.c 	return atc->resume(atc);