Lines Matching refs:lsock
803 int lsock = container_of(sock, struct socket_info, socket)->slot;
804 struct socket_info *s = &socket[lsock];
809 *value = ((pipr & (M8XX_PCMCIA_CD1(lsock)
810 | M8XX_PCMCIA_CD2(lsock))) == 0) ? SS_DETECT : 0;
811 *value |= (pipr & M8XX_PCMCIA_WP(lsock)) ? SS_WRPROT : 0;
814 *value |= (pipr & M8XX_PCMCIA_BVD1(lsock)) ? SS_STSCHG : 0;
816 *value |= (pipr & M8XX_PCMCIA_RDY(lsock)) ? SS_READY : 0;
817 *value |= (pipr & M8XX_PCMCIA_BVD1(lsock)) ? SS_BATDEAD : 0;
818 *value |= (pipr & M8XX_PCMCIA_BVD2(lsock)) ? SS_BATWARN : 0;
893 reg = (pipr & M8XX_PCMCIA_VS_MASK(lsock))
894 >> M8XX_PCMCIA_VS_SHIFT(lsock);
896 if(socket_get(lsock) == PCMCIA_SOCKET_KEY_LV) {
907 dprintk("GetStatus(%d) = %#2.2x\n", lsock, *value);
913 int lsock = container_of(sock, struct socket_info, socket)->slot;
914 struct socket_info *s = &socket[lsock];
920 "io_irq %d, csc_mask %#2.2x)\n", lsock, state->flags,
924 if(voltage_set(lsock, state->Vcc, state->Vpp))
929 out_be32(M8XX_PGCRX(lsock), in_be32(M8XX_PGCRX(lsock)) | M8XX_PGCRX_CXRESET); /* active high */
931 out_be32(M8XX_PGCRX(lsock), in_be32(M8XX_PGCRX(lsock)) & ~M8XX_PGCRX_CXRESET);
944 out_be32(M8XX_PGCRX(lsock), in_be32(M8XX_PGCRX(lsock)) & ~M8XX_PGCRX_CXOE); /* active low */
946 out_be32(M8XX_PGCRX(lsock), in_be32(M8XX_PGCRX(lsock)) | M8XX_PGCRX_CXOE);
965 reg |= e->regbit = (M8XX_PCMCIA_CD2(lsock)
966 | M8XX_PCMCIA_CD1(lsock));
975 reg |= e->regbit = M8XX_PCMCIA_BVD1(lsock);
982 out_be32(M8XX_PGCRX(lsock), in_be32(M8XX_PGCRX(lsock)) | mk_int_int_mask(state->io_irq) << 24);
992 reg |= M8XX_PCMCIA_RDY_L(lsock);
995 out_be32(M8XX_PGCRX(lsock), in_be32(M8XX_PGCRX(lsock)) & 0x00ffffff);
1003 reg |= e->regbit = M8XX_PCMCIA_BVD1(lsock);
1008 reg |= e->regbit = M8XX_PCMCIA_BVD2(lsock);
1038 & M8XX_PCMCIA_MASK(lsock);
1057 int lsock = container_of(sock, struct socket_info, socket)->slot;
1059 struct socket_info *s = &socket[lsock];
1067 "%#4.4x-%#4.4x)\n", lsock, io->map, io->flags,
1082 + (lsock * PCMCIA_IO_WIN_NO) + io->map;
1093 reg |= M8XX_PCMCIA_POR_IO |(lsock << 2);
1109 "OR = %#8.8x.\n", lsock, io->map, w->br, w->or);
1113 + (lsock * PCMCIA_IO_WIN_NO) + io->map;
1124 "OR = %#8.8x.\n", lsock, io->map, w->br, w->or);
1139 int lsock = container_of(sock, struct socket_info, socket)->slot;
1140 struct socket_info *s = &socket[lsock];
1146 "%#5.5lx, %#5.5x)\n", lsock, mem->map, mem->flags,
1162 winnr = (lsock * PCMCIA_MEM_WIN_NO) + mem->map;
1169 reg |= lsock << 2;
1188 "OR = %#8.8x.\n", lsock, mem->map, w->br, w->or);
1198 "%#5.5lx, %#5.5x)\n", lsock, mem->map, mem->flags,