Home
last modified time | relevance | path

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

/Linux-v6.6/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 …]
/Linux-v6.6/drivers/net/can/flexcan/
Dflexcan-core.c273 u32 mecr; /* 0xae0 */ member
1623 reg_mecr = priv->read(&regs->mecr); in flexcan_chip_start()
1625 priv->write(reg_mecr, &regs->mecr); in flexcan_chip_start()
1630 priv->write(reg_mecr, &regs->mecr); in flexcan_chip_start()
1636 priv->write(reg_mecr, &regs->mecr); in flexcan_chip_start()