Home
last modified time | relevance | path

Searched refs:str_size (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/md/
Ddm-log-userspace-base.c129 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-6.1.9/net/tipc/
Dib_media.c49 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-6.1.9/tools/perf/util/
Dutil.c382 size_t str_size) in fetch_kernel_version() argument
395 if (str && str_size) { in fetch_kernel_version()
396 strncpy(str, utsname.release, str_size); in fetch_kernel_version()
397 str[str_size - 1] = '\0'; in fetch_kernel_version()
/linux-6.1.9/tools/perf/bench/
Devlist-open-close.c195 int i, str_size = strlen(evstr), in bench__repeat_event_string() local
196 final_size = str_size * n + n, in bench__repeat_event_string()
205 err = strbuf_add(&buf, evstr, str_size); in bench__repeat_event_string()
/linux-6.1.9/security/apparmor/
Dlib.c203 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-6.1.9/security/apparmor/include/
Dperms.h136 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs,
/linux-6.1.9/drivers/misc/habanalabs/common/
Ddevice.c293 int str_size; in hl_engine_data_sprintf() local
299 str_size = vsnprintf(NULL, 0, fmt, args) + 1; in hl_engine_data_sprintf()
302 if ((e->actual_size + str_size) < e->allocated_buf_size) { in hl_engine_data_sprintf()
304 vsnprintf(e->buf + e->actual_size, str_size, fmt, args); in hl_engine_data_sprintf()
311 e->actual_size += str_size; in hl_engine_data_sprintf()
/linux-6.1.9/drivers/net/wireless/ath/wil6210/
Dwmi.c3164 static void resume_triggers2string(u32 triggers, char *string, int str_size) in resume_triggers2string() argument
3169 strlcat(string, " UNKNOWN", str_size); in resume_triggers2string()
3174 strlcat(string, " HOST", str_size); in resume_triggers2string()
3177 strlcat(string, " UCAST_RX", str_size); in resume_triggers2string()
3180 strlcat(string, " BCAST_RX", str_size); in resume_triggers2string()
3183 strlcat(string, " WMI_EVT", str_size); in resume_triggers2string()
3186 strlcat(string, " DISCONNECT", str_size); in resume_triggers2string()
/linux-6.1.9/kernel/bpf/
Dhelpers.c1022 BPF_CALL_5(bpf_snprintf, char *, str, u32, str_size, char *, fmt, in BPF_CALL_5() argument
1040 err = bstr_printf(str, str_size, fmt, bin_args); in BPF_CALL_5()
/linux-6.1.9/drivers/pci/
Dvgaarb.c80 static int vga_str_to_iostate(char *buf, int str_size, int *io_state) in vga_str_to_iostate() argument
/linux-6.1.9/kernel/trace/
Dbpf_trace.c994 BPF_CALL_5(bpf_snprintf_btf, char *, str, u32, str_size, struct btf_ptr *, ptr, in BPF_CALL_5() argument
1005 return btf_type_snprintf_show(btf, btf_id, ptr->ptr, str, str_size, in BPF_CALL_5()
/linux-6.1.9/tools/lib/traceevent/
Devent-parse.c3937 int str_size = (nr_bits + 3) / 4; in print_bitmask_to_seq() local
3948 str_size += (nr_bits - 1) / 32; in print_bitmask_to_seq()
3950 str = malloc(str_size + 1); in print_bitmask_to_seq()
3955 str[str_size] = 0; in print_bitmask_to_seq()
3958 for (i = str_size - 2; i >= 0; i -= 2) { in print_bitmask_to_seq()