rn 43 arch/arm/mach-tegra/sleep.h .macro wait_until, rn, base, tmp rn 502 arch/arm/mm/alignment.c unsigned int rd, rn, correction, nr_regs, regbits; rn 516 arch/arm/mm/alignment.c rn = RN_BITS(instr); rn 517 arch/arm/mm/alignment.c newaddr = eaddr = regs->uregs[rn]; rn 577 arch/arm/mm/alignment.c regs->uregs[rn] = newaddr; rn 299 arch/arm/net/bpf_jit_32.c static u32 arm_bpf_ldst_imm12(u32 op, u8 rt, u8 rn, s16 imm12) rn 301 arch/arm/net/bpf_jit_32.c op |= rt << 12 | rn << 16; rn 309 arch/arm/net/bpf_jit_32.c static u32 arm_bpf_ldst_imm8(u32 op, u8 rt, u8 rn, s16 imm8) rn 311 arch/arm/net/bpf_jit_32.c op |= rt << 12 | rn << 16; rn 319 arch/arm/net/bpf_jit_32.c #define ARM_LDR_I(rt, rn, off) arm_bpf_ldst_imm12(ARM_INST_LDR_I, rt, rn, off) rn 320 arch/arm/net/bpf_jit_32.c #define ARM_LDRB_I(rt, rn, off) arm_bpf_ldst_imm12(ARM_INST_LDRB_I, rt, rn, off) rn 321 arch/arm/net/bpf_jit_32.c #define ARM_LDRD_I(rt, rn, off) arm_bpf_ldst_imm8(ARM_INST_LDRD_I, rt, rn, off) rn 322 arch/arm/net/bpf_jit_32.c #define ARM_LDRH_I(rt, rn, off) arm_bpf_ldst_imm8(ARM_INST_LDRH_I, rt, rn, off) rn 324 arch/arm/net/bpf_jit_32.c #define ARM_STR_I(rt, rn, off) arm_bpf_ldst_imm12(ARM_INST_STR_I, rt, rn, off) rn 325 arch/arm/net/bpf_jit_32.c #define ARM_STRB_I(rt, rn, off) arm_bpf_ldst_imm12(ARM_INST_STRB_I, rt, rn, off) rn 326 arch/arm/net/bpf_jit_32.c #define ARM_STRD_I(rt, rn, off) arm_bpf_ldst_imm8(ARM_INST_STRD_I, rt, rn, off) rn 327 arch/arm/net/bpf_jit_32.c #define ARM_STRH_I(rt, rn, off) arm_bpf_ldst_imm8(ARM_INST_STRH_I, rt, rn, off) rn 465 arch/arm/net/bpf_jit_32.c static inline void emit_udivmod(u8 rd, u8 rm, u8 rn, struct jit_ctx *ctx, u8 op) rn 472 arch/arm/net/bpf_jit_32.c emit(ARM_UDIV(rd, rm, rn), ctx); rn 474 arch/arm/net/bpf_jit_32.c emit(ARM_UDIV(ARM_IP, rm, rn), ctx); rn 475 arch/arm/net/bpf_jit_32.c emit(ARM_MLS(rd, rn, ARM_IP, rm), ctx); rn 489 arch/arm/net/bpf_jit_32.c if (rn != ARM_R1) { rn 491 arch/arm/net/bpf_jit_32.c emit(ARM_MOV_R(ARM_R1, rn), ctx); rn 508 arch/arm/net/bpf_jit_32.c if (rn != ARM_R1) rn 703 arch/arm/net/bpf_jit_32.c s8 rn, rd; rn 705 arch/arm/net/bpf_jit_32.c rn = arm_bpf_get_reg32(src, tmp[1], ctx); rn 708 arch/arm/net/bpf_jit_32.c emit_alu_r(rd, rn, is64, hi, op, ctx); rn 1104 arch/arm/net/bpf_jit_32.c const u8 rn, struct jit_ctx *ctx, u8 op, rn 1109 arch/arm/net/bpf_jit_32.c emit(ARM_AND_R(ARM_IP, rt, rn), ctx); rn 1113 arch/arm/net/bpf_jit_32.c emit(ARM_ANDS_R(ARM_IP, rt, rn), ctx); rn 1125 arch/arm/net/bpf_jit_32.c _emit(ARM_COND_EQ, ARM_CMP_R(rt, rn), ctx); rn 1127 arch/arm/net/bpf_jit_32.c emit(ARM_CMP_R(rt, rn), ctx); rn 1132 arch/arm/net/bpf_jit_32.c emit(ARM_CMP_R(rn, rt), ctx); rn 1138 arch/arm/net/bpf_jit_32.c emit(ARM_CMP_R(rt, rn), ctx); rn 1227 arch/arm/net/bpf_jit_32.c static inline void emit_rev16(const u8 rd, const u8 rn, struct jit_ctx *ctx) rn 1232 arch/arm/net/bpf_jit_32.c emit(ARM_AND_I(tmp2[1], rn, 0xff), ctx); rn 1233 arch/arm/net/bpf_jit_32.c emit(ARM_MOV_SI(tmp2[0], rn, SRTYPE_LSR, 8), ctx); rn 1237 arch/arm/net/bpf_jit_32.c emit(ARM_REV16(rd, rn), ctx); rn 1242 arch/arm/net/bpf_jit_32.c static inline void emit_rev32(const u8 rd, const u8 rn, struct jit_ctx *ctx) rn 1247 arch/arm/net/bpf_jit_32.c emit(ARM_AND_I(tmp2[1], rn, 0xff), ctx); rn 1248 arch/arm/net/bpf_jit_32.c emit(ARM_MOV_SI(tmp2[0], rn, SRTYPE_LSR, 24), ctx); rn 1251 arch/arm/net/bpf_jit_32.c emit(ARM_MOV_SI(tmp2[1], rn, SRTYPE_LSR, 8), ctx); rn 1253 arch/arm/net/bpf_jit_32.c emit(ARM_MOV_SI(tmp2[0], rn, SRTYPE_LSR, 16), ctx); rn 1260 arch/arm/net/bpf_jit_32.c emit(ARM_REV(rd, rn), ctx); rn 1357 arch/arm/net/bpf_jit_32.c s8 rd_lo, rt, rm, rn; rn 1602 arch/arm/net/bpf_jit_32.c rn = arm_bpf_get_reg32(src_lo, tmp2[1], ctx); rn 1603 arch/arm/net/bpf_jit_32.c emit_ldx_r(dst, rn, off, ctx, BPF_SIZE(code)); rn 1671 arch/arm/net/bpf_jit_32.c rn = arm_bpf_get_reg32(src_lo, tmp2[1], ctx); rn 1709 arch/arm/net/bpf_jit_32.c rn = tmp2[1]; rn 1717 arch/arm/net/bpf_jit_32.c emit_ar_r(rd[0], rd[1], rm, rn, ctx, BPF_OP(code), rn 159 arch/arm/net/bpf_jit_32.h #define _AL3_R(op, rd, rn, rm) ((op ## _R) | (rd) << 12 | (rn) << 16 | (rm)) rn 161 arch/arm/net/bpf_jit_32.h #define _AL3_I(op, rd, rn, imm) ((op ## _I) | (rd) << 12 | (rn) << 16 | (imm)) rn 165 arch/arm/net/bpf_jit_32.h #define ARM_ADD_R(rd, rn, rm) _AL3_R(ARM_INST_ADD, rd, rn, rm) rn 166 arch/arm/net/bpf_jit_32.h #define ARM_ADDS_R(rd, rn, rm) _AL3_R(ARM_INST_ADDS, rd, rn, rm) rn 167 arch/arm/net/bpf_jit_32.h #define ARM_ADD_I(rd, rn, imm) _AL3_I(ARM_INST_ADD, rd, rn, imm) rn 168 arch/arm/net/bpf_jit_32.h #define ARM_ADDS_I(rd, rn, imm) _AL3_I(ARM_INST_ADDS, rd, rn, imm) rn 169 arch/arm/net/bpf_jit_32.h #define ARM_ADC_R(rd, rn, rm) _AL3_R(ARM_INST_ADC, rd, rn, rm) rn 170 arch/arm/net/bpf_jit_32.h #define ARM_ADC_I(rd, rn, imm) _AL3_I(ARM_INST_ADC, rd, rn, imm) rn 172 arch/arm/net/bpf_jit_32.h #define ARM_AND_R(rd, rn, rm) _AL3_R(ARM_INST_AND, rd, rn, rm) rn 173 arch/arm/net/bpf_jit_32.h #define ARM_ANDS_R(rd, rn, rm) _AL3_R(ARM_INST_ANDS, rd, rn, rm) rn 174 arch/arm/net/bpf_jit_32.h #define ARM_AND_I(rd, rn, imm) _AL3_I(ARM_INST_AND, rd, rn, imm) rn 176 arch/arm/net/bpf_jit_32.h #define ARM_BIC_R(rd, rn, rm) _AL3_R(ARM_INST_BIC, rd, rn, rm) rn 177 arch/arm/net/bpf_jit_32.h #define ARM_BIC_I(rd, rn, imm) _AL3_I(ARM_INST_BIC, rd, rn, imm) rn 183 arch/arm/net/bpf_jit_32.h #define ARM_CMP_R(rn, rm) _AL3_R(ARM_INST_CMP, 0, rn, rm) rn 184 arch/arm/net/bpf_jit_32.h #define ARM_CMP_I(rn, imm) _AL3_I(ARM_INST_CMP, 0, rn, imm) rn 186 arch/arm/net/bpf_jit_32.h #define ARM_EOR_R(rd, rn, rm) _AL3_R(ARM_INST_EOR, rd, rn, rm) rn 187 arch/arm/net/bpf_jit_32.h #define ARM_EOR_I(rd, rn, imm) _AL3_I(ARM_INST_EOR, rd, rn, imm) rn 189 arch/arm/net/bpf_jit_32.h #define ARM_LDR_R(rt, rn, rm) (ARM_INST_LDR_R | ARM_INST_LDST__U \ rn 190 arch/arm/net/bpf_jit_32.h | (rt) << 12 | (rn) << 16 \ rn 192 arch/arm/net/bpf_jit_32.h #define ARM_LDR_R_SI(rt, rn, rm, type, imm) \ rn 194 arch/arm/net/bpf_jit_32.h | (rt) << 12 | (rn) << 16 \ rn 196 arch/arm/net/bpf_jit_32.h #define ARM_LDRB_R(rt, rn, rm) (ARM_INST_LDRB_R | ARM_INST_LDST__U \ rn 197 arch/arm/net/bpf_jit_32.h | (rt) << 12 | (rn) << 16 \ rn 199 arch/arm/net/bpf_jit_32.h #define ARM_LDRH_R(rt, rn, rm) (ARM_INST_LDRH_R | ARM_INST_LDST__U \ rn 200 arch/arm/net/bpf_jit_32.h | (rt) << 12 | (rn) << 16 \ rn 203 arch/arm/net/bpf_jit_32.h #define ARM_LDM(rn, regs) (ARM_INST_LDM | (rn) << 16 | (regs)) rn 204 arch/arm/net/bpf_jit_32.h #define ARM_LDM_IA(rn, regs) (ARM_INST_LDM_IA | (rn) << 16 | (regs)) rn 206 arch/arm/net/bpf_jit_32.h #define ARM_LSL_R(rd, rn, rm) (_AL3_R(ARM_INST_LSL, rd, 0, rn) | (rm) << 8) rn 207 arch/arm/net/bpf_jit_32.h #define ARM_LSL_I(rd, rn, imm) (_AL3_I(ARM_INST_LSL, rd, 0, rn) | (imm) << 7) rn 209 arch/arm/net/bpf_jit_32.h #define ARM_LSR_R(rd, rn, rm) (_AL3_R(ARM_INST_LSR, rd, 0, rn) | (rm) << 8) rn 210 arch/arm/net/bpf_jit_32.h #define ARM_LSR_I(rd, rn, imm) (_AL3_I(ARM_INST_LSR, rd, 0, rn) | (imm) << 7) rn 211 arch/arm/net/bpf_jit_32.h #define ARM_ASR_R(rd, rn, rm) (_AL3_R(ARM_INST_ASR, rd, 0, rn) | (rm) << 8) rn 212 arch/arm/net/bpf_jit_32.h #define ARM_ASR_I(rd, rn, imm) (_AL3_I(ARM_INST_ASR, rd, 0, rn) | (imm) << 7) rn 228 arch/arm/net/bpf_jit_32.h #define ARM_MUL(rd, rm, rn) (ARM_INST_MUL | (rd) << 16 | (rm) << 8 | (rn)) rn 233 arch/arm/net/bpf_jit_32.h #define ARM_ORR_R(rd, rn, rm) _AL3_R(ARM_INST_ORR, rd, rn, rm) rn 234 arch/arm/net/bpf_jit_32.h #define ARM_ORR_I(rd, rn, imm) _AL3_I(ARM_INST_ORR, rd, rn, imm) rn 235 arch/arm/net/bpf_jit_32.h #define ARM_ORR_SR(rd, rn, rm, type, rs) \ rn 236 arch/arm/net/bpf_jit_32.h (_AL3_SR(ARM_ORR_R(rd, rn, rm)) | (type) << 5 | (rs) << 8) rn 237 arch/arm/net/bpf_jit_32.h #define ARM_ORRS_R(rd, rn, rm) _AL3_R(ARM_INST_ORRS, rd, rn, rm) rn 238 arch/arm/net/bpf_jit_32.h #define ARM_ORRS_SR(rd, rn, rm, type, rs) \ rn 239 arch/arm/net/bpf_jit_32.h (_AL3_SR(ARM_ORRS_R(rd, rn, rm)) | (type) << 5 | (rs) << 8) rn 240 arch/arm/net/bpf_jit_32.h #define ARM_ORR_SI(rd, rn, rm, type, imm6) \ rn 241 arch/arm/net/bpf_jit_32.h (ARM_ORR_R(rd, rn, rm) | (type) << 5 | (imm6) << 7) rn 242 arch/arm/net/bpf_jit_32.h #define ARM_ORRS_SI(rd, rn, rm, type, imm6) \ rn 243 arch/arm/net/bpf_jit_32.h (ARM_ORRS_R(rd, rn, rm) | (type) << 5 | (imm6) << 7) rn 248 arch/arm/net/bpf_jit_32.h #define ARM_RSB_I(rd, rn, imm) _AL3_I(ARM_INST_RSB, rd, rn, imm) rn 249 arch/arm/net/bpf_jit_32.h #define ARM_RSBS_I(rd, rn, imm) _AL3_I(ARM_INST_RSBS, rd, rn, imm) rn 250 arch/arm/net/bpf_jit_32.h #define ARM_RSC_I(rd, rn, imm) _AL3_I(ARM_INST_RSC, rd, rn, imm) rn 252 arch/arm/net/bpf_jit_32.h #define ARM_SUB_R(rd, rn, rm) _AL3_R(ARM_INST_SUB, rd, rn, rm) rn 253 arch/arm/net/bpf_jit_32.h #define ARM_SUBS_R(rd, rn, rm) _AL3_R(ARM_INST_SUBS, rd, rn, rm) rn 254 arch/arm/net/bpf_jit_32.h #define ARM_RSB_R(rd, rn, rm) _AL3_R(ARM_INST_RSB, rd, rn, rm) rn 255 arch/arm/net/bpf_jit_32.h #define ARM_SBC_R(rd, rn, rm) _AL3_R(ARM_INST_SBC, rd, rn, rm) rn 256 arch/arm/net/bpf_jit_32.h #define ARM_SBCS_R(rd, rn, rm) _AL3_R(ARM_INST_SBCS, rd, rn, rm) rn 257 arch/arm/net/bpf_jit_32.h #define ARM_SUB_I(rd, rn, imm) _AL3_I(ARM_INST_SUB, rd, rn, imm) rn 258 arch/arm/net/bpf_jit_32.h #define ARM_SUBS_I(rd, rn, imm) _AL3_I(ARM_INST_SUBS, rd, rn, imm) rn 259 arch/arm/net/bpf_jit_32.h #define ARM_SBC_I(rd, rn, imm) _AL3_I(ARM_INST_SBC, rd, rn, imm) rn 261 arch/arm/net/bpf_jit_32.h #define ARM_TST_R(rn, rm) _AL3_R(ARM_INST_TST, 0, rn, rm) rn 262 arch/arm/net/bpf_jit_32.h #define ARM_TST_I(rn, imm) _AL3_I(ARM_INST_TST, 0, rn, imm) rn 264 arch/arm/net/bpf_jit_32.h #define ARM_UDIV(rd, rn, rm) (ARM_INST_UDIV | (rd) << 16 | (rn) | (rm) << 8) rn 266 arch/arm/net/bpf_jit_32.h #define ARM_UMULL(rd_lo, rd_hi, rn, rm) (ARM_INST_UMULL | (rd_hi) << 16 \ rn 267 arch/arm/net/bpf_jit_32.h | (rd_lo) << 12 | (rm) << 8 | rn) rn 269 arch/arm/net/bpf_jit_32.h #define ARM_MLS(rd, rn, rm, ra) (ARM_INST_MLS | (rd) << 16 | (rn) | (rm) << 8 \ rn 74 arch/arm/probes/kprobes/actions-arm.c int rn = (insn >> 16) & 0xf; rn 79 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r2") = (rn == 15) ? pc rn 80 arch/arm/probes/kprobes/actions-arm.c : regs->uregs[rn]; rn 94 arch/arm/probes/kprobes/actions-arm.c regs->uregs[rn] = rnv; rn 103 arch/arm/probes/kprobes/actions-arm.c int rn = (insn >> 16) & 0xf; rn 107 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r2") = (rn == 15) ? pc rn 108 arch/arm/probes/kprobes/actions-arm.c : regs->uregs[rn]; rn 124 arch/arm/probes/kprobes/actions-arm.c regs->uregs[rn] = rnv; rn 134 arch/arm/probes/kprobes/actions-arm.c int rn = (insn >> 16) & 0xf; rn 139 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r2") = (rn == 15) ? rnpc rn 140 arch/arm/probes/kprobes/actions-arm.c : regs->uregs[rn]; rn 151 arch/arm/probes/kprobes/actions-arm.c regs->uregs[rn] = rnv; rn 160 arch/arm/probes/kprobes/actions-arm.c int rn = (insn >> 16) & 0xf; rn 165 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r2") = (rn == 15) ? pc rn 166 arch/arm/probes/kprobes/actions-arm.c : regs->uregs[rn]; rn 194 arch/arm/probes/kprobes/actions-arm.c int rn = (insn >> 16) & 0xf; rn 198 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r2") = regs->uregs[rn]; rn 222 arch/arm/probes/kprobes/actions-arm.c int rn = (insn >> 12) & 0xf; rn 227 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r0") = regs->uregs[rn]; rn 273 arch/arm/probes/kprobes/actions-arm.c int rn = insn & 0xf; rn 278 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r3") = regs->uregs[rn]; rn 22 arch/arm/probes/kprobes/actions-common.c int rn = (insn >> 16) & 0xf; rn 27 arch/arm/probes/kprobes/actions-common.c long *addr = (long *)regs->uregs[rn]; rn 56 arch/arm/probes/kprobes/actions-common.c regs->uregs[rn] = (long)addr; rn 131 arch/arm/probes/kprobes/actions-common.c int rn = (insn >> 16) & 0xf; rn 133 arch/arm/probes/kprobes/actions-common.c if (rn <= 12 && (reglist & 0xe000) == 0) { rn 137 arch/arm/probes/kprobes/actions-common.c } else if (rn >= 2 && (reglist & 0x8003) == 0) { rn 139 arch/arm/probes/kprobes/actions-common.c rn -= 2; rn 143 arch/arm/probes/kprobes/actions-common.c } else if (rn >= 3 && (reglist & 0x0007) == 0) { rn 146 arch/arm/probes/kprobes/actions-common.c rn -= 3; rn 155 arch/arm/probes/kprobes/actions-common.c (rn << 16) | reglist); rn 28 arch/arm/probes/kprobes/actions-thumb.c int rn = (insn >> 16) & 0xf; rn 31 arch/arm/probes/kprobes/actions-thumb.c unsigned long rnv = (rn == 15) ? pc : regs->uregs[rn]; rn 164 arch/arm/probes/kprobes/actions-thumb.c int rn = (insn >> 16) & 0xf; rn 168 arch/arm/probes/kprobes/actions-thumb.c register unsigned long rnv asm("r2") = (rn == 15) ? pc rn 169 arch/arm/probes/kprobes/actions-thumb.c : regs->uregs[rn]; rn 178 arch/arm/probes/kprobes/actions-thumb.c if (rn != 15) rn 179 arch/arm/probes/kprobes/actions-thumb.c regs->uregs[rn] = rnv; /* Writeback base register */ rn 189 arch/arm/probes/kprobes/actions-thumb.c int rn = (insn >> 16) & 0xf; rn 193 arch/arm/probes/kprobes/actions-thumb.c register unsigned long rnv asm("r2") = regs->uregs[rn]; rn 203 arch/arm/probes/kprobes/actions-thumb.c regs->uregs[rn] = rnv; /* Writeback base register */ rn 215 arch/arm/probes/kprobes/actions-thumb.c int rn = (insn >> 16) & 0xf; rn 219 arch/arm/probes/kprobes/actions-thumb.c register unsigned long rnv asm("r2") = regs->uregs[rn]; rn 262 arch/arm/probes/kprobes/actions-thumb.c int rn = (insn >> 16) & 0xf; rn 265 arch/arm/probes/kprobes/actions-thumb.c register unsigned long rnv asm("r2") = regs->uregs[rn]; rn 284 arch/arm/probes/kprobes/actions-thumb.c int rn = (insn >> 16) & 0xf; rn 289 arch/arm/probes/kprobes/actions-thumb.c register unsigned long rnv asm("r2") = regs->uregs[rn]; rn 368 arch/arm/probes/kprobes/actions-thumb.c int rn = insn & 0x7; rn 369 arch/arm/probes/kprobes/actions-thumb.c probes_opcode_t nonzero = regs->uregs[rn] ? insn : ~insn; rn 122 arch/arm/probes/kprobes/checkers-arm.c unsigned int rn = (insn >> 16) & 0xf; rn 123 arch/arm/probes/kprobes/checkers-arm.c asi->register_usage_flags = reglist | (1 << rn); rn 166 arch/arm/probes/uprobes/actions-arm.c int rn = (insn >> 16) & 0xf; rn 168 arch/arm/probes/uprobes/actions-arm.c unsigned used = reglist | (1 << rn); rn 170 arch/arm/probes/uprobes/actions-arm.c if (rn == 15) rn 268 arch/arm64/include/asm/assembler.h .macro vma_vm_mm, rd, rn rn 275 arch/arm64/include/asm/assembler.h .macro mmid, rd, rn rn 375 arch/arm64/kernel/armv8_deprecated.c int rn, rt2, res = 0; rn 394 arch/arm64/kernel/armv8_deprecated.c rn = aarch32_insn_extract_reg_num(instr, A32_RN_OFFSET); rn 397 arch/arm64/kernel/armv8_deprecated.c address = (u32)regs->user_regs.regs[rn]; rn 402 arch/arm64/kernel/armv8_deprecated.c rn, address, destreg, rn 64 arch/arm64/kvm/va_layout.c static u32 compute_instruction(int n, u32 rd, u32 rn) rn 72 arch/arm64/kvm/va_layout.c rn, rd, va_mask); rn 78 arch/arm64/kvm/va_layout.c rn, rn, rd, rn 83 arch/arm64/kvm/va_layout.c insn = aarch64_insn_gen_add_sub_imm(rd, rn, rn 90 arch/arm64/kvm/va_layout.c insn = aarch64_insn_gen_add_sub_imm(rd, rn, rn 99 arch/arm64/kvm/va_layout.c rn, rn, rd, 64 - tag_lsb); rn 117 arch/arm64/kvm/va_layout.c u32 rd, rn, insn, oinsn; rn 134 arch/arm64/kvm/va_layout.c rn = aarch64_insn_decode_register(AARCH64_INSN_REGTYPE_RN, oinsn); rn 136 arch/arm64/kvm/va_layout.c insn = compute_instruction(i, rd, rn); rn 5 arch/powerpc/boot/dcr.h #define mfdcr(rn) \ rn 8 arch/powerpc/boot/dcr.h asm volatile("mfdcr %0,%1" : "=r"(rval) : "i"(rn)); \ rn 11 arch/powerpc/boot/dcr.h #define mtdcr(rn, val) \ rn 12 arch/powerpc/boot/dcr.h asm volatile("mtdcr %0,%1" : : "i"(rn), "r"(val)) rn 13 arch/powerpc/boot/dcr.h #define mfdcrx(rn) \ rn 16 arch/powerpc/boot/dcr.h asm volatile("mfdcrx %0,%1" : "=r"(rval) : "r"(rn)); \ rn 19 arch/powerpc/boot/dcr.h #define mtdcrx(rn, val) \ rn 21 arch/powerpc/boot/dcr.h asm volatile("mtdcrx %0,%1" : : "r"(rn), "r" (val)); \ rn 18 arch/powerpc/boot/reg.h #define mfspr(rn) ({unsigned long rval; \ rn 19 arch/powerpc/boot/reg.h asm volatile("mfspr %0," __stringify(rn) \ rn 21 arch/powerpc/boot/reg.h #define mtspr(rn, v) asm volatile("mtspr " __stringify(rn) ",%0" : : "r" (v)) rn 53 arch/powerpc/include/asm/dcr-native.h #define mfdcr(rn) \ rn 55 arch/powerpc/include/asm/dcr-native.h if (__builtin_constant_p(rn) && rn < 1024) \ rn 56 arch/powerpc/include/asm/dcr-native.h asm volatile("mfdcr %0," __stringify(rn) \ rn 59 arch/powerpc/include/asm/dcr-native.h rval = mfdcrx(rn); \ rn 61 arch/powerpc/include/asm/dcr-native.h rval = __mfdcr(rn); \ rn 64 arch/powerpc/include/asm/dcr-native.h #define mtdcr(rn, v) \ rn 66 arch/powerpc/include/asm/dcr-native.h if (__builtin_constant_p(rn) && rn < 1024) \ rn 67 arch/powerpc/include/asm/dcr-native.h asm volatile("mtdcr " __stringify(rn) ",%0" \ rn 70 arch/powerpc/include/asm/dcr-native.h mtdcrx(rn, v); \ rn 72 arch/powerpc/include/asm/dcr-native.h __mtdcr(rn, v); \ rn 1362 arch/powerpc/include/asm/reg.h #define mfspr(rn) ({unsigned long rval; \ rn 1363 arch/powerpc/include/asm/reg.h asm volatile("mfspr %0," __stringify(rn) \ rn 1366 arch/powerpc/include/asm/reg.h #define mtspr(rn, v) asm volatile("mtspr " __stringify(rn) ",%0" : \ rn 1370 arch/powerpc/include/asm/reg.h #define wrtspr(rn) asm volatile("mtspr " __stringify(rn) ",0" : \ rn 756 arch/powerpc/include/asm/reg_booke.h #define mftmr(rn) ({unsigned long rval; \ rn 757 arch/powerpc/include/asm/reg_booke.h asm volatile(MFTMR(rn, %0) : "=r" (rval)); rval;}) rn 758 arch/powerpc/include/asm/reg_booke.h #define mttmr(rn, v) asm volatile(MTTMR(rn, %0) : \ rn 14 arch/powerpc/include/asm/reg_fsl_emb.h #define mfpmr(rn) ({unsigned int rval; \ rn 15 arch/powerpc/include/asm/reg_fsl_emb.h asm volatile("mfpmr %0," __stringify(rn) \ rn 17 arch/powerpc/include/asm/reg_fsl_emb.h #define mtpmr(rn, v) asm volatile("mtpmr " __stringify(rn) ",%0" : : "r" (v)) rn 37 arch/powerpc/lib/sstep.c extern void get_fpr(int rn, double *p); rn 38 arch/powerpc/lib/sstep.c extern void put_fpr(int rn, const double *p); rn 39 arch/powerpc/lib/sstep.c extern void get_vr(int rn, __vector128 *p); rn 40 arch/powerpc/lib/sstep.c extern void put_vr(int rn, __vector128 *p); rn 461 arch/powerpc/lib/sstep.c int err, rn, nb; rn 474 arch/powerpc/lib/sstep.c rn = op->reg; rn 493 arch/powerpc/lib/sstep.c put_fpr(rn, &u.d[0]); rn 495 arch/powerpc/lib/sstep.c current->thread.TS_FPR(rn) = u.l[0]; rn 498 arch/powerpc/lib/sstep.c rn |= 1; rn 500 arch/powerpc/lib/sstep.c put_fpr(rn, &u.d[1]); rn 502 arch/powerpc/lib/sstep.c current->thread.TS_FPR(rn) = u.l[1]; rn 512 arch/powerpc/lib/sstep.c int rn, nb; rn 524 arch/powerpc/lib/sstep.c rn = op->reg; rn 527 arch/powerpc/lib/sstep.c get_fpr(rn, &u.d[0]); rn 529 arch/powerpc/lib/sstep.c u.l[0] = current->thread.TS_FPR(rn); rn 537 arch/powerpc/lib/sstep.c rn |= 1; rn 539 arch/powerpc/lib/sstep.c get_fpr(rn, &u.d[1]); rn 541 arch/powerpc/lib/sstep.c u.l[1] = current->thread.TS_FPR(rn); rn 556 arch/powerpc/lib/sstep.c static nokprobe_inline int do_vec_load(int rn, unsigned long ea, rn 577 arch/powerpc/lib/sstep.c put_vr(rn, &u.v); rn 579 arch/powerpc/lib/sstep.c current->thread.vr_state.vr[rn] = u.v; rn 584 arch/powerpc/lib/sstep.c static nokprobe_inline int do_vec_store(int rn, unsigned long ea, rn 600 arch/powerpc/lib/sstep.c get_vr(rn, &u.v); rn 602 arch/powerpc/lib/sstep.c u.v = current->thread.vr_state.vr[rn]; rn 301 arch/sh/kernel/disassemble.c int rn = 0; rn 361 arch/sh/kernel/disassemble.c rn = nibs[n]; rn 367 arch/sh/kernel/disassemble.c rn = (nibs[n] & 0xc) >> 2; rn 393 arch/sh/kernel/disassemble.c printk("r%d", rn); rn 396 arch/sh/kernel/disassemble.c printk("@r%d+", rn); rn 399 arch/sh/kernel/disassemble.c printk("@-r%d", rn); rn 402 arch/sh/kernel/disassemble.c printk("@r%d", rn); rn 405 arch/sh/kernel/disassemble.c printk("@(%d,r%d)", imm, rn); rn 432 arch/sh/kernel/disassemble.c printk("@(r0,r%d)", rn); rn 479 arch/sh/kernel/disassemble.c printk("fr%d", rn); rn 485 arch/sh/kernel/disassemble.c if (rn & 1) { rn 486 arch/sh/kernel/disassemble.c printk("xd%d", rn & ~1); rn 491 arch/sh/kernel/disassemble.c printk("dr%d", rn); rn 514 arch/sh/kernel/disassemble.c printk("fv%d", rn*4); rn 89 arch/sh/kernel/traps_32.c unsigned long *rm, *rn; rn 94 arch/sh/kernel/traps_32.c rn = ®s->regs[index]; rn 115 arch/sh/kernel/traps_32.c dst = (unsigned char *)rn; rn 131 arch/sh/kernel/traps_32.c dstu = (unsigned char __user *)*rn; rn 142 arch/sh/kernel/traps_32.c dstu = (unsigned char __user *)*rn; rn 152 arch/sh/kernel/traps_32.c *rn -= count; rn 154 arch/sh/kernel/traps_32.c dstu = (unsigned char __user *)*rn; rn 166 arch/sh/kernel/traps_32.c dst = (unsigned char *)rn; rn 178 arch/sh/kernel/traps_32.c dst = (unsigned char*) rn; rn 226 arch/sh/kernel/traps_32.c dst = (unsigned char *)rn; rn 243 arch/sh/kernel/traps_32.c dst = (unsigned char *)rn; rn 289 arch/unicore32/mm/alignment.c unsigned int rd, rn, pc_correction, reg_correction, nr_regs, regbits; rn 300 arch/unicore32/mm/alignment.c rn = RN_BITS(instr); rn 301 arch/unicore32/mm/alignment.c newaddr = eaddr = regs->uregs[rn]; rn 341 arch/unicore32/mm/alignment.c regs->uregs[rn] = newaddr; rn 477 drivers/gpu/drm/i915/gt/intel_lrc.c struct i915_request *rq, *rn, *active = NULL; rn 483 drivers/gpu/drm/i915/gt/intel_lrc.c list_for_each_entry_safe_reverse(rq, rn, rn 1270 drivers/gpu/drm/i915/gt/intel_lrc.c struct i915_request *rq, *rn; rn 1273 drivers/gpu/drm/i915/gt/intel_lrc.c priolist_for_each_request_consume(rq, rn, p, i) { rn 2570 drivers/gpu/drm/i915/gt/intel_lrc.c struct i915_request *rq, *rn; rn 2603 drivers/gpu/drm/i915/gt/intel_lrc.c priolist_for_each_request_consume(rq, rn, p, i) { rn 304 drivers/gpu/drm/i915/gt/mock_engine.c struct i915_request *request, *rn; rn 309 drivers/gpu/drm/i915/gt/mock_engine.c list_for_each_entry_safe(request, rn, &mock->hw_queue, mock.link) rn 564 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c struct i915_request *rq, *rn; rn 567 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c priolist_for_each_request_consume(rq, rn, p, i) { rn 682 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c struct i915_request *rq, *rn; rn 720 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c priolist_for_each_request_consume(rq, rn, p, i) { rn 596 drivers/gpu/drm/i915/i915_request.c struct i915_request *rq, *rn; rn 598 drivers/gpu/drm/i915/i915_request.c list_for_each_entry_safe(rq, rn, &tl->requests, link) rn 804 drivers/infiniband/hw/hfi1/vnic_main.c struct rdma_netdev *rn; rn 822 drivers/infiniband/hw/hfi1/vnic_main.c rn = netdev_priv(netdev); rn 828 drivers/infiniband/hw/hfi1/vnic_main.c rn->free_rdma_netdev = hfi1_vnic_free_rn; rn 829 drivers/infiniband/hw/hfi1/vnic_main.c rn->set_id = hfi1_vnic_set_vesw_id; rn 155 drivers/infiniband/ulp/ipoib/ipoib.h struct rdma_netdev *rn = netdev_priv(dev); rn 157 drivers/infiniband/ulp/ipoib/ipoib.h return rn->clnt_priv; rn 928 drivers/infiniband/ulp/ipoib/ipoib_ib.c struct rdma_netdev *rn = netdev_priv(dev); rn 935 drivers/infiniband/ulp/ipoib/ipoib_ib.c if (rn->set_id) rn 936 drivers/infiniband/ulp/ipoib/ipoib_ib.c rn->set_id(dev, priv->pkey_index); rn 950 drivers/infiniband/ulp/ipoib/ipoib_main.c struct rdma_netdev *rn = netdev_priv(dev); rn 1005 drivers/infiniband/ulp/ipoib/ipoib_main.c path->ah->last_send = rn->send(dev, skb, path->ah->ah, rn 1043 drivers/infiniband/ulp/ipoib/ipoib_main.c struct rdma_netdev *rn = netdev_priv(dev); rn 1083 drivers/infiniband/ulp/ipoib/ipoib_main.c path->ah->last_send = rn->send(dev, skb, path->ah->ah, rn 1097 drivers/infiniband/ulp/ipoib/ipoib_main.c struct rdma_netdev *rn = netdev_priv(dev); rn 1162 drivers/infiniband/ulp/ipoib/ipoib_main.c neigh->ah->last_send = rn->send(dev, skb, neigh->ah->ah, rn 2150 drivers/infiniband/ulp/ipoib/ipoib_main.c struct rdma_netdev *rn = netdev_priv(dev); rn 2168 drivers/infiniband/ulp/ipoib/ipoib_main.c rn->send = ipoib_send; rn 2169 drivers/infiniband/ulp/ipoib/ipoib_main.c rn->attach_mcast = ipoib_mcast_attach; rn 2170 drivers/infiniband/ulp/ipoib/ipoib_main.c rn->detach_mcast = ipoib_mcast_detach; rn 2171 drivers/infiniband/ulp/ipoib/ipoib_main.c rn->hca = hca; rn 2181 drivers/infiniband/ulp/ipoib/ipoib_main.c rn->clnt_priv = priv; rn 2226 drivers/infiniband/ulp/ipoib/ipoib_main.c struct rdma_netdev *rn = netdev_priv(dev); rn 2239 drivers/infiniband/ulp/ipoib/ipoib_main.c rn->clnt_priv = NULL; rn 216 drivers/infiniband/ulp/ipoib/ipoib_multicast.c struct rdma_netdev *rn = netdev_priv(dev); rn 265 drivers/infiniband/ulp/ipoib/ipoib_multicast.c ret = rn->attach_mcast(dev, priv->ca, &mcast->mcmember.mgid, rn 698 drivers/infiniband/ulp/ipoib/ipoib_multicast.c struct rdma_netdev *rn = netdev_priv(dev); rn 712 drivers/infiniband/ulp/ipoib/ipoib_multicast.c ret = rn->detach_mcast(dev, priv->ca, &mcast->mcmember.mgid, rn 763 drivers/infiniband/ulp/ipoib/ipoib_multicast.c struct rdma_netdev *rn = netdev_priv(dev); rn 830 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->ah->last_send = rn->send(dev, skb, mcast->ah->ah, rn 138 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c struct rdma_netdev *rn = netdev_priv(adapter->netdev); rn 158 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c rn->set_id(netdev, info->vesw.vesw_id); rn 328 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c struct rdma_netdev *rn; rn 340 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c rn = netdev_priv(netdev); rn 347 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c rn->clnt_priv = adapter; rn 348 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c rn->hca = ibdev; rn 349 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c rn->port_num = port_num; rn 383 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c rn->free_rdma_netdev(netdev); rn 392 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c struct rdma_netdev *rn = netdev_priv(netdev); rn 400 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c rn->free_rdma_netdev(netdev); rn 539 drivers/md/persistent-data/dm-btree.c struct btree_node *ln, *rn, *pn; rn 549 drivers/md/persistent-data/dm-btree.c rn = dm_block_data(right); rn 556 drivers/md/persistent-data/dm-btree.c rn->header.flags = ln->header.flags; rn 557 drivers/md/persistent-data/dm-btree.c rn->header.nr_entries = cpu_to_le32(nr_right); rn 558 drivers/md/persistent-data/dm-btree.c rn->header.max_entries = ln->header.max_entries; rn 559 drivers/md/persistent-data/dm-btree.c rn->header.value_size = ln->header.value_size; rn 560 drivers/md/persistent-data/dm-btree.c memcpy(rn->keys, ln->keys + nr_left, nr_right * sizeof(rn->keys[0])); rn 564 drivers/md/persistent-data/dm-btree.c memcpy(value_ptr(rn, 0), value_ptr(ln, nr_left), rn 582 drivers/md/persistent-data/dm-btree.c le64_to_cpu(rn->keys[0]), &location); rn 588 drivers/md/persistent-data/dm-btree.c if (key < le64_to_cpu(rn->keys[0])) { rn 626 drivers/md/persistent-data/dm-btree.c struct btree_node *pn, *ln, *rn; rn 657 drivers/md/persistent-data/dm-btree.c rn = dm_block_data(right); rn 660 drivers/md/persistent-data/dm-btree.c rn->header.flags = pn->header.flags; rn 661 drivers/md/persistent-data/dm-btree.c rn->header.nr_entries = cpu_to_le32(nr_right); rn 662 drivers/md/persistent-data/dm-btree.c rn->header.max_entries = pn->header.max_entries; rn 663 drivers/md/persistent-data/dm-btree.c rn->header.value_size = pn->header.value_size; rn 664 drivers/md/persistent-data/dm-btree.c memcpy(rn->keys, pn->keys + nr_left, nr_right * sizeof(pn->keys[0])); rn 665 drivers/md/persistent-data/dm-btree.c memcpy(value_ptr(rn, 0), value_ptr(pn, nr_left), rn 684 drivers/md/persistent-data/dm-btree.c pn->keys[1] = rn->keys[0]; rn 72 drivers/net/ethernet/jme.h __u8 rn; /* Number of read actions */ rn 691 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c struct rdma_netdev *rn; rn 719 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c rn = &ipriv->rn; rn 720 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c rn->hca = ibdev; rn 721 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c rn->send = mlx5i_xmit; rn 722 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c rn->attach_mcast = mlx5i_attach_mcast; rn 723 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c rn->detach_mcast = mlx5i_detach_mcast; rn 724 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c rn->set_id = mlx5i_set_pkey_index; rn 53 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h struct rdma_netdev rn; /* keep this first */ rn 174 drivers/net/ethernet/ti/netcp_ethss.c #define GBE_SET_REG_OFS(p, rb, rn) p->rb##_ofs.rn = \ rn 175 drivers/net/ethernet/ti/netcp_ethss.c offsetof(struct gbe##_##rb, rn) rn 176 drivers/net/ethernet/ti/netcp_ethss.c #define GBENU_SET_REG_OFS(p, rb, rn) p->rb##_ofs.rn = \ rn 177 drivers/net/ethernet/ti/netcp_ethss.c offsetof(struct gbenu##_##rb, rn) rn 178 drivers/net/ethernet/ti/netcp_ethss.c #define XGBE_SET_REG_OFS(p, rb, rn) p->rb##_ofs.rn = \ rn 179 drivers/net/ethernet/ti/netcp_ethss.c offsetof(struct xgbe##_##rb, rn) rn 180 drivers/net/ethernet/ti/netcp_ethss.c #define GBE_REG_ADDR(p, rb, rn) (p->rb + p->rb##_ofs.rn) rn 44 drivers/net/wireless/intel/iwlegacy/3945.c #define IL_DECLARE_RATE_INFO(r, ip, in, rp, rn, pp, np) \ rn 50 drivers/net/wireless/intel/iwlegacy/3945.c RATE_##rn##M_IDX, \ rn 61 drivers/net/wireless/intel/iwlegacy/4965-rs.c #define IL_DECLARE_RATE_INFO(r, s, ip, in, rp, rn, pp, np) \ rn 69 drivers/net/wireless/intel/iwlegacy/4965-rs.c RATE_##rn##M_IDX, \ rn 61 drivers/net/wireless/intel/iwlwifi/dvm/rs.c #define IWL_DECLARE_RATE_INFO(r, s, ip, in, rp, rn, pp, np) \ rn 70 drivers/net/wireless/intel/iwlwifi/dvm/rs.c IWL_RATE_##rn##M_INDEX, \ rn 58 drivers/net/wireless/intel/iwlwifi/mvm/rs.c #define IWL_DECLARE_RATE_INFO(r, s, rp, rn) \ rn 65 drivers/net/wireless/intel/iwlwifi/mvm/rs.c IWL_RATE_##rn##M_INDEX } rn 171 drivers/s390/char/sclp_cmd.c u16 rn; rn 177 drivers/s390/char/sclp_cmd.c u16 rn; rn 187 drivers/s390/char/sclp_cmd.c static unsigned long long rn2addr(u16 rn) rn 189 drivers/s390/char/sclp_cmd.c return (unsigned long long) (rn - 1) * sclp.rzm; rn 192 drivers/s390/char/sclp_cmd.c static int do_assign_storage(sclp_cmdw_t cmd, u16 rn) rn 201 drivers/s390/char/sclp_cmd.c sccb->rn = rn; rn 211 drivers/s390/char/sclp_cmd.c cmd, sccb->header.response_code, rn); rn 220 drivers/s390/char/sclp_cmd.c static int sclp_assign_storage(u16 rn) rn 225 drivers/s390/char/sclp_cmd.c rc = do_assign_storage(0x000d0001, rn); rn 228 drivers/s390/char/sclp_cmd.c start = rn2addr(rn); rn 233 drivers/s390/char/sclp_cmd.c static int sclp_unassign_storage(u16 rn) rn 235 drivers/s390/char/sclp_cmd.c return do_assign_storage(0x000c0001, rn); rn 286 drivers/s390/char/sclp_cmd.c istart = rn2addr(incr->rn); rn 292 drivers/s390/char/sclp_cmd.c rc |= sclp_assign_storage(incr->rn); rn 294 drivers/s390/char/sclp_cmd.c sclp_unassign_storage(incr->rn); rn 307 drivers/s390/char/sclp_cmd.c istart = rn2addr(incr->rn); rn 383 drivers/s390/char/sclp_cmd.c static void __init add_memory_merged(u16 rn) rn 388 drivers/s390/char/sclp_cmd.c if (rn && first_rn && (first_rn + num == rn)) { rn 411 drivers/s390/char/sclp_cmd.c first_rn = rn; rn 421 drivers/s390/char/sclp_cmd.c add_memory_merged(incr->rn); rn 425 drivers/s390/char/sclp_cmd.c static void __init insert_increment(u16 rn, int standby, int assigned) rn 434 drivers/s390/char/sclp_cmd.c new_incr->rn = rn; rn 439 drivers/s390/char/sclp_cmd.c if (assigned && incr->rn > rn) rn 441 drivers/s390/char/sclp_cmd.c if (!assigned && incr->rn - last_rn > 1) rn 443 drivers/s390/char/sclp_cmd.c last_rn = incr->rn; rn 447 drivers/s390/char/sclp_cmd.c new_incr->rn = last_rn + 1; rn 448 drivers/s390/char/sclp_cmd.c if (new_incr->rn > sclp.rnmax) { rn 309 drivers/s390/char/sclp_early_core.c unsigned long rn, rzm; rn 336 drivers/s390/char/sclp_early_core.c rn = sccb->entries[sn] >> 16; rn 337 drivers/s390/char/sclp_early_core.c add_mem_detect_block((rn - 1) * rzm, rn * rzm); rn 59 drivers/scsi/csiostor/csio_attr.c csio_reg_rnode(struct csio_rnode *rn) rn 61 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 67 drivers/scsi/csiostor/csio_attr.c ids.node_name = wwn_to_u64(csio_rn_wwnn(rn)); rn 68 drivers/scsi/csiostor/csio_attr.c ids.port_name = wwn_to_u64(csio_rn_wwpn(rn)); rn 69 drivers/scsi/csiostor/csio_attr.c ids.port_id = rn->nport_id; rn 72 drivers/scsi/csiostor/csio_attr.c if (rn->role & CSIO_RNFR_INITIATOR || rn->role & CSIO_RNFR_TARGET) { rn 73 drivers/scsi/csiostor/csio_attr.c rport = rn->rport; rn 78 drivers/scsi/csiostor/csio_attr.c rn->rport = fc_remote_port_add(shost, 0, &ids); rn 79 drivers/scsi/csiostor/csio_attr.c if (!rn->rport) { rn 81 drivers/scsi/csiostor/csio_attr.c rn->nport_id); rn 86 drivers/scsi/csiostor/csio_attr.c rport = rn->rport; rn 88 drivers/scsi/csiostor/csio_attr.c *((struct csio_rnode **)rport->dd_data) = rn; rn 91 drivers/scsi/csiostor/csio_attr.c sp = &rn->rn_sparm; rn 98 drivers/scsi/csiostor/csio_attr.c if (rn->role & CSIO_RNFR_INITIATOR) rn 100 drivers/scsi/csiostor/csio_attr.c if (rn->role & CSIO_RNFR_TARGET) rn 106 drivers/scsi/csiostor/csio_attr.c rn->scsi_id = rport->scsi_target_id; rn 109 drivers/scsi/csiostor/csio_attr.c rn->nport_id, ids.roles); rn 121 drivers/scsi/csiostor/csio_attr.c csio_unreg_rnode(struct csio_rnode *rn) rn 123 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 124 drivers/scsi/csiostor/csio_attr.c struct fc_rport *rport = rn->rport; rn 126 drivers/scsi/csiostor/csio_attr.c rn->role &= ~(CSIO_RNFR_INITIATOR | CSIO_RNFR_TARGET); rn 130 drivers/scsi/csiostor/csio_attr.c csio_ln_dbg(ln, "Remote port x%x un-registered\n", rn->nport_id); rn 311 drivers/scsi/csiostor/csio_attr.c struct csio_rnode *rn = NULL; rn 315 drivers/scsi/csiostor/csio_attr.c rn = csio_rnode_lookup_portid(ln, FC_FID_FLOGI); rn 316 drivers/scsi/csiostor/csio_attr.c if (rn) rn 317 drivers/scsi/csiostor/csio_attr.c fc_host_fabric_name(shost) = wwn_to_u64(csio_rn_wwnn(rn)); rn 683 drivers/scsi/csiostor/csio_attr.c struct csio_rnode *rn; rn 687 drivers/scsi/csiostor/csio_attr.c rn = *((struct csio_rnode **)rport->dd_data); rn 688 drivers/scsi/csiostor/csio_attr.c ln = csio_rnode_to_lnode(rn); rn 694 drivers/scsi/csiostor/csio_attr.c if (csio_is_hw_removing(hw) || csio_is_rnode_ready(rn)) rn 698 drivers/scsi/csiostor/csio_attr.c rn, rn->nport_id, csio_rn_flowid(rn)); rn 706 drivers/scsi/csiostor/csio_attr.c if (csio_enqueue_evt(hw, CSIO_EVT_DEV_LOSS, &rn, sizeof(rn))) { rn 3982 drivers/scsi/csiostor/csio_hw.c struct csio_rnode *rn; rn 4038 drivers/scsi/csiostor/csio_hw.c memcpy(&rn, evt_msg->data, sizeof(rn)); rn 4039 drivers/scsi/csiostor/csio_hw.c csio_rnode_devloss_handler(rn); rn 939 drivers/scsi/csiostor/csio_lnode.c struct csio_rnode *rn; rn 942 drivers/scsi/csiostor/csio_lnode.c rn = (struct csio_rnode *) tmp; rn 943 drivers/scsi/csiostor/csio_lnode.c csio_post_event(&rn->sm, evt); rn 961 drivers/scsi/csiostor/csio_lnode.c struct csio_rnode *rn; rn 964 drivers/scsi/csiostor/csio_lnode.c rn = (struct csio_rnode *) tmp; rn 965 drivers/scsi/csiostor/csio_lnode.c csio_put_rnode(ln, rn); rn 1487 drivers/scsi/csiostor/csio_lnode.c struct csio_rnode *rn; rn 1563 drivers/scsi/csiostor/csio_lnode.c rn = csio_confirm_rnode(ln, rdev_flowid, rn 1565 drivers/scsi/csiostor/csio_lnode.c if (!rn) { rn 1589 drivers/scsi/csiostor/csio_lnode.c csio_rnode_fwevt_handler(rn, rdev_wr->event_cause); rn 1731 drivers/scsi/csiostor/csio_lnode.c struct csio_rnode *rn = io_req->rnode; rn 1764 drivers/scsi/csiostor/csio_lnode.c ln->nport_id, rn->nport_id, rn 1765 drivers/scsi/csiostor/csio_lnode.c csio_rn_flowid(rn), rn 89 drivers/scsi/csiostor/csio_rnode.c csio_is_rnode_ready(struct csio_rnode *rn) rn 91 drivers/scsi/csiostor/csio_rnode.c return csio_match_state(rn, csio_rns_ready); rn 95 drivers/scsi/csiostor/csio_rnode.c csio_is_rnode_uninit(struct csio_rnode *rn) rn 97 drivers/scsi/csiostor/csio_rnode.c return csio_match_state(rn, csio_rns_uninit); rn 125 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rn; rn 128 drivers/scsi/csiostor/csio_rnode.c rn = (struct csio_rnode *) tmp; rn 129 drivers/scsi/csiostor/csio_rnode.c if (rn->flowid == flowid) rn 130 drivers/scsi/csiostor/csio_rnode.c return rn; rn 149 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rn; rn 152 drivers/scsi/csiostor/csio_rnode.c rn = (struct csio_rnode *) tmp; rn 153 drivers/scsi/csiostor/csio_rnode.c if (!memcmp(csio_rn_wwpn(rn), wwpn, 8)) rn 154 drivers/scsi/csiostor/csio_rnode.c return rn; rn 173 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rn; rn 176 drivers/scsi/csiostor/csio_rnode.c rn = (struct csio_rnode *) tmp; rn 177 drivers/scsi/csiostor/csio_rnode.c if (rn->nport_id == portid) rn 178 drivers/scsi/csiostor/csio_rnode.c return rn; rn 190 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rn; rn 202 drivers/scsi/csiostor/csio_rnode.c rn = (struct csio_rnode *) tmp; rn 203 drivers/scsi/csiostor/csio_rnode.c if (csio_is_rnode_ready(rn)) { rn 204 drivers/scsi/csiostor/csio_rnode.c if (rn->flowid == rdev_flowid) { rn 220 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rn = mempool_alloc(hw->rnode_mempool, GFP_ATOMIC); rn 221 drivers/scsi/csiostor/csio_rnode.c if (!rn) rn 224 drivers/scsi/csiostor/csio_rnode.c memset(rn, 0, sizeof(struct csio_rnode)); rn 225 drivers/scsi/csiostor/csio_rnode.c if (csio_rnode_init(rn, ln)) rn 230 drivers/scsi/csiostor/csio_rnode.c return rn; rn 233 drivers/scsi/csiostor/csio_rnode.c mempool_free(rn, hw->rnode_mempool); rn 240 drivers/scsi/csiostor/csio_rnode.c csio_free_rnode(struct csio_rnode *rn) rn 242 drivers/scsi/csiostor/csio_rnode.c struct csio_hw *hw = csio_lnode_to_hw(csio_rnode_to_lnode(rn)); rn 244 drivers/scsi/csiostor/csio_rnode.c csio_rnode_exit(rn); rn 245 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn->lnp, n_rnode_free); rn 246 drivers/scsi/csiostor/csio_rnode.c mempool_free(rn, hw->rnode_mempool); rn 260 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rn; rn 262 drivers/scsi/csiostor/csio_rnode.c rn = csio_rn_lookup(ln, flowid); rn 263 drivers/scsi/csiostor/csio_rnode.c if (!rn) { rn 264 drivers/scsi/csiostor/csio_rnode.c rn = csio_alloc_rnode(ln); rn 265 drivers/scsi/csiostor/csio_rnode.c if (!rn) rn 268 drivers/scsi/csiostor/csio_rnode.c rn->flowid = flowid; rn 271 drivers/scsi/csiostor/csio_rnode.c return rn; rn 283 drivers/scsi/csiostor/csio_rnode.c csio_put_rnode(struct csio_lnode *ln, struct csio_rnode *rn) rn 285 drivers/scsi/csiostor/csio_rnode.c CSIO_DB_ASSERT(csio_is_rnode_uninit(rn) != 0); rn 286 drivers/scsi/csiostor/csio_rnode.c csio_free_rnode(rn); rn 304 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rn, *match_rn; rn 321 drivers/scsi/csiostor/csio_rnode.c rn = csio_rn_lookup(ln, rdev_flowid); rn 322 drivers/scsi/csiostor/csio_rnode.c if (!rn) { rn 333 drivers/scsi/csiostor/csio_rnode.c rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); rn 334 drivers/scsi/csiostor/csio_rnode.c if (!rn) rn 343 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn) = CSIO_INVALID_IDX; rn 353 drivers/scsi/csiostor/csio_rnode.c if (rn == match_rn) rn 358 drivers/scsi/csiostor/csio_rnode.c rn->nport_id, rn 361 drivers/scsi/csiostor/csio_rnode.c if (csio_is_rnode_ready(rn)) { rn 368 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn) = CSIO_INVALID_IDX; rn 369 drivers/scsi/csiostor/csio_rnode.c rn = match_rn; rn 374 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn) = CSIO_INVALID_IDX; rn 379 drivers/scsi/csiostor/csio_rnode.c if (!memcmp(csio_rn_wwpn(rn), rdevp->wwpn, 8)) rn 390 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn) = CSIO_INVALID_IDX; rn 391 drivers/scsi/csiostor/csio_rnode.c rn = match_rn; rn 397 drivers/scsi/csiostor/csio_rnode.c wwn_to_u64(csio_rn_wwpn(rn))); rn 398 drivers/scsi/csiostor/csio_rnode.c if (csio_is_rnode_ready(rn)) { rn 402 drivers/scsi/csiostor/csio_rnode.c wwn_to_u64(csio_rn_wwpn(rn)), rn 406 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn) = CSIO_INVALID_IDX; rn 413 drivers/scsi/csiostor/csio_rnode.c rn, rdev_flowid, wwn_to_u64(rdevp->wwpn)); rn 416 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn) = rdev_flowid; rn 419 drivers/scsi/csiostor/csio_rnode.c rn->rdev_entry = rdevp; rn 421 drivers/scsi/csiostor/csio_rnode.c return rn; rn 424 drivers/scsi/csiostor/csio_rnode.c rn = csio_get_rnode(ln, rdev_flowid); rn 425 drivers/scsi/csiostor/csio_rnode.c if (!rn) rn 429 drivers/scsi/csiostor/csio_rnode.c rn, rdev_flowid, wwn_to_u64(rdevp->wwpn)); rn 432 drivers/scsi/csiostor/csio_rnode.c rn->rdev_entry = rdevp; rn 433 drivers/scsi/csiostor/csio_rnode.c return rn; rn 444 drivers/scsi/csiostor/csio_rnode.c csio_rn_verify_rparams(struct csio_lnode *ln, struct csio_rnode *rn, rn 457 drivers/scsi/csiostor/csio_rnode.c rn->role = CSIO_RNFR_FABRIC; rn 460 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn)); rn 470 drivers/scsi/csiostor/csio_rnode.c rn->role = CSIO_RNFR_NS; rn 473 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn)); rn 480 drivers/scsi/csiostor/csio_rnode.c rn->role = CSIO_RNFR_NPORT; rn 485 drivers/scsi/csiostor/csio_rnode.c rn->fcp_flags |= FCP_SPPF_OVLY_ALLOW; rn 488 drivers/scsi/csiostor/csio_rnode.c rn->fcp_flags |= FCP_SPPF_RETRY; rn 491 drivers/scsi/csiostor/csio_rnode.c rn->fcp_flags |= FCP_SPPF_CONF_COMPL; rn 494 drivers/scsi/csiostor/csio_rnode.c rn->role |= CSIO_RNFR_TARGET; rn 497 drivers/scsi/csiostor/csio_rnode.c rn->role |= CSIO_RNFR_INITIATOR; rn 504 drivers/scsi/csiostor/csio_rnode.c rn->role = 0; rn 509 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn), rport_type); rn 520 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn), rn 529 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn), rn 537 drivers/scsi/csiostor/csio_rnode.c rn->nport_id = (ntohl(*did) >> 8) & CSIO_DID_MASK; rn 538 drivers/scsi/csiostor/csio_rnode.c memcpy(csio_rn_wwnn(rn), rdevp->wwnn, 8); rn 539 drivers/scsi/csiostor/csio_rnode.c memcpy(csio_rn_wwpn(rn), rdevp->wwpn, 8); rn 540 drivers/scsi/csiostor/csio_rnode.c rn->rn_sparm.csp.sp_bb_data = rdevp->rcv_fr_sz; rn 542 drivers/scsi/csiostor/csio_rnode.c rn->rn_sparm.clsp[fc_class - 1].cp_class = htons(FC_CPC_VALID); rn 548 drivers/scsi/csiostor/csio_rnode.c __csio_reg_rnode(struct csio_rnode *rn) rn 550 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 554 drivers/scsi/csiostor/csio_rnode.c csio_reg_rnode(rn); rn 557 drivers/scsi/csiostor/csio_rnode.c if (rn->role & CSIO_RNFR_TARGET) rn 560 drivers/scsi/csiostor/csio_rnode.c if (rn->nport_id == FC_FID_MGMT_SERV) rn 561 drivers/scsi/csiostor/csio_rnode.c csio_ln_fdmi_start(ln, (void *) rn); rn 565 drivers/scsi/csiostor/csio_rnode.c __csio_unreg_rnode(struct csio_rnode *rn) rn 567 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 572 drivers/scsi/csiostor/csio_rnode.c if (!list_empty(&rn->host_cmpl_q)) { rn 574 drivers/scsi/csiostor/csio_rnode.c list_splice_tail_init(&rn->host_cmpl_q, &tmp_q); rn 578 drivers/scsi/csiostor/csio_rnode.c if (rn->role & CSIO_RNFR_TARGET) { rn 584 drivers/scsi/csiostor/csio_rnode.c csio_unreg_rnode(rn); rn 604 drivers/scsi/csiostor/csio_rnode.c csio_rns_uninit(struct csio_rnode *rn, enum csio_rn_ev evt) rn 606 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 609 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_sm[evt]); rn 614 drivers/scsi/csiostor/csio_rnode.c ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); rn 616 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_ready); rn 617 drivers/scsi/csiostor/csio_rnode.c __csio_reg_rnode(rn); rn 619 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_err_inval); rn 625 drivers/scsi/csiostor/csio_rnode.c "in rn state[uninit]\n", csio_rn_flowid(rn), evt); rn 626 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_drop); rn 631 drivers/scsi/csiostor/csio_rnode.c "in rn state[uninit]\n", csio_rn_flowid(rn), evt); rn 632 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_unexp); rn 644 drivers/scsi/csiostor/csio_rnode.c csio_rns_ready(struct csio_rnode *rn, enum csio_rn_ev evt) rn 646 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 649 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_sm[evt]); rn 656 drivers/scsi/csiostor/csio_rnode.c "in rn state[ready]\n", csio_rn_flowid(rn), evt, rn 657 drivers/scsi/csiostor/csio_rnode.c rn->nport_id); rn 658 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_drop); rn 663 drivers/scsi/csiostor/csio_rnode.c ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); rn 665 drivers/scsi/csiostor/csio_rnode.c __csio_reg_rnode(rn); rn 667 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_err_inval); rn 671 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_offline); rn 672 drivers/scsi/csiostor/csio_rnode.c __csio_unreg_rnode(rn); rn 680 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_offline); rn 682 drivers/scsi/csiostor/csio_rnode.c __csio_unreg_rnode(rn); rn 697 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_uninit); rn 698 drivers/scsi/csiostor/csio_rnode.c __csio_unreg_rnode(rn); rn 702 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_disappeared); rn 703 drivers/scsi/csiostor/csio_rnode.c __csio_unreg_rnode(rn); rn 715 drivers/scsi/csiostor/csio_rnode.c "in rn state[uninit]\n", csio_rn_flowid(rn), evt, rn 716 drivers/scsi/csiostor/csio_rnode.c rn->nport_id); rn 717 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_unexp); rn 729 drivers/scsi/csiostor/csio_rnode.c csio_rns_offline(struct csio_rnode *rn, enum csio_rn_ev evt) rn 731 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 734 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_sm[evt]); rn 739 drivers/scsi/csiostor/csio_rnode.c ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); rn 741 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_ready); rn 742 drivers/scsi/csiostor/csio_rnode.c __csio_reg_rnode(rn); rn 744 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_err_inval); rn 745 drivers/scsi/csiostor/csio_rnode.c csio_post_event(&rn->sm, CSIO_RNFE_CLOSE); rn 752 drivers/scsi/csiostor/csio_rnode.c "in rn state[offline]\n", csio_rn_flowid(rn), evt, rn 753 drivers/scsi/csiostor/csio_rnode.c rn->nport_id); rn 754 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_drop); rn 764 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_uninit); rn 768 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_disappeared); rn 774 drivers/scsi/csiostor/csio_rnode.c "in rn state[offline]\n", csio_rn_flowid(rn), evt, rn 775 drivers/scsi/csiostor/csio_rnode.c rn->nport_id); rn 776 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_unexp); rn 788 drivers/scsi/csiostor/csio_rnode.c csio_rns_disappeared(struct csio_rnode *rn, enum csio_rn_ev evt) rn 790 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 793 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_sm[evt]); rn 798 drivers/scsi/csiostor/csio_rnode.c ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); rn 800 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_ready); rn 801 drivers/scsi/csiostor/csio_rnode.c __csio_reg_rnode(rn); rn 803 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_err_inval); rn 804 drivers/scsi/csiostor/csio_rnode.c csio_post_event(&rn->sm, CSIO_RNFE_CLOSE); rn 815 drivers/scsi/csiostor/csio_rnode.c csio_set_state(&rn->sm, csio_rns_uninit); rn 822 drivers/scsi/csiostor/csio_rnode.c "in rn state[disappeared]\n", csio_rn_flowid(rn), rn 823 drivers/scsi/csiostor/csio_rnode.c evt, rn->nport_id); rn 829 drivers/scsi/csiostor/csio_rnode.c "in rn state[disappeared]\n", csio_rn_flowid(rn), rn 830 drivers/scsi/csiostor/csio_rnode.c evt, rn->nport_id); rn 831 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_unexp); rn 847 drivers/scsi/csiostor/csio_rnode.c csio_rnode_devloss_handler(struct csio_rnode *rn) rn 849 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 852 drivers/scsi/csiostor/csio_rnode.c if (csio_is_rnode_ready(rn)) rn 855 drivers/scsi/csiostor/csio_rnode.c csio_post_event(&rn->sm, CSIO_RNFE_CLOSE); rn 858 drivers/scsi/csiostor/csio_rnode.c if (csio_is_rnode_uninit(rn)) rn 859 drivers/scsi/csiostor/csio_rnode.c csio_put_rnode(ln, rn); rn 868 drivers/scsi/csiostor/csio_rnode.c csio_rnode_fwevt_handler(struct csio_rnode *rn, uint8_t fwevt) rn 870 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); rn 876 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn), fwevt); rn 877 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_unexp); rn 880 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(rn, n_evt_fw[fwevt]); rn 883 drivers/scsi/csiostor/csio_rnode.c rn->prev_evt = rn->cur_evt; rn 884 drivers/scsi/csiostor/csio_rnode.c rn->cur_evt = fwevt; rn 887 drivers/scsi/csiostor/csio_rnode.c csio_post_event(&rn->sm, evt); rn 890 drivers/scsi/csiostor/csio_rnode.c if (csio_is_rnode_uninit(rn)) rn 891 drivers/scsi/csiostor/csio_rnode.c csio_put_rnode(ln, rn); rn 903 drivers/scsi/csiostor/csio_rnode.c csio_rnode_init(struct csio_rnode *rn, struct csio_lnode *ln) rn 905 drivers/scsi/csiostor/csio_rnode.c csio_rnode_to_lnode(rn) = ln; rn 906 drivers/scsi/csiostor/csio_rnode.c csio_init_state(&rn->sm, csio_rns_uninit); rn 907 drivers/scsi/csiostor/csio_rnode.c INIT_LIST_HEAD(&rn->host_cmpl_q); rn 908 drivers/scsi/csiostor/csio_rnode.c csio_rn_flowid(rn) = CSIO_INVALID_IDX; rn 911 drivers/scsi/csiostor/csio_rnode.c list_add_tail(&rn->sm.sm_list, &ln->rnhead); rn 917 drivers/scsi/csiostor/csio_rnode.c csio_rnode_exit(struct csio_rnode *rn) rn 919 drivers/scsi/csiostor/csio_rnode.c list_del_init(&rn->sm.sm_list); rn 920 drivers/scsi/csiostor/csio_rnode.c CSIO_DB_ASSERT(list_empty(&rn->host_cmpl_q)); rn 120 drivers/scsi/csiostor/csio_rnode.h #define csio_rn_flowid(rn) ((rn)->flowid) rn 121 drivers/scsi/csiostor/csio_rnode.h #define csio_rn_wwpn(rn) ((rn)->rn_sparm.wwpn) rn 122 drivers/scsi/csiostor/csio_rnode.h #define csio_rn_wwnn(rn) ((rn)->rn_sparm.wwnn) rn 123 drivers/scsi/csiostor/csio_rnode.h #define csio_rnode_to_lnode(rn) ((rn)->lnp) rn 125 drivers/scsi/csiostor/csio_rnode.h int csio_is_rnode_ready(struct csio_rnode *rn); rn 126 drivers/scsi/csiostor/csio_rnode.h void csio_rnode_state_to_str(struct csio_rnode *rn, int8_t *str); rn 132 drivers/scsi/csiostor/csio_rnode.h void csio_rnode_fwevt_handler(struct csio_rnode *rn, uint8_t fwevt); rn 134 drivers/scsi/csiostor/csio_rnode.h void csio_put_rnode(struct csio_lnode *ln, struct csio_rnode *rn); rn 204 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = req->rnode; rn 211 drivers/scsi/csiostor/csio_scsi.c wr->flowid_len16 = cpu_to_be32(FW_WR_FLOWID_V(rn->flowid) | rn 363 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = req->rnode; rn 372 drivers/scsi/csiostor/csio_scsi.c wr->flowid_len16 = cpu_to_be32(FW_WR_FLOWID_V(rn->flowid) | rn 416 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = req->rnode; rn 425 drivers/scsi/csiostor/csio_scsi.c wr->flowid_len16 = cpu_to_be32(FW_WR_FLOWID_V(rn->flowid) | rn 650 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = req->rnode; rn 654 drivers/scsi/csiostor/csio_scsi.c wr->flowid_len16 = cpu_to_be32(FW_WR_FLOWID_V(rn->flowid) | rn 777 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn; rn 800 drivers/scsi/csiostor/csio_scsi.c rn = req->rnode; rn 806 drivers/scsi/csiostor/csio_scsi.c csio_is_rnode_ready(rn)) { rn 810 drivers/scsi/csiostor/csio_scsi.c &rn->host_cmpl_q); rn 1568 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); rn 1639 drivers/scsi/csiostor/csio_scsi.c rn->flowid); rn 1780 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); rn 1831 drivers/scsi/csiostor/csio_scsi.c ioreq->rnode = rn; rn 1918 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); rn 1928 drivers/scsi/csiostor/csio_scsi.c if (!rn) rn 1934 drivers/scsi/csiostor/csio_scsi.c ioreq, cmnd, *((uint64_t *)cmnd->cmnd), rn->flowid, rn 2063 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); rn 2072 drivers/scsi/csiostor/csio_scsi.c if (!rn) rn 2076 drivers/scsi/csiostor/csio_scsi.c cmnd->device->lun, rn->flowid, rn->scsi_id); rn 2098 drivers/scsi/csiostor/csio_scsi.c if (fc_remote_port_chkready(rn->rport)) { rn 2102 drivers/scsi/csiostor/csio_scsi.c rn->flowid, cmnd->device->lun); rn 2118 drivers/scsi/csiostor/csio_scsi.c ioreq->rnode = rn; rn 2207 drivers/scsi/csiostor/csio_scsi.c CSIO_INC_STATS(rn, n_lun_rst); rn 2217 drivers/scsi/csiostor/csio_scsi.c CSIO_INC_STATS(rn, n_lun_rst_fail); rn 320 drivers/scsi/lpfc/lpfc_debugfs.c hip->hbq_index, hip->profile, hip->rn, rn 4991 drivers/scsi/lpfc/lpfc_els.c RNID *rn; rn 5022 drivers/scsi/lpfc/lpfc_els.c rn = (RNID *) (pcmd); rn 5023 drivers/scsi/lpfc/lpfc_els.c rn->Format = format; rn 5024 drivers/scsi/lpfc/lpfc_els.c rn->CommonLen = (2 * sizeof(struct lpfc_name)); rn 5025 drivers/scsi/lpfc/lpfc_els.c memcpy(&rn->portName, &vport->fc_portname, sizeof(struct lpfc_name)); rn 5026 drivers/scsi/lpfc/lpfc_els.c memcpy(&rn->nodeName, &vport->fc_nodename, sizeof(struct lpfc_name)); rn 5029 drivers/scsi/lpfc/lpfc_els.c rn->SpecificLen = 0; rn 5032 drivers/scsi/lpfc/lpfc_els.c rn->SpecificLen = sizeof(RNID_TOP_DISC); rn 5033 drivers/scsi/lpfc/lpfc_els.c memcpy(&rn->un.topologyDisc.portName, rn 5035 drivers/scsi/lpfc/lpfc_els.c rn->un.topologyDisc.unitType = RNID_HBA; rn 5036 drivers/scsi/lpfc/lpfc_els.c rn->un.topologyDisc.physPort = 0; rn 5037 drivers/scsi/lpfc/lpfc_els.c rn->un.topologyDisc.attachedNodes = 0; rn 5040 drivers/scsi/lpfc/lpfc_els.c rn->CommonLen = 0; rn 5041 drivers/scsi/lpfc/lpfc_els.c rn->SpecificLen = 0; rn 6933 drivers/scsi/lpfc/lpfc_els.c RNID *rn; rn 6940 drivers/scsi/lpfc/lpfc_els.c rn = (RNID *) lp; rn 6944 drivers/scsi/lpfc/lpfc_els.c switch (rn->Format) { rn 6948 drivers/scsi/lpfc/lpfc_els.c lpfc_els_rsp_rnid_acc(vport, rn->Format, cmdiocb, ndlp); rn 1150 drivers/scsi/lpfc/lpfc_mbox.c hbqmb->recvNotify = hbq_desc->rn; /* Receive rn 2102 drivers/scsi/lpfc/lpfc_sli.c .rn = 1, rn 268 drivers/scsi/lpfc/lpfc_sli.h uint32_t rn; /* Receive buffer notification */ rn 295 drivers/w1/slaves/w1_ds2408.c u64 rn = le64_to_cpu(*((u64*)&sl->reg_num)); rn 297 drivers/w1/slaves/w1_ds2408.c memcpy(&magic[1], &rn, 8); rn 650 drivers/w1/slaves/w1_therm.c u64 rn; rn 675 drivers/w1/slaves/w1_therm.c rv = w1_read_block(sl->master, (u8 *)&rn, 8); rn 676 drivers/w1/slaves/w1_therm.c reg_num = (struct w1_reg_num *) &rn; rn 399 drivers/w1/w1.c struct w1_reg_num *rn) rn 423 drivers/w1/w1.c rn->family = family; rn 424 drivers/w1/w1.c rn->id = id; rn 426 drivers/w1/w1.c rn64_le = cpu_to_le64(*(u64 *)rn); rn 427 drivers/w1/w1.c rn->crc = w1_calc_crc8((u8 *)&rn64_le, 7); rn 431 drivers/w1/w1.c rn->family, (unsigned long long)rn->id, rn->crc); rn 441 drivers/w1/w1.c struct w1_reg_num *rn) rn 446 drivers/w1/w1.c if (sl->reg_num.family == rn->family && rn 447 drivers/w1/w1.c sl->reg_num.id == rn->id && rn 448 drivers/w1/w1.c sl->reg_num.crc == rn->crc) { rn 462 drivers/w1/w1.c struct w1_reg_num rn; rn 466 drivers/w1/w1.c if (w1_atoreg_num(dev, buf, count, &rn)) rn 470 drivers/w1/w1.c sl = w1_slave_search_device(md, &rn); rn 479 drivers/w1/w1.c w1_attach_slave_device(md, &rn); rn 500 drivers/w1/w1.c struct w1_reg_num rn; rn 504 drivers/w1/w1.c if (w1_atoreg_num(dev, buf, count, &rn)) rn 508 drivers/w1/w1.c sl = w1_slave_search_device(md, &rn); rn 515 drivers/w1/w1.c dev_info(dev, "Device %02x-%012llx doesn't exists\n", rn.family, rn 516 drivers/w1/w1.c (unsigned long long)rn.id); rn 718 drivers/w1/w1.c int w1_attach_slave_device(struct w1_master *dev, struct w1_reg_num *rn) rn 739 drivers/w1/w1.c memcpy(&sl->reg_num, rn, sizeof(sl->reg_num)); rn 744 drivers/w1/w1.c rn->family, (unsigned long long)rn->id, rn->crc); rn 748 drivers/w1/w1.c request_module("w1-family-0x%02X", rn->family); rn 752 drivers/w1/w1.c f = w1_family_registered(rn->family); rn 756 drivers/w1/w1.c rn->family, rn->family, rn 757 drivers/w1/w1.c (unsigned long long)rn->id, rn->crc); rn 777 drivers/w1/w1.c memcpy(msg.id.id, rn, sizeof(msg.id)); rn 896 drivers/w1/w1.c struct w1_reg_num rn; rn 899 drivers/w1/w1.c memcpy(&rn, &sl->reg_num, sizeof(rn)); rn 904 drivers/w1/w1.c w1_attach_slave_device(dev, &rn); rn 916 drivers/w1/w1.c void w1_slave_found(struct w1_master *dev, u64 rn) rn 920 drivers/w1/w1.c u64 rn_le = cpu_to_le64(rn); rn 924 drivers/w1/w1.c tmp = (struct w1_reg_num *) &rn; rn 930 drivers/w1/w1.c if (rn && tmp->crc == w1_calc_crc8((u8 *)&rn_le, 7)) rn 956 drivers/w1/w1.c u64 last_rn, rn, tmp64; rn 963 drivers/w1/w1.c rn = dev->search_id; rn 971 drivers/w1/w1.c last_rn = rn; rn 972 drivers/w1/w1.c rn = 0; rn 991 drivers/w1/w1.c rv = w1_read_block(dev, (u8 *)&rn, 8); rn 994 drivers/w1/w1.c if (rv == 8 && rn) rn 995 drivers/w1/w1.c cb(dev, rn); rn 1024 drivers/w1/w1.c rn |= (tmp64 << i); rn 1039 drivers/w1/w1.c dev->search_id = rn; rn 1042 drivers/w1/w1.c cb(dev, rn); rn 44 drivers/w1/w1_internal.h void w1_slave_found(struct w1_master *dev, u64 rn); rn 48 drivers/w1/w1_internal.h struct w1_reg_num *rn); rn 57 drivers/w1/w1_internal.h int w1_attach_slave_device(struct w1_master *dev, struct w1_reg_num *rn); rn 396 drivers/w1/w1_io.c u64 rn = le64_to_cpu(*((u64*)&sl->reg_num)); rn 398 drivers/w1/w1_io.c memcpy(&match[1], &rn, 8); rn 234 drivers/w1/w1_netlink.c static void w1_send_slave(struct w1_master *dev, u64 rn) rn 250 drivers/w1/w1_netlink.c *data = rn; rn 256 drivers/w1/w1_netlink.c static void w1_found_send_slave(struct w1_master *dev, u64 rn) rn 259 drivers/w1/w1_netlink.c w1_slave_found(dev, rn); rn 261 drivers/w1/w1_netlink.c w1_send_slave(dev, rn); rn 273 drivers/w1/w1_netlink.c u64 rn; rn 276 drivers/w1/w1_netlink.c memcpy(&rn, &sl->reg_num, sizeof(rn)); rn 277 drivers/w1/w1_netlink.c w1_send_slave(dev, rn); rn 738 fs/f2fs/data.c struct f2fs_node *rn = F2FS_NODE(dn->node_page); rn 746 fs/f2fs/data.c addr_array = blkaddr_in_node(rn); rn 899 fs/f2fs/node.c struct f2fs_node *rn; rn 918 fs/f2fs/node.c rn = F2FS_NODE(page); rn 921 fs/f2fs/node.c child_nid = le32_to_cpu(rn->in.nid[i]); rn 934 fs/f2fs/node.c child_nid = le32_to_cpu(rn->in.nid[i]); rn 2664 fs/f2fs/node.c struct f2fs_node *rn; rn 2686 fs/f2fs/node.c rn = F2FS_NODE(page); rn 2687 fs/f2fs/node.c sum_entry->nid = rn->footer.nid; rn 238 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(node_page); rn 239 fs/f2fs/node.h return le32_to_cpu(rn->footer.ino); rn 244 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(node_page); rn 245 fs/f2fs/node.h return le32_to_cpu(rn->footer.nid); rn 250 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(node_page); rn 251 fs/f2fs/node.h unsigned flag = le32_to_cpu(rn->footer.flag); rn 257 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(node_page); rn 258 fs/f2fs/node.h return le64_to_cpu(rn->footer.cp_ver); rn 263 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(node_page); rn 264 fs/f2fs/node.h return le32_to_cpu(rn->footer.next_blkaddr); rn 270 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(page); rn 274 fs/f2fs/node.h memset(rn, 0, sizeof(*rn)); rn 276 fs/f2fs/node.h old_flag = le32_to_cpu(rn->footer.flag); rn 278 fs/f2fs/node.h rn->footer.nid = cpu_to_le32(nid); rn 279 fs/f2fs/node.h rn->footer.ino = cpu_to_le32(ino); rn 282 fs/f2fs/node.h rn->footer.flag = cpu_to_le32((ofs << OFFSET_BIT_SHIFT) | rn 296 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(page); rn 302 fs/f2fs/node.h rn->footer.cp_ver = cpu_to_le64(cp_ver); rn 303 fs/f2fs/node.h rn->footer.next_blkaddr = cpu_to_le32(blkaddr); rn 362 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(p); rn 367 fs/f2fs/node.h rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); rn 369 fs/f2fs/node.h rn->in.nid[off] = cpu_to_le32(nid); rn 375 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(p); rn 378 fs/f2fs/node.h return le32_to_cpu(rn->i.i_nid[off - NODE_DIR1_BLOCK]); rn 379 fs/f2fs/node.h return le32_to_cpu(rn->in.nid[off]); rn 405 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(page); rn 406 fs/f2fs/node.h return le32_to_cpu(rn->footer.flag) & (1 << type); rn 430 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(page); rn 431 fs/f2fs/node.h unsigned int flag = le32_to_cpu(rn->footer.flag); rn 437 fs/f2fs/node.h rn->footer.flag = cpu_to_le32(flag); rn 442 fs/f2fs/node.h struct f2fs_node *rn = F2FS_NODE(page); rn 443 fs/f2fs/node.h unsigned int flag = le32_to_cpu(rn->footer.flag); rn 448 fs/f2fs/node.h rn->footer.flag = cpu_to_le32(flag); rn 221 include/linux/math64.h } rl, rm, rn, rh, a0, b0; rn 229 include/linux/math64.h rn.ll = mul_u32_u32(a0.l.high, b0.l.low); rn 237 include/linux/math64.h rl.l.high = c = (u64)rl.l.high + rm.l.low + rn.l.low; rn 238 include/linux/math64.h rh.l.low = c = (c >> 32) + rm.l.high + rn.l.high + rh.l.low; rn 76 include/rdma/opa_vnic.h struct rdma_netdev rn; /* keep this first */ rn 83 include/rdma/opa_vnic.h struct rdma_netdev *rn = netdev_priv(dev); rn 85 include/rdma/opa_vnic.h return rn->clnt_priv; rn 29 include/scsi/fc_encode.h struct fc_ns_rn_id rn; rn 162 include/scsi/fc_encode.h hton24(ct->payload.rn.fr_fid.fp_fid, lport->port_id); rn 163 include/scsi/fc_encode.h put_unaligned_be64(lport->wwnn, &ct->payload.rn.fr_wwn); rn 110 kernel/irq/affinity.c const struct node_vectors *rn = r; rn 112 kernel/irq/affinity.c return ln->ncpus - rn->ncpus; rn 207 kernel/rcu/rcu.h static inline bool __rcu_reclaim(const char *rn, struct rcu_head *head) rn 214 kernel/rcu/rcu.h trace_rcu_invoke_kfree_callback(rn, head, offset); rn 219 kernel/rcu/rcu.h trace_rcu_invoke_callback(rn, head); rn 1054 net/xfrm/xfrm_policy.c struct rb_node *rn = rb_first(r); rn 1056 net/xfrm/xfrm_policy.c while (rn) { rn 1057 net/xfrm/xfrm_policy.c node = rb_entry(rn, struct xfrm_pol_inexact_node, node); rn 1060 net/xfrm/xfrm_policy.c rn = rb_next(rn); rn 444 samples/bpf/test_lru_dist.c int rn; rn 446 samples/bpf/test_lru_dist.c rn = rand(); rn 448 samples/bpf/test_lru_dist.c if (rn % 10) { rn 449 samples/bpf/test_lru_dist.c key = rn % nr_stable_elems + stable_base; rn 11 tools/perf/arch/powerpc/util/header.c #define mfspr(rn) ({unsigned long rval; \ rn 12 tools/perf/arch/powerpc/util/header.c asm volatile("mfspr %0," __stringify(rn) \ rn 48 tools/perf/util/intlist.h struct rb_node *rn = rb_first_cached(&ilist->rblist.entries); rn 49 tools/perf/util/intlist.h return rn ? rb_entry(rn, struct int_node, rb_node) : NULL; rn 53 tools/perf/util/intlist.h struct rb_node *rn; rn 56 tools/perf/util/intlist.h rn = rb_next(&in->rb_node); rn 57 tools/perf/util/intlist.h return rn ? rb_entry(rn, struct int_node, rb_node) : NULL; rn 60 tools/perf/util/strlist.h struct rb_node *rn = rb_first_cached(&slist->rblist.entries); rn 61 tools/perf/util/strlist.h return rn ? rb_entry(rn, struct str_node, rb_node) : NULL; rn 65 tools/perf/util/strlist.h struct rb_node *rn; rn 68 tools/perf/util/strlist.h rn = rb_next(&sn->rb_node); rn 69 tools/perf/util/strlist.h return rn ? rb_entry(rn, struct str_node, rb_node) : NULL; rn 12 tools/testing/selftests/powerpc/include/reg.h #define mfspr(rn) ({unsigned long rval; \ rn 13 tools/testing/selftests/powerpc/include/reg.h asm volatile("mfspr %0," _str(rn) \ rn 15 tools/testing/selftests/powerpc/include/reg.h #define mtspr(rn, v) asm volatile("mtspr " _str(rn) ",%0" : \