ssc_p             141 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = dev_id;
ssc_p             147 sound/soc/atmel/atmel_ssc_dai.c 	ssc_sr = (unsigned long)ssc_readl(ssc_p->ssc->regs, SR)
ssc_p             148 sound/soc/atmel/atmel_ssc_dai.c 			& (unsigned long)ssc_readl(ssc_p->ssc->regs, IMR);
ssc_p             156 sound/soc/atmel/atmel_ssc_dai.c 	for (i = 0; i < ARRAY_SIZE(ssc_p->dma_params); i++) {
ssc_p             157 sound/soc/atmel/atmel_ssc_dai.c 		dma_params = ssc_p->dma_params[i];
ssc_p             194 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = rule->private;
ssc_p             195 sound/soc/atmel/atmel_ssc_dai.c 	struct ssc_device *ssc = ssc_p->ssc;
ssc_p             212 sound/soc/atmel/atmel_ssc_dai.c 	switch (ssc_p->daifmt & SND_SOC_DAIFMT_MASTER_MASK) {
ssc_p             214 sound/soc/atmel/atmel_ssc_dai.c 		if ((ssc_p->dir_mask & SSC_DIR_MASK_CAPTURE)
ssc_p             224 sound/soc/atmel/atmel_ssc_dai.c 		if ((ssc_p->dir_mask & SSC_DIR_MASK_PLAYBACK)
ssc_p             235 sound/soc/atmel/atmel_ssc_dai.c 	switch (ssc_p->daifmt & SND_SOC_DAIFMT_MASTER_MASK) {
ssc_p             237 sound/soc/atmel/atmel_ssc_dai.c 		r.num = ssc_p->mck_rate / mck_div / frame_size;
ssc_p             249 sound/soc/atmel/atmel_ssc_dai.c 		t.max = ssc_p->mck_rate / mck_div / frame_size;
ssc_p             273 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = &ssc_info[pdev->id];
ssc_p             279 sound/soc/atmel/atmel_ssc_dai.c 		ssc_readl(ssc_p->ssc->regs, SR));
ssc_p             283 sound/soc/atmel/atmel_ssc_dai.c 	clk_enable(ssc_p->ssc->clk);
ssc_p             284 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->mck_rate = clk_get_rate(ssc_p->ssc->clk);
ssc_p             287 sound/soc/atmel/atmel_ssc_dai.c 	if (!ssc_p->initialized)
ssc_p             288 sound/soc/atmel/atmel_ssc_dai.c 		ssc_writel(ssc_p->ssc->regs, CR, SSC_BIT(CR_SWRST));
ssc_p             301 sound/soc/atmel/atmel_ssc_dai.c 				  ssc_p,
ssc_p             310 sound/soc/atmel/atmel_ssc_dai.c 	dma_params->ssc = ssc_p->ssc;
ssc_p             313 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->dma_params[dir] = dma_params;
ssc_p             317 sound/soc/atmel/atmel_ssc_dai.c 	if (ssc_p->dir_mask & dir_mask)
ssc_p             320 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->dir_mask |= dir_mask;
ssc_p             333 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = &ssc_info[pdev->id];
ssc_p             342 sound/soc/atmel/atmel_ssc_dai.c 	dma_params = ssc_p->dma_params[dir];
ssc_p             347 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->dma_params[dir] = NULL;
ssc_p             352 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->dir_mask &= ~dir_mask;
ssc_p             353 sound/soc/atmel/atmel_ssc_dai.c 	if (!ssc_p->dir_mask) {
ssc_p             354 sound/soc/atmel/atmel_ssc_dai.c 		if (ssc_p->initialized) {
ssc_p             355 sound/soc/atmel/atmel_ssc_dai.c 			free_irq(ssc_p->ssc->irq, ssc_p);
ssc_p             356 sound/soc/atmel/atmel_ssc_dai.c 			ssc_p->initialized = 0;
ssc_p             360 sound/soc/atmel/atmel_ssc_dai.c 		ssc_writel(ssc_p->ssc->regs, CR, SSC_BIT(CR_SWRST));
ssc_p             362 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->cmr_div = ssc_p->tcmr_period = ssc_p->rcmr_period = 0;
ssc_p             363 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->forced_divider = 0;
ssc_p             368 sound/soc/atmel/atmel_ssc_dai.c 	clk_disable(ssc_p->ssc->clk);
ssc_p             379 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = &ssc_info[pdev->id];
ssc_p             381 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->daifmt = fmt;
ssc_p             392 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = &ssc_info[pdev->id];
ssc_p             401 sound/soc/atmel/atmel_ssc_dai.c 		if (ssc_p->dir_mask !=
ssc_p             403 sound/soc/atmel/atmel_ssc_dai.c 			ssc_p->cmr_div = div;
ssc_p             404 sound/soc/atmel/atmel_ssc_dai.c 		else if (ssc_p->cmr_div == 0)
ssc_p             405 sound/soc/atmel/atmel_ssc_dai.c 			ssc_p->cmr_div = div;
ssc_p             407 sound/soc/atmel/atmel_ssc_dai.c 			if (div != ssc_p->cmr_div)
ssc_p             409 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->forced_divider |= BIT(ATMEL_SSC_CMR_DIV);
ssc_p             413 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->tcmr_period = div;
ssc_p             414 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->forced_divider |= BIT(ATMEL_SSC_TCMR_PERIOD);
ssc_p             418 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->rcmr_period = div;
ssc_p             419 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->forced_divider |= BIT(ATMEL_SSC_RCMR_PERIOD);
ssc_p             430 sound/soc/atmel/atmel_ssc_dai.c static int atmel_ssc_cfs(struct atmel_ssc_info *ssc_p)
ssc_p             432 sound/soc/atmel/atmel_ssc_dai.c 	switch (ssc_p->daifmt & SND_SOC_DAIFMT_MASTER_MASK) {
ssc_p             441 sound/soc/atmel/atmel_ssc_dai.c static int atmel_ssc_cbs(struct atmel_ssc_info *ssc_p)
ssc_p             443 sound/soc/atmel/atmel_ssc_dai.c 	switch (ssc_p->daifmt & SND_SOC_DAIFMT_MASTER_MASK) {
ssc_p             460 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = &ssc_info[id];
ssc_p             461 sound/soc/atmel/atmel_ssc_dai.c 	struct ssc_device *ssc = ssc_p->ssc;
ssc_p             485 sound/soc/atmel/atmel_ssc_dai.c 	cmr_div = ssc_p->cmr_div;
ssc_p             486 sound/soc/atmel/atmel_ssc_dai.c 	if (!(ssc_p->forced_divider & BIT(ATMEL_SSC_CMR_DIV)) &&
ssc_p             487 sound/soc/atmel/atmel_ssc_dai.c 	    atmel_ssc_cbs(ssc_p)) {
ssc_p             496 sound/soc/atmel/atmel_ssc_dai.c 		cmr_div = DIV_ROUND_CLOSEST(ssc_p->mck_rate, 2 * bclk_rate);
ssc_p             503 sound/soc/atmel/atmel_ssc_dai.c 	tcmr_period = ssc_p->tcmr_period;
ssc_p             504 sound/soc/atmel/atmel_ssc_dai.c 	rcmr_period = ssc_p->rcmr_period;
ssc_p             505 sound/soc/atmel/atmel_ssc_dai.c 	if (atmel_ssc_cfs(ssc_p)) {
ssc_p             515 sound/soc/atmel/atmel_ssc_dai.c 		if (!(ssc_p->forced_divider & BIT(ATMEL_SSC_TCMR_PERIOD)))
ssc_p             517 sound/soc/atmel/atmel_ssc_dai.c 		if (!(ssc_p->forced_divider & BIT(ATMEL_SSC_RCMR_PERIOD)))
ssc_p             521 sound/soc/atmel/atmel_ssc_dai.c 	dma_params = ssc_p->dma_params[dir];
ssc_p             557 sound/soc/atmel/atmel_ssc_dai.c 	switch (ssc_p->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) {
ssc_p             596 sound/soc/atmel/atmel_ssc_dai.c 			ssc_p->daifmt);
ssc_p             600 sound/soc/atmel/atmel_ssc_dai.c 	if (!atmel_ssc_cfs(ssc_p)) {
ssc_p             609 sound/soc/atmel/atmel_ssc_dai.c 	if (atmel_ssc_cbs(ssc_p)) {
ssc_p             667 sound/soc/atmel/atmel_ssc_dai.c 	if (!ssc_p->initialized) {
ssc_p             668 sound/soc/atmel/atmel_ssc_dai.c 		if (!ssc_p->ssc->pdata->use_dma) {
ssc_p             669 sound/soc/atmel/atmel_ssc_dai.c 			ssc_writel(ssc_p->ssc->regs, PDC_RPR, 0);
ssc_p             670 sound/soc/atmel/atmel_ssc_dai.c 			ssc_writel(ssc_p->ssc->regs, PDC_RCR, 0);
ssc_p             671 sound/soc/atmel/atmel_ssc_dai.c 			ssc_writel(ssc_p->ssc->regs, PDC_RNPR, 0);
ssc_p             672 sound/soc/atmel/atmel_ssc_dai.c 			ssc_writel(ssc_p->ssc->regs, PDC_RNCR, 0);
ssc_p             674 sound/soc/atmel/atmel_ssc_dai.c 			ssc_writel(ssc_p->ssc->regs, PDC_TPR, 0);
ssc_p             675 sound/soc/atmel/atmel_ssc_dai.c 			ssc_writel(ssc_p->ssc->regs, PDC_TCR, 0);
ssc_p             676 sound/soc/atmel/atmel_ssc_dai.c 			ssc_writel(ssc_p->ssc->regs, PDC_TNPR, 0);
ssc_p             677 sound/soc/atmel/atmel_ssc_dai.c 			ssc_writel(ssc_p->ssc->regs, PDC_TNCR, 0);
ssc_p             680 sound/soc/atmel/atmel_ssc_dai.c 		ret = request_irq(ssc_p->ssc->irq, atmel_ssc_interrupt, 0,
ssc_p             681 sound/soc/atmel/atmel_ssc_dai.c 				ssc_p->name, ssc_p);
ssc_p             686 sound/soc/atmel/atmel_ssc_dai.c 			clk_disable(ssc_p->ssc->clk);
ssc_p             690 sound/soc/atmel/atmel_ssc_dai.c 		ssc_p->initialized = 1;
ssc_p             694 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, CMR, cmr_div);
ssc_p             697 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, RCMR, rcmr);
ssc_p             698 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, RFMR, rfmr);
ssc_p             701 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, TCMR, tcmr);
ssc_p             702 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, TFMR, tfmr);
ssc_p             713 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = &ssc_info[pdev->id];
ssc_p             722 sound/soc/atmel/atmel_ssc_dai.c 	dma_params = ssc_p->dma_params[dir];
ssc_p             724 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, CR, dma_params->mask->ssc_disable);
ssc_p             725 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, IDR, dma_params->mask->ssc_error);
ssc_p             729 sound/soc/atmel/atmel_ssc_dai.c 			ssc_readl(ssc_p->ssc->regs, SR));
ssc_p             737 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p = &ssc_info[pdev->id];
ssc_p             746 sound/soc/atmel/atmel_ssc_dai.c 	dma_params = ssc_p->dma_params[dir];
ssc_p             752 sound/soc/atmel/atmel_ssc_dai.c 		ssc_writel(ssc_p->ssc->regs, CR, dma_params->mask->ssc_enable);
ssc_p             755 sound/soc/atmel/atmel_ssc_dai.c 		ssc_writel(ssc_p->ssc->regs, CR, dma_params->mask->ssc_disable);
ssc_p             765 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p;
ssc_p             771 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p = &ssc_info[pdev->id];
ssc_p             774 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->ssc_state.ssc_sr = ssc_readl(ssc_p->ssc->regs, SR);
ssc_p             775 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, CR, SSC_BIT(CR_TXDIS) | SSC_BIT(CR_RXDIS));
ssc_p             778 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->ssc_state.ssc_imr = ssc_readl(ssc_p->ssc->regs, IMR);
ssc_p             779 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, IDR, ssc_p->ssc_state.ssc_imr);
ssc_p             781 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->ssc_state.ssc_cmr = ssc_readl(ssc_p->ssc->regs, CMR);
ssc_p             782 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->ssc_state.ssc_rcmr = ssc_readl(ssc_p->ssc->regs, RCMR);
ssc_p             783 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->ssc_state.ssc_rfmr = ssc_readl(ssc_p->ssc->regs, RFMR);
ssc_p             784 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->ssc_state.ssc_tcmr = ssc_readl(ssc_p->ssc->regs, TCMR);
ssc_p             785 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p->ssc_state.ssc_tfmr = ssc_readl(ssc_p->ssc->regs, TFMR);
ssc_p             794 sound/soc/atmel/atmel_ssc_dai.c 	struct atmel_ssc_info *ssc_p;
ssc_p             801 sound/soc/atmel/atmel_ssc_dai.c 	ssc_p = &ssc_info[pdev->id];
ssc_p             804 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, TFMR, ssc_p->ssc_state.ssc_tfmr);
ssc_p             805 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, TCMR, ssc_p->ssc_state.ssc_tcmr);
ssc_p             806 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, RFMR, ssc_p->ssc_state.ssc_rfmr);
ssc_p             807 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, RCMR, ssc_p->ssc_state.ssc_rcmr);
ssc_p             808 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, CMR, ssc_p->ssc_state.ssc_cmr);
ssc_p             811 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, IER, ssc_p->ssc_state.ssc_imr);
ssc_p             816 sound/soc/atmel/atmel_ssc_dai.c 	    (ssc_p->ssc_state.ssc_sr & SSC_BIT(SR_RXEN)) ? SSC_BIT(CR_RXEN) : 0;
ssc_p             818 sound/soc/atmel/atmel_ssc_dai.c 	    (ssc_p->ssc_state.ssc_sr & SSC_BIT(SR_TXEN)) ? SSC_BIT(CR_TXEN) : 0;
ssc_p             819 sound/soc/atmel/atmel_ssc_dai.c 	ssc_writel(ssc_p->ssc->regs, CR, cr);