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()
538 count--; in lkdtm_handler()
540 cp_name_to_str(cpoint), cp_type_to_str(cptype), count); in lkdtm_handler()
542 if (count == 0) { in lkdtm_handler()
544 count = cpoint_count; in lkdtm_handler()
616 const char __user *user_buf, size_t count, loff_t *off) in do_register_entry() argument
621 if (count >= PAGE_SIZE) in do_register_entry()
627 if (copy_from_user(buf, user_buf, count)) { in do_register_entry()
632 buf[count] = '\0'; in do_register_entry()
635 cptype = parse_cp_type(buf, count); in do_register_entry()
645 *off += count; in do_register_entry()
647 return count; in do_register_entry()
652 size_t count, loff_t *off) in lkdtm_debugfs_read() argument
666 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read()
680 size_t count, loff_t *off) in int_hardware_entry() argument
682 return do_register_entry(CN_INT_HARDWARE_ENTRY, f, buf, count, off); in int_hardware_entry()
686 size_t count, loff_t *off) in int_hw_irq_en() argument
688 return do_register_entry(CN_INT_HW_IRQ_EN, f, buf, count, off); in int_hw_irq_en()
692 size_t count, loff_t *off) in int_tasklet_entry() argument
694 return do_register_entry(CN_INT_TASKLET_ENTRY, f, buf, count, off); in int_tasklet_entry()
698 size_t count, loff_t *off) in fs_devrw_entry() argument
700 return do_register_entry(CN_FS_DEVRW, f, buf, count, off); in fs_devrw_entry()
704 size_t count, loff_t *off) in mem_swapout_entry() argument
706 return do_register_entry(CN_MEM_SWAPOUT, f, buf, count, off); in mem_swapout_entry()
710 size_t count, loff_t *off) in timeradd_entry() argument
712 return do_register_entry(CN_TIMERADD, f, buf, count, off); in timeradd_entry()
716 const char __user *buf, size_t count, loff_t *off) in scsi_dispatch_cmd_entry() argument
718 return do_register_entry(CN_SCSI_DISPATCH_CMD, f, buf, count, off); in scsi_dispatch_cmd_entry()
722 size_t count, loff_t *off) in ide_core_cp_entry() argument
724 return do_register_entry(CN_IDE_CORE_CP, f, buf, count, off); in ide_core_cp_entry()
729 size_t count, loff_t *off) in direct_entry() argument
734 if (count >= PAGE_SIZE) in direct_entry()
736 if (count < 1) in direct_entry()
742 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
747 buf[count] = '\0'; in direct_entry()
750 type = parse_cp_type(buf, count); in direct_entry()
757 *off += count; in direct_entry()
759 return count; in direct_entry()