Searched refs:buf_copy (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/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.10/net/bridge/ |
D | br_sysfs_if.c | 320 char *buf_copy; in brport_store() local 322 buf_copy = kstrndup(buf, count, GFP_KERNEL); in brport_store() 323 if (!buf_copy) { in brport_store() 328 ret = brport_attr->store_raw(p, buf_copy); in brport_store() 330 kfree(buf_copy); in brport_store()
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.c | 154 static __always_inline bool buf_copy(buf_t *buf, void *dst, size_t len) in buf_copy() function 189 return buf_copy(buf, scratch, len) ? scratch : NULL; in buf_assign() 233 if (!buf_copy(pkt, ports, sizeof(*ports))) { in pkt_parse_icmp_l4_ports() 308 if (!buf_copy(pkt, &exthdr, sizeof(exthdr))) { in pkt_skip_ipv6_extension_headers() 592 if (!buf_copy(pkt, next_hop, sizeof(*next_hop))) { in get_next_hop() 711 if (!buf_copy(pkt, &icmp, sizeof(icmp))) { in process_icmpv4() 758 if (!buf_copy(pkt, &icmp6, sizeof(icmp6))) { in process_icmpv6()
|
/Linux-v5.10/drivers/scsi/pm8001/ |
D | pm80xx_hwi.c | 413 char *buf_copy = buf; in pm80xx_get_non_fatal_dump() local 496 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 0xFFFFFFFF); in pm80xx_get_non_fatal_dump() 498 return (buf_copy - buf); in pm80xx_get_non_fatal_dump() 501 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 2); in pm80xx_get_non_fatal_dump() 505 buf_copy += snprintf(buf_copy, PAGE_SIZE, "%08x ", 4); in pm80xx_get_non_fatal_dump() 514 buf_copy += snprintf(buf_copy, PAGE_SIZE, in pm80xx_get_non_fatal_dump() 523 return (buf_copy - buf); in pm80xx_get_non_fatal_dump()
|
/Linux-v5.10/drivers/net/ethernet/intel/ice/ |
D | ice_flex_pipe.c | 1446 u8 *buf_copy; in ice_copy_and_init_pkg() local 1451 buf_copy = devm_kmemdup(ice_hw_to_dev(hw), buf, len, GFP_KERNEL); in ice_copy_and_init_pkg() 1453 status = ice_init_pkg(hw, buf_copy, len); in ice_copy_and_init_pkg() 1456 devm_kfree(ice_hw_to_dev(hw), buf_copy); in ice_copy_and_init_pkg() 1459 hw->pkg_copy = buf_copy; in ice_copy_and_init_pkg()
|