Home
last modified time | relevance | path

Searched refs:mecr (Results 1 – 3 of 3) sorted by relevance

/linux-3.4.99/drivers/pcmcia/
Dsa11xx_base.h69 #define MECR_SET(mecr, sock, shift, mask, bs) \ argument
70 ((mecr)=((mecr)&~(((mask)<<(shift))<<\
74 #define MECR_GET(mecr, sock, shift, mask) \ argument
75 ((((mecr)>>(((sock)==0)?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT))>>\
78 #define MECR_BSIO_SET(mecr, sock, bs) \ argument
79 MECR_SET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK, (bs))
81 #define MECR_BSIO_GET(mecr, sock) \ argument
82 MECR_GET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK)
84 #define MECR_BSA_SET(mecr, sock, bs) \ argument
85 MECR_SET((mecr), (sock), MECR_BSA_SHIFT, MECR_BS_MASK, (bs))
[all …]
Dsa11xx_base.c82 u32 mecr, old_mecr; in sa1100_pcmcia_set_mecr() local
94 old_mecr = mecr = MECR; in sa1100_pcmcia_set_mecr()
95 MECR_FAST_SET(mecr, skt->nr, 0); in sa1100_pcmcia_set_mecr()
96 MECR_BSIO_SET(mecr, skt->nr, bs_io); in sa1100_pcmcia_set_mecr()
97 MECR_BSA_SET(mecr, skt->nr, bs_attr); in sa1100_pcmcia_set_mecr()
98 MECR_BSM_SET(mecr, skt->nr, bs_mem); in sa1100_pcmcia_set_mecr()
99 if (old_mecr != mecr) in sa1100_pcmcia_set_mecr()
100 MECR = mecr; in sa1100_pcmcia_set_mecr()
105 MECR_FAST_GET(mecr, skt->nr), in sa1100_pcmcia_set_mecr()
106 MECR_BSM_GET(mecr, skt->nr), MECR_BSA_GET(mecr, skt->nr), in sa1100_pcmcia_set_mecr()
[all …]
Dpxa2xx_base.c224 uint32_t mecr = MECR_CIT; in pxa2xx_configure_sockets() local
229 mecr |= MECR_NOS; in pxa2xx_configure_sockets()
231 __raw_writel(mecr, MECR); in pxa2xx_configure_sockets()