| /linux/drivers/net/ethernet/mscc/ |
| H A D | vsc7514_regs.c | 72 REG(ANA_ADVLEARN, 0x009000), 73 REG(ANA_VLANMASK, 0x009004), 74 REG(ANA_PORT_B_DOMAIN, 0x009008), 75 REG(ANA_ANAGEFIL, 0x00900c), 76 REG(ANA_ANEVENTS, 0x009010), 77 REG(ANA_STORMLIMIT_BURST, 0x009014), 78 REG(ANA_STORMLIMIT_CFG, 0x009018), 79 REG(ANA_ISOLATED_PORTS, 0x009028), 80 REG(ANA_COMMUNITY_PORTS, 0x00902c), 81 REG(ANA_AUTOAGE, 0x009030), [all …]
|
| /linux/drivers/net/dsa/ocelot/ |
| H A D | seville_vsc9953.c | 42 REG(ANA_ADVLEARN, 0x00b500), 43 REG(ANA_VLANMASK, 0x00b504), 45 REG(ANA_ANAGEFIL, 0x00b50c), 46 REG(ANA_ANEVENTS, 0x00b510), 47 REG(ANA_STORMLIMIT_BURST, 0x00b514), 48 REG(ANA_STORMLIMIT_CFG, 0x00b518), 49 REG(ANA_ISOLATED_PORTS, 0x00b528), 50 REG(ANA_COMMUNITY_PORTS, 0x00b52c), 51 REG(ANA_AUTOAGE, 0x00b530), 52 REG(ANA_MACTOPTIONS, 0x00b534), [all …]
|
| H A D | felix_vsc9959.c | 50 REG(ANA_ADVLEARN, 0x0089a0), 51 REG(ANA_VLANMASK, 0x0089a4), 53 REG(ANA_ANAGEFIL, 0x0089ac), 54 REG(ANA_ANEVENTS, 0x0089b0), 55 REG(ANA_STORMLIMIT_BURST, 0x0089b4), 56 REG(ANA_STORMLIMIT_CFG, 0x0089b8), 57 REG(ANA_ISOLATED_PORTS, 0x0089c8), 58 REG(ANA_COMMUNITY_PORTS, 0x0089cc), 59 REG(ANA_AUTOAGE, 0x0089d0), 60 REG(ANA_MACTOPTIONS, 0x0089d4), [all …]
|
| /linux/drivers/net/ethernet/apple/ |
| H A D | mace.h | 9 #define REG(x) volatile unsigned char x; char x ## _pad[15] macro 12 REG(rcvfifo); /* receive FIFO */ 13 REG(xmtfifo); /* transmit FIFO */ 14 REG(xmtfc); /* transmit frame control */ 15 REG(xmtfs); /* transmit frame status */ 16 REG(xmtrc); /* transmit retry count */ 17 REG(rcvfc); /* receive frame control */ 18 REG(rcvfs); /* receive frame status (4 bytes) */ 19 REG(fifofc); /* FIFO frame count */ 20 REG(ir); /* interrupt register */ [all …]
|
| /linux/drivers/regulator/ |
| H A D | rn5t618-regulator.c | 25 #define REG(rid, ereg, emask, vreg, vmask, min, max, step) \ macro 45 REG(DCDC1, DC1CTL, BIT(0), DC1DAC, 0xff, 600000, 3500000, 12500), 46 REG(DCDC2, DC2CTL, BIT(0), DC2DAC, 0xff, 600000, 3500000, 12500), 47 REG(DCDC3, DC3CTL, BIT(0), DC3DAC, 0xff, 600000, 3500000, 12500), 48 REG(DCDC4, DC4CTL, BIT(0), DC4DAC, 0xff, 600000, 3500000, 12500), 50 REG(LDO1, LDOEN1, BIT(0), LDO1DAC, 0x7f, 900000, 3500000, 25000), 51 REG(LDO2, LDOEN1, BIT(1), LDO2DAC, 0x7f, 900000, 3500000, 25000), 52 REG(LDO3, LDOEN1, BIT(2), LDO3DAC, 0x7f, 600000, 3500000, 25000), 53 REG(LDO4, LDOEN1, BIT(3), LDO4DAC, 0x7f, 900000, 3500000, 25000), 54 REG(LDO5, LDOEN1, BIT(4), LDO5DAC, 0x7f, 900000, 3500000, 25000), [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/gpio/dce120/ |
| H A D | hw_translate_dce120.c | 51 #define REG(reg_name)\ macro 69 case REG(DC_GPIO_GENERIC_A): in offset_to_id() 99 case REG(DC_GPIO_HPD_A): in offset_to_id() 126 case REG(DC_GPIO_SYNCA_A): in offset_to_id() 141 case REG(DC_GPIO_GENLK_A): in offset_to_id() 165 case REG(DC_GPIO_DDC1_A): in offset_to_id() 168 case REG(DC_GPIO_DDC2_A): in offset_to_id() 171 case REG(DC_GPIO_DDC3_A): in offset_to_id() 174 case REG(DC_GPIO_DDC4_A): in offset_to_id() 177 case REG(DC_GPIO_DDC5_A): in offset_to_id() [all …]
|
| /linux/tools/testing/selftests/powerpc/nx-gzip/include/ |
| H A D | nxu.h | 428 #define getnn(ST, REG) ((be32toh(ST.REG) >> (31-REG##_offset)) \ argument 429 & REG##_mask) 430 #define getpnn(ST, REG) ((be32toh((ST)->REG) >> (31-REG##_offset)) \ argument 431 & REG##_mask) 432 #define get32(ST, REG) (be32toh(ST.REG)) argument 433 #define getp32(ST, REG) (be32toh((ST)->REG)) argument 434 #define get64(ST, REG) (be64toh(ST.REG)) argument 435 #define getp64(ST, REG) (be64toh((ST)->REG)) argument 437 #define unget32(ST, REG) (get32(ST, REG) & ~((REG##_mask) \ argument 438 << (31-REG##_offset))) [all …]
|
| /linux/arch/m68k/lib/ |
| H A D | mulsi3.S | 61 #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x) macro 67 #define d0 REG (d0) 68 #define d1 REG (d1) 69 #define d2 REG (d2) 70 #define d3 REG (d3) 71 #define d4 REG (d4) 72 #define d5 REG (d5) 73 #define d6 REG (d6) 74 #define d7 REG (d7) 75 #define a0 REG (a0) [all …]
|
| H A D | modsi3.S | 63 #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x) macro 69 #define d0 REG (d0) 70 #define d1 REG (d1) 71 #define d2 REG (d2) 72 #define d3 REG (d3) 73 #define d4 REG (d4) 74 #define d5 REG (d5) 75 #define d6 REG (d6) 76 #define d7 REG (d7) 77 #define a0 REG (a0) [all …]
|
| H A D | umodsi3.S | 61 #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x) macro 67 #define d0 REG (d0) 68 #define d1 REG (d1) 69 #define d2 REG (d2) 70 #define d3 REG (d3) 71 #define d4 REG (d4) 72 #define d5 REG (d5) 73 #define d6 REG (d6) 74 #define d7 REG (d7) 75 #define a0 REG (a0) [all …]
|
| H A D | divsi3.S | 63 #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x) macro 69 #define d0 REG (d0) 70 #define d1 REG (d1) 71 #define d2 REG (d2) 72 #define d3 REG (d3) 73 #define d4 REG (d4) 74 #define d5 REG (d5) 75 #define d6 REG (d6) 76 #define d7 REG (d7) 77 #define a0 REG (a0) [all …]
|
| H A D | udivsi3.S | 61 #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x) macro 67 #define d0 REG (d0) 68 #define d1 REG (d1) 69 #define d2 REG (d2) 70 #define d3 REG (d3) 71 #define d4 REG (d4) 72 #define d5 REG (d5) 73 #define d6 REG (d6) 74 #define d7 REG (d7) 75 #define a0 REG (a0) [all …]
|
| /linux/arch/sparc/include/asm/ |
| H A D | asm.h | 14 #define BRANCH_REG_ZERO(PREDICT, REG, DEST) \ argument 15 brz,PREDICT REG, DEST 16 #define BRANCH_REG_ZERO_ANNUL(PREDICT, REG, DEST) \ argument 17 brz,a,PREDICT REG, DEST 18 #define BRANCH_REG_NOT_ZERO(PREDICT, REG, DEST) \ argument 19 brnz,PREDICT REG, DEST 20 #define BRANCH_REG_NOT_ZERO_ANNUL(PREDICT, REG, DEST) \ argument 21 brnz,a,PREDICT REG, DEST 27 #define BRANCH_REG_ZERO(PREDICT, REG, DEST) \ argument 28 cmp REG, 0; \ [all …]
|
| /linux/drivers/net/ipa/reg/ |
| H A D | gsi_reg-v3.1.c | 13 REG(INTER_EE_SRC_CH_IRQ_MSK, inter_ee_src_ch_irq_msk, 16 REG(INTER_EE_SRC_EV_CH_IRQ_MSK, inter_ee_src_ev_ch_irq_msk, 176 REG(CNTXT_TYPE_IRQ, cntxt_type_irq, 0x0001f080 + 0x4000 * GSI_EE_AP); 178 REG(CNTXT_TYPE_IRQ_MSK, cntxt_type_irq_msk, 0x0001f088 + 0x4000 * GSI_EE_AP); 180 REG(CNTXT_SRC_CH_IRQ, cntxt_src_ch_irq, 0x0001f090 + 0x4000 * GSI_EE_AP); 182 REG(CNTXT_SRC_EV_CH_IRQ, cntxt_src_ev_ch_irq, 0x0001f094 + 0x4000 * GSI_EE_AP); 184 REG(CNTXT_SRC_CH_IRQ_MSK, cntxt_src_ch_irq_msk, 187 REG(CNTXT_SRC_EV_CH_IRQ_MSK, cntxt_src_ev_ch_irq_msk, 190 REG(CNTXT_SRC_CH_IRQ_CLR, cntxt_src_ch_irq_clr, 193 REG(CNTXT_SRC_EV_CH_IRQ_CLR, cntxt_src_ev_ch_irq_clr, [all …]
|
| H A D | gsi_reg-v3.5.1.c | 13 REG(INTER_EE_SRC_CH_IRQ_MSK, inter_ee_src_ch_irq_msk, 16 REG(INTER_EE_SRC_EV_CH_IRQ_MSK, inter_ee_src_ev_ch_irq_msk, 187 REG(CNTXT_TYPE_IRQ, cntxt_type_irq, 0x0001f080 + 0x4000 * GSI_EE_AP); 189 REG(CNTXT_TYPE_IRQ_MSK, cntxt_type_irq_msk, 0x0001f088 + 0x4000 * GSI_EE_AP); 191 REG(CNTXT_SRC_CH_IRQ, cntxt_src_ch_irq, 0x0001f090 + 0x4000 * GSI_EE_AP); 193 REG(CNTXT_SRC_EV_CH_IRQ, cntxt_src_ev_ch_irq, 0x0001f094 + 0x4000 * GSI_EE_AP); 195 REG(CNTXT_SRC_CH_IRQ_MSK, cntxt_src_ch_irq_msk, 198 REG(CNTXT_SRC_EV_CH_IRQ_MSK, cntxt_src_ev_ch_irq_msk, 201 REG(CNTXT_SRC_CH_IRQ_CLR, cntxt_src_ch_irq_clr, 204 REG(CNTXT_SRC_EV_CH_IRQ_CLR, cntxt_src_ev_ch_irq_clr, [all …]
|
| H A D | gsi_reg-v4.11.c | 13 REG(INTER_EE_SRC_CH_IRQ_MSK, inter_ee_src_ch_irq_msk, 16 REG(INTER_EE_SRC_EV_CH_IRQ_MSK, inter_ee_src_ev_ch_irq_msk, 197 REG(CNTXT_TYPE_IRQ, cntxt_type_irq, 0x00012080 + 0x4000 * GSI_EE_AP); 199 REG(CNTXT_TYPE_IRQ_MSK, cntxt_type_irq_msk, 0x00012088 + 0x4000 * GSI_EE_AP); 201 REG(CNTXT_SRC_CH_IRQ, cntxt_src_ch_irq, 0x00012090 + 0x4000 * GSI_EE_AP); 203 REG(CNTXT_SRC_EV_CH_IRQ, cntxt_src_ev_ch_irq, 0x00012094 + 0x4000 * GSI_EE_AP); 205 REG(CNTXT_SRC_CH_IRQ_MSK, cntxt_src_ch_irq_msk, 208 REG(CNTXT_SRC_EV_CH_IRQ_MSK, cntxt_src_ev_ch_irq_msk, 211 REG(CNTXT_SRC_CH_IRQ_CLR, cntxt_src_ch_irq_clr, 214 REG(CNTXT_SRC_EV_CH_IRQ_CLR, cntxt_src_ev_ch_irq_clr, [all …]
|
| H A D | gsi_reg-v4.9.c | 13 REG(INTER_EE_SRC_CH_IRQ_MSK, inter_ee_src_ch_irq_msk, 16 REG(INTER_EE_SRC_EV_CH_IRQ_MSK, inter_ee_src_ev_ch_irq_msk, 196 REG(CNTXT_TYPE_IRQ, cntxt_type_irq, 0x00012080 + 0x4000 * GSI_EE_AP); 198 REG(CNTXT_TYPE_IRQ_MSK, cntxt_type_irq_msk, 0x00012088 + 0x4000 * GSI_EE_AP); 200 REG(CNTXT_SRC_CH_IRQ, cntxt_src_ch_irq, 0x00012090 + 0x4000 * GSI_EE_AP); 202 REG(CNTXT_SRC_EV_CH_IRQ, cntxt_src_ev_ch_irq, 0x00012094 + 0x4000 * GSI_EE_AP); 204 REG(CNTXT_SRC_CH_IRQ_MSK, cntxt_src_ch_irq_msk, 207 REG(CNTXT_SRC_EV_CH_IRQ_MSK, cntxt_src_ev_ch_irq_msk, 210 REG(CNTXT_SRC_CH_IRQ_CLR, cntxt_src_ch_irq_clr, 213 REG(CNTXT_SRC_EV_CH_IRQ_CLR, cntxt_src_ev_ch_irq_clr, [all …]
|
| H A D | gsi_reg-v4.5.c | 13 REG(INTER_EE_SRC_CH_IRQ_MSK, inter_ee_src_ch_irq_msk, 16 REG(INTER_EE_SRC_EV_CH_IRQ_MSK, inter_ee_src_ev_ch_irq_msk, 195 REG(CNTXT_TYPE_IRQ, cntxt_type_irq, 0x00012080 + 0x4000 * GSI_EE_AP); 197 REG(CNTXT_TYPE_IRQ_MSK, cntxt_type_irq_msk, 0x00012088 + 0x4000 * GSI_EE_AP); 199 REG(CNTXT_SRC_CH_IRQ, cntxt_src_ch_irq, 0x00012090 + 0x4000 * GSI_EE_AP); 201 REG(CNTXT_SRC_EV_CH_IRQ, cntxt_src_ev_ch_irq, 0x00012094 + 0x4000 * GSI_EE_AP); 203 REG(CNTXT_SRC_CH_IRQ_MSK, cntxt_src_ch_irq_msk, 206 REG(CNTXT_SRC_EV_CH_IRQ_MSK, cntxt_src_ev_ch_irq_msk, 209 REG(CNTXT_SRC_CH_IRQ_CLR, cntxt_src_ch_irq_clr, 212 REG(CNTXT_SRC_EV_CH_IRQ_CLR, cntxt_src_ev_ch_irq_clr, [all …]
|
| H A D | gsi_reg-v4.0.c | 13 REG(INTER_EE_SRC_CH_IRQ_MSK, inter_ee_src_ch_irq_msk, 16 REG(INTER_EE_SRC_EV_CH_IRQ_MSK, inter_ee_src_ev_ch_irq_msk, 192 REG(CNTXT_TYPE_IRQ, cntxt_type_irq, 0x0001f080 + 0x4000 * GSI_EE_AP); 194 REG(CNTXT_TYPE_IRQ_MSK, cntxt_type_irq_msk, 0x0001f088 + 0x4000 * GSI_EE_AP); 196 REG(CNTXT_SRC_CH_IRQ, cntxt_src_ch_irq, 0x0001f090 + 0x4000 * GSI_EE_AP); 198 REG(CNTXT_SRC_EV_CH_IRQ, cntxt_src_ev_ch_irq, 0x0001f094 + 0x4000 * GSI_EE_AP); 200 REG(CNTXT_SRC_CH_IRQ_MSK, cntxt_src_ch_irq_msk, 203 REG(CNTXT_SRC_EV_CH_IRQ_MSK, cntxt_src_ev_ch_irq_msk, 206 REG(CNTXT_SRC_CH_IRQ_CLR, cntxt_src_ch_irq_clr, 209 REG(CNTXT_SRC_EV_CH_IRQ_CLR, cntxt_src_ev_ch_irq_clr, [all …]
|
| H A D | gsi_reg-v5.0.c | 13 REG(INTER_EE_SRC_CH_IRQ_MSK, inter_ee_src_ch_irq_msk, 16 REG(INTER_EE_SRC_EV_CH_IRQ_MSK, inter_ee_src_ev_ch_irq_msk, 190 REG(CNTXT_TYPE_IRQ, cntxt_type_irq, 0x00025080 + 0x12000 * GSI_EE_AP); 192 REG(CNTXT_TYPE_IRQ_MSK, cntxt_type_irq_msk, 0x00025088 + 0x12000 * GSI_EE_AP); 194 REG(CNTXT_SRC_CH_IRQ, cntxt_src_ch_irq, 0x00025090 + 0x12000 * GSI_EE_AP); 196 REG(CNTXT_SRC_CH_IRQ_MSK, cntxt_src_ch_irq_msk, 199 REG(CNTXT_SRC_CH_IRQ_CLR, cntxt_src_ch_irq_clr, 202 REG(CNTXT_SRC_EV_CH_IRQ, cntxt_src_ev_ch_irq, 0x0002509c + 0x12000 * GSI_EE_AP); 204 REG(CNTXT_SRC_EV_CH_IRQ_MSK, cntxt_src_ev_ch_irq_msk, 207 REG(CNTXT_SRC_EV_CH_IRQ_CLR, cntxt_src_ev_ch_irq_clr, [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | hw_breakpoint.c | 61 #define READ_WB_REG_CASE(OFF, N, REG, VAL) \ argument 63 AARCH64_DBG_READ(N, REG, VAL); \ 66 #define WRITE_WB_REG_CASE(OFF, N, REG, VAL) \ argument 68 AARCH64_DBG_WRITE(N, REG, VAL); \ 71 #define GEN_READ_WB_REG_CASES(OFF, REG, VAL) \ argument 72 READ_WB_REG_CASE(OFF, 0, REG, VAL); \ 73 READ_WB_REG_CASE(OFF, 1, REG, VAL); \ 74 READ_WB_REG_CASE(OFF, 2, REG, VAL); \ 75 READ_WB_REG_CASE(OFF, 3, REG, VAL); \ 76 READ_WB_REG_CASE(OFF, 4, REG, VAL); \ [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-realtek-rtl.c | 29 #define REG(x) (rtspi->base + x) macro 38 value = __raw_readl(REG(RTL_SPI_SFCSR)); in rt_set_cs() 43 __raw_writel(value, REG(RTL_SPI_SFCSR)); in rt_set_cs() 50 value = __raw_readl(REG(RTL_SPI_SFCSR)); in set_size() 56 __raw_writel(value, REG(RTL_SPI_SFCSR)); in set_size() 61 while (!(__raw_readl(REG(RTL_SPI_SFCSR)) & RTL_SPI_SFCSR_RDY)) in wait_ready() 68 __raw_writel(*buf, REG(RTL_SPI_SFDR)); in send4() 75 __raw_writel(buf[0] << 24, REG(RTL_SPI_SFDR)); in send1() 82 *buf = __raw_readl(REG(RTL_SPI_SFDR)); in rcv4() 89 *buf = __raw_readl(REG(RTL_SPI_SFDR)) >> 24; in rcv1() [all …]
|
| /linux/drivers/gpu/drm/tilcdc/ |
| H A D | tilcdc_drv.c | 149 #define REG(rev, save, reg) { #reg, rev, save, reg } macro 151 REG(1, false, LCDC_PID_REG), 152 REG(1, true, LCDC_CTRL_REG), 153 REG(1, false, LCDC_STAT_REG), 154 REG(1, true, LCDC_RASTER_CTRL_REG), 155 REG(1, true, LCDC_RASTER_TIMING_0_REG), 156 REG(1, true, LCDC_RASTER_TIMING_1_REG), 157 REG(1, true, LCDC_RASTER_TIMING_2_REG), 158 REG(1, true, LCDC_DMA_CTRL_REG), 159 REG(1, true, LCDC_DMA_FB_BASE_ADDR_0_REG), [all …]
|
| /linux/drivers/watchdog/ |
| H A D | it8712f_wdt.c | 56 #define REG 0x2e /* The register to read/write */ macro 94 outb(reg, REG); in superio_inb() 100 outb(reg, REG); in superio_outb() 107 outb(reg++, REG); in superio_inw() 109 outb(reg, REG); in superio_inw() 116 outb(LDN, REG); in superio_select() 125 if (!request_muxed_region(REG, 2, NAME)) in superio_enter() 128 outb(0x87, REG); in superio_enter() 129 outb(0x01, REG); in superio_enter() 130 outb(0x55, REG); in superio_enter() [all …]
|
| /linux/drivers/block/ |
| H A D | swim.c | 41 #define REG(x) unsigned char x, x ## _pad[0x200 - 1]; macro 44 REG(write_data) 45 REG(write_mark) 46 REG(write_CRC) 47 REG(write_parameter) 48 REG(write_phase) 49 REG(write_setup) 50 REG(write_mode0) 51 REG(write_mode1) 53 REG(read_data) [all …]
|