rec 50 arch/arm/kernel/ftrace.c static unsigned long ftrace_nop_replace(struct dyn_ftrace *rec) rec 55 arch/arm/kernel/ftrace.c static unsigned long adjust_address(struct dyn_ftrace *rec, unsigned long addr) rec 131 arch/arm/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 134 arch/arm/kernel/ftrace.c unsigned long ip = rec->ip; rec 136 arch/arm/kernel/ftrace.c old = ftrace_nop_replace(rec); rec 138 arch/arm/kernel/ftrace.c new = ftrace_call_replace(ip, adjust_address(rec, addr)); rec 140 arch/arm/kernel/ftrace.c return ftrace_modify_code(rec->ip, old, new, true); rec 145 arch/arm/kernel/ftrace.c int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 149 arch/arm/kernel/ftrace.c unsigned long ip = rec->ip; rec 151 arch/arm/kernel/ftrace.c old = ftrace_call_replace(ip, adjust_address(rec, old_addr)); rec 153 arch/arm/kernel/ftrace.c new = ftrace_call_replace(ip, adjust_address(rec, addr)); rec 155 arch/arm/kernel/ftrace.c return ftrace_modify_code(rec->ip, old, new, true); rec 161 arch/arm/kernel/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 163 arch/arm/kernel/ftrace.c unsigned long ip = rec->ip; rec 168 arch/arm/kernel/ftrace.c old = ftrace_call_replace(ip, adjust_address(rec, addr)); rec 169 arch/arm/kernel/ftrace.c new = ftrace_nop_replace(rec); rec 68 arch/arm64/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 70 arch/arm64/kernel/ftrace.c unsigned long pc = rec->ip; rec 150 arch/arm64/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, rec 153 arch/arm64/kernel/ftrace.c unsigned long pc = rec->ip; rec 109 arch/csky/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 111 arch/csky/kernel/ftrace.c int ret = ftrace_check_current_nop(rec->ip); rec 116 arch/csky/kernel/ftrace.c return ftrace_modify_code(rec->ip, addr, true, false); rec 119 arch/csky/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, rec 122 arch/csky/kernel/ftrace.c return ftrace_modify_code(rec->ip, addr, false, false); rec 127 arch/ia64/kernel/ftrace.c static int ftrace_make_nop_check(struct dyn_ftrace *rec, unsigned long addr) rec 130 arch/ia64/kernel/ftrace.c unsigned long ip = rec->ip; rec 134 arch/ia64/kernel/ftrace.c if (rec->flags & FTRACE_FL_CONVERTED) { rec 160 arch/ia64/kernel/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 165 arch/ia64/kernel/ftrace.c ret = ftrace_make_nop_check(rec, addr); rec 169 arch/ia64/kernel/ftrace.c return ftrace_modify_code(rec->ip, NULL, new, 0); rec 172 arch/ia64/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 174 arch/ia64/kernel/ftrace.c unsigned long ip = rec->ip; rec 727 arch/ia64/kernel/mca_drv.c mca_try_to_recover(void *rec, struct ia64_sal_os_state *sos) rec 736 arch/ia64/kernel/mca_drv.c platform_err = mca_make_slidx(rec, &slidx); rec 197 arch/m68k/q40/config.c int __init q40_parse_bootinfo(const struct bi_record *rec) rec 113 arch/microblaze/kernel/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 135 arch/microblaze/kernel/ftrace.c imm = *(unsigned int *)rec->ip; rec 138 arch/microblaze/kernel/ftrace.c bralid = *(unsigned int *)(rec->ip + 4); rec 144 arch/microblaze/kernel/ftrace.c ret = ftrace_modify_code(rec->ip, MICROBLAZE_NOP); rec 145 arch/microblaze/kernel/ftrace.c ret += ftrace_modify_code(rec->ip + 4, MICROBLAZE_NOP); rec 147 arch/microblaze/kernel/ftrace.c ret = ftrace_modify_code(rec->ip, MICROBLAZE_BRI); rec 153 arch/microblaze/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 157 arch/microblaze/kernel/ftrace.c __func__, (unsigned int)addr, (unsigned int)rec->ip, imm); rec 158 arch/microblaze/kernel/ftrace.c ret = ftrace_modify_code(rec->ip, imm); rec 161 arch/microblaze/kernel/ftrace.c ret += ftrace_modify_code(rec->ip + 4, bralid); rec 179 arch/mips/kernel/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 182 arch/mips/kernel/ftrace.c unsigned long ip = rec->ip; rec 203 arch/mips/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 206 arch/mips/kernel/ftrace.c unsigned long ip = rec->ip; rec 184 arch/nds32/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 186 arch/nds32/kernel/ftrace.c unsigned long pc = rec->ip; rec 195 arch/nds32/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, rec 198 arch/nds32/kernel/ftrace.c unsigned long pc = rec->ip; rec 106 arch/parisc/kernel/ftrace.c int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 117 arch/parisc/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 167 arch/parisc/kernel/ftrace.c if (rec->ip & 0x4) { rec 173 arch/parisc/kernel/ftrace.c ip = (void *)(rec->ip + 4 - size); rec 188 arch/parisc/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, rec 197 arch/parisc/kernel/ftrace.c __patch_text((void *)rec->ip, INSN_NOP); rec 198 arch/parisc/kernel/ftrace.c __patch_text_multiple((void *)rec->ip + 4 - sizeof(insn), rec 124 arch/powerpc/kernel/trace/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 127 arch/powerpc/kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 218 arch/powerpc/kernel/trace/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 222 arch/powerpc/kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 388 arch/powerpc/kernel/trace/ftrace.c static int __ftrace_make_nop_kernel(struct dyn_ftrace *rec, unsigned long addr) rec 390 arch/powerpc/kernel/trace/ftrace.c unsigned long tramp, ip = rec->ip; rec 428 arch/powerpc/kernel/trace/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 430 arch/powerpc/kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 444 arch/powerpc/kernel/trace/ftrace.c return __ftrace_make_nop_kernel(rec, addr); rec 452 arch/powerpc/kernel/trace/ftrace.c if (!rec->arch.mod) { rec 457 arch/powerpc/kernel/trace/ftrace.c rec->arch.mod = mod; rec 459 arch/powerpc/kernel/trace/ftrace.c if (mod != rec->arch.mod) { rec 461 arch/powerpc/kernel/trace/ftrace.c rec->arch.mod, mod); rec 466 arch/powerpc/kernel/trace/ftrace.c mod = rec->arch.mod; rec 468 arch/powerpc/kernel/trace/ftrace.c return __ftrace_make_nop(mod, rec, addr); rec 511 arch/powerpc/kernel/trace/ftrace.c __ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 514 arch/powerpc/kernel/trace/ftrace.c void *ip = (void *)rec->ip; rec 516 arch/powerpc/kernel/trace/ftrace.c struct module *mod = rec->arch.mod; rec 539 arch/powerpc/kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_REGS) rec 575 arch/powerpc/kernel/trace/ftrace.c __ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 578 arch/powerpc/kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 591 arch/powerpc/kernel/trace/ftrace.c if (!rec->arch.mod->arch.tramp) { rec 598 arch/powerpc/kernel/trace/ftrace.c rec->arch.mod->arch.tramp, BRANCH_SET_LINK); rec 604 arch/powerpc/kernel/trace/ftrace.c pr_devel("write to %lx\n", rec->ip); rec 614 arch/powerpc/kernel/trace/ftrace.c static int __ftrace_make_call_kernel(struct dyn_ftrace *rec, unsigned long addr) rec 617 arch/powerpc/kernel/trace/ftrace.c void *ip = (void *)rec->ip; rec 661 arch/powerpc/kernel/trace/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 663 arch/powerpc/kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 677 arch/powerpc/kernel/trace/ftrace.c return __ftrace_make_call_kernel(rec, addr); rec 685 arch/powerpc/kernel/trace/ftrace.c if (!rec->arch.mod) { rec 690 arch/powerpc/kernel/trace/ftrace.c return __ftrace_make_call(rec, addr); rec 700 arch/powerpc/kernel/trace/ftrace.c __ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 704 arch/powerpc/kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 706 arch/powerpc/kernel/trace/ftrace.c struct module *mod = rec->arch.mod; rec 759 arch/powerpc/kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_REGS) rec 793 arch/powerpc/kernel/trace/ftrace.c int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 796 arch/powerpc/kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 821 arch/powerpc/kernel/trace/ftrace.c if (!rec->arch.mod) { rec 826 arch/powerpc/kernel/trace/ftrace.c return __ftrace_modify_call(rec, old_addr, addr); rec 66 arch/riscv/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 68 arch/riscv/kernel/ftrace.c int ret = ftrace_check_current_call(rec->ip, NULL); rec 73 arch/riscv/kernel/ftrace.c return __ftrace_modify_call(rec->ip, addr, true); rec 76 arch/riscv/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, rec 82 arch/riscv/kernel/ftrace.c make_call(rec->ip, addr, call); rec 83 arch/riscv/kernel/ftrace.c ret = ftrace_check_current_call(rec->ip, call); rec 88 arch/riscv/kernel/ftrace.c return __ftrace_modify_call(rec->ip, addr, false); rec 110 arch/riscv/kernel/ftrace.c int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 116 arch/riscv/kernel/ftrace.c make_call(rec->ip, old_addr, call); rec 117 arch/riscv/kernel/ftrace.c ret = ftrace_check_current_call(rec->ip, call); rec 122 arch/riscv/kernel/ftrace.c return __ftrace_modify_call(rec->ip, addr, true); rec 211 arch/s390/include/uapi/asm/dasd.h unsigned int rec; /* Record that is in error */ rec 100 arch/s390/kernel/ftrace.c int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 106 arch/s390/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, rec 111 arch/s390/kernel/ftrace.c if (probe_kernel_read(&old, (void *) rec->ip, sizeof(old))) rec 129 arch/s390/kernel/ftrace.c ftrace_generate_call_insn(&orig, rec->ip); rec 135 arch/s390/kernel/ftrace.c s390_kernel_write((void *) rec->ip, &new, sizeof(new)); rec 139 arch/s390/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 143 arch/s390/kernel/ftrace.c if (probe_kernel_read(&old, (void *) rec->ip, sizeof(old))) rec 158 arch/s390/kernel/ftrace.c ftrace_generate_call_insn(&new, rec->ip); rec 163 arch/s390/kernel/ftrace.c s390_kernel_write((void *) rec->ip, &new, sizeof(new)); rec 234 arch/sh/kernel/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 237 arch/sh/kernel/ftrace.c unsigned long ip = rec->ip; rec 242 arch/sh/kernel/ftrace.c return ftrace_modify_code(rec->ip, old, new); rec 245 arch/sh/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 248 arch/sh/kernel/ftrace.c unsigned long ip = rec->ip; rec 253 arch/sh/kernel/ftrace.c return ftrace_modify_code(rec->ip, old, new); rec 56 arch/sparc/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, unsigned long addr) rec 58 arch/sparc/kernel/ftrace.c unsigned long ip = rec->ip; rec 66 arch/sparc/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 68 arch/sparc/kernel/ftrace.c unsigned long ip = rec->ip; rec 153 arch/x86/kernel/ftrace.c struct dyn_ftrace *rec, unsigned long addr) rec 156 arch/x86/kernel/ftrace.c unsigned long ip = rec->ip; rec 170 arch/x86/kernel/ftrace.c return ftrace_modify_code_direct(rec->ip, old, new); rec 179 arch/x86/kernel/ftrace.c int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr) rec 182 arch/x86/kernel/ftrace.c unsigned long ip = rec->ip; rec 188 arch/x86/kernel/ftrace.c return ftrace_modify_code_direct(rec->ip, old, new); rec 236 arch/x86/kernel/ftrace.c int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 356 arch/x86/kernel/ftrace.c static int add_brk_on_call(struct dyn_ftrace *rec, unsigned long addr) rec 359 arch/x86/kernel/ftrace.c unsigned long ip = rec->ip; rec 363 arch/x86/kernel/ftrace.c return add_break(rec->ip, old); rec 367 arch/x86/kernel/ftrace.c static int add_brk_on_nop(struct dyn_ftrace *rec) rec 373 arch/x86/kernel/ftrace.c return add_break(rec->ip, old); rec 376 arch/x86/kernel/ftrace.c static int add_breakpoints(struct dyn_ftrace *rec, bool enable) rec 381 arch/x86/kernel/ftrace.c ftrace_addr = ftrace_get_addr_curr(rec); rec 383 arch/x86/kernel/ftrace.c ret = ftrace_test_record(rec, enable); rec 391 arch/x86/kernel/ftrace.c return add_brk_on_nop(rec); rec 396 arch/x86/kernel/ftrace.c return add_brk_on_call(rec, ftrace_addr); rec 409 arch/x86/kernel/ftrace.c static int remove_breakpoint(struct dyn_ftrace *rec) rec 415 arch/x86/kernel/ftrace.c unsigned long ip = rec->ip; rec 438 arch/x86/kernel/ftrace.c ftrace_addr = ftrace_get_addr_new(rec); rec 445 arch/x86/kernel/ftrace.c ftrace_addr = ftrace_get_addr_curr(rec); rec 466 arch/x86/kernel/ftrace.c static int add_update_call(struct dyn_ftrace *rec, unsigned long addr) rec 468 arch/x86/kernel/ftrace.c unsigned long ip = rec->ip; rec 475 arch/x86/kernel/ftrace.c static int add_update_nop(struct dyn_ftrace *rec) rec 477 arch/x86/kernel/ftrace.c unsigned long ip = rec->ip; rec 484 arch/x86/kernel/ftrace.c static int add_update(struct dyn_ftrace *rec, bool enable) rec 489 arch/x86/kernel/ftrace.c ret = ftrace_test_record(rec, enable); rec 491 arch/x86/kernel/ftrace.c ftrace_addr = ftrace_get_addr_new(rec); rec 500 arch/x86/kernel/ftrace.c return add_update_call(rec, ftrace_addr); rec 504 arch/x86/kernel/ftrace.c return add_update_nop(rec); rec 510 arch/x86/kernel/ftrace.c static int finish_update_call(struct dyn_ftrace *rec, unsigned long addr) rec 512 arch/x86/kernel/ftrace.c unsigned long ip = rec->ip; rec 520 arch/x86/kernel/ftrace.c static int finish_update_nop(struct dyn_ftrace *rec) rec 522 arch/x86/kernel/ftrace.c unsigned long ip = rec->ip; rec 530 arch/x86/kernel/ftrace.c static int finish_update(struct dyn_ftrace *rec, bool enable) rec 535 arch/x86/kernel/ftrace.c ret = ftrace_update_record(rec, enable); rec 537 arch/x86/kernel/ftrace.c ftrace_addr = ftrace_get_addr_new(rec); rec 546 arch/x86/kernel/ftrace.c return finish_update_call(rec, ftrace_addr); rec 550 arch/x86/kernel/ftrace.c return finish_update_nop(rec); rec 582 arch/x86/kernel/ftrace.c struct dyn_ftrace *rec; rec 588 arch/x86/kernel/ftrace.c rec = ftrace_rec_iter_record(iter); rec 590 arch/x86/kernel/ftrace.c ret = add_breakpoints(rec, enable); rec 602 arch/x86/kernel/ftrace.c rec = ftrace_rec_iter_record(iter); rec 604 arch/x86/kernel/ftrace.c ret = add_update(rec, enable); rec 616 arch/x86/kernel/ftrace.c rec = ftrace_rec_iter_record(iter); rec 618 arch/x86/kernel/ftrace.c ret = finish_update(rec, enable); rec 630 arch/x86/kernel/ftrace.c ftrace_bug(ret, rec); rec 632 arch/x86/kernel/ftrace.c rec = ftrace_rec_iter_record(iter); rec 637 arch/x86/kernel/ftrace.c if (remove_breakpoint(rec)) rec 927 arch/x86/kernel/ftrace.c static void *static_tramp_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) rec 930 arch/x86/kernel/ftrace.c bool save_regs = rec->flags & FTRACE_FL_REGS_EN; rec 955 arch/x86/kernel/ftrace.c void *arch_ftrace_trampoline_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) rec 961 arch/x86/kernel/ftrace.c return static_tramp_func(ops, rec); rec 1231 block/partitions/ldm.c int rec, num, group; rec 1241 block/partitions/ldm.c rec = get_unaligned_be16(data + 0x0C); rec 1247 block/partitions/ldm.c if (rec >= num) { rec 1248 block/partitions/ldm.c ldm_error("REC value (%d) exceeds NUM value (%d)", rec, num); rec 1266 block/partitions/ldm.c f->rec = rec; rec 1271 block/partitions/ldm.c if (rec >= f->num) { rec 1272 block/partitions/ldm.c ldm_error("REC value (%d) exceeds NUM value (%d)", rec, f->num); rec 1275 block/partitions/ldm.c if (f->map & (1 << rec)) { rec 1276 block/partitions/ldm.c ldm_error ("Duplicate VBLK, part %d.", rec); rec 1280 block/partitions/ldm.c f->map |= (1 << rec); rec 1281 block/partitions/ldm.c if (!rec) rec 1285 block/partitions/ldm.c memcpy(f->data + VBLK_SIZE_HEAD + rec * size, data, size); rec 94 block/partitions/ldm.h u8 rec; /* This is record number n */ rec 165 block/partitions/ldm.h u16 rec; rec 3665 drivers/ata/libata-scsi.c char *rec; rec 3670 drivers/ata/libata-scsi.c rec = miter.addr + offset; rec 3671 drivers/ata/libata-scsi.c type = rec[0] & 0xf; rec 3672 drivers/ata/libata-scsi.c cond = (rec[1] >> 4) & 0xf; rec 3673 drivers/ata/libata-scsi.c non_seq = (rec[1] & 2); rec 3674 drivers/ata/libata-scsi.c reset = (rec[1] & 1); rec 3675 drivers/ata/libata-scsi.c size = get_unaligned_le64(&rec[8]); rec 3676 drivers/ata/libata-scsi.c start = get_unaligned_le64(&rec[16]); rec 3677 drivers/ata/libata-scsi.c wp = get_unaligned_le64(&rec[24]); rec 3678 drivers/ata/libata-scsi.c rec[0] = type; rec 3679 drivers/ata/libata-scsi.c rec[1] = (cond << 4) | non_seq | reset; rec 3680 drivers/ata/libata-scsi.c put_unaligned_be64(size, &rec[8]); rec 3681 drivers/ata/libata-scsi.c put_unaligned_be64(start, &rec[16]); rec 3682 drivers/ata/libata-scsi.c put_unaligned_be64(wp, &rec[24]); rec 1800 drivers/atm/ambassador.c const struct ihex_binrec *rec) rec 1806 drivers/atm/ambassador.c tb->address = rec->addr; rec 1807 drivers/atm/ambassador.c tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4); rec 1808 drivers/atm/ambassador.c memcpy(tb->data, rec->data, be16_to_cpu(rec->len)); rec 1815 drivers/atm/ambassador.c const struct ihex_binrec *rec) rec 1822 drivers/atm/ambassador.c tb->address = rec->addr; rec 1823 drivers/atm/ambassador.c tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4); rec 1825 drivers/atm/ambassador.c if (!res && memcmp(tb->data, rec->data, be16_to_cpu(rec->len))) rec 1912 drivers/atm/ambassador.c const struct ihex_binrec *rec; rec 1923 drivers/atm/ambassador.c rec = (const struct ihex_binrec *)fw->data; rec 1924 drivers/atm/ambassador.c if (be16_to_cpu(rec->len) != sizeof(__be32) || be32_to_cpu(rec->addr)) { rec 1928 drivers/atm/ambassador.c start_address = be32_to_cpup((__be32 *)rec->data); rec 1930 drivers/atm/ambassador.c rec = ihex_next_binrec(rec); rec 1934 drivers/atm/ambassador.c while (rec) { rec 1935 drivers/atm/ambassador.c PRINTD (DBG_LOAD, "starting region (%x, %u)", be32_to_cpu(rec->addr), rec 1936 drivers/atm/ambassador.c be16_to_cpu(rec->len)); rec 1937 drivers/atm/ambassador.c if (be16_to_cpu(rec->len) > 4 * MAX_TRANSFER_DATA) { rec 1941 drivers/atm/ambassador.c if (be16_to_cpu(rec->len) & 3) { rec 1945 drivers/atm/ambassador.c res = loader_write(lb, dev, rec); rec 1949 drivers/atm/ambassador.c res = loader_verify(lb, dev, rec); rec 1952 drivers/atm/ambassador.c rec = ihex_next_binrec(rec); rec 223 drivers/crypto/mediatek/mtk-platform.h bool rec; rec 173 drivers/crypto/mediatek/mtk-sha.c tctx->id = cryp->rec; rec 174 drivers/crypto/mediatek/mtk-sha.c cryp->rec = !cryp->rec; rec 1234 drivers/crypto/mediatek/mtk-sha.c cryp->rec = 1; rec 1031 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c (list_amdgpu_connector->ddc_bus->rec.i2c_id == rec 1032 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector->ddc_bus->rec.i2c_id)) { rec 1525 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->ddc_bus->rec.i2c_id == i2c_bus->i2c_id) { rec 385 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.mask_clk_reg, rec 386 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.mask_data_reg, rec 387 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.a_clk_reg, rec 388 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.a_data_reg, rec 389 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.en_clk_reg, rec 390 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.en_data_reg, rec 391 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.y_clk_reg, rec 392 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_connector->ddc_bus->rec.y_data_reg); rec 44 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_bus_rec *rec = &i2c->rec; rec 50 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (rec->hw_capable) { rec 51 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_clk_reg); rec 53 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->mask_clk_reg, temp); rec 57 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; rec 58 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->a_clk_reg, temp); rec 60 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; rec 61 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->a_data_reg, temp); rec 64 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; rec 65 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->en_clk_reg, temp); rec 67 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->en_data_reg) & ~rec->en_data_mask; rec 68 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->en_data_reg, temp); rec 71 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_clk_reg) | rec->mask_clk_mask; rec 72 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->mask_clk_reg, temp); rec 73 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_clk_reg); rec 75 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_data_reg) | rec->mask_data_mask; rec 76 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->mask_data_reg, temp); rec 77 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_data_reg); rec 86 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_bus_rec *rec = &i2c->rec; rec 90 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_clk_reg) & ~rec->mask_clk_mask; rec 91 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->mask_clk_reg, temp); rec 92 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_clk_reg); rec 94 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_data_reg) & ~rec->mask_data_mask; rec 95 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->mask_data_reg, temp); rec 96 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c temp = RREG32(rec->mask_data_reg); rec 105 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_bus_rec *rec = &i2c->rec; rec 109 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val = RREG32(rec->y_clk_reg); rec 110 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val &= rec->y_clk_mask; rec 120 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_bus_rec *rec = &i2c->rec; rec 124 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val = RREG32(rec->y_data_reg); rec 125 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val &= rec->y_data_mask; rec 134 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_bus_rec *rec = &i2c->rec; rec 138 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; rec 139 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val |= clock ? 0 : rec->en_clk_mask; rec 140 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->en_clk_reg, val); rec 147 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_bus_rec *rec = &i2c->rec; rec 151 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val = RREG32(rec->en_data_reg) & ~rec->en_data_mask; rec 152 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c val |= data ? 0 : rec->en_data_mask; rec 153 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c WREG32(rec->en_data_reg, val); rec 162 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c const struct amdgpu_i2c_bus_rec *rec, rec 169 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (rec->mm_i2c && (amdgpu_hw_i2c == 0)) rec 176 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c i2c->rec = *rec; rec 183 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (rec->hw_capable && rec 253 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c const struct amdgpu_i2c_bus_rec *rec, rec 261 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c adev->i2c_bus[i] = amdgpu_i2c_create(dev, rec, name); rec 276 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c (adev->i2c_bus[i]->rec.i2c_id == i2c_bus->i2c_id)) { rec 28 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h const struct amdgpu_i2c_bus_rec *rec, rec 34 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h const struct amdgpu_i2c_bus_rec *rec, rec 228 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct amdgpu_i2c_bus_rec rec; rec 81 drivers/gpu/drm/amd/amdgpu/atombios_dp.c args.v2.ucChannelID = chan->rec.i2c_id; rec 83 drivers/gpu/drm/amd/amdgpu/atombios_dp.c args.v2.ucHPD_ID = chan->rec.hpd; rec 191 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_connector->ddc_bus->rec.hpd = amdgpu_connector->hpd.hpd; rec 317 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_connector->ddc_bus->rec.i2c_id, 0); rec 92 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c args.ucLineNumber = chan->rec.i2c_id; rec 911 drivers/gpu/drm/i915/display/intel_overlay.c struct drm_intel_overlay_put_image *rec) rec 916 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->dst_x < pipe_config->pipe_src_w && rec 917 drivers/gpu/drm/i915/display/intel_overlay.c rec->dst_x + rec->dst_width <= pipe_config->pipe_src_w && rec 918 drivers/gpu/drm/i915/display/intel_overlay.c rec->dst_y < pipe_config->pipe_src_h && rec 919 drivers/gpu/drm/i915/display/intel_overlay.c rec->dst_y + rec->dst_height <= pipe_config->pipe_src_h) rec 925 drivers/gpu/drm/i915/display/intel_overlay.c static int check_overlay_scaling(struct drm_intel_overlay_put_image *rec) rec 930 drivers/gpu/drm/i915/display/intel_overlay.c tmp = ((rec->src_scan_height << 16) / rec->dst_height) >> 16; rec 934 drivers/gpu/drm/i915/display/intel_overlay.c tmp = ((rec->src_scan_width << 16) / rec->dst_width) >> 16; rec 942 drivers/gpu/drm/i915/display/intel_overlay.c struct drm_intel_overlay_put_image *rec, rec 945 drivers/gpu/drm/i915/display/intel_overlay.c int uv_hscale = uv_hsubsampling(rec->flags); rec 946 drivers/gpu/drm/i915/display/intel_overlay.c int uv_vscale = uv_vsubsampling(rec->flags); rec 953 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->src_height > IMAGE_MAX_HEIGHT_LEGACY || rec 954 drivers/gpu/drm/i915/display/intel_overlay.c rec->src_width > IMAGE_MAX_WIDTH_LEGACY) rec 957 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->src_height > IMAGE_MAX_HEIGHT || rec 958 drivers/gpu/drm/i915/display/intel_overlay.c rec->src_width > IMAGE_MAX_WIDTH) rec 963 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->src_height < N_VERT_Y_TAPS*4 || rec 964 drivers/gpu/drm/i915/display/intel_overlay.c rec->src_width < N_HORIZ_Y_TAPS*4) rec 968 drivers/gpu/drm/i915/display/intel_overlay.c switch (rec->flags & I915_OVERLAY_TYPE_MASK) { rec 977 drivers/gpu/drm/i915/display/intel_overlay.c depth = packed_depth_bytes(rec->flags); rec 982 drivers/gpu/drm/i915/display/intel_overlay.c rec->stride_UV = 0; rec 983 drivers/gpu/drm/i915/display/intel_overlay.c rec->offset_U = 0; rec 984 drivers/gpu/drm/i915/display/intel_overlay.c rec->offset_V = 0; rec 986 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->offset_Y % depth) rec 1000 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->src_width % uv_hscale) rec 1009 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->stride_Y & stride_mask || rec->stride_UV & stride_mask) rec 1011 drivers/gpu/drm/i915/display/intel_overlay.c if (IS_GEN(dev_priv, 4) && rec->stride_Y < 512) rec 1014 drivers/gpu/drm/i915/display/intel_overlay.c tmp = (rec->flags & I915_OVERLAY_TYPE_MASK) == I915_OVERLAY_YUV_PLANAR ? rec 1016 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->stride_Y > tmp || rec->stride_UV > 2*1024) rec 1020 drivers/gpu/drm/i915/display/intel_overlay.c switch (rec->flags & I915_OVERLAY_TYPE_MASK) { rec 1024 drivers/gpu/drm/i915/display/intel_overlay.c if (packed_width_bytes(rec->flags, rec->src_width) > rec->stride_Y) rec 1027 drivers/gpu/drm/i915/display/intel_overlay.c tmp = rec->stride_Y*rec->src_height; rec 1028 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->offset_Y + tmp > new_bo->base.size) rec 1033 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->src_width > rec->stride_Y) rec 1035 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->src_width/uv_hscale > rec->stride_UV) rec 1038 drivers/gpu/drm/i915/display/intel_overlay.c tmp = rec->stride_Y * rec->src_height; rec 1039 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->offset_Y + tmp > new_bo->base.size) rec 1042 drivers/gpu/drm/i915/display/intel_overlay.c tmp = rec->stride_UV * (rec->src_height / uv_vscale); rec 1043 drivers/gpu/drm/i915/display/intel_overlay.c if (rec->offset_U + tmp > new_bo->base.size || rec 1044 drivers/gpu/drm/i915/display/intel_overlay.c rec->offset_V + tmp > new_bo->base.size) rec 54 drivers/gpu/drm/mga/mga_warp.c const struct ihex_binrec *rec; rec 88 drivers/gpu/drm/mga/mga_warp.c for (rec = (const struct ihex_binrec *)fw->data; rec 89 drivers/gpu/drm/mga/mga_warp.c rec; rec 90 drivers/gpu/drm/mga/mga_warp.c rec = ihex_next_binrec(rec)) { rec 91 drivers/gpu/drm/mga/mga_warp.c size += WARP_UCODE_SIZE(be16_to_cpu(rec->len)); rec 112 drivers/gpu/drm/mga/mga_warp.c for (rec = (const struct ihex_binrec *)fw->data; rec 113 drivers/gpu/drm/mga/mga_warp.c rec; rec 114 drivers/gpu/drm/mga/mga_warp.c rec = ihex_next_binrec(rec)) { rec 119 drivers/gpu/drm/mga/mga_warp.c src_size = be16_to_cpu(rec->len); rec 121 drivers/gpu/drm/mga/mga_warp.c memcpy(vcbase, rec->data, src_size); rec 110 drivers/gpu/drm/radeon/atombios_dp.c args.v1.ucChannelID = chan->rec.i2c_id; rec 113 drivers/gpu/drm/radeon/atombios_dp.c args.v2.ucHPD_ID = chan->rec.hpd; rec 233 drivers/gpu/drm/radeon/atombios_dp.c radeon_connector->ddc_bus->rec.hpd = radeon_connector->hpd.hpd; rec 366 drivers/gpu/drm/radeon/atombios_dp.c radeon_connector->ddc_bus->rec.i2c_id, 0); rec 84 drivers/gpu/drm/radeon/atombios_i2c.c args.ucLineNumber = chan->rec.i2c_id; rec 1330 drivers/gpu/drm/radeon/radeon_connectors.c (list_radeon_connector->ddc_bus->rec.i2c_id == rec 1331 drivers/gpu/drm/radeon/radeon_connectors.c radeon_connector->ddc_bus->rec.i2c_id)) { rec 1896 drivers/gpu/drm/radeon/radeon_connectors.c if (radeon_connector->ddc_bus->rec.i2c_id == i2c_bus->i2c_id) { rec 786 drivers/gpu/drm/radeon/radeon_display.c radeon_connector->ddc_bus->rec.mask_clk_reg, rec 787 drivers/gpu/drm/radeon/radeon_display.c radeon_connector->ddc_bus->rec.mask_data_reg, rec 788 drivers/gpu/drm/radeon/radeon_display.c radeon_connector->ddc_bus->rec.a_clk_reg, rec 789 drivers/gpu/drm/radeon/radeon_display.c radeon_connector->ddc_bus->rec.a_data_reg, rec 790 drivers/gpu/drm/radeon/radeon_display.c radeon_connector->ddc_bus->rec.en_clk_reg, rec 791 drivers/gpu/drm/radeon/radeon_display.c radeon_connector->ddc_bus->rec.en_data_reg, rec 792 drivers/gpu/drm/radeon/radeon_display.c radeon_connector->ddc_bus->rec.y_clk_reg, rec 793 drivers/gpu/drm/radeon/radeon_display.c radeon_connector->ddc_bus->rec.y_data_reg); rec 63 drivers/gpu/drm/radeon/radeon_dp_auxch.c int instance = chan->rec.i2c_id & 0xf; rec 99 drivers/gpu/drm/radeon/radeon_dp_auxch.c tmp = RREG32(chan->rec.mask_clk_reg); rec 101 drivers/gpu/drm/radeon/radeon_dp_auxch.c WREG32(chan->rec.mask_clk_reg, tmp); rec 107 drivers/gpu/drm/radeon/radeon_dp_auxch.c tmp |= AUX_HPD_SEL(chan->rec.hpd); rec 97 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 106 drivers/gpu/drm/radeon/radeon_i2c.c if (rec->hw_capable) { rec 119 drivers/gpu/drm/radeon/radeon_i2c.c if (rec->a_clk_reg == reg) { rec 131 drivers/gpu/drm/radeon/radeon_i2c.c if (ASIC_IS_DCE3(rdev) && rec->hw_capable) { rec 132 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_clk_reg); rec 134 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->mask_clk_reg, temp); rec 138 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; rec 139 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->a_clk_reg, temp); rec 141 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; rec 142 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->a_data_reg, temp); rec 145 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; rec 146 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->en_clk_reg, temp); rec 148 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->en_data_reg) & ~rec->en_data_mask; rec 149 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->en_data_reg, temp); rec 152 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_clk_reg) | rec->mask_clk_mask; rec 153 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->mask_clk_reg, temp); rec 154 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_clk_reg); rec 156 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_data_reg) | rec->mask_data_mask; rec 157 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->mask_data_reg, temp); rec 158 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_data_reg); rec 167 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 171 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_clk_reg) & ~rec->mask_clk_mask; rec 172 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->mask_clk_reg, temp); rec 173 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_clk_reg); rec 175 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_data_reg) & ~rec->mask_data_mask; rec 176 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->mask_data_reg, temp); rec 177 drivers/gpu/drm/radeon/radeon_i2c.c temp = RREG32(rec->mask_data_reg); rec 186 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 190 drivers/gpu/drm/radeon/radeon_i2c.c val = RREG32(rec->y_clk_reg); rec 191 drivers/gpu/drm/radeon/radeon_i2c.c val &= rec->y_clk_mask; rec 201 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 205 drivers/gpu/drm/radeon/radeon_i2c.c val = RREG32(rec->y_data_reg); rec 206 drivers/gpu/drm/radeon/radeon_i2c.c val &= rec->y_data_mask; rec 215 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 219 drivers/gpu/drm/radeon/radeon_i2c.c val = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; rec 220 drivers/gpu/drm/radeon/radeon_i2c.c val |= clock ? 0 : rec->en_clk_mask; rec 221 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->en_clk_reg, val); rec 228 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 232 drivers/gpu/drm/radeon/radeon_i2c.c val = RREG32(rec->en_data_reg) & ~rec->en_data_mask; rec 233 drivers/gpu/drm/radeon/radeon_i2c.c val |= data ? 0 : rec->en_data_mask; rec 234 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->en_data_reg, val); rec 334 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 358 drivers/gpu/drm/radeon/radeon_i2c.c if (rec->mm_i2c) { rec 374 drivers/gpu/drm/radeon/radeon_i2c.c switch (rec->mask_clk_reg) { rec 386 drivers/gpu/drm/radeon/radeon_i2c.c switch (rec->mask_clk_reg) { rec 402 drivers/gpu/drm/radeon/radeon_i2c.c switch (rec->mask_clk_reg) { rec 421 drivers/gpu/drm/radeon/radeon_i2c.c switch (rec->mask_clk_reg) { rec 442 drivers/gpu/drm/radeon/radeon_i2c.c switch (rec->mask_clk_reg) { rec 587 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 601 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->mask_clk_reg); rec 602 drivers/gpu/drm/radeon/radeon_i2c.c tmp &= ~rec->mask_clk_mask; rec 603 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->mask_clk_reg, tmp); rec 604 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->mask_clk_reg); rec 606 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->mask_data_reg); rec 607 drivers/gpu/drm/radeon/radeon_i2c.c tmp &= ~rec->mask_data_mask; rec 608 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->mask_data_reg, tmp); rec 609 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->mask_data_reg); rec 612 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->a_clk_reg); rec 613 drivers/gpu/drm/radeon/radeon_i2c.c tmp &= ~rec->a_clk_mask; rec 614 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->a_clk_reg, tmp); rec 615 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->a_clk_reg); rec 617 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->a_data_reg); rec 618 drivers/gpu/drm/radeon/radeon_i2c.c tmp &= ~rec->a_data_mask; rec 619 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->a_data_reg, tmp); rec 620 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->a_data_reg); rec 623 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->en_clk_reg); rec 624 drivers/gpu/drm/radeon/radeon_i2c.c tmp &= ~rec->en_clk_mask; rec 625 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->en_clk_reg, tmp); rec 626 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->en_clk_reg); rec 628 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->en_data_reg); rec 629 drivers/gpu/drm/radeon/radeon_i2c.c tmp &= ~rec->en_data_mask; rec 630 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(rec->en_data_reg, tmp); rec 631 drivers/gpu/drm/radeon/radeon_i2c.c tmp = RREG32(rec->en_data_reg); rec 653 drivers/gpu/drm/radeon/radeon_i2c.c switch (rec->mask_clk_reg) { rec 820 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec = &i2c->rec; rec 857 drivers/gpu/drm/radeon/radeon_i2c.c if (rec->mm_i2c) rec 912 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec, rec 920 drivers/gpu/drm/radeon/radeon_i2c.c if (rec->mm_i2c && (radeon_hw_i2c == 0)) rec 927 drivers/gpu/drm/radeon/radeon_i2c.c i2c->rec = *rec; rec 934 drivers/gpu/drm/radeon/radeon_i2c.c if (rec->mm_i2c || rec 935 drivers/gpu/drm/radeon/radeon_i2c.c (rec->hw_capable && rec 946 drivers/gpu/drm/radeon/radeon_i2c.c } else if (rec->hw_capable && rec 1020 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_bus_rec *rec, rec 1028 drivers/gpu/drm/radeon/radeon_i2c.c rdev->i2c_bus[i] = radeon_i2c_create(dev, rec, name); rec 1042 drivers/gpu/drm/radeon/radeon_i2c.c (rdev->i2c_bus[i]->rec.i2c_id == i2c_bus->i2c_id)) { rec 203 drivers/gpu/drm/radeon/radeon_mode.h struct radeon_i2c_bus_rec rec; rec 786 drivers/gpu/drm/radeon/radeon_mode.h struct radeon_i2c_bus_rec *rec, rec 791 drivers/gpu/drm/radeon/radeon_mode.h struct radeon_i2c_bus_rec *rec, rec 719 drivers/infiniband/core/addr.c int roce_resolve_route_from_path(struct sa_path_rec *rec, rec 730 drivers/infiniband/core/addr.c if (rec->roce.route_resolved) rec 733 drivers/infiniband/core/addr.c rdma_gid2ip((struct sockaddr *)&sgid, &rec->sgid); rec 734 drivers/infiniband/core/addr.c rdma_gid2ip((struct sockaddr *)&dgid, &rec->dgid); rec 752 drivers/infiniband/core/addr.c rec->rec_type != SA_PATH_REC_TYPE_ROCE_V2) rec 755 drivers/infiniband/core/addr.c rec->roce.route_resolved = true; rec 553 drivers/infiniband/core/cma.c struct ib_sa_mcmember_rec rec; rec 573 drivers/infiniband/core/cma.c ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); rec 575 drivers/infiniband/core/cma.c id_priv->id.port_num, &rec.mgid, rec 576 drivers/infiniband/core/cma.c &rec); rec 578 drivers/infiniband/core/cma.c id_priv->qkey = be32_to_cpu(rec.qkey); rec 1811 drivers/infiniband/core/cma.c cma_igmp_send(ndev, &mc->multicast.ib->rec.mgid, false); rec 4163 drivers/infiniband/core/cma.c status = cma_set_qkey(id_priv, be32_to_cpu(multicast->rec.qkey)); rec 4169 drivers/infiniband/core/cma.c status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid, rec 4170 drivers/infiniband/core/cma.c be16_to_cpu(multicast->rec.mlid)); rec 4191 drivers/infiniband/core/cma.c &multicast->rec, rec 4198 drivers/infiniband/core/cma.c event.param.ud.qkey = be32_to_cpu(multicast->rec.qkey); rec 4252 drivers/infiniband/core/cma.c struct ib_sa_mcmember_rec rec; rec 4257 drivers/infiniband/core/cma.c ib_addr_get_mgid(dev_addr, &rec.mgid); rec 4259 drivers/infiniband/core/cma.c &rec.mgid, &rec); rec 4267 drivers/infiniband/core/cma.c cma_set_mgid(id_priv, (struct sockaddr *) &mc->addr, &rec.mgid); rec 4268 drivers/infiniband/core/cma.c rec.qkey = cpu_to_be32(id_priv->qkey); rec 4269 drivers/infiniband/core/cma.c rdma_addr_get_sgid(dev_addr, &rec.port_gid); rec 4270 drivers/infiniband/core/cma.c rec.pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr)); rec 4271 drivers/infiniband/core/cma.c rec.join_state = mc->join_state; rec 4273 drivers/infiniband/core/cma.c if ((rec.join_state == BIT(SENDONLY_FULLMEMBER_JOIN)) && rec 4298 drivers/infiniband/core/cma.c id_priv->id.port_num, &rec, rec 4373 drivers/infiniband/core/cma.c cma_iboe_set_mgid(addr, &mc->multicast.ib->rec.mgid, gid_type); rec 4375 drivers/infiniband/core/cma.c mc->multicast.ib->rec.pkey = cpu_to_be16(0xffff); rec 4377 drivers/infiniband/core/cma.c mc->multicast.ib->rec.qkey = cpu_to_be32(RDMA_UDP_QKEY); rec 4385 drivers/infiniband/core/cma.c mc->multicast.ib->rec.rate = iboe_get_rate(ndev); rec 4386 drivers/infiniband/core/cma.c mc->multicast.ib->rec.hop_limit = 1; rec 4387 drivers/infiniband/core/cma.c mc->multicast.ib->rec.mtu = iboe_get_mtu(ndev->mtu); rec 4391 drivers/infiniband/core/cma.c mc->multicast.ib->rec.hop_limit = IPV6_DEFAULT_HOPLIMIT; rec 4393 drivers/infiniband/core/cma.c err = cma_igmp_send(ndev, &mc->multicast.ib->rec.mgid, rec 4402 drivers/infiniband/core/cma.c if (err || !mc->multicast.ib->rec.mtu) { rec 4408 drivers/infiniband/core/cma.c &mc->multicast.ib->rec.port_gid); rec 4487 drivers/infiniband/core/cma.c &mc->multicast.ib->rec.mgid, rec 4488 drivers/infiniband/core/cma.c be16_to_cpu(mc->multicast.ib->rec.mlid)); rec 387 drivers/infiniband/core/core_priv.h int roce_resolve_route_from_path(struct sa_path_rec *rec, rec 97 drivers/infiniband/core/multicast.c struct ib_sa_mcmember_rec rec; rec 124 drivers/infiniband/core/multicast.c static void join_handler(int status, struct ib_sa_mcmember_rec *rec, rec 126 drivers/infiniband/core/multicast.c static void leave_handler(int status, struct ib_sa_mcmember_rec *rec, rec 138 drivers/infiniband/core/multicast.c ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); rec 163 drivers/infiniband/core/multicast.c ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, rec 164 drivers/infiniband/core/multicast.c sizeof group->rec.mgid); rec 252 drivers/infiniband/core/multicast.c return leave_state & group->rec.join_state; rec 338 drivers/infiniband/core/multicast.c &member->multicast.rec, rec 348 drivers/infiniband/core/multicast.c struct ib_sa_mcmember_rec rec; rec 351 drivers/infiniband/core/multicast.c rec = group->rec; rec 352 drivers/infiniband/core/multicast.c rec.join_state = leave_state; rec 356 drivers/infiniband/core/multicast.c port->port_num, IB_SA_METHOD_DELETE, &rec, rec 370 drivers/infiniband/core/multicast.c group->rec.join_state |= join_state; rec 371 drivers/infiniband/core/multicast.c member->multicast.rec = group->rec; rec 372 drivers/infiniband/core/multicast.c member->multicast.rec.join_state = join_state; rec 394 drivers/infiniband/core/multicast.c be16_to_cpu(group->rec.pkey), &pkey_index); rec 406 drivers/infiniband/core/multicast.c adjust_membership(group, member->multicast.rec.join_state, -1); rec 418 drivers/infiniband/core/multicast.c group->rec.join_state = 0; rec 447 drivers/infiniband/core/multicast.c join_state = multicast->rec.join_state; rec 450 drivers/infiniband/core/multicast.c if (join_state == (group->rec.join_state & join_state)) { rec 451 drivers/infiniband/core/multicast.c status = cmp_rec(&group->rec, &multicast->rec, rec 477 drivers/infiniband/core/multicast.c group->rec.join_state &= ~join_state; rec 511 drivers/infiniband/core/multicast.c static void join_handler(int status, struct ib_sa_mcmember_rec *rec, rec 523 drivers/infiniband/core/multicast.c group->port->port_num, be16_to_cpu(rec->pkey), rec 531 drivers/infiniband/core/multicast.c mgids_changed = memcmp(&rec->mgid, &group->rec.mgid, rec 532 drivers/infiniband/core/multicast.c sizeof(group->rec.mgid)); rec 533 drivers/infiniband/core/multicast.c group->rec = *rec; rec 536 drivers/infiniband/core/multicast.c is_mgid0 = !memcmp(&mgid0, &group->rec.mgid, rec 545 drivers/infiniband/core/multicast.c static void leave_handler(int status, struct ib_sa_mcmember_rec *rec, rec 579 drivers/infiniband/core/multicast.c group->rec.mgid = *mgid; rec 609 drivers/infiniband/core/multicast.c struct ib_sa_mcmember_rec *rec, rec 630 drivers/infiniband/core/multicast.c member->multicast.rec = *rec; rec 639 drivers/infiniband/core/multicast.c &rec->mgid, gfp_mask); rec 672 drivers/infiniband/core/multicast.c adjust_membership(group, multicast->rec.join_state, -1); rec 694 drivers/infiniband/core/multicast.c union ib_gid *mgid, struct ib_sa_mcmember_rec *rec) rec 710 drivers/infiniband/core/multicast.c *rec = group->rec; rec 735 drivers/infiniband/core/multicast.c struct ib_sa_mcmember_rec *rec, rec 750 drivers/infiniband/core/multicast.c sgid_attr = rdma_find_gid_by_port(device, &rec->port_gid, rec 758 drivers/infiniband/core/multicast.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(rec->mlid)); rec 759 drivers/infiniband/core/multicast.c rdma_ah_set_sl(ah_attr, rec->sl); rec 761 drivers/infiniband/core/multicast.c rdma_ah_set_static_rate(ah_attr, rec->rate); rec 762 drivers/infiniband/core/multicast.c rdma_move_grh_sgid_attr(ah_attr, &rec->mgid, rec 763 drivers/infiniband/core/multicast.c be32_to_cpu(rec->flow_label), rec 764 drivers/infiniband/core/multicast.c rec->hop_limit, rec->traffic_class, rec 53 drivers/infiniband/core/sa.h struct ib_sa_mcmember_rec *rec, rec 929 drivers/infiniband/core/sa_query.c struct ib_path_rec_data *rec; rec 951 drivers/infiniband/core/sa_query.c rec = nla_data(curr); rec 956 drivers/infiniband/core/sa_query.c if ((rec->flags & mask) == mask) { rec 960 drivers/infiniband/core/sa_query.c memcpy(mad->data, rec->path_rec, rec 961 drivers/infiniband/core/sa_query.c sizeof(rec->path_rec)); rec 1221 drivers/infiniband/core/sa_query.c struct sa_path_rec *rec, rec 1225 drivers/infiniband/core/sa_query.c enum ib_gid_type type = sa_conv_pathrec_to_gid_type(rec); rec 1228 drivers/infiniband/core/sa_query.c gid_attr = rdma_find_gid_by_port(device, &rec->sgid, type, rec 1235 drivers/infiniband/core/sa_query.c rdma_move_grh_sgid_attr(ah_attr, &rec->dgid, rec 1236 drivers/infiniband/core/sa_query.c be32_to_cpu(rec->flow_label), rec 1237 drivers/infiniband/core/sa_query.c rec->hop_limit, rec->traffic_class, rec 1259 drivers/infiniband/core/sa_query.c struct sa_path_rec *rec, rec 1267 drivers/infiniband/core/sa_query.c rdma_ah_set_sl(ah_attr, rec->sl); rec 1269 drivers/infiniband/core/sa_query.c rdma_ah_set_static_rate(ah_attr, rec->rate); rec 1271 drivers/infiniband/core/sa_query.c if (sa_path_is_roce(rec)) { rec 1272 drivers/infiniband/core/sa_query.c ret = roce_resolve_route_from_path(rec, gid_attr); rec 1276 drivers/infiniband/core/sa_query.c memcpy(ah_attr->roce.dmac, sa_path_get_dmac(rec), ETH_ALEN); rec 1278 drivers/infiniband/core/sa_query.c rdma_ah_set_dlid(ah_attr, be32_to_cpu(sa_path_get_dlid(rec))); rec 1279 drivers/infiniband/core/sa_query.c if (sa_path_is_opa(rec) && rec 1284 drivers/infiniband/core/sa_query.c be32_to_cpu(sa_path_get_slid(rec)) & rec 1288 drivers/infiniband/core/sa_query.c if (rec->hop_limit > 0 || sa_path_is_roce(rec)) rec 1290 drivers/infiniband/core/sa_query.c rec, ah_attr, gid_attr); rec 1402 drivers/infiniband/core/sa_query.c void ib_sa_unpack_path(void *attribute, struct sa_path_rec *rec) rec 1404 drivers/infiniband/core/sa_query.c ib_unpack(path_rec_table, ARRAY_SIZE(path_rec_table), attribute, rec); rec 1408 drivers/infiniband/core/sa_query.c void ib_sa_pack_path(struct sa_path_rec *rec, void *attribute) rec 1410 drivers/infiniband/core/sa_query.c ib_pack(path_rec_table, ARRAY_SIZE(path_rec_table), rec, attribute); rec 1455 drivers/infiniband/core/sa_query.c struct sa_path_rec *rec) rec 1479 drivers/infiniband/core/sa_query.c struct sa_path_rec rec; rec 1484 drivers/infiniband/core/sa_query.c mad->data, &rec); rec 1485 drivers/infiniband/core/sa_query.c rec.rec_type = SA_PATH_REC_TYPE_OPA; rec 1486 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); rec 1490 drivers/infiniband/core/sa_query.c mad->data, &rec); rec 1491 drivers/infiniband/core/sa_query.c rec.rec_type = SA_PATH_REC_TYPE_IB; rec 1492 drivers/infiniband/core/sa_query.c sa_path_set_dmac_zero(&rec); rec 1498 drivers/infiniband/core/sa_query.c sa_convert_path_ib_to_opa(&opa, &rec); rec 1501 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); rec 1544 drivers/infiniband/core/sa_query.c struct sa_path_rec *rec, rec 1564 drivers/infiniband/core/sa_query.c if ((rec->rec_type != SA_PATH_REC_TYPE_IB) && rec 1565 drivers/infiniband/core/sa_query.c (rec->rec_type != SA_PATH_REC_TYPE_OPA)) rec 1576 drivers/infiniband/core/sa_query.c if (rec->rec_type == SA_PATH_REC_TYPE_OPA) { rec 1577 drivers/infiniband/core/sa_query.c status = opa_pr_query_possible(client, device, port_num, rec); rec 1613 drivers/infiniband/core/sa_query.c rec, mad->data); rec 1615 drivers/infiniband/core/sa_query.c sa_convert_path_opa_to_ib(query->conv_pr, rec); rec 1620 drivers/infiniband/core/sa_query.c rec, mad->data); rec 1627 drivers/infiniband/core/sa_query.c query->conv_pr : rec; rec 1655 drivers/infiniband/core/sa_query.c struct ib_sa_service_rec rec; rec 1658 drivers/infiniband/core/sa_query.c mad->data, &rec); rec 1659 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); rec 1698 drivers/infiniband/core/sa_query.c struct ib_sa_service_rec *rec, rec 1749 drivers/infiniband/core/sa_query.c rec, mad->data); rec 1778 drivers/infiniband/core/sa_query.c struct ib_sa_mcmember_rec rec; rec 1781 drivers/infiniband/core/sa_query.c mad->data, &rec); rec 1782 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); rec 1795 drivers/infiniband/core/sa_query.c struct ib_sa_mcmember_rec *rec, rec 1841 drivers/infiniband/core/sa_query.c rec, mad->data); rec 1870 drivers/infiniband/core/sa_query.c struct ib_sa_guidinfo_rec rec; rec 1873 drivers/infiniband/core/sa_query.c mad->data, &rec); rec 1874 drivers/infiniband/core/sa_query.c query->callback(status, &rec, query->context); rec 1886 drivers/infiniband/core/sa_query.c struct ib_sa_guidinfo_rec *rec, rec 1938 drivers/infiniband/core/sa_query.c ib_pack(guidinfo_rec_table, ARRAY_SIZE(guidinfo_rec_table), rec, rec 2007 drivers/infiniband/core/sa_query.c struct opa_class_port_info rec; rec 2011 drivers/infiniband/core/sa_query.c mad->data, &rec); rec 2016 drivers/infiniband/core/sa_query.c memcpy(&info->data.opa, &rec, rec 2026 drivers/infiniband/core/sa_query.c struct ib_class_port_info rec; rec 2030 drivers/infiniband/core/sa_query.c mad->data, &rec); rec 2035 drivers/infiniband/core/sa_query.c memcpy(&info->data.ib, &rec, rec 948 drivers/infiniband/core/ucma.c struct sa_path_rec *rec = &ctx->cm_id->route.path_rec[i]; rec 952 drivers/infiniband/core/ucma.c if (rec->rec_type == SA_PATH_REC_TYPE_OPA) { rec 955 drivers/infiniband/core/ucma.c sa_convert_path_opa_to_ib(&ib, rec); rec 959 drivers/infiniband/core/ucma.c ib_sa_pack_path(rec, &resp->path_data[i].path_rec); rec 164 drivers/infiniband/core/uverbs_marshall.c struct sa_path_rec rec; rec 167 drivers/infiniband/core/uverbs_marshall.c sa_convert_path_opa_to_ib(&rec, src); rec 168 drivers/infiniband/core/uverbs_marshall.c __ib_copy_path_rec_to_user(dst, &rec); rec 197 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_sriov_alias_guid_info_rec_det *rec; rec 204 drivers/infiniband/hw/mlx4/alias_GUID.c rec = &dev->sriov.alias_guid.ports_guid[port_num - 1]. rec 237 drivers/infiniband/hw/mlx4/alias_GUID.c required_value = *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE]; rec 243 drivers/infiniband/hw/mlx4/alias_GUID.c rec->guid_indexes = rec->guid_indexes & rec 296 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_sriov_alias_guid_info_rec_det *rec; rec 307 drivers/infiniband/hw/mlx4/alias_GUID.c rec = &dev->sriov.alias_guid.ports_guid[port_index]. rec 313 drivers/infiniband/hw/mlx4/alias_GUID.c rec->time_to_run = ktime_get_boottime_ns() + 1 * NSEC_PER_SEC; rec 327 drivers/infiniband/hw/mlx4/alias_GUID.c rec = &dev->sriov.alias_guid.ports_guid[port_index]. rec 339 drivers/infiniband/hw/mlx4/alias_GUID.c required_val = *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE]; rec 356 drivers/infiniband/hw/mlx4/alias_GUID.c if (rec->guids_retry_schedule[i] == 0) rec 370 drivers/infiniband/hw/mlx4/alias_GUID.c if (rec->guids_retry_schedule[i] == 0) rec 383 drivers/infiniband/hw/mlx4/alias_GUID.c *(__be64 *)&rec->all_recs[i * GUID_REC_SIZE] = rec 396 drivers/infiniband/hw/mlx4/alias_GUID.c rec->guids_retry_schedule[i] = rec 397 drivers/infiniband/hw/mlx4/alias_GUID.c (rec->guids_retry_schedule[i] == 0) ? 1 : rec 399 drivers/infiniband/hw/mlx4/alias_GUID.c rec->guids_retry_schedule[i] * 2); rec 402 drivers/infiniband/hw/mlx4/alias_GUID.c rec->guids_retry_schedule[i] : rec 404 drivers/infiniband/hw/mlx4/alias_GUID.c rec->guids_retry_schedule[i]); rec 408 drivers/infiniband/hw/mlx4/alias_GUID.c rec->guids_retry_schedule[i] = 0; rec 413 drivers/infiniband/hw/mlx4/alias_GUID.c rec->guid_indexes & ~(applied_guid_indexes)) { rec 416 drivers/infiniband/hw/mlx4/alias_GUID.c be64_to_cpu((__force __be64)rec->guid_indexes), rec 419 drivers/infiniband/hw/mlx4/alias_GUID.c rec->time_to_run = ktime_get_boottime_ns() + rec 422 drivers/infiniband/hw/mlx4/alias_GUID.c rec->status = MLX4_GUID_INFO_STATUS_SET; rec 487 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_next_alias_guid_work *rec) rec 496 drivers/infiniband/hw/mlx4/alias_GUID.c u8 port = rec->port + 1; rec 497 drivers/infiniband/hw/mlx4/alias_GUID.c int index = rec->block_num; rec 498 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_sriov_alias_guid_info_rec_det *rec_det = &rec->rec_det; rec 527 drivers/infiniband/hw/mlx4/alias_GUID.c callback_context->method = rec->method; rec 547 drivers/infiniband/hw/mlx4/alias_GUID.c comp_mask, rec->method, 1000, rec 650 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_sriov_alias_guid_info_rec_det *rec = rec 655 drivers/infiniband/hw/mlx4/alias_GUID.c if (!(rec->guid_indexes & rec 659 drivers/infiniband/hw/mlx4/alias_GUID.c if (*(__be64 *)&rec->all_recs[i * GUID_REC_SIZE] == rec 667 drivers/infiniband/hw/mlx4/alias_GUID.c if (lowset_time_entry == -1 || rec->guids_retry_schedule[i] <= rec 670 drivers/infiniband/hw/mlx4/alias_GUID.c lowest_time = rec->guids_retry_schedule[i]; rec 674 drivers/infiniband/hw/mlx4/alias_GUID.c memcpy(&next_rec->rec_det, rec, sizeof(*rec)); rec 678 drivers/infiniband/hw/mlx4/alias_GUID.c if (*(__be64 *)&rec->all_recs[lowset_time_entry * GUID_REC_SIZE] == rec 696 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_sriov_alias_guid_info_rec_det rec; rec 700 drivers/infiniband/hw/mlx4/alias_GUID.c rec = dev->sriov.alias_guid.ports_guid[port]. rec 702 drivers/infiniband/hw/mlx4/alias_GUID.c if (rec.status == MLX4_GUID_INFO_STATUS_IDLE && rec 703 drivers/infiniband/hw/mlx4/alias_GUID.c rec.guid_indexes) { rec 705 drivers/infiniband/hw/mlx4/alias_GUID.c rec.time_to_run < low_record_time) { rec 707 drivers/infiniband/hw/mlx4/alias_GUID.c low_record_time = rec.time_to_run; rec 724 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_next_alias_guid_work *rec) rec 738 drivers/infiniband/hw/mlx4/alias_GUID.c set_required_record(dev, port, rec, record_index); rec 748 drivers/infiniband/hw/mlx4/alias_GUID.c struct mlx4_next_alias_guid_work *rec; rec 758 drivers/infiniband/hw/mlx4/alias_GUID.c rec = kzalloc(sizeof *rec, GFP_KERNEL); rec 759 drivers/infiniband/hw/mlx4/alias_GUID.c if (!rec) rec 763 drivers/infiniband/hw/mlx4/alias_GUID.c ret = get_next_record_to_update(dev, sriov_alias_port->port, rec); rec 769 drivers/infiniband/hw/mlx4/alias_GUID.c set_guid_rec(&dev->ib_dev, rec); rec 771 drivers/infiniband/hw/mlx4/alias_GUID.c kfree(rec); rec 102 drivers/infiniband/hw/mlx4/mcg.c struct ib_sa_mcmember_data rec; rec 171 drivers/infiniband/hw/mlx4/mcg.c ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); rec 195 drivers/infiniband/hw/mlx4/mcg.c ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, rec 196 drivers/infiniband/hw/mlx4/mcg.c sizeof group->rec.mgid); rec 301 drivers/infiniband/hw/mlx4/mcg.c *sa_data = group->rec; rec 341 drivers/infiniband/hw/mlx4/mcg.c *sa_data = group->rec; rec 455 drivers/infiniband/hw/mlx4/mcg.c nzgroup = memcmp(&group->rec.mgid, &mgid0, sizeof mgid0); rec 492 drivers/infiniband/hw/mlx4/mcg.c return leave_state & (group->rec.scope_join_state & 0xf); rec 556 drivers/infiniband/hw/mlx4/mcg.c if (memcmp(&group->rec.mgid, &mgid0, sizeof mgid0)) { rec 567 drivers/infiniband/hw/mlx4/mcg.c if (group->rec.scope_join_state & 0xf) rec 568 drivers/infiniband/hw/mlx4/mcg.c group->rec.scope_join_state &= 0xf0; rec 608 drivers/infiniband/hw/mlx4/mcg.c u8 group_join_state = group->rec.scope_join_state & 0xf; rec 615 drivers/infiniband/hw/mlx4/mcg.c status = cmp_rec(&group->rec, sa_data, req->sa_mad.sa_hdr.comp_mask); rec 694 drivers/infiniband/hw/mlx4/mcg.c cur_join_state = group->rec.scope_join_state & 0xf; rec 702 drivers/infiniband/hw/mlx4/mcg.c memcpy(&group->rec, group->response_sa_mad.data, sizeof group->rec); rec 728 drivers/infiniband/hw/mlx4/mcg.c group->rec.scope_join_state &= ~req_join_state; rec 758 drivers/infiniband/hw/mlx4/mcg.c group->rec.mgid = *new_mgid; rec 760 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->rec.mgid.global.subnet_prefix), rec 761 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->rec.mgid.global.interface_id)); rec 832 drivers/infiniband/hw/mlx4/mcg.c group->rec.mgid = *mgid; rec 841 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->rec.mgid.global.subnet_prefix), rec 842 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->rec.mgid.global.interface_id)); rec 886 drivers/infiniband/hw/mlx4/mcg.c struct ib_sa_mcmember_data *rec = (struct ib_sa_mcmember_data *)mad->data; rec 894 drivers/infiniband/hw/mlx4/mcg.c group = acquire_group(ctx, &rec->mgid, 0); rec 900 drivers/infiniband/hw/mlx4/mcg.c group = search_relocate_mgid0_group(ctx, tid, &rec->mgid); rec 935 drivers/infiniband/hw/mlx4/mcg.c struct ib_sa_mcmember_data *rec = (struct ib_sa_mcmember_data *)sa_mad->data; rec 957 drivers/infiniband/hw/mlx4/mcg.c group = acquire_group(ctx, &rec->mgid, may_create); rec 1015 drivers/infiniband/hw/mlx4/mcg.c group->rec.scope_join_state & 0xf, rec 1027 drivers/infiniband/hw/mlx4/mcg.c be16_to_cpu(group->rec.pkey), rec 1028 drivers/infiniband/hw/mlx4/mcg.c be32_to_cpu(group->rec.qkey), rec 1029 drivers/infiniband/hw/mlx4/mcg.c (group->rec.mtusel_mtu & 0xc0) >> 6, rec 1030 drivers/infiniband/hw/mlx4/mcg.c group->rec.mtusel_mtu & 0x3f, rec 1031 drivers/infiniband/hw/mlx4/mcg.c group->rec.tclass, rec 1032 drivers/infiniband/hw/mlx4/mcg.c (group->rec.ratesel_rate & 0xc0) >> 6, rec 1033 drivers/infiniband/hw/mlx4/mcg.c group->rec.ratesel_rate & 0x3f, rec 1034 drivers/infiniband/hw/mlx4/mcg.c (be32_to_cpu(group->rec.sl_flowlabel_hoplimit) & 0xf0000000) >> 28, rec 1035 drivers/infiniband/hw/mlx4/mcg.c (be32_to_cpu(group->rec.sl_flowlabel_hoplimit) & 0x0fffff00) >> 8, rec 1036 drivers/infiniband/hw/mlx4/mcg.c be32_to_cpu(group->rec.sl_flowlabel_hoplimit) & 0x000000ff, rec 1037 drivers/infiniband/hw/mlx4/mcg.c group->rec.proxy_join); rec 386 drivers/infiniband/ulp/ipoib/ipoib_multicast.c status = ipoib_mcast_join_finish(mcast, &multicast->rec); rec 476 drivers/infiniband/ulp/ipoib/ipoib_multicast.c struct ib_sa_mcmember_rec rec = { rec 491 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.mgid = mcast->mcmember.mgid; rec 492 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.port_gid = priv->local_gid; rec 493 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.pkey = cpu_to_be16(priv->pkey); rec 520 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.qkey = priv->broadcast->mcmember.qkey; rec 521 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.mtu_selector = IB_SA_EQ; rec 522 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.mtu = priv->broadcast->mcmember.mtu; rec 523 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.traffic_class = priv->broadcast->mcmember.traffic_class; rec 524 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.rate_selector = IB_SA_EQ; rec 525 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.rate = priv->broadcast->mcmember.rate; rec 526 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.sl = priv->broadcast->mcmember.sl; rec 527 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.flow_label = priv->broadcast->mcmember.flow_label; rec 528 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.hop_limit = priv->broadcast->mcmember.hop_limit; rec 544 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.join_state = SENDONLY_FULLMEMBER_JOIN; rec 549 drivers/infiniband/ulp/ipoib/ipoib_multicast.c &rec, comp_mask, GFP_KERNEL, rec 890 drivers/infiniband/ulp/ipoib/ipoib_multicast.c struct ib_sa_mcmember_rec rec; rec 929 drivers/infiniband/ulp/ipoib/ipoib_multicast.c !ib_sa_get_mcmember_rec(priv->ca, priv->port, &mgid, &rec)) { rec 769 drivers/input/misc/ims-pcu.c const struct ihex_binrec *rec = (const struct ihex_binrec *)fw->data; rec 772 drivers/input/misc/ims-pcu.c while (rec) { rec 774 drivers/input/misc/ims-pcu.c rec = ihex_next_binrec(rec); rec 823 drivers/input/misc/ims-pcu.c const struct ihex_binrec *rec = (const struct ihex_binrec *)fw->data; rec 838 drivers/input/misc/ims-pcu.c while (rec) { rec 845 drivers/input/misc/ims-pcu.c addr = be32_to_cpu(rec->addr) / 2; rec 846 drivers/input/misc/ims-pcu.c len = be16_to_cpu(rec->len); rec 851 drivers/input/misc/ims-pcu.c memcpy(fragment->data, rec->data, len); rec 864 drivers/input/misc/ims-pcu.c error = ims_pcu_verify_block(pcu, addr, len, rec->data); rec 872 drivers/input/misc/ims-pcu.c rec = ihex_next_binrec(rec); rec 758 drivers/input/touchscreen/iqs5xx.c struct iqs5xx_ihex_rec *rec; rec 784 drivers/input/touchscreen/iqs5xx.c if (pos + sizeof(*rec) > fw->size) { rec 789 drivers/input/touchscreen/iqs5xx.c rec = (struct iqs5xx_ihex_rec *)(fw->data + pos); rec 790 drivers/input/touchscreen/iqs5xx.c pos += sizeof(*rec); rec 792 drivers/input/touchscreen/iqs5xx.c if (rec->start != ':') { rec 799 drivers/input/touchscreen/iqs5xx.c error = hex2bin(rec_hdr, rec->len, sizeof(rec_hdr)); rec 817 drivers/input/touchscreen/iqs5xx.c error = hex2bin(rec_data, rec->data, rec_len); rec 825 drivers/input/touchscreen/iqs5xx.c rec->data + rec_len * 2, sizeof(rec_chksm)); rec 32 drivers/lightnvm/pblk-init.c struct kmem_cache *rec; rec 307 drivers/lightnvm/pblk-init.c pblk_caches.rec = kmem_cache_create("pblk_rec", rec 309 drivers/lightnvm/pblk-init.c if (!pblk_caches.rec) rec 327 drivers/lightnvm/pblk-init.c kmem_cache_destroy(pblk_caches.rec); rec 359 drivers/lightnvm/pblk-init.c kmem_cache_destroy(c->rec); rec 446 drivers/lightnvm/pblk-init.c pblk_caches.rec); rec 227 drivers/media/usb/gspca/vicam.c const struct ihex_binrec *rec; rec 243 drivers/media/usb/gspca/vicam.c for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { rec 244 drivers/media/usb/gspca/vicam.c memcpy(firmware_buf, rec->data, be16_to_cpu(rec->len)); rec 246 drivers/media/usb/gspca/vicam.c be16_to_cpu(rec->len)); rec 684 drivers/net/can/ti_hecc.c u32 rec = hecc_read(priv, HECC_CANREC); rec 689 drivers/net/can/ti_hecc.c rx_state = rec >= tec ? CAN_STATE_ERROR_WARNING : 0; rec 690 drivers/net/can/ti_hecc.c tx_state = rec <= tec ? CAN_STATE_ERROR_WARNING : 0; rec 697 drivers/net/can/ti_hecc.c rx_state = rec >= tec ? CAN_STATE_ERROR_PASSIVE : 0; rec 698 drivers/net/can/ti_hecc.c tx_state = rec <= tec ? CAN_STATE_ERROR_PASSIVE : 0; rec 716 drivers/net/can/ti_hecc.c u32 rec = hecc_read(priv, HECC_CANREC); rec 719 drivers/net/can/ti_hecc.c if (rec >= 128 || tec >= 128) rec 721 drivers/net/can/ti_hecc.c else if (rec >= 96 || tec >= 96) rec 727 drivers/net/can/ti_hecc.c rx_state = rec >= tec ? new_state : 0; rec 728 drivers/net/can/ti_hecc.c tx_state = rec <= tec ? new_state : 0; rec 9449 drivers/net/ethernet/mellanox/mlxsw/reg.h unsigned int rec, rec 9457 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_message_type = mlxsw_reg_mtpptr_rec_message_type_get(payload, rec); rec 9458 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_domain_number = mlxsw_reg_mtpptr_rec_domain_number_get(payload, rec); rec 9459 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_sequence_id = mlxsw_reg_mtpptr_rec_sequence_id_get(payload, rec); rec 9460 drivers/net/ethernet/mellanox/mlxsw/reg.h timestamp_high = mlxsw_reg_mtpptr_rec_timestamp_high_get(payload, rec); rec 9461 drivers/net/ethernet/mellanox/mlxsw/reg.h timestamp_low = mlxsw_reg_mtpptr_rec_timestamp_low_get(payload, rec); rec 135 drivers/net/wireless/ath/wil6210/fw_inc.c const struct wil_fw_record_capabilities *rec = data; rec 138 drivers/net/wireless/ath/wil6210/fw_inc.c if (size < sizeof(*rec)) { rec 147 drivers/net/wireless/ath/wil6210/fw_inc.c memcpy(wil->fw_capabilities, rec->capabilities, rec 150 drivers/net/wireless/ath/wil6210/fw_inc.c rec->capabilities, capa_size, false); rec 158 drivers/net/wireless/ath/wil6210/fw_inc.c const struct wil_fw_record_brd_file *rec = data; rec 181 drivers/net/wireless/ath/wil6210/fw_inc.c le32_to_cpu(rec->brd_info[i].base_addr); rec 183 drivers/net/wireless/ath/wil6210/fw_inc.c le32_to_cpu(rec->brd_info[i].max_size_bytes); rec 213 drivers/net/wireless/ath/wil6210/fw_inc.c const struct wil_fw_record_concurrency *rec = data; rec 219 drivers/net/wireless/ath/wil6210/fw_inc.c if (size < sizeof(*rec)) { rec 225 drivers/net/wireless/ath/wil6210/fw_inc.c n_combos = le16_to_cpu(rec->n_combos); rec 227 drivers/net/wireless/ath/wil6210/fw_inc.c combo = rec->combos; rec 241 drivers/net/wireless/ath/wil6210/fw_inc.c return wil_cfg80211_iface_combinations_from_fw(wil, rec); rec 796 drivers/net/wireless/intersil/hostap/hostap_hw.c struct hfa384x_rid_hdr rec; rec 831 drivers/net/wireless/intersil/hostap/hostap_hw.c res = hfa384x_from_bap(dev, BAP0, &rec, sizeof(rec)); rec 835 drivers/net/wireless/intersil/hostap/hostap_hw.c if (le16_to_cpu(rec.len) == 0) { rec 841 drivers/net/wireless/intersil/hostap/hostap_hw.c rlen = (le16_to_cpu(rec.len) - 1) * 2; rec 873 drivers/net/wireless/intersil/hostap/hostap_hw.c struct hfa384x_rid_hdr rec; rec 890 drivers/net/wireless/intersil/hostap/hostap_hw.c rec.rid = cpu_to_le16(rid); rec 892 drivers/net/wireless/intersil/hostap/hostap_hw.c rec.len = cpu_to_le16(len / 2 + len % 2 + 1); rec 901 drivers/net/wireless/intersil/hostap/hostap_hw.c res = hfa384x_to_bap(dev, BAP0, &rec, sizeof(rec)); rec 504 drivers/net/wireless/intersil/orinoco/hermes.h __le16 rec; rec 507 drivers/net/wireless/intersil/orinoco/hermes.h err = HERMES_READ_RECORD(hw, bap, rid, &rec); rec 508 drivers/net/wireless/intersil/orinoco/hermes.h *word = le16_to_cpu(rec); rec 515 drivers/net/wireless/intersil/orinoco/hermes.h __le16 rec = cpu_to_le16(word); rec 516 drivers/net/wireless/intersil/orinoco/hermes.h return HERMES_WRITE_RECORD(hw, bap, rid, &rec); rec 996 drivers/net/wireless/quantenna/qtnfmac/commands.c const struct qlink_iface_limit_record *rec; rec 1093 drivers/net/wireless/quantenna/qtnfmac/commands.c rec = (void *)tlv->val; rec 1094 drivers/net/wireless/quantenna/qtnfmac/commands.c rec_len = sizeof(*rec) + rec->n_limits * sizeof(*lim); rec 1102 drivers/net/wireless/quantenna/qtnfmac/commands.c limits = kcalloc(rec->n_limits, sizeof(*limits), rec 1108 drivers/net/wireless/quantenna/qtnfmac/commands.c rec->num_different_channels; rec 1110 drivers/net/wireless/quantenna/qtnfmac/commands.c le16_to_cpu(rec->max_interfaces); rec 1111 drivers/net/wireless/quantenna/qtnfmac/commands.c comb[n_comb].n_limits = rec->n_limits; rec 1114 drivers/net/wireless/quantenna/qtnfmac/commands.c for (i = 0; i < rec->n_limits; i++) { rec 1115 drivers/net/wireless/quantenna/qtnfmac/commands.c lim = &rec->limits[i]; rec 3366 drivers/s390/block/dasd_eckd.c cdata->rec = fmt_buffer[pos].record; rec 75 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_hba *rec = &dbf->hba_buf; rec 79 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 81 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 82 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_HBA_RES; rec 83 drivers/s390/scsi/zfcp_dbf.c rec->fsf_req_id = req->req_id; rec 84 drivers/s390/scsi/zfcp_dbf.c rec->fsf_req_status = req->status; rec 85 drivers/s390/scsi/zfcp_dbf.c rec->fsf_cmd = q_head->fsf_command; rec 86 drivers/s390/scsi/zfcp_dbf.c rec->fsf_seq_no = q_pref->req_seq_no; rec 87 drivers/s390/scsi/zfcp_dbf.c rec->u.res.req_issued = req->issued; rec 88 drivers/s390/scsi/zfcp_dbf.c rec->u.res.prot_status = q_pref->prot_status; rec 89 drivers/s390/scsi/zfcp_dbf.c rec->u.res.fsf_status = q_head->fsf_status; rec 90 drivers/s390/scsi/zfcp_dbf.c rec->u.res.port_handle = q_head->port_handle; rec 91 drivers/s390/scsi/zfcp_dbf.c rec->u.res.lun_handle = q_head->lun_handle; rec 93 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->u.res.prot_status_qual, &q_pref->prot_status_qual, rec 95 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->u.res.fsf_status_qual, &q_head->fsf_status_qual, rec 98 drivers/s390/scsi/zfcp_dbf.c rec->pl_len = q_head->log_length; rec 100 drivers/s390/scsi/zfcp_dbf.c rec->pl_len, "fsf_res", req->req_id); rec 102 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->hba, level, rec, sizeof(*rec)); rec 115 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_hba *rec = &dbf->hba_buf; rec 123 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 125 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 126 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_HBA_USS; rec 127 drivers/s390/scsi/zfcp_dbf.c rec->fsf_req_id = req->req_id; rec 128 drivers/s390/scsi/zfcp_dbf.c rec->fsf_req_status = req->status; rec 129 drivers/s390/scsi/zfcp_dbf.c rec->fsf_cmd = FSF_QTCB_UNSOLICITED_STATUS; rec 134 drivers/s390/scsi/zfcp_dbf.c rec->u.uss.status_type = srb->status_type; rec 135 drivers/s390/scsi/zfcp_dbf.c rec->u.uss.status_subtype = srb->status_subtype; rec 136 drivers/s390/scsi/zfcp_dbf.c rec->u.uss.d_id = ntoh24(srb->d_id); rec 137 drivers/s390/scsi/zfcp_dbf.c rec->u.uss.lun = srb->fcp_lun; rec 138 drivers/s390/scsi/zfcp_dbf.c memcpy(&rec->u.uss.queue_designator, &srb->queue_designator, rec 139 drivers/s390/scsi/zfcp_dbf.c sizeof(rec->u.uss.queue_designator)); rec 142 drivers/s390/scsi/zfcp_dbf.c rec->pl_len = (!srb->length) ? 0 : srb->length - rec 145 drivers/s390/scsi/zfcp_dbf.c if (rec->pl_len) rec 146 drivers/s390/scsi/zfcp_dbf.c zfcp_dbf_pl_write(dbf, srb->payload.data, rec->pl_len, rec 149 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->hba, level, rec, sizeof(*rec)); rec 161 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_hba *rec = &dbf->hba_buf; rec 170 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 172 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 173 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_HBA_BIT; rec 174 drivers/s390/scsi/zfcp_dbf.c rec->fsf_req_id = req->req_id; rec 175 drivers/s390/scsi/zfcp_dbf.c rec->fsf_req_status = req->status; rec 176 drivers/s390/scsi/zfcp_dbf.c rec->fsf_cmd = FSF_QTCB_UNSOLICITED_STATUS; rec 177 drivers/s390/scsi/zfcp_dbf.c memcpy(&rec->u.be, &sr_buf->payload.bit_error, rec 180 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->hba, level, rec, sizeof(*rec)); rec 232 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_hba *rec = &dbf->hba_buf; rec 240 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 242 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 243 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_HBA_BASIC; rec 245 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->hba, level, rec, sizeof(*rec)); rec 249 drivers/s390/scsi/zfcp_dbf.c static void zfcp_dbf_set_common(struct zfcp_dbf_rec *rec, rec 254 drivers/s390/scsi/zfcp_dbf.c rec->adapter_status = atomic_read(&adapter->status); rec 256 drivers/s390/scsi/zfcp_dbf.c rec->port_status = atomic_read(&port->status); rec 257 drivers/s390/scsi/zfcp_dbf.c rec->wwpn = port->wwpn; rec 258 drivers/s390/scsi/zfcp_dbf.c rec->d_id = port->d_id; rec 261 drivers/s390/scsi/zfcp_dbf.c rec->lun_status = atomic_read(&sdev_to_zfcp(sdev)->status); rec 262 drivers/s390/scsi/zfcp_dbf.c rec->lun = zfcp_scsi_dev_lun(sdev); rec 264 drivers/s390/scsi/zfcp_dbf.c rec->lun = ZFCP_DBF_INVALID_LUN; rec 283 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_rec *rec = &dbf->rec_buf; rec 290 drivers/s390/scsi/zfcp_dbf.c if (unlikely(!debug_level_enabled(dbf->rec, level))) rec 294 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 296 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_REC_TRIG; rec 297 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 298 drivers/s390/scsi/zfcp_dbf.c zfcp_dbf_set_common(rec, adapter, port, sdev); rec 301 drivers/s390/scsi/zfcp_dbf.c rec->u.trig.ready++; rec 304 drivers/s390/scsi/zfcp_dbf.c rec->u.trig.running++; rec 306 drivers/s390/scsi/zfcp_dbf.c rec->u.trig.want = want; rec 307 drivers/s390/scsi/zfcp_dbf.c rec->u.trig.need = need; rec 309 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->rec, level, rec, sizeof(*rec)); rec 344 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_rec *rec = &dbf->rec_buf; rec 347 drivers/s390/scsi/zfcp_dbf.c if (!debug_level_enabled(dbf->rec, level)) rec 351 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 353 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_REC_RUN; rec 354 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 355 drivers/s390/scsi/zfcp_dbf.c zfcp_dbf_set_common(rec, erp->adapter, erp->port, erp->sdev); rec 357 drivers/s390/scsi/zfcp_dbf.c rec->u.run.fsf_req_id = erp->fsf_req_id; rec 358 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_status = erp->status; rec 359 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_step = erp->step; rec 360 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_action = erp->type; rec 363 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_count = rec 366 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_count = atomic_read(&erp->port->erp_counter); rec 368 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_count = atomic_read(&erp->adapter->erp_counter); rec 370 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->rec, level, rec, sizeof(*rec)); rec 394 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_rec *rec = &dbf->rec_buf; rec 398 drivers/s390/scsi/zfcp_dbf.c if (unlikely(!debug_level_enabled(dbf->rec, level))) rec 402 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 404 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_REC_RUN; rec 405 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 406 drivers/s390/scsi/zfcp_dbf.c rec->port_status = wka_port->status; rec 407 drivers/s390/scsi/zfcp_dbf.c rec->d_id = wka_port->d_id; rec 408 drivers/s390/scsi/zfcp_dbf.c rec->lun = ZFCP_DBF_INVALID_LUN; rec 410 drivers/s390/scsi/zfcp_dbf.c rec->u.run.fsf_req_id = req_id; rec 411 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_status = ~0; rec 412 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_step = ~0; rec 413 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_action = ~0; rec 414 drivers/s390/scsi/zfcp_dbf.c rec->u.run.rec_count = ~0; rec 416 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->rec, level, rec, sizeof(*rec)); rec 427 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_san *rec = &dbf->san_buf; rec 434 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 436 drivers/s390/scsi/zfcp_dbf.c rec->id = id; rec 437 drivers/s390/scsi/zfcp_dbf.c rec->fsf_req_id = req_id; rec 438 drivers/s390/scsi/zfcp_dbf.c rec->d_id = d_id; rec 439 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 440 drivers/s390/scsi/zfcp_dbf.c rec->pl_len = len; /* full length even if we cap pay below */ rec 444 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->payload, sg_virt(sg), rec_len); /* part of 1st sg entry */ rec 474 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->san, ZFCP_DBF_SAN_LEVEL, rec, sizeof(*rec)); rec 618 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_scsi *rec = &dbf->scsi_buf; rec 624 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 626 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 627 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_SCSI_CMND; rec 629 drivers/s390/scsi/zfcp_dbf.c rec->scsi_result = sc->result; rec 630 drivers/s390/scsi/zfcp_dbf.c rec->scsi_retries = sc->retries; rec 631 drivers/s390/scsi/zfcp_dbf.c rec->scsi_allowed = sc->allowed; rec 632 drivers/s390/scsi/zfcp_dbf.c rec->scsi_id = sc->device->id; rec 633 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun = (u32)sc->device->lun; rec 634 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun_64_hi = (u32)(sc->device->lun >> 32); rec 635 drivers/s390/scsi/zfcp_dbf.c rec->host_scribble = (unsigned long)sc->host_scribble; rec 637 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->scsi_opcode, sc->cmnd, rec 640 drivers/s390/scsi/zfcp_dbf.c rec->scsi_result = ~0; rec 641 drivers/s390/scsi/zfcp_dbf.c rec->scsi_retries = ~0; rec 642 drivers/s390/scsi/zfcp_dbf.c rec->scsi_allowed = ~0; rec 643 drivers/s390/scsi/zfcp_dbf.c rec->scsi_id = sdev->id; rec 644 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun = (u32)sdev->lun; rec 645 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun_64_hi = (u32)(sdev->lun >> 32); rec 646 drivers/s390/scsi/zfcp_dbf.c rec->host_scribble = ~0; rec 648 drivers/s390/scsi/zfcp_dbf.c memset(rec->scsi_opcode, 0xff, ZFCP_DBF_SCSI_OPCODE); rec 652 drivers/s390/scsi/zfcp_dbf.c rec->fsf_req_id = fsf->req_id; rec 653 drivers/s390/scsi/zfcp_dbf.c rec->pl_len = FCP_RESP_WITH_EXT; rec 656 drivers/s390/scsi/zfcp_dbf.c memcpy(&rec->fcp_rsp, fcp_rsp, FCP_RESP_WITH_EXT); rec 659 drivers/s390/scsi/zfcp_dbf.c rec->fcp_rsp_info = fcp_rsp_info->rsp_code; rec 660 drivers/s390/scsi/zfcp_dbf.c rec->pl_len += be32_to_cpu(fcp_rsp->ext.fr_rsp_len); rec 663 drivers/s390/scsi/zfcp_dbf.c rec->pl_len += be32_to_cpu(fcp_rsp->ext.fr_sns_len); rec 674 drivers/s390/scsi/zfcp_dbf.c min_t(u16, max_t(u16, rec->pl_len, rec 680 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->scsi, level, rec, sizeof(*rec)); rec 698 drivers/s390/scsi/zfcp_dbf.c struct zfcp_dbf_scsi *rec = &dbf->scsi_buf; rec 706 drivers/s390/scsi/zfcp_dbf.c memset(rec, 0, sizeof(*rec)); rec 708 drivers/s390/scsi/zfcp_dbf.c memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN); rec 709 drivers/s390/scsi/zfcp_dbf.c rec->id = ZFCP_DBF_SCSI_CMND; rec 710 drivers/s390/scsi/zfcp_dbf.c rec->scsi_result = ret; /* re-use field, int is 4 bytes and fits */ rec 711 drivers/s390/scsi/zfcp_dbf.c rec->scsi_retries = ~0; rec 712 drivers/s390/scsi/zfcp_dbf.c rec->scsi_allowed = ~0; rec 713 drivers/s390/scsi/zfcp_dbf.c rec->fcp_rsp_info = ~0; rec 714 drivers/s390/scsi/zfcp_dbf.c rec->scsi_id = scsi_id; rec 715 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun = (u32)ZFCP_DBF_INVALID_LUN; rec 716 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun_64_hi = (u32)(ZFCP_DBF_INVALID_LUN >> 32); rec 717 drivers/s390/scsi/zfcp_dbf.c rec->host_scribble = ~0; rec 718 drivers/s390/scsi/zfcp_dbf.c memset(rec->scsi_opcode, 0xff, ZFCP_DBF_SCSI_OPCODE); rec 720 drivers/s390/scsi/zfcp_dbf.c debug_event(dbf->scsi, level, rec, sizeof(*rec)); rec 747 drivers/s390/scsi/zfcp_dbf.c debug_unregister(dbf->rec); rec 773 drivers/s390/scsi/zfcp_dbf.c dbf->rec = zfcp_dbf_reg(name, dbfsize, sizeof(struct zfcp_dbf_rec)); rec 774 drivers/s390/scsi/zfcp_dbf.c if (!dbf->rec) rec 281 drivers/s390/scsi/zfcp_dbf.h debug_info_t *rec; rec 123 drivers/scsi/aha1740.h :2, rec:1,:1; /* Error Recovery */ rec 584 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_els_rec rec; rec 593 drivers/scsi/bnx2fc/bnx2fc_els.c memset(&rec, 0, sizeof(rec)); rec 605 drivers/scsi/bnx2fc/bnx2fc_els.c rec.rec_cmd = ELS_REC; rec 606 drivers/scsi/bnx2fc/bnx2fc_els.c hton24(rec.rec_s_id, sid); rec 607 drivers/scsi/bnx2fc/bnx2fc_els.c rec.rec_ox_id = htons(orig_io_req->xid); rec 608 drivers/scsi/bnx2fc/bnx2fc_els.c rec.rec_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id); rec 610 drivers/scsi/bnx2fc/bnx2fc_els.c rc = bnx2fc_initiate_els(tgt, ELS_REC, &rec, sizeof(rec), rec 979 drivers/scsi/qedf/qedf_els.c struct fc_els_rec rec; rec 1014 drivers/scsi/qedf/qedf_els.c memset(&rec, 0, sizeof(rec)); rec 1026 drivers/scsi/qedf/qedf_els.c rec.rec_cmd = ELS_REC; rec 1027 drivers/scsi/qedf/qedf_els.c hton24(rec.rec_s_id, sid); rec 1028 drivers/scsi/qedf/qedf_els.c rec.rec_ox_id = htons(orig_io_req->xid); rec 1029 drivers/scsi/qedf/qedf_els.c rec.rec_rx_id = rec 1034 drivers/scsi/qedf/qedf_els.c orig_io_req->xid, rec.rec_rx_id); rec 1035 drivers/scsi/qedf/qedf_els.c rc = qedf_initiate_els(fcport, ELS_REC, &rec, sizeof(rec), rec 345 drivers/scsi/sd_zbc.c unsigned char *rec; rec 384 drivers/scsi/sd_zbc.c rec = &buf[64]; rec 385 drivers/scsi/sd_zbc.c zone_blocks = get_unaligned_be64(&rec[8]); rec 399 drivers/scsi/sd_zbc.c rec = buf + 64; rec 402 drivers/scsi/sd_zbc.c while (rec < buf + buflen) { rec 403 drivers/scsi/sd_zbc.c u64 this_zone_blocks = get_unaligned_be64(&rec[8]); rec 414 drivers/scsi/sd_zbc.c rec += 64; rec 247 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_indirect *rec, size_t bytes) rec 251 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c void *src = (void *) (substream->runtime->dma_area + rec->sw_data); rec 109 drivers/staging/wlan-ng/prism2fw.c struct hfa384x_pdrec *rec[HFA384x_PDA_RECS_MAX]; rec 279 drivers/staging/wlan-ng/prism2fw.c pda.rec[0] = (struct hfa384x_pdrec *)pda.buf; rec 280 drivers/staging/wlan-ng/prism2fw.c pda.rec[0]->len = cpu_to_le16(2); /* len in words */ rec 281 drivers/staging/wlan-ng/prism2fw.c pda.rec[0]->code = cpu_to_le16(HFA384x_PDR_END_OF_PDA); rec 612 drivers/staging/wlan-ng/prism2fw.c pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&pda16[curroff]; rec 614 drivers/staging/wlan-ng/prism2fw.c if (le16_to_cpu(pda->rec[pda->nrec]->code) == rec 616 drivers/staging/wlan-ng/prism2fw.c memcpy(&nicid, &pda->rec[pda->nrec]->data.nicid, rec 623 drivers/staging/wlan-ng/prism2fw.c if (le16_to_cpu(pda->rec[pda->nrec]->code) == rec 625 drivers/staging/wlan-ng/prism2fw.c memcpy(&rfid, &pda->rec[pda->nrec]->data.mfisuprange, rec 632 drivers/staging/wlan-ng/prism2fw.c if (le16_to_cpu(pda->rec[pda->nrec]->code) == rec 634 drivers/staging/wlan-ng/prism2fw.c memcpy(&macid, &pda->rec[pda->nrec]->data.cfisuprange, rec 650 drivers/staging/wlan-ng/prism2fw.c pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&pda16[curroff]; rec 696 drivers/staging/wlan-ng/prism2fw.c le16_to_cpu(pda->rec[j]->code)) rec 717 drivers/staging/wlan-ng/prism2fw.c if (j != -1 && s3plug[i].len < le16_to_cpu(pda->rec[j]->len)) { rec 752 drivers/staging/wlan-ng/prism2fw.c memcpy(dest, &pda->rec[j]->data, s3plug[i].len); rec 1470 drivers/staging/wlan-ng/prism2sta.c struct hfa384x_assoc_status rec; rec 1473 drivers/staging/wlan-ng/prism2sta.c memcpy(&rec, &inf->info.assocstatus, sizeof(rec)); rec 1474 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&rec.assocstatus); rec 1475 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&rec.reason); rec 1490 drivers/staging/wlan-ng/prism2sta.c if (ether_addr_equal(rec.sta_addr, hw->authlist.addr[i])) rec 1494 drivers/staging/wlan-ng/prism2sta.c if (rec.assocstatus != HFA384x_ASSOCSTATUS_AUTHFAIL) rec 1499 drivers/staging/wlan-ng/prism2sta.c (rec.assocstatus == HFA384x_ASSOCSTATUS_STAASSOC || rec 1500 drivers/staging/wlan-ng/prism2sta.c rec.assocstatus == HFA384x_ASSOCSTATUS_REASSOC); rec 1502 drivers/staging/wlan-ng/prism2sta.c if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL) rec 1546 drivers/staging/wlan-ng/prism2sta.c struct hfa384x_authenticate_station_data rec; rec 1556 drivers/staging/wlan-ng/prism2sta.c ether_addr_copy(rec.address, inf->info.authreq.sta_addr); rec 1557 drivers/staging/wlan-ng/prism2sta.c rec.status = cpu_to_le16(P80211ENUM_status_unspec_failure); rec 1572 drivers/staging/wlan-ng/prism2sta.c if (ether_addr_equal(rec.address, rec 1574 drivers/staging/wlan-ng/prism2sta.c rec.status = cpu_to_le16(P80211ENUM_status_successful); rec 1586 drivers/staging/wlan-ng/prism2sta.c rec.status = cpu_to_le16(P80211ENUM_status_successful); rec 1610 drivers/staging/wlan-ng/prism2sta.c if (ether_addr_equal(rec.address, addr)) { rec 1611 drivers/staging/wlan-ng/prism2sta.c rec.status = cpu_to_le16(P80211ENUM_status_successful); rec 1637 drivers/staging/wlan-ng/prism2sta.c rec.status = cpu_to_le16(P80211ENUM_status_successful); rec 1640 drivers/staging/wlan-ng/prism2sta.c if (ether_addr_equal(rec.address, addr)) { rec 1641 drivers/staging/wlan-ng/prism2sta.c rec.status = cpu_to_le16(P80211ENUM_status_unspec_failure); rec 1659 drivers/staging/wlan-ng/prism2sta.c if (rec.status == cpu_to_le16(P80211ENUM_status_successful)) { rec 1661 drivers/staging/wlan-ng/prism2sta.c if (ether_addr_equal(rec.address, rec 1667 drivers/staging/wlan-ng/prism2sta.c rec.status = cpu_to_le16(P80211ENUM_status_ap_full); rec 1670 drivers/staging/wlan-ng/prism2sta.c rec.address); rec 1683 drivers/staging/wlan-ng/prism2sta.c rec.algorithm = inf->info.authreq.algorithm; rec 1686 drivers/staging/wlan-ng/prism2sta.c &rec, sizeof(rec)); rec 76 drivers/usb/misc/emi26.c const struct ihex_binrec *rec; rec 109 drivers/usb/misc/emi26.c rec = (const struct ihex_binrec *)loader_fw->data; rec 111 drivers/usb/misc/emi26.c while (rec) { rec 112 drivers/usb/misc/emi26.c err = emi26_writememory(dev, be32_to_cpu(rec->addr), rec 113 drivers/usb/misc/emi26.c rec->data, be16_to_cpu(rec->len), rec 117 drivers/usb/misc/emi26.c rec = ihex_next_binrec(rec); rec 129 drivers/usb/misc/emi26.c rec = (const struct ihex_binrec *)bitstream_fw->data; rec 132 drivers/usb/misc/emi26.c addr = be32_to_cpu(rec->addr); rec 135 drivers/usb/misc/emi26.c while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { rec 136 drivers/usb/misc/emi26.c memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); rec 137 drivers/usb/misc/emi26.c i += be16_to_cpu(rec->len); rec 138 drivers/usb/misc/emi26.c rec = ihex_next_binrec(rec); rec 143 drivers/usb/misc/emi26.c } while (rec); rec 151 drivers/usb/misc/emi26.c for (rec = (const struct ihex_binrec *)loader_fw->data; rec 152 drivers/usb/misc/emi26.c rec; rec = ihex_next_binrec(rec)) { rec 153 drivers/usb/misc/emi26.c err = emi26_writememory(dev, be32_to_cpu(rec->addr), rec 154 drivers/usb/misc/emi26.c rec->data, be16_to_cpu(rec->len), rec 168 drivers/usb/misc/emi26.c for (rec = (const struct ihex_binrec *)firmware_fw->data; rec 169 drivers/usb/misc/emi26.c rec; rec = ihex_next_binrec(rec)) { rec 170 drivers/usb/misc/emi26.c if (!INTERNAL_RAM(be32_to_cpu(rec->addr))) { rec 171 drivers/usb/misc/emi26.c err = emi26_writememory(dev, be32_to_cpu(rec->addr), rec 172 drivers/usb/misc/emi26.c rec->data, be16_to_cpu(rec->len), rec 184 drivers/usb/misc/emi26.c for (rec = (const struct ihex_binrec *)firmware_fw->data; rec 185 drivers/usb/misc/emi26.c rec; rec = ihex_next_binrec(rec)) { rec 186 drivers/usb/misc/emi26.c if (INTERNAL_RAM(be32_to_cpu(rec->addr))) { rec 187 drivers/usb/misc/emi26.c err = emi26_writememory(dev, be32_to_cpu(rec->addr), rec 188 drivers/usb/misc/emi26.c rec->data, be16_to_cpu(rec->len), rec 84 drivers/usb/misc/emi62.c const struct ihex_binrec *rec; rec 115 drivers/usb/misc/emi62.c rec = (const struct ihex_binrec *)loader_fw->data; rec 118 drivers/usb/misc/emi62.c while (rec) { rec 119 drivers/usb/misc/emi62.c err = emi62_writememory(dev, be32_to_cpu(rec->addr), rec 120 drivers/usb/misc/emi62.c rec->data, be16_to_cpu(rec->len), rec 124 drivers/usb/misc/emi62.c rec = ihex_next_binrec(rec); rec 136 drivers/usb/misc/emi62.c rec = (const struct ihex_binrec *)bitstream_fw->data; rec 139 drivers/usb/misc/emi62.c addr = be32_to_cpu(rec->addr); rec 142 drivers/usb/misc/emi62.c while (rec && (i + be16_to_cpu(rec->len) < FW_LOAD_SIZE)) { rec 143 drivers/usb/misc/emi62.c memcpy(buf + i, rec->data, be16_to_cpu(rec->len)); rec 144 drivers/usb/misc/emi62.c i += be16_to_cpu(rec->len); rec 145 drivers/usb/misc/emi62.c rec = ihex_next_binrec(rec); rec 150 drivers/usb/misc/emi62.c } while (rec); rec 158 drivers/usb/misc/emi62.c for (rec = (const struct ihex_binrec *)loader_fw->data; rec 159 drivers/usb/misc/emi62.c rec; rec = ihex_next_binrec(rec)) { rec 160 drivers/usb/misc/emi62.c err = emi62_writememory(dev, be32_to_cpu(rec->addr), rec 161 drivers/usb/misc/emi62.c rec->data, be16_to_cpu(rec->len), rec 175 drivers/usb/misc/emi62.c for (rec = (const struct ihex_binrec *)firmware_fw->data; rec 176 drivers/usb/misc/emi62.c rec; rec = ihex_next_binrec(rec)) { rec 177 drivers/usb/misc/emi62.c if (!INTERNAL_RAM(be32_to_cpu(rec->addr))) { rec 178 drivers/usb/misc/emi62.c err = emi62_writememory(dev, be32_to_cpu(rec->addr), rec 179 drivers/usb/misc/emi62.c rec->data, be16_to_cpu(rec->len), rec 191 drivers/usb/misc/emi62.c for (rec = (const struct ihex_binrec *)firmware_fw->data; rec 192 drivers/usb/misc/emi62.c rec; rec = ihex_next_binrec(rec)) { rec 193 drivers/usb/misc/emi62.c if (INTERNAL_RAM(be32_to_cpu(rec->addr))) { rec 194 drivers/usb/misc/emi62.c err = emi62_writememory(dev, be32_to_cpu(rec->addr), rec 195 drivers/usb/misc/emi62.c rec->data, be16_to_cpu(rec->len), rec 360 drivers/usb/serial/io_edgeport.c const struct ihex_binrec *rec; rec 384 drivers/usb/serial/io_edgeport.c rec = (const struct ihex_binrec *)fw->data; rec 385 drivers/usb/serial/io_edgeport.c BootMajorVersion = rec->data[0]; rec 386 drivers/usb/serial/io_edgeport.c BootMinorVersion = rec->data[1]; rec 387 drivers/usb/serial/io_edgeport.c BootBuildNumber = (rec->data[2] << 8) | rec->data[3]; rec 413 drivers/usb/serial/io_edgeport.c for (rec = ihex_next_binrec(rec); rec; rec 414 drivers/usb/serial/io_edgeport.c rec = ihex_next_binrec(rec)) { rec 415 drivers/usb/serial/io_edgeport.c Bootaddr = be32_to_cpu(rec->addr); rec 419 drivers/usb/serial/io_edgeport.c be16_to_cpu(rec->len), rec 420 drivers/usb/serial/io_edgeport.c &rec->data[0]); rec 425 drivers/usb/serial/io_edgeport.c be16_to_cpu(rec->len)); rec 2742 drivers/usb/serial/io_edgeport.c const struct ihex_binrec *rec; rec 2777 drivers/usb/serial/io_edgeport.c rec = (const struct ihex_binrec *)fw->data; rec 2778 drivers/usb/serial/io_edgeport.c build = (rec->data[2] << 8) | rec->data[3]; rec 2780 drivers/usb/serial/io_edgeport.c dev_dbg(dev, "%s %d.%d.%d\n", fw_info, rec->data[0], rec->data[1], build); rec 2782 drivers/usb/serial/io_edgeport.c edge_serial->product_info.FirmwareMajorVersion = rec->data[0]; rec 2783 drivers/usb/serial/io_edgeport.c edge_serial->product_info.FirmwareMinorVersion = rec->data[1]; rec 2786 drivers/usb/serial/io_edgeport.c for (rec = ihex_next_binrec(rec); rec; rec 2787 drivers/usb/serial/io_edgeport.c rec = ihex_next_binrec(rec)) { rec 2788 drivers/usb/serial/io_edgeport.c Operaddr = be32_to_cpu(rec->addr); rec 2792 drivers/usb/serial/io_edgeport.c be16_to_cpu(rec->len), rec 2793 drivers/usb/serial/io_edgeport.c &rec->data[0]); rec 2798 drivers/usb/serial/io_edgeport.c be16_to_cpu(rec->len)); rec 301 drivers/watchdog/ziirave_wdt.c const struct ihex_binrec *rec; rec 305 drivers/watchdog/ziirave_wdt.c for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { rec 306 drivers/watchdog/ziirave_wdt.c const u16 len = be16_to_cpu(rec->len); rec 307 drivers/watchdog/ziirave_wdt.c const u32 addr = be32_to_cpu(rec->addr); rec 331 drivers/watchdog/ziirave_wdt.c if (memcmp(data, rec->data, len)) { rec 345 drivers/watchdog/ziirave_wdt.c const struct ihex_binrec *rec; rec 372 drivers/watchdog/ziirave_wdt.c for (rec = (void *)fw->data; rec; rec = ihex_next_binrec(rec)) { rec 373 drivers/watchdog/ziirave_wdt.c ret = ziirave_firm_write_pkt(wdd, be32_to_cpu(rec->addr), rec 374 drivers/watchdog/ziirave_wdt.c rec->data, be16_to_cpu(rec->len)); rec 2147 fs/btrfs/extent_io.c struct io_failure_record *rec) rec 2152 fs/btrfs/extent_io.c set_state_failrec(failure_tree, rec->start, NULL); rec 2153 fs/btrfs/extent_io.c ret = clear_extent_bits(failure_tree, rec->start, rec 2154 fs/btrfs/extent_io.c rec->start + rec->len - 1, rec 2159 fs/btrfs/extent_io.c ret = clear_extent_bits(io_tree, rec->start, rec 2160 fs/btrfs/extent_io.c rec->start + rec->len - 1, rec 2165 fs/btrfs/extent_io.c kfree(rec); rec 550 fs/btrfs/extent_io.h struct io_failure_record *rec); rec 134 fs/btrfs/reada.c struct reada_extctl *rec; rec 147 fs/btrfs/reada.c list_for_each_entry(rec, &list, list) { rec 148 fs/btrfs/reada.c struct reada_control *rc = rec->rc; rec 158 fs/btrfs/reada.c if (rec->generation != generation) { rec 162 fs/btrfs/reada.c rec->generation, generation); rec 165 fs/btrfs/reada.c if (rec->generation == generation && rec 178 fs/btrfs/reada.c struct reada_extctl *rec; rec 180 fs/btrfs/reada.c rec = list_first_entry(&list, struct reada_extctl, list); rec 181 fs/btrfs/reada.c list_del(&rec->list); rec 182 fs/btrfs/reada.c rc = rec->rc; rec 183 fs/btrfs/reada.c kfree(rec); rec 548 fs/btrfs/reada.c struct reada_extctl *rec; rec 555 fs/btrfs/reada.c rec = kzalloc(sizeof(*rec), GFP_KERNEL); rec 556 fs/btrfs/reada.c if (!rec) { rec 561 fs/btrfs/reada.c rec->rc = rc; rec 562 fs/btrfs/reada.c rec->generation = generation; rec 566 fs/btrfs/reada.c list_add_tail(&rec->list, &re->extctl); rec 3337 fs/ceph/mds_client.c } rec; rec 3355 fs/ceph/mds_client.c rec.v2.cap_id = cpu_to_le64(cap->cap_id); rec 3356 fs/ceph/mds_client.c rec.v2.wanted = cpu_to_le32(__ceph_caps_wanted(ci)); rec 3357 fs/ceph/mds_client.c rec.v2.issued = cpu_to_le32(cap->issued); rec 3358 fs/ceph/mds_client.c rec.v2.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); rec 3359 fs/ceph/mds_client.c rec.v2.pathbase = 0; rec 3360 fs/ceph/mds_client.c rec.v2.flock_len = (__force __le32) rec 3363 fs/ceph/mds_client.c rec.v1.cap_id = cpu_to_le64(cap->cap_id); rec 3364 fs/ceph/mds_client.c rec.v1.wanted = cpu_to_le32(__ceph_caps_wanted(ci)); rec 3365 fs/ceph/mds_client.c rec.v1.issued = cpu_to_le32(cap->issued); rec 3366 fs/ceph/mds_client.c rec.v1.size = cpu_to_le64(inode->i_size); rec 3367 fs/ceph/mds_client.c ceph_encode_timespec64(&rec.v1.mtime, &inode->i_mtime); rec 3368 fs/ceph/mds_client.c ceph_encode_timespec64(&rec.v1.atime, &inode->i_atime); rec 3369 fs/ceph/mds_client.c rec.v1.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); rec 3370 fs/ceph/mds_client.c rec.v1.pathbase = 0; rec 3390 fs/ceph/mds_client.c if (rec.v2.flock_len) { rec 3430 fs/ceph/mds_client.c rec.v2.flock_len = cpu_to_le32(struct_len); rec 3432 fs/ceph/mds_client.c struct_len += sizeof(u32) + sizeof(rec.v2); rec 3457 fs/ceph/mds_client.c ceph_pagelist_append(pagelist, &rec, sizeof(rec.v2)); rec 3479 fs/ceph/mds_client.c rec.v1.pathbase = cpu_to_le64(pathbase); rec 3484 fs/ceph/mds_client.c pathlen + sizeof(rec.v1)); rec 3491 fs/ceph/mds_client.c ceph_pagelist_append(pagelist, &rec, sizeof(rec.v1)); rec 75 fs/ext4/fsmap.c struct ext4_fsmap *rec) rec 77 fs/ext4/fsmap.c return rec->fmr_physical < info->gfi_low.fmr_physical; rec 86 fs/ext4/fsmap.c struct ext4_fsmap *rec) rec 90 fs/ext4/fsmap.c ext4_fsblk_t rec_fsblk = rec->fmr_physical; rec 102 fs/ext4/fsmap.c if (ext4_getfsmap_rec_before_low_key(info, rec)) { rec 103 fs/ext4/fsmap.c rec_fsblk += rec->fmr_length; rec 119 fs/ext4/fsmap.c rec_fsblk += rec->fmr_length; rec 161 fs/ext4/fsmap.c rec->fmr_length, rec->fmr_owner); rec 165 fs/ext4/fsmap.c fmr.fmr_owner = rec->fmr_owner; rec 167 fs/ext4/fsmap.c fmr.fmr_length = rec->fmr_length; rec 174 fs/ext4/fsmap.c rec_fsblk += rec->fmr_length; rec 26 fs/hfs/attr.c hfs_cat_rec rec; rec 40 fs/hfs/attr.c hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, rec 42 fs/hfs/attr.c file = &rec.file; rec 61 fs/hfs/attr.c hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, rec 72 fs/hfs/attr.c hfs_cat_rec rec; rec 87 fs/hfs/attr.c hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, rec 90 fs/hfs/attr.c file = &rec.file; rec 47 fs/hfs/bfind.c int rec; rec 55 fs/hfs/bfind.c rec = (e + b) / 2; rec 56 fs/hfs/bfind.c len = hfs_brec_lenoff(bnode, rec, &off); rec 57 fs/hfs/bfind.c keylen = hfs_brec_keylen(bnode, rec); rec 65 fs/hfs/bfind.c e = rec; rec 70 fs/hfs/bfind.c b = rec + 1; rec 72 fs/hfs/bfind.c e = rec - 1; rec 74 fs/hfs/bfind.c if (rec != e && e >= 0) { rec 149 fs/hfs/bfind.c int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) rec 158 fs/hfs/bfind.c hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); rec 19 fs/hfs/brec.c u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) rec 24 fs/hfs/brec.c dataoff = node->tree->node_size - (rec + 2) * 2; rec 31 fs/hfs/brec.c u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) rec 45 fs/hfs/brec.c recoff = hfs_bnode_read_u16(node, node->tree->node_size - (rec + 1) * 2); rec 69 fs/hfs/brec.c int size, key_len, rec; rec 88 fs/hfs/brec.c rec = fd->record + 1; rec 98 fs/hfs/brec.c rec, size, end_off, end_rec_off); rec 117 fs/hfs/brec.c idx_rec_off = tree->node_size - (rec + 1) * 2; rec 140 fs/hfs/brec.c if (!rec && new_node != node) { rec 357 fs/hfs/brec.c int rec, rec_off, end_rec_off; rec 374 fs/hfs/brec.c rec = fd->record; rec 382 fs/hfs/brec.c rec, fd->keylength, newkeylen); rec 384 fs/hfs/brec.c rec_off = tree->node_size - (rec + 2) * 2; rec 399 fs/hfs/brec.c rec = fd->record; rec 400 fs/hfs/brec.c rec_off = tree->node_size - (rec + 2) * 2; rec 442 fs/hfs/brec.c if (!rec) { rec 451 fs/hfs/brec.c if (!rec && node->parent) rec 462 fs/hfs/brec.c int key_size, rec; rec 499 fs/hfs/brec.c rec = tree->node_size - 2; rec 500 fs/hfs/brec.c hfs_bnode_write_u16(new_node, rec, 14); rec 520 fs/hfs/brec.c rec -= 2; rec 521 fs/hfs/brec.c hfs_bnode_write_u16(new_node, rec, 14 + key_size + 4); rec 36 fs/hfs/catalog.c static int hfs_cat_build_record(hfs_cat_rec *rec, u32 cnid, struct inode *inode) rec 40 fs/hfs/catalog.c memset(rec, 0, sizeof(*rec)); rec 42 fs/hfs/catalog.c rec->type = HFS_CDR_DIR; rec 43 fs/hfs/catalog.c rec->dir.DirID = cpu_to_be32(cnid); rec 44 fs/hfs/catalog.c rec->dir.CrDat = mtime; rec 45 fs/hfs/catalog.c rec->dir.MdDat = mtime; rec 46 fs/hfs/catalog.c rec->dir.BkDat = 0; rec 47 fs/hfs/catalog.c rec->dir.UsrInfo.frView = cpu_to_be16(0xff); rec 51 fs/hfs/catalog.c rec->type = HFS_CDR_FIL; rec 52 fs/hfs/catalog.c rec->file.Flags = HFS_FIL_USED | HFS_FIL_THD; rec 54 fs/hfs/catalog.c rec->file.Flags |= HFS_FIL_LOCK; rec 55 fs/hfs/catalog.c rec->file.FlNum = cpu_to_be32(cnid); rec 56 fs/hfs/catalog.c rec->file.CrDat = mtime; rec 57 fs/hfs/catalog.c rec->file.MdDat = mtime; rec 58 fs/hfs/catalog.c rec->file.BkDat = 0; rec 59 fs/hfs/catalog.c rec->file.UsrWds.fdType = HFS_SB(inode->i_sb)->s_type; rec 60 fs/hfs/catalog.c rec->file.UsrWds.fdCreator = HFS_SB(inode->i_sb)->s_creator; rec 66 fs/hfs/catalog.c hfs_cat_rec *rec, int type, rec 69 fs/hfs/catalog.c rec->type = type; rec 70 fs/hfs/catalog.c memset(rec->thread.reserved, 0, sizeof(rec->thread.reserved)); rec 71 fs/hfs/catalog.c rec->thread.ParID = cpu_to_be32(parentid); rec 72 fs/hfs/catalog.c hfs_asc2mac(sb, &rec->thread.CName, name); rec 190 fs/hfs/catalog.c hfs_cat_rec rec; rec 194 fs/hfs/catalog.c res = hfs_brec_read(fd, &rec, sizeof(rec)); rec 198 fs/hfs/catalog.c type = rec.type; rec 204 fs/hfs/catalog.c fd->search_key->cat.ParID = rec.thread.ParID; rec 205 fs/hfs/catalog.c len = fd->search_key->cat.CName.len = rec.thread.CName.len; rec 210 fs/hfs/catalog.c memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, len); rec 23 fs/hfs/dir.c hfs_cat_rec rec; rec 32 fs/hfs/dir.c res = hfs_brec_read(&fd, &rec, sizeof(rec)); rec 37 fs/hfs/dir.c inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); rec 290 fs/hfs/inode.c hfs_cat_rec *rec; rec 296 fs/hfs/inode.c hfs_cat_rec *rec; rec 298 fs/hfs/inode.c rec = idata->rec; rec 299 fs/hfs/inode.c switch (rec->type) { rec 301 fs/hfs/inode.c return inode->i_ino == be32_to_cpu(rec->dir.DirID); rec 303 fs/hfs/inode.c return inode->i_ino == be32_to_cpu(rec->file.FlNum); rec 317 fs/hfs/inode.c hfs_cat_rec *rec; rec 336 fs/hfs/inode.c rec = idata->rec; rec 337 fs/hfs/inode.c switch (rec->type) { rec 340 fs/hfs/inode.c hfs_inode_read_fork(inode, rec->file.ExtRec, rec->file.LgLen, rec 341 fs/hfs/inode.c rec->file.PyLen, be16_to_cpu(rec->file.ClpSize)); rec 343 fs/hfs/inode.c hfs_inode_read_fork(inode, rec->file.RExtRec, rec->file.RLgLen, rec 344 fs/hfs/inode.c rec->file.RPyLen, be16_to_cpu(rec->file.ClpSize)); rec 347 fs/hfs/inode.c inode->i_ino = be32_to_cpu(rec->file.FlNum); rec 349 fs/hfs/inode.c if (!(rec->file.Flags & HFS_FIL_LOCK)) rec 354 fs/hfs/inode.c timespec_to_timespec64(hfs_m_to_utime(rec->file.MdDat)); rec 360 fs/hfs/inode.c inode->i_ino = be32_to_cpu(rec->dir.DirID); rec 361 fs/hfs/inode.c inode->i_size = be16_to_cpu(rec->dir.Val) + 2; rec 365 fs/hfs/inode.c timespec_to_timespec64(hfs_m_to_utime(rec->dir.MdDat)); rec 384 fs/hfs/inode.c struct inode *hfs_iget(struct super_block *sb, struct hfs_cat_key *key, hfs_cat_rec *rec) rec 386 fs/hfs/inode.c struct hfs_iget_data data = { key, rec }; rec 390 fs/hfs/inode.c switch (rec->type) { rec 392 fs/hfs/inode.c cnid = be32_to_cpu(rec->dir.DirID); rec 395 fs/hfs/inode.c cnid = be32_to_cpu(rec->file.FlNum); rec 422 fs/hfs/inode.c hfs_cat_rec rec; rec 464 fs/hfs/inode.c hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, rec 466 fs/hfs/inode.c if (rec.type != HFS_CDR_DIR || rec 467 fs/hfs/inode.c be32_to_cpu(rec.dir.DirID) != inode->i_ino) { rec 470 fs/hfs/inode.c rec.dir.MdDat = hfs_u_to_mtime(inode->i_mtime); rec 471 fs/hfs/inode.c rec.dir.Val = cpu_to_be16(inode->i_size - 2); rec 473 fs/hfs/inode.c hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, rec 476 fs/hfs/inode.c hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, rec 478 fs/hfs/inode.c hfs_inode_write_fork(inode, rec.file.RExtRec, rec 479 fs/hfs/inode.c &rec.file.RLgLen, &rec.file.RPyLen); rec 480 fs/hfs/inode.c hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, rec 485 fs/hfs/inode.c hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, rec 487 fs/hfs/inode.c if (rec.type != HFS_CDR_FIL || rec 488 fs/hfs/inode.c be32_to_cpu(rec.file.FlNum) != inode->i_ino) { rec 492 fs/hfs/inode.c rec.file.Flags &= ~HFS_FIL_LOCK; rec 494 fs/hfs/inode.c rec.file.Flags |= HFS_FIL_LOCK; rec 495 fs/hfs/inode.c hfs_inode_write_fork(inode, rec.file.ExtRec, &rec.file.LgLen, &rec.file.PyLen); rec 496 fs/hfs/inode.c rec.file.MdDat = hfs_u_to_mtime(inode->i_mtime); rec 498 fs/hfs/inode.c hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, rec 510 fs/hfs/inode.c hfs_cat_rec rec; rec 531 fs/hfs/inode.c res = hfs_brec_read(&fd, &rec, sizeof(rec)); rec 533 fs/hfs/inode.c struct hfs_iget_data idata = { NULL, &rec }; rec 383 fs/hfs/super.c hfs_cat_rec rec; rec 422 fs/hfs/super.c if (fd.entrylength > sizeof(rec) || fd.entrylength < 0) { rec 426 fs/hfs/super.c hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, fd.entrylength); rec 433 fs/hfs/super.c root_inode = hfs_iget(sb, &fd.search_key->cat, &rec); rec 118 fs/hfsplus/bfind.c int rec; rec 127 fs/hfsplus/bfind.c rec = (e + b) / 2; rec 128 fs/hfsplus/bfind.c len = hfs_brec_lenoff(bnode, rec, &off); rec 129 fs/hfsplus/bfind.c keylen = hfs_brec_keylen(bnode, rec); rec 135 fs/hfsplus/bfind.c if (rec_found(bnode, fd, &b, &e, &rec)) { rec 141 fs/hfsplus/bfind.c if (rec != e && e >= 0) { rec 218 fs/hfsplus/bfind.c int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) rec 227 fs/hfsplus/bfind.c hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); rec 20 fs/hfsplus/brec.c u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) rec 25 fs/hfsplus/brec.c dataoff = node->tree->node_size - (rec + 2) * 2; rec 32 fs/hfsplus/brec.c u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) rec 45 fs/hfsplus/brec.c node->tree->node_size - (rec + 1) * 2); rec 67 fs/hfsplus/brec.c int size, key_len, rec; rec 86 fs/hfsplus/brec.c rec = fd->record + 1; rec 96 fs/hfsplus/brec.c rec, size, end_off, end_rec_off); rec 117 fs/hfsplus/brec.c idx_rec_off = tree->node_size - (rec + 1) * 2; rec 140 fs/hfsplus/brec.c if (!rec && new_node != node) { rec 361 fs/hfsplus/brec.c int rec, rec_off, end_rec_off; rec 378 fs/hfsplus/brec.c rec = fd->record; rec 387 fs/hfsplus/brec.c rec, fd->keylength, newkeylen); rec 389 fs/hfsplus/brec.c rec_off = tree->node_size - (rec + 2) * 2; rec 404 fs/hfsplus/brec.c rec = fd->record; rec 405 fs/hfsplus/brec.c rec_off = tree->node_size - (rec + 2) * 2; rec 446 fs/hfsplus/brec.c if (!rec) { rec 455 fs/hfsplus/brec.c if (!rec && node->parent) rec 466 fs/hfsplus/brec.c int key_size, rec; rec 503 fs/hfsplus/brec.c rec = tree->node_size - 2; rec 504 fs/hfsplus/brec.c hfs_bnode_write_u16(new_node, rec, 14); rec 525 fs/hfsplus/brec.c rec -= 2; rec 526 fs/hfsplus/brec.c hfs_bnode_write_u16(new_node, rec, 14 + key_size + 4); rec 426 fs/hfsplus/hfsplus_fs.h u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off); rec 427 fs/hfsplus/hfsplus_fs.h u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec); rec 441 fs/hfsplus/hfsplus_fs.h int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len); rec 142 fs/nilfs2/bmap.c int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec) rec 147 fs/nilfs2/bmap.c ret = nilfs_bmap_do_insert(bmap, key, rec); rec 149 fs/nilfs2/bmap.h int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec); rec 89 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec); rec 103 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec); rec 147 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec); rec 151 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec); rec 202 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec) rec 206 fs/ocfs2/alloc.c ocfs2_extent_map_insert_rec(inode, rec); rec 218 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec) rec 225 fs/ocfs2/alloc.c (oi->ip_clusters != le32_to_cpu(rec->e_cpos)), rec 230 fs/ocfs2/alloc.c rec->e_cpos, oi->ip_clusters); rec 511 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec) rec 514 fs/ocfs2/alloc.c et->et_ops->eo_extent_map_insert(et, rec); rec 534 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec, rec 538 fs/ocfs2/alloc.c return et->et_ops->eo_extent_contig(et, rec, insert_rec); rec 542 fs/ocfs2/alloc.c rec, insert_rec); rec 546 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec) rec 551 fs/ocfs2/alloc.c ret = et->et_ops->eo_insert_check(et, rec); rec 772 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 776 fs/ocfs2/alloc.c rec = &el->l_recs[i]; rec 778 fs/ocfs2/alloc.c rec_start = le32_to_cpu(rec->e_cpos); rec 779 fs/ocfs2/alloc.c clusters = ocfs2_rec_clusters(el, rec); rec 1100 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 1127 fs/ocfs2/alloc.c rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; rec 1129 fs/ocfs2/alloc.c ocfs2_adjust_rightmost_records(handle, et, path, rec); rec 1616 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 1646 fs/ocfs2/alloc.c rec = &el->l_recs[i]; rec 1648 fs/ocfs2/alloc.c if (insert_cpos < le32_to_cpu(rec->e_cpos)) rec 1798 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 1813 fs/ocfs2/alloc.c rec = &el->l_recs[i]; rec 1820 fs/ocfs2/alloc.c range = le32_to_cpu(rec->e_cpos) + rec 1821 fs/ocfs2/alloc.c ocfs2_rec_clusters(el, rec); rec 1822 fs/ocfs2/alloc.c if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) rec 2312 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 2317 fs/ocfs2/alloc.c rec = &left_el->l_recs[next_free - 1]; rec 2319 fs/ocfs2/alloc.c if (insert_cpos > le32_to_cpu(rec->e_cpos)) rec 2328 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 2333 fs/ocfs2/alloc.c rec = &el->l_recs[0]; rec 2334 fs/ocfs2/alloc.c if (ocfs2_is_empty_extent(rec)) { rec 2338 fs/ocfs2/alloc.c rec = &el->l_recs[1]; rec 2341 fs/ocfs2/alloc.c range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); rec 2342 fs/ocfs2/alloc.c if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) rec 2529 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 2547 fs/ocfs2/alloc.c rec = &el->l_recs[idx]; rec 2548 fs/ocfs2/alloc.c range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); rec 2553 fs/ocfs2/alloc.c rec = &el->l_recs[idx]; rec 2555 fs/ocfs2/alloc.c rec->e_int_clusters = cpu_to_le32(range); rec 2556 fs/ocfs2/alloc.c le32_add_cpu(&rec->e_int_clusters, -le32_to_cpu(rec->e_cpos)); rec 3260 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec = &el->l_recs[index]; rec 3263 fs/ocfs2/alloc.c if (rec->e_leaf_clusters == 0) { rec 3665 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; rec 3691 fs/ocfs2/alloc.c rec = &el->l_recs[split_index]; rec 3742 fs/ocfs2/alloc.c rec = &el->l_recs[split_index]; rec 3748 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_left(path, handle, et, rec, rec 3828 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec, rec 3841 fs/ocfs2/alloc.c le32_add_cpu(&rec->e_cpos, rec 3843 fs/ocfs2/alloc.c le64_add_cpu(&rec->e_blkno, len_blocks); rec 3844 fs/ocfs2/alloc.c le16_add_cpu(&rec->e_leaf_clusters, rec 3851 fs/ocfs2/alloc.c le16_add_cpu(&rec->e_leaf_clusters, rec 3868 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 3875 fs/ocfs2/alloc.c rec = &el->l_recs[i]; rec 3877 fs/ocfs2/alloc.c insert->ins_split, rec, rec 3886 fs/ocfs2/alloc.c rec = &el->l_recs[i]; rec 3888 fs/ocfs2/alloc.c rec->e_blkno = insert_rec->e_blkno; rec 3889 fs/ocfs2/alloc.c rec->e_cpos = insert_rec->e_cpos; rec 3891 fs/ocfs2/alloc.c le16_add_cpu(&rec->e_leaf_clusters, rec 3912 fs/ocfs2/alloc.c rec = &el->l_recs[i]; rec 3913 fs/ocfs2/alloc.c range = le32_to_cpu(rec->e_cpos) rec 3914 fs/ocfs2/alloc.c + le16_to_cpu(rec->e_leaf_clusters); rec 3958 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 3975 fs/ocfs2/alloc.c rec = &el->l_recs[next_free - 1]; rec 3977 fs/ocfs2/alloc.c rec->e_int_clusters = insert_rec->e_cpos; rec 3978 fs/ocfs2/alloc.c le32_add_cpu(&rec->e_int_clusters, rec 3980 fs/ocfs2/alloc.c le32_add_cpu(&rec->e_int_clusters, rec 3981 fs/ocfs2/alloc.c -le32_to_cpu(rec->e_cpos)); rec 4081 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec, *tmprec; rec 4144 fs/ocfs2/alloc.c rec = &el->l_recs[index]; rec 4146 fs/ocfs2/alloc.c split, rec, split_rec); rec 4360 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec = NULL; rec 4368 fs/ocfs2/alloc.c rec = &el->l_recs[index - 1]; rec 4400 fs/ocfs2/alloc.c rec = &new_el->l_recs[ rec 4409 fs/ocfs2/alloc.c if (rec) { rec 4410 fs/ocfs2/alloc.c if (index == 1 && ocfs2_is_empty_extent(rec)) { rec 4414 fs/ocfs2/alloc.c ret = ocfs2_et_extent_contig(et, rec, split_rec); rec 4418 fs/ocfs2/alloc.c rec = NULL; rec 4420 fs/ocfs2/alloc.c rec = &el->l_recs[index + 1]; rec 4442 fs/ocfs2/alloc.c rec = &new_el->l_recs[0]; rec 4443 fs/ocfs2/alloc.c if (ocfs2_is_empty_extent(rec)) { rec 4453 fs/ocfs2/alloc.c rec = &new_el->l_recs[1]; rec 4457 fs/ocfs2/alloc.c if (rec) { rec 4460 fs/ocfs2/alloc.c contig_type = ocfs2_et_extent_contig(et, rec, split_rec); rec 4500 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec = rec 4502 fs/ocfs2/alloc.c unsigned int len = le16_to_cpu(rec->e_leaf_clusters) + rec 4531 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 4547 fs/ocfs2/alloc.c rec = &el->l_recs[i]; rec 4550 fs/ocfs2/alloc.c (le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters))) rec 4714 fs/ocfs2/alloc.c struct ocfs2_extent_rec rec; rec 4720 fs/ocfs2/alloc.c memset(&rec, 0, sizeof(rec)); rec 4721 fs/ocfs2/alloc.c rec.e_cpos = cpu_to_le32(cpos); rec 4722 fs/ocfs2/alloc.c rec.e_blkno = cpu_to_le64(start_blk); rec 4723 fs/ocfs2/alloc.c rec.e_leaf_clusters = cpu_to_le16(new_clusters); rec 4724 fs/ocfs2/alloc.c rec.e_flags = flags; rec 4725 fs/ocfs2/alloc.c status = ocfs2_et_insert_check(et, &rec); rec 4731 fs/ocfs2/alloc.c status = ocfs2_figure_insert_type(et, &last_eb_bh, &rec, rec 4753 fs/ocfs2/alloc.c status = ocfs2_do_insert_extent(handle, et, &rec, &insert); rec 4757 fs/ocfs2/alloc.c ocfs2_et_extent_map_insert(et, &rec); rec 4887 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec) rec 4889 fs/ocfs2/alloc.c u32 rec_cpos = le32_to_cpu(rec->e_cpos); rec 4890 fs/ocfs2/alloc.c u32 rec_range = rec_cpos + le16_to_cpu(rec->e_leaf_clusters); rec 4897 fs/ocfs2/alloc.c split_rec->e_blkno = rec->e_blkno; rec 4901 fs/ocfs2/alloc.c split_rec->e_flags = rec->e_flags; rec 4916 fs/ocfs2/alloc.c struct ocfs2_extent_rec rec; rec 4926 fs/ocfs2/alloc.c rec = path_leaf_el(path)->l_recs[split_index]; rec 4954 fs/ocfs2/alloc.c rec_range = le32_to_cpu(rec.e_cpos) + rec 4955 fs/ocfs2/alloc.c le16_to_cpu(rec.e_leaf_clusters); rec 4957 fs/ocfs2/alloc.c if (split_rec.e_cpos == rec.e_cpos) { rec 4969 fs/ocfs2/alloc.c &tmprec, insert_range, &rec); rec 5069 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; rec 5072 fs/ocfs2/alloc.c if (le32_to_cpu(rec->e_cpos) > le32_to_cpu(split_rec->e_cpos) || rec 5073 fs/ocfs2/alloc.c ((le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters)) < rec 5104 fs/ocfs2/alloc.c if (rec->e_cpos == split_rec->e_cpos && rec 5105 fs/ocfs2/alloc.c rec->e_leaf_clusters == split_rec->e_leaf_clusters) rec 5164 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 5191 fs/ocfs2/alloc.c rec = &el->l_recs[index]; rec 5192 fs/ocfs2/alloc.c if (new_flags && (rec->e_flags & new_flags)) { rec 5200 fs/ocfs2/alloc.c if (clear_flags && !(rec->e_flags & clear_flags)) { rec 5212 fs/ocfs2/alloc.c split_rec.e_flags = rec->e_flags; rec 5284 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 5291 fs/ocfs2/alloc.c rec = &el->l_recs[index]; rec 5293 fs/ocfs2/alloc.c &split_rec, new_range, rec); rec 5355 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 5390 fs/ocfs2/alloc.c rec = &el->l_recs[index]; rec 5392 fs/ocfs2/alloc.c le32_to_cpu(rec->e_cpos) == cpos) { rec 5449 fs/ocfs2/alloc.c rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); rec 5452 fs/ocfs2/alloc.c if (le32_to_cpu(rec->e_cpos) == cpos && rec_range == trunc_range) { rec 5455 fs/ocfs2/alloc.c memset(rec, 0, sizeof(*rec)); rec 5464 fs/ocfs2/alloc.c rec = &el->l_recs[next_free - 1]; rec 5466 fs/ocfs2/alloc.c rec); rec 5468 fs/ocfs2/alloc.c } else if (le32_to_cpu(rec->e_cpos) == cpos) { rec 5470 fs/ocfs2/alloc.c le32_add_cpu(&rec->e_cpos, len); rec 5471 fs/ocfs2/alloc.c le64_add_cpu(&rec->e_blkno, ocfs2_clusters_to_blocks(sb, len)); rec 5472 fs/ocfs2/alloc.c le16_add_cpu(&rec->e_leaf_clusters, -len); rec 5475 fs/ocfs2/alloc.c le16_add_cpu(&rec->e_leaf_clusters, -len); rec 5477 fs/ocfs2/alloc.c ocfs2_adjust_rightmost_records(handle, et, path, rec); rec 5483 fs/ocfs2/alloc.c le32_to_cpu(rec->e_cpos), rec 5484 fs/ocfs2/alloc.c le16_to_cpu(rec->e_leaf_clusters), cpos, len); rec 5515 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 5565 fs/ocfs2/alloc.c rec = &el->l_recs[index]; rec 5566 fs/ocfs2/alloc.c rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); rec 5569 fs/ocfs2/alloc.c BUG_ON(cpos < le32_to_cpu(rec->e_cpos) || trunc_range > rec_range); rec 5573 fs/ocfs2/alloc.c cpos, len, index, le32_to_cpu(rec->e_cpos), rec 5574 fs/ocfs2/alloc.c ocfs2_rec_clusters(el, rec)); rec 5576 fs/ocfs2/alloc.c if (le32_to_cpu(rec->e_cpos) == cpos || rec_range == trunc_range) { rec 5618 fs/ocfs2/alloc.c rec = &el->l_recs[index]; rec 5619 fs/ocfs2/alloc.c rec_range = le32_to_cpu(rec->e_cpos) + rec 5620 fs/ocfs2/alloc.c ocfs2_rec_clusters(el, rec); rec 5625 fs/ocfs2/alloc.c cpos, len, le32_to_cpu(rec->e_cpos), rec 5626 fs/ocfs2/alloc.c ocfs2_rec_clusters(el, rec)); rec 5923 fs/ocfs2/alloc.c struct ocfs2_truncate_rec rec; rec 5954 fs/ocfs2/alloc.c rec = tl->tl_recs[i]; rec 5956 fs/ocfs2/alloc.c le32_to_cpu(rec.t_start)); rec 5957 fs/ocfs2/alloc.c num_clusters = le32_to_cpu(rec.t_clusters); rec 5964 fs/ocfs2/alloc.c i, le32_to_cpu(rec.t_start), num_clusters); rec 7230 fs/ocfs2/alloc.c struct ocfs2_extent_rec *rec; rec 7301 fs/ocfs2/alloc.c rec = &el->l_recs[i]; rec 7302 fs/ocfs2/alloc.c flags = rec->e_flags; rec 7303 fs/ocfs2/alloc.c range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); rec 7305 fs/ocfs2/alloc.c if (i == 0 && ocfs2_is_empty_extent(rec)) { rec 7310 fs/ocfs2/alloc.c if (root_el->l_tree_depth && rec->e_int_clusters == 0) { rec 7324 fs/ocfs2/alloc.c trunc_cpos = le32_to_cpu(rec->e_cpos); rec 7328 fs/ocfs2/alloc.c } else if (le32_to_cpu(rec->e_cpos) >= new_highest_cpos) { rec 7332 fs/ocfs2/alloc.c trunc_cpos = le32_to_cpu(rec->e_cpos); rec 7333 fs/ocfs2/alloc.c trunc_len = ocfs2_rec_clusters(el, rec); rec 7334 fs/ocfs2/alloc.c blkno = le64_to_cpu(rec->e_blkno); rec 7342 fs/ocfs2/alloc.c coff = new_highest_cpos - le32_to_cpu(rec->e_cpos); rec 7343 fs/ocfs2/alloc.c blkno = le64_to_cpu(rec->e_blkno) + rec 235 fs/ocfs2/alloc.h struct ocfs2_extent_rec *rec) rec 245 fs/ocfs2/alloc.h return le32_to_cpu(rec->e_int_clusters); rec 247 fs/ocfs2/alloc.h return le16_to_cpu(rec->e_leaf_clusters); rec 254 fs/ocfs2/alloc.h static inline int ocfs2_is_empty_extent(struct ocfs2_extent_rec *rec) rec 256 fs/ocfs2/alloc.h return !rec->e_leaf_clusters; rec 775 fs/ocfs2/dir.c struct ocfs2_extent_rec *rec = NULL; rec 799 fs/ocfs2/dir.c rec = &el->l_recs[i]; rec 801 fs/ocfs2/dir.c if (le32_to_cpu(rec->e_cpos) <= major_hash) { rec 811 fs/ocfs2/dir.c le32_to_cpu(rec->e_cpos), rec 812 fs/ocfs2/dir.c ocfs2_rec_clusters(el, rec)); rec 817 fs/ocfs2/dir.c *ret_phys_blkno = le64_to_cpu(rec->e_blkno); rec 819 fs/ocfs2/dir.c *ret_cpos = le32_to_cpu(rec->e_cpos); rec 821 fs/ocfs2/dir.c *ret_clen = le16_to_cpu(rec->e_leaf_clusters); rec 216 fs/ocfs2/extent_map.c struct ocfs2_extent_rec *rec) rec 223 fs/ocfs2/extent_map.c ins.ei_cpos = le32_to_cpu(rec->e_cpos); rec 225 fs/ocfs2/extent_map.c le64_to_cpu(rec->e_blkno)); rec 226 fs/ocfs2/extent_map.c ins.ei_clusters = le16_to_cpu(rec->e_leaf_clusters); rec 227 fs/ocfs2/extent_map.c ins.ei_flags = rec->e_flags; rec 322 fs/ocfs2/extent_map.c struct ocfs2_extent_rec *rec; rec 325 fs/ocfs2/extent_map.c rec = &el->l_recs[i]; rec 327 fs/ocfs2/extent_map.c if (v_cluster < le32_to_cpu(rec->e_cpos)) rec 408 fs/ocfs2/extent_map.c struct ocfs2_extent_rec *rec; rec 461 fs/ocfs2/extent_map.c rec = &el->l_recs[i]; rec 463 fs/ocfs2/extent_map.c BUG_ON(v_cluster < le32_to_cpu(rec->e_cpos)); rec 465 fs/ocfs2/extent_map.c if (!rec->e_blkno) { rec 469 fs/ocfs2/extent_map.c le32_to_cpu(rec->e_cpos), rec 470 fs/ocfs2/extent_map.c ocfs2_rec_clusters(el, rec)); rec 475 fs/ocfs2/extent_map.c *ret_rec = *rec; rec 519 fs/ocfs2/extent_map.c struct ocfs2_extent_rec *rec, rec 523 fs/ocfs2/extent_map.c u32 coff = v_cluster - le32_to_cpu(rec->e_cpos); rec 525 fs/ocfs2/extent_map.c *p_cluster = ocfs2_blocks_to_clusters(sb, le64_to_cpu(rec->e_blkno)); rec 529 fs/ocfs2/extent_map.c *num_clusters = le16_to_cpu(rec->e_leaf_clusters) - coff; rec 540 fs/ocfs2/extent_map.c struct ocfs2_extent_rec *rec; rec 570 fs/ocfs2/extent_map.c rec = &el->l_recs[i]; rec 571 fs/ocfs2/extent_map.c BUG_ON(v_cluster < le32_to_cpu(rec->e_cpos)); rec 573 fs/ocfs2/extent_map.c if (!rec->e_blkno) { rec 577 fs/ocfs2/extent_map.c le32_to_cpu(rec->e_cpos), rec 578 fs/ocfs2/extent_map.c ocfs2_rec_clusters(el, rec)); rec 582 fs/ocfs2/extent_map.c coff = v_cluster - le32_to_cpu(rec->e_cpos); rec 584 fs/ocfs2/extent_map.c le64_to_cpu(rec->e_blkno)); rec 587 fs/ocfs2/extent_map.c *num_clusters = ocfs2_rec_clusters(el, rec) - coff; rec 590 fs/ocfs2/extent_map.c *extent_flags = rec->e_flags; rec 604 fs/ocfs2/extent_map.c struct ocfs2_extent_rec rec; rec 624 fs/ocfs2/extent_map.c &rec, NULL); rec 630 fs/ocfs2/extent_map.c if (rec.e_blkno == 0ULL) { rec 641 fs/ocfs2/extent_map.c ocfs2_relative_extent_offsets(inode->i_sb, v_cluster, &rec, rec 643 fs/ocfs2/extent_map.c flags = rec.e_flags; rec 645 fs/ocfs2/extent_map.c ocfs2_extent_map_insert_rec(inode, &rec); rec 747 fs/ocfs2/extent_map.c struct ocfs2_extent_rec rec; rec 778 fs/ocfs2/extent_map.c &hole_size, &rec, &is_last); rec 784 fs/ocfs2/extent_map.c if (rec.e_blkno == 0ULL) { rec 790 fs/ocfs2/extent_map.c if (rec.e_flags & OCFS2_EXT_UNWRITTEN) rec 792 fs/ocfs2/extent_map.c if (rec.e_flags & OCFS2_EXT_REFCOUNTED) rec 796 fs/ocfs2/extent_map.c len_bytes = (u64)le16_to_cpu(rec.e_leaf_clusters) << osb->s_clustersize_bits; rec 797 fs/ocfs2/extent_map.c phys_bytes = le64_to_cpu(rec.e_blkno) << osb->sb->s_blocksize_bits; rec 798 fs/ocfs2/extent_map.c virt_bytes = (u64)le32_to_cpu(rec.e_cpos) << osb->s_clustersize_bits; rec 805 fs/ocfs2/extent_map.c cpos = le32_to_cpu(rec.e_cpos)+ le16_to_cpu(rec.e_leaf_clusters); rec 829 fs/ocfs2/extent_map.c struct ocfs2_extent_rec rec; rec 844 fs/ocfs2/extent_map.c NULL, &rec, &is_last); rec 850 fs/ocfs2/extent_map.c if (rec.e_blkno == 0ULL) rec 853 fs/ocfs2/extent_map.c if (rec.e_flags & OCFS2_EXT_REFCOUNTED) rec 856 fs/ocfs2/extent_map.c cpos = le32_to_cpu(rec.e_cpos) + rec 857 fs/ocfs2/extent_map.c le16_to_cpu(rec.e_leaf_clusters); rec 875 fs/ocfs2/extent_map.c struct ocfs2_extent_rec rec; rec 904 fs/ocfs2/extent_map.c &rec, &is_last); rec 913 fs/ocfs2/extent_map.c if (rec.e_blkno == 0ULL) { rec 917 fs/ocfs2/extent_map.c clen = le16_to_cpu(rec.e_leaf_clusters) - rec 918 fs/ocfs2/extent_map.c (cpos - le32_to_cpu(rec.e_cpos)); rec 919 fs/ocfs2/extent_map.c is_data = (rec.e_flags & OCFS2_EXT_UNWRITTEN) ? 0 : 1; rec 33 fs/ocfs2/extent_map.h struct ocfs2_extent_rec *rec); rec 1616 fs/ocfs2/file.c struct ocfs2_extent_rec *rec = NULL; rec 1620 fs/ocfs2/file.c rec = &el->l_recs[i]; rec 1622 fs/ocfs2/file.c if (le32_to_cpu(rec->e_cpos) < pos) rec 1639 fs/ocfs2/file.c struct ocfs2_extent_rec *rec, rec 1647 fs/ocfs2/file.c range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); rec 1649 fs/ocfs2/file.c if (le32_to_cpu(rec->e_cpos) >= trunc_start) { rec 1653 fs/ocfs2/file.c *trunc_cpos = le32_to_cpu(rec->e_cpos); rec 1659 fs/ocfs2/file.c *trunc_len = *trunc_end - le32_to_cpu(rec->e_cpos); rec 1660 fs/ocfs2/file.c *blkno = le64_to_cpu(rec->e_blkno); rec 1661 fs/ocfs2/file.c *trunc_end = le32_to_cpu(rec->e_cpos); rec 1674 fs/ocfs2/file.c coff = trunc_start - le32_to_cpu(rec->e_cpos); rec 1675 fs/ocfs2/file.c *blkno = le64_to_cpu(rec->e_blkno) + rec 1706 fs/ocfs2/file.c struct ocfs2_extent_rec *rec = NULL; rec 1821 fs/ocfs2/file.c rec = &el->l_recs[i]; rec 1823 fs/ocfs2/file.c ocfs2_calc_trunc_pos(inode, el, rec, trunc_start, &trunc_cpos, rec 1828 fs/ocfs2/file.c flags = rec->e_flags; rec 431 fs/ocfs2/ioctl.c struct ocfs2_chain_rec *rec, rec 445 fs/ocfs2/ioctl.c if (!le32_to_cpu(rec->c_free)) rec 450 fs/ocfs2/ioctl.c blkno = le64_to_cpu(rec->c_blkno); rec 540 fs/ocfs2/ioctl.c struct ocfs2_chain_rec *rec = NULL; rec 584 fs/ocfs2/ioctl.c rec = &(cl->cl_recs[i]); rec 587 fs/ocfs2/ioctl.c rec, ffg, rec 59 fs/ocfs2/move_extents.c struct ocfs2_extent_rec *rec, replace_rec; rec 101 fs/ocfs2/move_extents.c rec = &el->l_recs[index]; rec 103 fs/ocfs2/move_extents.c BUG_ON(ext_flags != rec->e_flags); rec 386 fs/ocfs2/move_extents.c struct ocfs2_chain_rec *rec; rec 406 fs/ocfs2/move_extents.c rec = &(cl->cl_recs[0]); rec 414 fs/ocfs2/move_extents.c if ((vict_blkno < le64_to_cpu(rec->c_blkno)) || rec 423 fs/ocfs2/move_extents.c rec = &(cl->cl_recs[i]); rec 424 fs/ocfs2/move_extents.c if (!rec) rec 431 fs/ocfs2/move_extents.c blkno = le64_to_cpu(rec->c_blkno); rec 1435 fs/ocfs2/ocfs2_fs.h ocfs2_get_ref_rec_low_cpos(const struct ocfs2_refcount_rec *rec) rec 1437 fs/ocfs2/ocfs2_fs.h return le64_to_cpu(rec->r_cpos) & OCFS2_32BIT_POS_MASK; rec 91 fs/ocfs2/quota.h struct ocfs2_quota_recovery *rec, rec 93 fs/ocfs2/quota.h void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec); rec 328 fs/ocfs2/quota_local.c void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec) rec 333 fs/ocfs2/quota_local.c free_recovery_list(&(rec->r_list[type])); rec 334 fs/ocfs2/quota_local.c kfree(rec); rec 373 fs/ocfs2/quota_local.c struct ocfs2_quota_recovery *rec; rec 375 fs/ocfs2/quota_local.c rec = kmalloc(sizeof(struct ocfs2_quota_recovery), GFP_NOFS); rec 376 fs/ocfs2/quota_local.c if (!rec) rec 379 fs/ocfs2/quota_local.c INIT_LIST_HEAD(&(rec->r_list[type])); rec 380 fs/ocfs2/quota_local.c return rec; rec 399 fs/ocfs2/quota_local.c struct ocfs2_quota_recovery *rec; rec 404 fs/ocfs2/quota_local.c rec = ocfs2_alloc_quota_recovery(); rec 405 fs/ocfs2/quota_local.c if (!rec) rec 437 fs/ocfs2/quota_local.c &rec->r_list[type]); rec 448 fs/ocfs2/quota_local.c ocfs2_free_quota_recovery(rec); rec 449 fs/ocfs2/quota_local.c rec = ERR_PTR(status); rec 451 fs/ocfs2/quota_local.c return rec; rec 460 fs/ocfs2/quota_local.c struct ocfs2_quota_recovery *rec) rec 476 fs/ocfs2/quota_local.c list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) { rec 575 fs/ocfs2/quota_local.c free_recovery_list(&(rec->r_list[type])); rec 583 fs/ocfs2/quota_local.c struct ocfs2_quota_recovery *rec, rec 602 fs/ocfs2/quota_local.c if (list_empty(&(rec->r_list[type]))) rec 640 fs/ocfs2/quota_local.c rec); rec 678 fs/ocfs2/quota_local.c kfree(rec); rec 691 fs/ocfs2/quota_local.c struct ocfs2_quota_recovery *rec; rec 737 fs/ocfs2/quota_local.c rec = OCFS2_SB(sb)->quota_rec; rec 738 fs/ocfs2/quota_local.c if (!rec) { rec 739 fs/ocfs2/quota_local.c rec = ocfs2_alloc_quota_recovery(); rec 740 fs/ocfs2/quota_local.c if (!rec) { rec 745 fs/ocfs2/quota_local.c OCFS2_SB(sb)->quota_rec = rec; rec 749 fs/ocfs2/quota_local.c &rec->r_list[type]); rec 883 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec *rec = NULL; rec 886 fs/ocfs2/refcounttree.c rec = &rb->rf_records.rl_recs[i]; rec 888 fs/ocfs2/refcounttree.c if (le64_to_cpu(rec->r_cpos) + rec 889 fs/ocfs2/refcounttree.c le32_to_cpu(rec->r_clusters) <= cpos) rec 891 fs/ocfs2/refcounttree.c else if (le64_to_cpu(rec->r_cpos) > cpos) rec 896 fs/ocfs2/refcounttree.c *ret_rec = *rec; rec 905 fs/ocfs2/refcounttree.c le64_to_cpu(rec->r_cpos) < cpos + len) rec 907 fs/ocfs2/refcounttree.c cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); rec 1066 fs/ocfs2/refcounttree.c struct ocfs2_extent_rec *rec = NULL; rec 1105 fs/ocfs2/refcounttree.c rec = &el->l_recs[i]; rec 1107 fs/ocfs2/refcounttree.c if (le32_to_cpu(rec->e_cpos) <= low_cpos) { rec 1125 fs/ocfs2/refcounttree.c ret = ocfs2_read_refcount_block(ci, le64_to_cpu(rec->e_blkno), rec 1242 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec *rec = &rl->rl_recs[index]; rec 1253 fs/ocfs2/refcounttree.c index, le32_to_cpu(rec->r_refcount), change); rec 1254 fs/ocfs2/refcounttree.c le32_add_cpu(&rec->r_refcount, change); rec 1256 fs/ocfs2/refcounttree.c if (!rec->r_refcount) { rec 1258 fs/ocfs2/refcounttree.c memmove(rec, rec + 1, rec 1654 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec *rec) rec 1669 fs/ocfs2/refcounttree.c new_cpos = le64_to_cpu(rec->r_cpos) & OCFS2_32BIT_POS_MASK; rec 1738 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec *rec, rec 1751 fs/ocfs2/refcounttree.c u64 cpos = le64_to_cpu(rec->r_cpos); rec 1752 fs/ocfs2/refcounttree.c u32 len = le32_to_cpu(rec->r_clusters); rec 1789 fs/ocfs2/refcounttree.c (unsigned long long)le64_to_cpu(rec->r_cpos), rec 1790 fs/ocfs2/refcounttree.c le32_to_cpu(rec->r_clusters), le32_to_cpu(rec->r_refcount)); rec 1792 fs/ocfs2/refcounttree.c rf_list->rl_recs[index] = *rec; rec 1804 fs/ocfs2/refcounttree.c ref_leaf_bh, rec); rec 1987 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec rec; rec 1996 fs/ocfs2/refcounttree.c cpos, len, &rec, &index, rec 2003 fs/ocfs2/refcounttree.c set_len = le32_to_cpu(rec.r_clusters); rec 2015 fs/ocfs2/refcounttree.c if (rec.r_refcount && le64_to_cpu(rec.r_cpos) == cpos && rec 2019 fs/ocfs2/refcounttree.c le32_to_cpu(rec.r_refcount)); rec 2027 fs/ocfs2/refcounttree.c } else if (!rec.r_refcount) { rec 2028 fs/ocfs2/refcounttree.c rec.r_refcount = cpu_to_le32(1); rec 2031 fs/ocfs2/refcounttree.c (unsigned long long)le64_to_cpu(rec.r_cpos), rec 2035 fs/ocfs2/refcounttree.c &rec, index, rec 2043 fs/ocfs2/refcounttree.c le64_to_cpu(rec.r_cpos) + set_len) - cpos; rec 2044 fs/ocfs2/refcounttree.c rec.r_cpos = cpu_to_le64(cpos); rec 2045 fs/ocfs2/refcounttree.c rec.r_clusters = cpu_to_le32(set_len); rec 2046 fs/ocfs2/refcounttree.c le32_add_cpu(&rec.r_refcount, 1); rec 2049 fs/ocfs2/refcounttree.c (unsigned long long)le64_to_cpu(rec.r_cpos), rec 2050 fs/ocfs2/refcounttree.c set_len, le32_to_cpu(rec.r_refcount)); rec 2053 fs/ocfs2/refcounttree.c &rec, index, merge, rec 2175 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec *rec = &rb->rf_records.rl_recs[index]; rec 2177 fs/ocfs2/refcounttree.c BUG_ON(cpos < le64_to_cpu(rec->r_cpos)); rec 2179 fs/ocfs2/refcounttree.c le64_to_cpu(rec->r_cpos) + le32_to_cpu(rec->r_clusters)); rec 2185 fs/ocfs2/refcounttree.c if (cpos == le64_to_cpu(rec->r_cpos) && rec 2186 fs/ocfs2/refcounttree.c len == le32_to_cpu(rec->r_clusters)) rec 2190 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec split = *rec; rec 2229 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec rec; rec 2240 fs/ocfs2/refcounttree.c cpos, len, &rec, &index, rec 2247 fs/ocfs2/refcounttree.c r_count = le32_to_cpu(rec.r_refcount); rec 2252 fs/ocfs2/refcounttree.c r_len = min((u64)(cpos + len), le64_to_cpu(rec.r_cpos) + rec 2253 fs/ocfs2/refcounttree.c le32_to_cpu(rec.r_clusters)) - cpos; rec 2264 fs/ocfs2/refcounttree.c if (le32_to_cpu(rec.r_refcount) == 1 && delete) { rec 2379 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec rec; rec 2385 fs/ocfs2/refcounttree.c cpos, clusters, &rec, rec 2416 fs/ocfs2/refcounttree.c (unsigned long long)le64_to_cpu(rec.r_cpos), rec 2417 fs/ocfs2/refcounttree.c le32_to_cpu(rec.r_clusters), rec 2418 fs/ocfs2/refcounttree.c le32_to_cpu(rec.r_refcount), index); rec 2420 fs/ocfs2/refcounttree.c len = min((u64)cpos + clusters, le64_to_cpu(rec.r_cpos) + rec 2421 fs/ocfs2/refcounttree.c le32_to_cpu(rec.r_clusters)) - cpos; rec 2441 fs/ocfs2/refcounttree.c if (rec.r_refcount) { rec 2445 fs/ocfs2/refcounttree.c cpos != le64_to_cpu(rec.r_cpos)) rec 2449 fs/ocfs2/refcounttree.c if (cpos + clusters < le64_to_cpu(rec.r_cpos) + rec 2450 fs/ocfs2/refcounttree.c le32_to_cpu(rec.r_clusters)) rec 2639 fs/ocfs2/refcounttree.c struct ocfs2_extent_rec *rec; rec 2667 fs/ocfs2/refcounttree.c rec = &el->l_recs[i]; rec 2669 fs/ocfs2/refcounttree.c if (ocfs2_is_empty_extent(rec)) { rec 2675 fs/ocfs2/refcounttree.c if (le32_to_cpu(rec->e_cpos) + rec 2676 fs/ocfs2/refcounttree.c le16_to_cpu(rec->e_leaf_clusters) <= cpos) rec 2684 fs/ocfs2/refcounttree.c BUG_ON(!(rec->e_flags & OCFS2_EXT_REFCOUNTED)); rec 2685 fs/ocfs2/refcounttree.c *cow_start = le32_to_cpu(rec->e_cpos); rec 2692 fs/ocfs2/refcounttree.c if ((!(rec->e_flags & OCFS2_EXT_REFCOUNTED)) || rec 2693 fs/ocfs2/refcounttree.c (*cow_len && rec_end != le32_to_cpu(rec->e_cpos)) || rec 2694 fs/ocfs2/refcounttree.c (max_cpos <= le32_to_cpu(rec->e_cpos))) rec 2697 fs/ocfs2/refcounttree.c leaf_clusters = le16_to_cpu(rec->e_leaf_clusters); rec 2698 fs/ocfs2/refcounttree.c rec_end = le32_to_cpu(rec->e_cpos) + leaf_clusters; rec 2701 fs/ocfs2/refcounttree.c leaf_clusters = rec_end - le32_to_cpu(rec->e_cpos); rec 3214 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec rec; rec 3246 fs/ocfs2/refcounttree.c &rec, &index, &ref_leaf_bh); rec 3252 fs/ocfs2/refcounttree.c BUG_ON(!rec.r_refcount); rec 3254 fs/ocfs2/refcounttree.c le64_to_cpu(rec.r_cpos) + rec 3255 fs/ocfs2/refcounttree.c le32_to_cpu(rec.r_clusters)) - p_cluster; rec 3264 fs/ocfs2/refcounttree.c if (le32_to_cpu(rec.r_refcount) == 1) { rec 3545 fs/ocfs2/refcounttree.c struct ocfs2_refcount_rec rec; rec 3562 fs/ocfs2/refcounttree.c &rec, &index, rec 3569 fs/ocfs2/refcounttree.c BUG_ON(!rec.r_refcount); rec 3588 fs/ocfs2/refcounttree.c if (num_clusters <= le32_to_cpu(rec.r_clusters)) rec 3591 fs/ocfs2/refcounttree.c num_clusters -= le32_to_cpu(rec.r_clusters); rec 326 fs/ocfs2/suballoc.c struct ocfs2_extent_rec *rec; rec 331 fs/ocfs2/suballoc.c rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec)]; rec 332 fs/ocfs2/suballoc.c rec->e_blkno = cpu_to_le64(p_blkno); rec 333 fs/ocfs2/suballoc.c rec->e_cpos = cpu_to_le32(le16_to_cpu(bg->bg_bits) / rec 335 fs/ocfs2/suballoc.c rec->e_leaf_clusters = cpu_to_le16(clusters); rec 553 fs/ocfs2/suballoc.c struct ocfs2_extent_rec *rec; rec 561 fs/ocfs2/suballoc.c rec = &el->l_recs[i]; rec 564 fs/ocfs2/suballoc.c le64_to_cpu(rec->e_blkno), rec 565 fs/ocfs2/suballoc.c le16_to_cpu(rec->e_leaf_clusters)); rec 1619 fs/ocfs2/suballoc.c struct ocfs2_extent_rec *rec, rec 1623 fs/ocfs2/suballoc.c unsigned int bitoff = le32_to_cpu(rec->e_cpos) * bpc; rec 1624 fs/ocfs2/suballoc.c unsigned int bitcount = le16_to_cpu(rec->e_leaf_clusters) * bpc; rec 1630 fs/ocfs2/suballoc.c res->sr_blkno = le64_to_cpu(rec->e_blkno) + rec 1643 fs/ocfs2/suballoc.c struct ocfs2_extent_rec *rec; rec 1659 fs/ocfs2/suballoc.c rec = &bg->bg_list.l_recs[i]; rec 1660 fs/ocfs2/suballoc.c if (ocfs2_bg_discontig_fix_by_rec(res, rec, cl)) { rec 3695 fs/ocfs2/xattr.c struct ocfs2_extent_rec *rec = NULL; rec 3719 fs/ocfs2/xattr.c rec = &el->l_recs[i]; rec 3721 fs/ocfs2/xattr.c if (le32_to_cpu(rec->e_cpos) <= name_hash) { rec 3722 fs/ocfs2/xattr.c e_blkno = le64_to_cpu(rec->e_blkno); rec 3730 fs/ocfs2/xattr.c le32_to_cpu(rec->e_cpos), rec 3731 fs/ocfs2/xattr.c ocfs2_rec_clusters(el, rec)); rec 3735 fs/ocfs2/xattr.c *p_blkno = le64_to_cpu(rec->e_blkno); rec 3736 fs/ocfs2/xattr.c *num_clusters = le16_to_cpu(rec->e_leaf_clusters); rec 3738 fs/ocfs2/xattr.c *e_cpos = le32_to_cpu(rec->e_cpos); rec 31 fs/pstore/ftrace.c struct pstore_ftrace_record rec = {}; rec 34 fs/pstore/ftrace.c .buf = (char *)&rec, rec 35 fs/pstore/ftrace.c .size = sizeof(rec), rec 44 fs/pstore/ftrace.c rec.ip = ip; rec 45 fs/pstore/ftrace.c rec.parent_ip = parent_ip; rec 46 fs/pstore/ftrace.c pstore_ftrace_write_timestamp(&rec, pstore_ftrace_stamp++); rec 47 fs/pstore/ftrace.c pstore_ftrace_encode_cpu(&rec, raw_smp_processor_id()); rec 102 fs/pstore/inode.c struct pstore_ftrace_record *rec; rec 107 fs/pstore/inode.c rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); rec 110 fs/pstore/inode.c pstore_ftrace_decode_cpu(rec), rec 111 fs/pstore/inode.c pstore_ftrace_read_timestamp(rec), rec 112 fs/pstore/inode.c rec->ip, rec->parent_ip, (void *)rec->ip, rec 113 fs/pstore/inode.c (void *)rec->parent_ip); rec 1588 fs/udf/super.c struct udf_vds_record rec; rec 1610 fs/udf/super.c return &(data->part_descs_loc[i].rec); rec 1624 fs/udf/super.c return &(data->part_descs_loc[data->num_part_descs++].rec); rec 1758 fs/udf/super.c ret = udf_load_partdesc(sb, data.part_descs_loc[i].rec.block); rec 197 fs/xfs/libxfs/xfs_alloc.c union xfs_btree_rec rec; rec 199 fs/xfs/libxfs/xfs_alloc.c rec.alloc.ar_startblock = cpu_to_be32(bno); rec 200 fs/xfs/libxfs/xfs_alloc.c rec.alloc.ar_blockcount = cpu_to_be32(len); rec 201 fs/xfs/libxfs/xfs_alloc.c return xfs_btree_update(cur, &rec); rec 216 fs/xfs/libxfs/xfs_alloc.c union xfs_btree_rec *rec; rec 219 fs/xfs/libxfs/xfs_alloc.c error = xfs_btree_get_rec(cur, &rec, stat); rec 223 fs/xfs/libxfs/xfs_alloc.c *bno = be32_to_cpu(rec->alloc.ar_startblock); rec 224 fs/xfs/libxfs/xfs_alloc.c *len = be32_to_cpu(rec->alloc.ar_blockcount); rec 3071 fs/xfs/libxfs/xfs_alloc.c union xfs_btree_rec *rec, rec 3077 fs/xfs/libxfs/xfs_alloc.c irec.ar_startblock = be32_to_cpu(rec->alloc.ar_startblock); rec 3078 fs/xfs/libxfs/xfs_alloc.c irec.ar_blockcount = be32_to_cpu(rec->alloc.ar_blockcount); rec 235 fs/xfs/libxfs/xfs_alloc.h struct xfs_alloc_rec_incore *rec, rec 112 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_rec *rec, rec 132 fs/xfs/libxfs/xfs_alloc_btree.c len = rec->alloc.ar_blockcount; rec 135 fs/xfs/libxfs/xfs_alloc_btree.c if (be32_to_cpu(rec->alloc.ar_blockcount) <= rec 138 fs/xfs/libxfs/xfs_alloc_btree.c len = rec->alloc.ar_blockcount; rec 187 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_rec *rec) rec 189 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_startblock = rec->alloc.ar_startblock; rec 190 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_blockcount = rec->alloc.ar_blockcount; rec 196 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_rec *rec) rec 200 fs/xfs/libxfs/xfs_alloc_btree.c x = be32_to_cpu(rec->alloc.ar_startblock); rec 201 fs/xfs/libxfs/xfs_alloc_btree.c x += be32_to_cpu(rec->alloc.ar_blockcount) - 1; rec 209 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_rec *rec) rec 211 fs/xfs/libxfs/xfs_alloc_btree.c key->alloc.ar_blockcount = rec->alloc.ar_blockcount; rec 218 fs/xfs/libxfs/xfs_alloc_btree.c union xfs_btree_rec *rec) rec 220 fs/xfs/libxfs/xfs_alloc_btree.c rec->alloc.ar_startblock = cpu_to_be32(cur->bc_rec.a.ar_startblock); rec 221 fs/xfs/libxfs/xfs_alloc_btree.c rec->alloc.ar_blockcount = cpu_to_be32(cur->bc_rec.a.ar_blockcount); rec 241 fs/xfs/libxfs/xfs_alloc_btree.c xfs_alloc_rec_incore_t *rec = &cur->bc_rec.a; rec 244 fs/xfs/libxfs/xfs_alloc_btree.c return (int64_t)be32_to_cpu(kp->ar_startblock) - rec->ar_startblock; rec 252 fs/xfs/libxfs/xfs_alloc_btree.c xfs_alloc_rec_incore_t *rec = &cur->bc_rec.a; rec 256 fs/xfs/libxfs/xfs_alloc_btree.c diff = (int64_t)be32_to_cpu(kp->ar_blockcount) - rec->ar_blockcount; rec 260 fs/xfs/libxfs/xfs_alloc_btree.c return (int64_t)be32_to_cpu(kp->ar_startblock) - rec->ar_startblock; rec 148 fs/xfs/libxfs/xfs_bmap.c union xfs_btree_rec rec; rec 150 fs/xfs/libxfs/xfs_bmap.c xfs_bmbt_disk_set_all(&rec.bmbt, irec); rec 151 fs/xfs/libxfs/xfs_bmap.c return xfs_btree_update(cur, &rec); rec 664 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmbt_irec rec; rec 745 fs/xfs/libxfs/xfs_bmap.c for_each_xfs_iext(ifp, &icur, &rec) { rec 746 fs/xfs/libxfs/xfs_bmap.c if (isnullstartblock(rec.br_startblock)) rec 749 fs/xfs/libxfs/xfs_bmap.c xfs_bmbt_disk_set_all(arp, &rec); rec 833 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmbt_irec rec; rec 898 fs/xfs/libxfs/xfs_bmap.c rec.br_startoff = 0; rec 899 fs/xfs/libxfs/xfs_bmap.c rec.br_startblock = args.fsbno; rec 900 fs/xfs/libxfs/xfs_bmap.c rec.br_blockcount = 1; rec 901 fs/xfs/libxfs/xfs_bmap.c rec.br_state = XFS_EXT_NORM; rec 903 fs/xfs/libxfs/xfs_bmap.c xfs_iext_insert(ip, &icur, &rec, 0); rec 1396 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmbt_irec *rec, rec 1410 fs/xfs/libxfs/xfs_bmap.c if (!xfs_iext_get_extent(ifp, &icur, rec)) rec 1431 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmbt_irec rec; rec 1436 fs/xfs/libxfs/xfs_bmap.c error = xfs_bmap_last_extent(NULL, bma->ip, whichfork, &rec, rec 1450 fs/xfs/libxfs/xfs_bmap.c bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || rec 1451 fs/xfs/libxfs/xfs_bmap.c (bma->offset >= rec.br_startoff && rec 1452 fs/xfs/libxfs/xfs_bmap.c isnullstartblock(rec.br_startblock)); rec 1467 fs/xfs/libxfs/xfs_bmap.c struct xfs_bmbt_irec rec; rec 1480 fs/xfs/libxfs/xfs_bmap.c error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, &is_empty); rec 1484 fs/xfs/libxfs/xfs_bmap.c *last_block = rec.br_startoff + rec.br_blockcount; rec 61 fs/xfs/libxfs/xfs_bmap_btree.c struct xfs_bmbt_rec *rec, rec 64 fs/xfs/libxfs/xfs_bmap_btree.c uint64_t l0 = get_unaligned_be64(&rec->l0); rec 65 fs/xfs/libxfs/xfs_bmap_btree.c uint64_t l1 = get_unaligned_be64(&rec->l1); rec 356 fs/xfs/libxfs/xfs_bmap_btree.c union xfs_btree_rec *rec) rec 359 fs/xfs/libxfs/xfs_bmap_btree.c cpu_to_be64(xfs_bmbt_disk_get_startoff(&rec->bmbt)); rec 365 fs/xfs/libxfs/xfs_bmap_btree.c union xfs_btree_rec *rec) rec 368 fs/xfs/libxfs/xfs_bmap_btree.c xfs_bmbt_disk_get_startoff(&rec->bmbt) + rec 369 fs/xfs/libxfs/xfs_bmap_btree.c xfs_bmbt_disk_get_blockcount(&rec->bmbt) - 1); rec 375 fs/xfs/libxfs/xfs_bmap_btree.c union xfs_btree_rec *rec) rec 377 fs/xfs/libxfs/xfs_bmap_btree.c xfs_bmbt_disk_set_all(&rec->bmbt, &cur->bc_rec.b); rec 1405 fs/xfs/libxfs/xfs_btree.c union xfs_btree_rec *rec, rec 1414 fs/xfs/libxfs/xfs_btree.c dst_rec = (char *)rec + (dir * cur->bc_ops->rec_len); rec 1415 fs/xfs/libxfs/xfs_btree.c memmove(dst_rec, rec, numrecs * cur->bc_ops->rec_len); rec 2031 fs/xfs/libxfs/xfs_btree.c union xfs_btree_rec *rec; rec 2035 fs/xfs/libxfs/xfs_btree.c rec = xfs_btree_rec_addr(cur, 1, block); rec 2036 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_key_from_rec(key, rec); rec 2040 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_high_key_from_rec(&max_hkey, rec); rec 2042 fs/xfs/libxfs/xfs_btree.c rec = xfs_btree_rec_addr(cur, n, block); rec 2043 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_high_key_from_rec(&hkey, rec); rec 2240 fs/xfs/libxfs/xfs_btree.c union xfs_btree_rec *rec) rec 2261 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_recs(cur, rp, rec, 1); rec 2269 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->update_lastrec(cur, block, rec, rec 3219 fs/xfs/libxfs/xfs_btree.c union xfs_btree_rec *rec, /* record to insert */ rec 3276 fs/xfs/libxfs/xfs_btree.c ASSERT(cur->bc_ops->recs_inorder(cur, rec, rec 3359 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_recs(cur, rp, rec, 1); rec 3394 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->update_lastrec(cur, block, rec, rec 3435 fs/xfs/libxfs/xfs_btree.c union xfs_btree_rec rec; /* record to insert */ rec 3445 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_rec_from_cur(cur, &rec); rec 3446 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_key_from_rec(key, &rec); rec 3458 fs/xfs/libxfs/xfs_btree.c error = xfs_btree_insrec(pcur, level, &nptr, &rec, key, rec 4784 fs/xfs/libxfs/xfs_btree.c union xfs_btree_rec rec; rec 4790 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_rec_from_cur(cur, &rec); rec 4791 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_key_from_rec(&high_key, &rec); rec 4794 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_rec_from_cur(cur, &rec); rec 4795 fs/xfs/libxfs/xfs_btree.c cur->bc_ops->init_key_from_rec(&low_key, &rec); rec 4887 fs/xfs/libxfs/xfs_btree.c union xfs_btree_rec *rec, rec 119 fs/xfs/libxfs/xfs_btree.h union xfs_btree_rec *rec, rec 131 fs/xfs/libxfs/xfs_btree.h union xfs_btree_rec *rec); rec 133 fs/xfs/libxfs/xfs_btree.h union xfs_btree_rec *rec); rec 137 fs/xfs/libxfs/xfs_btree.h union xfs_btree_rec *rec); rec 475 fs/xfs/libxfs/xfs_btree.h union xfs_btree_rec *rec, void *priv); rec 58 fs/xfs/libxfs/xfs_ialloc.c union xfs_btree_rec rec; rec 60 fs/xfs/libxfs/xfs_ialloc.c rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); rec 62 fs/xfs/libxfs/xfs_ialloc.c rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); rec 63 fs/xfs/libxfs/xfs_ialloc.c rec.inobt.ir_u.sp.ir_count = irec->ir_count; rec 64 fs/xfs/libxfs/xfs_ialloc.c rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; rec 67 fs/xfs/libxfs/xfs_ialloc.c rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); rec 69 fs/xfs/libxfs/xfs_ialloc.c rec.inobt.ir_free = cpu_to_be64(irec->ir_free); rec 70 fs/xfs/libxfs/xfs_ialloc.c return xfs_btree_update(cur, &rec); rec 77 fs/xfs/libxfs/xfs_ialloc.c union xfs_btree_rec *rec, rec 80 fs/xfs/libxfs/xfs_ialloc.c irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); rec 82 fs/xfs/libxfs/xfs_ialloc.c irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask); rec 83 fs/xfs/libxfs/xfs_ialloc.c irec->ir_count = rec->inobt.ir_u.sp.ir_count; rec 84 fs/xfs/libxfs/xfs_ialloc.c irec->ir_freecount = rec->inobt.ir_u.sp.ir_freecount; rec 93 fs/xfs/libxfs/xfs_ialloc.c be32_to_cpu(rec->inobt.ir_u.f.ir_freecount); rec 95 fs/xfs/libxfs/xfs_ialloc.c irec->ir_free = be64_to_cpu(rec->inobt.ir_free); rec 109 fs/xfs/libxfs/xfs_ialloc.c union xfs_btree_rec *rec; rec 113 fs/xfs/libxfs/xfs_ialloc.c error = xfs_btree_get_rec(cur, &rec, stat); rec 117 fs/xfs/libxfs/xfs_ialloc.c xfs_inobt_btrec_to_irec(mp, rec, irec); rec 224 fs/xfs/libxfs/xfs_ialloc.c xfs_inobt_rec_incore_t rec; rec 234 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &i); rec 239 fs/xfs/libxfs/xfs_ialloc.c freecount += rec.ir_freecount; rec 532 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec; rec 557 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &i); rec 562 fs/xfs/libxfs/xfs_ialloc.c rec.ir_startino == nrec->ir_startino, rec 569 fs/xfs/libxfs/xfs_ialloc.c XFS_WANT_CORRUPTED_GOTO(mp, __xfs_inobt_can_merge(nrec, &rec), rec 572 fs/xfs/libxfs/xfs_ialloc.c trace_xfs_irec_merge_pre(mp, agno, rec.ir_startino, rec 573 fs/xfs/libxfs/xfs_ialloc.c rec.ir_holemask, nrec->ir_startino, rec 577 fs/xfs/libxfs/xfs_ialloc.c __xfs_inobt_rec_merge(nrec, &rec); rec 619 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec; rec 820 fs/xfs/libxfs/xfs_ialloc.c rec.ir_startino = newino; rec 821 fs/xfs/libxfs/xfs_ialloc.c rec.ir_holemask = ~allocmask; rec 822 fs/xfs/libxfs/xfs_ialloc.c rec.ir_count = newlen; rec 823 fs/xfs/libxfs/xfs_ialloc.c rec.ir_freecount = newlen; rec 824 fs/xfs/libxfs/xfs_ialloc.c rec.ir_free = XFS_INOBT_ALL_FREE; rec 832 fs/xfs/libxfs/xfs_ialloc.c &rec, true); rec 837 fs/xfs/libxfs/xfs_ialloc.c rec.ir_startino), rec 838 fs/xfs/libxfs/xfs_ialloc.c rec.ir_holemask, rec.ir_count); rec 857 fs/xfs/libxfs/xfs_ialloc.c XFS_BTNUM_FINO, &rec, rec 1041 fs/xfs/libxfs/xfs_ialloc.c xfs_inobt_rec_incore_t *rec, rec 1057 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, rec, &i); rec 1070 fs/xfs/libxfs/xfs_ialloc.c xfs_inobt_rec_incore_t *rec, rec 1081 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, rec, &i); rec 1097 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore *rec) rec 1102 fs/xfs/libxfs/xfs_ialloc.c if (!xfs_inobt_issparse(rec->ir_holemask)) rec 1103 fs/xfs/libxfs/xfs_ialloc.c return xfs_lowbit64(rec->ir_free); rec 1105 fs/xfs/libxfs/xfs_ialloc.c realfree = xfs_inobt_irec_to_allocmask(rec); rec 1106 fs/xfs/libxfs/xfs_ialloc.c realfree &= rec->ir_free; rec 1128 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec, trec; rec 1166 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &j); rec 1171 fs/xfs/libxfs/xfs_ialloc.c if (rec.ir_freecount > 0) { rec 1202 fs/xfs/libxfs/xfs_ialloc.c &rec, &doneright); rec 1212 fs/xfs/libxfs/xfs_ialloc.c error = xfs_ialloc_next_rec(cur, &rec, &doneright, 0); rec 1227 fs/xfs/libxfs/xfs_ialloc.c rec.ir_startino - pagino; rec 1238 fs/xfs/libxfs/xfs_ialloc.c pag->pagl_rightrec = rec.ir_startino; rec 1240 fs/xfs/libxfs/xfs_ialloc.c rec = trec; rec 1245 fs/xfs/libxfs/xfs_ialloc.c if (!useleft && rec.ir_freecount) { rec 1249 fs/xfs/libxfs/xfs_ialloc.c pag->pagl_rightrec = rec.ir_startino; rec 1259 fs/xfs/libxfs/xfs_ialloc.c error = xfs_ialloc_next_rec(cur, &rec, rec 1273 fs/xfs/libxfs/xfs_ialloc.c pag->pagl_rightrec = rec.ir_startino; rec 1304 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &j); rec 1308 fs/xfs/libxfs/xfs_ialloc.c if (j == 1 && rec.ir_freecount > 0) { rec 1327 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &i); rec 1331 fs/xfs/libxfs/xfs_ialloc.c if (rec.ir_freecount > 0) rec 1340 fs/xfs/libxfs/xfs_ialloc.c offset = xfs_inobt_first_free_inode(&rec); rec 1343 fs/xfs/libxfs/xfs_ialloc.c ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) % rec 1345 fs/xfs/libxfs/xfs_ialloc.c ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); rec 1346 fs/xfs/libxfs/xfs_ialloc.c rec.ir_free &= ~XFS_INOBT_MASK(offset); rec 1347 fs/xfs/libxfs/xfs_ialloc.c rec.ir_freecount--; rec 1348 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_update(cur, &rec); rec 1380 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore *rec) rec 1393 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(lcur, rec, &i); rec 1403 fs/xfs/libxfs/xfs_ialloc.c if (pagino >= rec->ir_startino && rec 1404 fs/xfs/libxfs/xfs_ialloc.c pagino < (rec->ir_startino + XFS_INODES_PER_CHUNK)) rec 1428 fs/xfs/libxfs/xfs_ialloc.c if ((pagino - rec->ir_startino + XFS_INODES_PER_CHUNK - 1) > rec 1430 fs/xfs/libxfs/xfs_ialloc.c *rec = rrec; rec 1438 fs/xfs/libxfs/xfs_ialloc.c *rec = rrec; rec 1461 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore *rec) rec 1472 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, rec, &i); rec 1488 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, rec, &i); rec 1506 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec; rec 1515 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &i); rec 1519 fs/xfs/libxfs/xfs_ialloc.c ASSERT((XFS_AGINO_TO_OFFSET(cur->bc_mp, rec.ir_startino) % rec 1522 fs/xfs/libxfs/xfs_ialloc.c rec.ir_free &= ~XFS_INOBT_MASK(offset); rec 1523 fs/xfs/libxfs/xfs_ialloc.c rec.ir_freecount--; rec 1525 fs/xfs/libxfs/xfs_ialloc.c XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, (rec.ir_free == frec->ir_free) && rec 1526 fs/xfs/libxfs/xfs_ialloc.c (rec.ir_freecount == frec->ir_freecount)); rec 1528 fs/xfs/libxfs/xfs_ialloc.c return xfs_inobt_update(cur, &rec); rec 1553 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec; rec 1583 fs/xfs/libxfs/xfs_ialloc.c error = xfs_dialloc_ag_finobt_near(pagino, &cur, &rec); rec 1585 fs/xfs/libxfs/xfs_ialloc.c error = xfs_dialloc_ag_finobt_newino(agi, cur, &rec); rec 1589 fs/xfs/libxfs/xfs_ialloc.c offset = xfs_inobt_first_free_inode(&rec); rec 1592 fs/xfs/libxfs/xfs_ialloc.c ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) % rec 1594 fs/xfs/libxfs/xfs_ialloc.c ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); rec 1599 fs/xfs/libxfs/xfs_ialloc.c rec.ir_free &= ~XFS_INOBT_MASK(offset); rec 1600 fs/xfs/libxfs/xfs_ialloc.c rec.ir_freecount--; rec 1601 fs/xfs/libxfs/xfs_ialloc.c if (rec.ir_freecount) rec 1602 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_update(cur, &rec); rec 1620 fs/xfs/libxfs/xfs_ialloc.c error = xfs_dialloc_ag_update_inobt(icur, &rec, offset); rec 1828 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore *rec) rec 1832 fs/xfs/libxfs/xfs_ialloc.c rec->ir_startino); rec 1839 fs/xfs/libxfs/xfs_ialloc.c if (!xfs_inobt_issparse(rec->ir_holemask)) { rec 1848 fs/xfs/libxfs/xfs_ialloc.c ASSERT(sizeof(rec->ir_holemask) <= sizeof(holemask[0])); rec 1849 fs/xfs/libxfs/xfs_ialloc.c holemask[0] = rec->ir_holemask; rec 1910 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec; rec 1937 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &i); rec 1947 fs/xfs/libxfs/xfs_ialloc.c off = agino - rec.ir_startino; rec 1949 fs/xfs/libxfs/xfs_ialloc.c ASSERT(!(rec.ir_free & XFS_INOBT_MASK(off))); rec 1953 fs/xfs/libxfs/xfs_ialloc.c rec.ir_free |= XFS_INOBT_MASK(off); rec 1954 fs/xfs/libxfs/xfs_ialloc.c rec.ir_freecount++; rec 1962 fs/xfs/libxfs/xfs_ialloc.c rec.ir_free == XFS_INOBT_ALL_FREE && rec 1965 fs/xfs/libxfs/xfs_ialloc.c xic->first_ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino); rec 1966 fs/xfs/libxfs/xfs_ialloc.c xic->alloc = xfs_inobt_irec_to_allocmask(&rec); rec 1973 fs/xfs/libxfs/xfs_ialloc.c ilen = rec.ir_freecount; rec 1990 fs/xfs/libxfs/xfs_ialloc.c xfs_difree_inode_chunk(tp, agno, &rec); rec 1994 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_update(cur, &rec); rec 2016 fs/xfs/libxfs/xfs_ialloc.c *orec = rec; rec 2039 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec; rec 2075 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &i); rec 2080 fs/xfs/libxfs/xfs_ialloc.c rec.ir_free |= XFS_INOBT_MASK(offset); rec 2081 fs/xfs/libxfs/xfs_ialloc.c rec.ir_freecount++; rec 2083 fs/xfs/libxfs/xfs_ialloc.c XFS_WANT_CORRUPTED_GOTO(mp, (rec.ir_free == ibtrec->ir_free) && rec 2084 fs/xfs/libxfs/xfs_ialloc.c (rec.ir_freecount == ibtrec->ir_freecount), rec 2099 fs/xfs/libxfs/xfs_ialloc.c if (rec.ir_free == XFS_INOBT_ALL_FREE && rec 2107 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_update(cur, &rec); rec 2144 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec;/* btree record */ rec 2186 fs/xfs/libxfs/xfs_ialloc.c error = xfs_difree_inobt(mp, tp, agbp, agino, xic, &rec); rec 2194 fs/xfs/libxfs/xfs_ialloc.c error = xfs_difree_finobt(mp, tp, agbp, agino, &rec); rec 2216 fs/xfs/libxfs/xfs_ialloc.c struct xfs_inobt_rec_incore rec; rec 2240 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &i); rec 2251 fs/xfs/libxfs/xfs_ialloc.c if (rec.ir_startino > agino || rec 2252 fs/xfs/libxfs/xfs_ialloc.c rec.ir_startino + M_IGEO(mp)->ialloc_inos <= agino) rec 2257 fs/xfs/libxfs/xfs_ialloc.c (rec.ir_free & XFS_INOBT_MASK(agino - rec.ir_startino))) rec 2260 fs/xfs/libxfs/xfs_ialloc.c *chunk_agbno = XFS_AGINO_TO_AGBNO(mp, rec.ir_startino); rec 2713 fs/xfs/libxfs/xfs_ialloc.c union xfs_btree_rec *rec, rec 2719 fs/xfs/libxfs/xfs_ialloc.c xfs_inobt_btrec_to_irec(cur->bc_mp, rec, &irec); rec 127 fs/xfs/libxfs/xfs_ialloc.h xfs_inobt_rec_incore_t *rec, int *stat); rec 141 fs/xfs/libxfs/xfs_ialloc.h void xfs_inobt_btrec_to_irec(struct xfs_mount *mp, union xfs_btree_rec *rec, rec 171 fs/xfs/libxfs/xfs_ialloc_btree.c union xfs_btree_rec *rec) rec 173 fs/xfs/libxfs/xfs_ialloc_btree.c key->inobt.ir_startino = rec->inobt.ir_startino; rec 179 fs/xfs/libxfs/xfs_ialloc_btree.c union xfs_btree_rec *rec) rec 183 fs/xfs/libxfs/xfs_ialloc_btree.c x = be32_to_cpu(rec->inobt.ir_startino); rec 191 fs/xfs/libxfs/xfs_ialloc_btree.c union xfs_btree_rec *rec) rec 193 fs/xfs/libxfs/xfs_ialloc_btree.c rec->inobt.ir_startino = cpu_to_be32(cur->bc_rec.i.ir_startino); rec 195 fs/xfs/libxfs/xfs_ialloc_btree.c rec->inobt.ir_u.sp.ir_holemask = rec 197 fs/xfs/libxfs/xfs_ialloc_btree.c rec->inobt.ir_u.sp.ir_count = cur->bc_rec.i.ir_count; rec 198 fs/xfs/libxfs/xfs_ialloc_btree.c rec->inobt.ir_u.sp.ir_freecount = cur->bc_rec.i.ir_freecount; rec 201 fs/xfs/libxfs/xfs_ialloc_btree.c rec->inobt.ir_u.f.ir_freecount = rec 204 fs/xfs/libxfs/xfs_ialloc_btree.c rec->inobt.ir_free = cpu_to_be64(cur->bc_rec.i.ir_free); rec 468 fs/xfs/libxfs/xfs_ialloc_btree.c struct xfs_inobt_rec_incore *rec) rec 488 fs/xfs/libxfs/xfs_ialloc_btree.c allocbitmap = ~rec->ir_holemask & ((1 << XFS_INOBT_HOLEMASK_BITS) - 1); rec 498 fs/xfs/libxfs/xfs_ialloc_btree.c ASSERT(nextbit < (sizeof(rec->ir_holemask) * NBBY)); rec 516 fs/xfs/libxfs/xfs_ialloc_btree.c struct xfs_inobt_rec_incore *rec) rec 524 fs/xfs/libxfs/xfs_ialloc_btree.c allocbmap = xfs_inobt_irec_to_allocmask(rec); rec 533 fs/xfs/libxfs/xfs_ialloc_btree.c if (inocount != rec->ir_count) rec 60 fs/xfs/libxfs/xfs_ialloc_btree.h #define xfs_inobt_rec_check_count(mp, rec) 0 rec 41 fs/xfs/libxfs/xfs_iext_tree.c static bool xfs_iext_rec_is_empty(struct xfs_iext_rec *rec) rec 43 fs/xfs/libxfs/xfs_iext_tree.c return rec->hi == 0; rec 46 fs/xfs/libxfs/xfs_iext_tree.c static inline void xfs_iext_rec_clear(struct xfs_iext_rec *rec) rec 48 fs/xfs/libxfs/xfs_iext_tree.c rec->lo = 0; rec 49 fs/xfs/libxfs/xfs_iext_tree.c rec->hi = 0; rec 54 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_rec *rec, rec 61 fs/xfs/libxfs/xfs_iext_tree.c rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; rec 62 fs/xfs/libxfs/xfs_iext_tree.c rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; rec 64 fs/xfs/libxfs/xfs_iext_tree.c rec->lo |= (irec->br_startblock << 54); rec 65 fs/xfs/libxfs/xfs_iext_tree.c rec->hi |= ((irec->br_startblock & ~xfs_mask64lo(10)) << (22 - 10)); rec 68 fs/xfs/libxfs/xfs_iext_tree.c rec->hi |= (1 << 21); rec 74 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_rec *rec) rec 76 fs/xfs/libxfs/xfs_iext_tree.c irec->br_startoff = rec->lo & XFS_IEXT_STARTOFF_MASK; rec 77 fs/xfs/libxfs/xfs_iext_tree.c irec->br_blockcount = rec->hi & XFS_IEXT_LENGTH_MASK; rec 79 fs/xfs/libxfs/xfs_iext_tree.c irec->br_startblock = rec->lo >> 54; rec 80 fs/xfs/libxfs/xfs_iext_tree.c irec->br_startblock |= (rec->hi & xfs_mask64hi(42)) >> (22 - 10); rec 82 fs/xfs/libxfs/xfs_iext_tree.c if (rec->hi & (1 << 21)) rec 290 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_rec *rec, rec 293 fs/xfs/libxfs/xfs_iext_tree.c uint64_t rec_offset = rec->lo & XFS_IEXT_STARTOFF_MASK; rec 294 fs/xfs/libxfs/xfs_iext_tree.c uint32_t rec_len = rec->hi & XFS_IEXT_LENGTH_MASK; rec 935 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_rec *rec = cur_rec(cur); rec 937 fs/xfs/libxfs/xfs_iext_tree.c if (xfs_iext_rec_is_empty(rec)) rec 939 fs/xfs/libxfs/xfs_iext_tree.c if (xfs_iext_rec_cmp(rec, offset) >= 0) rec 554 fs/xfs/libxfs/xfs_inode_fork.c struct xfs_bmbt_irec rec; rec 560 fs/xfs/libxfs/xfs_inode_fork.c for_each_xfs_iext(ifp, &icur, &rec) { rec 561 fs/xfs/libxfs/xfs_inode_fork.c if (isnullstartblock(rec.br_startblock)) rec 563 fs/xfs/libxfs/xfs_inode_fork.c ASSERT(xfs_bmap_validate_extent(ip, whichfork, &rec) == NULL); rec 564 fs/xfs/libxfs/xfs_inode_fork.c xfs_bmbt_disk_set_all(dp, &rec); rec 93 fs/xfs/libxfs/xfs_refcount.c union xfs_btree_rec *rec, rec 96 fs/xfs/libxfs/xfs_refcount.c irec->rc_startblock = be32_to_cpu(rec->refc.rc_startblock); rec 97 fs/xfs/libxfs/xfs_refcount.c irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); rec 98 fs/xfs/libxfs/xfs_refcount.c irec->rc_refcount = be32_to_cpu(rec->refc.rc_refcount); rec 112 fs/xfs/libxfs/xfs_refcount.c union xfs_btree_rec *rec; rec 116 fs/xfs/libxfs/xfs_refcount.c error = xfs_btree_get_rec(cur, &rec, stat); rec 120 fs/xfs/libxfs/xfs_refcount.c xfs_refcount_btrec_to_irec(rec, irec); rec 169 fs/xfs/libxfs/xfs_refcount.c union xfs_btree_rec rec; rec 173 fs/xfs/libxfs/xfs_refcount.c rec.refc.rc_startblock = cpu_to_be32(irec->rc_startblock); rec 174 fs/xfs/libxfs/xfs_refcount.c rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); rec 175 fs/xfs/libxfs/xfs_refcount.c rec.refc.rc_refcount = cpu_to_be32(irec->rc_refcount); rec 176 fs/xfs/libxfs/xfs_refcount.c error = xfs_btree_update(cur, &rec); rec 1588 fs/xfs/libxfs/xfs_refcount.c union xfs_btree_rec *rec, rec 1594 fs/xfs/libxfs/xfs_refcount.c if (be32_to_cpu(rec->refc.rc_refcount) != 1) rec 1598 fs/xfs/libxfs/xfs_refcount.c xfs_refcount_btrec_to_irec(rec, &rr->rr_rrec); rec 74 fs/xfs/libxfs/xfs_refcount.h extern void xfs_refcount_btrec_to_irec(union xfs_btree_rec *rec, rec 140 fs/xfs/libxfs/xfs_refcount_btree.c union xfs_btree_rec *rec) rec 142 fs/xfs/libxfs/xfs_refcount_btree.c key->refc.rc_startblock = rec->refc.rc_startblock; rec 148 fs/xfs/libxfs/xfs_refcount_btree.c union xfs_btree_rec *rec) rec 152 fs/xfs/libxfs/xfs_refcount_btree.c x = be32_to_cpu(rec->refc.rc_startblock); rec 153 fs/xfs/libxfs/xfs_refcount_btree.c x += be32_to_cpu(rec->refc.rc_blockcount) - 1; rec 160 fs/xfs/libxfs/xfs_refcount_btree.c union xfs_btree_rec *rec) rec 162 fs/xfs/libxfs/xfs_refcount_btree.c rec->refc.rc_startblock = cpu_to_be32(cur->bc_rec.rc.rc_startblock); rec 163 fs/xfs/libxfs/xfs_refcount_btree.c rec->refc.rc_blockcount = cpu_to_be32(cur->bc_rec.rc.rc_blockcount); rec 164 fs/xfs/libxfs/xfs_refcount_btree.c rec->refc.rc_refcount = cpu_to_be32(cur->bc_rec.rc.rc_refcount); rec 184 fs/xfs/libxfs/xfs_refcount_btree.c struct xfs_refcount_irec *rec = &cur->bc_rec.rc; rec 187 fs/xfs/libxfs/xfs_refcount_btree.c return (int64_t)be32_to_cpu(kp->rc_startblock) - rec->rc_startblock; rec 79 fs/xfs/libxfs/xfs_rmap.c union xfs_btree_rec rec; rec 86 fs/xfs/libxfs/xfs_rmap.c rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); rec 87 fs/xfs/libxfs/xfs_rmap.c rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); rec 88 fs/xfs/libxfs/xfs_rmap.c rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); rec 89 fs/xfs/libxfs/xfs_rmap.c rec.rmap.rm_offset = cpu_to_be64( rec 91 fs/xfs/libxfs/xfs_rmap.c error = xfs_btree_update(cur, &rec); rec 168 fs/xfs/libxfs/xfs_rmap.c union xfs_btree_rec *rec, rec 171 fs/xfs/libxfs/xfs_rmap.c irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); rec 172 fs/xfs/libxfs/xfs_rmap.c irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); rec 173 fs/xfs/libxfs/xfs_rmap.c irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner); rec 174 fs/xfs/libxfs/xfs_rmap.c return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offset), rec 189 fs/xfs/libxfs/xfs_rmap.c union xfs_btree_rec *rec; rec 192 fs/xfs/libxfs/xfs_rmap.c error = xfs_btree_get_rec(cur, &rec, stat); rec 196 fs/xfs/libxfs/xfs_rmap.c if (xfs_rmap_btrec_to_irec(rec, irec)) rec 245 fs/xfs/libxfs/xfs_rmap.c struct xfs_rmap_irec *rec, rec 251 fs/xfs/libxfs/xfs_rmap.c cur->bc_private.a.agno, rec->rm_startblock, rec 252 fs/xfs/libxfs/xfs_rmap.c rec->rm_blockcount, rec->rm_owner, rec->rm_offset, rec 253 fs/xfs/libxfs/xfs_rmap.c rec->rm_flags); rec 255 fs/xfs/libxfs/xfs_rmap.c if (rec->rm_owner != info->high.rm_owner) rec 257 fs/xfs/libxfs/xfs_rmap.c if (!XFS_RMAP_NON_INODE_OWNER(rec->rm_owner) && rec 258 fs/xfs/libxfs/xfs_rmap.c !(rec->rm_flags & XFS_RMAP_BMBT_BLOCK) && rec 259 fs/xfs/libxfs/xfs_rmap.c rec->rm_offset + rec->rm_blockcount - 1 != info->high.rm_offset) rec 262 fs/xfs/libxfs/xfs_rmap.c *info->irec = *rec; rec 321 fs/xfs/libxfs/xfs_rmap.c struct xfs_rmap_irec *rec, rec 327 fs/xfs/libxfs/xfs_rmap.c cur->bc_private.a.agno, rec->rm_startblock, rec 328 fs/xfs/libxfs/xfs_rmap.c rec->rm_blockcount, rec->rm_owner, rec->rm_offset, rec 329 fs/xfs/libxfs/xfs_rmap.c rec->rm_flags); rec 331 fs/xfs/libxfs/xfs_rmap.c if (rec->rm_owner != info->high.rm_owner) rec 333 fs/xfs/libxfs/xfs_rmap.c if (!XFS_RMAP_NON_INODE_OWNER(rec->rm_owner) && rec 334 fs/xfs/libxfs/xfs_rmap.c !(rec->rm_flags & XFS_RMAP_BMBT_BLOCK) && rec 335 fs/xfs/libxfs/xfs_rmap.c (rec->rm_offset > info->high.rm_offset || rec 336 fs/xfs/libxfs/xfs_rmap.c rec->rm_offset + rec->rm_blockcount <= info->high.rm_offset)) rec 339 fs/xfs/libxfs/xfs_rmap.c *info->irec = *rec; rec 397 fs/xfs/libxfs/xfs_rmap.c struct xfs_rmap_irec *rec, rec 410 fs/xfs/libxfs/xfs_rmap.c (rec->rm_flags & XFS_RMAP_UNWRITTEN), out); rec 413 fs/xfs/libxfs/xfs_rmap.c XFS_WANT_CORRUPTED_GOTO(mp, owner == rec->rm_owner, out); rec 420 fs/xfs/libxfs/xfs_rmap.c XFS_WANT_CORRUPTED_GOTO(mp, rec->rm_flags & XFS_RMAP_BMBT_BLOCK, rec 423 fs/xfs/libxfs/xfs_rmap.c XFS_WANT_CORRUPTED_GOTO(mp, rec->rm_offset <= offset, out); rec 425 fs/xfs/libxfs/xfs_rmap.c ltoff + rec->rm_blockcount >= offset + len, rec 2079 fs/xfs/libxfs/xfs_rmap.c union xfs_btree_rec *rec, rec 2086 fs/xfs/libxfs/xfs_rmap.c error = xfs_rmap_btrec_to_irec(rec, &irec); rec 2503 fs/xfs/libxfs/xfs_rmap.c struct xfs_rmap_irec *rec, rec 2508 fs/xfs/libxfs/xfs_rmap.c if (rks->owner == rec->rm_owner && rks->offset == rec->rm_offset && rec 2509 fs/xfs/libxfs/xfs_rmap.c ((rks->flags & rec->rm_flags) & XFS_RMAP_KEY_FLAGS) == rks->flags) rec 136 fs/xfs/libxfs/xfs_rmap.h struct xfs_rmap_irec *rec, rec 193 fs/xfs/libxfs/xfs_rmap.h int xfs_rmap_btrec_to_irec(union xfs_btree_rec *rec, rec 165 fs/xfs/libxfs/xfs_rmap_btree.c union xfs_btree_rec *rec) rec 167 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_startblock = rec->rmap.rm_startblock; rec 168 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_owner = rec->rmap.rm_owner; rec 169 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_offset = rec->rmap.rm_offset; rec 182 fs/xfs/libxfs/xfs_rmap_btree.c union xfs_btree_rec *rec) rec 187 fs/xfs/libxfs/xfs_rmap_btree.c adj = be32_to_cpu(rec->rmap.rm_blockcount) - 1; rec 189 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_startblock = rec->rmap.rm_startblock; rec 191 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_owner = rec->rmap.rm_owner; rec 192 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_offset = rec->rmap.rm_offset; rec 193 fs/xfs/libxfs/xfs_rmap_btree.c if (XFS_RMAP_NON_INODE_OWNER(be64_to_cpu(rec->rmap.rm_owner)) || rec 194 fs/xfs/libxfs/xfs_rmap_btree.c XFS_RMAP_IS_BMBT_BLOCK(be64_to_cpu(rec->rmap.rm_offset))) rec 204 fs/xfs/libxfs/xfs_rmap_btree.c union xfs_btree_rec *rec) rec 206 fs/xfs/libxfs/xfs_rmap_btree.c rec->rmap.rm_startblock = cpu_to_be32(cur->bc_rec.r.rm_startblock); rec 207 fs/xfs/libxfs/xfs_rmap_btree.c rec->rmap.rm_blockcount = cpu_to_be32(cur->bc_rec.r.rm_blockcount); rec 208 fs/xfs/libxfs/xfs_rmap_btree.c rec->rmap.rm_owner = cpu_to_be64(cur->bc_rec.r.rm_owner); rec 209 fs/xfs/libxfs/xfs_rmap_btree.c rec->rmap.rm_offset = cpu_to_be64( rec 230 fs/xfs/libxfs/xfs_rmap_btree.c struct xfs_rmap_irec *rec = &cur->bc_rec.r; rec 235 fs/xfs/libxfs/xfs_rmap_btree.c d = (int64_t)be32_to_cpu(kp->rm_startblock) - rec->rm_startblock; rec 240 fs/xfs/libxfs/xfs_rmap_btree.c y = rec->rm_owner; rec 247 fs/xfs/libxfs/xfs_rmap_btree.c y = rec->rm_offset; rec 1017 fs/xfs/libxfs/xfs_rtbitmap.c struct xfs_rtalloc_rec rec; rec 1050 fs/xfs/libxfs/xfs_rtbitmap.c rec.ar_startext = rtstart; rec 1051 fs/xfs/libxfs/xfs_rtbitmap.c rec.ar_extcount = rtend - rtstart + 1; rec 1053 fs/xfs/libxfs/xfs_rtbitmap.c error = fn(tp, &rec, priv); rec 347 fs/xfs/scrub/agheader.c struct xfs_alloc_rec_incore *rec, rec 352 fs/xfs/scrub/agheader.c (*blocks) += rec->ar_blockcount; rec 72 fs/xfs/scrub/agheader_repair.c struct xfs_alloc_rec_incore *rec, rec 81 fs/xfs/scrub/agheader_repair.c raa->freeblks += rec->ar_blockcount; rec 82 fs/xfs/scrub/agheader_repair.c if (rec->ar_blockcount > raa->longest) rec 83 fs/xfs/scrub/agheader_repair.c raa->longest = rec->ar_blockcount; rec 444 fs/xfs/scrub/agheader_repair.c struct xfs_rmap_irec *rec, rec 455 fs/xfs/scrub/agheader_repair.c if (rec->rm_owner == XFS_RMAP_OWN_AG) { rec 457 fs/xfs/scrub/agheader_repair.c rec->rm_startblock); rec 458 fs/xfs/scrub/agheader_repair.c error = xfs_bitmap_set(ra->freesp, fsb, rec->rm_blockcount); rec 94 fs/xfs/scrub/alloc.c union xfs_btree_rec *rec) rec 101 fs/xfs/scrub/alloc.c bno = be32_to_cpu(rec->alloc.ar_startblock); rec 102 fs/xfs/scrub/alloc.c len = be32_to_cpu(rec->alloc.ar_blockcount); rec 402 fs/xfs/scrub/attr.c void *rec) rec 405 fs/xfs/scrub/attr.c struct xfs_attr_leaf_entry *ent = rec; rec 371 fs/xfs/scrub/bmap.c union xfs_btree_rec *rec) rec 409 fs/xfs/scrub/bmap.c xfs_bmbt_disk_get_all(&rec->bmbt, &irec); rec 462 fs/xfs/scrub/bmap.c struct xfs_rmap_irec *rec, rec 472 fs/xfs/scrub/bmap.c if (rec->rm_owner != sc->ip->i_ino) rec 475 fs/xfs/scrub/bmap.c !!(rec->rm_flags & XFS_RMAP_ATTR_FORK)) rec 477 fs/xfs/scrub/bmap.c if (rec->rm_flags & XFS_RMAP_BMBT_BLOCK) rec 484 fs/xfs/scrub/bmap.c rec->rm_offset); rec 487 fs/xfs/scrub/bmap.c have_map = xfs_iext_lookup_extent(sc->ip, ifp, rec->rm_offset, rec 491 fs/xfs/scrub/bmap.c rec->rm_offset); rec 500 fs/xfs/scrub/bmap.c if (irec.br_startoff != rec->rm_offset) rec 502 fs/xfs/scrub/bmap.c rec->rm_offset); rec 504 fs/xfs/scrub/bmap.c cur->bc_private.a.agno, rec->rm_startblock)) rec 506 fs/xfs/scrub/bmap.c rec->rm_offset); rec 507 fs/xfs/scrub/bmap.c if (irec.br_blockcount > rec->rm_blockcount) rec 509 fs/xfs/scrub/bmap.c rec->rm_offset); rec 512 fs/xfs/scrub/bmap.c rec->rm_startblock += irec.br_blockcount; rec 513 fs/xfs/scrub/bmap.c rec->rm_offset += irec.br_blockcount; rec 514 fs/xfs/scrub/bmap.c rec->rm_blockcount -= irec.br_blockcount; rec 515 fs/xfs/scrub/bmap.c if (rec->rm_blockcount == 0) rec 520 fs/xfs/scrub/bmap.c rec->rm_offset); rec 129 fs/xfs/scrub/btree.c union xfs_btree_rec *rec; rec 138 fs/xfs/scrub/btree.c rec = xfs_btree_rec_addr(cur, cur->bc_ptrs[0], block); rec 143 fs/xfs/scrub/btree.c if (!bs->firstrec && !cur->bc_ops->recs_inorder(cur, &bs->lastrec, rec)) rec 146 fs/xfs/scrub/btree.c memcpy(&bs->lastrec, rec, cur->bc_ops->rec_len); rec 152 fs/xfs/scrub/btree.c cur->bc_ops->init_key_from_rec(&key, rec); rec 162 fs/xfs/scrub/btree.c cur->bc_ops->init_high_key_from_rec(&hkey, rec); rec 30 fs/xfs/scrub/btree.h union xfs_btree_rec *rec); rec 325 fs/xfs/scrub/common.c struct xfs_rmap_irec *rec, rec 332 fs/xfs/scrub/common.c irec_attr = rec->rm_flags & XFS_RMAP_ATTR_FORK; rec 335 fs/xfs/scrub/common.c if (rec->rm_owner != sroi->oinfo->oi_owner) rec 338 fs/xfs/scrub/common.c if (XFS_RMAP_NON_INODE_OWNER(rec->rm_owner) || irec_attr == oinfo_attr) rec 339 fs/xfs/scrub/common.c (*sroi->blocks) += rec->rm_blockcount; rec 85 fs/xfs/scrub/dabtree.c int rec) rec 98 fs/xfs/scrub/dabtree.c return ents + (rec * sizeof(struct xfs_attr_leaf_entry)); rec 102 fs/xfs/scrub/dabtree.c return ents + (rec * sizeof(struct xfs_dir2_leaf_entry)); rec 106 fs/xfs/scrub/dabtree.c return ents + (rec * sizeof(struct xfs_dir2_leaf_entry)); rec 110 fs/xfs/scrub/dabtree.c return ents + (rec * sizeof(struct xfs_da_node_entry)); rec 482 fs/xfs/scrub/dabtree.c void *rec; rec 541 fs/xfs/scrub/dabtree.c rec = xchk_da_btree_entry(&ds, level, rec 543 fs/xfs/scrub/dabtree.c error = scrub_fn(&ds, level, rec); rec 32 fs/xfs/scrub/dabtree.h int level, void *rec); rec 183 fs/xfs/scrub/dir.c void *rec) rec 186 fs/xfs/scrub/dir.c struct xfs_dir2_leaf_entry *ent = rec; rec 423 fs/xfs/scrub/ialloc.c union xfs_btree_rec *rec) rec 438 fs/xfs/scrub/ialloc.c xfs_inobt_btrec_to_irec(mp, rec, &irec); rec 424 fs/xfs/scrub/inode.c struct xfs_inobt_rec_incore rec; rec 444 fs/xfs/scrub/inode.c error = xfs_inobt_get_rec(sc->sa.fino_cur, &rec, &has_record); rec 453 fs/xfs/scrub/inode.c if (rec.ir_startino > agino || rec 454 fs/xfs/scrub/inode.c rec.ir_startino + XFS_INODES_PER_CHUNK <= agino) rec 457 fs/xfs/scrub/inode.c if (rec.ir_free & XFS_INOBT_MASK(agino - rec.ir_startino)) rec 94 fs/xfs/scrub/refcount.c struct xfs_rmap_irec *rec, rec 106 fs/xfs/scrub/refcount.c rm_last = rec->rm_startblock + rec->rm_blockcount - 1; rec 110 fs/xfs/scrub/refcount.c if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { rec 115 fs/xfs/scrub/refcount.c if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { rec 132 fs/xfs/scrub/refcount.c memcpy(&frag->rm, rec, sizeof(frag->rm)); rec 335 fs/xfs/scrub/refcount.c union xfs_btree_rec *rec) rec 345 fs/xfs/scrub/refcount.c bno = be32_to_cpu(rec->refc.rc_startblock); rec 346 fs/xfs/scrub/refcount.c len = be32_to_cpu(rec->refc.rc_blockcount); rec 347 fs/xfs/scrub/refcount.c refcount = be32_to_cpu(rec->refc.rc_refcount); rec 829 fs/xfs/scrub/repair.c struct xfs_rmap_irec *rec, rec 839 fs/xfs/scrub/repair.c if (!XFS_RMAP_NON_INODE_OWNER(rec->rm_owner)) rec 843 fs/xfs/scrub/repair.c for (b = 0; b < rec->rm_blockcount; b++) { rec 846 fs/xfs/scrub/repair.c if (rec->rm_owner != fab->rmap_owner) rec 849 fs/xfs/scrub/repair.c rec->rm_owner, rec->rm_startblock + b, rec 91 fs/xfs/scrub/rmap.c union xfs_btree_rec *rec) rec 102 fs/xfs/scrub/rmap.c error = xfs_rmap_btrec_to_irec(rec, &irec); rec 44 fs/xfs/scrub/rtbitmap.c struct xfs_rtalloc_rec *rec, rec 51 fs/xfs/scrub/rtbitmap.c startblock = rec->ar_startext * tp->t_mountp->m_sb.sb_rextsize; rec 52 fs/xfs/scrub/rtbitmap.c blockcount = rec->ar_extcount * tp->t_mountp->m_sb.sb_rextsize; rec 193 fs/xfs/xfs_bmap_util.c struct xfs_bmbt_irec rec; rec 196 fs/xfs/xfs_bmap_util.c error = xfs_bmap_last_extent(NULL, ip, whichfork, &rec, eof); rec 200 fs/xfs/xfs_bmap_util.c *eof = endoff >= rec.br_startoff + rec.br_blockcount; rec 478 fs/xfs/xfs_bmap_util.c struct xfs_bmbt_irec *rec, rec 481 fs/xfs/xfs_bmap_util.c xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; rec 486 fs/xfs/xfs_bmap_util.c rec->br_startoff += rec->br_blockcount; rec 487 fs/xfs/xfs_bmap_util.c if (!isnullstartblock(rec->br_startblock) && rec 488 fs/xfs/xfs_bmap_util.c rec->br_startblock != DELAYSTARTBLOCK) rec 489 fs/xfs/xfs_bmap_util.c rec->br_startblock += rec->br_blockcount; rec 490 fs/xfs/xfs_bmap_util.c rec->br_blockcount = total_end - end; rec 513 fs/xfs/xfs_bmap_util.c struct xfs_bmbt_irec got, rec; rec 650 fs/xfs/xfs_bmap_util.c rec = got; rec 653 fs/xfs/xfs_bmap_util.c &rec); rec 656 fs/xfs/xfs_bmap_util.c } while (xfs_getbmap_next_rec(&rec, bno)); rec 54 fs/xfs/xfs_bmap_util.h int whichfork, struct xfs_bmbt_irec *rec, rec 194 fs/xfs/xfs_fsmap.c struct xfs_rmap_irec *rec, rec 215 fs/xfs/xfs_fsmap.c error = xfs_refcount_find_shared(cur, rec->rm_startblock, rec 216 fs/xfs/xfs_fsmap.c rec->rm_blockcount, &fbno, &flen, false); rec 234 fs/xfs/xfs_fsmap.c struct xfs_rmap_irec *rec, rec 249 fs/xfs/xfs_fsmap.c if (xfs_rmap_compare(rec, &info->low) < 0) { rec 250 fs/xfs/xfs_fsmap.c rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount); rec 266 fs/xfs/xfs_fsmap.c rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount); rec 300 fs/xfs/xfs_fsmap.c trace_xfs_fsmap_mapping(mp, info->dev, info->agno, rec); rec 304 fs/xfs/xfs_fsmap.c error = xfs_fsmap_owner_from_rmap(&fmr, rec); rec 307 fs/xfs/xfs_fsmap.c fmr.fmr_offset = XFS_FSB_TO_BB(mp, rec->rm_offset); rec 308 fs/xfs/xfs_fsmap.c fmr.fmr_length = XFS_FSB_TO_BB(mp, rec->rm_blockcount); rec 309 fs/xfs/xfs_fsmap.c if (rec->rm_flags & XFS_RMAP_UNWRITTEN) rec 311 fs/xfs/xfs_fsmap.c if (rec->rm_flags & XFS_RMAP_ATTR_FORK) rec 313 fs/xfs/xfs_fsmap.c if (rec->rm_flags & XFS_RMAP_BMBT_BLOCK) rec 316 fs/xfs/xfs_fsmap.c error = xfs_getfsmap_is_shared(tp, info, rec, &shared); rec 328 fs/xfs/xfs_fsmap.c rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount); rec 338 fs/xfs/xfs_fsmap.c struct xfs_rmap_irec *rec, rec 346 fs/xfs/xfs_fsmap.c fsb = XFS_AGB_TO_FSB(mp, cur->bc_private.a.agno, rec->rm_startblock); rec 349 fs/xfs/xfs_fsmap.c return xfs_getfsmap_helper(cur->bc_tp, info, rec, rec_daddr); rec 356 fs/xfs/xfs_fsmap.c struct xfs_alloc_rec_incore *rec, rec 365 fs/xfs/xfs_fsmap.c rec->ar_startblock); rec 367 fs/xfs/xfs_fsmap.c irec.rm_startblock = rec->ar_startblock; rec 368 fs/xfs/xfs_fsmap.c irec.rm_blockcount = rec->ar_blockcount; rec 442 fs/xfs/xfs_fsmap.c struct xfs_rtalloc_rec *rec, rec 450 fs/xfs/xfs_fsmap.c irec.rm_startblock = rec->ar_startext * mp->m_sb.sb_rextsize; rec 452 fs/xfs/xfs_fsmap.c irec.rm_blockcount = rec->ar_extcount * mp->m_sb.sb_rextsize; rec 26 fs/xfs/xfs_rtalloc.h struct xfs_rtalloc_rec *rec, rec 311 include/linux/ftrace.h void ftrace_bug(int err, struct dyn_ftrace *rec); rec 356 include/linux/ftrace.h #define ftrace_rec_count(rec) ((rec)->flags & ~FTRACE_FL_MASK) rec 415 include/linux/ftrace.h void *arch_ftrace_trampoline_func(struct ftrace_ops *ops, struct dyn_ftrace *rec); rec 430 include/linux/ftrace.h int ftrace_update_record(struct dyn_ftrace *rec, bool enable); rec 431 include/linux/ftrace.h int ftrace_test_record(struct dyn_ftrace *rec, bool enable); rec 435 include/linux/ftrace.h unsigned long ftrace_get_addr_new(struct dyn_ftrace *rec); rec 436 include/linux/ftrace.h unsigned long ftrace_get_addr_curr(struct dyn_ftrace *rec); rec 521 include/linux/ftrace.h struct dyn_ftrace *rec, unsigned long addr); rec 543 include/linux/ftrace.h extern int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr); rec 567 include/linux/ftrace.h extern int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 571 include/linux/ftrace.h static inline int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, rec 31 include/linux/ihex.h __ihex_next_binrec(const struct ihex_binrec *rec) rec 33 include/linux/ihex.h const void *p = rec; rec 35 include/linux/ihex.h return p + ALIGN(ihex_binrec_size(rec), 4); rec 39 include/linux/ihex.h ihex_next_binrec(const struct ihex_binrec *rec) rec 41 include/linux/ihex.h rec = __ihex_next_binrec(rec); rec 43 include/linux/ihex.h return be16_to_cpu(rec->len) ? rec : NULL; rec 49 include/linux/ihex.h const struct ihex_binrec *end, *rec; rec 51 include/linux/ihex.h rec = (const void *)fw->data; rec 54 include/linux/ihex.h for (; rec <= end; rec = __ihex_next_binrec(rec)) { rec 56 include/linux/ihex.h if (rec == end && !be16_to_cpu(rec->len)) rec 229 include/linux/pstore.h pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) rec 231 include/linux/pstore.h rec->ip |= cpu; rec 235 include/linux/pstore.h pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) rec 237 include/linux/pstore.h return rec->ip & PSTORE_CPU_IN_IP; rec 241 include/linux/pstore.h pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) rec 243 include/linux/pstore.h return rec->ts; rec 247 include/linux/pstore.h pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) rec 249 include/linux/pstore.h rec->ts = val; rec 253 include/linux/pstore.h pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) rec 255 include/linux/pstore.h rec->ts &= ~(TS_CPU_MASK); rec 256 include/linux/pstore.h rec->ts |= cpu; rec 260 include/linux/pstore.h pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) rec 262 include/linux/pstore.h return rec->ts & TS_CPU_MASK; rec 266 include/linux/pstore.h pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) rec 268 include/linux/pstore.h return rec->ts >> TS_CPU_SHIFT; rec 272 include/linux/pstore.h pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) rec 274 include/linux/pstore.h rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); rec 440 include/linux/trace_events.h extern int filter_match_preds(struct event_filter *filter, void *rec); rec 443 include/linux/trace_events.h event_triggers_call(struct trace_event_file *file, void *rec, rec 387 include/net/tls.h static inline bool tls_record_is_start_marker(struct tls_record_info *rec) rec 389 include/net/tls.h return rec->len == 0; rec 392 include/net/tls.h static inline u32 tls_record_start_seq(struct tls_record_info *rec) rec 394 include/net/tls.h return rec->end_seq - rec->len; rec 421 include/net/tls.h struct tls_rec *rec; rec 423 include/net/tls.h rec = list_first_entry(&ctx->tx_list, struct tls_rec, list); rec 424 include/net/tls.h if (!rec) rec 427 include/net/tls.h return READ_ONCE(rec->tx_ready); rec 219 include/rdma/ib_sa.h sa_conv_pathrec_to_gid_type(struct sa_path_rec *rec) rec 221 include/rdma/ib_sa.h switch (rec->rec_type) { rec 453 include/rdma/ib_sa.h u8 port_num, struct sa_path_rec *rec, rec 462 include/rdma/ib_sa.h struct ib_sa_service_rec *rec, rec 471 include/rdma/ib_sa.h struct ib_sa_mcmember_rec rec; rec 508 include/rdma/ib_sa.h struct ib_sa_mcmember_rec *rec, rec 537 include/rdma/ib_sa.h union ib_gid *mgid, struct ib_sa_mcmember_rec *rec); rec 544 include/rdma/ib_sa.h struct ib_sa_mcmember_rec *rec, rec 550 include/rdma/ib_sa.h struct sa_path_rec *rec, rec 558 include/rdma/ib_sa.h void ib_sa_pack_path(struct sa_path_rec *rec, void *attribute); rec 564 include/rdma/ib_sa.h void ib_sa_unpack_path(void *attribute, struct sa_path_rec *rec); rec 569 include/rdma/ib_sa.h struct ib_sa_guidinfo_rec *rec, rec 581 include/rdma/ib_sa.h static inline bool sa_path_is_roce(struct sa_path_rec *rec) rec 583 include/rdma/ib_sa.h return ((rec->rec_type == SA_PATH_REC_TYPE_ROCE_V1) || rec 584 include/rdma/ib_sa.h (rec->rec_type == SA_PATH_REC_TYPE_ROCE_V2)); rec 587 include/rdma/ib_sa.h static inline bool sa_path_is_opa(struct sa_path_rec *rec) rec 589 include/rdma/ib_sa.h return (rec->rec_type == SA_PATH_REC_TYPE_OPA); rec 592 include/rdma/ib_sa.h static inline void sa_path_set_slid(struct sa_path_rec *rec, u32 slid) rec 594 include/rdma/ib_sa.h if (rec->rec_type == SA_PATH_REC_TYPE_IB) rec 595 include/rdma/ib_sa.h rec->ib.slid = cpu_to_be16(slid); rec 596 include/rdma/ib_sa.h else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) rec 597 include/rdma/ib_sa.h rec->opa.slid = cpu_to_be32(slid); rec 600 include/rdma/ib_sa.h static inline void sa_path_set_dlid(struct sa_path_rec *rec, u32 dlid) rec 602 include/rdma/ib_sa.h if (rec->rec_type == SA_PATH_REC_TYPE_IB) rec 603 include/rdma/ib_sa.h rec->ib.dlid = cpu_to_be16(dlid); rec 604 include/rdma/ib_sa.h else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) rec 605 include/rdma/ib_sa.h rec->opa.dlid = cpu_to_be32(dlid); rec 608 include/rdma/ib_sa.h static inline void sa_path_set_raw_traffic(struct sa_path_rec *rec, rec 611 include/rdma/ib_sa.h if (rec->rec_type == SA_PATH_REC_TYPE_IB) rec 612 include/rdma/ib_sa.h rec->ib.raw_traffic = raw_traffic; rec 613 include/rdma/ib_sa.h else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) rec 614 include/rdma/ib_sa.h rec->opa.raw_traffic = raw_traffic; rec 617 include/rdma/ib_sa.h static inline __be32 sa_path_get_slid(struct sa_path_rec *rec) rec 619 include/rdma/ib_sa.h if (rec->rec_type == SA_PATH_REC_TYPE_IB) rec 620 include/rdma/ib_sa.h return htonl(ntohs(rec->ib.slid)); rec 621 include/rdma/ib_sa.h else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) rec 622 include/rdma/ib_sa.h return rec->opa.slid; rec 626 include/rdma/ib_sa.h static inline __be32 sa_path_get_dlid(struct sa_path_rec *rec) rec 628 include/rdma/ib_sa.h if (rec->rec_type == SA_PATH_REC_TYPE_IB) rec 629 include/rdma/ib_sa.h return htonl(ntohs(rec->ib.dlid)); rec 630 include/rdma/ib_sa.h else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) rec 631 include/rdma/ib_sa.h return rec->opa.dlid; rec 635 include/rdma/ib_sa.h static inline u8 sa_path_get_raw_traffic(struct sa_path_rec *rec) rec 637 include/rdma/ib_sa.h if (rec->rec_type == SA_PATH_REC_TYPE_IB) rec 638 include/rdma/ib_sa.h return rec->ib.raw_traffic; rec 639 include/rdma/ib_sa.h else if (rec->rec_type == SA_PATH_REC_TYPE_OPA) rec 640 include/rdma/ib_sa.h return rec->opa.raw_traffic; rec 644 include/rdma/ib_sa.h static inline void sa_path_set_dmac(struct sa_path_rec *rec, u8 *dmac) rec 646 include/rdma/ib_sa.h if (sa_path_is_roce(rec)) rec 647 include/rdma/ib_sa.h memcpy(rec->roce.dmac, dmac, ETH_ALEN); rec 650 include/rdma/ib_sa.h static inline void sa_path_set_dmac_zero(struct sa_path_rec *rec) rec 652 include/rdma/ib_sa.h if (sa_path_is_roce(rec)) rec 653 include/rdma/ib_sa.h eth_zero_addr(rec->roce.dmac); rec 656 include/rdma/ib_sa.h static inline u8 *sa_path_get_dmac(struct sa_path_rec *rec) rec 658 include/rdma/ib_sa.h if (sa_path_is_roce(rec)) rec 659 include/rdma/ib_sa.h return rec->roce.dmac; rec 630 include/scsi/fc_encode.h struct fc_els_rec *rec; rec 633 include/scsi/fc_encode.h rec = fc_frame_payload_get(fp, sizeof(*rec)); rec 634 include/scsi/fc_encode.h memset(rec, 0, sizeof(*rec)); rec 635 include/scsi/fc_encode.h rec->rec_cmd = ELS_REC; rec 636 include/scsi/fc_encode.h hton24(rec->rec_s_id, lport->port_id); rec 637 include/scsi/fc_encode.h rec->rec_ox_id = htons(ep->oxid); rec 638 include/scsi/fc_encode.h rec->rec_rx_id = htons(ep->rxid); rec 28 include/sound/pcm-indirect.h struct snd_pcm_indirect *rec, size_t bytes); rec 35 include/sound/pcm-indirect.h struct snd_pcm_indirect *rec, rec 40 include/sound/pcm-indirect.h snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; rec 48 include/sound/pcm-indirect.h rec->sw_ready += (int)frames_to_bytes(runtime, diff); rec 49 include/sound/pcm-indirect.h rec->appl_ptr = appl_ptr; rec 51 include/sound/pcm-indirect.h qsize = rec->hw_queue_size ? rec->hw_queue_size : rec->hw_buffer_size; rec 52 include/sound/pcm-indirect.h while (rec->hw_ready < qsize && rec->sw_ready > 0) { rec 53 include/sound/pcm-indirect.h unsigned int hw_to_end = rec->hw_buffer_size - rec->hw_data; rec 54 include/sound/pcm-indirect.h unsigned int sw_to_end = rec->sw_buffer_size - rec->sw_data; rec 55 include/sound/pcm-indirect.h unsigned int bytes = qsize - rec->hw_ready; rec 56 include/sound/pcm-indirect.h if (rec->sw_ready < (int)bytes) rec 57 include/sound/pcm-indirect.h bytes = rec->sw_ready; rec 64 include/sound/pcm-indirect.h copy(substream, rec, bytes); rec 65 include/sound/pcm-indirect.h rec->hw_data += bytes; rec 66 include/sound/pcm-indirect.h if (rec->hw_data == rec->hw_buffer_size) rec 67 include/sound/pcm-indirect.h rec->hw_data = 0; rec 68 include/sound/pcm-indirect.h rec->sw_data += bytes; rec 69 include/sound/pcm-indirect.h if (rec->sw_data == rec->sw_buffer_size) rec 70 include/sound/pcm-indirect.h rec->sw_data = 0; rec 71 include/sound/pcm-indirect.h rec->hw_ready += bytes; rec 72 include/sound/pcm-indirect.h rec->sw_ready -= bytes; rec 83 include/sound/pcm-indirect.h struct snd_pcm_indirect *rec, unsigned int ptr) rec 85 include/sound/pcm-indirect.h int bytes = ptr - rec->hw_io; rec 87 include/sound/pcm-indirect.h bytes += rec->hw_buffer_size; rec 88 include/sound/pcm-indirect.h rec->hw_io = ptr; rec 89 include/sound/pcm-indirect.h rec->hw_ready -= bytes; rec 90 include/sound/pcm-indirect.h rec->sw_io += bytes; rec 91 include/sound/pcm-indirect.h if (rec->sw_io >= rec->sw_buffer_size) rec 92 include/sound/pcm-indirect.h rec->sw_io -= rec->sw_buffer_size; rec 95 include/sound/pcm-indirect.h return bytes_to_frames(substream->runtime, rec->sw_io); rec 104 include/sound/pcm-indirect.h struct snd_pcm_indirect *rec, rec 109 include/sound/pcm-indirect.h snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; rec 116 include/sound/pcm-indirect.h rec->sw_ready -= frames_to_bytes(runtime, diff); rec 117 include/sound/pcm-indirect.h rec->appl_ptr = appl_ptr; rec 119 include/sound/pcm-indirect.h while (rec->hw_ready > 0 && rec 120 include/sound/pcm-indirect.h rec->sw_ready < (int)rec->sw_buffer_size) { rec 121 include/sound/pcm-indirect.h size_t hw_to_end = rec->hw_buffer_size - rec->hw_data; rec 122 include/sound/pcm-indirect.h size_t sw_to_end = rec->sw_buffer_size - rec->sw_data; rec 123 include/sound/pcm-indirect.h size_t bytes = rec->sw_buffer_size - rec->sw_ready; rec 124 include/sound/pcm-indirect.h if (rec->hw_ready < (int)bytes) rec 125 include/sound/pcm-indirect.h bytes = rec->hw_ready; rec 132 include/sound/pcm-indirect.h copy(substream, rec, bytes); rec 133 include/sound/pcm-indirect.h rec->hw_data += bytes; rec 134 include/sound/pcm-indirect.h if ((int)rec->hw_data == rec->hw_buffer_size) rec 135 include/sound/pcm-indirect.h rec->hw_data = 0; rec 136 include/sound/pcm-indirect.h rec->sw_data += bytes; rec 137 include/sound/pcm-indirect.h if (rec->sw_data == rec->sw_buffer_size) rec 138 include/sound/pcm-indirect.h rec->sw_data = 0; rec 139 include/sound/pcm-indirect.h rec->hw_ready -= bytes; rec 140 include/sound/pcm-indirect.h rec->sw_ready += bytes; rec 151 include/sound/pcm-indirect.h struct snd_pcm_indirect *rec, unsigned int ptr) rec 154 include/sound/pcm-indirect.h int bytes = ptr - rec->hw_io; rec 156 include/sound/pcm-indirect.h bytes += rec->hw_buffer_size; rec 157 include/sound/pcm-indirect.h rec->hw_io = ptr; rec 158 include/sound/pcm-indirect.h rec->hw_ready += bytes; rec 159 include/sound/pcm-indirect.h qsize = rec->hw_queue_size ? rec->hw_queue_size : rec->hw_buffer_size; rec 160 include/sound/pcm-indirect.h if (rec->hw_ready > qsize) rec 162 include/sound/pcm-indirect.h rec->sw_io += bytes; rec 163 include/sound/pcm-indirect.h if (rec->sw_io >= rec->sw_buffer_size) rec 164 include/sound/pcm-indirect.h rec->sw_io -= rec->sw_buffer_size; rec 167 include/sound/pcm-indirect.h return bytes_to_frames(substream->runtime, rec->sw_io); rec 1555 include/trace/events/btrfs.h const struct btrfs_qgroup_extent_record *rec), rec 1557 include/trace/events/btrfs.h TP_ARGS(fs_info, rec), rec 1565 include/trace/events/btrfs.h __entry->bytenr = rec->bytenr, rec 1566 include/trace/events/btrfs.h __entry->num_bytes = rec->num_bytes; rec 1577 include/trace/events/btrfs.h const struct btrfs_qgroup_extent_record *rec), rec 1579 include/trace/events/btrfs.h TP_ARGS(fs_info, rec) rec 1585 include/trace/events/btrfs.h const struct btrfs_qgroup_extent_record *rec), rec 1587 include/trace/events/btrfs.h TP_ARGS(fs_info, rec) rec 7708 kernel/events/core.c } rec = { rec 7712 kernel/events/core.c .size = sizeof(rec), rec 7720 kernel/events/core.c perf_event_header__init_id(&rec.header, &sample, event); rec 7721 kernel/events/core.c ret = perf_output_begin(&handle, event, rec.header.size); rec 7726 kernel/events/core.c perf_output_put(&handle, rec); rec 8109 kernel/events/core.c } rec; rec 8119 kernel/events/core.c rec.header.type = PERF_RECORD_ITRACE_START; rec 8120 kernel/events/core.c rec.header.misc = 0; rec 8121 kernel/events/core.c rec.header.size = sizeof(rec); rec 8122 kernel/events/core.c rec.pid = perf_event_pid(event, current); rec 8123 kernel/events/core.c rec.tid = perf_event_tid(event, current); rec 8125 kernel/events/core.c perf_event_header__init_id(&rec.header, &sample, event); rec 8126 kernel/events/core.c ret = perf_output_begin(&handle, event, rec.header.size); rec 8131 kernel/events/core.c perf_output_put(&handle, rec); rec 432 kernel/trace/ftrace.c struct ftrace_profile *rec = v; rec 435 kernel/trace/ftrace.c pg = (struct ftrace_profile_page *)((unsigned long)rec & PAGE_MASK); rec 439 kernel/trace/ftrace.c rec++; rec 441 kernel/trace/ftrace.c if ((void *)rec >= (void *)&pg->records[pg->index]) { rec 445 kernel/trace/ftrace.c rec = &pg->records[0]; rec 446 kernel/trace/ftrace.c if (!rec->counter) rec 450 kernel/trace/ftrace.c return rec; rec 510 kernel/trace/ftrace.c struct ftrace_profile *rec = v; rec 521 kernel/trace/ftrace.c if (unlikely(rec->counter == 0)) { rec 527 kernel/trace/ftrace.c avg = div64_ul(rec->time, rec->counter); rec 532 kernel/trace/ftrace.c kallsyms_lookup(rec->ip, NULL, NULL, NULL, str); rec 533 kernel/trace/ftrace.c seq_printf(m, " %-30.30s %10lu", str, rec->counter); rec 539 kernel/trace/ftrace.c if (rec->counter <= 1) rec 546 kernel/trace/ftrace.c stddev = rec->counter * rec->time_squared - rec 547 kernel/trace/ftrace.c rec->time * rec->time; rec 554 kernel/trace/ftrace.c rec->counter * (rec->counter - 1) * 1000); rec 558 kernel/trace/ftrace.c trace_print_graph_duration(rec->time, &s); rec 696 kernel/trace/ftrace.c struct ftrace_profile *rec; rec 706 kernel/trace/ftrace.c hlist_for_each_entry_rcu_notrace(rec, hhd, node) { rec 707 kernel/trace/ftrace.c if (rec->ip == ip) rec 708 kernel/trace/ftrace.c return rec; rec 715 kernel/trace/ftrace.c struct ftrace_profile *rec) rec 719 kernel/trace/ftrace.c key = hash_long(rec->ip, FTRACE_PROFILE_HASH_BITS); rec 720 kernel/trace/ftrace.c hlist_add_head_rcu(&rec->node, &stat->hash[key]); rec 729 kernel/trace/ftrace.c struct ftrace_profile *rec = NULL; rec 739 kernel/trace/ftrace.c rec = ftrace_find_profiled_func(stat, ip); rec 740 kernel/trace/ftrace.c if (rec) rec 749 kernel/trace/ftrace.c rec = &stat->pages->records[stat->pages->index++]; rec 750 kernel/trace/ftrace.c rec->ip = ip; rec 751 kernel/trace/ftrace.c ftrace_add_profile(stat, rec); rec 756 kernel/trace/ftrace.c return rec; rec 764 kernel/trace/ftrace.c struct ftrace_profile *rec; rec 776 kernel/trace/ftrace.c rec = ftrace_find_profiled_func(stat, ip); rec 777 kernel/trace/ftrace.c if (!rec) { rec 778 kernel/trace/ftrace.c rec = ftrace_profile_alloc(stat, ip); rec 779 kernel/trace/ftrace.c if (!rec) rec 783 kernel/trace/ftrace.c rec->counter++; rec 818 kernel/trace/ftrace.c struct ftrace_profile *rec; rec 846 kernel/trace/ftrace.c rec = ftrace_find_profiled_func(stat, trace->func); rec 847 kernel/trace/ftrace.c if (rec) { rec 848 kernel/trace/ftrace.c rec->time += calltime; rec 849 kernel/trace/ftrace.c rec->time_squared += calltime * calltime; rec 1514 kernel/trace/ftrace.c #define do_for_each_ftrace_rec(pg, rec) \ rec 1518 kernel/trace/ftrace.c rec = &pg->records[_____i]; rec 1528 kernel/trace/ftrace.c const struct dyn_ftrace *rec = b; rec 1530 kernel/trace/ftrace.c if (key->flags < rec->ip) rec 1532 kernel/trace/ftrace.c if (key->ip >= rec->ip + MCOUNT_INSN_SIZE) rec 1552 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 1562 kernel/trace/ftrace.c rec = bsearch(&key, pg->records, pg->index, rec 1565 kernel/trace/ftrace.c if (rec) rec 1566 kernel/trace/ftrace.c return rec->ip; rec 1607 kernel/trace/ftrace.c static bool test_rec_ops_needs_regs(struct dyn_ftrace *rec) rec 1615 kernel/trace/ftrace.c if (ftrace_ops_test(ops, rec->ip, rec)) { rec 1627 kernel/trace/ftrace.c ftrace_find_tramp_ops_any(struct dyn_ftrace *rec); rec 1629 kernel/trace/ftrace.c ftrace_find_tramp_ops_next(struct dyn_ftrace *rec, struct ftrace_ops *ops); rec 1638 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 1675 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 1680 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_DISABLED) rec 1688 kernel/trace/ftrace.c if (!other_hash || !ftrace_lookup_ip(other_hash, rec->ip)) rec 1691 kernel/trace/ftrace.c in_hash = !!ftrace_lookup_ip(hash, rec->ip); rec 1692 kernel/trace/ftrace.c in_other_hash = !!ftrace_lookup_ip(other_hash, rec->ip); rec 1714 kernel/trace/ftrace.c rec->flags++; rec 1715 kernel/trace/ftrace.c if (FTRACE_WARN_ON(ftrace_rec_count(rec) == FTRACE_REF_MAX)) rec 1723 kernel/trace/ftrace.c if (ftrace_rec_count(rec) == 1 && ops->trampoline) rec 1724 kernel/trace/ftrace.c rec->flags |= FTRACE_FL_TRAMP; rec 1732 kernel/trace/ftrace.c rec->flags &= ~FTRACE_FL_TRAMP; rec 1739 kernel/trace/ftrace.c rec->flags |= FTRACE_FL_REGS; rec 1741 kernel/trace/ftrace.c if (FTRACE_WARN_ON(ftrace_rec_count(rec) == 0)) rec 1743 kernel/trace/ftrace.c rec->flags--; rec 1751 kernel/trace/ftrace.c if (ftrace_rec_count(rec) > 0 && rec 1752 kernel/trace/ftrace.c rec->flags & FTRACE_FL_REGS && rec 1754 kernel/trace/ftrace.c if (!test_rec_ops_needs_regs(rec)) rec 1755 kernel/trace/ftrace.c rec->flags &= ~FTRACE_FL_REGS; rec 1765 kernel/trace/ftrace.c if (ftrace_rec_count(rec) == 1 && rec 1766 kernel/trace/ftrace.c ftrace_find_tramp_ops_any(rec)) rec 1767 kernel/trace/ftrace.c rec->flags |= FTRACE_FL_TRAMP; rec 1769 kernel/trace/ftrace.c rec->flags &= ~FTRACE_FL_TRAMP; rec 1779 kernel/trace/ftrace.c update |= ftrace_test_record(rec, true) != FTRACE_UPDATE_IGNORE; rec 1850 kernel/trace/ftrace.c struct dyn_ftrace *rec, *end = NULL; rec 1868 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 1870 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_DISABLED) rec 1874 kernel/trace/ftrace.c in_old = !!ftrace_lookup_ip(old_hash, rec->ip); rec 1875 kernel/trace/ftrace.c in_new = !!ftrace_lookup_ip(new_hash, rec->ip); rec 1881 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_IPMODIFY) rec 1883 kernel/trace/ftrace.c rec->flags |= FTRACE_FL_IPMODIFY; rec 1885 kernel/trace/ftrace.c rec->flags &= ~FTRACE_FL_IPMODIFY; rec 1891 kernel/trace/ftrace.c end = rec; rec 1894 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 1896 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_DISABLED) rec 1899 kernel/trace/ftrace.c if (rec == end) rec 1902 kernel/trace/ftrace.c in_old = !!ftrace_lookup_ip(old_hash, rec->ip); rec 1903 kernel/trace/ftrace.c in_new = !!ftrace_lookup_ip(new_hash, rec->ip); rec 1908 kernel/trace/ftrace.c rec->flags &= ~FTRACE_FL_IPMODIFY; rec 1910 kernel/trace/ftrace.c rec->flags |= FTRACE_FL_IPMODIFY; rec 1997 kernel/trace/ftrace.c void ftrace_bug(int failed, struct dyn_ftrace *rec) rec 1999 kernel/trace/ftrace.c unsigned long ip = rec ? rec->ip : 0; rec 2029 kernel/trace/ftrace.c if (rec) { rec 2032 kernel/trace/ftrace.c pr_info("ftrace record flags: %lx\n", rec->flags); rec 2033 kernel/trace/ftrace.c pr_cont(" (%ld)%s", ftrace_rec_count(rec), rec 2034 kernel/trace/ftrace.c rec->flags & FTRACE_FL_REGS ? " R" : " "); rec 2035 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_TRAMP_EN) { rec 2036 kernel/trace/ftrace.c ops = ftrace_find_tramp_ops_any(rec); rec 2042 kernel/trace/ftrace.c ops = ftrace_find_tramp_ops_next(rec, ops); rec 2048 kernel/trace/ftrace.c ip = ftrace_get_addr_curr(rec); rec 2053 kernel/trace/ftrace.c static int ftrace_check_record(struct dyn_ftrace *rec, bool enable, bool update) rec 2059 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_DISABLED) rec 2073 kernel/trace/ftrace.c if (enable && ftrace_rec_count(rec)) rec 2082 kernel/trace/ftrace.c if (!(rec->flags & FTRACE_FL_REGS) != rec 2083 kernel/trace/ftrace.c !(rec->flags & FTRACE_FL_REGS_EN)) rec 2086 kernel/trace/ftrace.c if (!(rec->flags & FTRACE_FL_TRAMP) != rec 2087 kernel/trace/ftrace.c !(rec->flags & FTRACE_FL_TRAMP_EN)) rec 2092 kernel/trace/ftrace.c if ((rec->flags & FTRACE_FL_ENABLED) == flag) rec 2097 kernel/trace/ftrace.c flag ^= rec->flags & FTRACE_FL_ENABLED; rec 2100 kernel/trace/ftrace.c rec->flags |= FTRACE_FL_ENABLED; rec 2102 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_REGS) rec 2103 kernel/trace/ftrace.c rec->flags |= FTRACE_FL_REGS_EN; rec 2105 kernel/trace/ftrace.c rec->flags &= ~FTRACE_FL_REGS_EN; rec 2108 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_TRAMP) rec 2109 kernel/trace/ftrace.c rec->flags |= FTRACE_FL_TRAMP_EN; rec 2111 kernel/trace/ftrace.c rec->flags &= ~FTRACE_FL_TRAMP_EN; rec 2134 kernel/trace/ftrace.c if (!ftrace_rec_count(rec)) rec 2135 kernel/trace/ftrace.c rec->flags = 0; rec 2141 kernel/trace/ftrace.c rec->flags &= ~(FTRACE_FL_ENABLED | FTRACE_FL_TRAMP_EN | rec 2157 kernel/trace/ftrace.c int ftrace_update_record(struct dyn_ftrace *rec, bool enable) rec 2159 kernel/trace/ftrace.c return ftrace_check_record(rec, enable, true); rec 2171 kernel/trace/ftrace.c int ftrace_test_record(struct dyn_ftrace *rec, bool enable) rec 2173 kernel/trace/ftrace.c return ftrace_check_record(rec, enable, false); rec 2177 kernel/trace/ftrace.c ftrace_find_tramp_ops_any(struct dyn_ftrace *rec) rec 2180 kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 2195 kernel/trace/ftrace.c ftrace_find_tramp_ops_next(struct dyn_ftrace *rec, rec 2198 kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 2213 kernel/trace/ftrace.c ftrace_find_tramp_ops_curr(struct dyn_ftrace *rec) rec 2216 kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 2283 kernel/trace/ftrace.c ftrace_find_tramp_ops_new(struct dyn_ftrace *rec) rec 2286 kernel/trace/ftrace.c unsigned long ip = rec->ip; rec 2307 kernel/trace/ftrace.c unsigned long ftrace_get_addr_new(struct dyn_ftrace *rec) rec 2312 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_TRAMP) { rec 2313 kernel/trace/ftrace.c ops = ftrace_find_tramp_ops_new(rec); rec 2316 kernel/trace/ftrace.c (void *)rec->ip, (void *)rec->ip, rec->flags); rec 2323 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_REGS) rec 2339 kernel/trace/ftrace.c unsigned long ftrace_get_addr_curr(struct dyn_ftrace *rec) rec 2344 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_TRAMP_EN) { rec 2345 kernel/trace/ftrace.c ops = ftrace_find_tramp_ops_curr(rec); rec 2348 kernel/trace/ftrace.c (void *)rec->ip, (void *)rec->ip); rec 2355 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_REGS_EN) rec 2362 kernel/trace/ftrace.c __ftrace_replace_code(struct dyn_ftrace *rec, bool enable) rec 2368 kernel/trace/ftrace.c ftrace_addr = ftrace_get_addr_new(rec); rec 2371 kernel/trace/ftrace.c ftrace_old_addr = ftrace_get_addr_curr(rec); rec 2373 kernel/trace/ftrace.c ret = ftrace_update_record(rec, enable); rec 2383 kernel/trace/ftrace.c return ftrace_make_call(rec, ftrace_addr); rec 2387 kernel/trace/ftrace.c return ftrace_make_nop(NULL, rec, ftrace_old_addr); rec 2391 kernel/trace/ftrace.c return ftrace_modify_call(rec, ftrace_old_addr, ftrace_addr); rec 2399 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 2408 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 2410 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_DISABLED) rec 2413 kernel/trace/ftrace.c failed = __ftrace_replace_code(rec, enable); rec 2415 kernel/trace/ftrace.c ftrace_bug(failed, rec); rec 2497 kernel/trace/ftrace.c ftrace_code_disable(struct module *mod, struct dyn_ftrace *rec) rec 2504 kernel/trace/ftrace.c ret = ftrace_make_nop(mod, rec, MCOUNT_ADDR); rec 2507 kernel/trace/ftrace.c ftrace_bug(ret, rec); rec 2779 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 2781 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 2782 kernel/trace/ftrace.c if (FTRACE_WARN_ON_ONCE(rec->flags & ~FTRACE_FL_DISABLED)) rec 2784 kernel/trace/ftrace.c (void *)rec->ip, rec->flags); rec 2883 kernel/trace/ftrace.c ops_references_rec(struct ftrace_ops *ops, struct dyn_ftrace *rec) rec 2895 kernel/trace/ftrace.c !__ftrace_lookup_ip(ops->func_hash->filter_hash, rec->ip)) rec 2899 kernel/trace/ftrace.c if (ftrace_lookup_ip(ops->func_hash->notrace_hash, rec->ip)) rec 3279 kernel/trace/ftrace.c struct dyn_ftrace *rec = NULL; rec 3291 kernel/trace/ftrace.c rec = &iter->pg->records[iter->idx++]; rec 3293 kernel/trace/ftrace.c !ftrace_lookup_ip(iter->hash, rec->ip)) || rec 3296 kernel/trace/ftrace.c !(rec->flags & FTRACE_FL_ENABLED))) { rec 3298 kernel/trace/ftrace.c rec = NULL; rec 3303 kernel/trace/ftrace.c if (!rec) rec 3307 kernel/trace/ftrace.c iter->func = rec; rec 3410 kernel/trace/ftrace.c arch_ftrace_trampoline_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) rec 3416 kernel/trace/ftrace.c struct dyn_ftrace *rec) rec 3420 kernel/trace/ftrace.c ptr = arch_ftrace_trampoline_func(ops, rec); rec 3428 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 3444 kernel/trace/ftrace.c rec = iter->func; rec 3446 kernel/trace/ftrace.c if (!rec) rec 3449 kernel/trace/ftrace.c seq_printf(m, "%ps", (void *)rec->ip); rec 3454 kernel/trace/ftrace.c ftrace_rec_count(rec), rec 3455 kernel/trace/ftrace.c rec->flags & FTRACE_FL_REGS ? " R" : " ", rec 3456 kernel/trace/ftrace.c rec->flags & FTRACE_FL_IPMODIFY ? " I" : " "); rec 3457 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_TRAMP_EN) { rec 3458 kernel/trace/ftrace.c ops = ftrace_find_tramp_ops_any(rec); rec 3464 kernel/trace/ftrace.c add_trampoline_func(m, ops, rec); rec 3465 kernel/trace/ftrace.c ops = ftrace_find_tramp_ops_next(rec, ops); rec 3470 kernel/trace/ftrace.c add_trampoline_func(m, NULL, rec); rec 3712 kernel/trace/ftrace.c enter_record(struct ftrace_hash *hash, struct dyn_ftrace *rec, int clear_filter) rec 3717 kernel/trace/ftrace.c entry = ftrace_lookup_ip(hash, rec->ip); rec 3729 kernel/trace/ftrace.c ret = add_hash_entry(hash, rec->ip); rec 3740 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 3746 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 3752 kernel/trace/ftrace.c rec = &pg->records[index]; rec 3753 kernel/trace/ftrace.c enter_record(hash, rec, clear_filter); rec 3760 kernel/trace/ftrace.c ftrace_match_record(struct dyn_ftrace *rec, struct ftrace_glob *func_g, rec 3766 kernel/trace/ftrace.c kallsyms_lookup(rec->ip, NULL, NULL, &modname, str); rec 3801 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 3832 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 3834 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_DISABLED) rec 3837 kernel/trace/ftrace.c if (ftrace_match_record(rec, &func_g, mod_match, exclude_mod)) { rec 3838 kernel/trace/ftrace.c ret = enter_record(hash, rec, clear_filter); rec 5405 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 5424 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 5426 kernel/trace/ftrace.c if (rec->flags & FTRACE_FL_DISABLED) rec 5429 kernel/trace/ftrace.c if (ftrace_match_record(rec, &func_g, NULL, 0)) { rec 5430 kernel/trace/ftrace.c entry = ftrace_lookup_ip(hash, rec->ip); rec 5437 kernel/trace/ftrace.c if (add_hash_entry(hash, rec->ip) < 0) rec 5580 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 5643 kernel/trace/ftrace.c rec = &pg->records[pg->index++]; rec 5644 kernel/trace/ftrace.c rec->ip = addr; rec 5696 kernel/trace/ftrace.c static int referenced_filters(struct dyn_ftrace *rec) rec 5702 kernel/trace/ftrace.c if (ops_references_rec(ops, rec)) rec 5713 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 5720 kernel/trace/ftrace.c rec = &pg->records[i]; rec 5721 kernel/trace/ftrace.c entry = __ftrace_lookup_ip(hash, rec->ip); rec 5769 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 5794 kernel/trace/ftrace.c rec = &pg->records[0]; rec 5795 kernel/trace/ftrace.c if (within_module_core(rec->ip, mod) || rec 5796 kernel/trace/ftrace.c within_module_init(rec->ip, mod)) { rec 5833 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 5857 kernel/trace/ftrace.c do_for_each_ftrace_rec(pg, rec) { rec 5865 kernel/trace/ftrace.c if (!within_module_core(rec->ip, mod) && rec 5866 kernel/trace/ftrace.c !within_module_init(rec->ip, mod)) rec 5878 kernel/trace/ftrace.c cnt += referenced_filters(rec); rec 5881 kernel/trace/ftrace.c rec->flags = cnt; rec 5884 kernel/trace/ftrace.c int failed = __ftrace_replace_code(rec, 1); rec 5886 kernel/trace/ftrace.c ftrace_bug(failed, rec); rec 5913 kernel/trace/ftrace.c struct dyn_ftrace *rec) rec 5922 kernel/trace/ftrace.c ret = kallsyms_lookup(rec->ip, &symsize, &offset, &modname, str); rec 5936 kernel/trace/ftrace.c mod_func->ip = rec->ip - offset; rec 6056 kernel/trace/ftrace.c struct dyn_ftrace *rec) { } rec 6104 kernel/trace/ftrace.c struct dyn_ftrace *rec) rec 6114 kernel/trace/ftrace.c func->ip = rec->ip; rec 6124 kernel/trace/ftrace.c struct dyn_ftrace *rec; rec 6151 kernel/trace/ftrace.c rec = bsearch(&key, pg->records, pg->index, rec 6154 kernel/trace/ftrace.c if (!rec) rec 6158 kernel/trace/ftrace.c add_to_clear_hash_list(&clear_hash, rec); rec 6161 kernel/trace/ftrace.c save_ftrace_mod_rec(mod_map, rec); rec 6175 kernel/trace/ftrace.c memmove(rec, rec + 1, rec 6176 kernel/trace/ftrace.c (pg->index - (rec - pg->records)) * sizeof(*rec)); rec 325 kernel/trace/trace.c int call_filter_check_discard(struct trace_event_call *call, void *rec, rec 330 kernel/trace/trace.c !filter_match_preds(call->filter, rec)) { rec 1370 kernel/trace/trace.h extern int call_filter_check_discard(struct trace_event_call *call, void *rec, rec 1724 kernel/trace/trace.h void *rec, rec 896 kernel/trace/trace_events_filter.c int filter_match_preds(struct event_filter *filter, void *rec) rec 912 kernel/trace/trace_events_filter.c int match = pred->fn(pred, rec); rec 2107 kernel/trace/trace_events_filter.c .rec = { .a = va, .b = vb, .c = vc, .d = vd, \ rec 2117 kernel/trace/trace_events_filter.c struct trace_event_raw_ftrace_test_filter rec; rec 2245 kernel/trace/trace_events_filter.c err = filter_match_preds(filter, &d->rec); rec 442 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 1304 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 3463 kernel/trace/trace_events_hist.c void *rec, rec 3477 kernel/trace/trace_events_hist.c var_val = val->fn(val, elt, rbe, rec); rec 3494 kernel/trace/trace_events_hist.c void *rec) rec 3496 kernel/trace/trace_events_hist.c __update_field_vars(elt, rbe, rec, hist_data->field_vars, rec 3501 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 3505 kernel/trace/trace_events_hist.c __update_field_vars(elt, rbe, rec, hist_data->save_vars, rec 3681 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 3686 kernel/trace/trace_events_hist.c data->track_data.save_data(hist_data, elt, rec, rbe, key, data, var_ref_vals); rec 3737 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 3806 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 3848 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 3856 kernel/trace/trace_events_hist.c save_track_data(hist_data, elt, rec, rbe, key, data, var_ref_vals); rec 5277 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 5291 kernel/trace/trace_events_hist.c hist_val = hist_field->fn(hist_field, elt, rbe, rec); rec 5303 kernel/trace/trace_events_hist.c hist_val = hist_field->fn(hist_field, elt, rbe, rec); rec 5309 kernel/trace/trace_events_hist.c update_field_vars(hist_data, elt, rbe, rec); rec 5313 kernel/trace/trace_events_hist.c struct hist_field *key_field, void *rec) rec 5322 kernel/trace/trace_events_hist.c size = *(u32 *)(rec + field->offset) >> 16; rec 5339 kernel/trace/trace_events_hist.c struct tracing_map_elt *elt, void *rec, rec 5348 kernel/trace/trace_events_hist.c data->fn(hist_data, elt, rec, rbe, key, data, var_ref_vals); rec 5352 kernel/trace/trace_events_hist.c static void event_hist_trigger(struct event_trigger_data *data, void *rec, rec 5377 kernel/trace/trace_events_hist.c field_contents = key_field->fn(key_field, elt, rbe, rec); rec 5386 kernel/trace/trace_events_hist.c add_to_key(compound_key, key, key_field, rec); rec 5400 kernel/trace/trace_events_hist.c hist_trigger_elt_update(hist_data, elt, rec, rbe, var_ref_vals); rec 5403 kernel/trace/trace_events_hist.c hist_trigger_actions(hist_data, elt, rec, rbe, key, var_ref_vals); rec 6400 kernel/trace/trace_events_hist.c hist_enable_trigger(struct event_trigger_data *data, void *rec, rec 6418 kernel/trace/trace_events_hist.c hist_enable_count_trigger(struct event_trigger_data *data, void *rec, rec 6427 kernel/trace/trace_events_hist.c hist_enable_trigger(data, rec, event); rec 56 kernel/trace/trace_events_trigger.c event_triggers_call(struct trace_event_file *file, void *rec, rec 69 kernel/trace/trace_events_trigger.c if (!rec) { rec 70 kernel/trace/trace_events_trigger.c data->ops->func(data, rec, event); rec 74 kernel/trace/trace_events_trigger.c if (filter && !filter_match_preds(filter, rec)) rec 80 kernel/trace/trace_events_trigger.c data->ops->func(data, rec, event); rec 928 kernel/trace/trace_events_trigger.c traceon_trigger(struct event_trigger_data *data, void *rec, rec 938 kernel/trace/trace_events_trigger.c traceon_count_trigger(struct event_trigger_data *data, void *rec, rec 954 kernel/trace/trace_events_trigger.c traceoff_trigger(struct event_trigger_data *data, void *rec, rec 964 kernel/trace/trace_events_trigger.c traceoff_count_trigger(struct event_trigger_data *data, void *rec, rec 1062 kernel/trace/trace_events_trigger.c snapshot_trigger(struct event_trigger_data *data, void *rec, rec 1074 kernel/trace/trace_events_trigger.c snapshot_count_trigger(struct event_trigger_data *data, void *rec, rec 1083 kernel/trace/trace_events_trigger.c snapshot_trigger(data, rec, event); rec 1167 kernel/trace/trace_events_trigger.c stacktrace_trigger(struct event_trigger_data *data, void *rec, rec 1174 kernel/trace/trace_events_trigger.c stacktrace_count_trigger(struct event_trigger_data *data, void *rec, rec 1183 kernel/trace/trace_events_trigger.c stacktrace_trigger(data, rec, event); rec 1245 kernel/trace/trace_events_trigger.c event_enable_trigger(struct event_trigger_data *data, void *rec, rec 1257 kernel/trace/trace_events_trigger.c event_enable_count_trigger(struct event_trigger_data *data, void *rec, rec 1272 kernel/trace/trace_events_trigger.c event_enable_trigger(data, rec, event); rec 567 kernel/trace/trace_syscalls.c struct syscall_trace_enter *rec) rec 577 kernel/trace/trace_syscalls.c param.syscall_nr = rec->nr; rec 579 kernel/trace/trace_syscalls.c param.args[i] = rec->args[i]; rec 586 kernel/trace/trace_syscalls.c struct syscall_trace_enter *rec; rec 610 kernel/trace/trace_syscalls.c size = sizeof(unsigned long) * sys_data->nb_args + sizeof(*rec); rec 614 kernel/trace/trace_syscalls.c rec = perf_trace_buf_alloc(size, NULL, &rctx); rec 615 kernel/trace/trace_syscalls.c if (!rec) rec 618 kernel/trace/trace_syscalls.c rec->nr = syscall_nr; rec 620 kernel/trace/trace_syscalls.c memcpy(&rec->args, args, sizeof(unsigned long) * sys_data->nb_args); rec 623 kernel/trace/trace_syscalls.c !perf_call_bpf_enter(sys_data->enter_event, regs, sys_data, rec)) || rec 629 kernel/trace/trace_syscalls.c perf_trace_buf_submit(rec, size, rctx, rec 669 kernel/trace/trace_syscalls.c struct syscall_trace_exit *rec) rec 678 kernel/trace/trace_syscalls.c param.syscall_nr = rec->nr; rec 679 kernel/trace/trace_syscalls.c param.ret = rec->ret; rec 686 kernel/trace/trace_syscalls.c struct syscall_trace_exit *rec; rec 709 kernel/trace/trace_syscalls.c size = ALIGN(sizeof(*rec) + sizeof(u32), sizeof(u64)); rec 712 kernel/trace/trace_syscalls.c rec = perf_trace_buf_alloc(size, NULL, &rctx); rec 713 kernel/trace/trace_syscalls.c if (!rec) rec 716 kernel/trace/trace_syscalls.c rec->nr = syscall_nr; rec 717 kernel/trace/trace_syscalls.c rec->ret = syscall_get_return_value(current, regs); rec 720 kernel/trace/trace_syscalls.c !perf_call_bpf_exit(sys_data->exit_event, regs, rec)) || rec 726 kernel/trace/trace_syscalls.c perf_trace_buf_submit(rec, size, rctx, sys_data->exit_event->event.type, rec 271 net/tls/tls_sw.c struct tls_rec *rec = ctx->open_rec; rec 273 net/tls/tls_sw.c sk_msg_trim(sk, &rec->msg_plaintext, target_size); rec 276 net/tls/tls_sw.c sk_msg_trim(sk, &rec->msg_encrypted, target_size); rec 283 net/tls/tls_sw.c struct tls_rec *rec = ctx->open_rec; rec 284 net/tls/tls_sw.c struct sk_msg *msg_en = &rec->msg_encrypted; rec 294 net/tls/tls_sw.c struct tls_rec *rec = ctx->open_rec; rec 295 net/tls/tls_sw.c struct sk_msg *msg_pl = &rec->msg_plaintext; rec 296 net/tls/tls_sw.c struct sk_msg *msg_en = &rec->msg_encrypted; rec 319 net/tls/tls_sw.c struct tls_rec *rec; rec 324 net/tls/tls_sw.c rec = kzalloc(mem_size, sk->sk_allocation); rec 325 net/tls/tls_sw.c if (!rec) rec 328 net/tls/tls_sw.c msg_pl = &rec->msg_plaintext; rec 329 net/tls/tls_sw.c msg_en = &rec->msg_encrypted; rec 334 net/tls/tls_sw.c sg_init_table(rec->sg_aead_in, 2); rec 335 net/tls/tls_sw.c sg_set_buf(&rec->sg_aead_in[0], rec->aad_space, prot->aad_size); rec 336 net/tls/tls_sw.c sg_unmark_end(&rec->sg_aead_in[1]); rec 338 net/tls/tls_sw.c sg_init_table(rec->sg_aead_out, 2); rec 339 net/tls/tls_sw.c sg_set_buf(&rec->sg_aead_out[0], rec->aad_space, prot->aad_size); rec 340 net/tls/tls_sw.c sg_unmark_end(&rec->sg_aead_out[1]); rec 342 net/tls/tls_sw.c return rec; rec 345 net/tls/tls_sw.c static void tls_free_rec(struct sock *sk, struct tls_rec *rec) rec 347 net/tls/tls_sw.c sk_msg_free(sk, &rec->msg_encrypted); rec 348 net/tls/tls_sw.c sk_msg_free(sk, &rec->msg_plaintext); rec 349 net/tls/tls_sw.c kfree(rec); rec 356 net/tls/tls_sw.c struct tls_rec *rec = ctx->open_rec; rec 358 net/tls/tls_sw.c if (rec) { rec 359 net/tls/tls_sw.c tls_free_rec(sk, rec); rec 368 net/tls/tls_sw.c struct tls_rec *rec, *tmp; rec 373 net/tls/tls_sw.c rec = list_first_entry(&ctx->tx_list, rec 377 net/tls/tls_sw.c tx_flags = rec->tx_flags; rec 388 net/tls/tls_sw.c list_del(&rec->list); rec 389 net/tls/tls_sw.c sk_msg_free(sk, &rec->msg_plaintext); rec 390 net/tls/tls_sw.c kfree(rec); rec 394 net/tls/tls_sw.c list_for_each_entry_safe(rec, tmp, &ctx->tx_list, list) { rec 395 net/tls/tls_sw.c if (READ_ONCE(rec->tx_ready)) { rec 397 net/tls/tls_sw.c tx_flags = rec->tx_flags; rec 401 net/tls/tls_sw.c msg_en = &rec->msg_encrypted; rec 408 net/tls/tls_sw.c list_del(&rec->list); rec 409 net/tls/tls_sw.c sk_msg_free(sk, &rec->msg_plaintext); rec 410 net/tls/tls_sw.c kfree(rec); rec 432 net/tls/tls_sw.c struct tls_rec *rec; rec 436 net/tls/tls_sw.c rec = container_of(aead_req, struct tls_rec, aead_req); rec 437 net/tls/tls_sw.c msg_en = &rec->msg_encrypted; rec 445 net/tls/tls_sw.c rec = NULL; rec 456 net/tls/tls_sw.c if (rec) { rec 460 net/tls/tls_sw.c smp_store_mb(rec->tx_ready, true); rec 465 net/tls/tls_sw.c if (rec == first_rec) rec 491 net/tls/tls_sw.c struct tls_rec *rec = ctx->open_rec; rec 492 net/tls/tls_sw.c struct sk_msg *msg_en = &rec->msg_encrypted; rec 498 net/tls/tls_sw.c rec->iv_data[0] = TLS_AES_CCM_IV_B0_BYTE; rec 502 net/tls/tls_sw.c memcpy(&rec->iv_data[iv_offset], tls_ctx->tx.iv, rec 505 net/tls/tls_sw.c xor_iv_with_seq(prot->version, rec->iv_data, tls_ctx->tx.rec_seq); rec 514 net/tls/tls_sw.c aead_request_set_crypt(aead_req, rec->sg_aead_in, rec 515 net/tls/tls_sw.c rec->sg_aead_out, rec 516 net/tls/tls_sw.c data_len, rec->iv_data); rec 522 net/tls/tls_sw.c list_add_tail((struct list_head *)&rec->list, &ctx->tx_list); rec 533 net/tls/tls_sw.c WRITE_ONCE(rec->tx_ready, true); rec 535 net/tls/tls_sw.c list_del(&rec->list); rec 669 net/tls/tls_sw.c struct tls_rec *rec = ctx->open_rec, *tmp = NULL; rec 676 net/tls/tls_sw.c if (!rec) rec 679 net/tls/tls_sw.c msg_pl = &rec->msg_plaintext; rec 680 net/tls/tls_sw.c msg_en = &rec->msg_encrypted; rec 694 net/tls/tls_sw.c rc = tls_split_open_record(sk, rec, &tmp, msg_pl, msg_en, rec 705 net/tls/tls_sw.c tls_merge_open_record(sk, rec, tmp, orig_end); rec 706 net/tls/tls_sw.c msg_pl = &rec->msg_plaintext; rec 707 net/tls/tls_sw.c msg_en = &rec->msg_encrypted; rec 714 net/tls/tls_sw.c rec->tx_flags = flags; rec 715 net/tls/tls_sw.c req = &rec->aead_req; rec 720 net/tls/tls_sw.c rec->content_type = record_type; rec 723 net/tls/tls_sw.c sg_set_buf(&rec->sg_content_type, &rec->content_type, 1); rec 724 net/tls/tls_sw.c sg_mark_end(&rec->sg_content_type); rec 726 net/tls/tls_sw.c &rec->sg_content_type); rec 738 net/tls/tls_sw.c sg_chain(rec->sg_aead_in, 2, &msg_pl->sg.data[i]); rec 745 net/tls/tls_sw.c sg_chain(rec->sg_aead_out, 2, &msg_en->sg.data[i]); rec 747 net/tls/tls_sw.c tls_make_aad(rec->aad_space, msg_pl->sg.size + prot->tail_size, rec 766 net/tls/tls_sw.c tls_merge_open_record(sk, rec, tmp, orig_end); rec 791 net/tls/tls_sw.c struct tls_rec *rec; rec 871 net/tls/tls_sw.c rec = ctx->open_rec; rec 872 net/tls/tls_sw.c if (rec) { rec 873 net/tls/tls_sw.c msg = &rec->msg_plaintext; rec 884 net/tls/tls_sw.c if (rec) rec 896 net/tls/tls_sw.c struct tls_rec *rec = ctx->open_rec; rec 900 net/tls/tls_sw.c if (!rec) rec 903 net/tls/tls_sw.c msg_pl = &rec->msg_plaintext; rec 925 net/tls/tls_sw.c struct tls_rec *rec; rec 958 net/tls/tls_sw.c rec = ctx->open_rec; rec 960 net/tls/tls_sw.c rec = ctx->open_rec = tls_get_rec(sk); rec 961 net/tls/tls_sw.c if (!rec) { rec 966 net/tls/tls_sw.c msg_pl = &rec->msg_plaintext; rec 967 net/tls/tls_sw.c msg_en = &rec->msg_encrypted; rec 1144 net/tls/tls_sw.c struct tls_rec *rec; rec 1165 net/tls/tls_sw.c rec = ctx->open_rec; rec 1167 net/tls/tls_sw.c rec = ctx->open_rec = tls_get_rec(sk); rec 1168 net/tls/tls_sw.c if (!rec) { rec 1173 net/tls/tls_sw.c msg_pl = &rec->msg_plaintext; rec 2123 net/tls/tls_sw.c struct tls_rec *rec, *tmp; rec 2137 net/tls/tls_sw.c rec = list_first_entry(&ctx->tx_list, rec 2139 net/tls/tls_sw.c list_del(&rec->list); rec 2140 net/tls/tls_sw.c sk_msg_free(sk, &rec->msg_plaintext); rec 2141 net/tls/tls_sw.c kfree(rec); rec 2144 net/tls/tls_sw.c list_for_each_entry_safe(rec, tmp, &ctx->tx_list, list) { rec 2145 net/tls/tls_sw.c list_del(&rec->list); rec 2146 net/tls/tls_sw.c sk_msg_free(sk, &rec->msg_encrypted); rec 2147 net/tls/tls_sw.c sk_msg_free(sk, &rec->msg_plaintext); rec 2148 net/tls/tls_sw.c kfree(rec); rec 163 samples/bpf/xdp_monitor_kern.c struct datarec *rec; rec 168 samples/bpf/xdp_monitor_kern.c rec = bpf_map_lookup_elem(&cpumap_enqueue_cnt, &to_cpu); rec 169 samples/bpf/xdp_monitor_kern.c if (!rec) rec 171 samples/bpf/xdp_monitor_kern.c rec->processed += ctx->processed; rec 172 samples/bpf/xdp_monitor_kern.c rec->dropped += ctx->drops; rec 176 samples/bpf/xdp_monitor_kern.c rec->info += 1; rec 197 samples/bpf/xdp_monitor_kern.c struct datarec *rec; rec 200 samples/bpf/xdp_monitor_kern.c rec = bpf_map_lookup_elem(&cpumap_kthread_cnt, &key); rec 201 samples/bpf/xdp_monitor_kern.c if (!rec) rec 203 samples/bpf/xdp_monitor_kern.c rec->processed += ctx->processed; rec 204 samples/bpf/xdp_monitor_kern.c rec->dropped += ctx->drops; rec 208 samples/bpf/xdp_monitor_kern.c rec->info++; rec 238 samples/bpf/xdp_monitor_kern.c struct datarec *rec; rec 241 samples/bpf/xdp_monitor_kern.c rec = bpf_map_lookup_elem(&devmap_xmit_cnt, &key); rec 242 samples/bpf/xdp_monitor_kern.c if (!rec) rec 244 samples/bpf/xdp_monitor_kern.c rec->processed += ctx->sent; rec 245 samples/bpf/xdp_monitor_kern.c rec->dropped += ctx->drops; rec 248 samples/bpf/xdp_monitor_kern.c rec->info += 1; rec 252 samples/bpf/xdp_monitor_kern.c rec->err++; rec 256 samples/bpf/xdp_monitor_kern.c rec->err++; rec 148 samples/bpf/xdp_monitor_user.c static bool map_collect_record(int fd, __u32 key, struct record *rec) rec 165 samples/bpf/xdp_monitor_user.c rec->timestamp = gettime(); rec 169 samples/bpf/xdp_monitor_user.c rec->cpu[i].processed = values[i].processed; rec 171 samples/bpf/xdp_monitor_user.c rec->cpu[i].dropped = values[i].dropped; rec 173 samples/bpf/xdp_monitor_user.c rec->cpu[i].info = values[i].info; rec 175 samples/bpf/xdp_monitor_user.c rec->cpu[i].err = values[i].err; rec 178 samples/bpf/xdp_monitor_user.c rec->total.processed = sum_processed; rec 179 samples/bpf/xdp_monitor_user.c rec->total.dropped = sum_dropped; rec 180 samples/bpf/xdp_monitor_user.c rec->total.info = sum_info; rec 181 samples/bpf/xdp_monitor_user.c rec->total.err = sum_err; rec 185 samples/bpf/xdp_monitor_user.c static bool map_collect_record_u64(int fd, __u32 key, struct record_u64 *rec) rec 199 samples/bpf/xdp_monitor_user.c rec->timestamp = gettime(); rec 203 samples/bpf/xdp_monitor_user.c rec->cpu[i].processed = values[i].processed; rec 206 samples/bpf/xdp_monitor_user.c rec->total.processed = sum_total; rec 311 samples/bpf/xdp_monitor_user.c struct record_u64 *rec, *prev; rec 315 samples/bpf/xdp_monitor_user.c rec = &stats_rec->xdp_redirect[rec_i]; rec 317 samples/bpf/xdp_monitor_user.c t = calc_period_u64(rec, prev); rec 320 samples/bpf/xdp_monitor_user.c struct u64rec *r = &rec->cpu[i]; rec 329 samples/bpf/xdp_monitor_user.c pps = calc_pps_u64(&rec->total, &prev->total, t); rec 336 samples/bpf/xdp_monitor_user.c struct record_u64 *rec, *prev; rec 340 samples/bpf/xdp_monitor_user.c rec = &stats_rec->xdp_exception[rec_i]; rec 342 samples/bpf/xdp_monitor_user.c t = calc_period_u64(rec, prev); rec 345 samples/bpf/xdp_monitor_user.c struct u64rec *r = &rec->cpu[i]; rec 353 samples/bpf/xdp_monitor_user.c pps = calc_pps_u64(&rec->total, &prev->total, t); rec 363 samples/bpf/xdp_monitor_user.c struct record *rec, *prev; rec 367 samples/bpf/xdp_monitor_user.c rec = &stats_rec->xdp_cpumap_enqueue[to_cpu]; rec 369 samples/bpf/xdp_monitor_user.c t = calc_period(rec, prev); rec 371 samples/bpf/xdp_monitor_user.c struct datarec *r = &rec->cpu[i]; rec 385 samples/bpf/xdp_monitor_user.c pps = calc_pps(&rec->total, &prev->total, t); rec 387 samples/bpf/xdp_monitor_user.c drop = calc_drop(&rec->total, &prev->total, t); rec 388 samples/bpf/xdp_monitor_user.c info = calc_info(&rec->total, &prev->total, t); rec 402 samples/bpf/xdp_monitor_user.c struct record *rec, *prev; rec 406 samples/bpf/xdp_monitor_user.c rec = &stats_rec->xdp_cpumap_kthread; rec 408 samples/bpf/xdp_monitor_user.c t = calc_period(rec, prev); rec 410 samples/bpf/xdp_monitor_user.c struct datarec *r = &rec->cpu[i]; rec 422 samples/bpf/xdp_monitor_user.c pps = calc_pps(&rec->total, &prev->total, t); rec 423 samples/bpf/xdp_monitor_user.c drop = calc_drop(&rec->total, &prev->total, t); rec 424 samples/bpf/xdp_monitor_user.c info = calc_info(&rec->total, &prev->total, t); rec 434 samples/bpf/xdp_monitor_user.c struct record *rec, *prev; rec 439 samples/bpf/xdp_monitor_user.c rec = &stats_rec->xdp_devmap_xmit; rec 441 samples/bpf/xdp_monitor_user.c t = calc_period(rec, prev); rec 443 samples/bpf/xdp_monitor_user.c struct datarec *r = &rec->cpu[i]; rec 460 samples/bpf/xdp_monitor_user.c pps = calc_pps(&rec->total, &prev->total, t); rec 461 samples/bpf/xdp_monitor_user.c drop = calc_drop(&rec->total, &prev->total, t); rec 462 samples/bpf/xdp_monitor_user.c info = calc_info(&rec->total, &prev->total, t); rec 463 samples/bpf/xdp_monitor_user.c err = calc_err(&rec->total, &prev->total, t); rec 477 samples/bpf/xdp_monitor_user.c static bool stats_collect(struct stats_record *rec) rec 488 samples/bpf/xdp_monitor_user.c map_collect_record_u64(fd, i, &rec->xdp_redirect[i]); rec 492 samples/bpf/xdp_monitor_user.c map_collect_record_u64(fd, i, &rec->xdp_exception[i]); rec 497 samples/bpf/xdp_monitor_user.c map_collect_record(fd, i, &rec->xdp_cpumap_enqueue[i]); rec 500 samples/bpf/xdp_monitor_user.c map_collect_record(fd, 0, &rec->xdp_cpumap_kthread); rec 503 samples/bpf/xdp_monitor_user.c map_collect_record(fd, 0, &rec->xdp_devmap_xmit); rec 526 samples/bpf/xdp_monitor_user.c struct stats_record *rec; rec 531 samples/bpf/xdp_monitor_user.c rec = malloc(sizeof(*rec)); rec 532 samples/bpf/xdp_monitor_user.c memset(rec, 0, sizeof(*rec)); rec 533 samples/bpf/xdp_monitor_user.c if (!rec) { rec 541 samples/bpf/xdp_monitor_user.c rec->xdp_redirect[i].cpu = alloc_rec_per_cpu(rec_sz); rec 544 samples/bpf/xdp_monitor_user.c rec->xdp_exception[i].cpu = alloc_rec_per_cpu(rec_sz); rec 547 samples/bpf/xdp_monitor_user.c rec->xdp_cpumap_kthread.cpu = alloc_rec_per_cpu(rec_sz); rec 548 samples/bpf/xdp_monitor_user.c rec->xdp_devmap_xmit.cpu = alloc_rec_per_cpu(rec_sz); rec 551 samples/bpf/xdp_monitor_user.c rec->xdp_cpumap_enqueue[i].cpu = alloc_rec_per_cpu(rec_sz); rec 553 samples/bpf/xdp_monitor_user.c return rec; rec 587 samples/bpf/xdp_monitor_user.c struct stats_record *rec, *prev; rec 589 samples/bpf/xdp_monitor_user.c rec = alloc_stats_record(); rec 591 samples/bpf/xdp_monitor_user.c stats_collect(rec); rec 612 samples/bpf/xdp_monitor_user.c swap(&prev, &rec); rec 613 samples/bpf/xdp_monitor_user.c stats_collect(rec); rec 614 samples/bpf/xdp_monitor_user.c stats_print(rec, prev, err_only); rec 619 samples/bpf/xdp_monitor_user.c free_stats_record(rec); rec 205 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 217 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); rec 218 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 220 samples/bpf/xdp_redirect_cpu_kern.c rec->processed++; rec 223 samples/bpf/xdp_redirect_cpu_kern.c rec->issue++; rec 236 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 253 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); rec 254 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 256 samples/bpf/xdp_redirect_cpu_kern.c rec->processed++; rec 261 samples/bpf/xdp_redirect_cpu_kern.c rec->dropped++; rec 266 samples/bpf/xdp_redirect_cpu_kern.c rec->issue++; rec 279 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 308 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key0); rec 309 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 311 samples/bpf/xdp_redirect_cpu_kern.c rec->processed++; rec 314 samples/bpf/xdp_redirect_cpu_kern.c rec->issue++; rec 328 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 337 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); rec 338 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 340 samples/bpf/xdp_redirect_cpu_kern.c rec->processed++; rec 382 samples/bpf/xdp_redirect_cpu_kern.c rec->issue++; rec 396 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 406 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); rec 407 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 409 samples/bpf/xdp_redirect_cpu_kern.c rec->processed++; rec 443 samples/bpf/xdp_redirect_cpu_kern.c if (rec) rec 444 samples/bpf/xdp_redirect_cpu_kern.c rec->dropped++; rec 458 samples/bpf/xdp_redirect_cpu_kern.c rec->issue++; rec 516 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 527 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&rx_cnt, &key); rec 528 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 530 samples/bpf/xdp_redirect_cpu_kern.c rec->processed++; rec 561 samples/bpf/xdp_redirect_cpu_kern.c rec->issue++; rec 595 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 601 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&redirect_err_cnt, &key); rec 602 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 604 samples/bpf/xdp_redirect_cpu_kern.c rec->dropped += 1; rec 640 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 643 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&exception_cnt, &key); rec 644 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 646 samples/bpf/xdp_redirect_cpu_kern.c rec->dropped += 1; rec 668 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 673 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&cpumap_enqueue_cnt, &to_cpu); rec 674 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 676 samples/bpf/xdp_redirect_cpu_kern.c rec->processed += ctx->processed; rec 677 samples/bpf/xdp_redirect_cpu_kern.c rec->dropped += ctx->drops; rec 681 samples/bpf/xdp_redirect_cpu_kern.c rec->issue += 1; rec 707 samples/bpf/xdp_redirect_cpu_kern.c struct datarec *rec; rec 710 samples/bpf/xdp_redirect_cpu_kern.c rec = bpf_map_lookup_elem(&cpumap_kthread_cnt, &key); rec 711 samples/bpf/xdp_redirect_cpu_kern.c if (!rec) rec 713 samples/bpf/xdp_redirect_cpu_kern.c rec->processed += ctx->processed; rec 714 samples/bpf/xdp_redirect_cpu_kern.c rec->dropped += ctx->drops; rec 718 samples/bpf/xdp_redirect_cpu_kern.c rec->issue++; rec 176 samples/bpf/xdp_redirect_cpu_user.c static bool map_collect_percpu(int fd, __u32 key, struct record *rec) rec 192 samples/bpf/xdp_redirect_cpu_user.c rec->timestamp = gettime(); rec 196 samples/bpf/xdp_redirect_cpu_user.c rec->cpu[i].processed = values[i].processed; rec 198 samples/bpf/xdp_redirect_cpu_user.c rec->cpu[i].dropped = values[i].dropped; rec 200 samples/bpf/xdp_redirect_cpu_user.c rec->cpu[i].issue = values[i].issue; rec 203 samples/bpf/xdp_redirect_cpu_user.c rec->total.processed = sum_processed; rec 204 samples/bpf/xdp_redirect_cpu_user.c rec->total.dropped = sum_dropped; rec 205 samples/bpf/xdp_redirect_cpu_user.c rec->total.issue = sum_issue; rec 227 samples/bpf/xdp_redirect_cpu_user.c struct stats_record *rec; rec 230 samples/bpf/xdp_redirect_cpu_user.c rec = malloc(sizeof(*rec)); rec 231 samples/bpf/xdp_redirect_cpu_user.c memset(rec, 0, sizeof(*rec)); rec 232 samples/bpf/xdp_redirect_cpu_user.c if (!rec) { rec 236 samples/bpf/xdp_redirect_cpu_user.c rec->rx_cnt.cpu = alloc_record_per_cpu(); rec 237 samples/bpf/xdp_redirect_cpu_user.c rec->redir_err.cpu = alloc_record_per_cpu(); rec 238 samples/bpf/xdp_redirect_cpu_user.c rec->kthread.cpu = alloc_record_per_cpu(); rec 239 samples/bpf/xdp_redirect_cpu_user.c rec->exception.cpu = alloc_record_per_cpu(); rec 241 samples/bpf/xdp_redirect_cpu_user.c rec->enq[i].cpu = alloc_record_per_cpu(); rec 243 samples/bpf/xdp_redirect_cpu_user.c return rec; rec 314 samples/bpf/xdp_redirect_cpu_user.c struct record *rec, *prev; rec 330 samples/bpf/xdp_redirect_cpu_user.c rec = &stats_rec->rx_cnt; rec 332 samples/bpf/xdp_redirect_cpu_user.c t = calc_period(rec, prev); rec 334 samples/bpf/xdp_redirect_cpu_user.c struct datarec *r = &rec->cpu[i]; rec 346 samples/bpf/xdp_redirect_cpu_user.c pps = calc_pps(&rec->total, &prev->total, t); rec 347 samples/bpf/xdp_redirect_cpu_user.c drop = calc_drop_pps(&rec->total, &prev->total, t); rec 348 samples/bpf/xdp_redirect_cpu_user.c err = calc_errs_pps(&rec->total, &prev->total, t); rec 358 samples/bpf/xdp_redirect_cpu_user.c rec = &stats_rec->enq[to_cpu]; rec 360 samples/bpf/xdp_redirect_cpu_user.c t = calc_period(rec, prev); rec 362 samples/bpf/xdp_redirect_cpu_user.c struct datarec *r = &rec->cpu[i]; rec 376 samples/bpf/xdp_redirect_cpu_user.c pps = calc_pps(&rec->total, &prev->total, t); rec 378 samples/bpf/xdp_redirect_cpu_user.c drop = calc_drop_pps(&rec->total, &prev->total, t); rec 379 samples/bpf/xdp_redirect_cpu_user.c err = calc_errs_pps(&rec->total, &prev->total, t); rec 395 samples/bpf/xdp_redirect_cpu_user.c rec = &stats_rec->kthread; rec 397 samples/bpf/xdp_redirect_cpu_user.c t = calc_period(rec, prev); rec 399 samples/bpf/xdp_redirect_cpu_user.c struct datarec *r = &rec->cpu[i]; rec 411 samples/bpf/xdp_redirect_cpu_user.c pps = calc_pps(&rec->total, &prev->total, t); rec 412 samples/bpf/xdp_redirect_cpu_user.c drop = calc_drop_pps(&rec->total, &prev->total, t); rec 413 samples/bpf/xdp_redirect_cpu_user.c err = calc_errs_pps(&rec->total, &prev->total, t); rec 424 samples/bpf/xdp_redirect_cpu_user.c rec = &stats_rec->redir_err; rec 426 samples/bpf/xdp_redirect_cpu_user.c t = calc_period(rec, prev); rec 428 samples/bpf/xdp_redirect_cpu_user.c struct datarec *r = &rec->cpu[i]; rec 436 samples/bpf/xdp_redirect_cpu_user.c pps = calc_pps(&rec->total, &prev->total, t); rec 437 samples/bpf/xdp_redirect_cpu_user.c drop = calc_drop_pps(&rec->total, &prev->total, t); rec 446 samples/bpf/xdp_redirect_cpu_user.c rec = &stats_rec->exception; rec 448 samples/bpf/xdp_redirect_cpu_user.c t = calc_period(rec, prev); rec 450 samples/bpf/xdp_redirect_cpu_user.c struct datarec *r = &rec->cpu[i]; rec 458 samples/bpf/xdp_redirect_cpu_user.c pps = calc_pps(&rec->total, &prev->total, t); rec 459 samples/bpf/xdp_redirect_cpu_user.c drop = calc_drop_pps(&rec->total, &prev->total, t); rec 467 samples/bpf/xdp_redirect_cpu_user.c static void stats_collect(struct stats_record *rec) rec 472 samples/bpf/xdp_redirect_cpu_user.c map_collect_percpu(fd, 0, &rec->rx_cnt); rec 475 samples/bpf/xdp_redirect_cpu_user.c map_collect_percpu(fd, 1, &rec->redir_err); rec 479 samples/bpf/xdp_redirect_cpu_user.c map_collect_percpu(fd, i, &rec->enq[i]); rec 482 samples/bpf/xdp_redirect_cpu_user.c map_collect_percpu(fd, 0, &rec->kthread); rec 485 samples/bpf/xdp_redirect_cpu_user.c map_collect_percpu(fd, 0, &rec->exception); rec 79 samples/bpf/xdp_rxq_info_kern.c struct datarec *rec, *rxq_rec; rec 85 samples/bpf/xdp_rxq_info_kern.c rec = bpf_map_lookup_elem(&stats_global_map, &key); rec 86 samples/bpf/xdp_rxq_info_kern.c if (!rec) rec 88 samples/bpf/xdp_rxq_info_kern.c rec->processed++; rec 102 samples/bpf/xdp_rxq_info_kern.c rec->issue++; rec 232 samples/bpf/xdp_rxq_info_user.c struct stats_record *rec; rec 235 samples/bpf/xdp_rxq_info_user.c rec = malloc(sizeof(*rec)); rec 236 samples/bpf/xdp_rxq_info_user.c memset(rec, 0, sizeof(*rec)); rec 237 samples/bpf/xdp_rxq_info_user.c if (!rec) { rec 241 samples/bpf/xdp_rxq_info_user.c rec->rxq = alloc_record_per_rxq(); rec 243 samples/bpf/xdp_rxq_info_user.c rec->rxq[i].cpu = alloc_record_per_cpu(); rec 245 samples/bpf/xdp_rxq_info_user.c rec->stats.cpu = alloc_record_per_cpu(); rec 246 samples/bpf/xdp_rxq_info_user.c return rec; rec 262 samples/bpf/xdp_rxq_info_user.c static bool map_collect_percpu(int fd, __u32 key, struct record *rec) rec 277 samples/bpf/xdp_rxq_info_user.c rec->timestamp = gettime(); rec 281 samples/bpf/xdp_rxq_info_user.c rec->cpu[i].processed = values[i].processed; rec 283 samples/bpf/xdp_rxq_info_user.c rec->cpu[i].issue = values[i].issue; rec 286 samples/bpf/xdp_rxq_info_user.c rec->total.processed = sum_processed; rec 287 samples/bpf/xdp_rxq_info_user.c rec->total.issue = sum_issue; rec 291 samples/bpf/xdp_rxq_info_user.c static void stats_collect(struct stats_record *rec) rec 296 samples/bpf/xdp_rxq_info_user.c map_collect_percpu(fd, 0, &rec->stats); rec 301 samples/bpf/xdp_rxq_info_user.c map_collect_percpu(fd, i, &rec->rxq[i]); rec 348 samples/bpf/xdp_rxq_info_user.c struct record *rec, *prev; rec 366 samples/bpf/xdp_rxq_info_user.c rec = &stats_rec->stats; rec 368 samples/bpf/xdp_rxq_info_user.c t = calc_period(rec, prev); rec 370 samples/bpf/xdp_rxq_info_user.c struct datarec *r = &rec->cpu[i]; rec 381 samples/bpf/xdp_rxq_info_user.c pps = calc_pps (&rec->total, &prev->total, t); rec 382 samples/bpf/xdp_rxq_info_user.c err = calc_errs_pps(&rec->total, &prev->total, t); rec 400 samples/bpf/xdp_rxq_info_user.c rec = &stats_rec->rxq[rxq]; rec 402 samples/bpf/xdp_rxq_info_user.c t = calc_period(rec, prev); rec 404 samples/bpf/xdp_rxq_info_user.c struct datarec *r = &rec->cpu[i]; rec 419 samples/bpf/xdp_rxq_info_user.c pps = calc_pps (&rec->total, &prev->total, t); rec 420 samples/bpf/xdp_rxq_info_user.c err = calc_errs_pps(&rec->total, &prev->total, t); rec 32 sound/core/seq/oss/seq_oss_event.c static int set_echo_event(struct seq_oss_devinfo *dp, union evrec *rec, struct snd_seq_event *ev); rec 408 sound/core/seq/oss/seq_oss_event.c set_echo_event(struct seq_oss_devinfo *dp, union evrec *rec, struct snd_seq_event *ev) rec 413 sound/core/seq/oss/seq_oss_event.c memcpy(&ev->data, rec, LONG_EVENT_SIZE); rec 426 sound/core/seq/oss/seq_oss_event.c union evrec *rec; rec 434 sound/core/seq/oss/seq_oss_event.c rec = (union evrec*)&ev->data; rec 435 sound/core/seq/oss/seq_oss_event.c if (rec->s.code == SEQ_SYNCTIMER) { rec 437 sound/core/seq/oss/seq_oss_event.c snd_seq_oss_writeq_wakeup(dp->writeq, rec->t.time); rec 443 sound/core/seq/oss/seq_oss_event.c snd_seq_oss_readq_put_event(dp->readq, rec); rec 95 sound/core/seq/oss/seq_oss_event.h int snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *q); rec 48 sound/core/seq/oss/seq_oss_init.c #define call_ctl(type,rec) snd_seq_kernel_client_ctl(system_client, type, rec) rec 91 sound/core/seq/oss/seq_oss_readq.c union evrec rec; rec 94 sound/core/seq/oss/seq_oss_readq.c memset(&rec, 0, sizeof(rec)); rec 95 sound/core/seq/oss/seq_oss_readq.c rec.c[0] = SEQ_MIDIPUTC; rec 96 sound/core/seq/oss/seq_oss_readq.c rec.c[2] = dev; rec 99 sound/core/seq/oss/seq_oss_readq.c rec.c[1] = *data++; rec 100 sound/core/seq/oss/seq_oss_readq.c result = snd_seq_oss_readq_put_event(q, &rec); rec 169 sound/core/seq/oss/seq_oss_readq.c snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec) rec 173 sound/core/seq/oss/seq_oss_readq.c memcpy(rec, &q->q[q->head], sizeof(*rec)); rec 219 sound/core/seq/oss/seq_oss_readq.c union evrec rec; rec 220 sound/core/seq/oss/seq_oss_readq.c memset(&rec, 0, sizeof(rec)); rec 223 sound/core/seq/oss/seq_oss_readq.c rec.echo = (curt << 8) | SEQ_WAIT; rec 224 sound/core/seq/oss/seq_oss_readq.c snd_seq_oss_readq_put_event(q, &rec); rec 227 sound/core/seq/oss/seq_oss_readq.c rec.t.code = EV_TIMING; rec 228 sound/core/seq/oss/seq_oss_readq.c rec.t.cmd = TMR_WAIT_ABS; rec 229 sound/core/seq/oss/seq_oss_readq.c rec.t.time = curt; rec 230 sound/core/seq/oss/seq_oss_readq.c snd_seq_oss_readq_put_event(q, &rec); rec 38 sound/core/seq/oss/seq_oss_readq.h int snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec); rec 23 sound/core/seq/oss/seq_oss_rw.c static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt); rec 36 sound/core/seq/oss/seq_oss_rw.c union evrec rec; rec 44 sound/core/seq/oss/seq_oss_rw.c err = snd_seq_oss_readq_pick(readq, &rec); rec 53 sound/core/seq/oss/seq_oss_rw.c err = snd_seq_oss_readq_pick(readq, &rec); rec 59 sound/core/seq/oss/seq_oss_rw.c ev_len = ev_length(&rec); rec 66 sound/core/seq/oss/seq_oss_rw.c if (copy_to_user(buf, &rec, ev_len)) { rec 87 sound/core/seq/oss/seq_oss_rw.c union evrec rec; rec 93 sound/core/seq/oss/seq_oss_rw.c if (copy_from_user(&rec, buf, SHORT_EVENT_SIZE)) { rec 97 sound/core/seq/oss/seq_oss_rw.c if (rec.s.code == SEQ_FULLSIZE) { rec 103 sound/core/seq/oss/seq_oss_rw.c fmt = (*(unsigned short *)rec.c) & 0xffff; rec 105 sound/core/seq/oss/seq_oss_rw.c return snd_seq_oss_synth_load_patch(dp, rec.s.dev, rec 108 sound/core/seq/oss/seq_oss_rw.c if (ev_is_long(&rec)) { rec 110 sound/core/seq/oss/seq_oss_rw.c if (rec.s.code == SEQ_EXTENDED && rec 119 sound/core/seq/oss/seq_oss_rw.c if (copy_from_user(rec.c + SHORT_EVENT_SIZE, rec 135 sound/core/seq/oss/seq_oss_rw.c if ((err = insert_queue(dp, &rec, opt)) < 0) rec 151 sound/core/seq/oss/seq_oss_rw.c insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt) rec 157 sound/core/seq/oss/seq_oss_rw.c if (snd_seq_oss_process_timer_event(dp->timer, rec)) rec 166 sound/core/seq/oss/seq_oss_rw.c if (snd_seq_oss_process_event(dp, rec, &event)) rec 93 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 97 sound/core/seq/oss/seq_oss_synth.c rec = kzalloc(sizeof(*rec), GFP_KERNEL); rec 98 sound/core/seq/oss/seq_oss_synth.c if (!rec) rec 100 sound/core/seq/oss/seq_oss_synth.c rec->seq_device = -1; rec 101 sound/core/seq/oss/seq_oss_synth.c rec->synth_type = reg->type; rec 102 sound/core/seq/oss/seq_oss_synth.c rec->synth_subtype = reg->subtype; rec 103 sound/core/seq/oss/seq_oss_synth.c rec->nr_voices = reg->nvoices; rec 104 sound/core/seq/oss/seq_oss_synth.c rec->oper = reg->oper; rec 105 sound/core/seq/oss/seq_oss_synth.c rec->private_data = reg->private_data; rec 106 sound/core/seq/oss/seq_oss_synth.c rec->opened = 0; rec 107 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_init(&rec->use_lock); rec 110 sound/core/seq/oss/seq_oss_synth.c strlcpy(rec->name, dev->name, sizeof(rec->name)); rec 122 sound/core/seq/oss/seq_oss_synth.c kfree(rec); rec 127 sound/core/seq/oss/seq_oss_synth.c rec->seq_device = i; rec 128 sound/core/seq/oss/seq_oss_synth.c synth_devs[i] = rec; rec 130 sound/core/seq/oss/seq_oss_synth.c dev->driver_data = rec; rec 133 sound/core/seq/oss/seq_oss_synth.c snd_oss_info_register(SNDRV_OSS_INFO_DEV_SYNTH, i, rec->name); rec 144 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec = dev->driver_data; rec 149 sound/core/seq/oss/seq_oss_synth.c if (synth_devs[index] == rec) rec 167 sound/core/seq/oss/seq_oss_synth.c if (rec->seq_device < SNDRV_CARDS) rec 168 sound/core/seq/oss/seq_oss_synth.c snd_oss_info_unregister(SNDRV_OSS_INFO_DEV_SYNTH, rec->seq_device); rec 171 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_sync(&rec->use_lock); rec 172 sound/core/seq/oss/seq_oss_synth.c kfree(rec); rec 183 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 187 sound/core/seq/oss/seq_oss_synth.c rec = synth_devs[dev]; rec 188 sound/core/seq/oss/seq_oss_synth.c if (rec) rec 189 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_use(&rec->use_lock); rec 191 sound/core/seq/oss/seq_oss_synth.c return rec; rec 203 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 210 sound/core/seq/oss/seq_oss_synth.c rec = get_sdev(i); rec 211 sound/core/seq/oss/seq_oss_synth.c if (rec == NULL) rec 213 sound/core/seq/oss/seq_oss_synth.c if (rec->oper.open == NULL || rec->oper.close == NULL) { rec 214 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 226 sound/core/seq/oss/seq_oss_synth.c if (!try_module_get(rec->oper.owner)) { rec 227 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 230 sound/core/seq/oss/seq_oss_synth.c if (rec->oper.open(&info->arg, rec->private_data) < 0) { rec 231 sound/core/seq/oss/seq_oss_synth.c module_put(rec->oper.owner); rec 232 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 235 sound/core/seq/oss/seq_oss_synth.c info->nr_voices = rec->nr_voices; rec 239 sound/core/seq/oss/seq_oss_synth.c rec->oper.close(&info->arg); rec 240 sound/core/seq/oss/seq_oss_synth.c module_put(rec->oper.owner); rec 241 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 247 sound/core/seq/oss/seq_oss_synth.c rec->opened++; rec 249 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 296 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 311 sound/core/seq/oss/seq_oss_synth.c rec = get_sdev(i); rec 312 sound/core/seq/oss/seq_oss_synth.c if (rec == NULL) rec 314 sound/core/seq/oss/seq_oss_synth.c if (rec->opened > 0) { rec 315 sound/core/seq/oss/seq_oss_synth.c rec->oper.close(&info->arg); rec 316 sound/core/seq/oss/seq_oss_synth.c module_put(rec->oper.owner); rec 317 sound/core/seq/oss/seq_oss_synth.c rec->opened = 0; rec 319 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 345 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 353 sound/core/seq/oss/seq_oss_synth.c rec = &midi_synth_dev; rec 354 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_use(&rec->use_lock); rec 356 sound/core/seq/oss/seq_oss_synth.c rec = get_sdev(dev); rec 357 sound/core/seq/oss/seq_oss_synth.c if (!rec) rec 360 sound/core/seq/oss/seq_oss_synth.c if (! rec->opened) { rec 361 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 364 sound/core/seq/oss/seq_oss_synth.c return rec; rec 392 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 419 sound/core/seq/oss/seq_oss_synth.c rec = get_sdev(dev); rec 420 sound/core/seq/oss/seq_oss_synth.c if (rec == NULL) rec 422 sound/core/seq/oss/seq_oss_synth.c if (rec->oper.reset) { rec 423 sound/core/seq/oss/seq_oss_synth.c rec->oper.reset(&info->arg); rec 432 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 444 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 454 sound/core/seq/oss/seq_oss_synth.c if ((rec = get_synthdev(dp, dev)) == NULL) rec 457 sound/core/seq/oss/seq_oss_synth.c if (rec->oper.load_patch == NULL) rec 460 sound/core/seq/oss/seq_oss_synth.c rc = rec->oper.load_patch(&info->arg, fmt, buf, p, c); rec 461 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 471 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 473 sound/core/seq/oss/seq_oss_synth.c rec = get_synthdev(dp, dev); rec 474 sound/core/seq/oss/seq_oss_synth.c if (rec) { rec 475 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 565 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 572 sound/core/seq/oss/seq_oss_synth.c if ((rec = get_synthdev(dp, dev)) == NULL) rec 574 sound/core/seq/oss/seq_oss_synth.c if (rec->oper.ioctl == NULL) rec 577 sound/core/seq/oss/seq_oss_synth.c rc = rec->oper.ioctl(&info->arg, cmd, addr); rec 578 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 606 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 621 sound/core/seq/oss/seq_oss_synth.c if ((rec = get_synthdev(dp, dev)) == NULL) rec 623 sound/core/seq/oss/seq_oss_synth.c inf->synth_type = rec->synth_type; rec 624 sound/core/seq/oss/seq_oss_synth.c inf->synth_subtype = rec->synth_subtype; rec 625 sound/core/seq/oss/seq_oss_synth.c inf->nr_voices = rec->nr_voices; rec 627 sound/core/seq/oss/seq_oss_synth.c strlcpy(inf->name, rec->name, sizeof(inf->name)); rec 628 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 642 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec; rec 647 sound/core/seq/oss/seq_oss_synth.c rec = get_sdev(i); rec 648 sound/core/seq/oss/seq_oss_synth.c if (rec == NULL) { rec 652 sound/core/seq/oss/seq_oss_synth.c snd_iprintf(buf, "[%s]\n", rec->name); rec 654 sound/core/seq/oss/seq_oss_synth.c rec->synth_type, rec->synth_subtype, rec 655 sound/core/seq/oss/seq_oss_synth.c rec->nr_voices); rec 657 sound/core/seq/oss/seq_oss_synth.c enabled_str((long)rec->oper.ioctl), rec 658 sound/core/seq/oss/seq_oss_synth.c enabled_str((long)rec->oper.load_patch)); rec 659 sound/core/seq/oss/seq_oss_synth.c snd_use_lock_free(&rec->use_lock); rec 35 sound/core/seq/oss/seq_oss_timer.c struct seq_oss_timer *rec; rec 37 sound/core/seq/oss/seq_oss_timer.c rec = kzalloc(sizeof(*rec), GFP_KERNEL); rec 38 sound/core/seq/oss/seq_oss_timer.c if (rec == NULL) rec 41 sound/core/seq/oss/seq_oss_timer.c rec->dp = dp; rec 42 sound/core/seq/oss/seq_oss_timer.c rec->cur_tick = 0; rec 43 sound/core/seq/oss/seq_oss_timer.c rec->realtime = 0; rec 44 sound/core/seq/oss/seq_oss_timer.c rec->running = 0; rec 45 sound/core/seq/oss/seq_oss_timer.c rec->oss_tempo = 60; rec 46 sound/core/seq/oss/seq_oss_timer.c rec->oss_timebase = 100; rec 47 sound/core/seq/oss/seq_oss_timer.c calc_alsa_tempo(rec); rec 49 sound/core/seq/oss/seq_oss_timer.c return rec; rec 58 sound/core/seq/oss/seq_oss_timer.c snd_seq_oss_timer_delete(struct seq_oss_timer *rec) rec 60 sound/core/seq/oss/seq_oss_timer.c if (rec) { rec 61 sound/core/seq/oss/seq_oss_timer.c snd_seq_oss_timer_stop(rec); rec 62 sound/core/seq/oss/seq_oss_timer.c kfree(rec); rec 73 sound/core/seq/oss/seq_oss_timer.c snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *ev) rec 80 sound/core/seq/oss/seq_oss_timer.c parm += rec->cur_tick; rec 81 sound/core/seq/oss/seq_oss_timer.c rec->realtime = 0; rec 85 sound/core/seq/oss/seq_oss_timer.c rec->realtime = 1; rec 86 sound/core/seq/oss/seq_oss_timer.c } else if (parm >= rec->cur_tick) { rec 87 sound/core/seq/oss/seq_oss_timer.c rec->realtime = 0; rec 88 sound/core/seq/oss/seq_oss_timer.c rec->cur_tick = parm; rec 93 sound/core/seq/oss/seq_oss_timer.c snd_seq_oss_timer_start(rec); rec 100 sound/core/seq/oss/seq_oss_timer.c if (parm > rec->cur_tick) { rec 102 sound/core/seq/oss/seq_oss_timer.c rec->cur_tick = parm; rec 103 sound/core/seq/oss/seq_oss_timer.c rec->realtime = 0; rec 93 sound/core/seq/oss/seq_oss_writeq.c union evrec *rec; rec 102 sound/core/seq/oss/seq_oss_writeq.c rec = (union evrec *)&ev.data; rec 103 sound/core/seq/oss/seq_oss_writeq.c rec->t.code = SEQ_SYNCTIMER; rec 104 sound/core/seq/oss/seq_oss_writeq.c rec->t.time = time; rec 110 sound/core/seq/seq_dummy.c struct snd_seq_dummy_port *rec; rec 112 sound/core/seq/seq_dummy.c if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) rec 115 sound/core/seq/seq_dummy.c rec->client = my_client; rec 116 sound/core/seq/seq_dummy.c rec->duplex = duplex; rec 117 sound/core/seq/seq_dummy.c rec->connect = 0; rec 136 sound/core/seq/seq_dummy.c pcb.private_data = rec; rec 139 sound/core/seq/seq_dummy.c kfree(rec); rec 142 sound/core/seq/seq_dummy.c rec->port = pinfo.addr.port; rec 143 sound/core/seq/seq_dummy.c return rec; rec 402 sound/drivers/ml403-ac97cr.c struct snd_pcm_indirect2 *rec) rec 416 sound/drivers/ml403-ac97cr.c rec->hw_ready = 0; rec 424 sound/drivers/ml403-ac97cr.c struct snd_pcm_indirect2 *rec, rec 433 sound/drivers/ml403-ac97cr.c src = (u16 *)(substream->runtime->dma_area + rec->sw_data); rec 444 sound/drivers/ml403-ac97cr.c rec->hw_ready = 1; rec 446 sound/drivers/ml403-ac97cr.c rec->hw_ready = 0; rec 454 sound/drivers/ml403-ac97cr.c struct snd_pcm_indirect2 *rec) rec 474 sound/drivers/ml403-ac97cr.c rec->hw_ready = 0; rec 482 sound/drivers/ml403-ac97cr.c struct snd_pcm_indirect2 *rec, size_t bytes) rec 490 sound/drivers/ml403-ac97cr.c dst = (u16 *)(substream->runtime->dma_area + rec->sw_data); rec 501 sound/drivers/ml403-ac97cr.c rec->hw_ready = 1; rec 503 sound/drivers/ml403-ac97cr.c rec->hw_ready = 0; rec 28 sound/drivers/pcm-indirect2.c struct snd_pcm_indirect2 *rec) rec 34 sound/drivers/pcm-indirect2.c int seconds = (rec->lastbytetime - rec->firstbytetime) / HZ; rec 38 sound/drivers/pcm-indirect2.c rec->mul_elapsed, rec->mul_elapsed_real, rec->irq_occured); rec 40 sound/drivers/pcm-indirect2.c rec->min_multiple); rec 43 sound/drivers/pcm-indirect2.c rec->firstbytetime, rec->lastbytetime, rec->firstzerotime); rec 46 sound/drivers/pcm-indirect2.c rec->bytes2hw, rec->bytes2hw / 2 / 2 / runtime->rate); rec 49 sound/drivers/pcm-indirect2.c seconds, rec->bytes2hw / seconds, rec 50 sound/drivers/pcm-indirect2.c rec->bytes2hw / 2 / 2 / seconds); rec 53 sound/drivers/pcm-indirect2.c rec->zeros2hw, ((rec->zeros2hw / 2 / 2) * 1000) / rec 55 sound/drivers/pcm-indirect2.c rec->zeros2hw / (rec->hw_buffer_size / 2), rec 56 sound/drivers/pcm-indirect2.c (rec->hw_buffer_size / 2)); rec 58 sound/drivers/pcm-indirect2.c rec->pointer_calls, rec->lastdifftime); rec 59 sound/drivers/pcm-indirect2.c snd_printk(KERN_DEBUG "STAT: sw_io: %d, sw_data: %d\n", rec->sw_io, rec 60 sound/drivers/pcm-indirect2.c rec->sw_data); rec 65 sound/drivers/pcm-indirect2.c if (rec->byte_sizes[i] != 0) { rec 67 sound/drivers/pcm-indirect2.c i, rec->byte_sizes[i]); rec 80 sound/drivers/pcm-indirect2.c if (rec->zero_sizes[i] != 0) rec 82 sound/drivers/pcm-indirect2.c i, rec->zero_sizes[i]); rec 91 sound/drivers/pcm-indirect2.c if (rec->min_adds[j] != 0) rec 92 sound/drivers/pcm-indirect2.c snd_printk(KERN_DEBUG "%u: %u", j, rec->min_adds[j]); rec 97 sound/drivers/pcm-indirect2.c if (rec->mul_adds[j] != 0) rec 98 sound/drivers/pcm-indirect2.c snd_printk(KERN_DEBUG "%u: %u", j, rec->mul_adds[j]); rec 103 sound/drivers/pcm-indirect2.c rec->zero_times_saved, rec->zero_times_notsaved); rec 124 sound/drivers/pcm-indirect2.c struct snd_pcm_indirect2 *rec, rec 128 sound/drivers/pcm-indirect2.c if (rec->min_periods >= 0) { rec 130 sound/drivers/pcm-indirect2.c rec->sw_io += bytes; rec 131 sound/drivers/pcm-indirect2.c if (rec->sw_io >= rec->sw_buffer_size) rec 132 sound/drivers/pcm-indirect2.c rec->sw_io -= rec->sw_buffer_size; rec 139 sound/drivers/pcm-indirect2.c if (!rec->check_alignment) { rec 140 sound/drivers/pcm-indirect2.c if (rec->bytes2hw % rec 144 sound/drivers/pcm-indirect2.c (rec->bytes2hw / rec 149 sound/drivers/pcm-indirect2.c rec->sw_data = rec 151 sound/drivers/pcm-indirect2.c rec->sw_buffer_size; rec 159 sound/drivers/pcm-indirect2.c rec->bytes2hw); rec 163 sound/drivers/pcm-indirect2.c rec->sw_data); rec 166 sound/drivers/pcm-indirect2.c rec->check_alignment = 1; rec 174 sound/drivers/pcm-indirect2.c if (rec->sw_io != rec->sw_data) { rec 176 sound/drivers/pcm-indirect2.c if (rec->sw_data > rec->sw_io) rec 177 sound/drivers/pcm-indirect2.c diff = rec->sw_data - rec->sw_io; rec 179 sound/drivers/pcm-indirect2.c diff = (rec->sw_buffer_size - rec 180 sound/drivers/pcm-indirect2.c rec->sw_io) + rec 181 sound/drivers/pcm-indirect2.c rec->sw_data; rec 183 sound/drivers/pcm-indirect2.c rec->sw_io = rec->sw_data; rec 185 sound/drivers/pcm-indirect2.c rec->sw_io += bytes; rec 186 sound/drivers/pcm-indirect2.c if (rec->sw_io >= rec->sw_buffer_size) rec 187 sound/drivers/pcm-indirect2.c rec->sw_io -= rec 188 sound/drivers/pcm-indirect2.c rec->sw_buffer_size; rec 192 sound/drivers/pcm-indirect2.c rec->min_period_count += bytes; rec 193 sound/drivers/pcm-indirect2.c if (rec->min_period_count >= (rec->hw_buffer_size / 2)) { rec 194 sound/drivers/pcm-indirect2.c rec->min_periods += (rec->min_period_count / rec 195 sound/drivers/pcm-indirect2.c (rec->hw_buffer_size / 2)); rec 197 sound/drivers/pcm-indirect2.c if ((rec->min_period_count / rec 198 sound/drivers/pcm-indirect2.c (rec->hw_buffer_size / 2)) > 7) rec 202 sound/drivers/pcm-indirect2.c (rec->min_period_count / rec 203 sound/drivers/pcm-indirect2.c (rec->hw_buffer_size / 2))); rec 205 sound/drivers/pcm-indirect2.c rec->min_adds[(rec->min_period_count / rec 206 sound/drivers/pcm-indirect2.c (rec->hw_buffer_size / 2))]++; rec 208 sound/drivers/pcm-indirect2.c rec->min_period_count = (rec->min_period_count % rec 209 sound/drivers/pcm-indirect2.c (rec->hw_buffer_size / 2)); rec 212 sound/drivers/pcm-indirect2.c rec->min_periods = 0; rec 220 sound/drivers/pcm-indirect2.c struct snd_pcm_indirect2 *rec) rec 223 sound/drivers/pcm-indirect2.c rec->pointer_calls++; rec 225 sound/drivers/pcm-indirect2.c return bytes_to_frames(substream->runtime, rec->sw_io); rec 233 sound/drivers/pcm-indirect2.c struct snd_pcm_indirect2 *rec, rec 245 sound/drivers/pcm-indirect2.c snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; rec 249 sound/drivers/pcm-indirect2.c rec->lastdifftime = jiffies; rec 257 sound/drivers/pcm-indirect2.c rec->sw_ready += (int)frames_to_bytes(runtime, diff); rec 258 sound/drivers/pcm-indirect2.c rec->appl_ptr = appl_ptr; rec 260 sound/drivers/pcm-indirect2.c if (rec->hw_ready && (rec->sw_ready <= 0)) { rec 264 sound/drivers/pcm-indirect2.c if (rec->firstzerotime == 0) { rec 265 sound/drivers/pcm-indirect2.c rec->firstzerotime = jiffies; rec 269 sound/drivers/pcm-indirect2.c rec->mul_elapsed, rec->min_period_count); rec 273 sound/drivers/pcm-indirect2.c rec->sw_io, rec->sw_data, rec 276 sound/drivers/pcm-indirect2.c if ((jiffies - rec->firstzerotime) < 3750) { rec 277 sound/drivers/pcm-indirect2.c rec->zero_times[(jiffies - rec->firstzerotime)]++; rec 278 sound/drivers/pcm-indirect2.c rec->zero_times_saved++; rec 280 sound/drivers/pcm-indirect2.c rec->zero_times_notsaved++; rec 282 sound/drivers/pcm-indirect2.c bytes = zero(substream, rec); rec 285 sound/drivers/pcm-indirect2.c rec->zeros2hw += bytes; rec 287 sound/drivers/pcm-indirect2.c rec->zero_sizes[bytes]++; rec 294 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_increase_min_periods(substream, rec, 1, 0, rec 298 sound/drivers/pcm-indirect2.c while (rec->hw_ready && (rec->sw_ready > 0)) { rec 302 sound/drivers/pcm-indirect2.c unsigned int sw_to_end = rec->sw_buffer_size - rec->sw_data; rec 305 sound/drivers/pcm-indirect2.c unsigned int bytes = rec->sw_ready; rec 313 sound/drivers/pcm-indirect2.c if (rec->firstbytetime == 0) rec 314 sound/drivers/pcm-indirect2.c rec->firstbytetime = jiffies; rec 315 sound/drivers/pcm-indirect2.c rec->lastbytetime = jiffies; rec 322 sound/drivers/pcm-indirect2.c bytes = copy(substream, rec, bytes); rec 323 sound/drivers/pcm-indirect2.c rec->bytes2hw += bytes; rec 327 sound/drivers/pcm-indirect2.c rec->byte_sizes[bytes]++; rec 337 sound/drivers/pcm-indirect2.c rec->sw_data += bytes; rec 338 sound/drivers/pcm-indirect2.c if (rec->sw_data == rec->sw_buffer_size) rec 339 sound/drivers/pcm-indirect2.c rec->sw_data = 0; rec 345 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_increase_min_periods(substream, rec, 1, 1, rec 352 sound/drivers/pcm-indirect2.c rec->sw_ready -= bytes; rec 362 sound/drivers/pcm-indirect2.c struct snd_pcm_indirect2 *rec, rec 367 sound/drivers/pcm-indirect2.c rec->irq_occured++; rec 370 sound/drivers/pcm-indirect2.c rec->hw_ready = 1; rec 375 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_playback_transfer(substream, rec, copy, zero); rec 377 sound/drivers/pcm-indirect2.c if (rec->min_periods >= rec->min_multiple) { rec 379 sound/drivers/pcm-indirect2.c if ((rec->min_periods / rec->min_multiple) > 7) rec 383 sound/drivers/pcm-indirect2.c (rec->min_periods / rec->min_multiple)); rec 385 sound/drivers/pcm-indirect2.c rec->mul_adds[(rec->min_periods / rec 386 sound/drivers/pcm-indirect2.c rec->min_multiple)]++; rec 387 sound/drivers/pcm-indirect2.c rec->mul_elapsed_real += (rec->min_periods / rec 388 sound/drivers/pcm-indirect2.c rec->min_multiple); rec 389 sound/drivers/pcm-indirect2.c rec->mul_elapsed++; rec 391 sound/drivers/pcm-indirect2.c rec->min_periods = (rec->min_periods % rec->min_multiple); rec 401 sound/drivers/pcm-indirect2.c struct snd_pcm_indirect2 *rec, rec 407 sound/drivers/pcm-indirect2.c snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; rec 411 sound/drivers/pcm-indirect2.c rec->lastdifftime = jiffies; rec 415 sound/drivers/pcm-indirect2.c rec->sw_ready -= frames_to_bytes(runtime, diff); rec 416 sound/drivers/pcm-indirect2.c rec->appl_ptr = appl_ptr; rec 421 sound/drivers/pcm-indirect2.c if (rec->hw_ready && (rec->sw_ready >= (int)rec->sw_buffer_size)) { rec 425 sound/drivers/pcm-indirect2.c if (rec->firstzerotime == 0) { rec 426 sound/drivers/pcm-indirect2.c rec->firstzerotime = jiffies; rec 430 sound/drivers/pcm-indirect2.c rec->mul_elapsed, rec->min_period_count); rec 434 sound/drivers/pcm-indirect2.c rec->sw_io, rec->sw_data, rec 437 sound/drivers/pcm-indirect2.c if ((jiffies - rec->firstzerotime) < 3750) { rec 438 sound/drivers/pcm-indirect2.c rec->zero_times[(jiffies - rec->firstzerotime)]++; rec 439 sound/drivers/pcm-indirect2.c rec->zero_times_saved++; rec 441 sound/drivers/pcm-indirect2.c rec->zero_times_notsaved++; rec 443 sound/drivers/pcm-indirect2.c bytes = null(substream, rec); rec 446 sound/drivers/pcm-indirect2.c rec->zeros2hw += bytes; rec 448 sound/drivers/pcm-indirect2.c rec->zero_sizes[bytes]++; rec 455 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_increase_min_periods(substream, rec, 0, 0, rec 458 sound/drivers/pcm-indirect2.c rec->sw_io = SNDRV_PCM_POS_XRUN; rec 461 sound/drivers/pcm-indirect2.c while (rec->hw_ready && (rec->sw_ready < (int)rec->sw_buffer_size)) { rec 465 sound/drivers/pcm-indirect2.c size_t sw_to_end = rec->sw_buffer_size - rec->sw_data; rec 470 sound/drivers/pcm-indirect2.c size_t bytes = rec->sw_buffer_size - rec->sw_ready; rec 481 sound/drivers/pcm-indirect2.c if (rec->firstbytetime == 0) rec 482 sound/drivers/pcm-indirect2.c rec->firstbytetime = jiffies; rec 483 sound/drivers/pcm-indirect2.c rec->lastbytetime = jiffies; rec 490 sound/drivers/pcm-indirect2.c bytes = copy(substream, rec, bytes); rec 491 sound/drivers/pcm-indirect2.c rec->bytes2hw += bytes; rec 495 sound/drivers/pcm-indirect2.c rec->byte_sizes[bytes]++; rec 505 sound/drivers/pcm-indirect2.c rec->sw_data += bytes; rec 506 sound/drivers/pcm-indirect2.c if (rec->sw_data == rec->sw_buffer_size) rec 507 sound/drivers/pcm-indirect2.c rec->sw_data = 0; rec 509 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_increase_min_periods(substream, rec, 0, 1, rec 515 sound/drivers/pcm-indirect2.c rec->sw_ready += bytes; rec 525 sound/drivers/pcm-indirect2.c struct snd_pcm_indirect2 *rec, rec 530 sound/drivers/pcm-indirect2.c rec->irq_occured++; rec 535 sound/drivers/pcm-indirect2.c rec->hw_ready = 1; rec 540 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_capture_transfer(substream, rec, copy, null); rec 542 sound/drivers/pcm-indirect2.c if (rec->min_periods >= rec->min_multiple) { rec 545 sound/drivers/pcm-indirect2.c if ((rec->min_periods / rec->min_multiple) > 7) rec 549 sound/drivers/pcm-indirect2.c (rec->min_periods / rec->min_multiple)); rec 551 sound/drivers/pcm-indirect2.c rec->mul_adds[(rec->min_periods / rec 552 sound/drivers/pcm-indirect2.c rec->min_multiple)]++; rec 553 sound/drivers/pcm-indirect2.c rec->mul_elapsed_real += (rec->min_periods / rec 554 sound/drivers/pcm-indirect2.c rec->min_multiple); rec 555 sound/drivers/pcm-indirect2.c rec->mul_elapsed++; rec 557 sound/drivers/pcm-indirect2.c rec->min_periods = (rec->min_periods % rec->min_multiple); rec 103 sound/drivers/pcm-indirect2.h struct snd_pcm_indirect2 *rec, rec 106 sound/drivers/pcm-indirect2.h struct snd_pcm_indirect2 *rec); rec 110 sound/drivers/pcm-indirect2.h struct snd_pcm_indirect2 *rec); rec 115 sound/drivers/pcm-indirect2.h struct snd_pcm_indirect2 *rec); rec 118 sound/drivers/pcm-indirect2.h struct snd_pcm_indirect2 *rec, rec 123 sound/drivers/pcm-indirect2.h struct snd_pcm_indirect2 *rec, rec 653 sound/isa/sb/emu8000.c struct soundfont_chorus_fx rec; rec 658 sound/isa/sb/emu8000.c if (len < (long)sizeof(rec) || copy_from_user(&rec, buf, sizeof(rec))) rec 660 sound/isa/sb/emu8000.c chorus_parm[mode] = rec; rec 780 sound/isa/sb/emu8000.c struct soundfont_reverb_fx rec; rec 786 sound/isa/sb/emu8000.c if (len < (long)sizeof(rec) || copy_from_user(&rec, buf, sizeof(rec))) rec 788 sound/isa/sb/emu8000.c reverb_parm[mode] = rec; rec 19 sound/isa/sb/emu8000_local.h int snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, rec 22 sound/isa/sb/emu8000_local.h int snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, rec 24 sound/isa/sb/emu8000_local.h void snd_emu8000_sample_reset(struct snd_emux *rec); rec 136 sound/isa/sb/emu8000_patch.c snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, rec 147 sound/isa/sb/emu8000_patch.c emu = rec->hw; rec 273 sound/isa/sb/emu8000_patch.c snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, rec 288 sound/isa/sb/emu8000_patch.c snd_emu8000_sample_reset(struct snd_emux *rec) rec 290 sound/isa/sb/emu8000_patch.c snd_emux_terminate_all(rec); rec 171 sound/isa/sb/emu8000_pcm.c static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) rec 173 sound/isa/sb/emu8000_pcm.c int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; rec 174 sound/isa/sb/emu8000_pcm.c val -= rec->loop_start[ch] - 1; rec 185 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = from_timer(rec, t, timer); rec 188 sound/isa/sb/emu8000_pcm.c spin_lock(&rec->timer_lock); rec 190 sound/isa/sb/emu8000_pcm.c ptr = emu8k_get_curpos(rec, 0); rec 191 sound/isa/sb/emu8000_pcm.c if (ptr < rec->last_ptr) rec 192 sound/isa/sb/emu8000_pcm.c delta = ptr + rec->buf_size - rec->last_ptr; rec 194 sound/isa/sb/emu8000_pcm.c delta = ptr - rec->last_ptr; rec 195 sound/isa/sb/emu8000_pcm.c rec->period_pos += delta; rec 196 sound/isa/sb/emu8000_pcm.c rec->last_ptr = ptr; rec 199 sound/isa/sb/emu8000_pcm.c mod_timer(&rec->timer, jiffies + 1); rec 202 sound/isa/sb/emu8000_pcm.c if (rec->period_pos >= (int)rec->period_size) { rec 203 sound/isa/sb/emu8000_pcm.c rec->period_pos %= rec->period_size; rec 204 sound/isa/sb/emu8000_pcm.c spin_unlock(&rec->timer_lock); rec 205 sound/isa/sb/emu8000_pcm.c snd_pcm_period_elapsed(rec->substream); rec 208 sound/isa/sb/emu8000_pcm.c spin_unlock(&rec->timer_lock); rec 219 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec; rec 222 sound/isa/sb/emu8000_pcm.c rec = kzalloc(sizeof(*rec), GFP_KERNEL); rec 223 sound/isa/sb/emu8000_pcm.c if (! rec) rec 226 sound/isa/sb/emu8000_pcm.c rec->emu = emu; rec 227 sound/isa/sb/emu8000_pcm.c rec->substream = subs; rec 228 sound/isa/sb/emu8000_pcm.c runtime->private_data = rec; rec 230 sound/isa/sb/emu8000_pcm.c spin_lock_init(&rec->timer_lock); rec 231 sound/isa/sb/emu8000_pcm.c timer_setup(&rec->timer, emu8k_pcm_timer_func, 0); rec 246 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 247 sound/isa/sb/emu8000_pcm.c kfree(rec); rec 269 sound/isa/sb/emu8000_pcm.c static void setup_voice(struct snd_emu8k_pcm *rec, int ch) rec 271 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *hw = rec->emu; rec 282 sound/isa/sb/emu8000_pcm.c EMU8000_IP_WRITE(hw, ch, rec->pitch); rec 303 sound/isa/sb/emu8000_pcm.c temp = rec->panning[ch]; rec 304 sound/isa/sb/emu8000_pcm.c temp = (temp <<24) | ((unsigned int)rec->loop_start[ch] - 1); rec 308 sound/isa/sb/emu8000_pcm.c temp = (temp << 24) | ((unsigned int)rec->loop_start[ch] + rec->buf_size - 1); rec 312 sound/isa/sb/emu8000_pcm.c temp = (temp << 28) | ((unsigned int)rec->loop_start[ch] - 1); rec 322 sound/isa/sb/emu8000_pcm.c static void start_voice(struct snd_emu8k_pcm *rec, int ch) rec 325 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *hw = rec->emu; rec 327 sound/isa/sb/emu8000_pcm.c int pt = calc_pitch_target(rec->pitch); rec 337 sound/isa/sb/emu8000_pcm.c if (rec->panning[ch] == 0) rec 340 sound/isa/sb/emu8000_pcm.c aux = (-rec->panning[ch]) & 0xff; rec 346 sound/isa/sb/emu8000_pcm.c spin_lock_irqsave(&rec->timer_lock, flags); rec 347 sound/isa/sb/emu8000_pcm.c if (! rec->timer_running) { rec 348 sound/isa/sb/emu8000_pcm.c mod_timer(&rec->timer, jiffies + 1); rec 349 sound/isa/sb/emu8000_pcm.c rec->timer_running = 1; rec 351 sound/isa/sb/emu8000_pcm.c spin_unlock_irqrestore(&rec->timer_lock, flags); rec 357 sound/isa/sb/emu8000_pcm.c static void stop_voice(struct snd_emu8k_pcm *rec, int ch) rec 360 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *hw = rec->emu; rec 365 sound/isa/sb/emu8000_pcm.c spin_lock_irqsave(&rec->timer_lock, flags); rec 366 sound/isa/sb/emu8000_pcm.c if (rec->timer_running) { rec 367 sound/isa/sb/emu8000_pcm.c del_timer(&rec->timer); rec 368 sound/isa/sb/emu8000_pcm.c rec->timer_running = 0; rec 370 sound/isa/sb/emu8000_pcm.c spin_unlock_irqrestore(&rec->timer_lock, flags); rec 375 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 380 sound/isa/sb/emu8000_pcm.c for (ch = 0; ch < rec->voices; ch++) rec 381 sound/isa/sb/emu8000_pcm.c start_voice(rec, ch); rec 382 sound/isa/sb/emu8000_pcm.c rec->running = 1; rec 385 sound/isa/sb/emu8000_pcm.c rec->running = 0; rec 386 sound/isa/sb/emu8000_pcm.c for (ch = 0; ch < rec->voices; ch++) rec 387 sound/isa/sb/emu8000_pcm.c stop_voice(rec, ch); rec 435 sound/isa/sb/emu8000_pcm.c #define LOOP_WRITE(rec, offset, _buf, count, mode) \ rec 437 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *emu = (rec)->emu; \ rec 455 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 458 sound/isa/sb/emu8000_pcm.c pos = (pos << 1) + rec->loop_start[voice]; rec 460 sound/isa/sb/emu8000_pcm.c LOOP_WRITE(rec, pos, src, count, COPY_USER); rec 468 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 471 sound/isa/sb/emu8000_pcm.c pos = (pos << 1) + rec->loop_start[voice]; rec 473 sound/isa/sb/emu8000_pcm.c LOOP_WRITE(rec, pos, src, count, COPY_KERNEL); rec 481 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 484 sound/isa/sb/emu8000_pcm.c pos = (pos << 1) + rec->loop_start[voice]; rec 486 sound/isa/sb/emu8000_pcm.c LOOP_WRITE(rec, pos, NULL, count, FILL_SILENCE); rec 492 sound/isa/sb/emu8000_pcm.c #define LOOP_WRITE(rec, pos, _buf, count, mode) \ rec 494 sound/isa/sb/emu8000_pcm.c struct snd_emu8000 *emu = rec->emu; \ rec 497 sound/isa/sb/emu8000_pcm.c EMU8000_SMALW_WRITE(emu, pos + rec->loop_start[0]); \ rec 498 sound/isa/sb/emu8000_pcm.c if (rec->voices > 1) \ rec 499 sound/isa/sb/emu8000_pcm.c EMU8000_SMARW_WRITE(emu, pos + rec->loop_start[1]); \ rec 505 sound/isa/sb/emu8000_pcm.c if (rec->voices > 1) { \ rec 523 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 528 sound/isa/sb/emu8000_pcm.c LOOP_WRITE(rec, pos, src, count, COPY_USER); rec 536 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 541 sound/isa/sb/emu8000_pcm.c LOOP_WRITE(rec, pos, src, count, COPY_KERNEL); rec 548 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 553 sound/isa/sb/emu8000_pcm.c LOOP_WRITE(rec, pos, NULL, count, FILL_SILENCE); rec 565 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 567 sound/isa/sb/emu8000_pcm.c if (rec->block) { rec 569 sound/isa/sb/emu8000_pcm.c snd_util_mem_free(rec->emu->memhdr, rec->block); rec 570 sound/isa/sb/emu8000_pcm.c rec->block = NULL; rec 573 sound/isa/sb/emu8000_pcm.c rec->allocated_bytes = params_buffer_bytes(hw_params) + LOOP_BLANK_SIZE * 4; rec 574 sound/isa/sb/emu8000_pcm.c rec->block = snd_util_mem_alloc(rec->emu->memhdr, rec->allocated_bytes); rec 575 sound/isa/sb/emu8000_pcm.c if (! rec->block) rec 577 sound/isa/sb/emu8000_pcm.c rec->offset = EMU8000_DRAM_OFFSET + (rec->block->offset >> 1); /* in word */ rec 589 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 591 sound/isa/sb/emu8000_pcm.c if (rec->block) { rec 593 sound/isa/sb/emu8000_pcm.c for (ch = 0; ch < rec->voices; ch++) rec 594 sound/isa/sb/emu8000_pcm.c stop_voice(rec, ch); // to be sure rec 595 sound/isa/sb/emu8000_pcm.c if (rec->dram_opened) rec 596 sound/isa/sb/emu8000_pcm.c emu8k_close_dram(rec->emu); rec 597 sound/isa/sb/emu8000_pcm.c snd_util_mem_free(rec->emu->memhdr, rec->block); rec 598 sound/isa/sb/emu8000_pcm.c rec->block = NULL; rec 607 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 609 sound/isa/sb/emu8000_pcm.c rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); rec 610 sound/isa/sb/emu8000_pcm.c rec->last_ptr = 0; rec 611 sound/isa/sb/emu8000_pcm.c rec->period_pos = 0; rec 613 sound/isa/sb/emu8000_pcm.c rec->buf_size = subs->runtime->buffer_size; rec 614 sound/isa/sb/emu8000_pcm.c rec->period_size = subs->runtime->period_size; rec 615 sound/isa/sb/emu8000_pcm.c rec->voices = subs->runtime->channels; rec 616 sound/isa/sb/emu8000_pcm.c rec->loop_start[0] = rec->offset + LOOP_BLANK_SIZE; rec 617 sound/isa/sb/emu8000_pcm.c if (rec->voices > 1) rec 618 sound/isa/sb/emu8000_pcm.c rec->loop_start[1] = rec->loop_start[0] + rec->buf_size + LOOP_BLANK_SIZE; rec 619 sound/isa/sb/emu8000_pcm.c if (rec->voices > 1) { rec 620 sound/isa/sb/emu8000_pcm.c rec->panning[0] = 0xff; rec 621 sound/isa/sb/emu8000_pcm.c rec->panning[1] = 0x00; rec 623 sound/isa/sb/emu8000_pcm.c rec->panning[0] = 0x80; rec 625 sound/isa/sb/emu8000_pcm.c if (! rec->dram_opened) { rec 628 sound/isa/sb/emu8000_pcm.c snd_emux_terminate_all(rec->emu->emu); rec 629 sound/isa/sb/emu8000_pcm.c if ((err = emu8k_open_dram_for_pcm(rec->emu, rec->voices)) != 0) rec 631 sound/isa/sb/emu8000_pcm.c rec->dram_opened = 1; rec 634 sound/isa/sb/emu8000_pcm.c snd_emu8000_write_wait(rec->emu, 0); rec 635 sound/isa/sb/emu8000_pcm.c EMU8000_SMALW_WRITE(rec->emu, rec->offset); rec 637 sound/isa/sb/emu8000_pcm.c EMU8000_SMLD_WRITE(rec->emu, 0); rec 638 sound/isa/sb/emu8000_pcm.c for (ch = 0; ch < rec->voices; ch++) { rec 639 sound/isa/sb/emu8000_pcm.c EMU8000_SMALW_WRITE(rec->emu, rec->loop_start[ch] + rec->buf_size); rec 641 sound/isa/sb/emu8000_pcm.c EMU8000_SMLD_WRITE(rec->emu, 0); rec 645 sound/isa/sb/emu8000_pcm.c setup_voice(rec, 0); rec 646 sound/isa/sb/emu8000_pcm.c if (rec->voices > 1) rec 647 sound/isa/sb/emu8000_pcm.c setup_voice(rec, 1); rec 653 sound/isa/sb/emu8000_pcm.c struct snd_emu8k_pcm *rec = subs->runtime->private_data; rec 654 sound/isa/sb/emu8000_pcm.c if (rec->running) rec 655 sound/isa/sb/emu8000_pcm.c return emu8k_get_curpos(rec, 0); rec 593 sound/mips/hal2.c struct snd_pcm_indirect *rec, size_t bytes) rec 596 sound/mips/hal2.c unsigned char *buf = hal2->dac.buffer + rec->hw_data; rec 598 sound/mips/hal2.c memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes); rec 682 sound/mips/hal2.c struct snd_pcm_indirect *rec, size_t bytes) rec 685 sound/mips/hal2.c unsigned char *buf = hal2->adc.buffer + rec->hw_data; rec 688 sound/mips/hal2.c memcpy(substream->runtime->dma_area + rec->sw_data, buf, bytes); rec 534 sound/pci/ali5451/ali5451.c static int snd_ali_find_free_channel(struct snd_ali * codec, int rec) rec 540 sound/pci/ali5451/ali5451.c "find_free_channel: for %s\n", rec ? "rec" : "pcm"); rec 543 sound/pci/ali5451/ali5451.c if (rec) { rec 910 sound/pci/ali5451/ali5451.c int type, int rec, int channel) rec 915 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "alloc_voice: type=%d rec=%d\n", type, rec); rec 920 sound/pci/ali5451/ali5451.c snd_ali_find_free_channel(codec,rec); rec 930 sound/pci/ali5451/ali5451.c pvoice->mode = rec; rec 1013 sound/pci/ali5451/ali5451.c static unsigned int snd_ali_convert_rate(unsigned int rate, int rec) rec 1022 sound/pci/ali5451/ali5451.c if (rec) { rec 1478 sound/pci/ali5451/ali5451.c static int snd_ali_open(struct snd_pcm_substream *substream, int rec, rec 1485 sound/pci/ali5451/ali5451.c pvoice = snd_ali_alloc_voice(codec, SNDRV_ALI_VOICE_TYPE_PCM, rec, rec 1585 sound/pci/ali5451/ali5451.c static int snd_ali_modem_open(struct snd_pcm_substream *substream, int rec, rec 1594 sound/pci/ali5451/ali5451.c int err = snd_ali_open(substream, rec, channel, &snd_ali_modem); rec 726 sound/pci/cmipci.c static int set_dac_channels(struct cmipci *cm, struct cmipci_pcm *rec, int channels) rec 729 sound/pci/cmipci.c if (!cm->can_multi_ch || !rec->ch) rec 731 sound/pci/cmipci.c if (rec->fmt != 0x03) /* stereo 16bit only */ rec 769 sound/pci/cmipci.c static int snd_cmipci_pcm_prepare(struct cmipci *cm, struct cmipci_pcm *rec, rec 776 sound/pci/cmipci.c rec->fmt = 0; rec 777 sound/pci/cmipci.c rec->shift = 0; rec 779 sound/pci/cmipci.c rec->fmt |= 0x02; rec 781 sound/pci/cmipci.c rec->shift++; /* 24/32bit */ rec 784 sound/pci/cmipci.c rec->fmt |= 0x01; rec 785 sound/pci/cmipci.c if (rec->is_dac && set_dac_channels(cm, rec, runtime->channels) < 0) { rec 790 sound/pci/cmipci.c rec->offset = runtime->dma_addr; rec 792 sound/pci/cmipci.c rec->dma_size = runtime->buffer_size << rec->shift; rec 793 sound/pci/cmipci.c period_size = runtime->period_size << rec->shift; rec 796 sound/pci/cmipci.c rec->dma_size = (rec->dma_size * runtime->channels) / 2; rec 803 sound/pci/cmipci.c reg = rec->ch ? CM_REG_CH1_FRAME1 : CM_REG_CH0_FRAME1; rec 804 sound/pci/cmipci.c snd_cmipci_write(cm, reg, rec->offset); rec 806 sound/pci/cmipci.c reg = rec->ch ? CM_REG_CH1_FRAME2 : CM_REG_CH0_FRAME2; rec 807 sound/pci/cmipci.c snd_cmipci_write_w(cm, reg, rec->dma_size - 1); rec 811 sound/pci/cmipci.c val = rec->ch ? CM_CHADC1 : CM_CHADC0; rec 812 sound/pci/cmipci.c if (rec->is_dac) rec 832 sound/pci/cmipci.c if (rec->ch) { rec 844 sound/pci/cmipci.c if (rec->ch) { rec 846 sound/pci/cmipci.c val |= rec->fmt << CM_CH1FMT_SHIFT; rec 849 sound/pci/cmipci.c val |= rec->fmt << CM_CH0FMT_SHIFT; rec 852 sound/pci/cmipci.c val &= ~(CM_CH0_SRATE_MASK << (rec->ch * 2)); rec 853 sound/pci/cmipci.c val |= freq_ext << (rec->ch * 2); rec 858 sound/pci/cmipci.c if (!rec->is_dac && cm->chip_version) { rec 865 sound/pci/cmipci.c rec->running = 0; rec 874 sound/pci/cmipci.c static int snd_cmipci_pcm_trigger(struct cmipci *cm, struct cmipci_pcm *rec, rec 880 sound/pci/cmipci.c inthld = CM_CH0_INT_EN << rec->ch; rec 881 sound/pci/cmipci.c chen = CM_CHEN0 << rec->ch; rec 882 sound/pci/cmipci.c reset = CM_RST_CH0 << rec->ch; rec 883 sound/pci/cmipci.c pause = CM_PAUSE0 << rec->ch; rec 888 sound/pci/cmipci.c rec->running = 1; rec 897 sound/pci/cmipci.c rec->running = 0; rec 904 sound/pci/cmipci.c rec->needs_silencing = rec->is_dac; rec 927 sound/pci/cmipci.c static snd_pcm_uframes_t snd_cmipci_pcm_pointer(struct cmipci *cm, struct cmipci_pcm *rec, rec 933 sound/pci/cmipci.c if (!rec->running) rec 936 sound/pci/cmipci.c reg = rec->ch ? CM_REG_CH1_FRAME2 : CM_REG_CH0_FRAME2; rec 939 sound/pci/cmipci.c if (rem < rec->dma_size) rec 945 sound/pci/cmipci.c ptr = (rec->dma_size - (rem + 1)) >> rec->shift; rec 947 sound/pci/cmipci.c reg = rec->ch ? CM_REG_CH1_FRAME1 : CM_REG_CH0_FRAME1; rec 948 sound/pci/cmipci.c ptr = snd_cmipci_read(cm, reg) - rec->offset; rec 1322 sound/pci/cmipci.c static void snd_cmipci_silence_hack(struct cmipci *cm, struct cmipci_pcm *rec) rec 1324 sound/pci/cmipci.c struct snd_pcm_runtime *runtime = rec->substream->runtime; rec 1327 sound/pci/cmipci.c if (rec->needs_silencing && runtime && runtime->dma_area) { rec 1330 sound/pci/cmipci.c reg = rec->ch ? CM_REG_CH1_FRAME2 : CM_REG_CH0_FRAME2; rec 1336 sound/pci/cmipci.c set_dac_channels(cm, rec, 2); rec 1339 sound/pci/cmipci.c val &= ~(CM_ASFC_MASK << (rec->ch * 3)); rec 1340 sound/pci/cmipci.c val |= (4 << CM_ASFC_SHIFT) << (rec->ch * 3); rec 1343 sound/pci/cmipci.c val &= ~(CM_CH0FMT_MASK << (rec->ch * 2)); rec 1344 sound/pci/cmipci.c val |= (3 << CM_CH0FMT_SHIFT) << (rec->ch * 2); rec 1346 sound/pci/cmipci.c val &= ~(CM_CH0_SRATE_MASK << (rec->ch * 2)); rec 1350 sound/pci/cmipci.c cm->ctrl |= CM_CHEN0 << rec->ch; rec 1358 sound/pci/cmipci.c cm->ctrl &= ~(CM_CHEN0 << rec->ch); rec 1359 sound/pci/cmipci.c val = CM_RST_CH0 << rec->ch; rec 1364 sound/pci/cmipci.c rec->needs_silencing = 0; rec 865 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_indirect *rec, size_t bytes) rec 869 sound/pci/cs46xx/cs46xx_lib.c memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); rec 881 sound/pci/cs46xx/cs46xx_lib.c struct snd_pcm_indirect *rec, size_t bytes) rec 885 sound/pci/cs46xx/cs46xx_lib.c memcpy(runtime->dma_area + rec->sw_data, rec 886 sound/pci/cs46xx/cs46xx_lib.c chip->capt.hw_buf.area + rec->hw_data, bytes); rec 25 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, rec 35 sound/pci/emu10k1/emu10k1_patch.c emu = rec->hw; rec 200 sound/pci/emu10k1/emu10k1_patch.c snd_emu10k1_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, rec 205 sound/pci/emu10k1/emu10k1_patch.c emu = rec->hw; rec 1601 sound/pci/emu10k1/emupcm.c struct snd_pcm_indirect *rec, size_t bytes) rec 1606 sound/pci/emu10k1/emupcm.c unsigned short *src = (unsigned short *)(substream->runtime->dma_area + rec->sw_data); rec 1461 sound/pci/intel8x0.c struct ich_pcm_table *rec) rec 1467 sound/pci/intel8x0.c if (rec->suffix) rec 1468 sound/pci/intel8x0.c sprintf(name, "Intel ICH - %s", rec->suffix); rec 1472 sound/pci/intel8x0.c rec->playback_ops ? 1 : 0, rec 1473 sound/pci/intel8x0.c rec->capture_ops ? 1 : 0, &pcm); rec 1477 sound/pci/intel8x0.c if (rec->playback_ops) rec 1478 sound/pci/intel8x0.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); rec 1479 sound/pci/intel8x0.c if (rec->capture_ops) rec 1480 sound/pci/intel8x0.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); rec 1484 sound/pci/intel8x0.c if (rec->suffix) rec 1485 sound/pci/intel8x0.c sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix); rec 1492 sound/pci/intel8x0.c rec->prealloc_size, rec->prealloc_max_size); rec 1494 sound/pci/intel8x0.c if (rec->playback_ops && rec 1495 sound/pci/intel8x0.c rec->playback_ops->open == snd_intel8x0_playback_open) { rec 1611 sound/pci/intel8x0.c struct ich_pcm_table *tbl, *rec; rec 1638 sound/pci/intel8x0.c rec = tbl + i; rec 1639 sound/pci/intel8x0.c if (i > 0 && rec->ac97_idx) { rec 1641 sound/pci/intel8x0.c if (! chip->ichd[rec->ac97_idx].pcm) rec 1644 sound/pci/intel8x0.c err = snd_intel8x0_pcm1(chip, device, rec); rec 706 sound/pci/intel8x0m.c struct ich_pcm_table *rec) rec 712 sound/pci/intel8x0m.c if (rec->suffix) rec 713 sound/pci/intel8x0m.c sprintf(name, "Intel ICH - %s", rec->suffix); rec 717 sound/pci/intel8x0m.c rec->playback_ops ? 1 : 0, rec 718 sound/pci/intel8x0m.c rec->capture_ops ? 1 : 0, &pcm); rec 722 sound/pci/intel8x0m.c if (rec->playback_ops) rec 723 sound/pci/intel8x0m.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); rec 724 sound/pci/intel8x0m.c if (rec->capture_ops) rec 725 sound/pci/intel8x0m.c snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); rec 730 sound/pci/intel8x0m.c if (rec->suffix) rec 731 sound/pci/intel8x0m.c sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix); rec 738 sound/pci/intel8x0m.c rec->prealloc_size, rec 739 sound/pci/intel8x0m.c rec->prealloc_max_size); rec 757 sound/pci/intel8x0m.c struct ich_pcm_table *tbl, *rec; rec 780 sound/pci/intel8x0m.c rec = tbl + i; rec 781 sound/pci/intel8x0m.c if (i > 0 && rec->ac97_idx) { rec 783 sound/pci/intel8x0m.c if (! chip->ichd[rec->ac97_idx].ac97) rec 786 sound/pci/intel8x0m.c err = snd_intel8x0m_pcm1(chip, device, rec); rec 1137 sound/pci/rme32.c struct snd_pcm_indirect *rec, size_t bytes) rec 1140 sound/pci/rme32.c memcpy_toio(rme32->iobase + RME32_IO_DATA_BUFFER + rec->hw_data, rec 1141 sound/pci/rme32.c substream->runtime->dma_area + rec->sw_data, bytes); rec 1147 sound/pci/rme32.c struct snd_pcm_indirect *rec, *cprec; rec 1149 sound/pci/rme32.c rec = &rme32->playback_pcm; rec 1152 sound/pci/rme32.c rec->hw_queue_size = RME32_BUFFER_SIZE; rec 1154 sound/pci/rme32.c rec->hw_queue_size -= cprec->hw_ready; rec 1156 sound/pci/rme32.c return snd_pcm_indirect_playback_transfer(substream, rec, rec 1161 sound/pci/rme32.c struct snd_pcm_indirect *rec, size_t bytes) rec 1164 sound/pci/rme32.c memcpy_fromio(substream->runtime->dma_area + rec->sw_data, rec 1165 sound/pci/rme32.c rme32->iobase + RME32_IO_DATA_BUFFER + rec->hw_data, rec 1005 sound/pci/via82xx.c static int via_lock_rate(struct via_rate_lock *rec, int rate) rec 1009 sound/pci/via82xx.c spin_lock_irq(&rec->lock); rec 1010 sound/pci/via82xx.c if (rec->rate != rate) { rec 1011 sound/pci/via82xx.c if (rec->rate && rec->used > 1) /* already set */ rec 1014 sound/pci/via82xx.c rec->rate = rate; rec 1018 sound/pci/via82xx.c spin_unlock_irq(&rec->lock); rec 50 sound/ppc/pmac.c static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) rec 54 sound/ppc/pmac.c rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, rec 55 sound/ppc/pmac.c &rec->dma_base, GFP_KERNEL); rec 56 sound/ppc/pmac.c if (rec->space == NULL) rec 58 sound/ppc/pmac.c rec->size = size; rec 59 sound/ppc/pmac.c memset(rec->space, 0, rsize); rec 60 sound/ppc/pmac.c rec->cmds = (void __iomem *)DBDMA_ALIGN(rec->space); rec 61 sound/ppc/pmac.c rec->addr = rec->dma_base + (unsigned long)((char *)rec->cmds - (char *)rec->space); rec 66 sound/ppc/pmac.c static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) rec 68 sound/ppc/pmac.c if (rec->space) { rec 69 sound/ppc/pmac.c unsigned int rsize = sizeof(struct dbdma_cmd) * (rec->size + 1); rec 71 sound/ppc/pmac.c dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); rec 84 sound/ppc/pmac.c unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) rec 88 sound/ppc/pmac.c ok = rec->cur_freqs; rec 148 sound/ppc/pmac.c snd_pmac_wait_ack(struct pmac_stream *rec) rec 151 sound/ppc/pmac.c while ((in_le32(&rec->dma->status) & RUN) && timeout-- > 0) rec 171 sound/ppc/pmac.c static inline void snd_pmac_dma_stop(struct pmac_stream *rec) rec 173 sound/ppc/pmac.c out_le32(&rec->dma->control, (RUN|WAKE|FLUSH|PAUSE) << 16); rec 174 sound/ppc/pmac.c snd_pmac_wait_ack(rec); rec 180 sound/ppc/pmac.c static inline void snd_pmac_dma_set_command(struct pmac_stream *rec, struct pmac_dbdma *cmd) rec 182 sound/ppc/pmac.c out_le32(&rec->dma->cmdptr, cmd->addr); rec 188 sound/ppc/pmac.c static inline void snd_pmac_dma_run(struct pmac_stream *rec, int status) rec 190 sound/ppc/pmac.c out_le32(&rec->dma->control, status | (status << 16)); rec 197 sound/ppc/pmac.c static int snd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) rec 206 sound/ppc/pmac.c rec->dma_size = snd_pcm_lib_buffer_bytes(subs); rec 207 sound/ppc/pmac.c rec->period_size = snd_pcm_lib_period_bytes(subs); rec 208 sound/ppc/pmac.c rec->nperiods = rec->dma_size / rec->period_size; rec 209 sound/ppc/pmac.c rec->cur_period = 0; rec 210 sound/ppc/pmac.c rate_index = snd_pmac_rate_index(chip, rec, runtime->rate); rec 213 sound/ppc/pmac.c astr = snd_pmac_get_stream(chip, another_stream(rec->stream)); rec 228 sound/ppc/pmac.c snd_pmac_dma_stop(rec); rec 230 sound/ppc/pmac.c snd_pmac_dma_set_command(rec, &chip->extra_dma); rec 231 sound/ppc/pmac.c snd_pmac_dma_run(rec, RUN); rec 239 sound/ppc/pmac.c for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) { rec 241 sound/ppc/pmac.c cp->req_count = cpu_to_le16(rec->period_size); rec 244 sound/ppc/pmac.c offset += rec->period_size; rec 248 sound/ppc/pmac.c cp->cmd_dep = cpu_to_le32(rec->cmd.addr); rec 250 sound/ppc/pmac.c snd_pmac_dma_stop(rec); rec 251 sound/ppc/pmac.c snd_pmac_dma_set_command(rec, &rec->cmd); rec 261 sound/ppc/pmac.c static int snd_pmac_pcm_trigger(struct snd_pmac *chip, struct pmac_stream *rec, rec 270 sound/ppc/pmac.c if (rec->running) rec 277 sound/ppc/pmac.c for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) rec 279 sound/ppc/pmac.c snd_pmac_dma_set_command(rec, &rec->cmd); rec 280 sound/ppc/pmac.c (void)in_le32(&rec->dma->status); rec 281 sound/ppc/pmac.c snd_pmac_dma_run(rec, RUN|WAKE); rec 282 sound/ppc/pmac.c rec->running = 1; rec 289 sound/ppc/pmac.c rec->running = 0; rec 291 sound/ppc/pmac.c snd_pmac_dma_stop(rec); rec 292 sound/ppc/pmac.c for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) rec 309 sound/ppc/pmac.c struct pmac_stream *rec, rec 316 sound/ppc/pmac.c volatile struct dbdma_cmd __iomem *cp = &rec->cmd.cmds[rec->cur_period]; rec 321 sound/ppc/pmac.c count = rec->period_size - count; rec 324 sound/ppc/pmac.c count += rec->cur_period * rec->period_size; rec 399 sound/ppc/pmac.c static inline void snd_pmac_pcm_dead_xfer(struct pmac_stream *rec, rec 409 sound/ppc/pmac.c (void)in_le32(&rec->dma->status); rec 410 sound/ppc/pmac.c out_le32(&rec->dma->control, (RUN|PAUSE|FLUSH|WAKE) << 16); rec 417 sound/ppc/pmac.c cp->req_count = cpu_to_le16(rec->period_size); rec 432 sound/ppc/pmac.c cp->cmd_dep = cpu_to_le32(rec->cmd.addr rec 433 sound/ppc/pmac.c + sizeof(struct dbdma_cmd)*((rec->cur_period+1)%rec->nperiods)); rec 438 sound/ppc/pmac.c out_le32(&rec->dma->cmdptr, emergency_dbdma.addr); rec 441 sound/ppc/pmac.c (void)in_le32(&rec->dma->status); rec 443 sound/ppc/pmac.c out_le32(&rec->dma->control, ((RUN|WAKE) << 16) + (RUN|WAKE)); rec 449 sound/ppc/pmac.c static void snd_pmac_pcm_update(struct snd_pmac *chip, struct pmac_stream *rec) rec 456 sound/ppc/pmac.c if (rec->running) { rec 457 sound/ppc/pmac.c for (c = 0; c < rec->nperiods; c++) { /* at most all fragments */ rec 462 sound/ppc/pmac.c cp = &rec->cmd.cmds[rec->cur_period]; rec 467 sound/ppc/pmac.c snd_pmac_pcm_dead_xfer(rec, cp); rec 479 sound/ppc/pmac.c cp->req_count = cpu_to_le16(rec->period_size); rec 481 sound/ppc/pmac.c rec->cur_period++; rec 482 sound/ppc/pmac.c if (rec->cur_period >= rec->nperiods) { rec 483 sound/ppc/pmac.c rec->cur_period = 0; rec 487 sound/ppc/pmac.c snd_pcm_period_elapsed(rec->substream); rec 543 sound/ppc/pmac.c struct pmac_stream *rec = snd_pmac_get_stream(chip, rule->deps[0]); rec 546 sound/ppc/pmac.c if (! rec) rec 550 sound/ppc/pmac.c if (rec->cur_freqs & (1 << i)) rec 562 sound/ppc/pmac.c struct pmac_stream *rec = snd_pmac_get_stream(chip, rule->deps[0]); rec 564 sound/ppc/pmac.c if (! rec) rec 567 sound/ppc/pmac.c rec->cur_formats); rec 571 sound/ppc/pmac.c static int snd_pmac_pcm_open(struct snd_pmac *chip, struct pmac_stream *rec, rec 603 sound/ppc/pmac.c runtime->private_data = rec; rec 604 sound/ppc/pmac.c rec->substream = subs; rec 608 sound/ppc/pmac.c snd_pmac_hw_rule_rate, chip, rec->stream, -1); rec 610 sound/ppc/pmac.c snd_pmac_hw_rule_format, chip, rec->stream, -1); rec 613 sound/ppc/pmac.c runtime->hw.periods_max = rec->cmd.size - 1; rec 620 sound/ppc/pmac.c static int snd_pmac_pcm_close(struct snd_pmac *chip, struct pmac_stream *rec, rec 625 sound/ppc/pmac.c snd_pmac_dma_stop(rec); rec 627 sound/ppc/pmac.c astr = snd_pmac_get_stream(chip, another_stream(rec->stream)); rec 746 sound/ppc/pmac.c struct pmac_stream *rec = &chip->playback; rec 748 sound/ppc/pmac.c snd_pmac_dma_stop(rec); rec 758 sound/ppc/pmac.c snd_pmac_dma_set_command(rec, &chip->extra_dma); rec 759 sound/ppc/pmac.c snd_pmac_dma_run(rec, RUN); rec 162 sound/ppc/pmac.h unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate); rec 351 sound/soc/codecs/wm0010.c const struct dfw_binrec *rec; rec 366 sound/soc/codecs/wm0010.c rec = (const struct dfw_binrec *)fw->data; rec 367 sound/soc/codecs/wm0010.c inforec = (const struct dfw_inforec *)rec->data; rec 376 sound/soc/codecs/wm0010.c if (rec->command != DFW_CMD_INFO) { rec 401 sound/soc/codecs/wm0010.c offset += ((rec->length) + 8); rec 402 sound/soc/codecs/wm0010.c rec = (void *)&rec->data[rec->length]; rec 407 sound/soc/codecs/wm0010.c rec->command, rec->length); rec 408 sound/soc/codecs/wm0010.c len = rec->length + 8; rec 433 sound/soc/codecs/wm0010.c byte_swap_64((u64 *)&rec->command, img, len); rec 456 sound/soc/codecs/wm0010.c offset += ((rec->length) + 8); rec 457 sound/soc/codecs/wm0010.c rec = (void *)&rec->data[rec->length]; rec 209 sound/usb/6fire/firmware.c struct ihex_record *rec = kmalloc(sizeof(struct ihex_record), rec 212 sound/usb/6fire/firmware.c if (!rec) rec 217 sound/usb/6fire/firmware.c kfree(rec); rec 222 sound/usb/6fire/firmware.c ret = usb6fire_fw_ihex_init(fw, rec); rec 224 sound/usb/6fire/firmware.c kfree(rec); rec 234 sound/usb/6fire/firmware.c kfree(rec); rec 242 sound/usb/6fire/firmware.c while (usb6fire_fw_ihex_next_record(rec)) { /* write firmware */ rec 243 sound/usb/6fire/firmware.c ret = usb6fire_fw_ezusb_write(device, 0xa0, rec->address, rec 244 sound/usb/6fire/firmware.c rec->data, rec->len); rec 246 sound/usb/6fire/firmware.c kfree(rec); rec 256 sound/usb/6fire/firmware.c kfree(rec); rec 7 tools/build/feature/test-jvmti-cmlr.c jvmtiCompiledMethodLoadInlineRecord rec __attribute__((unused)); rec 3119 tools/lib/bpf/libbpf.c const struct bpf_offset_reloc *rec; rec 3162 tools/lib/bpf/libbpf.c for_each_btf_ext_rec(seg, sec, i, rec) { rec 3163 tools/lib/bpf/libbpf.c err = bpf_core_reloc_offset(prog, rec, i, obj->btf, rec 87 tools/lib/bpf/libbpf_internal.h #define for_each_btf_ext_rec(seg, sec, i, rec) \ rec 88 tools/lib/bpf/libbpf_internal.h for (i = 0, rec = (void *)&(sec)->data; \ rec 90 tools/lib/bpf/libbpf_internal.h i++, rec = (void *)rec + (seg)->rec_size) rec 5310 tools/lib/traceevent/event-parse.c int tep_data_type(struct tep_handle *tep, struct tep_record *rec) rec 5312 tools/lib/traceevent/event-parse.c return trace_parse_common_type(tep, rec->data); rec 5322 tools/lib/traceevent/event-parse.c int tep_data_pid(struct tep_handle *tep, struct tep_record *rec) rec 5324 tools/lib/traceevent/event-parse.c return parse_common_pid(tep, rec->data); rec 5334 tools/lib/traceevent/event-parse.c int tep_data_preempt_count(struct tep_handle *tep, struct tep_record *rec) rec 5336 tools/lib/traceevent/event-parse.c return parse_common_pc(tep, rec->data); rec 5348 tools/lib/traceevent/event-parse.c int tep_data_flags(struct tep_handle *tep, struct tep_record *rec) rec 5350 tools/lib/traceevent/event-parse.c return parse_common_flags(tep, rec->data); rec 529 tools/lib/traceevent/event-parse.h int tep_data_type(struct tep_handle *tep, struct tep_record *rec); rec 530 tools/lib/traceevent/event-parse.h int tep_data_pid(struct tep_handle *tep, struct tep_record *rec); rec 531 tools/lib/traceevent/event-parse.h int tep_data_preempt_count(struct tep_handle *tep, struct tep_record *rec); rec 532 tools/lib/traceevent/event-parse.h int tep_data_flags(struct tep_handle *tep, struct tep_record *rec); rec 104 tools/perf/builtin-record.c static bool switch_output_signal(struct record *rec) rec 106 tools/perf/builtin-record.c return rec->switch_output.signal && rec 110 tools/perf/builtin-record.c static bool switch_output_size(struct record *rec) rec 112 tools/perf/builtin-record.c return rec->switch_output.size && rec 114 tools/perf/builtin-record.c (rec->bytes_written >= rec->switch_output.size); rec 117 tools/perf/builtin-record.c static bool switch_output_time(struct record *rec) rec 119 tools/perf/builtin-record.c return rec->switch_output.time && rec 123 tools/perf/builtin-record.c static int record__write(struct record *rec, struct mmap *map __maybe_unused, rec 126 tools/perf/builtin-record.c struct perf_data_file *file = &rec->session->data->file; rec 133 tools/perf/builtin-record.c rec->bytes_written += size; rec 135 tools/perf/builtin-record.c if (switch_output_size(rec)) rec 141 tools/perf/builtin-record.c static int record__aio_enabled(struct record *rec); rec 142 tools/perf/builtin-record.c static int record__comp_enabled(struct record *rec); rec 254 tools/perf/builtin-record.c struct record *rec; rec 277 tools/perf/builtin-record.c if (record__comp_enabled(aio->rec)) { rec 278 tools/perf/builtin-record.c size = zstd_compress(aio->rec->session, aio->data + aio->size, rec 304 tools/perf/builtin-record.c static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) rec 307 tools/perf/builtin-record.c int trace_fd = rec->session->data->file.fd; rec 308 tools/perf/builtin-record.c struct record_aio aio = { .rec = rec, .size = 0 }; rec 321 tools/perf/builtin-record.c rec->samples++; rec 325 tools/perf/builtin-record.c rec->bytes_written += aio.size; rec 326 tools/perf/builtin-record.c if (switch_output_size(rec)) rec 351 tools/perf/builtin-record.c static void record__aio_mmap_read_sync(struct record *rec) rec 354 tools/perf/builtin-record.c struct evlist *evlist = rec->evlist; rec 357 tools/perf/builtin-record.c if (!record__aio_enabled(rec)) rec 391 tools/perf/builtin-record.c static int record__aio_push(struct record *rec __maybe_unused, struct mmap *map __maybe_unused, rec 406 tools/perf/builtin-record.c static void record__aio_mmap_read_sync(struct record *rec __maybe_unused) rec 411 tools/perf/builtin-record.c static int record__aio_enabled(struct record *rec) rec 413 tools/perf/builtin-record.c return rec->opts.nr_cblocks > 0; rec 472 tools/perf/builtin-record.c static int record__comp_enabled(struct record *rec) rec 474 tools/perf/builtin-record.c return rec->opts.comp_level > 0; rec 482 tools/perf/builtin-record.c struct record *rec = container_of(tool, struct record, tool); rec 483 tools/perf/builtin-record.c return record__write(rec, NULL, event, event->header.size); rec 488 tools/perf/builtin-record.c struct record *rec = to; rec 490 tools/perf/builtin-record.c if (record__comp_enabled(rec)) { rec 491 tools/perf/builtin-record.c size = zstd_compress(rec->session, map->data, perf_mmap__mmap_len(map), bf, size); rec 495 tools/perf/builtin-record.c rec->samples++; rec 496 tools/perf/builtin-record.c return record__write(rec, map, bf, size); rec 535 tools/perf/builtin-record.c struct record *rec = container_of(tool, struct record, tool); rec 536 tools/perf/builtin-record.c struct perf_data *data = &rec->data; rec 548 tools/perf/builtin-record.c err = auxtrace_index__auxtrace_event(&rec->session->auxtrace_index, rec 559 tools/perf/builtin-record.c record__write(rec, map, event, event->header.size); rec 560 tools/perf/builtin-record.c record__write(rec, map, data1, len1); rec 562 tools/perf/builtin-record.c record__write(rec, map, data2, len2); rec 563 tools/perf/builtin-record.c record__write(rec, map, &pad, padding); rec 568 tools/perf/builtin-record.c static int record__auxtrace_mmap_read(struct record *rec, rec 573 tools/perf/builtin-record.c ret = auxtrace_mmap__read(map, rec->itr, &rec->tool, rec 579 tools/perf/builtin-record.c rec->samples++; rec 584 tools/perf/builtin-record.c static int record__auxtrace_mmap_read_snapshot(struct record *rec, rec 589 tools/perf/builtin-record.c ret = auxtrace_mmap__read_snapshot(map, rec->itr, &rec->tool, rec 591 tools/perf/builtin-record.c rec->opts.auxtrace_snapshot_size); rec 596 tools/perf/builtin-record.c rec->samples++; rec 601 tools/perf/builtin-record.c static int record__auxtrace_read_snapshot_all(struct record *rec) rec 606 tools/perf/builtin-record.c for (i = 0; i < rec->evlist->core.nr_mmaps; i++) { rec 607 tools/perf/builtin-record.c struct mmap *map = &rec->evlist->mmap[i]; rec 612 tools/perf/builtin-record.c if (record__auxtrace_mmap_read_snapshot(rec, map) != 0) { rec 621 tools/perf/builtin-record.c static void record__read_auxtrace_snapshot(struct record *rec, bool on_exit) rec 624 tools/perf/builtin-record.c if (record__auxtrace_read_snapshot_all(rec) < 0) { rec 627 tools/perf/builtin-record.c if (auxtrace_record__snapshot_finish(rec->itr, on_exit)) rec 634 tools/perf/builtin-record.c static int record__auxtrace_snapshot_exit(struct record *rec) rec 640 tools/perf/builtin-record.c auxtrace_record__snapshot_start(rec->itr)) rec 643 tools/perf/builtin-record.c record__read_auxtrace_snapshot(rec, true); rec 650 tools/perf/builtin-record.c static int record__auxtrace_init(struct record *rec) rec 654 tools/perf/builtin-record.c if (!rec->itr) { rec 655 tools/perf/builtin-record.c rec->itr = auxtrace_record__init(rec->evlist, &err); rec 660 tools/perf/builtin-record.c err = auxtrace_parse_snapshot_options(rec->itr, &rec->opts, rec 661 tools/perf/builtin-record.c rec->opts.auxtrace_snapshot_opts); rec 665 tools/perf/builtin-record.c return auxtrace_parse_filters(rec->evlist); rec 671 tools/perf/builtin-record.c int record__auxtrace_mmap_read(struct record *rec __maybe_unused, rec 678 tools/perf/builtin-record.c void record__read_auxtrace_snapshot(struct record *rec __maybe_unused, rec 690 tools/perf/builtin-record.c int record__auxtrace_snapshot_exit(struct record *rec __maybe_unused) rec 695 tools/perf/builtin-record.c static int record__auxtrace_init(struct record *rec __maybe_unused) rec 702 tools/perf/builtin-record.c static int record__mmap_evlist(struct record *rec, rec 705 tools/perf/builtin-record.c struct record_opts *opts = &rec->opts; rec 736 tools/perf/builtin-record.c static int record__mmap(struct record *rec) rec 738 tools/perf/builtin-record.c return record__mmap_evlist(rec, rec->evlist); rec 741 tools/perf/builtin-record.c static int record__open(struct record *rec) rec 745 tools/perf/builtin-record.c struct evlist *evlist = rec->evlist; rec 746 tools/perf/builtin-record.c struct perf_session *session = rec->session; rec 747 tools/perf/builtin-record.c struct record_opts *opts = &rec->opts; rec 811 tools/perf/builtin-record.c rc = record__mmap(rec); rec 827 tools/perf/builtin-record.c struct record *rec = container_of(tool, struct record, tool); rec 829 tools/perf/builtin-record.c if (rec->evlist->first_sample_time == 0) rec 830 tools/perf/builtin-record.c rec->evlist->first_sample_time = sample->time; rec 832 tools/perf/builtin-record.c rec->evlist->last_sample_time = sample->time; rec 834 tools/perf/builtin-record.c if (rec->buildid_all) rec 837 tools/perf/builtin-record.c rec->samples++; rec 841 tools/perf/builtin-record.c static int process_buildids(struct record *rec) rec 843 tools/perf/builtin-record.c struct perf_session *session = rec->session; rec 845 tools/perf/builtin-record.c if (perf_data__size(&rec->data) == 0) rec 865 tools/perf/builtin-record.c if (rec->buildid_all && !rec->timestamp_boundary) rec 866 tools/perf/builtin-record.c rec->tool.sample = NULL; rec 905 tools/perf/builtin-record.c static void record__adjust_affinity(struct record *rec, struct mmap *map) rec 907 tools/perf/builtin-record.c if (rec->opts.affinity != PERF_AFFINITY_SYS && rec 908 tools/perf/builtin-record.c !CPU_EQUAL(&rec->affinity_mask, &map->affinity_mask)) { rec 909 tools/perf/builtin-record.c CPU_ZERO(&rec->affinity_mask); rec 910 tools/perf/builtin-record.c CPU_OR(&rec->affinity_mask, &rec->affinity_mask, &map->affinity_mask); rec 911 tools/perf/builtin-record.c sched_setaffinity(0, sizeof(rec->affinity_mask), &rec->affinity_mask); rec 946 tools/perf/builtin-record.c static int record__mmap_read_evlist(struct record *rec, struct evlist *evlist, rec 949 tools/perf/builtin-record.c u64 bytes_written = rec->bytes_written; rec 953 tools/perf/builtin-record.c int trace_fd = rec->data.file.fd; rec 966 tools/perf/builtin-record.c if (record__aio_enabled(rec)) rec 974 tools/perf/builtin-record.c record__adjust_affinity(rec, map); rec 979 tools/perf/builtin-record.c if (!record__aio_enabled(rec)) { rec 980 tools/perf/builtin-record.c if (perf_mmap__push(map, rec, record__pushfn) < 0) { rec 987 tools/perf/builtin-record.c if (record__aio_push(rec, map, &off) < 0) { rec 999 tools/perf/builtin-record.c if (map->auxtrace_mmap.base && !rec->opts.auxtrace_snapshot_mode && rec 1000 tools/perf/builtin-record.c record__auxtrace_mmap_read(rec, map) != 0) { rec 1006 tools/perf/builtin-record.c if (record__aio_enabled(rec)) rec 1013 tools/perf/builtin-record.c if (bytes_written != rec->bytes_written) rec 1014 tools/perf/builtin-record.c rc = record__write(rec, NULL, &finished_round_event, sizeof(finished_round_event)); rec 1022 tools/perf/builtin-record.c static int record__mmap_read_all(struct record *rec, bool synch) rec 1026 tools/perf/builtin-record.c err = record__mmap_read_evlist(rec, rec->evlist, false, synch); rec 1030 tools/perf/builtin-record.c return record__mmap_read_evlist(rec, rec->evlist, true, synch); rec 1033 tools/perf/builtin-record.c static void record__init_features(struct record *rec) rec 1035 tools/perf/builtin-record.c struct perf_session *session = rec->session; rec 1041 tools/perf/builtin-record.c if (rec->no_buildid) rec 1044 tools/perf/builtin-record.c if (!have_tracepoints(&rec->evlist->core.entries)) rec 1047 tools/perf/builtin-record.c if (!rec->opts.branch_stack) rec 1050 tools/perf/builtin-record.c if (!rec->opts.full_auxtrace) rec 1053 tools/perf/builtin-record.c if (!(rec->opts.use_clockid && rec->opts.clockid_res_ns)) rec 1057 tools/perf/builtin-record.c if (!record__comp_enabled(rec)) rec 1064 tools/perf/builtin-record.c record__finish_output(struct record *rec) rec 1066 tools/perf/builtin-record.c struct perf_data *data = &rec->data; rec 1072 tools/perf/builtin-record.c rec->session->header.data_size += rec->bytes_written; rec 1075 tools/perf/builtin-record.c if (!rec->no_buildid) { rec 1076 tools/perf/builtin-record.c process_buildids(rec); rec 1078 tools/perf/builtin-record.c if (rec->buildid_all) rec 1079 tools/perf/builtin-record.c dsos__hit_all(rec->session); rec 1081 tools/perf/builtin-record.c perf_session__write_header(rec->session, rec->evlist, fd, true); rec 1086 tools/perf/builtin-record.c static int record__synthesize_workload(struct record *rec, bool tail) rec 1091 tools/perf/builtin-record.c if (rec->opts.tail_synthesize != tail) rec 1094 tools/perf/builtin-record.c thread_map = thread_map__new_by_tid(rec->evlist->workload.pid); rec 1098 tools/perf/builtin-record.c err = perf_event__synthesize_thread_map(&rec->tool, thread_map, rec 1100 tools/perf/builtin-record.c &rec->session->machines.host, rec 1101 tools/perf/builtin-record.c rec->opts.sample_address); rec 1106 tools/perf/builtin-record.c static int record__synthesize(struct record *rec, bool tail); rec 1109 tools/perf/builtin-record.c record__switch_output(struct record *rec, bool at_exit) rec 1111 tools/perf/builtin-record.c struct perf_data *data = &rec->data; rec 1118 tools/perf/builtin-record.c record__aio_mmap_read_sync(rec); rec 1120 tools/perf/builtin-record.c record__synthesize(rec, true); rec 1121 tools/perf/builtin-record.c if (target__none(&rec->opts.target)) rec 1122 tools/perf/builtin-record.c record__synthesize_workload(rec, true); rec 1124 tools/perf/builtin-record.c rec->samples = 0; rec 1125 tools/perf/builtin-record.c record__finish_output(rec); rec 1133 tools/perf/builtin-record.c rec->session->header.data_offset, rec 1136 tools/perf/builtin-record.c rec->bytes_written = 0; rec 1137 tools/perf/builtin-record.c rec->session->header.data_size = 0; rec 1144 tools/perf/builtin-record.c if (rec->switch_output.num_files) { rec 1145 tools/perf/builtin-record.c int n = rec->switch_output.cur_file + 1; rec 1147 tools/perf/builtin-record.c if (n >= rec->switch_output.num_files) rec 1149 tools/perf/builtin-record.c rec->switch_output.cur_file = n; rec 1150 tools/perf/builtin-record.c if (rec->switch_output.filenames[n]) { rec 1151 tools/perf/builtin-record.c remove(rec->switch_output.filenames[n]); rec 1152 tools/perf/builtin-record.c zfree(&rec->switch_output.filenames[n]); rec 1154 tools/perf/builtin-record.c rec->switch_output.filenames[n] = new_filename; rec 1161 tools/perf/builtin-record.c record__synthesize(rec, false); rec 1172 tools/perf/builtin-record.c if (target__none(&rec->opts.target)) rec 1173 tools/perf/builtin-record.c record__synthesize_workload(rec, false); rec 1209 tools/perf/builtin-record.c static const struct perf_event_mmap_page *record__pick_pc(struct record *rec) rec 1213 tools/perf/builtin-record.c pc = perf_evlist__pick_pc(rec->evlist); rec 1219 tools/perf/builtin-record.c static int record__synthesize(struct record *rec, bool tail) rec 1221 tools/perf/builtin-record.c struct perf_session *session = rec->session; rec 1223 tools/perf/builtin-record.c struct perf_data *data = &rec->data; rec 1224 tools/perf/builtin-record.c struct record_opts *opts = &rec->opts; rec 1225 tools/perf/builtin-record.c struct perf_tool *tool = &rec->tool; rec 1229 tools/perf/builtin-record.c if (rec->opts.tail_synthesize != tail) rec 1237 tools/perf/builtin-record.c err = perf_event__synthesize_attrs(tool, rec->evlist, rec 1244 tools/perf/builtin-record.c err = perf_event__synthesize_features(tool, session, rec->evlist, rec 1251 tools/perf/builtin-record.c if (have_tracepoints(&rec->evlist->core.entries)) { rec 1260 tools/perf/builtin-record.c err = perf_event__synthesize_tracing_data(tool, fd, rec->evlist, rec 1266 tools/perf/builtin-record.c rec->bytes_written += err; rec 1270 tools/perf/builtin-record.c err = perf_event__synth_time_conv(record__pick_pc(rec), tool, rec 1275 tools/perf/builtin-record.c if (rec->opts.full_auxtrace) { rec 1276 tools/perf/builtin-record.c err = perf_event__synthesize_auxtrace_info(rec->itr, tool, rec 1282 tools/perf/builtin-record.c if (!perf_evlist__exclude_kernel(rec->evlist)) { rec 1301 tools/perf/builtin-record.c err = perf_event__synthesize_extra_attr(&rec->tool, rec 1302 tools/perf/builtin-record.c rec->evlist, rec 1308 tools/perf/builtin-record.c err = perf_event__synthesize_thread_map2(&rec->tool, rec->evlist->core.threads, rec 1316 tools/perf/builtin-record.c err = perf_event__synthesize_cpu_map(&rec->tool, rec->evlist->core.cpus, rec 1328 tools/perf/builtin-record.c err = __machine__synthesize_threads(machine, tool, &opts->target, rec->evlist->core.threads, rec 1335 tools/perf/builtin-record.c static int __cmd_record(struct record *rec, int argc, const char **argv) rec 1341 tools/perf/builtin-record.c struct perf_tool *tool = &rec->tool; rec 1342 tools/perf/builtin-record.c struct record_opts *opts = &rec->opts; rec 1343 tools/perf/builtin-record.c struct perf_data *data = &rec->data; rec 1356 tools/perf/builtin-record.c if (rec->opts.record_namespaces) rec 1359 tools/perf/builtin-record.c if (rec->opts.auxtrace_snapshot_mode || rec->switch_output.enabled) { rec 1361 tools/perf/builtin-record.c if (rec->opts.auxtrace_snapshot_mode) rec 1363 tools/perf/builtin-record.c if (rec->switch_output.enabled) rec 1376 tools/perf/builtin-record.c rec->session = session; rec 1378 tools/perf/builtin-record.c if (zstd_init(&session->zstd_data, rec->opts.comp_level) < 0) { rec 1384 tools/perf/builtin-record.c session->header.env.comp_level = rec->opts.comp_level; rec 1386 tools/perf/builtin-record.c record__init_features(rec); rec 1388 tools/perf/builtin-record.c if (rec->opts.use_clockid && rec->opts.clockid_res_ns) rec 1389 tools/perf/builtin-record.c session->header.env.clockid_res_ns = rec->opts.clockid_res_ns; rec 1392 tools/perf/builtin-record.c err = perf_evlist__prepare_workload(rec->evlist, &opts->target, rec 1408 tools/perf/builtin-record.c if (data->is_pipe && rec->evlist->core.nr_entries == 1) rec 1409 tools/perf/builtin-record.c rec->opts.sample_id = true; rec 1411 tools/perf/builtin-record.c if (record__open(rec) != 0) { rec 1431 tools/perf/builtin-record.c if (rec->tool.ordered_events && !perf_evlist__sample_id_all(rec->evlist)) { rec 1433 tools/perf/builtin-record.c rec->tool.ordered_events = false; rec 1436 tools/perf/builtin-record.c if (!rec->evlist->nr_groups) rec 1444 tools/perf/builtin-record.c err = perf_session__write_header(session, rec->evlist, fd, false); rec 1449 tools/perf/builtin-record.c if (!rec->no_buildid rec 1460 tools/perf/builtin-record.c if (perf_evlist__start_sb_thread(sb_evlist, &rec->opts.target)) { rec 1465 tools/perf/builtin-record.c err = record__synthesize(rec, false); rec 1469 tools/perf/builtin-record.c if (rec->realtime_prio) { rec 1472 tools/perf/builtin-record.c param.sched_priority = rec->realtime_prio; rec 1486 tools/perf/builtin-record.c evlist__enable(rec->evlist); rec 1509 tools/perf/builtin-record.c rec->evlist->workload.pid, rec 1529 tools/perf/builtin-record.c rec->evlist->workload.pid, rec 1534 tools/perf/builtin-record.c perf_evlist__start_workload(rec->evlist); rec 1539 tools/perf/builtin-record.c evlist__enable(rec->evlist); rec 1546 tools/perf/builtin-record.c unsigned long long hits = rec->samples; rec 1557 tools/perf/builtin-record.c perf_evlist__toggle_bkw_mmap(rec->evlist, BKW_MMAP_DATA_PENDING); rec 1559 tools/perf/builtin-record.c if (record__mmap_read_all(rec, false) < 0) { rec 1569 tools/perf/builtin-record.c record__read_auxtrace_snapshot(rec, false); rec 1587 tools/perf/builtin-record.c if (rec->evlist->bkw_mmap_state == BKW_MMAP_RUNNING) rec 1596 tools/perf/builtin-record.c perf_evlist__toggle_bkw_mmap(rec->evlist, BKW_MMAP_RUNNING); rec 1602 tools/perf/builtin-record.c fd = record__switch_output(rec, false); rec 1611 tools/perf/builtin-record.c if (rec->switch_output.time) rec 1612 tools/perf/builtin-record.c alarm(rec->switch_output.time); rec 1615 tools/perf/builtin-record.c if (hits == rec->samples) { rec 1618 tools/perf/builtin-record.c err = evlist__poll(rec->evlist, -1); rec 1627 tools/perf/builtin-record.c if (evlist__filter_pollfd(rec->evlist, POLLERR | POLLHUP) == 0) rec 1638 tools/perf/builtin-record.c evlist__disable(rec->evlist); rec 1647 tools/perf/builtin-record.c record__auxtrace_snapshot_exit(rec); rec 1660 tools/perf/builtin-record.c if (target__none(&rec->opts.target)) rec 1661 tools/perf/builtin-record.c record__synthesize_workload(rec, true); rec 1664 tools/perf/builtin-record.c record__mmap_read_all(rec, true); rec 1665 tools/perf/builtin-record.c record__aio_mmap_read_sync(rec); rec 1667 tools/perf/builtin-record.c if (rec->session->bytes_transferred && rec->session->bytes_compressed) { rec 1668 tools/perf/builtin-record.c ratio = (float)rec->session->bytes_transferred/(float)rec->session->bytes_compressed; rec 1676 tools/perf/builtin-record.c kill(rec->evlist->workload.pid, SIGTERM); rec 1689 tools/perf/builtin-record.c record__synthesize(rec, true); rec 1691 tools/perf/builtin-record.c rec->samples = 0; rec 1694 tools/perf/builtin-record.c if (!rec->timestamp_filename) { rec 1695 tools/perf/builtin-record.c record__finish_output(rec); rec 1697 tools/perf/builtin-record.c fd = record__switch_output(rec, true); rec 1709 tools/perf/builtin-record.c const char *postfix = rec->timestamp_filename ? rec 1712 tools/perf/builtin-record.c if (rec->samples && !rec->opts.full_auxtrace) rec 1714 tools/perf/builtin-record.c " (%" PRIu64 " samples)", rec->samples); rec 1723 tools/perf/builtin-record.c rec->session->bytes_transferred / 1024.0 / 1024.0, rec 1798 tools/perf/builtin-record.c struct record *rec = cb; rec 1802 tools/perf/builtin-record.c rec->no_buildid_cache = false; rec 1804 tools/perf/builtin-record.c rec->no_buildid_cache = true; rec 1806 tools/perf/builtin-record.c rec->no_buildid = true; rec 1817 tools/perf/builtin-record.c rec->opts.nr_cblocks = strtol(value, NULL, 0); rec 1818 tools/perf/builtin-record.c if (!rec->opts.nr_cblocks) rec 1819 tools/perf/builtin-record.c rec->opts.nr_cblocks = nr_cblocks_default; rec 1982 tools/perf/builtin-record.c static void switch_output_size_warn(struct record *rec) rec 1984 tools/perf/builtin-record.c u64 wakeup_size = evlist__mmap_size(rec->opts.mmap_pages); rec 1985 tools/perf/builtin-record.c struct switch_output *s = &rec->switch_output; rec 1999 tools/perf/builtin-record.c static int switch_output_setup(struct record *rec) rec 2001 tools/perf/builtin-record.c struct switch_output *s = &rec->switch_output; rec 2045 tools/perf/builtin-record.c rec->timestamp_filename = true; rec 2048 tools/perf/builtin-record.c if (s->size && !rec->opts.no_buffering) rec 2049 tools/perf/builtin-record.c switch_output_size_warn(rec); rec 2273 tools/perf/builtin-record.c struct record *rec = &record; rec 2299 tools/perf/builtin-record.c CPU_ZERO(&rec->affinity_mask); rec 2300 tools/perf/builtin-record.c rec->opts.affinity = PERF_AFFINITY_SYS; rec 2302 tools/perf/builtin-record.c rec->evlist = evlist__new(); rec 2303 tools/perf/builtin-record.c if (rec->evlist == NULL) rec 2306 tools/perf/builtin-record.c err = perf_config(perf_record_config, rec); rec 2316 tools/perf/builtin-record.c if (!argc && target__none(&rec->opts.target)) rec 2317 tools/perf/builtin-record.c rec->opts.target.system_wide = true; rec 2319 tools/perf/builtin-record.c if (nr_cgroups && !rec->opts.target.system_wide) { rec 2325 tools/perf/builtin-record.c if (rec->opts.comp_level != 0) { rec 2327 tools/perf/builtin-record.c rec->no_buildid = true; rec 2330 tools/perf/builtin-record.c if (rec->opts.record_switch_events && rec 2337 tools/perf/builtin-record.c if (switch_output_setup(rec)) { rec 2342 tools/perf/builtin-record.c if (rec->switch_output.time) { rec 2344 tools/perf/builtin-record.c alarm(rec->switch_output.time); rec 2347 tools/perf/builtin-record.c if (rec->switch_output.num_files) { rec 2348 tools/perf/builtin-record.c rec->switch_output.filenames = calloc(sizeof(char *), rec 2349 tools/perf/builtin-record.c rec->switch_output.num_files); rec 2350 tools/perf/builtin-record.c if (!rec->switch_output.filenames) rec 2362 tools/perf/builtin-record.c err = record__auxtrace_init(rec); rec 2369 tools/perf/builtin-record.c err = bpf__setup_stdout(rec->evlist); rec 2371 tools/perf/builtin-record.c bpf__strerror_setup_stdout(rec->evlist, err, errbuf, sizeof(errbuf)); rec 2379 tools/perf/builtin-record.c if (rec->no_buildid_cache || rec->no_buildid) { rec 2381 tools/perf/builtin-record.c } else if (rec->switch_output.enabled) { rec 2399 tools/perf/builtin-record.c if (rec->no_buildid_set && !rec->no_buildid) rec 2401 tools/perf/builtin-record.c if (rec->no_buildid_cache_set && !rec->no_buildid_cache) rec 2404 tools/perf/builtin-record.c rec->no_buildid = true; rec 2405 tools/perf/builtin-record.c rec->no_buildid_cache = true; rec 2413 tools/perf/builtin-record.c if (rec->evlist->core.nr_entries == 0 && rec 2414 tools/perf/builtin-record.c __perf_evlist__add_default(rec->evlist, !record.opts.no_samples) < 0) { rec 2419 tools/perf/builtin-record.c if (rec->opts.target.tid && !rec->opts.no_inherit_set) rec 2420 tools/perf/builtin-record.c rec->opts.no_inherit = true; rec 2422 tools/perf/builtin-record.c err = target__validate(&rec->opts.target); rec 2424 tools/perf/builtin-record.c target__strerror(&rec->opts.target, err, errbuf, BUFSIZ); rec 2428 tools/perf/builtin-record.c err = target__parse_uid(&rec->opts.target); rec 2432 tools/perf/builtin-record.c target__strerror(&rec->opts.target, err, errbuf, BUFSIZ); rec 2440 tools/perf/builtin-record.c rec->opts.ignore_missing_thread = rec->opts.target.uid != UINT_MAX || rec->opts.target.pid; rec 2443 tools/perf/builtin-record.c if (perf_evlist__create_maps(rec->evlist, &rec->opts.target) < 0) rec 2446 tools/perf/builtin-record.c err = auxtrace_record__options(rec->itr, rec->evlist, &rec->opts); rec 2455 tools/perf/builtin-record.c if (rec->opts.full_auxtrace) rec 2456 tools/perf/builtin-record.c rec->buildid_all = true; rec 2458 tools/perf/builtin-record.c if (record_opts__config(&rec->opts)) { rec 2463 tools/perf/builtin-record.c if (rec->opts.nr_cblocks > nr_cblocks_max) rec 2464 tools/perf/builtin-record.c rec->opts.nr_cblocks = nr_cblocks_max; rec 2465 tools/perf/builtin-record.c pr_debug("nr_cblocks: %d\n", rec->opts.nr_cblocks); rec 2467 tools/perf/builtin-record.c pr_debug("affinity: %s\n", affinity_tags[rec->opts.affinity]); rec 2468 tools/perf/builtin-record.c pr_debug("mmap flush: %d\n", rec->opts.mmap_flush); rec 2470 tools/perf/builtin-record.c if (rec->opts.comp_level > comp_level_max) rec 2471 tools/perf/builtin-record.c rec->opts.comp_level = comp_level_max; rec 2472 tools/perf/builtin-record.c pr_debug("comp level: %d\n", rec->opts.comp_level); rec 2476 tools/perf/builtin-record.c evlist__delete(rec->evlist); rec 2478 tools/perf/builtin-record.c auxtrace_record__free(rec->itr); rec 2484 tools/perf/builtin-record.c struct record *rec = &record; rec 2493 tools/perf/builtin-record.c if (switch_output_signal(rec)) rec 2499 tools/perf/builtin-record.c struct record *rec = &record; rec 2501 tools/perf/builtin-record.c if (switch_output_time(rec)) rec 333 tools/perf/jvmti/jvmti_agent.c struct jr_code_close rec; rec 341 tools/perf/jvmti/jvmti_agent.c rec.p.id = JIT_CODE_CLOSE; rec 342 tools/perf/jvmti/jvmti_agent.c rec.p.total_size = sizeof(rec); rec 344 tools/perf/jvmti/jvmti_agent.c rec.p.timestamp = perf_get_timestamp(); rec 346 tools/perf/jvmti/jvmti_agent.c if (!fwrite(&rec, sizeof(rec), 1, fp)) rec 363 tools/perf/jvmti/jvmti_agent.c struct jr_code_load rec; rec 379 tools/perf/jvmti/jvmti_agent.c rec.p.id = JIT_CODE_LOAD; rec 380 tools/perf/jvmti/jvmti_agent.c rec.p.total_size = sizeof(rec) + sym_len; rec 381 tools/perf/jvmti/jvmti_agent.c rec.p.timestamp = perf_get_timestamp(); rec 383 tools/perf/jvmti/jvmti_agent.c rec.code_size = size; rec 384 tools/perf/jvmti/jvmti_agent.c rec.vma = vma; rec 385 tools/perf/jvmti/jvmti_agent.c rec.code_addr = vma; rec 386 tools/perf/jvmti/jvmti_agent.c rec.pid = getpid(); rec 387 tools/perf/jvmti/jvmti_agent.c rec.tid = gettid(); rec 390 tools/perf/jvmti/jvmti_agent.c rec.p.total_size += size; rec 401 tools/perf/jvmti/jvmti_agent.c rec.code_index = code_generation++; rec 403 tools/perf/jvmti/jvmti_agent.c ret = fwrite_unlocked(&rec, sizeof(rec), 1, fp); rec 421 tools/perf/jvmti/jvmti_agent.c struct jr_code_debug_info rec; rec 442 tools/perf/jvmti/jvmti_agent.c rec.p.id = JIT_CODE_DEBUG_INFO; rec 443 tools/perf/jvmti/jvmti_agent.c size = sizeof(rec); rec 444 tools/perf/jvmti/jvmti_agent.c rec.p.timestamp = perf_get_timestamp(); rec 445 tools/perf/jvmti/jvmti_agent.c rec.code_addr = (uint64_t)(uintptr_t)code; rec 446 tools/perf/jvmti/jvmti_agent.c rec.nr_entry = nr_lines; rec 457 tools/perf/jvmti/jvmti_agent.c rec.p.total_size = size; rec 465 tools/perf/jvmti/jvmti_agent.c sret = fwrite_unlocked(&rec, sizeof(rec), 1, fp); rec 69 tools/perf/jvmti/libjvmti.c jvmtiCompiledMethodLoadInlineRecord *rec; rec 84 tools/perf/jvmti/libjvmti.c rec = (jvmtiCompiledMethodLoadInlineRecord *)hdr; rec 85 tools/perf/jvmti/libjvmti.c for (i = 0; i < rec->numpcs; i++) { rec 86 tools/perf/jvmti/libjvmti.c c = rec->pcinfo + i; rec 115 tools/perf/jvmti/libjvmti.c rec = (jvmtiCompiledMethodLoadInlineRecord *)hdr; rec 116 tools/perf/jvmti/libjvmti.c for (i = 0; i < rec->numpcs; i++) { rec 117 tools/perf/jvmti/libjvmti.c c = rec->pcinfo + i; rec 704 tools/perf/util/sort.c struct tep_record rec = { rec 717 tools/perf/util/sort.c &seq, &rec, "%s", TEP_PRINT_INFO); rec 688 tools/testing/selftests/x86/protection_keys.c struct pkey_malloc_record *rec = NULL; rec 691 tools/testing/selftests/x86/protection_keys.c rec = &pkey_malloc_records[i]; rec 693 tools/testing/selftests/x86/protection_keys.c if (rec) rec 696 tools/testing/selftests/x86/protection_keys.c if (!rec) { rec 705 tools/testing/selftests/x86/protection_keys.c rec = &pkey_malloc_records[nr_pkey_malloc_records]; rec 711 tools/testing/selftests/x86/protection_keys.c memset(rec + i, 0, sizeof(*rec)); rec 714 tools/testing/selftests/x86/protection_keys.c (int)(rec - pkey_malloc_records), rec, ptr, size); rec 715 tools/testing/selftests/x86/protection_keys.c rec->ptr = ptr; rec 716 tools/testing/selftests/x86/protection_keys.c rec->size = size; rec 717 tools/testing/selftests/x86/protection_keys.c rec->prot = prot; rec 718 tools/testing/selftests/x86/protection_keys.c pkey_last_malloc_record = rec; rec 728 tools/testing/selftests/x86/protection_keys.c struct pkey_malloc_record *rec = &pkey_malloc_records[i]; rec 730 tools/testing/selftests/x86/protection_keys.c ptr, i, rec, rec->ptr, rec->size); rec 731 tools/testing/selftests/x86/protection_keys.c if ((ptr < rec->ptr) || rec 732 tools/testing/selftests/x86/protection_keys.c (ptr >= rec->ptr + rec->size)) rec 736 tools/testing/selftests/x86/protection_keys.c ptr, i, rec, rec->ptr, rec->size); rec 738 tools/testing/selftests/x86/protection_keys.c ret = munmap(rec->ptr, rec->size); rec 741 tools/testing/selftests/x86/protection_keys.c dprintf3("clearing rec->ptr, rec: %p\n", rec); rec 742 tools/testing/selftests/x86/protection_keys.c rec->ptr = NULL; rec 743 tools/testing/selftests/x86/protection_keys.c dprintf3("done clearing rec->ptr, rec: %p\n", rec);