Searched refs:layout_len (Results 1 – 5 of 5) sorted by relevance
| /linux/arch/sparc/kernel/ |
| H A D | chmc.c | 176 int layout_len; member 453 ml = of_get_property(op->dev.of_node, "memory-layout", &p->layout_len); in jbusmc_probe() 458 if (p->layout_len > sizeof(p->layout)) { in jbusmc_probe() 460 p->layout_len); in jbusmc_probe() 463 memcpy(&p->layout, ml, p->layout_len); in jbusmc_probe()
|
| /linux/tools/lib/bpf/ |
| H A D | btf.c | 282 h->layout_len = bswap_32(h->layout_len); in btf_bswap_hdr() 357 if (btf->hdr.layout_len == 0) in btf_parse_hdr() 368 btf->hdr.layout_off, btf->hdr.layout_len); in btf_parse_hdr() 371 if ((long long)btf->hdr.layout_off + btf->hdr.layout_len > btf->hdr.str_off || in btf_parse_hdr() 374 btf->hdr.layout_off, btf->hdr.layout_len, btf->hdr.str_off); in btf_parse_hdr() 400 if (!btf->hdr.layout_len) in btf_parse_layout_sec() 403 if (btf->hdr.layout_len % sizeof(struct btf_layout) != 0) { in btf_parse_layout_sec() 410 struct btf_layout *l, *end = btf->layout + btf->hdr.layout_len; in btf_parse_layout_sec() 422 __u32 l_cnt = btf->hdr.layout_len / sizeof(struct btf_layout); in btf_type_size_unknown() 433 l_cnt = base_btf->hdr.layout_len / sizeof(struct btf_layout); in btf_type_size_unknown() [all …]
|
| H A D | features.c | 611 .layout_len = sizeof(layout), in probe_kern_btf_layout()
|
| H A D | libbpf.c | 3205 (hdr->layout_len != 0 || hdr->layout_off != 0)) { in bpf_object__sanitize_btf() 3222 new_hdr->layout_len = 0; in bpf_object__sanitize_btf()
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 1714 __btf_verifier_log(log, "layout_len: %u\n", hdr->layout_len); in btf_verifier_log_hdr() 5605 hdr->layout_len == 0) in btf_parse_layout_sec() 5614 end = start + hdr->layout_len; in btf_parse_layout_sec() 5616 if (hdr->layout_len < sizeof(struct btf_layout)) { in btf_parse_layout_sec() 5620 if (hdr->layout_len % sizeof(struct btf_layout) != 0) { in btf_parse_layout_sec() 5660 if (hdr->hdr_len < sizeof(struct btf_header) || hdr->layout_len == 0) in btf_check_sec_info()
|