Lines Matching refs:count
158 static int count = DEFAULT_COUNT; variable
242 static enum ctype parse_cp_type(const char *what, size_t count) in parse_cp_type() argument
280 count = cpoint_count; in lkdtm_parse_commandline()
544 count--; in lkdtm_handler()
546 cp_name_to_str(cpoint), cp_type_to_str(cptype), count); in lkdtm_handler()
548 if (count == 0) { in lkdtm_handler()
550 count = cpoint_count; in lkdtm_handler()
622 const char __user *user_buf, size_t count, loff_t *off) in do_register_entry() argument
627 if (count >= PAGE_SIZE) in do_register_entry()
633 if (copy_from_user(buf, user_buf, count)) { in do_register_entry()
638 buf[count] = '\0'; in do_register_entry()
641 cptype = parse_cp_type(buf, count); in do_register_entry()
651 *off += count; in do_register_entry()
653 return count; in do_register_entry()
658 size_t count, loff_t *off) in lkdtm_debugfs_read() argument
672 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read()
686 size_t count, loff_t *off) in int_hardware_entry() argument
688 return do_register_entry(CN_INT_HARDWARE_ENTRY, f, buf, count, off); in int_hardware_entry()
692 size_t count, loff_t *off) in int_hw_irq_en() argument
694 return do_register_entry(CN_INT_HW_IRQ_EN, f, buf, count, off); in int_hw_irq_en()
698 size_t count, loff_t *off) in int_tasklet_entry() argument
700 return do_register_entry(CN_INT_TASKLET_ENTRY, f, buf, count, off); in int_tasklet_entry()
704 size_t count, loff_t *off) in fs_devrw_entry() argument
706 return do_register_entry(CN_FS_DEVRW, f, buf, count, off); in fs_devrw_entry()
710 size_t count, loff_t *off) in mem_swapout_entry() argument
712 return do_register_entry(CN_MEM_SWAPOUT, f, buf, count, off); in mem_swapout_entry()
716 size_t count, loff_t *off) in timeradd_entry() argument
718 return do_register_entry(CN_TIMERADD, f, buf, count, off); in timeradd_entry()
722 const char __user *buf, size_t count, loff_t *off) in scsi_dispatch_cmd_entry() argument
724 return do_register_entry(CN_SCSI_DISPATCH_CMD, f, buf, count, off); in scsi_dispatch_cmd_entry()
728 size_t count, loff_t *off) in ide_core_cp_entry() argument
730 return do_register_entry(CN_IDE_CORE_CP, f, buf, count, off); in ide_core_cp_entry()
735 size_t count, loff_t *off) in direct_entry() argument
740 if (count >= PAGE_SIZE) in direct_entry()
742 if (count < 1) in direct_entry()
748 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
753 buf[count] = '\0'; in direct_entry()
756 type = parse_cp_type(buf, count); in direct_entry()
763 *off += count; in direct_entry()
765 return count; in direct_entry()