/linux/tools/power/cpupower/utils/helpers/ |
A D | misc.c | 117 int str_len = 0; in print_online_cpus() local 120 str_len = online_cpus->size * 5; in print_online_cpus() 121 online_cpus_str = (void *)malloc(sizeof(char) * str_len); in print_online_cpus() 124 bitmask_displaylist(online_cpus_str, str_len, online_cpus); in print_online_cpus() 135 int str_len = 0; in print_offline_cpus() local 138 str_len = offline_cpus->size * 5; in print_offline_cpus() 139 offline_cpus_str = (void *)malloc(sizeof(char) * str_len); in print_offline_cpus() 142 bitmask_displaylist(offline_cpus_str, str_len, offline_cpus); in print_offline_cpus()
|
/linux/security/selinux/ |
A D | xfrm.c | 81 u32 str_len; in selinux_xfrm_alloc_user() local 88 str_len = uctx->ctx_len; in selinux_xfrm_alloc_user() 89 if (str_len >= PAGE_SIZE) in selinux_xfrm_alloc_user() 92 ctx = kmalloc(sizeof(*ctx) + str_len + 1, gfp); in selinux_xfrm_alloc_user() 98 ctx->ctx_len = str_len; in selinux_xfrm_alloc_user() 99 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user() 100 ctx->ctx_str[str_len] = '\0'; in selinux_xfrm_alloc_user() 350 int str_len; in selinux_xfrm_state_alloc_acquire() local 359 &str_len); in selinux_xfrm_state_alloc_acquire() 372 ctx->ctx_len = str_len; in selinux_xfrm_state_alloc_acquire() [all …]
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_debugfs.c | 186 uint8_t str_len = 0; in dp_link_settings_read() local 203 rd_buf_ptr += str_len; in dp_link_settings_read() 210 rd_buf_ptr += str_len; in dp_link_settings_read() 217 rd_buf_ptr += str_len; in dp_link_settings_read() 1330 rd_buf_ptr += str_len; in dp_dsc_clock_en_read() 1517 rd_buf_ptr += str_len; in dp_dsc_slice_width_read() 1702 rd_buf_ptr += str_len; in dp_dsc_slice_height_read() 1883 rd_buf_ptr += str_len; in dp_dsc_bits_per_pixel_read() 2059 rd_buf_ptr += str_len; in dp_dsc_pic_width_read() 2116 rd_buf_ptr += str_len; in dp_dsc_pic_height_read() [all …]
|
/linux/drivers/s390/net/ |
A D | qeth_l3_sys.c | 370 int str_len = 0; in qeth_l3_dev_ipato_add_show() local 388 if (entry_len + 1 > PAGE_SIZE - str_len - 1) in qeth_l3_dev_ipato_add_show() 391 entry_len = scnprintf(buf, PAGE_SIZE - str_len, in qeth_l3_dev_ipato_add_show() 393 str_len += entry_len; in qeth_l3_dev_ipato_add_show() 398 return str_len ? str_len : scnprintf(buf, PAGE_SIZE, "\n"); in qeth_l3_dev_ipato_add_show() 590 int str_len = 0; in qeth_l3_dev_ip_add_show() local 607 if (entry_len + 1 > PAGE_SIZE - str_len - 1) in qeth_l3_dev_ip_add_show() 610 entry_len = scnprintf(buf, PAGE_SIZE - str_len, "%s\n", in qeth_l3_dev_ip_add_show() 612 str_len += entry_len; in qeth_l3_dev_ip_add_show() 617 return str_len ? str_len : scnprintf(buf, PAGE_SIZE, "\n"); in qeth_l3_dev_ip_add_show()
|
/linux/tools/power/acpi/os_specific/service_layers/ |
A D | osunixdir.c | 95 int str_len; in acpi_os_get_next_filename() local 106 str_len = strlen(dir_entry->d_name) + in acpi_os_get_next_filename() 109 temp_str = calloc(str_len, 1); in acpi_os_get_next_filename()
|
/linux/lib/ |
A D | parser.c | 60 size_t str_len = strlen(s); in match_one() local 62 if (str_len == 0) in match_one() 64 if (len == -1 || len > str_len) in match_one() 65 len = str_len; in match_one()
|
/linux/tools/lib/bpf/ |
A D | libbpf_probes.c | 147 const char *str_sec, size_t str_len) in libbpf__load_raw_btf() argument 155 .str_len = str_len, in libbpf__load_raw_btf() 160 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf() 167 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
|
A D | btf.c | 217 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr() 273 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec() 275 if (btf->base_btf && hdr->str_len == 0) in btf_parse_str_sec() 277 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) { in btf_parse_str_sec() 796 btf->start_str_off = base_btf->hdr->str_len; in btf_new_empty() 846 btf->start_str_off = base_btf->hdr->str_len; in btf_new() 1228 memcpy(p, btf_strs_data(btf), hdr->str_len); in btf_get_raw_data() 1229 p += hdr->str_len; in btf_get_raw_data() 1488 if (btf->hdr->str_len == 0) in btf_ensure_modifiable() 1665 old_strs_len = btf->hdr->str_len; in btf__add_btf() [all …]
|
/linux/kernel/trace/ |
A D | trace_events_inject.c | 218 int str_len = strlen(addr) + 1; in parse_entry() local 222 entry_size += str_len; in parse_entry() 230 strlcpy(entry + (entry_size - str_len), addr, str_len); in parse_entry() 232 *str_item = (str_len << 16) | str_loc; in parse_entry()
|
/linux/tools/power/x86/intel-speed-select/ |
A D | isst-display.c | 9 static void printcpulist(int str_len, char *str, int mask_size, in printcpulist() argument 15 snprintf(str, str_len, "none"); in printcpulist() 26 str_len - curr_index, ","); in printcpulist() 28 if (curr_index >= str_len) in printcpulist() 31 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist() 34 if (curr_index >= str_len) in printcpulist() 40 static void printcpumask(int str_len, char *str, int mask_size, in printcpumask() argument 68 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask() 71 if (curr_index >= str_len) in printcpumask() 74 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask() [all …]
|
/linux/fs/udf/ |
A D | unicode.c | 277 const uint8_t *str_i, int str_len) in udf_name_to_CS0() argument 300 for (i = 0; i < str_len; i += len) { in udf_name_to_CS0() 307 len = conv_f(&str_i[i], str_len - i, &wchar); in udf_name_to_CS0() 311 len = utf8_to_utf32(&str_i[i], str_len - i, in udf_name_to_CS0()
|
/linux/security/tomoyo/ |
A D | realpath.c | 23 char *tomoyo_encode2(const char *str, int str_len) in tomoyo_encode2() argument 33 for (i = 0; i < str_len; i++) { in tomoyo_encode2() 50 for (i = 0; i < str_len; i++) { in tomoyo_encode2()
|
/linux/kernel/bpf/preload/iterators/ |
A D | iterators.bpf.c | 31 __u32 str_len; member 71 if (name_off >= btf->hdr.str_len) in get_name()
|
/linux/security/selinux/ss/ |
A D | sidtab.h | 140 const char *str, u32 str_len); 146 const char *str, u32 str_len) in sidtab_sid2str_put() argument
|
A D | sidtab.c | 554 const char *str, u32 str_len) in sidtab_sid2str_put() argument 573 cache = kmalloc(sizeof(struct sidtab_str_cache) + str_len, GFP_ATOMIC); in sidtab_sid2str_put() 587 cache->len = str_len; in sidtab_sid2str_put() 588 memcpy(cache->str, str, str_len); in sidtab_sid2str_put()
|
/linux/drivers/platform/x86/ |
A D | acerhdf.c | 590 unsigned long str_len = 0, start_len = 0; in str_starts_with() local 592 str_len = strlen(str); in str_starts_with() 595 if (str_len >= start_len && in str_starts_with()
|
/linux/tools/include/uapi/linux/ |
A D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/linux/include/uapi/linux/ |
A D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/linux/tools/hv/ |
A D | hv_kvp_daemon.c | 1181 int str_len; in kvp_set_ip_info() local 1305 str_len = snprintf(cmd, sizeof(cmd), KVP_SCRIPTS_PATH "%s %s", in kvp_set_ip_info() 1311 if (str_len <= 0 || (unsigned int)str_len >= sizeof(cmd)) { in kvp_set_ip_info() 1313 cmd, str_len); in kvp_set_ip_info()
|
/linux/drivers/hid/ |
A D | hid-uclogic-params.c | 455 const size_t str_len = 16; in uclogic_params_frame_init_v1_buttonpad() local 466 str_buf = kzalloc(str_len, GFP_KERNEL); in uclogic_params_frame_init_v1_buttonpad() 472 rc = usb_string(usb_dev, 123, str_buf, str_len); in uclogic_params_frame_init_v1_buttonpad()
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | syscall.c | 43 .str_len = sizeof(__u32), in btf_load()
|
/linux/tools/perf/util/cs-etm-decoder/ |
A D | cs-etm-decoder.c | 177 const int str_len) in cs_etm_decoder__print_str_cb() argument 181 if (p_context && str_len && !decoder->suppress_printing) in cs_etm_decoder__print_str_cb()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | atom.c | 1384 unsigned short str_len; in atom_find_str_in_rom() local 1387 str_len = strnlen(str, maxlen); in atom_find_str_in_rom() 1391 for (str_off = 0; str_off < str_len; ++str_off) { in atom_find_str_in_rom() 1396 if (str_off == str_len || str[str_off] == 0) in atom_find_str_in_rom()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_verifier.c | 642 .str_len = sizeof(btf_str_sec), in load_btf() 654 memcpy(ptr, btf_str_sec, hdr.str_len); in load_btf() 655 ptr += hdr.str_len; in load_btf()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | btf.c | 4041 ret_hdr->str_len = str_sec_size; in btf_raw_create() 4085 hdr->str_len = (int)hdr->str_len + test->str_len_delta; in do_test_raw() 7361 if (CHECK(test_hdr->str_len != expect_hdr->str_len, in do_test_dedup() 7363 test_hdr->str_len, expect_hdr->str_len)) { in do_test_dedup() 7365 dump_btf_strings(test_strs, test_hdr->str_len); in do_test_dedup() 7367 dump_btf_strings(expect_strs, expect_hdr->str_len); in do_test_dedup() 7373 expect_str_end = expect_strs + expect_hdr->str_len; in do_test_dedup()
|