Searched refs:str_len (Results 1 - 25 of 34) sorted by relevance

12

/linux-master/tools/power/cpupower/utils/helpers/
H A Dmisc.c192 int str_len = 0; local
195 str_len = online_cpus->size * 5;
196 online_cpus_str = (void *)malloc(sizeof(char) * str_len);
199 bitmask_displaylist(online_cpus_str, str_len, online_cpus);
210 int str_len = 0; local
213 str_len = offline_cpus->size * 5;
214 offline_cpus_str = (void *)malloc(sizeof(char) * str_len);
217 bitmask_displaylist(offline_cpus_str, str_len, offline_cpus);
/linux-master/security/selinux/
H A Dxfrm.c81 u32 str_len; local
88 str_len = uctx->ctx_len;
89 if (str_len >= PAGE_SIZE)
92 ctx = kmalloc(struct_size(ctx, ctx_str, str_len + 1), gfp);
98 ctx->ctx_len = str_len;
99 memcpy(ctx->ctx_str, &uctx[1], str_len);
100 ctx->ctx_str[str_len] = '\0';
101 rc = security_context_to_sid(ctx->ctx_str, str_len,
347 u32 str_len; local
356 &str_len);
[all...]
/linux-master/tools/power/acpi/os_specific/service_layers/
H A Dosunixdir.c95 int str_len; local
106 str_len = strlen(dir_entry->d_name) +
109 temp_str = calloc(str_len, 1);
/linux-master/lib/
H A Dparser.c69 size_t str_len = strlen(s); local
71 if (str_len == 0)
73 if (len == -1 || len > str_len)
74 len = str_len;
/linux-master/kernel/bpf/preload/iterators/
H A Diterators.bpf.c31 __u32 str_len; member in struct:btf_header
71 if (name_off >= btf->hdr.str_len)
/linux-master/security/selinux/ss/
H A Dsidtab.h143 const char *str, u32 str_len);
149 const char *str, u32 str_len)
147 sidtab_sid2str_put(struct sidtab *s, struct sidtab_entry *entry, const char *str, u32 str_len) argument
H A Dsidtab.c564 const char *str, u32 str_len)
583 cache = kmalloc(struct_size(cache, str, str_len), GFP_ATOMIC);
597 cache->len = str_len;
598 memcpy(cache->str, str, str_len);
563 sidtab_sid2str_put(struct sidtab *s, struct sidtab_entry *entry, const char *str, u32 str_len) argument
/linux-master/tools/lib/bpf/
H A Dlibbpf_probes.c222 const char *str_sec, size_t str_len,
231 .str_len = str_len,
240 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len;
247 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len);
221 libbpf__load_raw_btf(const char *raw_types, size_t types_len, const char *str_sec, size_t str_len, int token_fd) argument
H A Dlibbpf_internal.h124 size_t str_len = strlen(str); local
127 if (sfx_len > str_len)
129 return strcmp(str + str_len - sfx_len, sfx) == 0;
403 const char *str_sec, size_t str_len,
H A Dbtf.c217 h->str_len = bswap_32(h->str_len);
250 if (meta_left < (long long)hdr->str_off + hdr->str_len) {
257 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len);
273 const char *end = start + btf->hdr->str_len;
275 if (btf->base_btf && hdr->str_len == 0)
277 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) {
993 btf->start_str_off = base_btf->hdr->str_len;
1011 btf->hdr->str_len
[all...]
/linux-master/include/uapi/linux/
H A Dbtf.h21 __u32 str_len; /* length of string section */ member in struct:btf_header
/linux-master/tools/include/uapi/linux/
H A Dbtf.h21 __u32 str_len; /* length of string section */ member in struct:btf_header
/linux-master/fs/udf/
H A Dunicode.c273 const uint8_t *str_i, int str_len)
296 for (i = 0; i < str_len; i += len) {
303 len = conv_f(&str_i[i], str_len - i, &wchar);
307 len = utf8_to_utf32(&str_i[i], str_len - i,
271 udf_name_to_CS0(struct super_block *sb, uint8_t *ocu, int ocu_max_len, const uint8_t *str_i, int str_len) argument
/linux-master/security/tomoyo/
H A Drealpath.c16 * @str_len: Size of @str in byte.
23 char *tomoyo_encode2(const char *str, int str_len) argument
33 for (i = 0; i < str_len; i++) {
50 for (i = 0; i < str_len; i++) {
/linux-master/tools/power/x86/intel-speed-select/
H A Disst-display.c9 static void printcpulist(int str_len, char *str, int mask_size, argument
15 snprintf(str, str_len, "none");
26 str_len - curr_index, ",");
28 if (curr_index >= str_len)
31 index = snprintf(&str[curr_index], str_len - curr_index, "%d",
34 if (curr_index >= str_len)
40 static void printcpumask(int str_len, char *str, int mask_size, argument
68 index = snprintf(&str[curr_index], str_len - curr_index, "%08x",
71 if (curr_index >= str_len)
74 strncat(&str[curr_index], ",", str_len
[all...]
H A Disst-config.c890 int str_len = sizeof(str); local
930 snprintf(str, str_len, "0");
943 str_len - curr_index, ",");
945 if (curr_index >= str_len)
948 index = snprintf(&str[curr_index], str_len - curr_index, "%d",
951 if (curr_index >= str_len)
/linux-master/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c194 uint8_t str_len = 0; local
206 str_len = strlen("Current: %d 0x%x %d ");
207 snprintf(rd_buf_ptr, str_len, "Current: %d 0x%x %d ",
211 rd_buf_ptr += str_len;
213 str_len = strlen("Verified: %d 0x%x %d ");
214 snprintf(rd_buf_ptr, str_len, "Verified: %d 0x%x %d ",
218 rd_buf_ptr += str_len;
220 str_len = strlen("Reported: %d 0x%x %d ");
221 snprintf(rd_buf_ptr, str_len, "Reported: %d 0x%x %d ",
225 rd_buf_ptr += str_len;
1486 int i, r, str_len = 10; local
1672 int i, r, str_len = 30; local
1856 int i, r, str_len = 30; local
2036 int i, r, str_len = 30; local
2211 int i, r, str_len = 30; local
2267 int i, r, str_len = 30; local
2338 int i, r, str_len = 30; local
2409 int i, r, str_len = 30; local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dsyscall.c80 .str_len = sizeof(__u32),
/linux-master/tools/perf/util/cs-etm-decoder/
H A Dcs-etm-decoder.c200 const int str_len)
204 if (p_context && str_len && !decoder->suppress_printing)
198 cs_etm_decoder__print_str_cb(const void *p_context, const char *msg, const int str_len) argument
/linux-master/kernel/trace/
H A Dtrace_events_filter.c901 int str_len = str_item >> 16; local
905 cmp = pred->regex->match(addr, pred->regex, str_len);
924 int str_len = str_item >> 16; local
928 cmp = pred->regex->match(addr, pred->regex, str_len);
/linux-master/drivers/hid/
H A Dhid-uclogic-params.c570 const size_t str_len = 16; local
583 str_buf = kzalloc(str_len, GFP_KERNEL);
589 rc = usb_string(usb_dev, 123, str_buf, str_len);
/linux-master/net/tipc/
H A Dnetlink_compat.c168 int str_len = strlen(str) + 1; local
171 buf = tipc_tlv_alloc(str_len);
173 tipc_add_tlv(buf, TIPC_TLV_ERROR_STRING, str, str_len);
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Datom.c1404 unsigned short str_len; local
1407 str_len = strnlen(str, maxlen);
1411 for (str_off = 0; str_off < str_len; ++str_off) {
1416 if (str_off == str_len || str[str_off] == 0)
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c4310 ret_hdr->str_len = str_sec_size;
4374 hdr->str_len = (int)hdr->str_len + test->str_len_delta;
8098 if (CHECK(test_hdr->str_len != expect_hdr->str_len,
8099 "test_hdr->str_len:%u != expect_hdr->str_len:%u",
8100 test_hdr->str_len, expect_hdr->str_len)) {
8102 dump_btf_strings(test_strs, test_hdr->str_len);
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dtest_verifier.c752 .str_len = strings_len,
771 memcpy(ptr, strings, hdr.str_len);
772 ptr += hdr.str_len;

Completed in 272 milliseconds

12