/linux/drivers/net/ethernet/intel/igbvf/ |
A D | regs.h | 27 #define E1000_RDBAL(_n) ((_n) < 4 ? (0x02800 + ((_n) * 0x100)) : \ argument 29 #define E1000_RDBAH(_n) ((_n) < 4 ? (0x02804 + ((_n) * 0x100)) : \ argument 31 #define E1000_RDLEN(_n) ((_n) < 4 ? (0x02808 + ((_n) * 0x100)) : \ argument 33 #define E1000_SRRCTL(_n) ((_n) < 4 ? (0x0280C + ((_n) * 0x100)) : \ argument 35 #define E1000_RDH(_n) ((_n) < 4 ? (0x02810 + ((_n) * 0x100)) : \ argument 37 #define E1000_RDT(_n) ((_n) < 4 ? (0x02818 + ((_n) * 0x100)) : \ argument 41 #define E1000_TDBAL(_n) ((_n) < 4 ? (0x03800 + ((_n) * 0x100)) : \ argument 43 #define E1000_TDBAH(_n) ((_n) < 4 ? (0x03804 + ((_n) * 0x100)) : \ argument 45 #define E1000_TDLEN(_n) ((_n) < 4 ? (0x03808 + ((_n) * 0x100)) : \ argument 47 #define E1000_TDH(_n) ((_n) < 4 ? (0x03810 + ((_n) * 0x100)) : \ argument [all …]
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | e1000_regs.h | 143 #define E1000_RDBAL(_n) ((_n) < 4 ? (0x02800 + ((_n) * 0x100)) \ argument 145 #define E1000_RDBAH(_n) ((_n) < 4 ? (0x02804 + ((_n) * 0x100)) \ argument 147 #define E1000_RDLEN(_n) ((_n) < 4 ? (0x02808 + ((_n) * 0x100)) \ argument 149 #define E1000_SRRCTL(_n) ((_n) < 4 ? (0x0280C + ((_n) * 0x100)) \ argument 151 #define E1000_RDH(_n) ((_n) < 4 ? (0x02810 + ((_n) * 0x100)) \ argument 153 #define E1000_RDT(_n) ((_n) < 4 ? (0x02818 + ((_n) * 0x100)) \ argument 155 #define E1000_RXDCTL(_n) ((_n) < 4 ? (0x02828 + ((_n) * 0x100)) \ argument 157 #define E1000_TDBAL(_n) ((_n) < 4 ? (0x03800 + ((_n) * 0x100)) \ argument 159 #define E1000_TDBAH(_n) ((_n) < 4 ? (0x03804 + ((_n) * 0x100)) \ argument 161 #define E1000_TDLEN(_n) ((_n) < 4 ? (0x03808 + ((_n) * 0x100)) \ argument [all …]
|
/linux/drivers/net/ethernet/intel/e1000e/ |
A D | regs.h | 82 #define E1000_RDBAL(_n) ((_n) < 4 ? (0x02800 + ((_n) * 0x100)) : \ argument 84 #define E1000_RDBAH(_n) ((_n) < 4 ? (0x02804 + ((_n) * 0x100)) : \ argument 86 #define E1000_RDLEN(_n) ((_n) < 4 ? (0x02808 + ((_n) * 0x100)) : \ argument 88 #define E1000_RDH(_n) ((_n) < 4 ? (0x02810 + ((_n) * 0x100)) : \ argument 90 #define E1000_RDT(_n) ((_n) < 4 ? (0x02818 + ((_n) * 0x100)) : \ argument 92 #define E1000_RXDCTL(_n) ((_n) < 4 ? (0x02828 + ((_n) * 0x100)) : \ argument 94 #define E1000_TDBAL(_n) ((_n) < 4 ? (0x03800 + ((_n) * 0x100)) : \ argument 96 #define E1000_TDBAH(_n) ((_n) < 4 ? (0x03804 + ((_n) * 0x100)) : \ argument 98 #define E1000_TDLEN(_n) ((_n) < 4 ? (0x03808 + ((_n) * 0x100)) : \ argument 100 #define E1000_TDH(_n) ((_n) < 4 ? (0x03810 + ((_n) * 0x100)) : \ argument [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_type.h | 121 #define FM10K_MAXHOLDQ(_n) ((_n) + 0x0020) argument 124 #define FM10K_SM_AREA(_n) ((_n) + 0x0028) argument 127 #define FM10K_DGLORTMAP(_n) ((_n) + 0x0030) argument 133 #define FM10K_DGLORTDEC(_n) ((_n) + 0x0038) argument 143 #define FM10K_SWPRI_MAP(_n) ((_n) + 0x0050) argument 154 #define FM10K_TC_CREDIT(_n) ((_n) + 0x2000) argument 158 #define FM10K_TC_RATE(_n) ((_n) + 0x2080) argument 192 #define FM10K_MRQC(_n) ((_n) + 0x2100) argument 200 #define FM10K_TQMAP(_n) ((_n) + 0x2800) argument 202 #define FM10K_RQMAP(_n) ((_n) + 0x3000) argument [all …]
|
A D | fm10k_mbx.h | 14 #define FM10K_MBMEM(_n) ((_n) + 0x18000) argument 15 #define FM10K_MBMEM_VF(_n, _m) (((_n) * 0x10) + (_m) + 0x18000) argument 16 #define FM10K_MBMEM_SM(_n) ((_n) + 0x18400) argument 17 #define FM10K_MBMEM_PF(_n) ((_n) + 0x18600) argument 20 #define FM10K_MBX(_n) ((_n) + 0x18800) argument 29 #define FM10K_MBICR(_n) ((_n) + 0x18840) argument 34 #define FM10K_VFMBMEM(_n) ((_n) + 0x00020) argument 202 #define FM10K_MBX_ERR(_n) ((_n) - 512) argument
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_regs.h | 56 #define IGC_EITR(_n) (0x01680 + (0x4 * (_n))) argument 103 #define IGC_RDBAL(_n) (0x0C000 + ((_n) * 0x40)) argument 104 #define IGC_RDBAH(_n) (0x0C004 + ((_n) * 0x40)) argument 106 #define IGC_RDH(_n) (0x0C010 + ((_n) * 0x40)) argument 107 #define IGC_RDT(_n) (0x0C018 + ((_n) * 0x40)) argument 116 #define IGC_RAL(_n) (0x05400 + ((_n) * 0x08)) argument 117 #define IGC_RAH(_n) (0x05404 + ((_n) * 0x08)) argument 126 #define IGC_TDH(_n) (0x0E010 + ((_n) * 0x40)) argument 127 #define IGC_TDT(_n) (0x0E018 + ((_n) * 0x40)) argument 235 #define IGC_STQT(_n) (0x3324 + 0x4 * (_n)) argument [all …]
|
/linux/drivers/net/wireless/ath/ |
A D | reg.h | 43 #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) argument 56 #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0) argument 57 #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4) argument 58 #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8) argument 59 #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12) argument 60 #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16) argument 61 #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20) argument 62 #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24) argument 63 #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28) argument
|
/linux/drivers/scsi/aic94xx/ |
A D | aic94xx_dump.c | 202 #define PRINT_REG_8bit(_ha, _n, _r) asd_printk(STR_8BIT, #_n, _n, \ argument 204 #define PRINT_REG_16bit(_ha, _n, _r) asd_printk(STR_16BIT, #_n, _n, \ argument 206 #define PRINT_REG_32bit(_ha, _n, _r) asd_printk(STR_32BIT, #_n, _n, \ argument 209 #define PRINT_CREG_8bit(_ha, _n) asd_printk(STR_8BIT, #_n, _n, \ argument 211 #define PRINT_CREG_16bit(_ha, _n) asd_printk(STR_16BIT, #_n, _n, \ argument 213 #define PRINT_CREG_32bit(_ha, _n) asd_printk(STR_32BIT, #_n, _n, \ argument 220 #define PRINT_MREG_8bit(_ha, _m, _n, _r) asd_printk(MSTR_8BIT, _m, #_n, _n, \ argument 222 #define PRINT_MREG_16bit(_ha, _m, _n, _r) asd_printk(MSTR_16BIT, _m, #_n, _n, \ argument 224 #define PRINT_MREG_32bit(_ha, _m, _n, _r) asd_printk(MSTR_32BIT, _m, #_n, _n, \ argument 424 asd_printk(STR_8BIT, #_n, _n, asd_read_reg_byte(_h, Lm##_n(_lseq))) [all …]
|
/linux/arch/mips/include/asm/sn/ |
A D | addrs.h | 39 #define NASID_GET_META(_n) ((_n) >> NASID_LOCAL_BITS) argument 41 #define NASID_GET_LOCAL(_n) ((_n) & 0xf) argument 58 #define NODE_OFFSET(_n) (UINT64_CAST (_n) << NODE_SIZE_BITS) argument 60 #define NODE_CAC_BASE(_n) (CAC_BASE + NODE_OFFSET(_n)) argument 61 #define NODE_HSPEC_BASE(_n) (HSPEC_BASE + NODE_OFFSET(_n)) argument 62 #define NODE_IO_BASE(_n) (IO_BASE + NODE_OFFSET(_n)) argument 63 #define NODE_MSPEC_BASE(_n) (MSPEC_BASE + NODE_OFFSET(_n)) argument 64 #define NODE_UNCAC_BASE(_n) (UNCAC_BASE + NODE_OFFSET(_n)) argument 66 #define TO_NODE(_n, _x) (NODE_OFFSET(_n) | ((_x) )) argument 160 #define NODE_RBOOT_BASE(_n) (NODE_HSPEC_BASE(_n) + 0x30000000) argument [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | regs.h | 110 #define MT_INT_RX_DONE(_n) BIT(_n) argument 113 #define MT_INT_TX_DONE(_n) BIT((_n) + 4) argument 262 #define MT_AGG_ARxCR_LIMIT_SHIFT(_n) (4 * (_n)) argument 426 #define MT_WTBL_ON(_n) (MT_WTBL_ON_BASE + (_n)) argument 532 #define MT_DMASHDL_Q_MAP(_n) (0x0d0 + ((_n) << 2)) argument 534 #define MT_DMASHDL_Q_MAP_SHIFT(_n) (4 * ((_n) % 8)) argument 537 #define MT_LED_PHYS(_n) (MT_LED_BASE_PHYS + (_n)) argument 541 #define MT_LED_CTRL_REPLAY(_n) BIT(0 + (8 * (_n))) argument 542 #define MT_LED_CTRL_POLARITY(_n) BIT(1 + (8 * (_n))) argument 546 #define MT_LED_CTRL_KICK(_n) BIT(7 + (8 * (_n))) argument [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/ |
A D | mt76x02_regs.h | 109 #define MT_INT_RX_DONE(_n) BIT(_n) argument 112 #define MT_INT_TX_DONE(_n) BIT((_n) + 4) argument 143 #define MT_WMM_AIFSN_SHIFT(_n) ((_n) * 4) argument 147 #define MT_WMM_CWMIN_SHIFT(_n) ((_n) * 4) argument 151 #define MT_WMM_CWMAX_SHIFT(_n) ((_n) * 4) argument 155 #define MT_WMM_TXOP_SHIFT(_n) (((_n) & 1) * 16) argument 226 #define MT_LED_CTRL_REPLAY(_n) BIT(0 + (8 * (_n))) argument 229 #define MT_LED_CTRL_KICK(_n) BIT(7 + (8 * (_n))) argument 235 #define MT_LED_S0(_n) (MT_LED_S0_BASE + 8 * (_n)) argument 237 #define MT_LED_S1(_n) (MT_LED_S1_BASE + 8 * (_n)) argument [all …]
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
A D | regs.h | 31 #define MT_EFUSE_DATA(_n) (MT_EFUSE_DATA_BASE + ((_n) << 2)) argument 87 #define MT_INT_RX_DONE(_n) BIT(_n) argument 90 #define MT_INT_TX_DONE(_n) BIT(_n + 4) argument 121 #define MT_WMM_AIFSN_SHIFT(_n) ((_n) * 4) argument 125 #define MT_WMM_CWMIN_SHIFT(_n) ((_n) * 4) argument 129 #define MT_WMM_CWMAX_SHIFT(_n) ((_n) * 4) argument 133 #define MT_WMM_TXOP_SHIFT(_n) ((_n & 1) * 16) argument 279 #define MT_WCID_DROP_MASK(_n) BIT((_n) % 32) argument 568 #define MT_WCID_ADDR(_n) (MT_WCID_ADDR_BASE + (_n) * 8) argument 573 #define MT_WCID_KEY(_n) (MT_WCID_KEY_BASE + (_n) * 32) argument [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
A D | regs.h | 28 #define MT_INT_RX_DONE(_n) BIT(_n) argument 31 #define MT_INT_TX_DONE(_n) BIT((_n) + 4) argument 189 #define MT_AGG_ARxCR_LIMIT_SHIFT(_n) (4 * (_n)) argument 196 #define MT_AGG_LIMIT_AC(_n) GENMASK(((_n) + 1) * 8 - 1, (_n) * 8) argument 272 #define MT_WMM_AIFSN_SHIFT(_n) ((_n) * 4) argument 276 #define MT_WMM_CWMAX_SHIFT(_n) (((_n) & 1) * 16) argument 281 #define MT_WMM_CWMIN_SHIFT(_n) ((_n) * 8) argument 373 #define MT_WMM_TXOP_SHIFT(_n) (((_n) & 1) * 16) argument 524 #define MT_WTBL_ON(_n) (MT_WTBL_ON_BASE + (_n)) argument 545 #define MT_MIB(_n) (MT_MIB_BASE + (_n)) argument [all …]
|
/linux/lib/raid6/ |
A D | neon.c | 29 #define RAID6_NEON_WRAPPER(_n) \ argument 30 static void raid6_neon ## _n ## _gen_syndrome(int disks, \ 33 void raid6_neon ## _n ## _gen_syndrome_real(int, \ 36 raid6_neon ## _n ## _gen_syndrome_real(disks, \ 40 static void raid6_neon ## _n ## _xor_syndrome(int disks, \ 44 void raid6_neon ## _n ## _xor_syndrome_real(int, \ 47 raid6_neon ## _n ## _xor_syndrome_real(disks, \ 51 struct raid6_calls const raid6_neonx ## _n = { \ 52 raid6_neon ## _n ## _gen_syndrome, \ 53 raid6_neon ## _n ## _xor_syndrome, \ [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
A D | reg.h | 833 #define AR5K_DCU_TX_FILTER_0(_n) (AR5K_DCU_TX_FILTER_0_BASE + (_n * 64)) argument 1758 #define AR5K_MIC_QOS_CTL_OFF(_n) (1 << (_n * 2)) argument 1765 #define AR5K_MIC_QOS_SEL_OFF(_n) (1 << (_n * 4)) argument 1812 #define AR5K_RATE_ACKSIFS(_n) (AR5K_RATE_ACKSIFS_BSE + ((_n) << 2)) argument 1820 #define AR5K_RATE_DUR(_n) (AR5K_RATE_DUR_BASE + ((_n) << 2)) argument 1827 #define AR5K_RATE2DB(_n) (AR5K_RATE2DB_BASE + ((_n) << 2)) argument 1834 #define AR5K_DB2RATE(_n) (AR5K_DB2RATE_BASE + ((_n) << 2)) argument 1847 #define AR5K_PHY(_n) (AR5K_PHY_BASE + ((_n) << 2)) argument 2399 #define AR5K_BB_GAIN(_n) (AR5K_BB_GAIN_BASE + ((_n) << 2)) argument 2401 #define AR5K_RF_GAIN(_n) (AR5K_RF_GAIN_BASE + ((_n) << 2)) argument [all …]
|
A D | rfbuffer.h | 178 #define AR5K_RF5111_PWD(_n) { 1, (135 - _n), 3 } argument 296 #define AR5K_RF5112_PWD(_n) { 1, (302 - _n), 3 } argument 402 #define AR5K_RF5112A_PWD(_n) { 1, (306 - _n), 3 } argument
|
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
A D | regs.h | 194 #define MT_AGG_AWSCR0(_band, _n) MT_WF_AGG(_band, 0x05c + (_n) * 4) argument 195 #define MT_AGG_PCR0(_band, _n) MT_WF_AGG(_band, 0x06c + (_n) * 4) argument 229 #define MT_ARB_DRNGR0(_band, _n) MT_WF_ARB(_band, 0x194 + (_n) * 4) argument 447 #define MT_DMASHDL_GROUP_QUOTA(_n) MT_DMA_SHDL(0x020 + ((_n) << 2)) argument 451 #define MT_DMASHDL_Q_MAP(_n) MT_DMA_SHDL(0x060 + ((_n) << 2)) argument 453 #define MT_DMASHDL_Q_MAP_SHIFT(_n) (4 * ((_n) % 8)) argument 455 #define MT_DMASHDL_SCHED_SET(_n) MT_DMA_SHDL(0x070 + ((_n) << 2)) argument
|
/linux/drivers/gpu/drm/sun4i/ |
A D | sun4i_hdmi_ddc_clk.c | 34 u8 best_m = 0, best_n = 0, _m, _n; in sun4i_ddc_calc_divider() local 37 for (_n = 0; _n < 8; _n++) { in sun4i_ddc_calc_divider() 40 tmp_rate = (((parent_rate / pre_div) / 10) >> _n) / in sun4i_ddc_calc_divider() 49 best_n = _n; in sun4i_ddc_calc_divider()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | regs.h | 294 #define MT_AGG_AWSCR0(_band, _n) MT_WF_AGG(_band, 0x05c + (_n) * 4) argument 295 #define MT_AGG_PCR0(_band, _n) MT_WF_AGG(_band, 0x06c + (_n) * 4) argument 329 #define MT_ARB_DRNGR0(_band, _n) MT_WF_ARB(_band, 0x194 + (_n) * 4) argument 551 #define MT_LED_PHYS(_n) (MT_LED_TOP_BASE + (_n)) argument 553 #define MT_LED_CTRL(_n) MT_LED_PHYS(0x00 + ((_n) * 4)) argument 558 #define MT_LED_TX_BLINK(_n) MT_LED_PHYS(0x10 + ((_n) * 4)) argument 562 #define MT_LED_EN(_n) MT_LED_PHYS(0x40 + ((_n) * 4)) argument
|
/linux/drivers/clk/sunxi-ng/ |
A D | ccu_nk.c | 23 unsigned int _k, _n; in ccu_nk_find_best() local 26 for (_n = nk->min_n; _n <= nk->max_n; _n++) { in ccu_nk_find_best() 27 unsigned long tmp_rate = parent * _n * _k; in ccu_nk_find_best() 35 best_n = _n; in ccu_nk_find_best()
|
A D | ccu_nkm.c | 24 unsigned long _n, _k, _m; in ccu_nkm_find_best() local 27 for (_n = nkm->min_n; _n <= nkm->max_n; _n++) { in ccu_nkm_find_best() 31 tmp_rate = parent * _n * _k / _m; in ccu_nkm_find_best() 37 best_n = _n; in ccu_nkm_find_best()
|
A D | ccu_nm.c | 35 unsigned long _n, _m; in ccu_nm_find_best() local 37 for (_n = nm->min_n; _n <= nm->max_n; _n++) { in ccu_nm_find_best() 40 _n, _m); in ccu_nm_find_best() 47 best_n = _n; in ccu_nm_find_best()
|
A D | ccu_nkmp.c | 37 unsigned long _n, _k, _m, _p; in ccu_nkmp_find_best() local 40 for (_n = nkmp->min_n; _n <= nkmp->max_n; _n++) { in ccu_nkmp_find_best() 46 _n, _k, in ccu_nkmp_find_best() 54 best_n = _n; in ccu_nkmp_find_best()
|
/linux/lib/842/ |
A D | 842_compress.c | 123 struct sw842_hlist_node##b *_n; \ 125 hash_for_each_possible(p->htable##b, _n, node, p->data##b[n]) { \ 126 if (p->data##b[n] == _n->data) { \ 127 p->index##b[n] = _n->index; \ 140 struct sw842_hlist_node##b *_n = &(p)->node##b[(i)+(d)]; \ 141 hash_del(&_n->node); \ 142 _n->data = (p)->data##b[d]; \ 144 (unsigned int)_n->index, \ 146 (unsigned long)_n->data); \ 147 hash_add((p)->htable##b, &_n->node, _n->data); \
|
/linux/fs/erofs/ |
A D | tagptr.h | 77 #define tagptr_cmpxchg(_ptptr, _o, _n) ({ \ argument 80 typeof(_n) n = (_n); \
|