swm                39 sound/soc/uniphier/aio-compress.c 	if (sub->swm->dir == PORT_DIR_OUTPUT)
swm                63 sound/soc/uniphier/aio-compress.c 	if (sub->swm->dir == PORT_DIR_OUTPUT)
swm               261 sound/soc/uniphier/aio-compress.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               336 sound/soc/uniphier/aio-compress.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               362 sound/soc/uniphier/aio-compress.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               205 sound/soc/uniphier/aio-core.c 	regmap_write(r, A2RBNMAPCTR0(sub->swm->rb.hw),
swm               206 sound/soc/uniphier/aio-core.c 		     MAPCTR0_EN | sub->swm->rb.map);
swm               207 sound/soc/uniphier/aio-core.c 	regmap_write(r, A2CHNMAPCTR0(sub->swm->ch.hw),
swm               208 sound/soc/uniphier/aio-core.c 		     MAPCTR0_EN | sub->swm->ch.map);
swm               210 sound/soc/uniphier/aio-core.c 	switch (sub->swm->type) {
swm               214 sound/soc/uniphier/aio-core.c 		if (sub->swm->dir == PORT_DIR_INPUT) {
swm               215 sound/soc/uniphier/aio-core.c 			regmap_write(r, A2IIFNMAPCTR0(sub->swm->iif.hw),
swm               216 sound/soc/uniphier/aio-core.c 				     MAPCTR0_EN | sub->swm->iif.map);
swm               217 sound/soc/uniphier/aio-core.c 			regmap_write(r, A2IPORTNMAPCTR0(sub->swm->iport.hw),
swm               218 sound/soc/uniphier/aio-core.c 				     MAPCTR0_EN | sub->swm->iport.map);
swm               220 sound/soc/uniphier/aio-core.c 			regmap_write(r, A2OIFNMAPCTR0(sub->swm->oif.hw),
swm               221 sound/soc/uniphier/aio-core.c 				     MAPCTR0_EN | sub->swm->oif.map);
swm               222 sound/soc/uniphier/aio-core.c 			regmap_write(r, A2OPORTNMAPCTR0(sub->swm->oport.hw),
swm               223 sound/soc/uniphier/aio-core.c 				     MAPCTR0_EN | sub->swm->oport.map);
swm               227 sound/soc/uniphier/aio-core.c 		regmap_write(r, A2OIFNMAPCTR0(sub->swm->oif.hw),
swm               228 sound/soc/uniphier/aio-core.c 			     MAPCTR0_EN | sub->swm->oif.map);
swm               229 sound/soc/uniphier/aio-core.c 		regmap_write(r, A2OPORTNMAPCTR0(sub->swm->oport.hw),
swm               230 sound/soc/uniphier/aio-core.c 			     MAPCTR0_EN | sub->swm->oport.map);
swm               231 sound/soc/uniphier/aio-core.c 		regmap_write(r, A2CHNMAPCTR0(sub->swm->och.hw),
swm               232 sound/soc/uniphier/aio-core.c 			     MAPCTR0_EN | sub->swm->och.map);
swm               233 sound/soc/uniphier/aio-core.c 		regmap_write(r, A2IIFNMAPCTR0(sub->swm->iif.hw),
swm               234 sound/soc/uniphier/aio-core.c 			     MAPCTR0_EN | sub->swm->iif.map);
swm               237 sound/soc/uniphier/aio-core.c 		dev_err(dev, "Unknown port type %d.\n", sub->swm->type);
swm               254 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               255 sound/soc/uniphier/aio-core.c 		regmap_write(r, AOUTRSTCTR0, BIT(sub->swm->oport.map));
swm               256 sound/soc/uniphier/aio-core.c 		regmap_write(r, AOUTRSTCTR1, BIT(sub->swm->oport.map));
swm               258 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXRSTCTR(sub->swm->iport.map),
swm               261 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXRSTCTR(sub->swm->iport.map),
swm               309 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXTYSLOTCTR(sub->swm->oport.map, i),
swm               311 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXTYSLOTCTR(sub->swm->oport.map, i),
swm               336 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               382 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXCTR1(sub->swm->oport.map),
swm               430 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXCTR1(sub->swm->iport.map),
swm               455 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               473 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXCTR1(sub->swm->oport.map),
swm               495 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXCTR1(sub->swm->iport.map),
swm               531 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               532 sound/soc/uniphier/aio-core.c 		if (sub->swm->type == PORT_TYPE_I2S) {
swm               558 sound/soc/uniphier/aio-core.c 		} else if (sub->swm->type == PORT_TYPE_EVE) {
swm               563 sound/soc/uniphier/aio-core.c 		} else if (sub->swm->type == PORT_TYPE_SPDIF) {
swm               589 sound/soc/uniphier/aio-core.c 		regmap_write(r, OPORTMXCTR2(sub->swm->oport.map), v);
swm               595 sound/soc/uniphier/aio-core.c 		regmap_write(r, IPORTMXCTR2(sub->swm->iport.map), v);
swm               622 sound/soc/uniphier/aio-core.c 		if (sub->swm->type == PORT_TYPE_EVE ||
swm               623 sound/soc/uniphier/aio-core.c 		    sub->swm->type == PORT_TYPE_CONV) {
swm               646 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               657 sound/soc/uniphier/aio-core.c 		regmap_write(r, OPORTMXCTR3(sub->swm->oport.map), v);
swm               659 sound/soc/uniphier/aio-core.c 		regmap_write(r, IPORTMXACLKSEL0EX(sub->swm->iport.map),
swm               661 sound/soc/uniphier/aio-core.c 		regmap_write(r, IPORTMXEXNOE(sub->swm->iport.map),
swm               679 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               680 sound/soc/uniphier/aio-core.c 		regmap_write(r, OPORTMXPATH(sub->swm->oport.map),
swm               681 sound/soc/uniphier/aio-core.c 			     sub->swm->oif.map);
swm               683 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXMASK(sub->swm->oport.map),
swm               694 sound/soc/uniphier/aio-core.c 			regmap_write(r, AOUTENCTR0, BIT(sub->swm->oport.map));
swm               696 sound/soc/uniphier/aio-core.c 			regmap_write(r, AOUTENCTR1, BIT(sub->swm->oport.map));
swm               698 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXMASK(sub->swm->iport.map),
swm               706 sound/soc/uniphier/aio-core.c 					   IPORTMXCTR2(sub->swm->iport.map),
swm               711 sound/soc/uniphier/aio-core.c 					   IPORTMXCTR2(sub->swm->iport.map),
swm               728 sound/soc/uniphier/aio-core.c 	regmap_read(r, OPORTMXTYVOLGAINSTATUS(sub->swm->oport.map, 0), &v);
swm               745 sound/soc/uniphier/aio-core.c 	int oport_map = sub->swm->oport.map;
swm               748 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_INPUT)
swm               791 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm               812 sound/soc/uniphier/aio-core.c 		regmap_write(r, PBOUTMXCTR0(sub->swm->oif.map), v);
swm               813 sound/soc/uniphier/aio-core.c 		regmap_write(r, PBOUTMXCTR1(sub->swm->oif.map), 0);
swm               815 sound/soc/uniphier/aio-core.c 		regmap_write(r, PBINMXCTR(sub->swm->iif.map),
swm               818 sound/soc/uniphier/aio-core.c 			     (sub->swm->iport.map << PBINMXCTR_PBINSEL_SHIFT) |
swm               883 sound/soc/uniphier/aio-core.c 	regmap_write(r, OPORTMXREPET(sub->swm->oport.map), repet);
swm               884 sound/soc/uniphier/aio-core.c 	regmap_write(r, OPORTMXPAUDAT(sub->swm->oport.map), pause);
swm               901 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir != PORT_DIR_OUTPUT)
swm               904 sound/soc/uniphier/aio-core.c 	regmap_write(r, AOUTSRCRSTCTR0, BIT(sub->swm->oport.map));
swm               905 sound/soc/uniphier/aio-core.c 	regmap_write(r, AOUTSRCRSTCTR1, BIT(sub->swm->oport.map));
swm               925 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir != PORT_DIR_OUTPUT)
swm               928 sound/soc/uniphier/aio-core.c 	regmap_write(r, OPORTMXSRC1CTR(sub->swm->oport.map),
swm               954 sound/soc/uniphier/aio-core.c 	regmap_write(r, OPORTMXRATE_I(sub->swm->oport.map),
swm               957 sound/soc/uniphier/aio-core.c 	regmap_update_bits(r, OPORTMXRATE_I(sub->swm->oport.map),
swm               968 sound/soc/uniphier/aio-core.c 	regmap_write(r, PBINMXCTR(sub->swm->iif.map),
swm               971 sound/soc/uniphier/aio-core.c 		     (sub->swm->oport.map << PBINMXCTR_PBINSEL_SHIFT) |
swm               982 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXCTRL1(sub->swm->och.map),
swm               985 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXSRCAMODE(sub->swm->och.map),
swm               990 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXDSTAMODE(sub->swm->och.map),
swm               994 sound/soc/uniphier/aio-core.c 		     (sub->swm->och.map << CDA2D_CHMXAMODE_RSSEL_SHIFT));
swm              1010 sound/soc/uniphier/aio-core.c 		     v | BIT(sub->swm->och.map));
swm              1018 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXCTRL1(sub->swm->ch.map),
swm              1024 sound/soc/uniphier/aio-core.c 		(sub->swm->rb.map << CDA2D_CHMXAMODE_RSSEL_SHIFT);
swm              1025 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT)
swm              1026 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_CHMXSRCAMODE(sub->swm->ch.map), v);
swm              1028 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_CHMXDSTAMODE(sub->swm->ch.map), v);
swm              1039 sound/soc/uniphier/aio-core.c 			     CDA2D_STRT0_STOP_START | BIT(sub->swm->ch.map));
swm              1042 sound/soc/uniphier/aio-core.c 				   BIT(sub->swm->rb.map),
swm              1043 sound/soc/uniphier/aio-core.c 				   BIT(sub->swm->rb.map));
swm              1046 sound/soc/uniphier/aio-core.c 			     CDA2D_STRT0_STOP_STOP | BIT(sub->swm->ch.map));
swm              1049 sound/soc/uniphier/aio-core.c 				   BIT(sub->swm->rb.map),
swm              1061 sound/soc/uniphier/aio-core.c 		     CDA2D_RDPTRLOAD_LSFLAG_STORE | BIT(sub->swm->rb.map));
swm              1064 sound/soc/uniphier/aio-core.c 		regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &pos_l);
swm              1066 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &pos_l);
swm              1067 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXRDPTRU(sub->swm->rb.map), &pos_u);
swm              1079 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), (u32)pos);
swm              1080 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXRDPTRU(sub->swm->rb.map), (u32)(pos >> 32));
swm              1081 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RDPTRLOAD, BIT(sub->swm->rb.map));
swm              1084 sound/soc/uniphier/aio-core.c 		regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &tmp);
swm              1094 sound/soc/uniphier/aio-core.c 		     CDA2D_WRPTRLOAD_LSFLAG_STORE | BIT(sub->swm->rb.map));
swm              1097 sound/soc/uniphier/aio-core.c 		regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &pos_l);
swm              1099 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &pos_l);
swm              1100 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXWRPTRU(sub->swm->rb.map), &pos_u);
swm              1112 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXWRPTR(sub->swm->rb.map),
swm              1114 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXWRPTRU(sub->swm->rb.map),
swm              1116 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_WRPTRLOAD, BIT(sub->swm->rb.map));
swm              1119 sound/soc/uniphier/aio-core.c 		regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &tmp);
swm              1129 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXBTH(sub->swm->rb.map), th);
swm              1130 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXRTH(sub->swm->rb.map), th);
swm              1145 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXCNFG(sub->swm->rb.map), 0);
swm              1146 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXBGNADRS(sub->swm->rb.map),
swm              1148 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXBGNADRSU(sub->swm->rb.map),
swm              1150 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXENDADRS(sub->swm->rb.map),
swm              1152 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXENDADRSU(sub->swm->rb.map),
swm              1155 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBADRSLOAD, BIT(sub->swm->rb.map));
swm              1161 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm              1165 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, CDA2D_RBMXIE(sub->swm->rb.map),
swm              1172 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, CDA2D_RBMXIE(sub->swm->rb.map),
swm              1191 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT) {
swm              1233 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXIR(sub->swm->rb.map), &ir);
swm              1235 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT)
swm              1245 sound/soc/uniphier/aio-core.c 	if (sub->swm->dir == PORT_DIR_OUTPUT)
swm              1246 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_RBMXIR(sub->swm->rb.map),
swm              1249 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_RBMXIR(sub->swm->rb.map),
swm                54 sound/soc/uniphier/aio-cpu.c 		if (!sub->swm)
swm                57 sound/soc/uniphier/aio-cpu.c 		if (sub->swm->oport.hw == oport_hw)
swm                68 sound/soc/uniphier/aio-cpu.c 	    spec->swm.dir != PORT_DIR_OUTPUT) {
swm                73 sound/soc/uniphier/aio-cpu.c 	    spec->swm.dir != PORT_DIR_INPUT) {
swm               350 sound/soc/uniphier/aio-cpu.c 	if (sub->swm->type == PORT_TYPE_CONV) {
swm               399 sound/soc/uniphier/aio-cpu.c 		sub->swm = &spec->swm;
swm               198 sound/soc/uniphier/aio-dma.c 	if (sub->swm->dir == PORT_DIR_OUTPUT)
swm                16 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm                29 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm                43 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm                57 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm                70 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm                84 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm                98 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm               111 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm               124 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm               139 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm               155 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm               169 sound/soc/uniphier/aio-ld11.c 		.swm = {
swm                16 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm                30 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm                44 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm                58 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm                72 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm                85 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm                98 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm               111 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm               124 sound/soc/uniphier/aio-pxs2.c 		.swm = {
swm               209 sound/soc/uniphier/aio.h 	struct uniphier_aio_swmap swm;
swm               235 sound/soc/uniphier/aio.h 	const struct uniphier_aio_swmap *swm;