Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/fs/hmdfs/comm/
H A Dmessage_verify.c274 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, sizeo in verify_atomic_open_req()
370 int str_len[] = { req->path_len }; verify_iterate_req() local
398 int str_len[] = { req->path_len, req->name_len }; verify_mkdir_req() local
437 int str_len[] = { req->path_len, req->name_len }; verify_create_req() local
476 int str_len[] = { req->path_len, req->name_len }; verify_rmdir_req() local
505 int str_len[] = { req->path_len, req->name_len }; verify_unlink_req() local
534 int str_len[] = { req->old_path_len, req->new_path_len, verify_rename_req() local
568 int str_len[] = { req->path_len }; verify_setattr_req() local
597 int str_len[] = { req->path_len }; verify_getattr_req() local
635 int str_len[] = { req->path_len, req->name_len}; verify_getxattr_req() local
684 int str_len[] = { req->path_len, req->name_len}; verify_setxattr_req() local
718 int str_len[] = { req->path_len }; verify_listxattr_req() local
796 int str_len[] = { req->path_len }; verify_statfs_req() local
834 int str_len[] = { req->path_len }; verify_drop_push_req() local
[all...]
/kernel/linux/linux-6.6/fs/hmdfs/comm/
H A Dmessage_verify.c274 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, sizeo in verify_atomic_open_req()
370 int str_len[] = { req->path_len }; verify_iterate_req() local
398 int str_len[] = { req->path_len, req->name_len }; verify_mkdir_req() local
437 int str_len[] = { req->path_len, req->name_len }; verify_create_req() local
476 int str_len[] = { req->path_len, req->name_len }; verify_rmdir_req() local
505 int str_len[] = { req->path_len, req->name_len }; verify_unlink_req() local
534 int str_len[] = { req->old_path_len, req->new_path_len, verify_rename_req() local
568 int str_len[] = { req->path_len }; verify_setattr_req() local
597 int str_len[] = { req->path_len }; verify_getattr_req() local
635 int str_len[] = { req->path_len, req->name_len}; verify_getxattr_req() local
684 int str_len[] = { req->path_len, req->name_len}; verify_setxattr_req() local
718 int str_len[] = { req->path_len }; verify_listxattr_req() local
796 int str_len[] = { req->path_len }; verify_statfs_req() local
834 int str_len[] = { req->path_len }; verify_drop_push_req() local
[all...]
/kernel/linux/linux-5.10/security/selinux/
H A Dxfrm.c81 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-6.6/security/selinux/
H A Dxfrm.c81 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(struct_size(ctx, ctx_str, 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(ctx->ctx_str, str_len, in selinux_xfrm_alloc_user()
347 u32 str_len; in selinux_xfrm_state_alloc_acquire() local
356 &str_len); in selinux_xfrm_state_alloc_acquire()
[all...]
/kernel/linux/linux-6.6/tools/power/cpupower/utils/helpers/
H A Dmisc.c192 int str_len = 0; in print_online_cpus() local
195 str_len = online_cpus->size * 5; in print_online_cpus()
196 online_cpus_str = (void *)malloc(sizeof(char) * str_len); in print_online_cpus()
199 bitmask_displaylist(online_cpus_str, str_len, online_cpus); in print_online_cpus()
210 int str_len = 0; in print_offline_cpus() local
213 str_len = offline_cpus->size * 5; in print_offline_cpus()
214 offline_cpus_str = (void *)malloc(sizeof(char) * str_len); in print_offline_cpus()
217 bitmask_displaylist(offline_cpus_str, str_len, offline_cpus); in print_offline_cpus()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c188 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()
1182 int i, r, str_len = 30; dp_dsc_clock_en_read() local
1338 int i, r, str_len = 30; dp_dsc_slice_width_read() local
1492 int i, r, str_len = 30; dp_dsc_slice_height_read() local
1642 int i, r, str_len = 30; dp_dsc_bits_per_pixel_read() local
1787 int i, r, str_len = 30; dp_dsc_pic_width_read() local
1844 int i, r, str_len = 30; dp_dsc_pic_height_read() local
1916 int i, r, str_len = 30; dp_dsc_chunk_size_read() local
1988 int i, r, str_len = 30; dp_dsc_slice_bpg_offset_read() local
[all...]
/kernel/linux/linux-5.10/tools/power/acpi/os_specific/service_layers/
H A Dosunixdir.c95 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-6.6/tools/power/acpi/os_specific/service_layers/
H A Dosunixdir.c95 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/
H A Dparser.c60 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()
/kernel/linux/linux-6.6/lib/
H A Dparser.c69 size_t str_len = strlen(s); in match_one() local
71 if (str_len == 0) in match_one()
73 if (len == -1 || len > str_len) in match_one()
74 len = str_len; in match_one()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c193 uint8_t str_len = 0; in dp_link_settings_read() local
205 str_len = strlen("Current: %d 0x%x %d "); in dp_link_settings_read()
206 snprintf(rd_buf_ptr, str_len, "Current: %d 0x%x %d ", in dp_link_settings_read()
210 rd_buf_ptr += str_len; in dp_link_settings_read()
212 str_len = strlen("Verified: %d 0x%x %d "); in dp_link_settings_read()
213 snprintf(rd_buf_ptr, str_len, "Verified: %d 0x%x %d ", in dp_link_settings_read()
217 rd_buf_ptr += str_len; in dp_link_settings_read()
219 str_len = strlen("Reported: %d 0x%x %d "); in dp_link_settings_read()
220 snprintf(rd_buf_ptr, str_len, "Reported: %d 0x%x %d ", in dp_link_settings_read()
224 rd_buf_ptr += str_len; in dp_link_settings_read()
1456 int i, r, str_len = 10; dp_dsc_clock_en_read() local
1642 int i, r, str_len = 30; dp_dsc_slice_width_read() local
1826 int i, r, str_len = 30; dp_dsc_slice_height_read() local
2006 int i, r, str_len = 30; dp_dsc_bits_per_pixel_read() local
2181 int i, r, str_len = 30; dp_dsc_pic_width_read() local
2237 int i, r, str_len = 30; dp_dsc_pic_height_read() local
2308 int i, r, str_len = 30; dp_dsc_chunk_size_read() local
2379 int i, r, str_len = 30; dp_dsc_slice_bpg_offset_read() local
[all...]
/kernel/linux/linux-5.10/drivers/s390/net/
H A Dqeth_l3_sys.c370 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 in qeth_l3_dev_ip_add_show()
[all...]
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf_probes.c147 const char *str_sec, size_t str_len) in libbpf__load_raw_btf()
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()
146 libbpf__load_raw_btf(const char *raw_types, size_t types_len, const char *str_sec, size_t str_len) libbpf__load_raw_btf() argument
H A Dbtf.c87 size_t strs_data_cap; /* used size stored in hdr->str_len */
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()
757 btf->hdr->str_len = 1; /* empty string at offset 0 */ in btf__new_empty()
1171 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
[all...]
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlibbpf_probes.c222 const char *str_sec, size_t str_len) in libbpf__load_raw_btf()
230 .str_len = str_len, in libbpf__load_raw_btf()
235 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf()
242 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
221 libbpf__load_raw_btf(const char *raw_types, size_t types_len, const char *str_sec, size_t str_len) libbpf__load_raw_btf() argument
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/
H A Disst-display.c9 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 in printcpumask()
[all...]
/kernel/linux/linux-6.6/tools/power/x86/intel-speed-select/
H A Disst-display.c9 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 in printcpumask()
[all...]
/kernel/linux/linux-5.10/fs/udf/
H A Dunicode.c277 const uint8_t *str_i, int str_len) in udf_name_to_CS0()
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()
275 udf_name_to_CS0(struct super_block *sb, uint8_t *ocu, int ocu_max_len, const uint8_t *str_i, int str_len) udf_name_to_CS0() argument
/kernel/linux/linux-6.6/fs/udf/
H A Dunicode.c273 const uint8_t *str_i, int str_len) in udf_name_to_CS0()
296 for (i = 0; i < str_len; i += len) { in udf_name_to_CS0()
303 len = conv_f(&str_i[i], str_len - i, &wchar); in udf_name_to_CS0()
307 len = utf8_to_utf32(&str_i[i], str_len - i, in udf_name_to_CS0()
271 udf_name_to_CS0(struct super_block *sb, uint8_t *ocu, int ocu_max_len, const uint8_t *str_i, int str_len) udf_name_to_CS0() argument
/kernel/linux/linux-5.10/security/tomoyo/
H A Drealpath.c16 * @str_len: Size of @str in byte.
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-6.6/security/tomoyo/
H A Drealpath.c16 * @str_len: Size of @str in byte.
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/security/selinux/ss/
H A Dsidtab.h140 const char *str, u32 str_len);
146 const char *str, u32 str_len) in sidtab_sid2str_put()
144 sidtab_sid2str_put(struct sidtab *s, struct sidtab_entry *entry, const char *str, u32 str_len) sidtab_sid2str_put() argument
/kernel/linux/linux-5.10/kernel/bpf/preload/iterators/
H A Diterators.bpf.c32 __u32 str_len; member
72 if (name_off >= btf->hdr.str_len) in get_name()
/kernel/linux/linux-6.6/kernel/bpf/preload/iterators/
H A Diterators.bpf.c31 __u32 str_len; member
71 if (name_off >= btf->hdr.str_len) in get_name()
/kernel/linux/linux-6.6/security/selinux/ss/
H A Dsidtab.h139 const char *str, u32 str_len);
145 const char *str, u32 str_len) in sidtab_sid2str_put()
143 sidtab_sid2str_put(struct sidtab *s, struct sidtab_entry *entry, const char *str, u32 str_len) sidtab_sid2str_put() argument

Completed in 19 milliseconds

123