Searched refs:buf_copy (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.15/lib/ |
D | test_meminit.c | 203 void *buf, *buf_copy; in do_kmem_cache_size() local 243 buf_copy = kmalloc(size, GFP_ATOMIC); in do_kmem_cache_size() 244 if (buf_copy) in do_kmem_cache_size() 245 memcpy(buf_copy, buf, size); in do_kmem_cache_size() 255 if (buf_copy) { in do_kmem_cache_size() 256 fail |= (bool)memcmp(buf, buf_copy, size); in do_kmem_cache_size() 257 kfree(buf_copy); in do_kmem_cache_size()
|
/Linux-v5.15/net/bridge/ |
D | br_sysfs_if.c | 330 char *buf_copy; in brport_store() local 332 buf_copy = kstrndup(buf, count, GFP_KERNEL); in brport_store() 333 if (!buf_copy) { in brport_store() 338 ret = brport_attr->store_raw(p, buf_copy); in brport_store() 340 kfree(buf_copy); in brport_store()
|
/Linux-v5.15/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.c | 155 static __always_inline bool buf_copy(buf_t *buf, void *dst, size_t len) in buf_copy() function 190 return buf_copy(buf, scratch, len) ? scratch : NULL; in buf_assign() 234 if (!buf_copy(pkt, ports, sizeof(*ports))) { in pkt_parse_icmp_l4_ports() 309 if (!buf_copy(pkt, &exthdr, sizeof(exthdr))) { in pkt_skip_ipv6_extension_headers() 599 if (!buf_copy(pkt, next_hop, sizeof(*next_hop))) { in get_next_hop() 718 if (!buf_copy(pkt, &icmp, sizeof(icmp))) { in process_icmpv4() 765 if (!buf_copy(pkt, &icmp6, sizeof(icmp6))) { in process_icmpv6()
|
/Linux-v5.15/drivers/scsi/pm8001/ |
D | pm80xx_hwi.c | 402 char *buf_copy = buf; in pm80xx_get_non_fatal_dump() local 484 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 0xFFFFFFFF); in pm80xx_get_non_fatal_dump() 486 return (buf_copy - buf); in pm80xx_get_non_fatal_dump() 489 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 2); in pm80xx_get_non_fatal_dump() 493 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 4); in pm80xx_get_non_fatal_dump() 502 buf_copy += snprintf(buf_copy, PAGE_SIZE, in pm80xx_get_non_fatal_dump() 511 return (buf_copy - buf); in pm80xx_get_non_fatal_dump()
|
/Linux-v5.15/drivers/net/ethernet/intel/ice/ |
D | ice_flex_pipe.c | 1445 u8 *buf_copy; in ice_copy_and_init_pkg() local 1450 buf_copy = devm_kmemdup(ice_hw_to_dev(hw), buf, len, GFP_KERNEL); in ice_copy_and_init_pkg() 1452 status = ice_init_pkg(hw, buf_copy, len); in ice_copy_and_init_pkg() 1455 devm_kfree(ice_hw_to_dev(hw), buf_copy); in ice_copy_and_init_pkg() 1458 hw->pkg_copy = buf_copy; in ice_copy_and_init_pkg()
|