ri 386 arch/arc/kernel/kprobes.c void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 390 arch/arc/kernel/kprobes.c ri->ret_addr = (kprobe_opcode_t *) regs->blink; ri 399 arch/arc/kernel/kprobes.c struct kretprobe_instance *ri = NULL; ri 421 arch/arc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 422 arch/arc/kernel/kprobes.c if (ri->task != current) ri 426 arch/arc/kernel/kprobes.c if (ri->rp && ri->rp->handler) ri 427 arch/arc/kernel/kprobes.c ri->rp->handler(ri, regs); ri 429 arch/arc/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 430 arch/arc/kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 442 arch/arc/kernel/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 447 arch/arc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 448 arch/arc/kernel/kprobes.c hlist_del(&ri->hlist); ri 449 arch/arc/kernel/kprobes.c kfree(ri); ri 416 arch/arm/probes/kprobes/core.c struct kretprobe_instance *ri = NULL; ri 439 arch/arm/probes/kprobes/core.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 440 arch/arm/probes/kprobes/core.c if (ri->task != current) ri 444 arch/arm/probes/kprobes/core.c orig_ret_address = (unsigned long)ri->ret_addr; ri 455 arch/arm/probes/kprobes/core.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 457 arch/arm/probes/kprobes/core.c correct_ret_addr = ri->ret_addr; ri 458 arch/arm/probes/kprobes/core.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 459 arch/arm/probes/kprobes/core.c if (ri->task != current) ri 463 arch/arm/probes/kprobes/core.c orig_ret_address = (unsigned long)ri->ret_addr; ri 464 arch/arm/probes/kprobes/core.c if (ri->rp && ri->rp->handler) { ri 465 arch/arm/probes/kprobes/core.c __this_cpu_write(current_kprobe, &ri->rp->kp); ri 467 arch/arm/probes/kprobes/core.c ri->ret_addr = correct_ret_addr; ri 468 arch/arm/probes/kprobes/core.c ri->rp->handler(ri, regs); ri 472 arch/arm/probes/kprobes/core.c recycle_rp_inst(ri, &empty_rp); ri 485 arch/arm/probes/kprobes/core.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 486 arch/arm/probes/kprobes/core.c hlist_del(&ri->hlist); ri 487 arch/arm/probes/kprobes/core.c kfree(ri); ri 493 arch/arm/probes/kprobes/core.c void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 496 arch/arm/probes/kprobes/core.c ri->ret_addr = (kprobe_opcode_t *)regs->ARM_lr; ri 370 arch/arm/probes/kprobes/test-core.c kretprobe_handler(struct kretprobe_instance *ri, struct pt_regs *regs) ri 153 arch/arm64/kernel/pci.c struct acpi_pci_generic_root_info *ri; ri 155 arch/arm64/kernel/pci.c ri = container_of(ci, struct acpi_pci_generic_root_info, common); ri 156 arch/arm64/kernel/pci.c pci_ecam_free(ri->cfg); ri 158 arch/arm64/kernel/pci.c kfree(ri); ri 164 arch/arm64/kernel/pci.c struct acpi_pci_generic_root_info *ri; ri 169 arch/arm64/kernel/pci.c ri = kzalloc(sizeof(*ri), GFP_KERNEL); ri 170 arch/arm64/kernel/pci.c if (!ri) ri 175 arch/arm64/kernel/pci.c kfree(ri); ri 179 arch/arm64/kernel/pci.c ri->cfg = pci_acpi_setup_ecam_mapping(root); ri 180 arch/arm64/kernel/pci.c if (!ri->cfg) { ri 181 arch/arm64/kernel/pci.c kfree(ri); ri 188 arch/arm64/kernel/pci.c root_ops->pci_ops = &ri->cfg->ops->pci_ops; ri 189 arch/arm64/kernel/pci.c bus = acpi_pci_root_create(root, root_ops, &ri->common, ri->cfg); ri 477 arch/arm64/kernel/probes/kprobes.c struct kretprobe_instance *ri = NULL; ri 501 arch/arm64/kernel/probes/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 502 arch/arm64/kernel/probes/kprobes.c if (ri->task != current) ri 506 arch/arm64/kernel/probes/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 517 arch/arm64/kernel/probes/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 519 arch/arm64/kernel/probes/kprobes.c correct_ret_addr = ri->ret_addr; ri 520 arch/arm64/kernel/probes/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 521 arch/arm64/kernel/probes/kprobes.c if (ri->task != current) ri 525 arch/arm64/kernel/probes/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 526 arch/arm64/kernel/probes/kprobes.c if (ri->rp && ri->rp->handler) { ri 527 arch/arm64/kernel/probes/kprobes.c __this_cpu_write(current_kprobe, &ri->rp->kp); ri 529 arch/arm64/kernel/probes/kprobes.c ri->ret_addr = correct_ret_addr; ri 530 arch/arm64/kernel/probes/kprobes.c ri->rp->handler(ri, regs); ri 534 arch/arm64/kernel/probes/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 547 arch/arm64/kernel/probes/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 548 arch/arm64/kernel/probes/kprobes.c hlist_del(&ri->hlist); ri 549 arch/arm64/kernel/probes/kprobes.c kfree(ri); ri 554 arch/arm64/kernel/probes/kprobes.c void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 557 arch/arm64/kernel/probes/kprobes.c ri->ret_addr = (kprobe_opcode_t *)regs->regs[30]; ri 15 arch/ia64/include/asm/exception.h e = search_exception_tables((regs)->cr_iip + ia64_psr(regs)->ri); \ ri 117 arch/ia64/include/asm/processor.h __u64 ri : 2; ri 349 arch/ia64/include/asm/processor.h _regs->cr_iip + ia64_psr(_regs)->ri; \ ri 53 arch/ia64/include/asm/ptrace.h # define instruction_pointer(regs) ((regs)->cr_iip + ia64_psr(regs)->ri) ri 76 arch/ia64/kernel/brl_emu.c if (ia64_psr(regs)->ri != 1) return rv; ri 105 arch/ia64/kernel/brl_emu.c ia64_psr(regs)->ri = 0; ri 121 arch/ia64/kernel/brl_emu.c ia64_psr(regs)->ri = 0; ri 187 arch/ia64/kernel/brl_emu.c ia64_psr(regs)->ri = 0; ri 409 arch/ia64/kernel/kprobes.c struct kretprobe_instance *ri = NULL; ri 432 arch/ia64/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 433 arch/ia64/kernel/kprobes.c if (ri->task != current) ri 437 arch/ia64/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 449 arch/ia64/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 450 arch/ia64/kernel/kprobes.c if (ri->task != current) ri 454 arch/ia64/kernel/kprobes.c if (ri->rp && ri->rp->handler) ri 455 arch/ia64/kernel/kprobes.c ri->rp->handler(ri, regs); ri 457 arch/ia64/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 458 arch/ia64/kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 468 arch/ia64/kernel/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 472 arch/ia64/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 473 arch/ia64/kernel/kprobes.c hlist_del(&ri->hlist); ri 474 arch/ia64/kernel/kprobes.c kfree(ri); ri 484 arch/ia64/kernel/kprobes.c void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 487 arch/ia64/kernel/kprobes.c ri->ret_addr = (kprobe_opcode_t *)regs->b0; ri 751 arch/ia64/kernel/kprobes.c ia64_psr(regs)->ri = slot; ri 759 arch/ia64/kernel/kprobes.c unsigned int slot = ia64_psr(regs)->ri; ri 847 arch/ia64/kernel/kprobes.c ia64_psr(regs)->ri = p->ainsn.slot; ri 910 arch/ia64/kernel/kprobes.c ia64_psr(regs)->ri = ((unsigned long)cur->addr) & 0xf; ri 552 arch/ia64/kernel/mca_drv.c psr2->ri = 0; ri 102 arch/ia64/kernel/process.c unsigned long ip = regs->cr_iip + ia64_psr(regs)->ri; ri 494 arch/ia64/kernel/process.c dst[42] = ip + ia64_psr(pt)->ri; ri 156 arch/ia64/kernel/ptrace.c unsigned long w0, ri = ia64_psr(regs)->ri + 1; ri 158 arch/ia64/kernel/ptrace.c if (ri > 2) { ri 159 arch/ia64/kernel/ptrace.c ri = 0; ri 161 arch/ia64/kernel/ptrace.c } else if (ri == 2) { ri 169 arch/ia64/kernel/ptrace.c ri = 0; ri 173 arch/ia64/kernel/ptrace.c ia64_psr(regs)->ri = ri; ri 179 arch/ia64/kernel/ptrace.c unsigned long w0, ri = ia64_psr(regs)->ri - 1; ri 181 arch/ia64/kernel/ptrace.c if (ia64_psr(regs)->ri == 0) { ri 183 arch/ia64/kernel/ptrace.c ri = 2; ri 191 arch/ia64/kernel/ptrace.c ri = 1; ri 194 arch/ia64/kernel/ptrace.c ia64_psr(regs)->ri = ri; ri 75 arch/ia64/kernel/signal.c ia64_psr(&scr->pt)->ri = ip & 0x3; ri 203 arch/ia64/kernel/signal.c err |= __put_user(scr->pt.cr_iip + ia64_psr(&scr->pt)->ri, &sc->sc_ip); ri 292 arch/ia64/kernel/signal.c ia64_psr(&scr->pt)->ri = 0; /* start executing in first slot */ ri 178 arch/ia64/kernel/traps.c (void __user *) (regs->cr_iip + ia64_psr(regs)->ri), ri 290 arch/ia64/kernel/traps.c if (!fp_fault && (ia64_psr(regs)->ri == 0)) ri 323 arch/ia64/kernel/traps.c current->comm, task_pid_nr(current), regs->cr_iip + ia64_psr(regs)->ri, isr); ri 355 arch/ia64/kernel/traps.c (void __user *) (regs->cr_iip + ia64_psr(regs)->ri), ri 375 arch/ia64/kernel/traps.c (void __user *) (regs->cr_iip + ia64_psr(regs)->ri), ri 410 arch/ia64/kernel/traps.c (void __user *) (regs.cr_iip + ia64_psr(®s)->ri), ri 443 arch/ia64/kernel/traps.c iip = regs.cr_iip + ia64_psr(®s)->ri; ri 455 arch/ia64/kernel/traps.c regs.cr_iip + ia64_psr(®s)->ri, regs.pr); ri 483 arch/ia64/kernel/traps.c + ia64_psr(®s)->ri); ri 521 arch/ia64/kernel/traps.c ia64_psr(®s)->ri = 0; ri 1321 arch/ia64/kernel/unaligned.c eh = search_exception_tables(regs->cr_iip + ia64_psr(regs)->ri); ri 1336 arch/ia64/kernel/unaligned.c ifa, regs->cr_iip + ipsr->ri); ri 1366 arch/ia64/kernel/unaligned.c ifa, regs->cr_iip + ipsr->ri); ri 1374 arch/ia64/kernel/unaligned.c regs->cr_iip, ifa, regs->cr_ipsr, ipsr->ri, ipsr->it); ri 1382 arch/ia64/kernel/unaligned.c switch (ipsr->ri) { ri 1513 arch/ia64/kernel/unaligned.c if (ipsr->ri == 2) ri 1520 arch/ia64/kernel/unaligned.c ipsr->ri = (ipsr->ri + 1) & 0x3; ri 1522 arch/ia64/kernel/unaligned.c DPRINT("ipsr->ri=%d iip=%lx\n", ipsr->ri, regs->cr_iip); ri 23 arch/ia64/mm/extable.c ia64_psr(regs)->ri = fix & 0x3; /* set continuation slot number */ ri 89 arch/mips/include/asm/branch.h if (inst->ri.opcode == MIPS16e_extend_op) { ri 3762 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t ri:1; ri 3776 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t ri:1; ri 4177 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t ri:1; ri 4191 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t ri:1; ri 1099 arch/mips/include/uapi/asm/inst.h struct m16e_ri ri; ri 42 arch/mips/kernel/branch.c if (inst_mips16e.ri.opcode == MIPS16e_jal_op) ri 335 arch/mips/kernel/branch.c switch (inst.ri.opcode) { ri 476 arch/mips/kernel/kprobes.c void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 479 arch/mips/kernel/kprobes.c ri->ret_addr = (kprobe_opcode_t *) regs->regs[31]; ri 491 arch/mips/kernel/kprobes.c struct kretprobe_instance *ri = NULL; ri 513 arch/mips/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 514 arch/mips/kernel/kprobes.c if (ri->task != current) ri 518 arch/mips/kernel/kprobes.c if (ri->rp && ri->rp->handler) ri 519 arch/mips/kernel/kprobes.c ri->rp->handler(ri, regs); ri 521 arch/mips/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 522 arch/mips/kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 533 arch/mips/kernel/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 538 arch/mips/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 539 arch/mips/kernel/kprobes.c hlist_del(&ri->hlist); ri 540 arch/mips/kernel/kprobes.c kfree(ri); ri 2032 arch/mips/kernel/unaligned.c if (mips16inst.ri.opcode == MIPS16e_extend_op) { ri 2039 arch/mips/kernel/unaligned.c if (mips16inst.ri.opcode == MIPS16e_jal_op) ri 2046 arch/mips/kernel/unaligned.c opcode = mips16inst.ri.opcode; ri 2067 arch/mips/kernel/unaligned.c reg = reg16to32[mips16inst.ri.rx]; ri 2069 arch/mips/kernel/unaligned.c switch (mips16inst.ri.imm >> 5) { ri 2082 arch/mips/kernel/unaligned.c reg = reg16to32[mips16inst.ri.rx]; ri 2086 arch/mips/kernel/unaligned.c reg = reg16to32[mips16inst.ri.rx]; ri 2088 arch/mips/kernel/unaligned.c switch (mips16inst.ri.imm >> 5) { ri 194 arch/parisc/kernel/kprobes.c struct kretprobe_instance *ri = NULL; ri 217 arch/parisc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 218 arch/parisc/kernel/kprobes.c if (ri->task != current) ri 222 arch/parisc/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 233 arch/parisc/kernel/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 235 arch/parisc/kernel/kprobes.c correct_ret_addr = ri->ret_addr; ri 236 arch/parisc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 237 arch/parisc/kernel/kprobes.c if (ri->task != current) ri 241 arch/parisc/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 242 arch/parisc/kernel/kprobes.c if (ri->rp && ri->rp->handler) { ri 243 arch/parisc/kernel/kprobes.c __this_cpu_write(current_kprobe, &ri->rp->kp); ri 245 arch/parisc/kernel/kprobes.c ri->ret_addr = correct_ret_addr; ri 246 arch/parisc/kernel/kprobes.c ri->rp->handler(ri, regs); ri 250 arch/parisc/kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 263 arch/parisc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 264 arch/parisc/kernel/kprobes.c hlist_del(&ri->hlist); ri 265 arch/parisc/kernel/kprobes.c kfree(ri); ri 271 arch/parisc/kernel/kprobes.c void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 274 arch/parisc/kernel/kprobes.c ri->ret_addr = (kprobe_opcode_t *)regs->gr[2]; ri 207 arch/powerpc/kernel/kprobes.c void arch_prepare_kretprobe(struct kretprobe_instance *ri, struct pt_regs *regs) ri 209 arch/powerpc/kernel/kprobes.c ri->ret_addr = (kprobe_opcode_t *)regs->link; ri 399 arch/powerpc/kernel/kprobes.c struct kretprobe_instance *ri = NULL; ri 421 arch/powerpc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 422 arch/powerpc/kernel/kprobes.c if (ri->task != current) ri 426 arch/powerpc/kernel/kprobes.c if (ri->rp && ri->rp->handler) ri 427 arch/powerpc/kernel/kprobes.c ri->rp->handler(ri, regs); ri 429 arch/powerpc/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 430 arch/powerpc/kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 441 arch/powerpc/kernel/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 463 arch/powerpc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 464 arch/powerpc/kernel/kprobes.c hlist_del(&ri->hlist); ri 465 arch/powerpc/kernel/kprobes.c kfree(ri); ri 75 arch/s390/boot/pgm_check_info.c *p++ = hex_asc_lo(psw->ri); ri 46 arch/s390/include/asm/ptrace.h unsigned long ri : 1; /* Runtime Instrumentation */ ri 159 arch/s390/kernel/dumpstack.c pr_cont(" RI:%x EA:%x\n", psw->ri, psw->eaba); ri 261 arch/s390/kernel/kprobes.c void arch_prepare_kretprobe(struct kretprobe_instance *ri, struct pt_regs *regs) ri 263 arch/s390/kernel/kprobes.c ri->ret_addr = (kprobe_opcode_t *) regs->gprs[14]; ri 367 arch/s390/kernel/kprobes.c struct kretprobe_instance *ri; ri 390 arch/s390/kernel/kprobes.c ri = NULL; ri 394 arch/s390/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 395 arch/s390/kernel/kprobes.c if (ri->task != current) ri 399 arch/s390/kernel/kprobes.c orig_ret_address = (unsigned long) ri->ret_addr; ri 410 arch/s390/kernel/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 412 arch/s390/kernel/kprobes.c correct_ret_addr = ri->ret_addr; ri 413 arch/s390/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 414 arch/s390/kernel/kprobes.c if (ri->task != current) ri 418 arch/s390/kernel/kprobes.c orig_ret_address = (unsigned long) ri->ret_addr; ri 420 arch/s390/kernel/kprobes.c if (ri->rp && ri->rp->handler) { ri 421 arch/s390/kernel/kprobes.c ri->ret_addr = correct_ret_addr; ri 422 arch/s390/kernel/kprobes.c ri->rp->handler(ri, regs); ri 425 arch/s390/kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 440 arch/s390/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 441 arch/s390/kernel/kprobes.c hlist_del(&ri->hlist); ri 442 arch/s390/kernel/kprobes.c kfree(ri); ri 203 arch/sh/kernel/kprobes.c void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 206 arch/sh/kernel/kprobes.c ri->ret_addr = (kprobe_opcode_t *) regs->pr; ri 305 arch/sh/kernel/kprobes.c struct kretprobe_instance *ri = NULL; ri 327 arch/sh/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 328 arch/sh/kernel/kprobes.c if (ri->task != current) ri 332 arch/sh/kernel/kprobes.c if (ri->rp && ri->rp->handler) { ri 333 arch/sh/kernel/kprobes.c __this_cpu_write(current_kprobe, &ri->rp->kp); ri 334 arch/sh/kernel/kprobes.c ri->rp->handler(ri, regs); ri 338 arch/sh/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 339 arch/sh/kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 350 arch/sh/kernel/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 355 arch/sh/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 356 arch/sh/kernel/kprobes.c hlist_del(&ri->hlist); ri 357 arch/sh/kernel/kprobes.c kfree(ri); ri 452 arch/sparc/kernel/kprobes.c void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 455 arch/sparc/kernel/kprobes.c ri->ret_addr = (kprobe_opcode_t *)(regs->u_regs[UREG_RETPC] + 8); ri 468 arch/sparc/kernel/kprobes.c struct kretprobe_instance *ri = NULL; ri 490 arch/sparc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 491 arch/sparc/kernel/kprobes.c if (ri->task != current) ri 495 arch/sparc/kernel/kprobes.c if (ri->rp && ri->rp->handler) ri 496 arch/sparc/kernel/kprobes.c ri->rp->handler(ri, regs); ri 498 arch/sparc/kernel/kprobes.c orig_ret_address = (unsigned long)ri->ret_addr; ri 499 arch/sparc/kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 510 arch/sparc/kernel/kprobes.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 516 arch/sparc/kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 517 arch/sparc/kernel/kprobes.c hlist_del(&ri->hlist); ri 518 arch/sparc/kernel/kprobes.c kfree(ri); ri 565 arch/x86/kernel/kprobes/core.c void arch_prepare_kretprobe(struct kretprobe_instance *ri, struct pt_regs *regs) ri 569 arch/x86/kernel/kprobes/core.c ri->ret_addr = (kprobe_opcode_t *) *sara; ri 570 arch/x86/kernel/kprobes/core.c ri->fp = sara; ri 759 arch/x86/kernel/kprobes/core.c struct kretprobe_instance *ri = NULL; ri 805 arch/x86/kernel/kprobes/core.c hlist_for_each_entry(ri, head, hlist) { ri 806 arch/x86/kernel/kprobes/core.c if (ri->task != current) ri 817 arch/x86/kernel/kprobes/core.c if (ri->fp != frame_pointer) { ri 824 arch/x86/kernel/kprobes/core.c orig_ret_address = (unsigned long)ri->ret_addr; ri 827 arch/x86/kernel/kprobes/core.c ri->rp->kp.addr); ri 838 arch/x86/kernel/kprobes/core.c kretprobe_assert(ri, orig_ret_address, trampoline_address); ri 840 arch/x86/kernel/kprobes/core.c correct_ret_addr = ri->ret_addr; ri 841 arch/x86/kernel/kprobes/core.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 842 arch/x86/kernel/kprobes/core.c if (ri->task != current) ri 845 arch/x86/kernel/kprobes/core.c if (ri->fp != frame_pointer) ri 848 arch/x86/kernel/kprobes/core.c orig_ret_address = (unsigned long)ri->ret_addr; ri 849 arch/x86/kernel/kprobes/core.c if (ri->rp && ri->rp->handler) { ri 850 arch/x86/kernel/kprobes/core.c __this_cpu_write(current_kprobe, &ri->rp->kp); ri 851 arch/x86/kernel/kprobes/core.c ri->ret_addr = correct_ret_addr; ri 852 arch/x86/kernel/kprobes/core.c ri->rp->handler(ri, regs); ri 856 arch/x86/kernel/kprobes/core.c recycle_rp_inst(ri, &empty_rp); ri 872 arch/x86/kernel/kprobes/core.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 873 arch/x86/kernel/kprobes/core.c hlist_del(&ri->hlist); ri 874 arch/x86/kernel/kprobes/core.c kfree(ri); ri 160 drivers/acpi/ec.c u8 ri; ri 665 drivers/acpi/ec.c } else if (t->rlen > t->ri) { ri 667 drivers/acpi/ec.c t->rdata[t->ri++] = acpi_ec_read_data(ec); ri 668 drivers/acpi/ec.c if (t->rlen == t->ri) { ri 688 drivers/acpi/ec.c t->rdata[t->ri++] = 0x00; ri 723 drivers/acpi/ec.c ec->curr->irq_count = ec->curr->wi = ec->curr->ri = 0; ri 137 drivers/clk/mmp/clk-mix.c struct mmp_clk_mix_reg_info *ri = &mix->reg_info; ri 151 drivers/clk/mmp/clk-mix.c mux_div = readl(ri->reg_clk_ctrl); ri 153 drivers/clk/mmp/clk-mix.c mux_div = readl(ri->reg_clk_sel); ri 156 drivers/clk/mmp/clk-mix.c width = ri->width_div; ri 157 drivers/clk/mmp/clk-mix.c shift = ri->shift_div; ri 163 drivers/clk/mmp/clk-mix.c width = ri->width_mux; ri 164 drivers/clk/mmp/clk-mix.c shift = ri->shift_mux; ri 170 drivers/clk/mmp/clk-mix.c writel(mux_div, ri->reg_clk_ctrl); ri 172 drivers/clk/mmp/clk-mix.c mux_div |= (1 << ri->bit_fc); ri 173 drivers/clk/mmp/clk-mix.c writel(mux_div, ri->reg_clk_ctrl); ri 176 drivers/clk/mmp/clk-mix.c fc_req = readl(ri->reg_clk_ctrl); ri 178 drivers/clk/mmp/clk-mix.c if (!(fc_req & (1 << ri->bit_fc))) ri 189 drivers/clk/mmp/clk-mix.c fc_req = readl(ri->reg_clk_ctrl); ri 190 drivers/clk/mmp/clk-mix.c fc_req |= 1 << ri->bit_fc; ri 191 drivers/clk/mmp/clk-mix.c writel(fc_req, ri->reg_clk_ctrl); ri 192 drivers/clk/mmp/clk-mix.c writel(mux_div, ri->reg_clk_sel); ri 193 drivers/clk/mmp/clk-mix.c fc_req &= ~(1 << ri->bit_fc); ri 292 drivers/clk/mmp/clk-mix.c struct mmp_clk_mix_reg_info *ri = &mix->reg_info; ri 303 drivers/clk/mmp/clk-mix.c mux_div = readl(ri->reg_clk_ctrl); ri 305 drivers/clk/mmp/clk-mix.c mux_div = readl(ri->reg_clk_sel); ri 322 drivers/clk/mmp/clk-mix.c struct mmp_clk_mix_reg_info *ri = &mix->reg_info; ri 333 drivers/clk/mmp/clk-mix.c mux_div = readl(ri->reg_clk_ctrl); ri 335 drivers/clk/mmp/clk-mix.c mux_div = readl(ri->reg_clk_sel); ri 682 drivers/edac/edac_mc_sysfs.c struct csrow_info *ri = mci->csrows[row]; ri 684 drivers/edac/edac_mc_sysfs.c ri->ue_count = 0; ri 685 drivers/edac/edac_mc_sysfs.c ri->ce_count = 0; ri 687 drivers/edac/edac_mc_sysfs.c for (chan = 0; chan < ri->nr_channels; chan++) ri 688 drivers/edac/edac_mc_sysfs.c ri->channels[chan]->ce_count = 0; ri 288 drivers/gpu/drm/i915/display/intel_display_types.h int (*read_ri_prime)(struct intel_digital_port *intel_dig_port, u8 *ri); ri 593 drivers/gpu/drm/i915/display/intel_hdcp.c } ri; ri 688 drivers/gpu/drm/i915/display/intel_hdcp.c ri.reg = 0; ri 689 drivers/gpu/drm/i915/display/intel_hdcp.c ret = shim->read_ri_prime(intel_dig_port, ri.shim); ri 692 drivers/gpu/drm/i915/display/intel_hdcp.c I915_WRITE(PORT_HDCP_RPRIME(port), ri.reg); ri 1499 drivers/gpu/drm/i915/display/intel_hdmi.c } ri; ri 1501 drivers/gpu/drm/i915/display/intel_hdmi.c ret = intel_hdmi_hdcp_read_ri_prime(intel_dig_port, ri.shim); ri 1505 drivers/gpu/drm/i915/display/intel_hdmi.c I915_WRITE(PORT_HDCP_RPRIME(port), ri.reg); ri 111 drivers/gpu/drm/nouveau/dispnv50/headc57d.c u16 ri = 0, gi = 0, bi = 0, i; ri 114 drivers/gpu/drm/nouveau/dispnv50/headc57d.c ri = (drm_color_lut_extract(in-> red, 16) - r) / 4; ri 120 drivers/gpu/drm/nouveau/dispnv50/headc57d.c writew(r + ri * i, mem + 0); ri 340 drivers/gpu/drm/virtio/virtgpu_ioctl.c struct drm_virtgpu_resource_info *ri = data; ri 344 drivers/gpu/drm/virtio/virtgpu_ioctl.c gobj = drm_gem_object_lookup(file_priv, ri->bo_handle); ri 350 drivers/gpu/drm/virtio/virtgpu_ioctl.c ri->size = qobj->gem_base.size; ri 351 drivers/gpu/drm/virtio/virtgpu_ioctl.c ri->res_handle = qobj->hw_res_handle; ri 100 drivers/infiniband/hw/cxgb4/t4.h struct fw_ri_wr ri; ri 29 drivers/isdn/mISDN/layer2.h int ri; ri 432 drivers/isdn/mISDN/tei.c put_tei_msg(struct manager *mgr, u_char m_id, unsigned int ri, int tei) ri 443 drivers/isdn/mISDN/tei.c bp[4] = ri >> 8; ri 444 drivers/isdn/mISDN/tei.c bp[5] = ri & 0xff; ri 466 drivers/isdn/mISDN/tei.c tm->ri = random_ri(); ri 469 drivers/isdn/mISDN/tei.c "assign request ri %d", tm->ri); ri 470 drivers/isdn/mISDN/tei.c put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); ri 482 drivers/isdn/mISDN/tei.c int ri, tei; ri 484 drivers/isdn/mISDN/tei.c ri = ((unsigned int) *dp++ << 8); ri 485 drivers/isdn/mISDN/tei.c ri += *dp++; ri 490 drivers/isdn/mISDN/tei.c ri, tei); ri 493 drivers/isdn/mISDN/tei.c if (ri != l2->tm->ri) { ri 498 drivers/isdn/mISDN/tei.c } else if (ri == tm->ri) { ri 511 drivers/isdn/mISDN/tei.c int tei, ri; ri 513 drivers/isdn/mISDN/tei.c ri = ((unsigned int) *dp++ << 8); ri 514 drivers/isdn/mISDN/tei.c ri += *dp++; ri 519 drivers/isdn/mISDN/tei.c ri, tei); ri 522 drivers/isdn/mISDN/tei.c if (ri != l2->tm->ri) { /* and it wasn't our request */ ri 535 drivers/isdn/mISDN/tei.c int ri, tei; ri 537 drivers/isdn/mISDN/tei.c ri = ((unsigned int) *dp++ << 8); ri 538 drivers/isdn/mISDN/tei.c ri += *dp++; ri 543 drivers/isdn/mISDN/tei.c ri, tei); ri 602 drivers/isdn/mISDN/tei.c tm->ri = random_ri(); ri 605 drivers/isdn/mISDN/tei.c 4 - tm->nval, tm->ri); ri 606 drivers/isdn/mISDN/tei.c put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); ri 670 drivers/isdn/mISDN/tei.c tm->ri = ((unsigned int) *dp++ << 8); ri 671 drivers/isdn/mISDN/tei.c tm->ri += *dp++; ri 674 drivers/isdn/mISDN/tei.c "net assign request ri %d teim %d", tm->ri, *dp); ri 675 drivers/isdn/mISDN/tei.c put_tei_msg(tm->mgr, ID_ASSIGNED, tm->ri, tm->l2->tei); ri 850 drivers/isdn/mISDN/tei.c int tei, ri; ri 853 drivers/isdn/mISDN/tei.c ri = dp[0] << 8; ri 854 drivers/isdn/mISDN/tei.c ri += dp[1]; ri 874 drivers/isdn/mISDN/tei.c put_tei_msg(mgr, ID_DENIED, ri, GROUP_TEI); ri 945 drivers/md/bcache/bset.c unsigned int li = 0, ri = t->size; ri 947 drivers/md/bcache/bset.c while (li + 1 != ri) { ri 948 drivers/md/bcache/bset.c unsigned int m = (li + ri) >> 1; ri 951 drivers/md/bcache/bset.c ri = m; ri 958 drivers/md/bcache/bset.c ri < t->size ? table_to_bkey(t, ri) : bset_bkey_last(t->data) ri 261 drivers/md/md-cluster.c struct resync_info *ri; ri 263 drivers/md/md-cluster.c ri = (struct resync_info *)lockres->lksb.sb_lvbptr; ri 264 drivers/md/md-cluster.c ri->lo = cpu_to_le64(lo); ri 265 drivers/md/md-cluster.c ri->hi = cpu_to_le64(hi); ri 271 drivers/md/md-cluster.c struct resync_info ri; ri 276 drivers/md/md-cluster.c memcpy(&ri, lockres->lksb.sb_lvbptr, sizeof(struct resync_info)); ri 277 drivers/md/md-cluster.c if (le64_to_cpu(ri.hi) > 0) { ri 278 drivers/md/md-cluster.c cinfo->suspend_hi = le64_to_cpu(ri.hi); ri 279 drivers/md/md-cluster.c cinfo->suspend_lo = le64_to_cpu(ri.lo); ri 1331 drivers/md/md-cluster.c struct resync_info ri; ri 1336 drivers/md/md-cluster.c memcpy(&ri, cinfo->bitmap_lockres->lksb.sb_lvbptr, sizeof(struct resync_info)); ri 1337 drivers/md/md-cluster.c if (le64_to_cpu(ri.hi) == 0) ri 124 drivers/media/pci/bt8xx/bttv-risc.c u32 ri; ri 199 drivers/media/pci/bt8xx/bttv-risc.c ri = BT848_RISC_WRITE123; ri 201 drivers/media/pci/bt8xx/bttv-risc.c ri = BT848_RISC_WRITE1S23; ri 204 drivers/media/pci/bt8xx/bttv-risc.c ri |= BT848_RISC_SOL; ri 206 drivers/media/pci/bt8xx/bttv-risc.c ri |= BT848_RISC_EOL; ri 209 drivers/media/pci/bt8xx/bttv-risc.c *(rp++)=cpu_to_le32(ri | ylen); ri 243 drivers/media/pci/bt8xx/bttv-risc.c u32 ri,ra; ri 289 drivers/media/pci/bt8xx/bttv-risc.c ri = BT848_RISC_WRITE; ri 292 drivers/media/pci/bt8xx/bttv-risc.c ri = BT848_RISC_WRITE; ri 295 drivers/media/pci/bt8xx/bttv-risc.c ri = BT848_RISC_SKIP; ri 299 drivers/media/pci/bt8xx/bttv-risc.c if (BT848_RISC_WRITE == ri) ri 305 drivers/media/pci/bt8xx/bttv-risc.c ri |= BT848_RISC_SOL; ri 307 drivers/media/pci/bt8xx/bttv-risc.c ri |= BT848_RISC_EOL; ri 308 drivers/media/pci/bt8xx/bttv-risc.c ri |= (fmt->depth>>3) * (end-start); ri 310 drivers/media/pci/bt8xx/bttv-risc.c *(rp++)=cpu_to_le32(ri); ri 426 drivers/message/fusion/mptfc.c struct mptfc_rport_info *ri; ri 440 drivers/message/fusion/mptfc.c list_for_each_entry(ri, &ioc->fc_rports, list) { ri 441 drivers/message/fusion/mptfc.c pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; ri 443 drivers/message/fusion/mptfc.c list_move_tail(&ri->list, &ioc->fc_rports); ri 449 drivers/message/fusion/mptfc.c ri = kzalloc(sizeof(struct mptfc_rport_info), GFP_KERNEL); ri 450 drivers/message/fusion/mptfc.c if (!ri) ri 452 drivers/message/fusion/mptfc.c list_add_tail(&ri->list, &ioc->fc_rports); ri 455 drivers/message/fusion/mptfc.c ri->pg0 = *pg0; /* add/update pg0 data */ ri 456 drivers/message/fusion/mptfc.c ri->flags &= ~MPT_RPORT_INFO_FLAGS_MISSING; ri 459 drivers/message/fusion/mptfc.c if (!(ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED)) { ri 460 drivers/message/fusion/mptfc.c ri->flags |= MPT_RPORT_INFO_FLAGS_REGISTERED; ri 463 drivers/message/fusion/mptfc.c ri->rport = rport; ri 471 drivers/message/fusion/mptfc.c if (ri->starget) { ri 472 drivers/message/fusion/mptfc.c vtarget = ri->starget->hostdata; ri 479 drivers/message/fusion/mptfc.c *((struct mptfc_rport_info **)rport->dd_data) = ri; ri 483 drivers/message/fusion/mptfc.c pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; ri 484 drivers/message/fusion/mptfc.c nn = (u64)ri->pg0.WWNN.High << 32 | (u64)ri->pg0.WWNN.Low; ri 494 drivers/message/fusion/mptfc.c ri->rport->scsi_target_id, ri 495 drivers/message/fusion/mptfc.c ri->rport->dev_loss_tmo)); ri 497 drivers/message/fusion/mptfc.c list_del(&ri->list); ri 498 drivers/message/fusion/mptfc.c kfree(ri); ri 499 drivers/message/fusion/mptfc.c ri = NULL; ri 512 drivers/message/fusion/mptfc.c struct mptfc_rport_info *ri; ri 516 drivers/message/fusion/mptfc.c ri = *((struct mptfc_rport_info **)rport->dd_data); ri 517 drivers/message/fusion/mptfc.c if (ri) /* better be! */ ri 518 drivers/message/fusion/mptfc.c ri->starget = NULL; ri 534 drivers/message/fusion/mptfc.c struct mptfc_rport_info *ri; ri 545 drivers/message/fusion/mptfc.c ri = *((struct mptfc_rport_info **)rport->dd_data); ri 546 drivers/message/fusion/mptfc.c if (ri) { /* better be! */ ri 547 drivers/message/fusion/mptfc.c vtarget->id = ri->pg0.CurrentTargetID; ri 548 drivers/message/fusion/mptfc.c vtarget->channel = ri->pg0.CurrentBus; ri 549 drivers/message/fusion/mptfc.c ri->starget = starget; ri 572 drivers/message/fusion/mptfc.c struct mptfc_rport_info *ri; ri 574 drivers/message/fusion/mptfc.c ri = *((struct mptfc_rport_info **)rport->dd_data); ri 575 drivers/message/fusion/mptfc.c pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; ri 576 drivers/message/fusion/mptfc.c nn = (u64)ri->pg0.WWNN.High << 32 | (u64)ri->pg0.WWNN.Low; ri 583 drivers/message/fusion/mptfc.c sdev->id, ri->pg0.CurrentTargetID, ri 584 drivers/message/fusion/mptfc.c ri->pg0.PortIdentifier, ri 645 drivers/message/fusion/mptfc.c struct mptfc_rport_info *ri; ri 664 drivers/message/fusion/mptfc.c ri = *((struct mptfc_rport_info **)rport->dd_data); ri 665 drivers/message/fusion/mptfc.c if (unlikely(!ri)) { ri 1085 drivers/message/fusion/mptfc.c struct mptfc_rport_info *ri; ri 1090 drivers/message/fusion/mptfc.c list_for_each_entry(ri, &ioc->fc_rports, list) { ri 1091 drivers/message/fusion/mptfc.c if (ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED) { ri 1092 drivers/message/fusion/mptfc.c ri->flags &= ~MPT_RPORT_INFO_FLAGS_REGISTERED; ri 1093 drivers/message/fusion/mptfc.c fc_remote_port_delete(ri->rport); /* won't sleep */ ri 1094 drivers/message/fusion/mptfc.c ri->rport = NULL; ri 1095 drivers/message/fusion/mptfc.c starget = ri->starget; ri 1102 drivers/message/fusion/mptfc.c pn = (u64)ri->pg0.WWPN.High << 32 | ri 1103 drivers/message/fusion/mptfc.c (u64)ri->pg0.WWPN.Low; ri 1120 drivers/message/fusion/mptfc.c struct mptfc_rport_info *ri; ri 1125 drivers/message/fusion/mptfc.c list_for_each_entry(ri, &ioc->fc_rports, list) { ri 1126 drivers/message/fusion/mptfc.c if (ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED) { ri 1127 drivers/message/fusion/mptfc.c ri->flags |= MPT_RPORT_INFO_FLAGS_MISSING; ri 1142 drivers/message/fusion/mptfc.c list_for_each_entry(ri, &ioc->fc_rports, list) { ri 1144 drivers/message/fusion/mptfc.c if (ri->flags & MPT_RPORT_INFO_FLAGS_MISSING) { ri 1146 drivers/message/fusion/mptfc.c ri->flags &= ~(MPT_RPORT_INFO_FLAGS_REGISTERED| ri 1148 drivers/message/fusion/mptfc.c fc_remote_port_delete(ri->rport); /* won't sleep */ ri 1149 drivers/message/fusion/mptfc.c ri->rport = NULL; ri 1150 drivers/message/fusion/mptfc.c starget = ri->starget; ri 1157 drivers/message/fusion/mptfc.c pn = (u64)ri->pg0.WWPN.High << 32 | ri 1158 drivers/message/fusion/mptfc.c (u64)ri->pg0.WWPN.Low; ri 443 drivers/mmc/host/sunxi-mmc.c u32 arg, cmd_val, ri; ri 462 drivers/mmc/host/sunxi-mmc.c ri = mmc_readl(host, REG_RINTR); ri 463 drivers/mmc/host/sunxi-mmc.c } while (!(ri & (SDXC_COMMAND_DONE | SDXC_INTERRUPT_ERROR_BIT)) && ri 466 drivers/mmc/host/sunxi-mmc.c if (!(ri & SDXC_COMMAND_DONE) || (ri & SDXC_INTERRUPT_ERROR_BIT)) { ri 614 drivers/mmc/host/vub300.c int ri = 0; ri 616 drivers/mmc/host/vub300.c add_offloaded_reg(vub300, &vub300->resp.irq.reg[ri]); ri 617 drivers/mmc/host/vub300.c ri += 1; ri 632 drivers/mmc/host/vub300.c int ri = 0; ri 634 drivers/mmc/host/vub300.c add_offloaded_reg(vub300, &vub300->resp.irq.reg[ri]); ri 635 drivers/mmc/host/vub300.c ri += 1; ri 1646 drivers/mmc/host/vub300.c int ri = 0; ri 1648 drivers/mmc/host/vub300.c add_offloaded_reg(vub300, &vub300->resp.pig.reg[ri]); ri 1649 drivers/mmc/host/vub300.c ri += 1; ri 1660 drivers/mmc/host/vub300.c int ri = 0; ri 1662 drivers/mmc/host/vub300.c add_offloaded_reg(vub300, &vub300->resp.pig.reg[ri]); ri 1663 drivers/mmc/host/vub300.c ri += 1; ri 1685 drivers/mmc/host/vub300.c int ri = 0; ri 1687 drivers/mmc/host/vub300.c add_offloaded_reg(vub300, &vub300->resp.pig.reg[ri]); ri 1688 drivers/mmc/host/vub300.c ri += 1; ri 2889 drivers/net/ethernet/broadcom/cnic.c u16 i, ri, hw_prod, last; ri 2893 drivers/net/ethernet/broadcom/cnic.c i = ri = last = info->sw_prod_idx; ri 2894 drivers/net/ethernet/broadcom/cnic.c ri &= MAX_KCQ_IDX; ri 2899 drivers/net/ethernet/broadcom/cnic.c kcqe = &info->kcq[KCQ_PG(ri)][KCQ_IDX(ri)]; ri 2902 drivers/net/ethernet/broadcom/cnic.c ri = i & MAX_KCQ_IDX; ri 6560 drivers/net/ethernet/broadcom/tg3.c struct tg3_tx_ring_info *ri = &tnapi->tx_buffers[sw_idx]; ri 6561 drivers/net/ethernet/broadcom/tg3.c struct sk_buff *skb = ri->skb; ri 6580 drivers/net/ethernet/broadcom/tg3.c dma_unmap_addr(ri, mapping), ri 6584 drivers/net/ethernet/broadcom/tg3.c ri->skb = NULL; ri 6586 drivers/net/ethernet/broadcom/tg3.c while (ri->fragmented) { ri 6587 drivers/net/ethernet/broadcom/tg3.c ri->fragmented = false; ri 6589 drivers/net/ethernet/broadcom/tg3.c ri = &tnapi->tx_buffers[sw_idx]; ri 6595 drivers/net/ethernet/broadcom/tg3.c ri = &tnapi->tx_buffers[sw_idx]; ri 6596 drivers/net/ethernet/broadcom/tg3.c if (unlikely(ri->skb != NULL || sw_idx == hw_idx)) ri 6600 drivers/net/ethernet/broadcom/tg3.c dma_unmap_addr(ri, mapping), ri 6604 drivers/net/ethernet/broadcom/tg3.c while (ri->fragmented) { ri 6605 drivers/net/ethernet/broadcom/tg3.c ri->fragmented = false; ri 6607 drivers/net/ethernet/broadcom/tg3.c ri = &tnapi->tx_buffers[sw_idx]; ri 6653 drivers/net/ethernet/broadcom/tg3.c static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) ri 6658 drivers/net/ethernet/broadcom/tg3.c if (!ri->data) ri 6661 drivers/net/ethernet/broadcom/tg3.c pci_unmap_single(tp->pdev, dma_unmap_addr(ri, mapping), ri 6663 drivers/net/ethernet/broadcom/tg3.c tg3_frag_free(skb_size <= PAGE_SIZE, ri->data); ri 6664 drivers/net/ethernet/broadcom/tg3.c ri->data = NULL; ri 6839 drivers/net/ethernet/broadcom/tg3.c struct ring_info *ri; ri 6851 drivers/net/ethernet/broadcom/tg3.c ri = &tp->napi[0].prodring.rx_std_buffers[desc_idx]; ri 6852 drivers/net/ethernet/broadcom/tg3.c dma_addr = dma_unmap_addr(ri, mapping); ri 6853 drivers/net/ethernet/broadcom/tg3.c data = ri->data; ri 6857 drivers/net/ethernet/broadcom/tg3.c ri = &tp->napi[0].prodring.rx_jmb_buffers[desc_idx]; ri 6858 drivers/net/ethernet/broadcom/tg3.c dma_addr = dma_unmap_addr(ri, mapping); ri 6859 drivers/net/ethernet/broadcom/tg3.c data = ri->data; ri 6905 drivers/net/ethernet/broadcom/tg3.c ri->data = NULL; ri 3451 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c SAME_INTF(ri) && SAME_INTF(iscsi) && SAME_INTF(fcoe)) ri 1759 drivers/net/ethernet/intel/fm10k/fm10k_pci.c unsigned int ri = 0, ti = 0; ri 1770 drivers/net/ethernet/intel/fm10k/fm10k_pci.c "%s-TxRx-%u", dev->name, ri++); ri 1774 drivers/net/ethernet/intel/fm10k/fm10k_pci.c "%s-rx-%u", dev->name, ri++); ri 1716 drivers/net/ethernet/intel/i40e/i40e_ethtool.c unsigned int i, j, ri; ri 1729 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ri = 0; ri 1734 drivers/net/ethernet/intel/i40e/i40e_ethtool.c reg_buf[ri++] = rd32(hw, reg); ri 3228 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c unsigned int ri = 0, ti = 0; ri 3237 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c "%s-TxRx-%u", netdev->name, ri++); ri 3241 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c "%s-rx-%u", netdev->name, ri++); ri 1535 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c unsigned int ri = 0, ti = 0; ri 1544 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c "%s-TxRx-%u", netdev->name, ri++); ri 1548 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c "%s-rx-%u", netdev->name, ri++); ri 20 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c .ri = _ri, \ ri 468 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c mvpp2_prs_add_flow(priv, flow->flow_id, flow->prs_ri.ri, ri 94 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c unsigned int ri, unsigned int ri_mask) ri 97 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c priv->prs_shadow[index].ri = ri; ri 448 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c unsigned int ri; ri 454 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c ri = MVPP2_PRS_RI_L2_UCAST; ri 458 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c ri = MVPP2_PRS_RI_L2_MCAST; ri 473 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c mvpp2_prs_sram_ri_update(&pe, ri, MVPP2_PRS_RI_L2_CAST_MASK); ri 866 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c unsigned int ri, unsigned int ri_mask) ri 894 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c mvpp2_prs_sram_ri_update(&pe, ri, ri_mask | MVPP2_PRS_RI_IP_FRAG_MASK); ri 920 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c mvpp2_prs_sram_ri_update(&pe, ri, ri_mask); ri 922 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c mvpp2_prs_sram_ri_update(&pe, ri | MVPP2_PRS_RI_IP_FRAG_TRUE, ri 988 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c unsigned int ri, unsigned int ri_mask) ri 1009 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c mvpp2_prs_sram_ri_update(&pe, ri, ri_mask); ri 2215 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c unsigned int pmap, len, ri; ri 2272 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c ri = MVPP2_PRS_RI_L2_BCAST; ri 2274 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c ri = MVPP2_PRS_RI_L2_MCAST; ri 2276 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c ri = MVPP2_PRS_RI_L2_UCAST; ri 2279 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c ri |= MVPP2_PRS_RI_MAC_ME_MASK; ri 2282 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c mvpp2_prs_sram_ri_update(&pe, ri, MVPP2_PRS_RI_L2_CAST_MASK | ri 2284 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c mvpp2_prs_shadow_ri_set(priv, pe.index, ri, MVPP2_PRS_RI_L2_CAST_MASK | ri 2411 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c int mvpp2_prs_add_flow(struct mvpp2 *priv, int flow, u32 ri, u32 ri_mask) ri 2427 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c ri_byte = (u8 *)&ri; ri 276 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.h u32 ri; ri 291 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.h u32 ri; ri 310 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.h int mvpp2_prs_add_flow(struct mvpp2 *priv, int flow, u32 ri, u32 ri_mask); ri 515 drivers/net/ethernet/mscc/ocelot.h #define ocelot_read_ix(ocelot, reg, gi, ri) __ocelot_read_ix(ocelot, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri)) ri 517 drivers/net/ethernet/mscc/ocelot.h #define ocelot_read_rix(ocelot, reg, ri) __ocelot_read_ix(ocelot, reg, reg##_RSZ * (ri)) ri 521 drivers/net/ethernet/mscc/ocelot.h #define ocelot_write_ix(ocelot, val, reg, gi, ri) __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri)) ri 523 drivers/net/ethernet/mscc/ocelot.h #define ocelot_write_rix(ocelot, val, reg, ri) __ocelot_write_ix(ocelot, val, reg, reg##_RSZ * (ri)) ri 528 drivers/net/ethernet/mscc/ocelot.h #define ocelot_rmw_ix(ocelot, val, m, reg, gi, ri) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri)) ri 530 drivers/net/ethernet/mscc/ocelot.h #define ocelot_rmw_rix(ocelot, val, m, reg, ri) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_RSZ * (ri)) ri 1208 drivers/net/ethernet/nvidia/forcedeth.c } ri[] = { ri 1219 drivers/net/ethernet/nvidia/forcedeth.c for (i = 0; i < ARRAY_SIZE(ri); i++) { ri 1220 drivers/net/ethernet/nvidia/forcedeth.c if (mii_rw(dev, np->phyaddr, ri[i].reg, ri[i].init)) ri 257 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c unsigned int i, ti, ri; ri 287 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ri = XLGMAC_GET_REG_BITS(dma_ch_isr, DMA_CH_SR_RI_POS, ri 289 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (!pdata->per_channel_irq && (ti || ri)) { ri 1575 drivers/net/fddi/skfp/skfddi.c unsigned short ri; ri 1621 drivers/net/fddi/skfp/skfddi.c ri = ntohs(*((__be16 *) cp)); ri 1622 drivers/net/fddi/skfp/skfddi.c RifLength = ri & FDDI_RCF_LEN_MASK; ri 943 drivers/net/wireless/ath/carl9170/tx.c SET_VAL(CARL9170_TX_SUPER_RI_TRIES, txc->s.ri[i], ri 947 drivers/net/wireless/ath/carl9170/tx.c txc->s.ri[i] |= (AR9170_TX_MAC_PROT_RTS << ri 950 drivers/net/wireless/ath/carl9170/tx.c txc->s.ri[i] |= (AR9170_TX_MAC_PROT_CTS << ri 954 drivers/net/wireless/ath/carl9170/tx.c txc->s.ri[i] |= CARL9170_TX_SUPER_RI_AMPDU; ri 259 drivers/net/wireless/ath/carl9170/wlan.h struct ar9170_tx_rate_info ri[CARL9170_TX_MAX_RATES]; ri 323 drivers/net/wireless/ath/carl9170/wlan.h u8 ri[CARL9170_TX_MAX_RATES]; ri 655 drivers/net/wireless/ath/wil6210/main.c int ri = vif->bcast_ring, rc; ri 657 drivers/net/wireless/ath/wil6210/main.c if (ri >= 0 && wil->ring_tx[ri].va) ri 660 drivers/net/wireless/ath/wil6210/main.c ri = wil_find_free_ring(wil); ri 661 drivers/net/wireless/ath/wil6210/main.c if (ri < 0) ri 662 drivers/net/wireless/ath/wil6210/main.c return ri; ri 664 drivers/net/wireless/ath/wil6210/main.c vif->bcast_ring = ri; ri 665 drivers/net/wireless/ath/wil6210/main.c rc = wil->txrx_ops.ring_init_bcast(vif, ri, 1 << bcast_ring_order); ri 675 drivers/net/wireless/ath/wil6210/main.c int ri = vif->bcast_ring; ri 677 drivers/net/wireless/ath/wil6210/main.c if (ri < 0) ri 681 drivers/net/wireless/ath/wil6210/main.c wil_ring_fini_tx(wil, ri); ri 200 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c struct brcmf_rev_info *ri; ri 216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri = &ifp->drvr->revinfo; ri 222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c strlcpy(ri->chipname, "UNKNOWN", sizeof(ri->chipname)); ri 224 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->vendorid = le32_to_cpu(revinfo.vendorid); ri 225 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->deviceid = le32_to_cpu(revinfo.deviceid); ri 226 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->radiorev = le32_to_cpu(revinfo.radiorev); ri 227 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->corerev = le32_to_cpu(revinfo.corerev); ri 228 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->boardid = le32_to_cpu(revinfo.boardid); ri 229 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->boardvendor = le32_to_cpu(revinfo.boardvendor); ri 230 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->boardrev = le32_to_cpu(revinfo.boardrev); ri 231 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->driverrev = le32_to_cpu(revinfo.driverrev); ri 232 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->ucoderev = le32_to_cpu(revinfo.ucoderev); ri 233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->bus = le32_to_cpu(revinfo.bus); ri 234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->phytype = le32_to_cpu(revinfo.phytype); ri 235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->phyrev = le32_to_cpu(revinfo.phyrev); ri 236 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->anarev = le32_to_cpu(revinfo.anarev); ri 237 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->chippkg = le32_to_cpu(revinfo.chippkg); ri 238 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->nvramrev = le32_to_cpu(revinfo.nvramrev); ri 246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->result = err; ri 250 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->chipname, sizeof(ri->chipname)); ri 271 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c brcmf_info("Firmware: %s %s\n", ri->chipname, buf); ri 1055 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_rev_info *ri = &bus_if->drvr->revinfo; ri 1059 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "vendorid: 0x%04x\n", ri->vendorid); ri 1060 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "deviceid: 0x%04x\n", ri->deviceid); ri 1061 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "radiorev: %s\n", brcmu_dotrev_str(ri->radiorev, drev)); ri 1062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "chip: %s\n", ri->chipname); ri 1063 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "chippkg: %u\n", ri->chippkg); ri 1064 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "corerev: %u\n", ri->corerev); ri 1065 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "boardid: 0x%04x\n", ri->boardid); ri 1066 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "boardvendor: 0x%04x\n", ri->boardvendor); ri 1067 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "boardrev: %s\n", brcmu_boardrev_str(ri->boardrev, brev)); ri 1068 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "driverrev: %s\n", brcmu_dotrev_str(ri->driverrev, drev)); ri 1069 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "ucoderev: %u\n", ri->ucoderev); ri 1070 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "bus: %u\n", ri->bus); ri 1071 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "phytype: %u\n", ri->phytype); ri 1072 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "phyrev: %u\n", ri->phyrev); ri 1073 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "anarev: %u\n", ri->anarev); ri 1074 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "nvramrev: %08x\n", ri->nvramrev); ri 206 drivers/net/xen-netfront.c RING_IDX ri) ri 208 drivers/net/xen-netfront.c int i = xennet_rxidx(ri); ri 215 drivers/net/xen-netfront.c RING_IDX ri) ri 217 drivers/net/xen-netfront.c int i = xennet_rxidx(ri); ri 35 drivers/regulator/aat2870-regulator.c struct aat2870_regulator *ri = rdev_get_drvdata(rdev); ri 36 drivers/regulator/aat2870-regulator.c struct aat2870_data *aat2870 = ri->aat2870; ri 38 drivers/regulator/aat2870-regulator.c return aat2870->update(aat2870, ri->voltage_addr, ri->voltage_mask, ri 39 drivers/regulator/aat2870-regulator.c selector << ri->voltage_shift); ri 44 drivers/regulator/aat2870-regulator.c struct aat2870_regulator *ri = rdev_get_drvdata(rdev); ri 45 drivers/regulator/aat2870-regulator.c struct aat2870_data *aat2870 = ri->aat2870; ri 49 drivers/regulator/aat2870-regulator.c ret = aat2870->read(aat2870, ri->voltage_addr, &val); ri 53 drivers/regulator/aat2870-regulator.c return (val & ri->voltage_mask) >> ri->voltage_shift; ri 58 drivers/regulator/aat2870-regulator.c struct aat2870_regulator *ri = rdev_get_drvdata(rdev); ri 59 drivers/regulator/aat2870-regulator.c struct aat2870_data *aat2870 = ri->aat2870; ri 61 drivers/regulator/aat2870-regulator.c return aat2870->update(aat2870, ri->enable_addr, ri->enable_mask, ri 62 drivers/regulator/aat2870-regulator.c ri->enable_mask); ri 67 drivers/regulator/aat2870-regulator.c struct aat2870_regulator *ri = rdev_get_drvdata(rdev); ri 68 drivers/regulator/aat2870-regulator.c struct aat2870_data *aat2870 = ri->aat2870; ri 70 drivers/regulator/aat2870-regulator.c return aat2870->update(aat2870, ri->enable_addr, ri->enable_mask, 0); ri 75 drivers/regulator/aat2870-regulator.c struct aat2870_regulator *ri = rdev_get_drvdata(rdev); ri 76 drivers/regulator/aat2870-regulator.c struct aat2870_data *aat2870 = ri->aat2870; ri 80 drivers/regulator/aat2870-regulator.c ret = aat2870->read(aat2870, ri->enable_addr, &val); ri 84 drivers/regulator/aat2870-regulator.c return val & ri->enable_mask ? 1 : 0; ri 126 drivers/regulator/aat2870-regulator.c struct aat2870_regulator *ri = NULL; ri 130 drivers/regulator/aat2870-regulator.c ri = &aat2870_regulators[i]; ri 131 drivers/regulator/aat2870-regulator.c if (ri->desc.id == id) ri 138 drivers/regulator/aat2870-regulator.c ri->enable_addr = AAT2870_LDO_EN; ri 139 drivers/regulator/aat2870-regulator.c ri->enable_shift = id - AAT2870_ID_LDOA; ri 140 drivers/regulator/aat2870-regulator.c ri->enable_mask = 0x1 << ri->enable_shift; ri 142 drivers/regulator/aat2870-regulator.c ri->voltage_addr = (id - AAT2870_ID_LDOA) / 2 ? ri 144 drivers/regulator/aat2870-regulator.c ri->voltage_shift = (id - AAT2870_ID_LDOA) % 2 ? 0 : 4; ri 145 drivers/regulator/aat2870-regulator.c ri->voltage_mask = 0xF << ri->voltage_shift; ri 147 drivers/regulator/aat2870-regulator.c return ri; ri 152 drivers/regulator/aat2870-regulator.c struct aat2870_regulator *ri; ri 156 drivers/regulator/aat2870-regulator.c ri = aat2870_get_regulator(pdev->id); ri 157 drivers/regulator/aat2870-regulator.c if (!ri) { ri 161 drivers/regulator/aat2870-regulator.c ri->aat2870 = dev_get_drvdata(pdev->dev.parent); ri 164 drivers/regulator/aat2870-regulator.c config.driver_data = ri; ri 167 drivers/regulator/aat2870-regulator.c rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); ri 170 drivers/regulator/aat2870-regulator.c ri->desc.name); ri 419 drivers/regulator/da903x.c struct da903x_regulator_info *ri; ri 423 drivers/regulator/da903x.c ri = &da903x_regulator_info[i]; ri 424 drivers/regulator/da903x.c if (ri->desc.id == id) ri 425 drivers/regulator/da903x.c return ri; ri 432 drivers/regulator/da903x.c struct da903x_regulator_info *ri = NULL; ri 436 drivers/regulator/da903x.c ri = find_regulator_info(pdev->id); ri 437 drivers/regulator/da903x.c if (ri == NULL) { ri 443 drivers/regulator/da903x.c if (ri->desc.id == DA9034_ID_LDO12) { ri 444 drivers/regulator/da903x.c ri->desc.ops = &da9034_regulator_ldo12_ops; ri 445 drivers/regulator/da903x.c ri->desc.n_voltages = 16; ri 446 drivers/regulator/da903x.c ri->desc.linear_ranges = da9034_ldo12_ranges; ri 447 drivers/regulator/da903x.c ri->desc.n_linear_ranges = ARRAY_SIZE(da9034_ldo12_ranges); ri 450 drivers/regulator/da903x.c if (ri->desc.id == DA9030_ID_LDO14) ri 451 drivers/regulator/da903x.c ri->desc.ops = &da9030_regulator_ldo14_ops; ri 453 drivers/regulator/da903x.c if (ri->desc.id == DA9030_ID_LDO1 || ri->desc.id == DA9030_ID_LDO15) ri 454 drivers/regulator/da903x.c ri->desc.ops = &da9030_regulator_ldo1_15_ops; ri 458 drivers/regulator/da903x.c config.driver_data = ri; ri 460 drivers/regulator/da903x.c rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); ri 463 drivers/regulator/da903x.c ri->desc.name); ri 223 drivers/regulator/max8925-regulator.c struct max8925_regulator_info *ri; ri 234 drivers/regulator/max8925-regulator.c ri = &max8925_regulator_info[i]; ri 235 drivers/regulator/max8925-regulator.c if (ri->vol_reg == res->start) ri 244 drivers/regulator/max8925-regulator.c ri->i2c = chip->i2c; ri 247 drivers/regulator/max8925-regulator.c config.driver_data = ri; ri 252 drivers/regulator/max8925-regulator.c rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); ri 255 drivers/regulator/max8925-regulator.c ri->desc.name); ri 106 drivers/regulator/rc5t583-regulator.c struct rc5t583_regulator_info *ri; ri 116 drivers/regulator/rc5t583-regulator.c ri = &rc5t583_reg_info[id]; ri 118 drivers/regulator/rc5t583-regulator.c if (ri->deepsleep_id == RC5T583_DS_NONE) ri 122 drivers/regulator/rc5t583-regulator.c ri->deepsleep_id, ri 136 drivers/regulator/rc5t583-regulator.c config.driver_data = ri; ri 139 drivers/regulator/rc5t583-regulator.c rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); ri 142 drivers/regulator/rc5t583-regulator.c ri->desc.name); ri 64 drivers/regulator/tps65090-regulator.c static int tps65090_reg_set_overcurrent_wait(struct tps65090_regulator *ri, ri 71 drivers/regulator/tps65090-regulator.c ri->overcurrent_wait << CTRL_WT_BIT); ri 255 drivers/regulator/tps65090-regulator.c struct tps65090_regulator *ri, bool enable) ri 258 drivers/regulator/tps65090-regulator.c struct device *parent = ri->dev->parent; ri 259 drivers/regulator/tps65090-regulator.c unsigned int reg_en_reg = ri->desc->enable_reg; ri 266 drivers/regulator/tps65090-regulator.c dev_err(ri->dev, "Error in updating reg 0x%x\n", reg_en_reg); ri 271 drivers/regulator/tps65090-regulator.c struct tps65090_regulator *ri, ri 275 drivers/regulator/tps65090-regulator.c struct device *parent = ri->dev->parent; ri 276 drivers/regulator/tps65090-regulator.c unsigned int reg_en_reg = ri->desc->enable_reg; ri 286 drivers/regulator/tps65090-regulator.c dev_err(ri->dev, "Error in set reg 0x%x\n", reg_en_reg); ri 290 drivers/regulator/tps65090-regulator.c return tps65090_config_ext_control(ri, false); ri 404 drivers/regulator/tps65090-regulator.c struct tps65090_regulator *ri = NULL; ri 434 drivers/regulator/tps65090-regulator.c ri = &pmic[num]; ri 435 drivers/regulator/tps65090-regulator.c ri->dev = &pdev->dev; ri 436 drivers/regulator/tps65090-regulator.c ri->desc = &tps65090_regulator_desc[num]; ri 438 drivers/regulator/tps65090-regulator.c ri->overcurrent_wait_valid = ri 440 drivers/regulator/tps65090-regulator.c ri->overcurrent_wait = tps_pdata->overcurrent_wait; ri 450 drivers/regulator/tps65090-regulator.c ri->desc->ops = &tps65090_ext_control_ops; ri 453 drivers/regulator/tps65090-regulator.c ri, tps_pdata); ri 463 drivers/regulator/tps65090-regulator.c config.driver_data = ri; ri 480 drivers/regulator/tps65090-regulator.c rdev = devm_regulator_register(&pdev->dev, ri->desc, &config); ri 483 drivers/regulator/tps65090-regulator.c ri->desc->name); ri 486 drivers/regulator/tps65090-regulator.c ri->rdev = rdev; ri 488 drivers/regulator/tps65090-regulator.c if (ri->overcurrent_wait_valid) { ri 489 drivers/regulator/tps65090-regulator.c ret = tps65090_reg_set_overcurrent_wait(ri, rdev); ri 497 drivers/regulator/tps65090-regulator.c ret = tps65090_config_ext_control(ri, true); ri 268 drivers/regulator/tps6586x-regulator.c struct tps6586x_regulator *ri) ri 273 drivers/regulator/tps6586x-regulator.c if (ri->enable_reg[0] == ri->enable_reg[1] && ri 274 drivers/regulator/tps6586x-regulator.c ri->enable_bit[0] == ri->enable_bit[1]) ri 277 drivers/regulator/tps6586x-regulator.c ret = tps6586x_read(parent, ri->enable_reg[0], &val1); ri 281 drivers/regulator/tps6586x-regulator.c ret = tps6586x_read(parent, ri->enable_reg[1], &val2); ri 285 drivers/regulator/tps6586x-regulator.c if (!(val2 & (1 << ri->enable_bit[1]))) ri 292 drivers/regulator/tps6586x-regulator.c if (!(val1 & (1 << ri->enable_bit[0]))) { ri 293 drivers/regulator/tps6586x-regulator.c ret = tps6586x_set_bits(parent, ri->enable_reg[0], ri 294 drivers/regulator/tps6586x-regulator.c 1 << ri->enable_bit[0]); ri 299 drivers/regulator/tps6586x-regulator.c return tps6586x_clr_bits(parent, ri->enable_reg[1], ri 300 drivers/regulator/tps6586x-regulator.c 1 << ri->enable_bit[1]); ri 335 drivers/regulator/tps6586x-regulator.c struct tps6586x_regulator *ri; ri 360 drivers/regulator/tps6586x-regulator.c ri = &table[i]; ri 361 drivers/regulator/tps6586x-regulator.c if (ri->desc.id == id) ri 362 drivers/regulator/tps6586x-regulator.c return ri; ri 367 drivers/regulator/tps6586x-regulator.c ri = &tps6586x_regulator[i]; ri 368 drivers/regulator/tps6586x-regulator.c if (ri->desc.id == id) ri 369 drivers/regulator/tps6586x-regulator.c return ri; ri 450 drivers/regulator/tps6586x-regulator.c struct tps6586x_regulator *ri = NULL; ri 477 drivers/regulator/tps6586x-regulator.c ri = find_regulator_info(id, version); ri 479 drivers/regulator/tps6586x-regulator.c if (!ri) { ri 484 drivers/regulator/tps6586x-regulator.c err = tps6586x_regulator_preinit(pdev->dev.parent, ri); ri 493 drivers/regulator/tps6586x-regulator.c config.driver_data = ri; ri 498 drivers/regulator/tps6586x-regulator.c rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); ri 501 drivers/regulator/tps6586x-regulator.c ri->desc.name); ri 88 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 93 drivers/regulator/tps80031-regulator.c if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) ri 96 drivers/regulator/tps80031-regulator.c ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, ri 100 drivers/regulator/tps80031-regulator.c ri->rinfo->state_reg, ret); ri 108 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 112 drivers/regulator/tps80031-regulator.c if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) ri 115 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, ri 119 drivers/regulator/tps80031-regulator.c ri->rinfo->state_reg, ret); ri 127 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 131 drivers/regulator/tps80031-regulator.c if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) ri 134 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, ri 138 drivers/regulator/tps80031-regulator.c ri->rinfo->state_reg, ret); ri 152 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 153 drivers/regulator/tps80031-regulator.c int volt_index = ri->device_flags & 0x3; ri 166 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 171 drivers/regulator/tps80031-regulator.c if (ri->rinfo->force_reg) { ri 172 drivers/regulator/tps80031-regulator.c ret = tps80031_read(parent, ri->rinfo->volt_id, ri 173 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, ®_val); ri 175 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x read failed, e = %d\n", ri 176 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, ret); ri 180 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, ri->rinfo->volt_id, ri 181 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, vsel, SMPS_VSEL_MASK); ri 183 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, ri 185 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, ret); ri 189 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, ri->rinfo->volt_id, ri 190 drivers/regulator/tps80031-regulator.c ri->rinfo->volt_reg, vsel, SMPS_VSEL_MASK); ri 192 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x update failed, e = %d\n", ri 193 drivers/regulator/tps80031-regulator.c ri->rinfo->volt_reg, ret); ri 199 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 204 drivers/regulator/tps80031-regulator.c if (ri->rinfo->force_reg) { ri 205 drivers/regulator/tps80031-regulator.c ret = tps80031_read(parent, ri->rinfo->volt_id, ri 206 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, &vsel); ri 208 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x read failed, e = %d\n", ri 209 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, ret); ri 216 drivers/regulator/tps80031-regulator.c ret = tps80031_read(parent, ri->rinfo->volt_id, ri 217 drivers/regulator/tps80031-regulator.c ri->rinfo->volt_reg, &vsel); ri 219 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x read failed, e = %d\n", ri 220 drivers/regulator/tps80031-regulator.c ri->rinfo->volt_reg, ret); ri 229 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 233 drivers/regulator/tps80031-regulator.c if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && ri 234 drivers/regulator/tps80031-regulator.c (ri->device_flags & TRACK_MODE_ENABLE)) { ri 240 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, ri 253 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 257 drivers/regulator/tps80031-regulator.c if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && ri 258 drivers/regulator/tps80031-regulator.c (ri->device_flags & TRACK_MODE_ENABLE)) { ri 272 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 281 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x read failed, e = %d\n", ri 288 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x read failed, e = %d\n", ri 299 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 306 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x read failed, e = %d\n", ri 314 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x read failed, e = %d\n", ri 323 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri = rdev_get_drvdata(rdev); ri 327 drivers/regulator/tps80031-regulator.c if (ri->config_flags & TPS80031_VBUS_DISCHRG_EN_PDN) { ri 331 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x write failed, e = %d\n", ri 340 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x clearbit failed, e = %d\n", ri 348 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x clearbit failed, e = %d\n", ri 353 drivers/regulator/tps80031-regulator.c mdelay(DIV_ROUND_UP(ri->rinfo->desc.enable_time, 1000)); ri 354 drivers/regulator/tps80031-regulator.c if (ri->config_flags & TPS80031_VBUS_DISCHRG_EN_PDN) { ri 358 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "reg 0x%02x write failed, e = %d\n", ri 493 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri, ri 498 drivers/regulator/tps80031-regulator.c if (ri->rinfo->preq_bit < 0) ri 501 drivers/regulator/tps80031-regulator.c ret = tps80031_ext_power_req_config(parent, ri->ext_ctrl_flag, ri 502 drivers/regulator/tps80031-regulator.c ri->rinfo->preq_bit, ri->rinfo->state_reg, ri 503 drivers/regulator/tps80031-regulator.c ri->rinfo->trans_reg); ri 505 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "ext powerreq config failed, err = %d\n", ret); ri 512 drivers/regulator/tps80031-regulator.c ri->rinfo->trans_reg, TPS80031_TRANS_SLEEP_ON, ri 515 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "Reg 0x%02x update failed, e %d\n", ri 516 drivers/regulator/tps80031-regulator.c ri->rinfo->trans_reg, ret); ri 524 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri, ri 529 drivers/regulator/tps80031-regulator.c switch (ri->rinfo->desc.id) { ri 531 drivers/regulator/tps80031-regulator.c if (ri->config_flags & (TPS80031_USBLDO_INPUT_VSYS | ri 534 drivers/regulator/tps80031-regulator.c if (ri->config_flags & TPS80031_USBLDO_INPUT_VSYS) ri 543 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, ri 551 drivers/regulator/tps80031-regulator.c if (ri->config_flags & TPS80031_LDO3_OUTPUT_VIB) { ri 556 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, ri 565 drivers/regulator/tps80031-regulator.c if (!(ri->config_flags & TPS80031_VBUS_SW_ONLY)) ri 566 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.ops = &tps80031_vbus_sw_ops; ri 573 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->trans_reg, ri 578 drivers/regulator/tps80031-regulator.c dev_err(ri->dev, "trans reg update failed, e %d\n", ret); ri 586 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri) ri 607 drivers/regulator/tps80031-regulator.c switch (ri->rinfo->desc.id) { ri 624 drivers/regulator/tps80031-regulator.c ri->device_flags = smps_mult & BIT(5) ? TRACK_MODE_ENABLE : 0; ri 626 drivers/regulator/tps80031-regulator.c if (ri->device_flags & TRACK_MODE_ENABLE) { ri 627 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 600000; ri 628 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 12500; ri 629 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.n_voltages = 57; ri 630 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.vsel_mask = LDO_TRACK_VSEL_MASK; ri 637 drivers/regulator/tps80031-regulator.c ri->device_flags = (smps_offset & mult_offset) ? DCDC_OFFSET_EN : 0; ri 638 drivers/regulator/tps80031-regulator.c ri->device_flags |= (smps_mult & mult_offset) ? DCDC_EXTENDED_EN : 0; ri 639 drivers/regulator/tps80031-regulator.c switch (ri->device_flags) { ri 641 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 607700; ri 642 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 12660; ri 645 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 700000; ri 646 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 12500; ri 649 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 1852000; ri 650 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 38600; ri 653 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 2161000; ri 654 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 38600; ri 664 drivers/regulator/tps80031-regulator.c struct tps80031_regulator *ri; ri 686 drivers/regulator/tps80031-regulator.c ri = &pmic[num]; ri 687 drivers/regulator/tps80031-regulator.c ri->rinfo = &tps80031_rinfo[num]; ri 688 drivers/regulator/tps80031-regulator.c ri->dev = &pdev->dev; ri 690 drivers/regulator/tps80031-regulator.c check_smps_mode_mult(pdev->dev.parent, ri); ri 693 drivers/regulator/tps80031-regulator.c config.driver_data = ri; ri 694 drivers/regulator/tps80031-regulator.c config.regmap = tps80031_mfd->regmap[ri->rinfo->volt_id]; ri 698 drivers/regulator/tps80031-regulator.c ri->config_flags = tps_pdata->config_flags; ri 699 drivers/regulator/tps80031-regulator.c ri->ext_ctrl_flag = tps_pdata->ext_ctrl_flag; ri 701 drivers/regulator/tps80031-regulator.c ri, tps_pdata); ri 709 drivers/regulator/tps80031-regulator.c ri, tps_pdata); ri 716 drivers/regulator/tps80031-regulator.c rdev = devm_regulator_register(&pdev->dev, &ri->rinfo->desc, ri 721 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.name); ri 2234 drivers/scsi/csiostor/csio_hw.c SAME_INTF(ri) && SAME_INTF(iscsi) && SAME_INTF(fcoe)) ri 47 drivers/staging/uwb/allocator.c struct uwb_rsv_row_info *ri = &ai->ri; ri 53 drivers/staging/uwb/allocator.c if (ri->avail[mas] == 1) { ri 55 drivers/staging/uwb/allocator.c if (rows > ri->used_rows) { ri 196 drivers/staging/uwb/allocator.c struct uwb_rsv_row_info *ri = &ai->ri; ri 199 drivers/staging/uwb/allocator.c ri->free_rows = 16; ri 201 drivers/staging/uwb/allocator.c ri->avail[mas] = 1; ri 204 drivers/staging/uwb/allocator.c ri->free_rows--; ri 205 drivers/staging/uwb/allocator.c ri->avail[mas]=0; ri 268 drivers/staging/uwb/allocator.c if (n_rows <= ai->ri.free_rows) { ri 269 drivers/staging/uwb/allocator.c ai->ri.used_rows = n_rows; ri 150 drivers/staging/uwb/uwb-internal.h struct uwb_rsv_row_info ri; ri 120 drivers/tty/moxa.c int ri; ri 279 drivers/tty/mxser.c int ri; ri 2199 drivers/tty/vt/vt.c ri(vc); ri 47 drivers/usb/gadget/function/uvc_configfs.c u32 ri = *(const u32 *)r; ri 49 drivers/usb/gadget/function/uvc_configfs.c return li < ri ? -1 : li == ri ? 0 : 1; ri 913 drivers/usb/serial/keyspan.c p_priv->ri_state = ((msg->ri) ? 1 : 0); ri 1033 drivers/usb/serial/keyspan.c p_priv->ri_state = ((msg->ri) ? 1 : 0); ri 1118 drivers/usb/serial/keyspan.c p_priv->ri_state = ((msg->ri) ? 1 : 0); ri 1370 drivers/usb/serial/keyspan.c p_priv->ri_state = ((msg->ri) ? 1 : 0); ri 214 drivers/usb/serial/keyspan_usa26msg.h ri, // USA17: reports RI pin ri 155 drivers/usb/serial/keyspan_usa28msg.h ri, // (not used in all products) ri 245 drivers/usb/serial/keyspan_usa49msg.h ri, // reports RI pin ri 160 drivers/usb/serial/keyspan_usa90msg.h ri, // reports RI pin ri 172 fs/btrfs/print-tree.c struct btrfs_root_item *ri; ri 217 fs/btrfs/print-tree.c ri = btrfs_item_ptr(l, i, struct btrfs_root_item); ri 219 fs/btrfs/print-tree.c btrfs_disk_root_bytenr(l, ri), ri 220 fs/btrfs/print-tree.c btrfs_disk_root_refs(l, ri)); ri 834 fs/btrfs/tree-checker.c struct btrfs_root_item ri; ri 854 fs/btrfs/tree-checker.c if (btrfs_item_size_nr(leaf, slot) != sizeof(ri)) { ri 857 fs/btrfs/tree-checker.c btrfs_item_size_nr(leaf, slot), sizeof(ri)); ri 860 fs/btrfs/tree-checker.c read_extent_buffer(leaf, &ri, btrfs_item_ptr_offset(leaf, slot), ri 861 fs/btrfs/tree-checker.c sizeof(ri)); ri 864 fs/btrfs/tree-checker.c if (btrfs_root_generation(&ri) > ri 868 fs/btrfs/tree-checker.c btrfs_root_generation(&ri), ri 872 fs/btrfs/tree-checker.c if (btrfs_root_generation_v2(&ri) > ri 876 fs/btrfs/tree-checker.c btrfs_root_generation_v2(&ri), ri 880 fs/btrfs/tree-checker.c if (btrfs_root_last_snapshot(&ri) > ri 884 fs/btrfs/tree-checker.c btrfs_root_last_snapshot(&ri), ri 890 fs/btrfs/tree-checker.c if (!IS_ALIGNED(btrfs_root_bytenr(&ri), fs_info->sectorsize)) { ri 893 fs/btrfs/tree-checker.c btrfs_root_bytenr(&ri), fs_info->sectorsize); ri 896 fs/btrfs/tree-checker.c if (btrfs_root_level(&ri) >= BTRFS_MAX_LEVEL) { ri 899 fs/btrfs/tree-checker.c btrfs_root_level(&ri), BTRFS_MAX_LEVEL - 1); ri 902 fs/btrfs/tree-checker.c if (ri.drop_level >= BTRFS_MAX_LEVEL) { ri 905 fs/btrfs/tree-checker.c ri.drop_level, BTRFS_MAX_LEVEL - 1); ri 910 fs/btrfs/tree-checker.c if (btrfs_root_flags(&ri) & ~valid_root_flags) { ri 913 fs/btrfs/tree-checker.c btrfs_root_flags(&ri), valid_root_flags); ri 680 fs/ceph/snap.c struct ceph_mds_snap_realm *ri; /* encoded */ ri 691 fs/ceph/snap.c ceph_decode_need(&p, e, sizeof(*ri), bad); ri 692 fs/ceph/snap.c ri = p; ri 693 fs/ceph/snap.c p += sizeof(*ri); ri 694 fs/ceph/snap.c ceph_decode_need(&p, e, sizeof(u64)*(le32_to_cpu(ri->num_snaps) + ri 695 fs/ceph/snap.c le32_to_cpu(ri->num_prior_parent_snaps)), bad); ri 697 fs/ceph/snap.c p += sizeof(u64) * le32_to_cpu(ri->num_snaps); ri 699 fs/ceph/snap.c p += sizeof(u64) * le32_to_cpu(ri->num_prior_parent_snaps); ri 701 fs/ceph/snap.c realm = ceph_lookup_snap_realm(mdsc, le64_to_cpu(ri->ino)); ri 703 fs/ceph/snap.c realm = ceph_create_snap_realm(mdsc, le64_to_cpu(ri->ino)); ri 711 fs/ceph/snap.c err = adjust_snap_realm_parent(mdsc, realm, le64_to_cpu(ri->parent)); ri 716 fs/ceph/snap.c if (le64_to_cpu(ri->seq) > realm->seq) { ri 718 fs/ceph/snap.c realm->ino, realm, realm->seq, le64_to_cpu(ri->seq)); ri 720 fs/ceph/snap.c realm->seq = le64_to_cpu(ri->seq); ri 721 fs/ceph/snap.c realm->created = le64_to_cpu(ri->created); ri 722 fs/ceph/snap.c realm->parent_since = le64_to_cpu(ri->parent_since); ri 724 fs/ceph/snap.c realm->num_snaps = le32_to_cpu(ri->num_snaps); ri 730 fs/ceph/snap.c le32_to_cpu(ri->num_prior_parent_snaps); ri 883 fs/ceph/snap.c struct ceph_mds_snap_realm *ri; ri 895 fs/ceph/snap.c ceph_decode_need(&p, e, sizeof(*ri), bad); ri 899 fs/ceph/snap.c ri = p; ri 933 fs/ceph/snap.c le64_to_cpu(ri->created)) { ri 382 fs/dlm/debug_fs.c struct rsbtbl_iter *ri = iter_ptr; ri 384 fs/dlm/debug_fs.c switch (ri->format) { ri 386 fs/dlm/debug_fs.c print_format1(ri->rsb, seq); ri 389 fs/dlm/debug_fs.c if (ri->header) { ri 391 fs/dlm/debug_fs.c ri->header = 0; ri 393 fs/dlm/debug_fs.c print_format2(ri->rsb, seq); ri 396 fs/dlm/debug_fs.c if (ri->header) { ri 398 fs/dlm/debug_fs.c ri->header = 0; ri 400 fs/dlm/debug_fs.c print_format3(ri->rsb, seq); ri 403 fs/dlm/debug_fs.c if (ri->header) { ri 405 fs/dlm/debug_fs.c ri->header = 0; ri 407 fs/dlm/debug_fs.c print_format4(ri->rsb, seq); ri 424 fs/dlm/debug_fs.c struct rsbtbl_iter *ri; ri 436 fs/dlm/debug_fs.c ri = kzalloc(sizeof(*ri), GFP_NOFS); ri 437 fs/dlm/debug_fs.c if (!ri) ri 440 fs/dlm/debug_fs.c ri->header = 1; ri 442 fs/dlm/debug_fs.c ri->format = 1; ri 444 fs/dlm/debug_fs.c ri->format = 2; ri 446 fs/dlm/debug_fs.c ri->format = 3; ri 448 fs/dlm/debug_fs.c ri->format = 4; ri 458 fs/dlm/debug_fs.c ri->rsb = r; ri 459 fs/dlm/debug_fs.c ri->bucket = bucket; ri 461 fs/dlm/debug_fs.c return ri; ri 479 fs/dlm/debug_fs.c kfree(ri); ri 489 fs/dlm/debug_fs.c ri->rsb = r; ri 490 fs/dlm/debug_fs.c ri->bucket = bucket; ri 493 fs/dlm/debug_fs.c return ri; ri 502 fs/dlm/debug_fs.c struct rsbtbl_iter *ri = iter_ptr; ri 517 fs/dlm/debug_fs.c rp = ri->rsb; ri 523 fs/dlm/debug_fs.c ri->rsb = r; ri 527 fs/dlm/debug_fs.c return ri; ri 544 fs/dlm/debug_fs.c kfree(ri); ri 554 fs/dlm/debug_fs.c ri->rsb = r; ri 555 fs/dlm/debug_fs.c ri->bucket = bucket; ri 558 fs/dlm/debug_fs.c return ri; ri 566 fs/dlm/debug_fs.c struct rsbtbl_iter *ri = iter_ptr; ri 568 fs/dlm/debug_fs.c if (ri) { ri 569 fs/dlm/debug_fs.c dlm_put_rsb(ri->rsb); ri 570 fs/dlm/debug_fs.c kfree(ri); ri 421 fs/f2fs/dir.c struct f2fs_inode *ri; ri 426 fs/f2fs/dir.c ri = F2FS_INODE(ipage); ri 427 fs/f2fs/dir.c ri->i_namelen = cpu_to_le32(name->len); ri 428 fs/f2fs/dir.c memcpy(ri->i_name, name->name, name->len); ri 2557 fs/f2fs/f2fs.h static inline void get_inline_info(struct inode *inode, struct f2fs_inode *ri) ri 2561 fs/f2fs/f2fs.h if (ri->i_inline & F2FS_INLINE_XATTR) ri 2563 fs/f2fs/f2fs.h if (ri->i_inline & F2FS_INLINE_DATA) ri 2565 fs/f2fs/f2fs.h if (ri->i_inline & F2FS_INLINE_DENTRY) ri 2567 fs/f2fs/f2fs.h if (ri->i_inline & F2FS_DATA_EXIST) ri 2569 fs/f2fs/f2fs.h if (ri->i_inline & F2FS_INLINE_DOTS) ri 2571 fs/f2fs/f2fs.h if (ri->i_inline & F2FS_EXTRA_ATTR) ri 2573 fs/f2fs/f2fs.h if (ri->i_inline & F2FS_PIN_FILE) ri 2577 fs/f2fs/f2fs.h static inline void set_raw_inline(struct inode *inode, struct f2fs_inode *ri) ri 2579 fs/f2fs/f2fs.h ri->i_inline = 0; ri 2582 fs/f2fs/f2fs.h ri->i_inline |= F2FS_INLINE_XATTR; ri 2584 fs/f2fs/f2fs.h ri->i_inline |= F2FS_INLINE_DATA; ri 2586 fs/f2fs/f2fs.h ri->i_inline |= F2FS_INLINE_DENTRY; ri 2588 fs/f2fs/f2fs.h ri->i_inline |= F2FS_DATA_EXIST; ri 2590 fs/f2fs/f2fs.h ri->i_inline |= F2FS_INLINE_DOTS; ri 2592 fs/f2fs/f2fs.h ri->i_inline |= F2FS_EXTRA_ATTR; ri 2594 fs/f2fs/f2fs.h ri->i_inline |= F2FS_PIN_FILE; ri 2621 fs/f2fs/f2fs.h struct f2fs_inode *ri = F2FS_INODE(page); ri 2623 fs/f2fs/f2fs.h return (void *)&(ri->i_addr[DEF_ADDRS_PER_INODE - ri 2681 fs/f2fs/f2fs.h struct f2fs_inode *ri = F2FS_INODE(page); ri 2684 fs/f2fs/f2fs.h return (void *)&(ri->i_addr[extra_size + DEF_INLINE_RESERVED_SIZE]); ri 710 fs/f2fs/file.c struct f2fs_inode *ri; ri 715 fs/f2fs/file.c F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, i_crtime)) { ri 258 fs/f2fs/inline.c struct f2fs_inode *ri = NULL; ri 271 fs/f2fs/inline.c ri = F2FS_INODE(npage); ri 274 fs/f2fs/inline.c ri && (ri->i_inline & F2FS_INLINE_DATA)) { ri 299 fs/f2fs/inline.c } else if (ri && (ri->i_inline & F2FS_INLINE_DATA)) { ri 58 fs/f2fs/inode.c static void __get_inode_rdev(struct inode *inode, struct f2fs_inode *ri) ri 64 fs/f2fs/inode.c if (ri->i_addr[extra_size]) ri 66 fs/f2fs/inode.c le32_to_cpu(ri->i_addr[extra_size])); ri 69 fs/f2fs/inode.c le32_to_cpu(ri->i_addr[extra_size + 1])); ri 74 fs/f2fs/inode.c struct f2fs_inode *ri) ri 76 fs/f2fs/inode.c block_t addr = le32_to_cpu(ri->i_addr[offset_in_addr(ri)]); ri 85 fs/f2fs/inode.c static void __set_inode_rdev(struct inode *inode, struct f2fs_inode *ri) ri 91 fs/f2fs/inode.c ri->i_addr[extra_size] = ri 93 fs/f2fs/inode.c ri->i_addr[extra_size + 1] = 0; ri 95 fs/f2fs/inode.c ri->i_addr[extra_size] = 0; ri 96 fs/f2fs/inode.c ri->i_addr[extra_size + 1] = ri 98 fs/f2fs/inode.c ri->i_addr[extra_size + 2] = 0; ri 124 fs/f2fs/inode.c struct f2fs_inode *ri = &F2FS_NODE(page)->i; ri 129 fs/f2fs/inode.c if (!IS_INODE(page) || !(ri->i_inline & F2FS_EXTRA_ATTR)) ri 132 fs/f2fs/inode.c if (!F2FS_FITS_IN_INODE(ri, le16_to_cpu(ri->i_extra_isize), ri 142 fs/f2fs/inode.c struct f2fs_inode *ri = &node->i; ri 144 fs/f2fs/inode.c __le32 gen = ri->i_generation; ri 154 fs/f2fs/inode.c chksum = f2fs_chksum(sbi, chksum_seed, (__u8 *)ri, offset); ri 157 fs/f2fs/inode.c chksum = f2fs_chksum(sbi, chksum, (__u8 *)ri + offset, ri 164 fs/f2fs/inode.c struct f2fs_inode *ri; ri 178 fs/f2fs/inode.c ri = &F2FS_NODE(page)->i; ri 179 fs/f2fs/inode.c provided = le32_to_cpu(ri->i_inode_checksum); ri 191 fs/f2fs/inode.c struct f2fs_inode *ri = &F2FS_NODE(page)->i; ri 196 fs/f2fs/inode.c ri->i_inode_checksum = cpu_to_le32(f2fs_inode_chksum(sbi, page)); ri 297 fs/f2fs/inode.c struct f2fs_inode *ri; ri 309 fs/f2fs/inode.c ri = F2FS_INODE(node_page); ri 311 fs/f2fs/inode.c inode->i_mode = le16_to_cpu(ri->i_mode); ri 312 fs/f2fs/inode.c i_uid_write(inode, le32_to_cpu(ri->i_uid)); ri 313 fs/f2fs/inode.c i_gid_write(inode, le32_to_cpu(ri->i_gid)); ri 314 fs/f2fs/inode.c set_nlink(inode, le32_to_cpu(ri->i_links)); ri 315 fs/f2fs/inode.c inode->i_size = le64_to_cpu(ri->i_size); ri 316 fs/f2fs/inode.c inode->i_blocks = SECTOR_FROM_BLOCK(le64_to_cpu(ri->i_blocks) - 1); ri 318 fs/f2fs/inode.c inode->i_atime.tv_sec = le64_to_cpu(ri->i_atime); ri 319 fs/f2fs/inode.c inode->i_ctime.tv_sec = le64_to_cpu(ri->i_ctime); ri 320 fs/f2fs/inode.c inode->i_mtime.tv_sec = le64_to_cpu(ri->i_mtime); ri 321 fs/f2fs/inode.c inode->i_atime.tv_nsec = le32_to_cpu(ri->i_atime_nsec); ri 322 fs/f2fs/inode.c inode->i_ctime.tv_nsec = le32_to_cpu(ri->i_ctime_nsec); ri 323 fs/f2fs/inode.c inode->i_mtime.tv_nsec = le32_to_cpu(ri->i_mtime_nsec); ri 324 fs/f2fs/inode.c inode->i_generation = le32_to_cpu(ri->i_generation); ri 326 fs/f2fs/inode.c fi->i_current_depth = le32_to_cpu(ri->i_current_depth); ri 329 fs/f2fs/inode.c le16_to_cpu(ri->i_gc_failures); ri 330 fs/f2fs/inode.c fi->i_xattr_nid = le32_to_cpu(ri->i_xattr_nid); ri 331 fs/f2fs/inode.c fi->i_flags = le32_to_cpu(ri->i_flags); ri 335 fs/f2fs/inode.c fi->i_advise = ri->i_advise; ri 336 fs/f2fs/inode.c fi->i_pino = le32_to_cpu(ri->i_pino); ri 337 fs/f2fs/inode.c fi->i_dir_level = ri->i_dir_level; ri 339 fs/f2fs/inode.c if (f2fs_init_extent_tree(inode, &ri->i_ext)) ri 342 fs/f2fs/inode.c get_inline_info(inode, ri); ri 345 fs/f2fs/inode.c le16_to_cpu(ri->i_extra_isize) : 0; ri 348 fs/f2fs/inode.c fi->i_inline_xattr_size = le16_to_cpu(ri->i_inline_xattr_size); ri 379 fs/f2fs/inode.c __get_inode_rdev(inode, ri); ri 382 fs/f2fs/inode.c err = __written_first_block(sbi, ri); ri 398 fs/f2fs/inode.c F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, i_projid)) ri 399 fs/f2fs/inode.c i_projid = (projid_t)le32_to_cpu(ri->i_projid); ri 405 fs/f2fs/inode.c F2FS_FITS_IN_INODE(ri, fi->i_extra_isize, i_crtime)) { ri 406 fs/f2fs/inode.c fi->i_crtime.tv_sec = le64_to_cpu(ri->i_crtime); ri 407 fs/f2fs/inode.c fi->i_crtime.tv_nsec = le32_to_cpu(ri->i_crtime_nsec); ri 502 fs/f2fs/inode.c struct f2fs_inode *ri; ri 510 fs/f2fs/inode.c ri = F2FS_INODE(node_page); ri 512 fs/f2fs/inode.c ri->i_mode = cpu_to_le16(inode->i_mode); ri 513 fs/f2fs/inode.c ri->i_advise = F2FS_I(inode)->i_advise; ri 514 fs/f2fs/inode.c ri->i_uid = cpu_to_le32(i_uid_read(inode)); ri 515 fs/f2fs/inode.c ri->i_gid = cpu_to_le32(i_gid_read(inode)); ri 516 fs/f2fs/inode.c ri->i_links = cpu_to_le32(inode->i_nlink); ri 517 fs/f2fs/inode.c ri->i_size = cpu_to_le64(i_size_read(inode)); ri 518 fs/f2fs/inode.c ri->i_blocks = cpu_to_le64(SECTOR_TO_BLOCK(inode->i_blocks) + 1); ri 522 fs/f2fs/inode.c set_raw_extent(&et->largest, &ri->i_ext); ri 525 fs/f2fs/inode.c memset(&ri->i_ext, 0, sizeof(ri->i_ext)); ri 527 fs/f2fs/inode.c set_raw_inline(inode, ri); ri 529 fs/f2fs/inode.c ri->i_atime = cpu_to_le64(inode->i_atime.tv_sec); ri 530 fs/f2fs/inode.c ri->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); ri 531 fs/f2fs/inode.c ri->i_mtime = cpu_to_le64(inode->i_mtime.tv_sec); ri 532 fs/f2fs/inode.c ri->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); ri 533 fs/f2fs/inode.c ri->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); ri 534 fs/f2fs/inode.c ri->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); ri 536 fs/f2fs/inode.c ri->i_current_depth = ri 539 fs/f2fs/inode.c ri->i_gc_failures = ri 541 fs/f2fs/inode.c ri->i_xattr_nid = cpu_to_le32(F2FS_I(inode)->i_xattr_nid); ri 542 fs/f2fs/inode.c ri->i_flags = cpu_to_le32(F2FS_I(inode)->i_flags); ri 543 fs/f2fs/inode.c ri->i_pino = cpu_to_le32(F2FS_I(inode)->i_pino); ri 544 fs/f2fs/inode.c ri->i_generation = cpu_to_le32(inode->i_generation); ri 545 fs/f2fs/inode.c ri->i_dir_level = F2FS_I(inode)->i_dir_level; ri 548 fs/f2fs/inode.c ri->i_extra_isize = cpu_to_le16(F2FS_I(inode)->i_extra_isize); ri 551 fs/f2fs/inode.c ri->i_inline_xattr_size = ri 555 fs/f2fs/inode.c F2FS_FITS_IN_INODE(ri, F2FS_I(inode)->i_extra_isize, ri 561 fs/f2fs/inode.c ri->i_projid = cpu_to_le32(i_projid); ri 565 fs/f2fs/inode.c F2FS_FITS_IN_INODE(ri, F2FS_I(inode)->i_extra_isize, ri 567 fs/f2fs/inode.c ri->i_crtime = ri 569 fs/f2fs/inode.c ri->i_crtime_nsec = ri 574 fs/f2fs/inode.c __set_inode_rdev(inode, ri); ri 972 fs/f2fs/node.c struct f2fs_inode *ri, int *offset, int depth) ri 981 fs/f2fs/node.c nid[0] = le32_to_cpu(ri->i_nid[offset[0] - NODE_DIR1_BLOCK]); ri 1042 fs/f2fs/node.c struct f2fs_inode *ri; ri 1061 fs/f2fs/node.c ri = F2FS_INODE(page); ri 1071 fs/f2fs/node.c err = truncate_partial_nodes(&dn, ri, offset, level); ri 1080 fs/f2fs/node.c err = truncate_partial_nodes(&dn, ri, offset, level); ri 1090 fs/f2fs/node.c dn.nid = le32_to_cpu(ri->i_nid[offset[0] - NODE_DIR1_BLOCK]); ri 1113 fs/f2fs/node.c ri->i_nid[offset[0] - NODE_DIR1_BLOCK]) { ri 1117 fs/f2fs/node.c ri->i_nid[offset[0] - NODE_DIR1_BLOCK] = 0; ri 2520 fs/f2fs/node.c struct f2fs_inode *ri; ri 2525 fs/f2fs/node.c ri = F2FS_INODE(page); ri 2526 fs/f2fs/node.c if (ri->i_inline & F2FS_INLINE_XATTR) { ri 224 fs/f2fs/recovery.c static void recover_inline_flags(struct inode *inode, struct f2fs_inode *ri) ri 226 fs/f2fs/recovery.c if (ri->i_inline & F2FS_PIN_FILE) ri 230 fs/f2fs/recovery.c if (ri->i_inline & F2FS_DATA_EXIST) ri 163 fs/jffs2/dir.c struct jffs2_raw_inode *ri; ri 169 fs/jffs2/dir.c ri = jffs2_alloc_raw_inode(); ri 170 fs/jffs2/dir.c if (!ri) ri 177 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); ri 181 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 200 fs/jffs2/dir.c ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); ri 204 fs/jffs2/dir.c dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(ri->ctime)); ri 206 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 217 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 284 fs/jffs2/dir.c struct jffs2_raw_inode *ri; ri 297 fs/jffs2/dir.c ri = jffs2_alloc_raw_inode(); ri 299 fs/jffs2/dir.c if (!ri) ri 308 fs/jffs2/dir.c ret = jffs2_reserve_space(c, sizeof(*ri) + targetlen, &alloclen, ri 312 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 316 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, S_IFLNK | S_IRWXUGO, ri); ri 319 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 329 fs/jffs2/dir.c ri->isize = ri->dsize = ri->csize = cpu_to_je32(inode->i_size); ri 330 fs/jffs2/dir.c ri->totlen = cpu_to_je32(sizeof(*ri) + inode->i_size); ri 331 fs/jffs2/dir.c ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); ri 333 fs/jffs2/dir.c ri->compr = JFFS2_COMPR_NONE; ri 334 fs/jffs2/dir.c ri->data_crc = cpu_to_je32(crc32(0, target, targetlen)); ri 335 fs/jffs2/dir.c ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); ri 337 fs/jffs2/dir.c fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); ri 339 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 446 fs/jffs2/dir.c struct jffs2_raw_inode *ri; ri 456 fs/jffs2/dir.c ri = jffs2_alloc_raw_inode(); ri 457 fs/jffs2/dir.c if (!ri) ri 466 fs/jffs2/dir.c ret = jffs2_reserve_space(c, sizeof(*ri), &alloclen, ALLOC_NORMAL, ri 470 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 474 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); ri 477 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 492 fs/jffs2/dir.c ri->data_crc = cpu_to_je32(0); ri 493 fs/jffs2/dir.c ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); ri 495 fs/jffs2/dir.c fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); ri 497 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 613 fs/jffs2/dir.c struct jffs2_raw_inode *ri; ri 623 fs/jffs2/dir.c ri = jffs2_alloc_raw_inode(); ri 624 fs/jffs2/dir.c if (!ri) ri 636 fs/jffs2/dir.c ret = jffs2_reserve_space(c, sizeof(*ri) + devlen, &alloclen, ri 640 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 644 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); ri 647 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 656 fs/jffs2/dir.c ri->dsize = ri->csize = cpu_to_je32(devlen); ri 657 fs/jffs2/dir.c ri->totlen = cpu_to_je32(sizeof(*ri) + devlen); ri 658 fs/jffs2/dir.c ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); ri 660 fs/jffs2/dir.c ri->compr = JFFS2_COMPR_NONE; ri 661 fs/jffs2/dir.c ri->data_crc = cpu_to_je32(crc32(0, &dev, devlen)); ri 662 fs/jffs2/dir.c ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); ri 664 fs/jffs2/dir.c fn = jffs2_write_dnode(c, f, ri, (char *)&dev, devlen, ALLOC_NORMAL); ri 666 fs/jffs2/dir.c jffs2_free_raw_inode(ri); ri 152 fs/jffs2/file.c struct jffs2_raw_inode ri; ri 159 fs/jffs2/file.c ret = jffs2_reserve_space(c, sizeof(ri), &alloc_len, ri 165 fs/jffs2/file.c memset(&ri, 0, sizeof(ri)); ri 167 fs/jffs2/file.c ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); ri 168 fs/jffs2/file.c ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); ri 169 fs/jffs2/file.c ri.totlen = cpu_to_je32(sizeof(ri)); ri 170 fs/jffs2/file.c ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); ri 172 fs/jffs2/file.c ri.ino = cpu_to_je32(f->inocache->ino); ri 173 fs/jffs2/file.c ri.version = cpu_to_je32(++f->highest_version); ri 174 fs/jffs2/file.c ri.mode = cpu_to_jemode(inode->i_mode); ri 175 fs/jffs2/file.c ri.uid = cpu_to_je16(i_uid_read(inode)); ri 176 fs/jffs2/file.c ri.gid = cpu_to_je16(i_gid_read(inode)); ri 177 fs/jffs2/file.c ri.isize = cpu_to_je32(max((uint32_t)inode->i_size, pageofs)); ri 178 fs/jffs2/file.c ri.atime = ri.ctime = ri.mtime = cpu_to_je32(JFFS2_NOW()); ri 179 fs/jffs2/file.c ri.offset = cpu_to_je32(inode->i_size); ri 180 fs/jffs2/file.c ri.dsize = cpu_to_je32(pageofs - inode->i_size); ri 181 fs/jffs2/file.c ri.csize = cpu_to_je32(0); ri 182 fs/jffs2/file.c ri.compr = JFFS2_COMPR_ZERO; ri 183 fs/jffs2/file.c ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); ri 184 fs/jffs2/file.c ri.data_crc = cpu_to_je32(0); ri 186 fs/jffs2/file.c fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_NORMAL); ri 245 fs/jffs2/file.c struct jffs2_raw_inode *ri; ri 270 fs/jffs2/file.c ri = jffs2_alloc_raw_inode(); ri 272 fs/jffs2/file.c if (!ri) { ri 281 fs/jffs2/file.c ri->ino = cpu_to_je32(inode->i_ino); ri 282 fs/jffs2/file.c ri->mode = cpu_to_jemode(inode->i_mode); ri 283 fs/jffs2/file.c ri->uid = cpu_to_je16(i_uid_read(inode)); ri 284 fs/jffs2/file.c ri->gid = cpu_to_je16(i_gid_read(inode)); ri 285 fs/jffs2/file.c ri->isize = cpu_to_je32((uint32_t)inode->i_size); ri 286 fs/jffs2/file.c ri->atime = ri->ctime = ri->mtime = cpu_to_je32(JFFS2_NOW()); ri 292 fs/jffs2/file.c ret = jffs2_write_inode_range(c, f, ri, page_address(pg) + aligned_start, ri 311 fs/jffs2/file.c inode->i_ctime = inode->i_mtime = ITIME(je32_to_cpu(ri->ctime)); ri 315 fs/jffs2/file.c jffs2_free_raw_inode(ri); ri 37 fs/jffs2/fs.c struct jffs2_raw_inode *ri; ri 78 fs/jffs2/fs.c ri = jffs2_alloc_raw_inode(); ri 79 fs/jffs2/fs.c if (!ri) { ri 85 fs/jffs2/fs.c ret = jffs2_reserve_space(c, sizeof(*ri) + mdatalen, &alloclen, ri 88 fs/jffs2/fs.c jffs2_free_raw_inode(ri); ri 96 fs/jffs2/fs.c ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); ri 97 fs/jffs2/fs.c ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); ri 98 fs/jffs2/fs.c ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); ri 99 fs/jffs2/fs.c ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); ri 101 fs/jffs2/fs.c ri->ino = cpu_to_je32(inode->i_ino); ri 102 fs/jffs2/fs.c ri->version = cpu_to_je32(++f->highest_version); ri 104 fs/jffs2/fs.c ri->uid = cpu_to_je16((ivalid & ATTR_UID)? ri 106 fs/jffs2/fs.c ri->gid = cpu_to_je16((ivalid & ATTR_GID)? ri 110 fs/jffs2/fs.c ri->mode = cpu_to_jemode(iattr->ia_mode); ri 112 fs/jffs2/fs.c ri->mode = cpu_to_jemode(inode->i_mode); ri 115 fs/jffs2/fs.c ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); ri 116 fs/jffs2/fs.c ri->atime = cpu_to_je32(I_SEC((ivalid & ATTR_ATIME)?iattr->ia_atime:inode->i_atime)); ri 117 fs/jffs2/fs.c ri->mtime = cpu_to_je32(I_SEC((ivalid & ATTR_MTIME)?iattr->ia_mtime:inode->i_mtime)); ri 118 fs/jffs2/fs.c ri->ctime = cpu_to_je32(I_SEC((ivalid & ATTR_CTIME)?iattr->ia_ctime:inode->i_ctime)); ri 120 fs/jffs2/fs.c ri->offset = cpu_to_je32(0); ri 121 fs/jffs2/fs.c ri->csize = ri->dsize = cpu_to_je32(mdatalen); ri 122 fs/jffs2/fs.c ri->compr = JFFS2_COMPR_NONE; ri 125 fs/jffs2/fs.c ri->compr = JFFS2_COMPR_ZERO; ri 126 fs/jffs2/fs.c ri->dsize = cpu_to_je32(iattr->ia_size - inode->i_size); ri 127 fs/jffs2/fs.c ri->offset = cpu_to_je32(inode->i_size); ri 133 fs/jffs2/fs.c ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); ri 135 fs/jffs2/fs.c ri->data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); ri 137 fs/jffs2/fs.c ri->data_crc = cpu_to_je32(0); ri 139 fs/jffs2/fs.c new_metadata = jffs2_write_dnode(c, f, ri, mdata, mdatalen, alloc_type); ri 145 fs/jffs2/fs.c jffs2_free_raw_inode(ri); ri 150 fs/jffs2/fs.c inode->i_atime = ITIME(je32_to_cpu(ri->atime)); ri 151 fs/jffs2/fs.c inode->i_ctime = ITIME(je32_to_cpu(ri->ctime)); ri 152 fs/jffs2/fs.c inode->i_mtime = ITIME(je32_to_cpu(ri->mtime)); ri 153 fs/jffs2/fs.c inode->i_mode = jemode_to_cpu(ri->mode); ri 154 fs/jffs2/fs.c i_uid_write(inode, je16_to_cpu(ri->uid)); ri 155 fs/jffs2/fs.c i_gid_write(inode, je16_to_cpu(ri->gid)); ri 175 fs/jffs2/fs.c jffs2_free_raw_inode(ri); ri 422 fs/jffs2/fs.c struct inode *jffs2_new_inode (struct inode *dir_i, umode_t mode, struct jffs2_raw_inode *ri) ri 444 fs/jffs2/fs.c memset(ri, 0, sizeof(*ri)); ri 446 fs/jffs2/fs.c ri->uid = cpu_to_je16(from_kuid(&init_user_ns, current_fsuid())); ri 449 fs/jffs2/fs.c ri->gid = cpu_to_je16(i_gid_read(dir_i)); ri 453 fs/jffs2/fs.c ri->gid = cpu_to_je16(from_kgid(&init_user_ns, current_fsgid())); ri 465 fs/jffs2/fs.c ret = jffs2_do_new_inode (c, f, mode, ri); ri 473 fs/jffs2/fs.c inode->i_ino = je32_to_cpu(ri->ino); ri 474 fs/jffs2/fs.c inode->i_mode = jemode_to_cpu(ri->mode); ri 475 fs/jffs2/fs.c i_gid_write(inode, je16_to_cpu(ri->gid)); ri 476 fs/jffs2/fs.c i_uid_write(inode, je16_to_cpu(ri->uid)); ri 478 fs/jffs2/fs.c ri->atime = ri->mtime = ri->ctime = cpu_to_je32(I_SEC(inode->i_mtime)); ri 762 fs/jffs2/gc.c struct jffs2_raw_inode ri; ri 796 fs/jffs2/gc.c ret = jffs2_reserve_space_gc(c, sizeof(ri) + mdatalen, &alloclen, ri 800 fs/jffs2/gc.c sizeof(ri) + mdatalen, ret); ri 812 fs/jffs2/gc.c memset(&ri, 0, sizeof(ri)); ri 813 fs/jffs2/gc.c ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); ri 814 fs/jffs2/gc.c ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); ri 815 fs/jffs2/gc.c ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); ri 816 fs/jffs2/gc.c ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); ri 818 fs/jffs2/gc.c ri.ino = cpu_to_je32(f->inocache->ino); ri 819 fs/jffs2/gc.c ri.version = cpu_to_je32(++f->highest_version); ri 820 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); ri 821 fs/jffs2/gc.c ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); ri 822 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); ri 823 fs/jffs2/gc.c ri.isize = cpu_to_je32(ilen); ri 824 fs/jffs2/gc.c ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); ri 825 fs/jffs2/gc.c ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); ri 826 fs/jffs2/gc.c ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); ri 827 fs/jffs2/gc.c ri.offset = cpu_to_je32(0); ri 828 fs/jffs2/gc.c ri.csize = cpu_to_je32(mdatalen); ri 829 fs/jffs2/gc.c ri.dsize = cpu_to_je32(mdatalen); ri 830 fs/jffs2/gc.c ri.compr = JFFS2_COMPR_NONE; ri 831 fs/jffs2/gc.c ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); ri 832 fs/jffs2/gc.c ri.data_crc = cpu_to_je32(crc32(0, mdata, mdatalen)); ri 834 fs/jffs2/gc.c new_fn = jffs2_write_dnode(c, f, &ri, mdata, mdatalen, ALLOC_GC); ri 1017 fs/jffs2/gc.c struct jffs2_raw_inode ri; ri 1026 fs/jffs2/gc.c memset(&ri, 0, sizeof(ri)); ri 1033 fs/jffs2/gc.c ret = jffs2_flash_read(c, ref_offset(fn->raw), sizeof(ri), &readlen, (char *)&ri); ri 1034 fs/jffs2/gc.c if (readlen != sizeof(ri) || ret) { ri 1039 fs/jffs2/gc.c if (je16_to_cpu(ri.nodetype) != JFFS2_NODETYPE_INODE) { ri 1042 fs/jffs2/gc.c je16_to_cpu(ri.nodetype), JFFS2_NODETYPE_INODE); ri 1045 fs/jffs2/gc.c if (je32_to_cpu(ri.totlen) != sizeof(ri)) { ri 1048 fs/jffs2/gc.c je32_to_cpu(ri.totlen), sizeof(ri)); ri 1051 fs/jffs2/gc.c crc = crc32(0, &ri, sizeof(ri)-8); ri 1052 fs/jffs2/gc.c if (crc != je32_to_cpu(ri.node_crc)) { ri 1055 fs/jffs2/gc.c je32_to_cpu(ri.node_crc), crc); ri 1061 fs/jffs2/gc.c if (ri.compr != JFFS2_COMPR_ZERO) { ri 1070 fs/jffs2/gc.c ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); ri 1071 fs/jffs2/gc.c ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); ri 1072 fs/jffs2/gc.c ri.totlen = cpu_to_je32(sizeof(ri)); ri 1073 fs/jffs2/gc.c ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); ri 1075 fs/jffs2/gc.c ri.ino = cpu_to_je32(f->inocache->ino); ri 1076 fs/jffs2/gc.c ri.version = cpu_to_je32(++f->highest_version); ri 1077 fs/jffs2/gc.c ri.offset = cpu_to_je32(start); ri 1078 fs/jffs2/gc.c ri.dsize = cpu_to_je32(end - start); ri 1079 fs/jffs2/gc.c ri.csize = cpu_to_je32(0); ri 1080 fs/jffs2/gc.c ri.compr = JFFS2_COMPR_ZERO; ri 1091 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); ri 1092 fs/jffs2/gc.c ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); ri 1093 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); ri 1094 fs/jffs2/gc.c ri.isize = cpu_to_je32(ilen); ri 1095 fs/jffs2/gc.c ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); ri 1096 fs/jffs2/gc.c ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); ri 1097 fs/jffs2/gc.c ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); ri 1098 fs/jffs2/gc.c ri.data_crc = cpu_to_je32(0); ri 1099 fs/jffs2/gc.c ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); ri 1101 fs/jffs2/gc.c ret = jffs2_reserve_space_gc(c, sizeof(ri), &alloclen, ri 1105 fs/jffs2/gc.c sizeof(ri), ret); ri 1108 fs/jffs2/gc.c new_fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_GC); ri 1114 fs/jffs2/gc.c if (je32_to_cpu(ri.version) == f->highest_version) { ri 1132 fs/jffs2/gc.c __func__, fn->frags, je32_to_cpu(ri.version), ri 1133 fs/jffs2/gc.c f->highest_version, je32_to_cpu(ri.ino)); ri 1170 fs/jffs2/gc.c struct jffs2_raw_inode ri; ri 1177 fs/jffs2/gc.c memset(&ri, 0, sizeof(ri)); ri 1347 fs/jffs2/gc.c ret = jffs2_reserve_space_gc(c, sizeof(ri) + JFFS2_MIN_DATA_LEN, ri 1352 fs/jffs2/gc.c sizeof(ri) + JFFS2_MIN_DATA_LEN, ret); ri 1355 fs/jffs2/gc.c cdatalen = min_t(uint32_t, alloclen - sizeof(ri), end - offset); ri 1362 fs/jffs2/gc.c ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); ri 1363 fs/jffs2/gc.c ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); ri 1364 fs/jffs2/gc.c ri.totlen = cpu_to_je32(sizeof(ri) + cdatalen); ri 1365 fs/jffs2/gc.c ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); ri 1367 fs/jffs2/gc.c ri.ino = cpu_to_je32(f->inocache->ino); ri 1368 fs/jffs2/gc.c ri.version = cpu_to_je32(++f->highest_version); ri 1369 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); ri 1370 fs/jffs2/gc.c ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); ri 1371 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); ri 1372 fs/jffs2/gc.c ri.isize = cpu_to_je32(JFFS2_F_I_SIZE(f)); ri 1373 fs/jffs2/gc.c ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); ri 1374 fs/jffs2/gc.c ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); ri 1375 fs/jffs2/gc.c ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); ri 1376 fs/jffs2/gc.c ri.offset = cpu_to_je32(offset); ri 1377 fs/jffs2/gc.c ri.csize = cpu_to_je32(cdatalen); ri 1378 fs/jffs2/gc.c ri.dsize = cpu_to_je32(datalen); ri 1379 fs/jffs2/gc.c ri.compr = comprtype & 0xff; ri 1380 fs/jffs2/gc.c ri.usercompr = (comprtype >> 8) & 0xff; ri 1381 fs/jffs2/gc.c ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); ri 1382 fs/jffs2/gc.c ri.data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen)); ri 1384 fs/jffs2/gc.c new_fn = jffs2_write_dnode(c, f, &ri, comprbuf, cdatalen, ALLOC_GC); ri 396 fs/jffs2/nodelist.h int jffs2_do_new_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, uint32_t mode, struct jffs2_raw_inode *ri); ri 399 fs/jffs2/nodelist.h struct jffs2_raw_inode *ri, const unsigned char *data, ri 405 fs/jffs2/nodelist.h struct jffs2_raw_inode *ri, unsigned char *buf, ri 408 fs/jffs2/nodelist.h struct jffs2_raw_inode *ri, const struct qstr *qstr); ri 173 fs/jffs2/os-linux.h struct jffs2_raw_inode *ri); ri 27 fs/jffs2/read.c struct jffs2_raw_inode *ri; ri 34 fs/jffs2/read.c ri = jffs2_alloc_raw_inode(); ri 35 fs/jffs2/read.c if (!ri) ri 38 fs/jffs2/read.c ret = jffs2_flash_read(c, ref_offset(fd->raw), sizeof(*ri), &readlen, (char *)ri); ri 40 fs/jffs2/read.c jffs2_free_raw_inode(ri); ri 45 fs/jffs2/read.c if (readlen != sizeof(*ri)) { ri 46 fs/jffs2/read.c jffs2_free_raw_inode(ri); ri 48 fs/jffs2/read.c ref_offset(fd->raw), sizeof(*ri), readlen); ri 51 fs/jffs2/read.c crc = crc32(0, ri, sizeof(*ri)-8); ri 54 fs/jffs2/read.c ref_offset(fd->raw), je32_to_cpu(ri->node_crc), ri 55 fs/jffs2/read.c crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize), ri 56 fs/jffs2/read.c je32_to_cpu(ri->offset), buf); ri 57 fs/jffs2/read.c if (crc != je32_to_cpu(ri->node_crc)) { ri 59 fs/jffs2/read.c je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw)); ri 65 fs/jffs2/read.c if (ri->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(ri->dsize) && ri 66 fs/jffs2/read.c je32_to_cpu(ri->csize)) { ri 67 fs/jffs2/read.c ri->dsize = ri->csize; ri 68 fs/jffs2/read.c ri->csize = cpu_to_je32(0); ri 71 fs/jffs2/read.c D1(if(ofs + len > je32_to_cpu(ri->dsize)) { ri 73 fs/jffs2/read.c len, ofs, je32_to_cpu(ri->dsize)); ri 79 fs/jffs2/read.c if (ri->compr == JFFS2_COMPR_ZERO) { ri 90 fs/jffs2/read.c if (ri->compr == JFFS2_COMPR_NONE && len == je32_to_cpu(ri->dsize)) { ri 93 fs/jffs2/read.c readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL); ri 99 fs/jffs2/read.c if (ri->compr != JFFS2_COMPR_NONE) { ri 100 fs/jffs2/read.c if (len < je32_to_cpu(ri->dsize)) { ri 101 fs/jffs2/read.c decomprbuf = kmalloc(je32_to_cpu(ri->dsize), GFP_KERNEL); ri 113 fs/jffs2/read.c jffs2_dbg(2, "Read %d bytes to %p\n", je32_to_cpu(ri->csize), ri 115 fs/jffs2/read.c ret = jffs2_flash_read(c, (ref_offset(fd->raw)) + sizeof(*ri), ri 116 fs/jffs2/read.c je32_to_cpu(ri->csize), &readlen, readbuf); ri 118 fs/jffs2/read.c if (!ret && readlen != je32_to_cpu(ri->csize)) ri 123 fs/jffs2/read.c crc = crc32(0, readbuf, je32_to_cpu(ri->csize)); ri 124 fs/jffs2/read.c if (crc != je32_to_cpu(ri->data_crc)) { ri 126 fs/jffs2/read.c je32_to_cpu(ri->data_crc), crc, ref_offset(fd->raw)); ri 131 fs/jffs2/read.c if (ri->compr != JFFS2_COMPR_NONE) { ri 133 fs/jffs2/read.c je32_to_cpu(ri->csize), readbuf, ri 134 fs/jffs2/read.c je32_to_cpu(ri->dsize), decomprbuf); ri 135 fs/jffs2/read.c ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri->csize), je32_to_cpu(ri->dsize)); ri 142 fs/jffs2/read.c if (len < je32_to_cpu(ri->dsize)) { ri 152 fs/jffs2/read.c jffs2_free_raw_inode(ri); ri 47 fs/jffs2/scan.c struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s); ri 989 fs/jffs2/scan.c struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s) ri 992 fs/jffs2/scan.c uint32_t crc, ino = je32_to_cpu(ri->ino); ri 1006 fs/jffs2/scan.c crc = crc32(0, ri, sizeof(*ri)-8); ri 1007 fs/jffs2/scan.c if (crc != je32_to_cpu(ri->node_crc)) { ri 1009 fs/jffs2/scan.c __func__, ofs, je32_to_cpu(ri->node_crc), crc); ri 1015 fs/jffs2/scan.c PAD(je32_to_cpu(ri->totlen))); ri 1026 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_UNCHECKED, PAD(je32_to_cpu(ri->totlen)), ic); ri 1029 fs/jffs2/scan.c je32_to_cpu(ri->ino), je32_to_cpu(ri->version), ri 1030 fs/jffs2/scan.c je32_to_cpu(ri->offset), ri 1031 fs/jffs2/scan.c je32_to_cpu(ri->offset)+je32_to_cpu(ri->dsize)); ri 1033 fs/jffs2/scan.c pseudo_random += je32_to_cpu(ri->version); ri 1036 fs/jffs2/scan.c jffs2_sum_add_inode_mem(s, ri, ofs - jeb->offset); ri 115 fs/jffs2/summary.c int jffs2_sum_add_inode_mem(struct jffs2_summary *s, struct jffs2_raw_inode *ri, ri 123 fs/jffs2/summary.c temp->nodetype = ri->nodetype; ri 124 fs/jffs2/summary.c temp->inode = ri->ino; ri 125 fs/jffs2/summary.c temp->version = ri->version; ri 127 fs/jffs2/summary.c temp->totlen = ri->totlen; ri 185 fs/jffs2/summary.h int jffs2_sum_add_inode_mem(struct jffs2_summary *s, struct jffs2_raw_inode *ri, uint32_t ofs); ri 24 fs/jffs2/write.c uint32_t mode, struct jffs2_raw_inode *ri) ri 42 fs/jffs2/write.c ri->ino = cpu_to_je32(f->inocache->ino); ri 44 fs/jffs2/write.c ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); ri 45 fs/jffs2/write.c ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); ri 46 fs/jffs2/write.c ri->totlen = cpu_to_je32(PAD(sizeof(*ri))); ri 47 fs/jffs2/write.c ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); ri 48 fs/jffs2/write.c ri->mode = cpu_to_jemode(mode); ri 51 fs/jffs2/write.c ri->version = cpu_to_je32(f->highest_version); ri 60 fs/jffs2/write.c struct jffs2_raw_inode *ri, const unsigned char *data, ri 72 fs/jffs2/write.c D1(if(je32_to_cpu(ri->hdr_crc) != crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)) { ri 77 fs/jffs2/write.c vecs[0].iov_base = ri; ri 78 fs/jffs2/write.c vecs[0].iov_len = sizeof(*ri); ri 82 fs/jffs2/write.c if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { ri 84 fs/jffs2/write.c __func__, je32_to_cpu(ri->totlen), ri 85 fs/jffs2/write.c sizeof(*ri), datalen); ri 100 fs/jffs2/write.c if ((alloc_mode!=ALLOC_GC) && (je32_to_cpu(ri->version) < f->highest_version)) { ri 104 fs/jffs2/write.c je32_to_cpu(ri->version), f->highest_version); ri 105 fs/jffs2/write.c ri->version = cpu_to_je32(++f->highest_version); ri 106 fs/jffs2/write.c ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); ri 112 fs/jffs2/write.c if (ret || (retlen != sizeof(*ri) + datalen)) { ri 114 fs/jffs2/write.c sizeof(*ri) + datalen, flash_ofs, ret, retlen); ri 123 fs/jffs2/write.c jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*ri)+datalen), NULL); ri 141 fs/jffs2/write.c ret = jffs2_reserve_space_gc(c, sizeof(*ri) + datalen, &dummy, ri 148 fs/jffs2/write.c ret = jffs2_reserve_space(c, sizeof(*ri) + datalen, &dummy, ri 175 fs/jffs2/write.c if ((je32_to_cpu(ri->dsize) >= PAGE_SIZE) || ri 176 fs/jffs2/write.c ( ((je32_to_cpu(ri->offset)&(PAGE_SIZE-1))==0) && ri 177 fs/jffs2/write.c (je32_to_cpu(ri->dsize)+je32_to_cpu(ri->offset) == je32_to_cpu(ri->isize)))) { ri 182 fs/jffs2/write.c fn->raw = jffs2_add_physical_node_ref(c, flash_ofs, PAD(sizeof(*ri)+datalen), f->inocache); ri 189 fs/jffs2/write.c fn->ofs = je32_to_cpu(ri->offset); ri 190 fs/jffs2/write.c fn->size = je32_to_cpu(ri->dsize); ri 194 fs/jffs2/write.c flash_ofs & ~3, flash_ofs & 3, je32_to_cpu(ri->dsize), ri 195 fs/jffs2/write.c je32_to_cpu(ri->csize), je32_to_cpu(ri->node_crc), ri 196 fs/jffs2/write.c je32_to_cpu(ri->data_crc), je32_to_cpu(ri->totlen)); ri 341 fs/jffs2/write.c struct jffs2_raw_inode *ri, unsigned char *buf, ri 362 fs/jffs2/write.c ret = jffs2_reserve_space(c, sizeof(*ri) + JFFS2_MIN_DATA_LEN, ri 371 fs/jffs2/write.c cdatalen = min_t(uint32_t, alloclen - sizeof(*ri), datalen); ri 375 fs/jffs2/write.c ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); ri 376 fs/jffs2/write.c ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); ri 377 fs/jffs2/write.c ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); ri 378 fs/jffs2/write.c ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); ri 380 fs/jffs2/write.c ri->ino = cpu_to_je32(f->inocache->ino); ri 381 fs/jffs2/write.c ri->version = cpu_to_je32(++f->highest_version); ri 382 fs/jffs2/write.c ri->isize = cpu_to_je32(max(je32_to_cpu(ri->isize), offset + datalen)); ri 383 fs/jffs2/write.c ri->offset = cpu_to_je32(offset); ri 384 fs/jffs2/write.c ri->csize = cpu_to_je32(cdatalen); ri 385 fs/jffs2/write.c ri->dsize = cpu_to_je32(datalen); ri 386 fs/jffs2/write.c ri->compr = comprtype & 0xff; ri 387 fs/jffs2/write.c ri->usercompr = (comprtype >> 8 ) & 0xff; ri 388 fs/jffs2/write.c ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); ri 389 fs/jffs2/write.c ri->data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen)); ri 391 fs/jffs2/write.c fn = jffs2_write_dnode(c, f, ri, comprbuf, cdatalen, ALLOC_NORETRY); ri 442 fs/jffs2/write.c struct jffs2_inode_info *f, struct jffs2_raw_inode *ri, ri 454 fs/jffs2/write.c ret = jffs2_reserve_space(c, sizeof(*ri), &alloclen, ALLOC_NORMAL, ri 462 fs/jffs2/write.c ri->data_crc = cpu_to_je32(0); ri 463 fs/jffs2/write.c ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); ri 465 fs/jffs2/write.c fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); ri 468 fs/jffs2/write.c jemode_to_cpu(ri->mode)); ri 517 fs/jffs2/write.c rd->ino = ri->ino; ri 518 fs/jffs2/write.c rd->mctime = ri->ctime; ri 170 fs/jfs/jfs_dtree.c int ri, struct component_name * key, int flag); ri 3763 fs/jfs/jfs_dtree.c int ri, struct component_name * key, int flag) ri 3789 fs/jfs/jfs_dtree.c dtGetKey(rp, ri, &rkey, flag); ri 417 fs/nilfs2/recovery.c struct nilfs_recovery_info *ri) ri 419 fs/nilfs2/recovery.c struct list_head *head = &ri->ri_used_segments; ri 428 fs/nilfs2/recovery.c segnum[2] = ri->ri_segnum; ri 429 fs/nilfs2/recovery.c segnum[3] = ri->ri_nextnum; ri 465 fs/nilfs2/recovery.c nilfs->ns_seg_seq = ri->ri_seq + 2; ri 570 fs/nilfs2/recovery.c struct nilfs_recovery_info *ri) ri 589 fs/nilfs2/recovery.c pseg_start = ri->ri_lsegs_start; ri 590 fs/nilfs2/recovery.c seg_seq = ri->ri_lsegs_start_seq; ri 594 fs/nilfs2/recovery.c while (segnum != ri->ri_segnum || pseg_start <= ri->ri_pseg_start) { ri 650 fs/nilfs2/recovery.c if (pseg_start == ri->ri_lsegs_end) ri 658 fs/nilfs2/recovery.c if (pseg_start == ri->ri_lsegs_end) ri 674 fs/nilfs2/recovery.c ri->ri_need_recovery = NILFS_RECOVERY_ROLLFORWARD_DONE; ri 691 fs/nilfs2/recovery.c struct nilfs_recovery_info *ri) ri 696 fs/nilfs2/recovery.c if (nilfs_get_segnum_of_block(nilfs, ri->ri_lsegs_start) != ri 697 fs/nilfs2/recovery.c nilfs_get_segnum_of_block(nilfs, ri->ri_super_root)) ri 700 fs/nilfs2/recovery.c bh = __getblk(nilfs->ns_bdev, ri->ri_lsegs_start, nilfs->ns_blocksize); ri 732 fs/nilfs2/recovery.c struct nilfs_recovery_info *ri) ri 737 fs/nilfs2/recovery.c if (ri->ri_lsegs_start == 0 || ri->ri_lsegs_end == 0) ri 740 fs/nilfs2/recovery.c err = nilfs_attach_checkpoint(sb, ri->ri_cno, true, &root); ri 747 fs/nilfs2/recovery.c err = nilfs_do_roll_forward(nilfs, sb, root, ri); ri 751 fs/nilfs2/recovery.c if (ri->ri_need_recovery == NILFS_RECOVERY_ROLLFORWARD_DONE) { ri 752 fs/nilfs2/recovery.c err = nilfs_prepare_segment_for_recovery(nilfs, sb, ri); ri 775 fs/nilfs2/recovery.c nilfs_finish_roll_forward(nilfs, ri); ri 802 fs/nilfs2/recovery.c struct nilfs_recovery_info *ri) ri 853 fs/nilfs2/recovery.c ri->ri_pseg_start = pseg_start; ri 854 fs/nilfs2/recovery.c ri->ri_seq = seg_seq; ri 855 fs/nilfs2/recovery.c ri->ri_segnum = segnum; ri 858 fs/nilfs2/recovery.c ri->ri_nextnum = nextnum; ri 879 fs/nilfs2/recovery.c if (!ri->ri_lsegs_start && (flags & NILFS_SS_LOGBGN)) { ri 880 fs/nilfs2/recovery.c ri->ri_lsegs_start = pseg_start; ri 881 fs/nilfs2/recovery.c ri->ri_lsegs_start_seq = seg_seq; ri 884 fs/nilfs2/recovery.c ri->ri_lsegs_end = pseg_start; ri 889 fs/nilfs2/recovery.c ri->ri_cno = cno++; ri 890 fs/nilfs2/recovery.c ri->ri_super_root = pseg_end; ri 891 fs/nilfs2/recovery.c ri->ri_lsegs_start = ri->ri_lsegs_end = 0; ri 903 fs/nilfs2/recovery.c ri->ri_need_recovery = NILFS_RECOVERY_SR_UPDATED; ri 944 fs/nilfs2/recovery.c list_splice_tail(&segments, &ri->ri_used_segments); ri 947 fs/nilfs2/recovery.c nilfs->ns_last_cno = ri->ri_cno; ri 246 fs/nilfs2/segment.h struct nilfs_recovery_info *ri); ri 150 fs/nilfs2/the_nilfs.c static void nilfs_init_recovery_info(struct nilfs_recovery_info *ri) ri 152 fs/nilfs2/the_nilfs.c memset(ri, 0, sizeof(*ri)); ri 153 fs/nilfs2/the_nilfs.c INIT_LIST_HEAD(&ri->ri_used_segments); ri 156 fs/nilfs2/the_nilfs.c static void nilfs_clear_recovery_info(struct nilfs_recovery_info *ri) ri 158 fs/nilfs2/the_nilfs.c nilfs_dispose_segment_list(&ri->ri_used_segments); ri 206 fs/nilfs2/the_nilfs.c struct nilfs_recovery_info ri; ri 222 fs/nilfs2/the_nilfs.c nilfs_init_recovery_info(&ri); ri 224 fs/nilfs2/the_nilfs.c err = nilfs_search_super_root(nilfs, &ri); ri 265 fs/nilfs2/the_nilfs.c err = nilfs_search_super_root(nilfs, &ri); ri 270 fs/nilfs2/the_nilfs.c err = nilfs_load_super_root(nilfs, sb, ri.ri_super_root); ri 311 fs/nilfs2/the_nilfs.c err = nilfs_salvage_orphan_logs(nilfs, sb, &ri); ri 329 fs/nilfs2/the_nilfs.c nilfs_clear_recovery_info(&ri); ri 343 fs/nilfs2/the_nilfs.c nilfs_clear_recovery_info(&ri); ri 154 fs/romfs/super.c struct romfs_inode ri; ri 165 fs/romfs/super.c ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE); ri 168 fs/romfs/super.c offset = be32_to_cpu(ri.spec) & ROMFH_MASK; ri 181 fs/romfs/super.c ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE); ri 196 fs/romfs/super.c nextfh = be32_to_cpu(ri.next); ri 198 fs/romfs/super.c ino = be32_to_cpu(ri.spec); ri 217 fs/romfs/super.c struct romfs_inode ri; ri 222 fs/romfs/super.c ret = romfs_dev_read(dir->i_sb, offset, &ri, ROMFH_SIZE); ri 229 fs/romfs/super.c offset = be32_to_cpu(ri.spec) & ROMFH_MASK; ri 238 fs/romfs/super.c ret = romfs_dev_read(dir->i_sb, offset, &ri, sizeof(ri)); ri 249 fs/romfs/super.c if ((be32_to_cpu(ri.next) & ROMFH_TYPE) == ROMFH_HRD) ri 250 fs/romfs/super.c offset = be32_to_cpu(ri.spec) & ROMFH_MASK; ri 256 fs/romfs/super.c offset = be32_to_cpu(ri.next) & ROMFH_MASK; ri 281 fs/romfs/super.c struct romfs_inode ri; ri 291 fs/romfs/super.c ret = romfs_dev_read(sb, pos, &ri, sizeof(ri)); ri 297 fs/romfs/super.c nextfh = be32_to_cpu(ri.next); ri 301 fs/romfs/super.c pos = be32_to_cpu(ri.spec) & ROMFH_MASK; ri 323 fs/romfs/super.c i->i_size = be32_to_cpu(ri.size); ri 352 fs/romfs/super.c nextfh = be32_to_cpu(ri.spec); ri 1184 fs/xfs/libxfs/xfs_refcount.c struct xfs_refcount_intent *ri; ri 1191 fs/xfs/libxfs/xfs_refcount.c ri = kmem_alloc(sizeof(struct xfs_refcount_intent), ri 1193 fs/xfs/libxfs/xfs_refcount.c INIT_LIST_HEAD(&ri->ri_list); ri 1194 fs/xfs/libxfs/xfs_refcount.c ri->ri_type = type; ri 1195 fs/xfs/libxfs/xfs_refcount.c ri->ri_startblock = startblock; ri 1196 fs/xfs/libxfs/xfs_refcount.c ri->ri_blockcount = blockcount; ri 1198 fs/xfs/libxfs/xfs_refcount.c xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_REFCOUNT, &ri->ri_list); ri 2278 fs/xfs/libxfs/xfs_rmap.c struct xfs_rmap_intent *ri; ri 2289 fs/xfs/libxfs/xfs_rmap.c ri = kmem_alloc(sizeof(struct xfs_rmap_intent), KM_NOFS); ri 2290 fs/xfs/libxfs/xfs_rmap.c INIT_LIST_HEAD(&ri->ri_list); ri 2291 fs/xfs/libxfs/xfs_rmap.c ri->ri_type = type; ri 2292 fs/xfs/libxfs/xfs_rmap.c ri->ri_owner = owner; ri 2293 fs/xfs/libxfs/xfs_rmap.c ri->ri_whichfork = whichfork; ri 2294 fs/xfs/libxfs/xfs_rmap.c ri->ri_bmap = *bmap; ri 2296 fs/xfs/libxfs/xfs_rmap.c xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_RMAP, &ri->ri_list); ri 673 fs/xfs/scrub/repair.c struct xrep_findroot *ri, ri 679 fs/xfs/scrub/repair.c struct xfs_mount *mp = ri->sc->mp; ri 686 fs/xfs/scrub/repair.c daddr = XFS_AGB_TO_DADDR(mp, ri->sc->sa.agno, agbno); ri 695 fs/xfs/scrub/repair.c error = xfs_agfl_walk(mp, ri->agf, ri->agfl_bp, ri 721 fs/xfs/scrub/repair.c error = xfs_trans_read_buf(mp, ri->sc->tp, mp->m_ddev_targp, daddr, ri 815 fs/xfs/scrub/repair.c trace_xrep_findroot_block(mp, ri->sc->sa.agno, agbno, ri 818 fs/xfs/scrub/repair.c xfs_trans_brelse(ri->sc->tp, bp); ri 832 fs/xfs/scrub/repair.c struct xrep_findroot *ri = priv; ri 845 fs/xfs/scrub/repair.c for (fab = ri->btree_info; fab->buf_ops; fab++) { ri 848 fs/xfs/scrub/repair.c error = xrep_findroot_block(ri, fab, ri 870 fs/xfs/scrub/repair.c struct xrep_findroot ri; ri 878 fs/xfs/scrub/repair.c ri.sc = sc; ri 879 fs/xfs/scrub/repair.c ri.btree_info = btree_info; ri 880 fs/xfs/scrub/repair.c ri.agf = XFS_BUF_TO_AGF(agf_bp); ri 881 fs/xfs/scrub/repair.c ri.agfl_bp = agfl_bp; ri 890 fs/xfs/scrub/repair.c error = xfs_rmap_query_all(cur, xrep_findroot_rmap, &ri); ri 872 include/linux/filter.h struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 874 include/linux/filter.h return ri->kern_flags & BPF_RI_F_RF_NO_DIRECT; ri 879 include/linux/filter.h struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 881 include/linux/filter.h ri->kern_flags |= BPF_RI_F_RF_NO_DIRECT; ri 886 include/linux/filter.h struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 888 include/linux/filter.h ri->kern_flags &= ~BPF_RI_F_RF_NO_DIRECT; ri 191 include/linux/kprobes.h extern void arch_prepare_kretprobe(struct kretprobe_instance *ri, ri 207 include/linux/kprobes.h static inline void kretprobe_assert(struct kretprobe_instance *ri, ri 212 include/linux/kprobes.h ri->rp, ri->rp->kp.addr); ri 366 include/linux/kprobes.h void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head); ri 1711 kernel/events/uprobes.c static struct return_instance *free_ret_instance(struct return_instance *ri) ri 1713 kernel/events/uprobes.c struct return_instance *next = ri->next; ri 1714 kernel/events/uprobes.c put_uprobe(ri->uprobe); ri 1715 kernel/events/uprobes.c kfree(ri); ri 1726 kernel/events/uprobes.c struct return_instance *ri; ri 1734 kernel/events/uprobes.c ri = utask->return_instances; ri 1735 kernel/events/uprobes.c while (ri) ri 1736 kernel/events/uprobes.c ri = free_ret_instance(ri); ri 1857 kernel/events/uprobes.c struct return_instance *ri = utask->return_instances; ri 1860 kernel/events/uprobes.c while (ri && !arch_uretprobe_is_alive(ri, ctx, regs)) { ri 1861 kernel/events/uprobes.c ri = free_ret_instance(ri); ri 1864 kernel/events/uprobes.c utask->return_instances = ri; ri 1869 kernel/events/uprobes.c struct return_instance *ri; ri 1888 kernel/events/uprobes.c ri = kmalloc(sizeof(struct return_instance), GFP_KERNEL); ri 1889 kernel/events/uprobes.c if (!ri) ri 1918 kernel/events/uprobes.c ri->uprobe = get_uprobe(uprobe); ri 1919 kernel/events/uprobes.c ri->func = instruction_pointer(regs); ri 1920 kernel/events/uprobes.c ri->stack = user_stack_pointer(regs); ri 1921 kernel/events/uprobes.c ri->orig_ret_vaddr = orig_ret_vaddr; ri 1922 kernel/events/uprobes.c ri->chained = chained; ri 1925 kernel/events/uprobes.c ri->next = utask->return_instances; ri 1926 kernel/events/uprobes.c utask->return_instances = ri; ri 1930 kernel/events/uprobes.c kfree(ri); ri 2112 kernel/events/uprobes.c handle_uretprobe_chain(struct return_instance *ri, struct pt_regs *regs) ri 2114 kernel/events/uprobes.c struct uprobe *uprobe = ri->uprobe; ri 2120 kernel/events/uprobes.c uc->ret_handler(uc, ri->func, regs); ri 2125 kernel/events/uprobes.c static struct return_instance *find_next_ret_chain(struct return_instance *ri) ri 2130 kernel/events/uprobes.c chained = ri->chained; ri 2131 kernel/events/uprobes.c ri = ri->next; /* can't be NULL if chained */ ri 2134 kernel/events/uprobes.c return ri; ri 2140 kernel/events/uprobes.c struct return_instance *ri, *next; ri 2147 kernel/events/uprobes.c ri = utask->return_instances; ri 2148 kernel/events/uprobes.c if (!ri) ri 2158 kernel/events/uprobes.c next = find_next_ret_chain(ri); ri 2161 kernel/events/uprobes.c instruction_pointer_set(regs, ri->orig_ret_vaddr); ri 2164 kernel/events/uprobes.c handle_uretprobe_chain(ri, regs); ri 2165 kernel/events/uprobes.c ri = free_ret_instance(ri); ri 2167 kernel/events/uprobes.c } while (ri != next); ri 2170 kernel/events/uprobes.c utask->return_instances = ri; ri 1178 kernel/kprobes.c void recycle_rp_inst(struct kretprobe_instance *ri, ri 1181 kernel/kprobes.c struct kretprobe *rp = ri->rp; ri 1184 kernel/kprobes.c hlist_del(&ri->hlist); ri 1185 kernel/kprobes.c INIT_HLIST_NODE(&ri->hlist); ri 1188 kernel/kprobes.c hlist_add_head(&ri->hlist, &rp->free_instances); ri 1192 kernel/kprobes.c hlist_add_head(&ri->hlist, head); ri 1247 kernel/kprobes.c struct kretprobe_instance *ri; ri 1260 kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, head, hlist) { ri 1261 kernel/kprobes.c if (ri->task == tk) ri 1262 kernel/kprobes.c recycle_rp_inst(ri, &empty_rp); ri 1265 kernel/kprobes.c hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { ri 1266 kernel/kprobes.c hlist_del(&ri->hlist); ri 1267 kernel/kprobes.c kfree(ri); ri 1274 kernel/kprobes.c struct kretprobe_instance *ri; ri 1277 kernel/kprobes.c hlist_for_each_entry_safe(ri, next, &rp->free_instances, hlist) { ri 1278 kernel/kprobes.c hlist_del(&ri->hlist); ri 1279 kernel/kprobes.c kfree(ri); ri 1286 kernel/kprobes.c struct kretprobe_instance *ri; ri 1294 kernel/kprobes.c hlist_for_each_entry_safe(ri, next, head, hlist) { ri 1295 kernel/kprobes.c if (ri->rp == rp) ri 1296 kernel/kprobes.c ri->rp = NULL; ri 1862 kernel/kprobes.c struct kretprobe_instance *ri; ri 1879 kernel/kprobes.c ri = hlist_entry(rp->free_instances.first, ri 1881 kernel/kprobes.c hlist_del(&ri->hlist); ri 1884 kernel/kprobes.c ri->rp = rp; ri 1885 kernel/kprobes.c ri->task = current; ri 1887 kernel/kprobes.c if (rp->entry_handler && rp->entry_handler(ri, regs)) { ri 1889 kernel/kprobes.c hlist_add_head(&ri->hlist, &rp->free_instances); ri 1894 kernel/kprobes.c arch_prepare_kretprobe(ri, regs); ri 1897 kernel/kprobes.c INIT_HLIST_NODE(&ri->hlist); ri 1899 kernel/kprobes.c hlist_add_head(&ri->hlist, &kretprobe_inst_table[hash]); ri 159 kernel/test_kprobes.c static int entry_handler(struct kretprobe_instance *ri, struct pt_regs *regs) ri 169 kernel/test_kprobes.c static int return_handler(struct kretprobe_instance *ri, struct pt_regs *regs) ri 216 kernel/test_kprobes.c static int return_handler2(struct kretprobe_instance *ri, struct pt_regs *regs) ri 240 kernel/trace/trace_kprobe.c static int kretprobe_dispatcher(struct kretprobe_instance *ri, ri 1223 kernel/trace/trace_kprobe.c __kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, ri 1253 kernel/trace/trace_kprobe.c entry->ret_ip = (unsigned long)ri->ret_addr; ri 1261 kernel/trace/trace_kprobe.c kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, ri 1267 kernel/trace/trace_kprobe.c __kretprobe_trace_func(tk, ri, regs, link->file); ri 1423 kernel/trace/trace_kprobe.c kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, ri 1449 kernel/trace/trace_kprobe.c entry->ret_ip = (unsigned long)ri->ret_addr; ri 1536 kernel/trace/trace_kprobe.c kretprobe_dispatcher(struct kretprobe_instance *ri, struct pt_regs *regs) ri 1538 kernel/trace/trace_kprobe.c struct trace_kprobe *tk = container_of(ri->rp, struct trace_kprobe, rp); ri 1543 kernel/trace/trace_kprobe.c kretprobe_trace_func(tk, ri, regs); ri 1546 kernel/trace/trace_kprobe.c kretprobe_perf_func(tk, ri, regs); ri 2157 net/core/filter.c struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 2162 net/core/filter.c ri->flags = flags; ri 2163 net/core/filter.c ri->tgt_index = ifindex; ri 2170 net/core/filter.c struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 2173 net/core/filter.c dev = dev_get_by_index_rcu(dev_net(skb->dev), ri->tgt_index); ri 2174 net/core/filter.c ri->tgt_index = 0; ri 2180 net/core/filter.c return __bpf_redirect(skb, dev, ri->flags); ri 3490 net/core/filter.c struct bpf_prog *xdp_prog, struct bpf_redirect_info *ri) ri 3493 net/core/filter.c u32 index = ri->tgt_index; ri 3497 net/core/filter.c ri->tgt_index = 0; ri 3553 net/core/filter.c struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 3554 net/core/filter.c struct bpf_map *map = ri->map_to_flush; ri 3556 net/core/filter.c ri->map_to_flush = NULL; ri 3594 net/core/filter.c struct bpf_redirect_info *ri; ri 3598 net/core/filter.c ri = per_cpu_ptr(&bpf_redirect_info, cpu); ri 3604 net/core/filter.c if (unlikely(READ_ONCE(ri->map) == map)) ri 3605 net/core/filter.c cmpxchg(&ri->map, map, NULL); ri 3611 net/core/filter.c struct bpf_redirect_info *ri) ri 3613 net/core/filter.c u32 index = ri->tgt_index; ri 3614 net/core/filter.c void *fwd = ri->tgt_value; ri 3617 net/core/filter.c ri->tgt_index = 0; ri 3618 net/core/filter.c ri->tgt_value = NULL; ri 3619 net/core/filter.c WRITE_ONCE(ri->map, NULL); ri 3621 net/core/filter.c if (ri->map_to_flush && unlikely(ri->map_to_flush != map)) ri 3628 net/core/filter.c ri->map_to_flush = map; ri 3639 net/core/filter.c struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 3640 net/core/filter.c struct bpf_map *map = READ_ONCE(ri->map); ri 3643 net/core/filter.c return xdp_do_redirect_map(dev, xdp, xdp_prog, map, ri); ri 3645 net/core/filter.c return xdp_do_redirect_slow(dev, xdp, xdp_prog, ri); ri 3655 net/core/filter.c struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 3656 net/core/filter.c u32 index = ri->tgt_index; ri 3657 net/core/filter.c void *fwd = ri->tgt_value; ri 3660 net/core/filter.c ri->tgt_index = 0; ri 3661 net/core/filter.c ri->tgt_value = NULL; ri 3662 net/core/filter.c WRITE_ONCE(ri->map, NULL); ri 3694 net/core/filter.c struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 3695 net/core/filter.c struct bpf_map *map = READ_ONCE(ri->map); ri 3696 net/core/filter.c u32 index = ri->tgt_index; ri 3703 net/core/filter.c ri->tgt_index = 0; ri 3726 net/core/filter.c struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 3731 net/core/filter.c ri->flags = flags; ri 3732 net/core/filter.c ri->tgt_index = ifindex; ri 3733 net/core/filter.c ri->tgt_value = NULL; ri 3734 net/core/filter.c WRITE_ONCE(ri->map, NULL); ri 3750 net/core/filter.c struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); ri 3756 net/core/filter.c ri->tgt_value = __xdp_map_lookup_elem(map, ifindex); ri 3757 net/core/filter.c if (unlikely(!ri->tgt_value)) { ri 3763 net/core/filter.c WRITE_ONCE(ri->map, NULL); ri 3767 net/core/filter.c ri->flags = flags; ri 3768 net/core/filter.c ri->tgt_index = ifindex; ri 3769 net/core/filter.c WRITE_ONCE(ri->map, map); ri 1443 net/ipv6/ndisc.c struct route_info *ri = (struct route_info *)p; ri 1446 net/ipv6/ndisc.c ri->prefix_len == 0) ri 1449 net/ipv6/ndisc.c if (ri->prefix_len == 0 && ri 1452 net/ipv6/ndisc.c if (ri->prefix_len < in6_dev->cnf.accept_ra_rt_info_min_plen) ri 1454 net/ipv6/ndisc.c if (ri->prefix_len > in6_dev->cnf.accept_ra_rt_info_max_plen) ri 47 net/mac80211/ibss.c int rates_n = 0, i, ri; ri 113 net/mac80211/ibss.c for (ri = 0; ri < sband->n_bitrates; ri++) { ri 114 net/mac80211/ibss.c int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, ri 117 net/mac80211/ibss.c if (!(rates & BIT(ri))) ri 120 net/mac80211/ibss.c if (basic_rates & BIT(ri)) ri 124 net/mac80211/ibss.c ri++; /* continue at next rate for EXT_SUPP_RATES */ ri 157 net/mac80211/ibss.c for (; ri < sband->n_bitrates; ri++) { ri 158 net/mac80211/ibss.c int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, ri 161 net/mac80211/ibss.c if (!(rates & BIT(ri))) ri 164 net/mac80211/ibss.c if (basic_rates & BIT(ri)) ri 3239 net/mac80211/util.c struct rate_info ri; ri 3245 net/mac80211/util.c memset(&ri, 0, sizeof(ri)); ri 3247 net/mac80211/util.c ri.bw = status->bw; ri 3252 net/mac80211/util.c ri.mcs = status->rate_idx; ri 3253 net/mac80211/util.c ri.flags |= RATE_INFO_FLAGS_MCS; ri 3255 net/mac80211/util.c ri.flags |= RATE_INFO_FLAGS_SHORT_GI; ri 3258 net/mac80211/util.c ri.flags |= RATE_INFO_FLAGS_VHT_MCS; ri 3259 net/mac80211/util.c ri.mcs = status->rate_idx; ri 3260 net/mac80211/util.c ri.nss = status->nss; ri 3262 net/mac80211/util.c ri.flags |= RATE_INFO_FLAGS_SHORT_GI; ri 3283 net/mac80211/util.c ri.legacy = DIV_ROUND_UP(bitrate, (1 << shift)); ri 3300 net/mac80211/util.c rate = cfg80211_calculate_bitrate(&ri); ri 40 samples/kprobes/kretprobe_example.c static int entry_handler(struct kretprobe_instance *ri, struct pt_regs *regs) ri 47 samples/kprobes/kretprobe_example.c data = (struct my_data *)ri->data; ri 57 samples/kprobes/kretprobe_example.c static int ret_handler(struct kretprobe_instance *ri, struct pt_regs *regs) ri 60 samples/kprobes/kretprobe_example.c struct my_data *data = (struct my_data *)ri->data; ri 668 scripts/dtc/livetree.c struct reserve_info *ri, **tbl; ri 671 scripts/dtc/livetree.c for (ri = dti->reservelist; ri 672 scripts/dtc/livetree.c ri; ri 673 scripts/dtc/livetree.c ri = ri->next) ri 681 scripts/dtc/livetree.c for (ri = dti->reservelist; ri 682 scripts/dtc/livetree.c ri; ri 683 scripts/dtc/livetree.c ri = ri->next) ri 684 scripts/dtc/livetree.c tbl[i++] = ri; ri 1328 sound/soc/ti/davinci-mcasp.c struct snd_interval *ri = ri 1342 sound/soc/ti/davinci-mcasp.c if (snd_interval_test(ri, davinci_mcasp_dai_rates[i])) { ri 1368 sound/soc/ti/davinci-mcasp.c ri->min, ri->max, range.min, range.max, sbits, slots); ri 41 tools/testing/selftests/kvm/lib/s390x/processor.c static uint64_t virt_alloc_region(struct kvm_vm *vm, int ri, uint32_t memslot) ri 45 tools/testing/selftests/kvm/lib/s390x/processor.c taddr = vm_phy_pages_alloc(vm, ri < 4 ? PAGES_PER_REGION : 1, ri 50 tools/testing/selftests/kvm/lib/s390x/processor.c | (((4 - ri) << 2) & REGION_ENTRY_TYPE) ri 51 tools/testing/selftests/kvm/lib/s390x/processor.c | ((ri < 4 ? (PAGES_PER_REGION - 1) : 0) & REGION_ENTRY_LENGTH); ri 73 tools/testing/selftests/kvm/lib/s390x/processor.c int ri, idx; ri 95 tools/testing/selftests/kvm/lib/s390x/processor.c for (ri = 1; ri <= 4; ri++) { ri 96 tools/testing/selftests/kvm/lib/s390x/processor.c idx = (gva >> (64 - 11 * ri)) & 0x7ffu; ri 98 tools/testing/selftests/kvm/lib/s390x/processor.c entry[idx] = virt_alloc_region(vm, ri, memslot); ri 132 tools/testing/selftests/kvm/lib/s390x/processor.c int ri, idx; ri 139 tools/testing/selftests/kvm/lib/s390x/processor.c for (ri = 1; ri <= 4; ri++) { ri 140 tools/testing/selftests/kvm/lib/s390x/processor.c idx = (gva >> (64 - 11 * ri)) & 0x7ffu;