/kernel/linux/linux-5.10/fs/hmdfs/comm/ |
D | message_verify.c | 274 static int is_str_msg_valid(char *msg, int str_len[], size_t str_num) in is_str_msg_valid() argument 280 if (msg[pos + str_len[i]] != '\0' || in is_str_msg_valid() 281 strnlen(msg + pos, PATH_MAX) != str_len[i]) in is_str_msg_valid() 283 pos += str_len[i] + 1; in is_str_msg_valid() 292 int str_len[] = { req->path_len }; in verify_open_req() local 300 str_len[0] = req->path_len; in verify_open_req() 301 if (is_str_msg_valid(req->buf, str_len, sizeof(str_len) / sizeof(int))) in verify_open_req() 331 int str_len[] = { req->path_len, req->file_len}; in verify_atomic_open_req() local 340 if (is_str_msg_valid(req->buf, str_len, sizeof(str_len) / sizeof(int))) in verify_atomic_open_req() 370 int str_len[] = { req->path_len }; in verify_iterate_req() local [all …]
|
/kernel/linux/linux-5.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() 350 u32 str_len; in selinux_xfrm_state_alloc_acquire() local 359 &str_len); in selinux_xfrm_state_alloc_acquire() [all …]
|
/kernel/linux/linux-5.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 0x%x %d "); in dp_link_settings_read() 201 snprintf(rd_buf_ptr, str_len, "Current: %d 0x%x %d ", in dp_link_settings_read() 205 rd_buf_ptr += str_len; in dp_link_settings_read() 207 str_len = strlen("Verified: %d 0x%x %d "); in dp_link_settings_read() 208 snprintf(rd_buf_ptr, str_len, "Verified: %d 0x%x %d ", in dp_link_settings_read() 212 rd_buf_ptr += str_len; in dp_link_settings_read() 214 str_len = strlen("Reported: %d 0x%x %d "); in dp_link_settings_read() 215 snprintf(rd_buf_ptr, str_len, "Reported: %d 0x%x %d ", in dp_link_settings_read() 219 rd_buf_ptr += str_len; in dp_link_settings_read() [all …]
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
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()
|
D | btf.c | 186 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr() 219 if (meta_left < (long long)hdr->str_off + hdr->str_len) { in btf_parse_hdr() 226 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr() 242 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec() 244 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || in btf_parse_str_sec() 744 btf->hdr->str_len = 1; /* empty string at offset 0 */ in btf__new_empty() 1158 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data() 1184 memcpy(p, btf->strs_data, hdr->str_len); in btf_get_raw_data() 1185 p += hdr->str_len; in btf_get_raw_data() 1215 if (offset < btf->hdr->str_len) in btf__str_by_offset() [all …]
|
D | libbpf_internal.h | 152 const char *str_sec, size_t str_len);
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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() 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 …]
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/security/selinux/ss/ |
D | sidtab.h | 140 const char *str, u32 str_len); 146 const char *str, u32 str_len) in sidtab_sid2str_put() argument
|
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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | btf.h | 20 __u32 str_len; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | btf.h | 32 __u32 str_len; member
|
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/drivers/hid/ |
D | hid-uclogic-params.c | 456 const size_t str_len = 16; in uclogic_params_frame_init_v1_buttonpad() local 469 str_buf = kzalloc(str_len, GFP_KERNEL); in uclogic_params_frame_init_v1_buttonpad() 475 rc = usb_string(usb_dev, 123, str_buf, str_len); in uclogic_params_frame_init_v1_buttonpad()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_verifier.c | 549 .str_len = sizeof(btf_str_sec), in load_btf() 561 memcpy(ptr, btf_str_sec, hdr.str_len); in load_btf() 562 ptr += hdr.str_len; in load_btf()
|