Home
last modified time | relevance | path

Searched refs:buf_copy (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/lib/
Dtest_meminit.c224 void *buf, *buf_copy; in do_kmem_cache_size() local
264 buf_copy = kmalloc(size, GFP_ATOMIC); in do_kmem_cache_size()
265 if (buf_copy) in do_kmem_cache_size()
266 memcpy(buf_copy, buf, size); in do_kmem_cache_size()
276 if (buf_copy) { in do_kmem_cache_size()
277 fail |= (bool)memcmp(buf, buf_copy, size); in do_kmem_cache_size()
278 kfree(buf_copy); in do_kmem_cache_size()
/Linux-v6.6/net/bridge/
Dbr_sysfs_if.c330 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-v6.6/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c155 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-v6.6/drivers/net/ethernet/intel/ice/
Dice_ddp.c1881 u8 *buf_copy; in ice_copy_and_init_pkg() local
1886 buf_copy = devm_kmemdup(ice_hw_to_dev(hw), buf, len, GFP_KERNEL); in ice_copy_and_init_pkg()
1888 state = ice_init_pkg(hw, buf_copy, len); in ice_copy_and_init_pkg()
1891 devm_kfree(ice_hw_to_dev(hw), buf_copy); in ice_copy_and_init_pkg()
1894 hw->pkg_copy = buf_copy; in ice_copy_and_init_pkg()
/Linux-v6.6/drivers/scsi/pm8001/
Dpm80xx_hwi.c401 char *buf_copy = buf; in pm80xx_get_non_fatal_dump() local
483 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 0xFFFFFFFF); in pm80xx_get_non_fatal_dump()
485 return (buf_copy - buf); in pm80xx_get_non_fatal_dump()
488 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 2); in pm80xx_get_non_fatal_dump()
492 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 4); in pm80xx_get_non_fatal_dump()
501 buf_copy += snprintf(buf_copy, PAGE_SIZE, in pm80xx_get_non_fatal_dump()
510 return (buf_copy - buf); in pm80xx_get_non_fatal_dump()