/linux-4.4.14/drivers/net/ethernet/intel/igbvf/ |
H A D | regs.h | 34 #define E1000_EITR(_n) (0x01680 + (0x4 * (_n))) 45 * Note: "_n" is the queue number of the register to be written to. 50 #define E1000_RDBAL(_n) ((_n) < 4 ? (0x02800 + ((_n) * 0x100)) : \ 51 (0x0C000 + ((_n) * 0x40))) 52 #define E1000_RDBAH(_n) ((_n) < 4 ? (0x02804 + ((_n) * 0x100)) : \ 53 (0x0C004 + ((_n) * 0x40))) 54 #define E1000_RDLEN(_n) ((_n) < 4 ? (0x02808 + ((_n) * 0x100)) : \ 55 (0x0C008 + ((_n) * 0x40))) 56 #define E1000_SRRCTL(_n) ((_n) < 4 ? (0x0280C + ((_n) * 0x100)) : \ 57 (0x0C00C + ((_n) * 0x40))) 58 #define E1000_RDH(_n) ((_n) < 4 ? (0x02810 + ((_n) * 0x100)) : \ 59 (0x0C010 + ((_n) * 0x40))) 60 #define E1000_RDT(_n) ((_n) < 4 ? (0x02818 + ((_n) * 0x100)) : \ 61 (0x0C018 + ((_n) * 0x40))) 62 #define E1000_RXDCTL(_n) ((_n) < 4 ? (0x02828 + ((_n) * 0x100)) : \ 63 (0x0C028 + ((_n) * 0x40))) 64 #define E1000_TDBAL(_n) ((_n) < 4 ? (0x03800 + ((_n) * 0x100)) : \ 65 (0x0E000 + ((_n) * 0x40))) 66 #define E1000_TDBAH(_n) ((_n) < 4 ? (0x03804 + ((_n) * 0x100)) : \ 67 (0x0E004 + ((_n) * 0x40))) 68 #define E1000_TDLEN(_n) ((_n) < 4 ? (0x03808 + ((_n) * 0x100)) : \ 69 (0x0E008 + ((_n) * 0x40))) 70 #define E1000_TDH(_n) ((_n) < 4 ? (0x03810 + ((_n) * 0x100)) : \ 71 (0x0E010 + ((_n) * 0x40))) 72 #define E1000_TDT(_n) ((_n) < 4 ? (0x03818 + ((_n) * 0x100)) : \ 73 (0x0E018 + ((_n) * 0x40))) 74 #define E1000_TXDCTL(_n) ((_n) < 4 ? (0x03828 + ((_n) * 0x100)) : \ 75 (0x0E028 + ((_n) * 0x40))) 76 #define E1000_DCA_TXCTRL(_n) (0x03814 + (_n << 8)) 77 #define E1000_DCA_RXCTRL(_n) (0x02814 + (_n << 8)) 95 #define E1000_V2PMAILBOX(_n) (0x00C40 + (4 * (_n))) 96 #define E1000_VMBMEM(_n) (0x00800 + (64 * (_n)))
|
/linux-4.4.14/drivers/net/wireless/ath/ |
H A D | reg.h | 43 #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) 56 #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0) 57 #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4) 58 #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8) 59 #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12) 60 #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16) 61 #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20) 62 #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24) 63 #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28)
|
/linux-4.4.14/lib/raid6/ |
H A D | neon.c | 32 #define RAID6_NEON_WRAPPER(_n) \ 33 static void raid6_neon ## _n ## _gen_syndrome(int disks, \ 36 void raid6_neon ## _n ## _gen_syndrome_real(int, \ 39 raid6_neon ## _n ## _gen_syndrome_real(disks, \ 43 static void raid6_neon ## _n ## _xor_syndrome(int disks, \ 47 void raid6_neon ## _n ## _xor_syndrome_real(int, \ 50 raid6_neon ## _n ## _xor_syndrome_real(disks, \ 54 struct raid6_calls const raid6_neonx ## _n = { \ 55 raid6_neon ## _n ## _gen_syndrome, \ 56 raid6_neon ## _n ## _xor_syndrome, \ 58 "neonx" #_n, \
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_type.h | 135 #define FM10K_MAXHOLDQ(_n) ((_n) + 0x0020) 138 #define FM10K_SM_AREA(_n) ((_n) + 0x0028) 141 #define FM10K_DGLORTMAP(_n) ((_n) + 0x0030) 147 #define FM10K_DGLORTDEC(_n) ((_n) + 0x0038) 156 #define FM10K_SWPRI_MAP(_n) ((_n) + 0x0050) 158 #define FM10K_RSSRK(_n, _m) (((_n) * 0x10) + (_m) + 0x0800) 161 #define FM10K_RETA(_n, _m) (((_n) * 0x20) + (_m) + 0x1000) 167 #define FM10K_TC_CREDIT(_n) ((_n) + 0x2000) 169 #define FM10K_TC_MAXCREDIT(_n) ((_n) + 0x2040) 171 #define FM10K_TC_RATE(_n) ((_n) + 0x2080) 205 #define FM10K_MRQC(_n) ((_n) + 0x2100) 213 #define FM10K_TQMAP(_n) ((_n) + 0x2800) 215 #define FM10K_RQMAP(_n) ((_n) + 0x3000) 236 #define FM10K_RDBAL(_n) ((0x40 * (_n)) + 0x4000) 237 #define FM10K_RDBAH(_n) ((0x40 * (_n)) + 0x4001) 238 #define FM10K_RDLEN(_n) ((0x40 * (_n)) + 0x4002) 239 #define FM10K_TPH_RXCTRL(_n) ((0x40 * (_n)) + 0x4003) 244 #define FM10K_RDH(_n) ((0x40 * (_n)) + 0x4004) 245 #define FM10K_RDT(_n) ((0x40 * (_n)) + 0x4005) 246 #define FM10K_RXQCTL(_n) ((0x40 * (_n)) + 0x4006) 252 #define FM10K_RXDCTL(_n) ((0x40 * (_n)) + 0x4007) 255 #define FM10K_RXINT(_n) ((0x40 * (_n)) + 0x4008) 256 #define FM10K_SRRCTL(_n) ((0x40 * (_n)) + 0x4009) 262 #define FM10K_QPRC(_n) ((0x40 * (_n)) + 0x400A) 263 #define FM10K_QPRDC(_n) ((0x40 * (_n)) + 0x400B) 264 #define FM10K_QBRC_L(_n) ((0x40 * (_n)) + 0x400C) 265 #define FM10K_QBRC_H(_n) ((0x40 * (_n)) + 0x400D) 268 #define FM10K_RX_SGLORT(_n) ((0x40 * (_n)) + 0x400E) 271 #define FM10K_TDBAL(_n) ((0x40 * (_n)) + 0x8000) 272 #define FM10K_TDBAH(_n) ((0x40 * (_n)) + 0x8001) 273 #define FM10K_TDLEN(_n) ((0x40 * (_n)) + 0x8002) 274 #define FM10K_TPH_TXCTRL(_n) ((0x40 * (_n)) + 0x8003) 279 #define FM10K_TDH(_n) ((0x40 * (_n)) + 0x8004) 280 #define FM10K_TDT(_n) ((0x40 * (_n)) + 0x8005) 281 #define FM10K_TXDCTL(_n) ((0x40 * (_n)) + 0x8006) 284 #define FM10K_TXQCTL(_n) ((0x40 * (_n)) + 0x8007) 294 #define FM10K_TXINT(_n) ((0x40 * (_n)) + 0x8008) 297 #define FM10K_QPTC(_n) ((0x40 * (_n)) + 0x8009) 298 #define FM10K_QBTC_L(_n) ((0x40 * (_n)) + 0x800A) 299 #define FM10K_QBTC_H(_n) ((0x40 * (_n)) + 0x800B) 302 #define FM10K_TQDLOC(_n) ((0x40 * (_n)) + 0x800C) 307 #define FM10K_TX_SGLORT(_n) ((0x40 * (_n)) + 0x800D) 308 #define FM10K_PFVTCTL(_n) ((0x40 * (_n)) + 0x800E) 312 #define FM10K_INT_MAP(_n) ((_n) + 0x10080) 317 #define FM10K_MSIX_VECTOR_MASK(_n) ((0x4 * (_n)) + 0x11003) 320 #define FM10K_ITR(_n) ((_n) + 0x12400) 326 #define FM10K_ITR2(_n) ((0x2 * (_n)) + 0x12800) 335 #define FM10K_VLAN_TABLE(_n, _m) ((0x80 * (_n)) + (_m) + 0x14000) 347 #define FM10K_PFVFLRE(_n) ((0x1 * (_n)) + 0x18844) 348 #define FM10K_PFVFLREC(_n) ((0x1 * (_n)) + 0x18846) 367 #define FM10K_VFITR(_n) ((_n) + 0x00060) 373 #define FM10K_SW_SYSTIME_PULSE(_n) ((_n) + 0x02252)
|
H A D | fm10k_mbx.h | 31 #define FM10K_MBMEM(_n) ((_n) + 0x18000) 32 #define FM10K_MBMEM_VF(_n, _m) (((_n) * 0x10) + (_m) + 0x18000) 33 #define FM10K_MBMEM_SM(_n) ((_n) + 0x18400) 34 #define FM10K_MBMEM_PF(_n) ((_n) + 0x18600) 37 #define FM10K_MBX(_n) ((_n) + 0x18800) 44 #define FM10K_MBICR(_n) ((_n) + 0x18840) 49 #define FM10K_VFMBMEM(_n) ((_n) + 0x00020) 217 #define FM10K_MBX_ERR(_n) ((_n) - 512)
|
H A D | fm10k_ethtool.c | 127 #define FM10K_QUEUE_STATS_LEN(_n) \ 128 ( (_n) * 2 * (sizeof(struct fm10k_queue_stats) / sizeof(u64)))
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
H A D | e1000_regs.h | 51 #define E1000_EITR(_n) (0x01680 + (0x4 * (_n))) 118 #define E1000_SAQF(_n) (0x5980 + 4 * (_n)) 119 #define E1000_DAQF(_n) (0x59A0 + 4 * (_n)) 120 #define E1000_SPQF(_n) (0x59C0 + 4 * (_n)) 121 #define E1000_FTQF(_n) (0x59E0 + 4 * (_n)) 126 #define E1000_SYNQF(_n) (0x055FC + (4 * (_n))) /* SYN Packet Queue Fltr */ 127 #define E1000_ETQF(_n) (0x05CB0 + (4 * (_n))) /* EType Queue Fltr */ 129 #define E1000_RQDPC(_n) (0x0C030 + ((_n) * 0x40)) 157 * Note: "_n" is the queue number of the register to be written to. 162 #define E1000_RDBAL(_n) ((_n) < 4 ? (0x02800 + ((_n) * 0x100)) \ 163 : (0x0C000 + ((_n) * 0x40))) 164 #define E1000_RDBAH(_n) ((_n) < 4 ? (0x02804 + ((_n) * 0x100)) \ 165 : (0x0C004 + ((_n) * 0x40))) 166 #define E1000_RDLEN(_n) ((_n) < 4 ? (0x02808 + ((_n) * 0x100)) \ 167 : (0x0C008 + ((_n) * 0x40))) 168 #define E1000_SRRCTL(_n) ((_n) < 4 ? (0x0280C + ((_n) * 0x100)) \ 169 : (0x0C00C + ((_n) * 0x40))) 170 #define E1000_RDH(_n) ((_n) < 4 ? (0x02810 + ((_n) * 0x100)) \ 171 : (0x0C010 + ((_n) * 0x40))) 172 #define E1000_RDT(_n) ((_n) < 4 ? (0x02818 + ((_n) * 0x100)) \ 173 : (0x0C018 + ((_n) * 0x40))) 174 #define E1000_RXDCTL(_n) ((_n) < 4 ? (0x02828 + ((_n) * 0x100)) \ 175 : (0x0C028 + ((_n) * 0x40))) 176 #define E1000_TDBAL(_n) ((_n) < 4 ? (0x03800 + ((_n) * 0x100)) \ 177 : (0x0E000 + ((_n) * 0x40))) 178 #define E1000_TDBAH(_n) ((_n) < 4 ? (0x03804 + ((_n) * 0x100)) \ 179 : (0x0E004 + ((_n) * 0x40))) 180 #define E1000_TDLEN(_n) ((_n) < 4 ? (0x03808 + ((_n) * 0x100)) \ 181 : (0x0E008 + ((_n) * 0x40))) 182 #define E1000_TDH(_n) ((_n) < 4 ? (0x03810 + ((_n) * 0x100)) \ 183 : (0x0E010 + ((_n) * 0x40))) 184 #define E1000_TDT(_n) ((_n) < 4 ? (0x03818 + ((_n) * 0x100)) \ 185 : (0x0E018 + ((_n) * 0x40))) 186 #define E1000_TXDCTL(_n) ((_n) < 4 ? (0x03828 + ((_n) * 0x100)) \ 187 : (0x0E028 + ((_n) * 0x40))) 188 #define E1000_RXCTL(_n) ((_n) < 4 ? (0x02814 + ((_n) * 0x100)) : \ 189 (0x0C014 + ((_n) * 0x40))) 190 #define E1000_DCA_RXCTRL(_n) E1000_RXCTL(_n) 191 #define E1000_TXCTL(_n) ((_n) < 4 ? (0x03814 + ((_n) * 0x100)) : \ 192 (0x0E014 + ((_n) * 0x40))) 193 #define E1000_DCA_TXCTRL(_n) E1000_TXCTL(_n) 194 #define E1000_TDWBAL(_n) ((_n) < 4 ? (0x03838 + ((_n) * 0x100)) \ 195 : (0x0E038 + ((_n) * 0x40))) 196 #define E1000_TDWBAH(_n) ((_n) < 4 ? (0x0383C + ((_n) * 0x100)) \ 197 : (0x0E03C + ((_n) * 0x40))) 362 #define E1000_P2VMAILBOX(_n) (0x00C00 + (4 * (_n))) 363 #define E1000_VMBMEM(_n) (0x00800 + (64 * (_n))) 364 #define E1000_VMOLR(_n) (0x05AD0 + (4 * (_n))) 365 #define E1000_DVMOLR(_n) (0x0C038 + (64 * (_n))) 366 #define E1000_VLVF(_n) (0x05D00 + (4 * (_n))) /* VLAN VM Filter */ 367 #define E1000_VMVIR(_n) (0x03700 + (4 * (_n))) 423 #define E1000_INVM_DATA_REG(_n) (0x12120 + 4*(_n))
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
H A D | regs.h | 91 * Note: "_n" is the queue number of the register to be written to. 96 #define E1000_RDBAL(_n) ((_n) < 4 ? (0x02800 + ((_n) * 0x100)) : \ 97 (0x0C000 + ((_n) * 0x40))) 98 #define E1000_RDBAH(_n) ((_n) < 4 ? (0x02804 + ((_n) * 0x100)) : \ 99 (0x0C004 + ((_n) * 0x40))) 100 #define E1000_RDLEN(_n) ((_n) < 4 ? (0x02808 + ((_n) * 0x100)) : \ 101 (0x0C008 + ((_n) * 0x40))) 102 #define E1000_RDH(_n) ((_n) < 4 ? (0x02810 + ((_n) * 0x100)) : \ 103 (0x0C010 + ((_n) * 0x40))) 104 #define E1000_RDT(_n) ((_n) < 4 ? (0x02818 + ((_n) * 0x100)) : \ 105 (0x0C018 + ((_n) * 0x40))) 106 #define E1000_RXDCTL(_n) ((_n) < 4 ? (0x02828 + ((_n) * 0x100)) : \ 107 (0x0C028 + ((_n) * 0x40))) 108 #define E1000_TDBAL(_n) ((_n) < 4 ? (0x03800 + ((_n) * 0x100)) : \ 109 (0x0E000 + ((_n) * 0x40))) 110 #define E1000_TDBAH(_n) ((_n) < 4 ? (0x03804 + ((_n) * 0x100)) : \ 111 (0x0E004 + ((_n) * 0x40))) 112 #define E1000_TDLEN(_n) ((_n) < 4 ? (0x03808 + ((_n) * 0x100)) : \ 113 (0x0E008 + ((_n) * 0x40))) 114 #define E1000_TDH(_n) ((_n) < 4 ? (0x03810 + ((_n) * 0x100)) : \ 115 (0x0E010 + ((_n) * 0x40))) 116 #define E1000_TDT(_n) ((_n) < 4 ? (0x03818 + ((_n) * 0x100)) : \ 117 (0x0E018 + ((_n) * 0x40))) 118 #define E1000_TXDCTL(_n) ((_n) < 4 ? (0x03828 + ((_n) * 0x100)) : \ 119 (0x0E028 + ((_n) * 0x40))) 120 #define E1000_TARC(_n) (0x03840 + ((_n) * 0x100)) 223 #define E1000_MDEF(_n) (0x05890 + (4 * (_n)))
|
H A D | 82571.h | 35 #define E1000_EITR_82574(_n) (0x000E8 + (0x4 * (_n)))
|
H A D | ich8lan.h | 283 #define E1000_PCH_RAICC(_n) (0x05F50 + ((_n) * 4))
|
/linux-4.4.14/arch/mips/include/asm/sn/ |
H A D | addrs.h | 44 #define NASID_GET_META(_n) ((_n) >> NASID_LOCAL_BITS) 46 #define NASID_GET_LOCAL(_n) ((_n) & 0xf) 63 #define NODE_OFFSET(_n) (UINT64_CAST (_n) << NODE_SIZE_BITS) 65 #define NODE_CAC_BASE(_n) (CAC_BASE + NODE_OFFSET(_n)) 66 #define NODE_HSPEC_BASE(_n) (HSPEC_BASE + NODE_OFFSET(_n)) 67 #define NODE_IO_BASE(_n) (IO_BASE + NODE_OFFSET(_n)) 68 #define NODE_MSPEC_BASE(_n) (MSPEC_BASE + NODE_OFFSET(_n)) 69 #define NODE_UNCAC_BASE(_n) (UNCAC_BASE + NODE_OFFSET(_n)) 71 #define TO_NODE(_n, _x) (NODE_OFFSET(_n) | ((_x) )) 72 #define TO_NODE_CAC(_n, _x) (NODE_CAC_BASE(_n) | ((_x) & TO_PHYS_MASK)) 73 #define TO_NODE_UNCAC(_n, _x) (NODE_UNCAC_BASE(_n) | ((_x) & TO_PHYS_MASK)) 74 #define TO_NODE_MSPEC(_n, _x) (NODE_MSPEC_BASE(_n) | ((_x) & TO_PHYS_MASK)) 75 #define TO_NODE_HSPEC(_n, _x) (NODE_HSPEC_BASE(_n) | ((_x) & TO_PHYS_MASK)) 165 #define NODE_RBOOT_BASE(_n) (NODE_HSPEC_BASE(_n) + 0x30000000) 166 #define NODE_RBOOT_LIMIT(_n) (NODE_RBOOT_BASE(_n) + RBOOT_SIZE) 188 #define NODE_BDOOR_BASE(_n) (NODE_HSPEC_BASE(_n) + (NODE_ADDRSPACE_SIZE/2)) 190 #define NODE_BDECC_BASE(_n) (NODE_BDOOR_BASE(_n)) 191 #define NODE_BDDIR_BASE(_n) (NODE_BDOOR_BASE(_n) + (NODE_ADDRSPACE_SIZE/4)) 260 #define REMOTE_HUB_ADDR(_n, _x) (HUBREG_CAST (NODE_SWIN_BASE(_n, 1) + \ 263 #define REMOTE_HUB_PI_ADDR(_n, _sn, _x) (HUBREG_CAST (NODE_SWIN_BASE(_n, 1) + \ 274 #define REMOTE_HUB_L(_n, _r) HUB_L(REMOTE_HUB_ADDR((_n), (_r))) 275 #define REMOTE_HUB_S(_n, _r, _d) HUB_S(REMOTE_HUB_ADDR((_n), (_r)), (_d)) 276 #define REMOTE_HUB_PI_L(_n, _sn, _r) HUB_L(REMOTE_HUB_PI_ADDR((_n), (_sn), (_r))) 277 #define REMOTE_HUB_PI_S(_n, _sn, _r, _d) HUB_S(REMOTE_HUB_PI_ADDR((_n), (_sn), (_r)), (_d))
|
H A D | klconfig.h | 183 #define KL_CONFIG_CH_MALLOC_HDR(_n) PTR_CH_MALLOC_HDR(KL_CONFIG_HDR(_n)) 188 #define KL_CONFIG_CH_CONS_INFO(_n) PTR_CH_CONS_INFO(KL_CONFIG_HDR(_n))
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
H A D | aic94xx_dump.c | 220 #define PRINT_REG_8bit(_ha, _n, _r) asd_printk(STR_8BIT, #_n, _n, \ 222 #define PRINT_REG_16bit(_ha, _n, _r) asd_printk(STR_16BIT, #_n, _n, \ 224 #define PRINT_REG_32bit(_ha, _n, _r) asd_printk(STR_32BIT, #_n, _n, \ 227 #define PRINT_CREG_8bit(_ha, _n) asd_printk(STR_8BIT, #_n, _n, \ 228 asd_read_reg_byte(_ha, C##_n)) 229 #define PRINT_CREG_16bit(_ha, _n) asd_printk(STR_16BIT, #_n, _n, \ 230 asd_read_reg_word(_ha, C##_n)) 231 #define PRINT_CREG_32bit(_ha, _n) asd_printk(STR_32BIT, #_n, _n, \ 232 asd_read_reg_dword(_ha, C##_n)) 238 #define PRINT_MREG_8bit(_ha, _m, _n, _r) asd_printk(MSTR_8BIT, _m, #_n, _n, \ 240 #define PRINT_MREG_16bit(_ha, _m, _n, _r) asd_printk(MSTR_16BIT, _m, #_n, _n, \ 242 #define PRINT_MREG_32bit(_ha, _m, _n, _r) asd_printk(MSTR_32BIT, _m, #_n, _n, \ 246 #define PRINT_MIS_byte(_ha, _n) asd_printk(STR_8BIT, #_n,CSEQ_##_n-CMAPPEDSCR,\ 247 asd_read_reg_byte(_ha, CSEQ_##_n)) 248 #define PRINT_MIS_word(_ha, _n) asd_printk(STR_16BIT,#_n,CSEQ_##_n-CMAPPEDSCR,\ 249 asd_read_reg_word(_ha, CSEQ_##_n)) 250 #define PRINT_MIS_dword(_ha, _n) \ 251 asd_printk(STR_32BIT,#_n,CSEQ_##_n-CMAPPEDSCR,\ 252 asd_read_reg_dword(_ha, CSEQ_##_n)) 253 #define PRINT_MIS_qword(_ha, _n) \ 254 asd_printk(STR_64BIT, #_n,CSEQ_##_n-CMAPPEDSCR, \ 255 (unsigned long long)(((u64)asd_read_reg_dword(_ha, CSEQ_##_n)) \ 256 | (((u64)asd_read_reg_dword(_ha, (CSEQ_##_n)+4))<<32))) 258 #define CMDP_REG(_n, _m) (_m*(CSEQ_PAGE_SIZE*2)+CSEQ_##_n) 259 #define PRINT_CMDP_word(_ha, _n) \ 261 #_n, \ 262 asd_read_reg_word(_ha, CMDP_REG(_n, 0)), \ 263 asd_read_reg_word(_ha, CMDP_REG(_n, 1)), \ 264 asd_read_reg_word(_ha, CMDP_REG(_n, 2)), \ 265 asd_read_reg_word(_ha, CMDP_REG(_n, 3)), \ 266 asd_read_reg_word(_ha, CMDP_REG(_n, 4)), \ 267 asd_read_reg_word(_ha, CMDP_REG(_n, 5)), \ 268 asd_read_reg_word(_ha, CMDP_REG(_n, 6)), \ 269 asd_read_reg_word(_ha, CMDP_REG(_n, 7))) 271 #define PRINT_CMDP_byte(_ha, _n) \ 273 #_n, \ 274 asd_read_reg_byte(_ha, CMDP_REG(_n, 0)), \ 275 asd_read_reg_byte(_ha, CMDP_REG(_n, 1)), \ 276 asd_read_reg_byte(_ha, CMDP_REG(_n, 2)), \ 277 asd_read_reg_byte(_ha, CMDP_REG(_n, 3)), \ 278 asd_read_reg_byte(_ha, CMDP_REG(_n, 4)), \ 279 asd_read_reg_byte(_ha, CMDP_REG(_n, 5)), \ 280 asd_read_reg_byte(_ha, CMDP_REG(_n, 6)), \ 281 asd_read_reg_byte(_ha, CMDP_REG(_n, 7))) 441 #define PRINT_LREG_8bit(_h, _lseq, _n) \ 442 asd_printk(STR_8BIT, #_n, _n, asd_read_reg_byte(_h, Lm##_n(_lseq))) 443 #define PRINT_LREG_16bit(_h, _lseq, _n) \ 444 asd_printk(STR_16BIT, #_n, _n, asd_read_reg_word(_h, Lm##_n(_lseq))) 445 #define PRINT_LREG_32bit(_h, _lseq, _n) \ 446 asd_printk(STR_32BIT, #_n, _n, asd_read_reg_dword(_h, Lm##_n(_lseq))) 448 #define PRINT_LMIP_byte(_h, _lseq, _n) \ 449 asd_printk(STR_8BIT, #_n, LmSEQ_##_n(_lseq)-LmSCRATCH(_lseq), \ 450 asd_read_reg_byte(_h, LmSEQ_##_n(_lseq))) 451 #define PRINT_LMIP_word(_h, _lseq, _n) \ 452 asd_printk(STR_16BIT, #_n, LmSEQ_##_n(_lseq)-LmSCRATCH(_lseq), \ 453 asd_read_reg_word(_h, LmSEQ_##_n(_lseq))) 454 #define PRINT_LMIP_dword(_h, _lseq, _n) \ 455 asd_printk(STR_32BIT, #_n, LmSEQ_##_n(_lseq)-LmSCRATCH(_lseq), \ 456 asd_read_reg_dword(_h, LmSEQ_##_n(_lseq))) 457 #define PRINT_LMIP_qword(_h, _lseq, _n) \ 458 asd_printk(STR_64BIT, #_n, LmSEQ_##_n(_lseq)-LmSCRATCH(_lseq), \ 460 asd_read_reg_dword(_h, LmSEQ_##_n(_lseq))) \ 462 asd_read_reg_dword(_h, LmSEQ_##_n(_lseq)+4))<<32)))
|
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/ |
H A D | regs.h | 43 #define MT_EFUSE_DATA(_n) (MT_EFUSE_DATA_BASE + ((_n) << 2)) 99 #define MT_INT_RX_DONE(_n) BIT(_n) 102 #define MT_INT_TX_DONE(_n) BIT(_n + 4) 133 #define MT_WMM_AIFSN_SHIFT(_n) ((_n) * 4) 137 #define MT_WMM_CWMIN_SHIFT(_n) ((_n) * 4) 141 #define MT_WMM_CWMAX_SHIFT(_n) ((_n) * 4) 144 #define MT_WMM_TXOP(_n) (MT_WMM_TXOP_BASE + (((_n) / 2) << 2)) 145 #define MT_WMM_TXOP_SHIFT(_n) ((_n & 1) * 16) 197 #define MT_BCN_OFFSET(_n) (MT_BCN_OFFSET_BASE + ((_n) << 2)) 287 #define MT_WCID_DROP(_n) (MT_WCID_DROP_BASE + ((_n) >> 5) * 4) 288 #define MT_WCID_DROP_MASK(_n) BIT((_n) % 32) 293 #define MT_MAC_APC_BSSID_L(_n) (MT_MAC_APC_BSSID_BASE + ((_n) * 8)) 294 #define MT_MAC_APC_BSSID_H(_n) (MT_MAC_APC_BSSID_BASE + ((_n) * 8 + 4)) 346 #define MT_EDCA_CFG_AC(_n) (MT_EDCA_CFG_BASE + ((_n) << 2)) 558 #define MT_BBP(_type, _n) (MT_BBP_##_type##_BASE + ((_n) << 2)) 577 #define MT_WCID_ADDR(_n) (MT_WCID_ADDR_BASE + (_n) * 8) 582 #define MT_WCID_KEY(_n) (MT_WCID_KEY_BASE + (_n) * 32) 585 #define MT_WCID_IV(_n) (MT_WCID_IV_BASE + (_n) * 8) 588 #define MT_WCID_ATTR(_n) (MT_WCID_ATTR_BASE + (_n) * 4)
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | string_32.h | 25 #define memmove(_to, _from, _n) \ 28 __memmove(_t, (_from), (_n)); \
|
/linux-4.4.14/arch/ia64/include/asm/sn/ |
H A D | module.h | 60 #define RACK_CREATE_RACKID(_c, _g, _n) ((_c) * RACK_CLASS_DVDR + \ 61 (_g) * RACK_GROUP_DVDR + (_n) * RACK_NUM_DVDR) 94 #define RACK_ADD_NUM(_r, _n) \ 95 ((_r) |= ((_n) - 1) << RACK_NUM_SHFT(_r) & RACK_NUM_MASK(_r))
|
/linux-4.4.14/include/linux/ |
H A D | kmemcheck.h | 72 int _n; \ 77 _n = (long) &((ptr)->name##_end) \ 79 BUILD_BUG_ON(_n < 0); \ 81 kmemcheck_mark_initialized(&((ptr)->name##_begin), _n); \
|
/linux-4.4.14/drivers/net/wireless/ath/ath9k/ |
H A D | phy.h | 25 #define AR_PHY(_n) (AR_PHY_BASE + ((_n)<<2))
|
H A D | debug.h | 197 #define PR_QNUM(_n) sc->tx.txq_map[_n]->axq_qnum
|
H A D | ath9k.h | 128 /* return whether a bit at index _n in bitmap _bm is set 130 #define ATH_BA_ISSET(_bm, _n) (((_n) < (WME_BA_BMP_SIZE)) && \ 131 ((_bm)[(_n) >> 5] & (1 << ((_n) & 31))))
|
H A D | reg.h | 2002 #define AR_RATE_DURATION(_n) (AR_RATE_DURATION_0 + ((_n)<<2))
|
/linux-4.4.14/lib/842/ |
H A D | 842_compress.c | 132 struct sw842_hlist_node##b *_n; \ 134 hash_for_each_possible(p->htable##b, _n, node, p->data##b[n]) { \ 135 if (p->data##b[n] == _n->data) { \ 136 p->index##b[n] = _n->index; \ 149 struct sw842_hlist_node##b *_n = &(p)->node##b[(i)+(d)]; \ 150 hash_del(&_n->node); \ 151 _n->data = (p)->data##b[d]; \ 153 (unsigned int)_n->index, \ 155 (unsigned long)_n->data); \ 156 hash_add((p)->htable##b, &_n->node, _n->data); \
|
/linux-4.4.14/drivers/regulator/ |
H A D | pcf50633-regulator.c | 27 #define PCF50633_REGULATOR(_name, _id, _min_uV, _uV_step, _min_sel, _n) \ 32 .n_voltages = _n, \
|
H A D | tps65217-regulator.c | 30 #define TPS65217_REGULATOR(_name, _id, _of_match, _ops, _n, _vr, _vm, _em, \ 38 .n_voltages = _n, \
|
H A D | tps65218-regulator.c | 32 #define TPS65218_REGULATOR(_name, _id, _ops, _n, _vr, _vm, _er, _em, \ 38 .n_voltages = _n, \
|
/linux-4.4.14/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_defs_mfg_comm.h | 38 #define STRSZ(_n) (((_n) + 4) & ~3)
|
/linux-4.4.14/drivers/clk/meson/ |
H A D | clkc.h | 50 #define PLL_RATE(_r, _m, _n, _od) \ 54 .n = (_n), \
|
/linux-4.4.14/net/rxrpc/ |
H A D | ar-error.c | 212 struct rxrpc_call *call, *_n; rxrpc_UDP_error_handler() local 219 list_for_each_entry_safe(call, _n, &trans->peer->error_targets, rxrpc_UDP_error_handler()
|
/linux-4.4.14/samples/seccomp/ |
H A D | bpf-direct.c | 30 #define syscall_arg(_n) (offsetof(struct seccomp_data, args[_n]))
|
/linux-4.4.14/drivers/net/wireless/ath/ath5k/ |
H A D | reg.h | 833 #define AR5K_DCU_TX_FILTER_0(_n) (AR5K_DCU_TX_FILTER_0_BASE + (_n * 64)) 839 #define AR5K_DCU_TX_FILTER_1(_n) (AR5K_DCU_TX_FILTER_1_BASE + (_n * 64)) 1758 #define AR5K_MIC_QOS_CTL_OFF(_n) (1 << (_n * 2)) 1765 #define AR5K_MIC_QOS_SEL_OFF(_n) (1 << (_n * 4)) 1812 #define AR5K_RATE_ACKSIFS(_n) (AR5K_RATE_ACKSIFS_BSE + ((_n) << 2)) 1820 #define AR5K_RATE_DUR(_n) (AR5K_RATE_DUR_BASE + ((_n) << 2)) 1827 #define AR5K_RATE2DB(_n) (AR5K_RATE2DB_BASE + ((_n) << 2)) 1834 #define AR5K_DB2RATE(_n) (AR5K_DB2RATE_BASE + ((_n) << 2)) 1847 #define AR5K_PHY(_n) (AR5K_PHY_BASE + ((_n) << 2)) 2027 #define AR5K_PHY_NF_SVAL(_n) (((_n) & AR5K_PHY_NF_M) | (1 << 9)) 2399 #define AR5K_BB_GAIN(_n) (AR5K_BB_GAIN_BASE + ((_n) << 2)) 2401 #define AR5K_RF_GAIN(_n) (AR5K_RF_GAIN_BASE + ((_n) << 2)) 2482 #define AR5K_PHY_PAPD_I(_n) (AR5K_PHY_PAPD_I_BASE + ((_n) << 2)) 2488 #define AR5K_PHY_PCDAC_TXPOWER(_n) (AR5K_PHY_PCDAC_TXPOWER_BASE + ((_n) << 2)) 2579 #define AR5K_PHY_PDADC_TXPOWER(_n) (AR5K_PHY_PDADC_TXPOWER_BASE + ((_n) << 2))
|
H A D | desc.c | 408 #define _XTX_TRIES(_n) \ ath5k_hw_setup_mrr_tx_desc() 409 if (tx_tries##_n) { \ ath5k_hw_setup_mrr_tx_desc() 411 AR5K_REG_SM(tx_tries##_n, \ ath5k_hw_setup_mrr_tx_desc() 412 AR5K_4W_TX_DESC_CTL2_XMIT_TRIES##_n); \ ath5k_hw_setup_mrr_tx_desc() 414 AR5K_REG_SM(tx_rate##_n, \ ath5k_hw_setup_mrr_tx_desc() 415 AR5K_4W_TX_DESC_CTL3_XMIT_RATE##_n); \ ath5k_hw_setup_mrr_tx_desc()
|
H A D | rfbuffer.h | 178 #define AR5K_RF5111_PWD(_n) { 1, (135 - _n), 3 } 296 #define AR5K_RF5112_PWD(_n) { 1, (302 - _n), 3 } 402 #define AR5K_RF5112A_PWD(_n) { 1, (306 - _n), 3 }
|
H A D | eeprom.h | 49 #define AR5K_EEPROM_INFO(_n) (AR5K_EEPROM_INFO_BASE + (_n))
|
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-common.h | 1145 #define XGMAC_MTL_IOREAD(_pdata, _n, _reg) \ 1147 MTL_Q_BASE + ((_n) * MTL_Q_INC) + _reg) 1149 #define XGMAC_MTL_IOREAD_BITS(_pdata, _n, _reg, _field) \ 1150 GET_BITS(XGMAC_MTL_IOREAD((_pdata), (_n), _reg), \ 1154 #define XGMAC_MTL_IOWRITE(_pdata, _n, _reg, _val) \ 1156 MTL_Q_BASE + ((_n) * MTL_Q_INC) + _reg) 1158 #define XGMAC_MTL_IOWRITE_BITS(_pdata, _n, _reg, _field, _val) \ 1160 u32 reg_val = XGMAC_MTL_IOREAD((_pdata), (_n), _reg); \ 1164 XGMAC_MTL_IOWRITE((_pdata), (_n), _reg, reg_val); \
|
/linux-4.4.14/drivers/i2c/busses/ |
H A D | i2c-parport.c | 265 struct i2c_par *adapter, *_n; i2c_parport_detach() local 269 list_for_each_entry_safe(adapter, _n, &adapter_list, node) { i2c_parport_detach()
|
H A D | i2c-s3c2410.c | 926 #define freq_to_i2c(_n) container_of(_n, struct s3c24xx_i2c, freq_transition)
|
/linux-4.4.14/fs/cachefiles/ |
H A D | namei.c | 831 struct rb_node *_n; cachefiles_check_active() local 864 _n = cache->active_nodes.rb_node; cachefiles_check_active() 866 while (_n) { cachefiles_check_active() 867 object = rb_entry(_n, struct cachefiles_object, active_node); cachefiles_check_active() 870 _n = _n->rb_left; cachefiles_check_active() 872 _n = _n->rb_right; cachefiles_check_active()
|
H A D | rdwr.c | 469 struct page *newpage = NULL, *netpage, *_n, *backpage = NULL; cachefiles_read_backing_file() local 474 list_for_each_entry_safe(netpage, _n, list, lru) { list_for_each_entry_safe() 645 list_for_each_entry_safe(netpage, _n, list, lru) { list_for_each_entry_safe() 685 struct page *page, *_n; cachefiles_read_or_alloc_pages() local 723 list_for_each_entry_safe(page, _n, pages, lru) { list_for_each_entry_safe()
|
/linux-4.4.14/include/uapi/scsi/ |
H A D | cxlflash_ioctl.h | 161 #define CXL_IOWR(_n, _s) _IOWR(CXL_MAGIC, _n, struct _s)
|
/linux-4.4.14/arch/mips/ar7/ |
H A D | prom.c | 118 | _e | _r | _s | _i | _o | _n | \0 | _1 | _. | _3 | _. | _7 | _. | _1 | _5 | \0
|
/linux-4.4.14/drivers/md/bcache/ |
H A D | util.h | 467 typeof(n) _n = (n); \ 469 _d ? _n / _d : zero; \
|
/linux-4.4.14/drivers/net/wireless/ath/carl9170/ |
H A D | phy.h | 25 #define AR9170_PHY_REG(_n) (AR9170_PHY_REG_BASE + \ 26 ((_n) << 2))
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_type.h | 481 #define IXGBE_FHFT(_n) (0x09000 + ((_n) * 0x100)) /* Flex host filter table */ 482 #define IXGBE_FHFT_EXT(_n) (0x09800 + ((_n) * 0x100)) /* Ext Flexible Host 589 #define IXGBE_LSECTXKEY0(_n) (0x08A1C + (4 * (_n))) /* 4 of these (0-3) */ 590 #define IXGBE_LSECTXKEY1(_n) (0x08A2C + (4 * (_n))) /* 4 of these (0-3) */ 596 #define IXGBE_LSECRXKEY(_n, _m) (0x08F20 + ((0x10 * (_n)) + (4 * (_m)))) 611 #define IXGBE_LSECRXOK(_n) (0x08F64 + (0x04 * (_n))) /* InPktsOk */ 612 #define IXGBE_LSECRXINV(_n) (0x08F6C + (0x04 * (_n))) /* InPktsInvalid */ 613 #define IXGBE_LSECRXNV(_n) (0x08F74 + (0x04 * (_n))) /* InPktsNotValid */
|
H A D | ixgbe_82599.c | 1291 #define IXGBE_COMPUTE_SIG_HASH_ITERATION(_n) \ 1293 u32 n = (_n); \ 1435 #define IXGBE_COMPUTE_BKT_HASH_ITERATION(_n) \ 1437 u32 n = (_n); \
|
/linux-4.4.14/drivers/usb/wusbcore/ |
H A D | crypto.c | 298 const u8 key[16], const struct aes_ccm_nonce *_n, wusb_prf() 303 struct aes_ccm_nonce n = *_n; wusb_prf() 297 wusb_prf(void *out, size_t out_size, const u8 key[16], const struct aes_ccm_nonce *_n, const struct aes_ccm_label *a, const void *b, size_t blen, size_t len) wusb_prf() argument
|
/linux-4.4.14/drivers/tty/serial/ |
H A D | ioc4_serial.c | 34 #define GET_SIO_IR(_n) (_n == 0) ? (IOC4_SIO_IR_S0) : \ 35 (_n == 1) ? (IOC4_SIO_IR_S1) : \ 36 (_n == 2) ? (IOC4_SIO_IR_S2) : \ 39 #define GET_OTHER_IR(_n) (_n == 0) ? (IOC4_OTHER_IR_S0_MEMERR) : \ 40 (_n == 1) ? (IOC4_OTHER_IR_S1_MEMERR) : \ 41 (_n == 2) ? (IOC4_OTHER_IR_S2_MEMERR) : \
|
/linux-4.4.14/drivers/net/ethernet/neterion/ |
H A D | s2io-regs.h | 750 #define RMAC_ADDR_UCASTn_EN(n) mBIT(0)_n(n) 751 #define RMAC_ADDR_MCASTn_EN(n) mBIT(0)_n(n)
|
/linux-4.4.14/include/math-emu/ |
H A D | op-4.h | 358 _FP_FRAC_DECL_4(_n); _FP_FRAC_DECL_4(_m); \ 359 _FP_FRAC_SET_4(_n, _FP_ZEROFRAC_4); \
|
/linux-4.4.14/drivers/input/misc/ |
H A D | ims-pcu.c | 173 #define IMS_PCU_DEVINFO(_n, _gamepad) \ 174 [_n] = { \ 175 .keymap = ims_pcu_keymap_##_n, \ 176 .keymap_len = ARRAY_SIZE(ims_pcu_keymap_##_n), \
|
/linux-4.4.14/include/linux/usb/ |
H A D | wusb.h | 313 const u8 key[16], const struct aes_ccm_nonce *_n,
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
H A D | perf_event_intel_pt.c | 56 #define PT_CAP(_n, _l, _r, _m) \ 57 [PT_CAP_ ## _n] = { .name = __stringify(_n), .leaf = _l, \
|
/linux-4.4.14/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 91 #define syscall_arg(_n) (offsetof(struct seccomp_data, args[_n])) 93 #define syscall_arg(_n) (offsetof(struct seccomp_data, args[_n]) + sizeof(__u32))
|
/linux-4.4.14/drivers/scsi/bfa/ |
H A D | bfa_defs.h | 25 #define STRSZ(_n) (((_n) + 4) & ~3)
|
/linux-4.4.14/arch/alpha/kernel/ |
H A D | err_marvel.c | 141 static char *clk_names[] = { "_h[0]", "_h[1]", "_n[0]", "_n[1]" }; marvel_print_po7_uncrr_sym()
|
/linux-4.4.14/fs/ocfs2/dlm/ |
H A D | dlmcommon.h | 50 #define dlm_lockid_hash(_n, _l) full_name_hash(_n, _l)
|
/linux-4.4.14/drivers/clk/qcom/ |
H A D | gcc-ipq806x.c | 143 #define NSS_PLL_RATE(f, _l, _m, _n, i) \ 148 .n = _n, \
|
H A D | mmcc-msm8960.c | 50 #define F_MN(f, s, _m, _n) { .freq = f, .src = s, .m = _m, .n = _n }
|
/linux-4.4.14/tools/perf/util/ |
H A D | evsel.c | 1221 #define PRINT_ATTRn(_n, _f, _p) \ 1225 ret += attr__fprintf(fp, _n, buf, priv);\
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_hw.h | 1096 #define E1000_82542_SRRCTL(_n) (0x280C + ((_n) << 8)) /* Split and Replication 1098 #define E1000_82542_DCA_RXCTRL(_n) (0x02814 + ((_n) << 8))
|
/linux-4.4.14/drivers/i2c/ |
H A D | i2c-core.c | 1726 struct i2c_client *client, *_n; i2c_do_del_adapter() local 1730 list_for_each_entry_safe(client, _n, &driver->clients, detected) { i2c_do_del_adapter()
|
/linux-4.4.14/fs/ocfs2/ |
H A D | xattr.c | 327 #define bucket_block(_b, _n) ((_b)->bu_bhs[(_n)]->b_data)
|