/linux-6.1.9/net/core/ |
D | selftests.c | 62 struct iphdr *ihdr; in net_test_get_skb() local 85 ihdr = skb_put(skb, sizeof(*ihdr)); in net_test_get_skb() 113 (sizeof(*ihdr) + sizeof(*ehdr))); in net_test_get_skb() 117 ihdr->ihl = 5; in net_test_get_skb() 118 ihdr->ttl = 32; in net_test_get_skb() 119 ihdr->version = 4; in net_test_get_skb() 121 ihdr->protocol = IPPROTO_TCP; in net_test_get_skb() 123 ihdr->protocol = IPPROTO_UDP; in net_test_get_skb() 124 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in net_test_get_skb() 133 ihdr->tot_len = htons(iplen); in net_test_get_skb() [all …]
|
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_selftests.c | 67 struct iphdr *ihdr; in stmmac_test_get_udp_skb() local 102 ihdr = skb_put(skb, sizeof(*ihdr)); in stmmac_test_get_udp_skb() 160 (sizeof(*ihdr) + sizeof(*ehdr))); in stmmac_test_get_udp_skb() 164 ihdr->ihl = 5; in stmmac_test_get_udp_skb() 165 ihdr->ttl = 32; in stmmac_test_get_udp_skb() 166 ihdr->version = 4; in stmmac_test_get_udp_skb() 168 ihdr->protocol = IPPROTO_TCP; in stmmac_test_get_udp_skb() 170 ihdr->protocol = IPPROTO_UDP; in stmmac_test_get_udp_skb() 171 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in stmmac_test_get_udp_skb() 180 ihdr->tot_len = htons(iplen); in stmmac_test_get_udp_skb() [all …]
|
/linux-6.1.9/fs/ntfs3/ |
D | index.c | 898 hdr = &index->ihdr; in indx_new() 917 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new() 1021 if (offsetof(struct INDEX_BUFFER, ihdr) + ib->ihdr.used > bytes) { in indx_read() 1074 e = hdr_find_e(indx, &root->ihdr, key, key_len, ctx, diff); in indx_find() 1091 e = hdr_find_e(indx, &node->index->ihdr, key, key_len, ctx, in indx_find() 1117 e = hdr_first_de(&root->ihdr); in indx_find_sort() 1128 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_sort() 1139 e = hdr_next_de(&n->index->ihdr, e); in indx_find_sort() 1167 e = hdr_first_de(&n->index->ihdr); in indx_find_sort() 1231 e = hdr_first_de(&root->ihdr); in indx_find_raw() [all …]
|
D | dir.c | 424 err = ntfs_read_hdr(sbi, ni, &root->ihdr, 0, pos, name, ctx); in ntfs_readdir() 463 err = ntfs_read_hdr(sbi, ni, &node->index->ihdr, in ntfs_readdir() 507 hdr = &root->ihdr; in ntfs_dir_count() 561 hdr = &node->index->ihdr; in ntfs_dir_count()
|
D | ntfs.h | 758 struct INDEX_HDR ihdr; // 0x18: member 765 const struct NTFS_DE *first = hdr_first_de(&ib->ihdr); in ib_is_empty() 772 return !(ib->ihdr.flags & 1); in ib_is_leaf() 799 struct INDEX_HDR ihdr; // 0x10: member 803 static_assert(offsetof(struct INDEX_ROOT, ihdr) == 0x10);
|
D | fslog.c | 2636 return check_index_header(&ib->ihdr, in check_index_buffer() 2637 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in check_index_buffer() 2662 ret = check_index_header(&root->ihdr, in check_index_root() 2664 offsetof(struct INDEX_ROOT, ihdr)); in check_index_root() 2890 u32 o = offsetof(struct INDEX_BUFFER, ihdr) + de_off; in check_if_alloc_index() 3376 hdr = &root->ihdr; in do_action() 3403 hdr = &root->ihdr; in do_action() 3428 hdr = &root->ihdr; in do_action() 3443 hdr = &root->ihdr; in do_action() 3458 hdr = &root->ihdr; in do_action() [all …]
|
D | inode.c | 1406 memcpy(root, dir_root, offsetof(struct INDEX_ROOT, ihdr)); in ntfs_create_inode() 1407 root->ihdr.de_off = in ntfs_create_inode() 1409 root->ihdr.used = cpu_to_le32(sizeof(struct INDEX_HDR) + in ntfs_create_inode() 1411 root->ihdr.total = root->ihdr.used; in ntfs_create_inode()
|
D | fsntfs.c | 1855 offsetof(struct INDEX_ROOT, ihdr) + root_sdh->ihdr.used > attr->res.data_size) { in ntfs_security_init() 1874 offsetof(struct INDEX_ROOT, ihdr) + root_sii->ihdr.used > attr->res.data_size) { in ntfs_security_init()
|
/linux-6.1.9/net/rds/ |
D | ib_recv.c | 854 struct rds_header *ihdr, *hdr; in rds_ib_process_recv() local 872 ihdr = ic->i_recv_hdrs[recv - ic->i_recvs]; in rds_ib_process_recv() 875 sizeof(*ihdr), DMA_FROM_DEVICE); in rds_ib_process_recv() 877 if (!rds_message_verify_checksum(ihdr)) { in rds_ib_process_recv() 887 state->ack_recv = be64_to_cpu(ihdr->h_ack); in rds_ib_process_recv() 891 if (ihdr->h_credit) in rds_ib_process_recv() 892 rds_ib_send_add_credits(conn, ihdr->h_credit); in rds_ib_process_recv() 894 if (ihdr->h_sport == 0 && ihdr->h_dport == 0 && data_len == 0) { in rds_ib_process_recv() 929 memcpy(hdr, ihdr, sizeof(*hdr)); in rds_ib_process_recv() 940 if (hdr->h_sequence != ihdr->h_sequence || in rds_ib_process_recv() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_discovery.c | 344 struct ip_discovery_header *ihdr = in amdgpu_discovery_init() local 346 if (le32_to_cpu(ihdr->signature) != DISCOVERY_TABLE_SIGNATURE) { in amdgpu_discovery_init() 353 le16_to_cpu(ihdr->size), checksum)) { in amdgpu_discovery_init() 486 struct ip_discovery_header *ihdr; in amdgpu_discovery_read_harvest_bit_per_ip() local 493 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_read_harvest_bit_per_ip() 495 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_read_harvest_bit_per_ip() 499 die_offset = le16_to_cpu(ihdr->die_info[i].die_offset); in amdgpu_discovery_read_harvest_bit_per_ip() 917 struct ip_discovery_header *ihdr; in amdgpu_discovery_sysfs_recurse() local 925 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_sysfs_recurse() 927 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_sysfs_recurse() [all …]
|
/linux-6.1.9/net/ipv6/ |
D | exthdrs.c | 1111 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr0() local 1114 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr0() 1116 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0() 1117 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr0() 1119 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 1122 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr0() 1126 *addr_p = ihdr->addr; in ipv6_push_rthdr0()
|
/linux-6.1.9/net/tipc/ |
D | msg.c | 579 struct tipc_msg *hdr, *ihdr; in tipc_msg_extract() local 590 ihdr = (struct tipc_msg *)(msg_data(hdr) + *pos); in tipc_msg_extract() 591 imsz = msg_size(ihdr); in tipc_msg_extract() 600 skb_copy_to_linear_data(*iskb, ihdr, imsz); in tipc_msg_extract()
|
D | link.c | 1944 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local 1962 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg() 1963 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg() 1965 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
|
/linux-6.1.9/drivers/usb/gadget/function/ |
D | uvc_configfs.c | 2014 struct uvc_input_header_descriptor *ihdr = *dest; in __uvcg_fill_strm() local 2025 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz; in __uvcg_fill_strm() 2026 ihdr->bNumFormats = h->num_fmt; in __uvcg_fill_strm()
|
/linux-6.1.9/net/key/ |
D | af_key.c | 1718 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) in unicast_flush_resp() argument 1727 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg)); in unicast_flush_resp()
|