/Linux-v5.10/security/selinux/ |
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() 101 rc = security_context_to_sid(&selinux_state, ctx->ctx_str, str_len, in selinux_xfrm_alloc_user() 349 int str_len; in selinux_xfrm_state_alloc_acquire() local 358 &str_len); in selinux_xfrm_state_alloc_acquire() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_debugfs.c | 188 uint8_t str_len = 0; in dp_link_settings_read() local 200 str_len = strlen("Current: %d %d %d "); in dp_link_settings_read() 201 snprintf(rd_buf_ptr, str_len, "Current: %d %d %d ", in dp_link_settings_read() 205 rd_buf_ptr += str_len; in dp_link_settings_read() 207 str_len = strlen("Verified: %d %d %d "); in dp_link_settings_read() 208 snprintf(rd_buf_ptr, str_len, "Verified: %d %d %d ", in dp_link_settings_read() 212 rd_buf_ptr += str_len; in dp_link_settings_read() 214 str_len = strlen("Reported: %d %d %d "); in dp_link_settings_read() 215 snprintf(rd_buf_ptr, str_len, "Reported: %d %d %d ", in dp_link_settings_read() 219 rd_buf_ptr += str_len; in dp_link_settings_read() [all …]
|
/Linux-v5.10/tools/power/acpi/os_specific/service_layers/ |
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-v5.10/lib/ |
D | parser.c | 59 size_t str_len = strlen(s); in match_one() local 61 if (str_len == 0) in match_one() 63 if (len == -1 || len > str_len) in match_one() 64 len = str_len; in match_one()
|
/Linux-v5.10/tools/lib/bpf/ |
D | libbpf_probes.c | 145 const char *str_sec, size_t str_len) in libbpf__load_raw_btf() argument 153 .str_len = str_len, in libbpf__load_raw_btf() 158 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf() 165 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
|
D | btf.c | 186 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr() 245 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec() 247 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || in btf_parse_str_sec() 747 btf->hdr->str_len = 1; /* empty string at offset 0 */ in btf__new_empty() 1161 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data() 1187 memcpy(p, btf->strs_data, hdr->str_len); in btf_get_raw_data() 1188 p += hdr->str_len; in btf_get_raw_data() 1218 if (offset < btf->hdr->str_len) in btf__str_by_offset() 1413 strs = malloc(btf->hdr->str_len); in btf_ensure_modifiable() 1419 memcpy(strs, btf->strs_data, btf->hdr->str_len); in btf_ensure_modifiable() [all …]
|
D | libbpf_internal.h | 152 const char *str_sec, size_t str_len);
|
/Linux-v5.10/drivers/s390/net/ |
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-v5.10/kernel/trace/ |
D | trace_events_inject.c | 220 int str_len = strlen(addr) + 1; in parse_entry() local 224 entry_size += str_len; in parse_entry() 232 strlcpy(entry + (entry_size - str_len), addr, str_len); in parse_entry() 234 *str_item = (str_len << 16) | str_loc; in parse_entry()
|
/Linux-v5.10/security/tomoyo/ |
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-v5.10/fs/udf/ |
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-v5.10/kernel/bpf/preload/iterators/ |
D | iterators.bpf.c | 32 __u32 str_len; member 72 if (name_off >= btf->hdr.str_len) in get_name()
|
/Linux-v5.10/security/selinux/ss/ |
D | sidtab.h | 136 const char *str, u32 str_len); 142 const char *str, u32 str_len) in sidtab_sid2str_put() argument
|
D | sidtab.c | 533 const char *str, u32 str_len) in sidtab_sid2str_put() argument 552 cache = kmalloc(sizeof(struct sidtab_str_cache) + str_len, GFP_ATOMIC); in sidtab_sid2str_put() 566 cache->len = str_len; in sidtab_sid2str_put() 567 memcpy(cache->str, str, str_len); in sidtab_sid2str_put()
|
/Linux-v5.10/tools/power/x86/intel-speed-select/ |
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() 29 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist() 36 static void printcpumask(int str_len, char *str, int mask_size, in printcpumask() argument 64 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask() 68 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask()
|
/Linux-v5.10/drivers/platform/x86/ |
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-v5.10/tools/include/uapi/linux/ |
D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/Linux-v5.10/include/uapi/linux/ |
D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/Linux-v5.10/tools/hv/ |
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-v5.10/drivers/hid/ |
D | hid-uclogic-params.c | 454 const size_t str_len = 16; in uclogic_params_frame_init_v1_buttonpad() local 465 str_buf = kzalloc(str_len, GFP_KERNEL); in uclogic_params_frame_init_v1_buttonpad() 471 rc = usb_string(usb_dev, 123, str_buf, str_len); in uclogic_params_frame_init_v1_buttonpad()
|
/Linux-v5.10/tools/perf/util/cs-etm-decoder/ |
D | cs-etm-decoder.c | 144 const int str_len) in cs_etm_decoder__print_str_cb() argument 146 if (p_context && str_len) in cs_etm_decoder__print_str_cb()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | test_verifier.c | 548 .str_len = sizeof(btf_str_sec), in load_btf() 560 memcpy(ptr, btf_str_sec, hdr.str_len); in load_btf() 561 ptr += hdr.str_len; in load_btf()
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | btf.c | 3611 ret_hdr->str_len = str_sec_size; in btf_raw_create() 3655 hdr->str_len = (int)hdr->str_len + test->str_len_delta; in do_test_raw() 6711 if (CHECK(test_hdr->str_len != expect_hdr->str_len, in do_test_dedup() 6713 test_hdr->str_len, expect_hdr->str_len)) { in do_test_dedup() 6715 dump_btf_strings(test_strs, test_hdr->str_len); in do_test_dedup() 6717 dump_btf_strings(expect_strs, expect_hdr->str_len); in do_test_dedup() 6723 test_str_end = test_strs + test_hdr->str_len; in do_test_dedup() 6725 expect_str_end = expect_strs + expect_hdr->str_len; in do_test_dedup()
|
/Linux-v5.10/net/tipc/ |
D | netlink_compat.c | 165 int str_len = strlen(str) + 1; in tipc_get_err_tlv() local 168 buf = tipc_tlv_alloc(TLV_SPACE(str_len)); in tipc_get_err_tlv() 170 tipc_add_tlv(buf, TIPC_TLV_ERROR_STRING, str, str_len); in tipc_get_err_tlv()
|
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_dev.c | 1009 u16 dest_port, u8 *str, size_t str_len) in qed_llh_protocol_filter_stringify() argument 1013 snprintf(str, str_len, "Ethertype 0x%04x", in qed_llh_protocol_filter_stringify() 1017 snprintf(str, str_len, "TCP src port 0x%04x", in qed_llh_protocol_filter_stringify() 1021 snprintf(str, str_len, "UDP src port 0x%04x", in qed_llh_protocol_filter_stringify() 1025 snprintf(str, str_len, "TCP dst port 0x%04x", dest_port); in qed_llh_protocol_filter_stringify() 1028 snprintf(str, str_len, "UDP dst port 0x%04x", dest_port); in qed_llh_protocol_filter_stringify() 1031 snprintf(str, str_len, "TCP src/dst ports 0x%04x/0x%04x", in qed_llh_protocol_filter_stringify() 1035 snprintf(str, str_len, "UDP src/dst ports 0x%04x/0x%04x", in qed_llh_protocol_filter_stringify()
|