/linux-4.1.27/arch/frv/include/asm/ |
H A D | irc-regs.h | 15 #define __reg(ADDR) (*(volatile unsigned long *)(ADDR)) macro 17 #define __get_TM0() ({ __reg(0xfeff9800); }) 18 #define __get_TM1() ({ __reg(0xfeff9808); }) 19 #define __set_TM1(V) do { __reg(0xfeff9808) = (V); mb(); } while(0) 24 unsigned long tm1 = __reg(0xfeff9808); \ 27 __reg(0xfeff9808) = tm1; \ 31 #define __get_RS(C) ({ (__reg(0xfeff9810) >> ((C)+16)) & 1; }) 33 #define __clr_RC(C) do { __reg(0xfeff9818) = 1 << ((C)+16); mb(); } while(0) 35 #define __get_MASK(C) ({ (__reg(0xfeff9820) >> ((C)+16)) & 1; }) 36 #define __set_MASK(C) do { __reg(0xfeff9820) |= 1 << ((C)+16); mb(); } while(0) 37 #define __clr_MASK(C) do { __reg(0xfeff9820) &= ~(1 << ((C)+16)); mb(); } while(0) 43 #define __get_IRL() ({ (__reg(0xfeff9828) >> 16) & 0xf; }) 44 #define __clr_IRL() do { __reg(0xfeff9828) = 0x100000; mb(); } while(0) 46 #define __get_IRR(N) ({ __reg(0xfeff9840 + (N) * 8); }) 47 #define __set_IRR(N,V) do { __reg(0xfeff9840 + (N) * 8) = (V); } while(0) 49 #define __get_IITMR(N) ({ __reg(0xfeff9880 + (N) * 8); }) 50 #define __set_IITMR(N,V) do { __reg(0xfeff9880 + (N) * 8) = (V); } while(0)
|
H A D | gpio-regs.h | 15 #define __reg(ADDR) (*(volatile unsigned long *)(ADDR)) macro 17 #define __get_PDR() ({ __reg(0xfeff0400); }) 18 #define __set_PDR(V) do { __reg(0xfeff0400) = (V); mb(); } while(0) 20 #define __get_GPDR() ({ __reg(0xfeff0408); }) 21 #define __set_GPDR(V) do { __reg(0xfeff0408) = (V); mb(); } while(0) 23 #define __get_SIR() ({ __reg(0xfeff0410); }) 24 #define __set_SIR(V) do { __reg(0xfeff0410) = (V); mb(); } while(0) 26 #define __get_SOR() ({ __reg(0xfeff0418); }) 27 #define __set_SOR(V) do { __reg(0xfeff0418) = (V); mb(); } while(0) 29 #define __set_PDSR(V) do { __reg(0xfeff0420) = (V); mb(); } while(0) 31 #define __set_PDCR(V) do { __reg(0xfeff0428) = (V); mb(); } while(0) 33 #define __get_RSTR() ({ __reg(0xfeff0500); }) 34 #define __set_RSTR(V) do { __reg(0xfeff0500) = (V); mb(); } while(0)
|
H A D | serial-regs.h | 22 #define __get_UART0(R) ({ __reg(UART0_BASE + (R) * 8) >> 24; }) 23 #define __get_UART1(R) ({ __reg(UART1_BASE + (R) * 8) >> 24; }) 24 #define __set_UART0(R,V) do { __reg(UART0_BASE + (R) * 8) = (V) << 24; } while(0) 25 #define __set_UART1(R,V) do { __reg(UART1_BASE + (R) * 8) = (V) << 24; } while(0)
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2x00reg.h | 246 #define SET_FIELD(__reg, __type, __field, __value)\ 249 *(__reg) &= ~((__field).bit_mask); \ 250 *(__reg) |= ((__value) << \ 255 #define GET_FIELD(__reg, __type, __field) \ 258 ((__reg) & ((__field).bit_mask)) >> \ 262 #define rt2x00_set_field32(__reg, __field, __value) \ 263 SET_FIELD(__reg, struct rt2x00_field32, __field, __value) 264 #define rt2x00_get_field32(__reg, __field) \ 265 GET_FIELD(__reg, struct rt2x00_field32, __field) 267 #define rt2x00_set_field16(__reg, __field, __value) \ 268 SET_FIELD(__reg, struct rt2x00_field16, __field, __value) 269 #define rt2x00_get_field16(__reg, __field) \ 270 GET_FIELD(__reg, struct rt2x00_field16, __field) 272 #define rt2x00_set_field8(__reg, __field, __value) \ 273 SET_FIELD(__reg, struct rt2x00_field8, __field, __value) 274 #define rt2x00_get_field8(__reg, __field) \ 275 GET_FIELD(__reg, struct rt2x00_field8, __field)
|
H A D | rt2400pci.c | 51 #define WAIT_FOR_BBP(__dev, __reg) \ 52 rt2x00mmio_regbusy_read((__dev), BBPCSR, BBPCSR_BUSY, (__reg)) 53 #define WAIT_FOR_RF(__dev, __reg) \ 54 rt2x00mmio_regbusy_read((__dev), RFCSR, RFCSR_BUSY, (__reg))
|
H A D | rt2500usb.c | 139 #define WAIT_FOR_BBP(__dev, __reg) \ 140 rt2500usb_regbusy_read((__dev), PHY_CSR8, PHY_CSR8_BUSY, (__reg)) 141 #define WAIT_FOR_RF(__dev, __reg) \ 142 rt2500usb_regbusy_read((__dev), PHY_CSR10, PHY_CSR10_RF_BUSY, (__reg))
|
H A D | rt61pci.c | 57 #define WAIT_FOR_BBP(__dev, __reg) \ 58 rt2x00mmio_regbusy_read((__dev), PHY_CSR3, PHY_CSR3_BUSY, (__reg)) 59 #define WAIT_FOR_RF(__dev, __reg) \ 60 rt2x00mmio_regbusy_read((__dev), PHY_CSR4, PHY_CSR4_BUSY, (__reg)) 61 #define WAIT_FOR_MCU(__dev, __reg) \ 63 H2M_MAILBOX_CSR_OWNER, (__reg))
|
H A D | rt2500pci.c | 51 #define WAIT_FOR_BBP(__dev, __reg) \ 52 rt2x00mmio_regbusy_read((__dev), BBPCSR, BBPCSR_BUSY, (__reg)) 53 #define WAIT_FOR_RF(__dev, __reg) \ 54 rt2x00mmio_regbusy_read((__dev), RFCSR, RFCSR_BUSY, (__reg))
|
H A D | rt73usb.c | 58 #define WAIT_FOR_BBP(__dev, __reg) \ 59 rt2x00usb_regbusy_read((__dev), PHY_CSR3, PHY_CSR3_BUSY, (__reg)) 60 #define WAIT_FOR_RF(__dev, __reg) \ 61 rt2x00usb_regbusy_read((__dev), PHY_CSR4, PHY_CSR4_BUSY, (__reg))
|
H A D | rt2800lib.c | 58 #define WAIT_FOR_BBP(__dev, __reg) \ 59 rt2800_regbusy_read((__dev), BBP_CSR_CFG, BBP_CSR_CFG_BUSY, (__reg)) 60 #define WAIT_FOR_RFCSR(__dev, __reg) \ 61 rt2800_regbusy_read((__dev), RF_CSR_CFG, RF_CSR_CFG_BUSY, (__reg)) 62 #define WAIT_FOR_RF(__dev, __reg) \ 63 rt2800_regbusy_read((__dev), RF_CSR_CFG0, RF_CSR_CFG0_BUSY, (__reg)) 64 #define WAIT_FOR_MCU(__dev, __reg) \ 66 H2M_MAILBOX_CSR_OWNER, (__reg))
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
H A D | armada_crtc.h | 21 struct armada_regs *__reg = _r; \ 22 __reg[_i].offset = _o; \ 23 __reg[_i].mask = ~(_m); \ 24 __reg[_i].val = _v; \
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | dw_mmc.h | 174 #define mci_fifo_readw(__reg) __raw_readw(__reg) 175 #define mci_fifo_readl(__reg) __raw_readl(__reg) 176 #define mci_fifo_readq(__reg) __raw_readq(__reg) 178 #define mci_fifo_writew(__value, __reg) __raw_writew(__reg, __value) 179 #define mci_fifo_writel(__value, __reg) __raw_writel(__reg, __value) 180 #define mci_fifo_writeq(__value, __reg) __raw_writeq(__reg, __value) 214 #define __raw_writeq(__value, __reg) \ 215 (*(volatile u64 __force *)(__reg) = (__value)) 216 #define __raw_readq(__reg) (*(volatile u64 __force *)(__reg))
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | stv090x_priv.h | 49 #define STV090x_READ_DEMOD(__state, __reg) (( \ 51 stv090x_read_reg(__state, STV090x_P2_##__reg) : \ 52 stv090x_read_reg(__state, STV090x_P1_##__reg)) 54 #define STV090x_WRITE_DEMOD(__state, __reg, __data) (( \ 56 stv090x_write_reg(__state, STV090x_P2_##__reg, __data) :\ 57 stv090x_write_reg(__state, STV090x_P1_##__reg, __data))
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | paravirt_privop.h | 446 register unsigned long __reg asm ("r8") = (reg); \ 452 : PARAVIRT_OP(getreg), "0"(__reg) \ 462 register unsigned long __reg asm ("r9") = reg; \ 472 "1"(__reg), "0"(__val) \
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | prom_irqtrans.c | 83 #define sabre_read(__reg) \ 87 : "r" (__reg), "i" (ASI_PHYS_BYPASS_EC_E) \ 317 #define schizo_read(__reg) \ 321 : "r" (__reg), "i" (ASI_PHYS_BYPASS_EC_E) \ 325 #define schizo_write(__reg, __val) \ 328 : "r" (__val), "r" (__reg), \
|
H A D | iommu.c | 34 #define iommu_read(__reg) \ 38 : "r" (__reg), "i" (ASI_PHYS_BYPASS_EC_E) \ 42 #define iommu_write(__reg, __val) \ 45 : "r" (__val), "r" (__reg), \
|
/linux-4.1.27/drivers/media/platform/s3c-camif/ |
H A D | camif-regs.h | 160 #define CISTATUS_FRAMECNT(__reg) (((__reg) >> 26) & 0x3)
|
/linux-4.1.27/drivers/hwmon/ |
H A D | adt7411.c | 216 #define ADT7411_BIT_ATTR(__name, __reg, __bit) \ 218 adt7411_set_bit, __bit, __reg)
|
/linux-4.1.27/drivers/pinctrl/spear/ |
H A D | pinctrl-plgpio.c | 649 #define plgpio_prepare_reg(__reg, _off, _mask, _tmp) \ 651 _tmp = readl_relaxed(plgpio->regs.__reg + _off); \ 653 plgpio->csave_regs[i].__reg = \ 654 _tmp | (plgpio->csave_regs[i].__reg & _mask); \
|
/linux-4.1.27/drivers/net/ethernet/cadence/ |
H A D | macb.h | 448 #define macb_or_gem_writel(__bp, __reg, __value) \ 451 gem_writel((__bp), __reg, __value); \ 453 macb_writel((__bp), __reg, __value); \ 456 #define macb_or_gem_readl(__bp, __reg) \ 460 __v = gem_readl((__bp), __reg); \ 462 __v = macb_readl((__bp), __reg); \
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
H A D | sunhme.c | 244 #define hme_write32(__hp, __reg, __val) \ 245 ((__hp)->write32((__reg), (__val))) 246 #define hme_read32(__hp, __reg) \ 247 ((__hp)->read32(__reg)) 265 #define hme_write32(__hp, __reg, __val) \ 266 sbus_writel((__val), (__reg)) 267 #define hme_read32(__hp, __reg) \ 268 sbus_readl(__reg) 290 #define hme_write32(__hp, __reg, __val) \ 291 writel((__val), (__reg)) 292 #define hme_read32(__hp, __reg) \ 293 readl(__reg)
|
/linux-4.1.27/arch/frv/kernel/ |
H A D | setup.c | 785 __reg(UART0_BASE + UART_IER * 8) = 0; setup_arch() 789 __reg(UART1_BASE + UART_IER * 8) = 0; setup_arch()
|