| /linux/drivers/md/ |
| H A D | dm-log-userspace-base.c | 130 int i, str_size; in build_constructor_string() local 138 for (i = 0, str_size = 0; i < argc; i++) in build_constructor_string() 139 str_size += strlen(argv[i]) + 1; /* +1 for space between args */ in build_constructor_string() 141 str_size += 20; /* Max number of chars in a printed u64 number */ in build_constructor_string() 143 str = kzalloc(str_size, GFP_KERNEL); in build_constructor_string() 149 str_size = sprintf(str, "%llu", (unsigned long long)ti->len); in build_constructor_string() 151 str_size += sprintf(str + str_size, " %s", argv[i]); in build_constructor_string() 154 return str_size; in build_constructor_string() 195 int str_size; in userspace_ctr() local 240 str_size = build_constructor_string(ti, argc, argv, &ctr_str); in userspace_ctr() [all …]
|
| /linux/net/tipc/ |
| H A D | ib_media.c | 49 int str_size) in tipc_ib_addr2str() argument 51 if (str_size < 60) /* 60 = 19 * strlen("xx:") + strlen("xx\0") */ in tipc_ib_addr2str()
|
| /linux/tools/perf/bench/ |
| H A D | evlist-open-close.c | 189 int i, str_size = strlen(evstr), in bench__repeat_event_string() local 190 final_size = str_size * n + n, in bench__repeat_event_string() 199 err = strbuf_add(&buf, evstr, str_size); in bench__repeat_event_string()
|
| /linux/security/apparmor/ |
| H A D | lib.c | 302 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs, u32 mask) in aa_perm_mask_to_str() argument 310 if (WARN_ON_ONCE(str_size <= 1)) in aa_perm_mask_to_str() 314 str_size--; in aa_perm_mask_to_str()
|
| /linux/fs/hfsplus/ |
| H A D | unicode_test.c | 1436 u32 str_size = HFSPLUS_MAX_STRLEN + 1; in hfsplus_compare_dentry_edge_cases_test() local 1450 long_str = kzalloc(str_size, GFP_KERNEL); in hfsplus_compare_dentry_edge_cases_test() 1453 long_str2 = kzalloc(str_size, GFP_KERNEL); in hfsplus_compare_dentry_edge_cases_test() 1457 memset(long_str, 'a', str_size - 1); in hfsplus_compare_dentry_edge_cases_test() 1458 long_str[str_size - 1] = '\0'; in hfsplus_compare_dentry_edge_cases_test() 1461 result = hfsplus_compare_dentry(&test_dentry, str_size - 1, in hfsplus_compare_dentry_edge_cases_test() 1466 memset(long_str2, 'a', str_size - 1); in hfsplus_compare_dentry_edge_cases_test() 1467 long_str2[str_size - 1] = '\0'; in hfsplus_compare_dentry_edge_cases_test() 1468 long_str2[str_size - 2] = 'b'; in hfsplus_compare_dentry_edge_cases_test() 1470 result = hfsplus_compare_dentry(&test_dentry, str_size - 1, in hfsplus_compare_dentry_edge_cases_test()
|
| /linux/security/apparmor/include/ |
| H A D | perms.h | 203 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs,
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | device.c | 352 int str_size; in hl_engine_data_sprintf() local 358 str_size = vsnprintf(NULL, 0, fmt, args) + 1; in hl_engine_data_sprintf() 361 if ((e->actual_size + str_size) < e->allocated_buf_size) { in hl_engine_data_sprintf() 363 vsnprintf(e->buf + e->actual_size, str_size, fmt, args); in hl_engine_data_sprintf() 370 e->actual_size += str_size; in hl_engine_data_sprintf()
|
| /linux/drivers/net/wireless/ath/wil6210/ |
| H A D | wmi.c | 3162 static void resume_triggers2string(u32 triggers, char *string, int str_size) in resume_triggers2string() argument 3167 strlcat(string, " UNKNOWN", str_size); in resume_triggers2string() 3172 strlcat(string, " HOST", str_size); in resume_triggers2string() 3175 strlcat(string, " UCAST_RX", str_size); in resume_triggers2string() 3178 strlcat(string, " BCAST_RX", str_size); in resume_triggers2string() 3181 strlcat(string, " WMI_EVT", str_size); in resume_triggers2string() 3184 strlcat(string, " DISCONNECT", str_size); in resume_triggers2string()
|
| /linux/drivers/pci/ |
| H A D | vgaarb.c | 78 static int vga_str_to_iostate(char *buf, int str_size, unsigned int *io_state) in vga_str_to_iostate() argument
|
| /linux/drivers/accel/habanalabs/gaudi2/ |
| H A D | gaudi2.c | 8672 u16 str_size = 0; in gaudi2_psoc_razwi_get_engines() local 8681 str_size += scnprintf(eng_name + str_size, in gaudi2_psoc_razwi_get_engines() 8682 PSOC_RAZWI_ENG_STR_SIZE - str_size, "%s", in gaudi2_psoc_razwi_get_engines() 8685 str_size += scnprintf(eng_name + str_size, in gaudi2_psoc_razwi_get_engines() 8686 PSOC_RAZWI_ENG_STR_SIZE - str_size, " or %s", in gaudi2_psoc_razwi_get_engines()
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1006 BPF_CALL_5(bpf_snprintf_btf, char *, str, u32, str_size, struct btf_ptr *, ptr, in BPF_CALL_5() argument 1017 return btf_type_snprintf_show(btf, btf_id, ptr->ptr, str, str_size, in BPF_CALL_5()
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 1049 BPF_CALL_5(bpf_snprintf, char *, str, u32, str_size, char *, fmt, in BPF_CALL_5() argument 1069 err = bstr_printf(str, str_size, fmt, data.bin_args); in BPF_CALL_5()
|