Searched refs:reg_n (Results 1 – 9 of 9) sorted by relevance
/linux/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_core.c | 90 unsigned int reg_n) in sxgbe_core_set_umac_addr() argument 97 writel(high_word, ioaddr + SXGBE_CORE_ADD_HIGHOFFSET(reg_n)); in sxgbe_core_set_umac_addr() 98 writel(low_word, ioaddr + SXGBE_CORE_ADD_LOWOFFSET(reg_n)); in sxgbe_core_set_umac_addr() 102 unsigned int reg_n) in sxgbe_core_get_umac_addr() argument 106 high_word = readl(ioaddr + SXGBE_CORE_ADD_HIGHOFFSET(reg_n)); in sxgbe_core_get_umac_addr() 107 low_word = readl(ioaddr + SXGBE_CORE_ADD_LOWOFFSET(reg_n)); in sxgbe_core_get_umac_addr()
|
H A D | sxgbe_common.h | 333 unsigned int reg_n); 335 unsigned int reg_n);
|
H A D | sxgbe_main.c | 1821 unsigned int reg_n) in sxgbe_set_umac_addr() argument 1830 writel(data | SXGBE_HI_REG_AE, ioaddr + SXGBE_ADDR_HIGH(reg_n)); in sxgbe_set_umac_addr() 1832 writel(data, ioaddr + SXGBE_ADDR_LOW(reg_n)); in sxgbe_set_umac_addr()
|
/linux/drivers/input/keyboard/ |
H A D | bcm-keypad.c | 49 #define KPSSRN_OFFSET(reg_n) (KPSSR0_OFFSET + 4 * (reg_n)) argument 54 #define KPICRN_OFFSET(reg_n) (KPICR0_OFFSET + 4 * (reg_n)) argument 62 #define BIT_TO_ROW_SSRN(bit_nr, reg_n) (((bit_nr) >> 3) + 4 * (reg_n)) argument
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-sun8i.c | 647 unsigned int reg_n) in sun8i_dwmac_set_umac_addr() argument 653 writel(0, ioaddr + EMAC_MACADDR_HI(reg_n)); in sun8i_dwmac_set_umac_addr() 657 stmmac_set_mac_addr(ioaddr, addr, EMAC_MACADDR_HI(reg_n), in sun8i_dwmac_set_umac_addr() 658 EMAC_MACADDR_LO(reg_n)); in sun8i_dwmac_set_umac_addr() 659 if (reg_n > 0) { in sun8i_dwmac_set_umac_addr() 660 v = readl(ioaddr + EMAC_MACADDR_HI(reg_n)); in sun8i_dwmac_set_umac_addr() 662 writel(v, ioaddr + EMAC_MACADDR_HI(reg_n)); in sun8i_dwmac_set_umac_addr() 668 unsigned int reg_n) in sun8i_dwmac_get_umac_addr() argument 672 stmmac_get_mac_addr(ioaddr, addr, EMAC_MACADDR_HI(reg_n), in sun8i_dwmac_get_umac_addr() 673 EMAC_MACADDR_LO(reg_n)); in sun8i_dwmac_get_umac_addr()
|
H A D | dwmac100_core.c | 64 unsigned int reg_n) in dwmac100_set_umac_addr() argument 72 unsigned int reg_n) in dwmac100_get_umac_addr() argument
|
H A D | dwmac4_core.c | 362 const unsigned char *addr, unsigned int reg_n) in dwmac4_set_umac_addr() argument 366 stmmac_dwmac4_set_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(reg_n), in dwmac4_set_umac_addr() 367 GMAC_ADDR_LOW(reg_n)); in dwmac4_set_umac_addr() 371 unsigned char *addr, unsigned int reg_n) in dwmac4_get_umac_addr() argument 375 stmmac_dwmac4_get_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(reg_n), in dwmac4_get_umac_addr() 376 GMAC_ADDR_LOW(reg_n)); in dwmac4_get_umac_addr()
|
H A D | dwxgmac2_core.c | 397 unsigned int reg_n) in dwxgmac2_set_umac_addr() argument 403 writel(value | XGMAC_AE, ioaddr + XGMAC_ADDRx_HIGH(reg_n)); in dwxgmac2_set_umac_addr() 406 writel(value, ioaddr + XGMAC_ADDRx_LOW(reg_n)); in dwxgmac2_set_umac_addr() 410 unsigned char *addr, unsigned int reg_n) in dwxgmac2_get_umac_addr() argument 416 hi_addr = readl(ioaddr + XGMAC_ADDRx_HIGH(reg_n)); in dwxgmac2_get_umac_addr() 417 lo_addr = readl(ioaddr + XGMAC_ADDRx_LOW(reg_n)); in dwxgmac2_get_umac_addr()
|
H A D | hwif.h | 360 unsigned int reg_n); 362 unsigned int reg_n);
|