/openbmc/linux/security/selinux/ |
H 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() 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() 369 ctx->ctx_len = str_len; in selinux_xfrm_state_alloc_acquire() [all …]
|
/openbmc/linux/tools/power/cpupower/utils/helpers/ |
H A D | misc.c | 192 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()
|
/openbmc/linux/tools/power/acpi/os_specific/service_layers/ |
H 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()
|
/openbmc/linux/lib/ |
H A D | parser.c | 69 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()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | libbpf_probes.c | 222 const char *str_sec, size_t str_len) in libbpf__load_raw_btf() argument 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()
|
H A D | libbpf_internal.h | 123 size_t str_len = strlen(str); in str_has_sfx() local 126 if (sfx_len > str_len) in str_has_sfx() 128 return strcmp(str + str_len - sfx_len, sfx) == 0; in str_has_sfx() 384 const char *str_sec, size_t str_len);
|
/openbmc/linux/kernel/trace/ |
H A D | trace_events_inject.c | 223 int str_len = strlen(addr) + 1; in parse_entry() local 227 entry_size += str_len; in parse_entry() 235 strscpy(entry + (entry_size - str_len), addr, str_len); in parse_entry() 239 *str_item = (str_len << 16) | str_loc; in parse_entry()
|
/openbmc/linux/tools/power/x86/intel-speed-select/ |
H 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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_debugfs.c | 193 uint8_t str_len = 0; in dp_link_settings_read() local 210 rd_buf_ptr += str_len; in dp_link_settings_read() 217 rd_buf_ptr += str_len; in dp_link_settings_read() 224 rd_buf_ptr += str_len; in dp_link_settings_read() 1481 rd_buf_ptr += str_len; in dp_dsc_clock_en_read() 1671 rd_buf_ptr += str_len; in dp_dsc_slice_width_read() 1859 rd_buf_ptr += str_len; in dp_dsc_slice_height_read() 2043 rd_buf_ptr += str_len; in dp_dsc_bits_per_pixel_read() 2222 rd_buf_ptr += str_len; in dp_dsc_pic_width_read() 2280 rd_buf_ptr += str_len; in dp_dsc_pic_height_read() [all …]
|
/openbmc/linux/security/tomoyo/ |
H 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()
|
/openbmc/linux/kernel/bpf/preload/iterators/ |
H A D | iterators.bpf.c | 31 __u32 str_len; member 71 if (name_off >= btf->hdr.str_len) in get_name()
|
/openbmc/linux/fs/udf/ |
H A D | unicode.c | 273 const uint8_t *str_i, int str_len) in udf_name_to_CS0() argument 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()
|
/openbmc/linux/security/selinux/ss/ |
H A D | sidtab.h | 139 const char *str, u32 str_len); 145 const char *str, u32 str_len) in sidtab_sid2str_put() argument
|
/openbmc/openbmc/poky/meta/lib/patchtest/selftest/files/ |
H A D | TestPatch.test_signed_off_by_presence.fail | 39 + printf("%d\n", str_len(string1)); 40 + printf("%d\n", str_len(string2));
|
H A D | TestMbox.test_signed_off_by_presence.1.fail | 39 + printf("%d\n", str_len(string1)); 40 + printf("%d\n", str_len(string2));
|
H A D | TestPatch.test_signed_off_by_presence.pass | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
H A D | TestMbox.test_shortlog_length.pass | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
H A D | TestMbox.test_signed_off_by_presence.2.fail | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
H A D | TestMbox.test_signed_off_by_presence.pass | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
H A D | TestPatch.test_cve_tag_format.pass | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
H A D | TestPatch.test_cve_tag_format.fail | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
H A D | TestMbox.test_shortlog_format.fail | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
H A D | TestMbox.test_shortlog_format.pass | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
H A D | TestMbox.test_shortlog_length.fail | 40 + printf("%d\n", str_len(string1)); 41 + printf("%d\n", str_len(string2));
|
/openbmc/u-boot/lib/libavb/ |
H A D | avb_util.c | 338 size_t str_len = avb_strlen(str); in avb_strdupv() local 340 lengths[num_strings] = str_len; in avb_strdupv() 341 if (!avb_safe_add_to(&total_length, str_len)) { in avb_strdupv()
|