Searched refs:str_size (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/drivers/md/ |
D | dm-log-userspace-base.c | 129 int i, str_size; in build_constructor_string() local 137 for (i = 0, str_size = 0; i < argc; i++) in build_constructor_string() 138 str_size += strlen(argv[i]) + 1; /* +1 for space between args */ in build_constructor_string() 140 str_size += 20; /* Max number of chars in a printed u64 number */ in build_constructor_string() 142 str = kzalloc(str_size, GFP_KERNEL); in build_constructor_string() 148 str_size = sprintf(str, "%llu", (unsigned long long)ti->len); in build_constructor_string() 150 str_size += sprintf(str + str_size, " %s", argv[i]); in build_constructor_string() 153 return str_size; in build_constructor_string() 194 int str_size; in userspace_ctr() local 239 str_size = build_constructor_string(ti, argc, argv, &ctr_str); in userspace_ctr() [all …]
|
/Linux-v5.4/tools/perf/util/ |
D | util.c | 312 size_t str_size) in fetch_kernel_version() argument 325 if (str && str_size) { in fetch_kernel_version() 326 strncpy(str, utsname.release, str_size); in fetch_kernel_version() 327 str[str_size - 1] = '\0'; in fetch_kernel_version()
|
/Linux-v5.4/net/tipc/ |
D | ib_media.c | 47 int str_size) in tipc_ib_addr2str() argument 49 if (str_size < 60) /* 60 = 19 * strlen("xx:") + strlen("xx\0") */ in tipc_ib_addr2str()
|
/Linux-v5.4/security/apparmor/ |
D | lib.c | 203 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs, u32 mask) in aa_perm_mask_to_str() argument 211 if (WARN_ON_ONCE(str_size <= 1)) in aa_perm_mask_to_str() 215 str_size--; in aa_perm_mask_to_str()
|
/Linux-v5.4/security/apparmor/include/ |
D | perms.h | 136 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs,
|
/Linux-v5.4/drivers/net/wireless/ath/wil6210/ |
D | wmi.c | 3145 static void resume_triggers2string(u32 triggers, char *string, int str_size) in resume_triggers2string() argument 3150 strlcat(string, " UNKNOWN", str_size); in resume_triggers2string() 3155 strlcat(string, " HOST", str_size); in resume_triggers2string() 3158 strlcat(string, " UCAST_RX", str_size); in resume_triggers2string() 3161 strlcat(string, " BCAST_RX", str_size); in resume_triggers2string() 3164 strlcat(string, " WMI_EVT", str_size); in resume_triggers2string() 3167 strlcat(string, " DISCONNECT", str_size); in resume_triggers2string()
|
/Linux-v5.4/tools/lib/traceevent/ |
D | event-parse.c | 3889 int str_size = (nr_bits + 3) / 4; in print_bitmask_to_seq() local 3900 str_size += (nr_bits - 1) / 32; in print_bitmask_to_seq() 3902 str = malloc(str_size + 1); in print_bitmask_to_seq() 3907 str[str_size] = 0; in print_bitmask_to_seq() 3910 for (i = str_size - 2; i >= 0; i -= 2) { in print_bitmask_to_seq()
|
/Linux-v5.4/drivers/gpu/vga/ |
D | vgaarb.c | 102 static int vga_str_to_iostate(char *buf, int str_size, int *io_state) in vga_str_to_iostate() argument
|