/Linux-v5.4/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.4/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.4/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.4/tools/lib/bpf/ |
D | libbpf_probes.c | 138 const char *str_sec, size_t str_len) in libbpf__load_raw_btf() argument 146 .str_len = str_len, in libbpf__load_raw_btf() 151 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf() 158 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
|
D | btf.c | 132 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec() 134 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || in btf_parse_str_sec() 627 if (offset < btf->hdr->str_len) in btf__name_by_offset() 1614 char *end = start + d->btf->hdr->str_len; in btf_dedup_strings() 1648 tmp_strs = malloc(d->btf->hdr->str_len); in btf_dedup_strings() 1705 d->btf->hdr->str_len = p - tmp_strs; in btf_dedup_strings() 1706 memmove(start, tmp_strs, d->btf->hdr->str_len); in btf_dedup_strings() 1707 end = start + d->btf->hdr->str_len; in btf_dedup_strings() 1717 d->btf->hdr->str_len = end - start; in btf_dedup_strings() 2725 memmove(p, d->btf->strings, d->btf->hdr->str_len); in btf_dedup_compact_types() [all …]
|
D | libbpf_internal.h | 67 const char *str_sec, size_t str_len);
|
/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_debugfs.c | 86 uint8_t str_len = 0; in dp_link_settings_read() local 98 str_len = strlen("Current: %d %d %d "); in dp_link_settings_read() 99 snprintf(rd_buf_ptr, str_len, "Current: %d %d %d ", in dp_link_settings_read() 103 rd_buf_ptr += str_len; in dp_link_settings_read() 105 str_len = strlen("Verified: %d %d %d "); in dp_link_settings_read() 106 snprintf(rd_buf_ptr, str_len, "Verified: %d %d %d ", in dp_link_settings_read() 110 rd_buf_ptr += str_len; in dp_link_settings_read() 112 str_len = strlen("Reported: %d %d %d "); in dp_link_settings_read() 113 snprintf(rd_buf_ptr, str_len, "Reported: %d %d %d ", in dp_link_settings_read() 117 rd_buf_ptr += str_len; in dp_link_settings_read() [all …]
|
/Linux-v5.4/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.4/security/tomoyo/ |
D | realpath.c | 22 char *tomoyo_encode2(const char *str, int str_len) in tomoyo_encode2() argument 32 for (i = 0; i < str_len; i++) { in tomoyo_encode2() 49 for (i = 0; i < str_len; i++) { in tomoyo_encode2()
|
/Linux-v5.4/tools/power/x86/intel-speed-select/ |
D | isst-display.c | 11 static void printcpulist(int str_len, char *str, int mask_size, in printcpulist() argument 17 snprintf(str, str_len, "none"); in printcpulist() 28 str_len - curr_index, ","); in printcpulist() 31 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist() 38 static void printcpumask(int str_len, char *str, int mask_size, in printcpumask() argument 66 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask() 70 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask()
|
/Linux-v5.4/drivers/s390/net/ |
D | qeth_l3_sys.c | 678 int str_len = 0; in qeth_l3_dev_ip_add_show() local 694 if ((PAGE_SIZE - str_len) <= entry_len) in qeth_l3_dev_ip_add_show() 698 str_len += snprintf(buf + str_len, PAGE_SIZE - str_len, "%s\n", in qeth_l3_dev_ip_add_show() 702 str_len += snprintf(buf + str_len, PAGE_SIZE - str_len, "\n"); in qeth_l3_dev_ip_add_show() 704 return str_len; in qeth_l3_dev_ip_add_show()
|
/Linux-v5.4/drivers/platform/x86/ |
D | acerhdf.c | 604 unsigned long str_len = 0, start_len = 0; in str_starts_with() local 606 str_len = strlen(str); in str_starts_with() 609 if (str_len >= start_len && in str_starts_with()
|
/Linux-v5.4/include/uapi/linux/ |
D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/Linux-v5.4/tools/include/uapi/linux/ |
D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/Linux-v5.4/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.4/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.4/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.4/tools/testing/selftests/bpf/ |
D | test_verifier.c | 545 .str_len = sizeof(btf_str_sec), in load_btf() 557 memcpy(ptr, btf_str_sec, hdr.str_len); in load_btf() 558 ptr += hdr.str_len; in load_btf()
|
D | test_btf.c | 3607 ret_hdr->str_len = str_sec_size; in btf_raw_create() 3650 hdr->str_len = (int)hdr->str_len + test->str_len_delta; in do_test_raw() 6782 if (CHECK(test_hdr->str_len != expect_hdr->str_len, in do_test_dedup() 6784 test_hdr->str_len, expect_hdr->str_len)) { in do_test_dedup() 6786 dump_btf_strings(test_strs, test_hdr->str_len); in do_test_dedup() 6788 dump_btf_strings(expect_strs, expect_hdr->str_len); in do_test_dedup() 6794 test_str_end = test_strs + test_hdr->str_len; in do_test_dedup() 6796 expect_str_end = expect_strs + expect_hdr->str_len; in do_test_dedup()
|
/Linux-v5.4/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.4/kernel/bpf/ |
D | btf.c | 526 offset < btf->hdr.str_len; in btf_name_offset_valid() 578 else if (offset < btf->hdr.str_len) in __btf_name_by_offset() 586 if (offset < btf->hdr.str_len) in btf_name_by_offset() 813 __btf_verifier_log(log, "str_len: %u\n", hdr->str_len); in btf_verifier_log_hdr() 3132 end = start + hdr->str_len; in btf_parse_str_sec() 3139 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_NAME_OFFSET || in btf_parse_str_sec()
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/ |
D | qed_dev.c | 1035 u16 dest_port, u8 *str, size_t str_len) in qed_llh_protocol_filter_stringify() argument 1039 snprintf(str, str_len, "Ethertype 0x%04x", in qed_llh_protocol_filter_stringify() 1043 snprintf(str, str_len, "TCP src port 0x%04x", in qed_llh_protocol_filter_stringify() 1047 snprintf(str, str_len, "UDP src port 0x%04x", in qed_llh_protocol_filter_stringify() 1051 snprintf(str, str_len, "TCP dst port 0x%04x", dest_port); in qed_llh_protocol_filter_stringify() 1054 snprintf(str, str_len, "UDP dst port 0x%04x", dest_port); in qed_llh_protocol_filter_stringify() 1057 snprintf(str, str_len, "TCP src/dst ports 0x%04x/0x%04x", in qed_llh_protocol_filter_stringify() 1061 snprintf(str, str_len, "UDP src/dst ports 0x%04x/0x%04x", in qed_llh_protocol_filter_stringify()
|
/Linux-v5.4/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 133 .str_len = sizeof(btf_str_sec), in load_btf()
|
/Linux-v5.4/include/linux/ceph/ |
D | ceph_fs.h | 191 __le32 str_len; member
|
/Linux-v5.4/kernel/trace/ |
D | trace_events_filter.c | 698 int str_len = str_item >> 16; in filter_pred_strloc() local 702 cmp = pred->regex.match(addr, &pred->regex, str_len); in filter_pred_strloc()
|