/openbmc/linux/tools/lib/bpf/ |
H A D | btf.c | 217 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr() 273 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec() 275 if (btf->base_btf && hdr->str_len == 0) in btf_parse_str_sec() 277 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) { in btf_parse_str_sec() 834 btf->start_str_off = base_btf->hdr->str_len; in btf_new_empty() 884 btf->start_str_off = base_btf->hdr->str_len; in btf_new() 1295 memcpy(p, btf_strs_data(btf), hdr->str_len); in btf_get_raw_data() 1296 p += hdr->str_len; in btf_get_raw_data() 1469 if (btf->hdr->str_len == 0) in btf_ensure_modifiable() 1666 old_strs_len = btf->hdr->str_len; in btf__add_btf() [all …]
|
/openbmc/linux/security/selinux/ss/ |
H A D | sidtab.c | 559 const char *str, u32 str_len) in sidtab_sid2str_put() argument 578 cache = kmalloc(struct_size(cache, str, str_len), GFP_ATOMIC); in sidtab_sid2str_put() 592 cache->len = str_len; in sidtab_sid2str_put() 593 memcpy(cache->str, str, str_len); in sidtab_sid2str_put()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/openbmc/linux/include/uapi/linux/ |
H A D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 43 .str_len = sizeof(__u32), in btf_load()
|
/openbmc/linux/tools/hv/ |
H A D | hv_kvp_daemon.c | 1248 int str_len; in kvp_set_ip_info() local 1478 str_len = snprintf(cmd, sizeof(cmd), KVP_SCRIPTS_PATH "%s %s %s", in kvp_set_ip_info() 1484 if (str_len <= 0 || (unsigned int)str_len >= sizeof(cmd)) { in kvp_set_ip_info() 1486 cmd, str_len); in kvp_set_ip_info()
|
/openbmc/linux/tools/perf/util/cs-etm-decoder/ |
H A D | cs-etm-decoder.c | 200 const int str_len) in cs_etm_decoder__print_str_cb() argument 204 if (p_context && str_len && !decoder->suppress_printing) in cs_etm_decoder__print_str_cb()
|
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | bioscfg.c | 665 int str_len; in hp_init_bios_package_attribute() local 695 &str_value, &str_len); in hp_init_bios_package_attribute()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | atom.c | 1386 unsigned short str_len; in atom_find_str_in_rom() local 1389 str_len = strnlen(str, maxlen); in atom_find_str_in_rom() 1393 for (str_off = 0; str_off < str_len; ++str_off) { in atom_find_str_in_rom() 1398 if (str_off == str_len || str[str_off] == 0) in atom_find_str_in_rom()
|
/openbmc/linux/drivers/hid/ |
H A D | hid-uclogic-params.c | 570 const size_t str_len = 16; in uclogic_params_frame_init_v1() local 583 str_buf = kzalloc(str_len, GFP_KERNEL); in uclogic_params_frame_init_v1() 589 rc = usb_string(usb_dev, 123, str_buf, str_len); in uclogic_params_frame_init_v1()
|
/openbmc/linux/tools/power/x86/intel-speed-select/ |
H A D | isst-config.c | 914 int str_len = sizeof(str); in isolate_cpus() local 961 str_len - curr_index, ","); in isolate_cpus() 963 if (curr_index >= str_len) in isolate_cpus() 966 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in isolate_cpus() 969 if (curr_index >= str_len) in isolate_cpus()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ncp/libowfat/ |
H A D | 0001-replace-__pure__-with-compiler-attribute-pure.patch | 364 #define str_len(foo) strlen(foo) 366 /* str_len returns the index of \0 in s */ 367 -size_t str_len(const char *s) __pure__; 368 +size_t str_len(const char *s) __PURE;
|
/openbmc/linux/net/tipc/ |
H A D | netlink_compat.c | 168 int str_len = strlen(str) + 1; in tipc_get_err_tlv() local 171 buf = tipc_tlv_alloc(TLV_SPACE(str_len)); in tipc_get_err_tlv() 173 tipc_add_tlv(buf, TIPC_TLV_ERROR_STRING, str, str_len); in tipc_get_err_tlv()
|
/openbmc/linux/kernel/trace/ |
H A D | trace_events_filter.c | 901 int str_len = str_item >> 16; in filter_pred_strloc() local 905 cmp = pred->regex->match(addr, pred->regex, str_len); in filter_pred_strloc() 924 int str_len = str_item >> 16; in filter_pred_strrelloc() local 928 cmp = pred->regex->match(addr, pred->regex, str_len); in filter_pred_strrelloc()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 750 .str_len = strings_len, in load_btf_spec() 769 memcpy(ptr, strings, hdr.str_len); in load_btf_spec() 770 ptr += hdr.str_len; in load_btf_spec()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 4284 ret_hdr->str_len = str_sec_size; in btf_raw_create() 4348 hdr->str_len = (int)hdr->str_len + test->str_len_delta; in do_test_raw() 8069 if (CHECK(test_hdr->str_len != expect_hdr->str_len, in do_test_dedup() 8071 test_hdr->str_len, expect_hdr->str_len)) { in do_test_dedup() 8073 dump_btf_strings(test_strs, test_hdr->str_len); in do_test_dedup() 8075 dump_btf_strings(expect_strs, expect_hdr->str_len); in do_test_dedup() 8081 expect_str_end = expect_strs + expect_hdr->str_len; in do_test_dedup()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_dev.c | 1012 u16 dest_port, u8 *str, size_t str_len) in qed_llh_protocol_filter_stringify() argument 1016 snprintf(str, str_len, "Ethertype 0x%04x", in qed_llh_protocol_filter_stringify() 1020 snprintf(str, str_len, "TCP src port 0x%04x", in qed_llh_protocol_filter_stringify() 1024 snprintf(str, str_len, "UDP src port 0x%04x", in qed_llh_protocol_filter_stringify() 1028 snprintf(str, str_len, "TCP dst port 0x%04x", dest_port); in qed_llh_protocol_filter_stringify() 1031 snprintf(str, str_len, "UDP dst port 0x%04x", dest_port); in qed_llh_protocol_filter_stringify() 1034 snprintf(str, str_len, "TCP src/dst ports 0x%04x/0x%04x", in qed_llh_protocol_filter_stringify() 1038 snprintf(str, str_len, "UDP src/dst ports 0x%04x/0x%04x", in qed_llh_protocol_filter_stringify()
|
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 129 .str_len = sizeof(btf_str_sec), in load_btf()
|
/openbmc/linux/include/linux/ceph/ |
H A D | ceph_fs.h | 203 __le32 str_len; member
|
/openbmc/linux/security/tomoyo/ |
H A D | common.h | 955 char *tomoyo_encode2(const char *str, int str_len);
|
/openbmc/linux/kernel/bpf/ |
H A D | btf.c | 753 return offset < btf->hdr.str_len; in btf_name_offset_valid() 772 if (offset < btf->hdr.str_len) in btf_str_by_offset() 1558 __btf_verifier_log(log, "str_len: %u\n", hdr->str_len); in btf_verifier_log_hdr() 5153 end = start + hdr->str_len; in btf_parse_str_sec() 5162 if (btf->base_btf && !hdr->str_len) in btf_parse_str_sec() 5164 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_NAME_OFFSET || end[-1]) { in btf_parse_str_sec() 5818 btf->start_str_off = base_btf->hdr.str_len; in btf_parse_module()
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_os.c | 602 qla2x00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) in qla2x00_pci_info_str() argument 612 snprintf(str, str_len, "PCI-X (%s MHz)", in qla2x00_pci_info_str() 616 snprintf(str, str_len, "PCI (%s MHz)", pci_bus_modes[pci_bus]); in qla2x00_pci_info_str() 623 qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) in qla24xx_pci_info_str() argument 656 snprintf(str, str_len, "PCIe (%s x%d)", speed_str, lwidth); in qla24xx_pci_info_str() 663 snprintf(str, str_len, "PCI (%s MHz)", in qla24xx_pci_info_str() 666 snprintf(str, str_len, "PCI-X Mode %d (%s MHz)", in qla24xx_pci_info_str()
|
H A D | qla_mr.c | 689 qlafx00_pci_info_str(struct scsi_qla_host *vha, char *str, size_t str_len) in qlafx00_pci_info_str() argument 694 strscpy(str, "PCIe iSA", str_len); in qlafx00_pci_info_str()
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_adminq_cmd.h | 1934 u8 str_len; member
|
/openbmc/linux/net/ceph/ |
H A D | mon_client.c | 1003 h->str_len = cpu_to_le32(len); in do_mon_command_vargs()
|