/Linux-v6.6/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-v6.6/fs/ntfs3/ |
D | index.c | 641 if (bytes <= offsetof(struct INDEX_BUFFER, ihdr) || in index_buf_check() 652 return index_hdr_check(&ib->ihdr, in index_buf_check() 653 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in index_buf_check() 881 if (t32 <= offsetof(struct INDEX_ROOT, ihdr) || in indx_init() 882 !index_hdr_check(&root->ihdr, in indx_init() 883 t32 - offsetof(struct INDEX_ROOT, ihdr))) { in indx_init() 969 hdr = &index->ihdr; in indx_new() 988 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new() 1014 offsetof(struct INDEX_ROOT, ihdr) + le32_to_cpu(root->ihdr.used) > in indx_get_root() 1109 if (offsetof(struct INDEX_BUFFER, ihdr) + le32_to_cpu(ib->ihdr.used) > in indx_read() [all …]
|
D | dir.c | 428 err = ntfs_read_hdr(sbi, ni, &root->ihdr, 0, pos, name, ctx); in ntfs_readdir() 467 err = ntfs_read_hdr(sbi, ni, &node->index->ihdr, in ntfs_readdir() 511 hdr = &root->ihdr; in ntfs_dir_count() 565 hdr = &node->index->ihdr; in ntfs_dir_count()
|
D | ntfs.h | 762 struct INDEX_HDR ihdr; // 0x18: member 769 const struct NTFS_DE *first = hdr_first_de(&ib->ihdr); in ib_is_empty() 776 return !(ib->ihdr.flags & 1); in ib_is_leaf() 803 struct INDEX_HDR ihdr; // 0x10: member 807 static_assert(offsetof(struct INDEX_ROOT, ihdr) == 0x10);
|
D | fslog.c | 2637 return check_index_header(&ib->ihdr, in check_index_buffer() 2638 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in check_index_buffer() 2664 ret = check_index_header(&root->ihdr, in check_index_root() 2666 offsetof(struct INDEX_ROOT, ihdr)); in check_index_root() 2892 u32 o = offsetof(struct INDEX_BUFFER, ihdr) + de_off; in check_if_alloc_index() 3378 hdr = &root->ihdr; in do_action() 3405 hdr = &root->ihdr; in do_action() 3430 hdr = &root->ihdr; in do_action() 3445 hdr = &root->ihdr; in do_action() 3460 hdr = &root->ihdr; in do_action() [all …]
|
D | inode.c | 1441 memcpy(root, dir_root, offsetof(struct INDEX_ROOT, ihdr)); in ntfs_create_inode() 1442 root->ihdr.de_off = cpu_to_le32(sizeof(struct INDEX_HDR)); in ntfs_create_inode() 1443 root->ihdr.used = cpu_to_le32(sizeof(struct INDEX_HDR) + in ntfs_create_inode() 1445 root->ihdr.total = root->ihdr.used; in ntfs_create_inode()
|
D | fsntfs.c | 1875 offsetof(struct INDEX_ROOT, ihdr) + in ntfs_security_init() 1876 le32_to_cpu(root_sdh->ihdr.used) > in ntfs_security_init() 1895 offsetof(struct INDEX_ROOT, ihdr) + in ntfs_security_init() 1896 le32_to_cpu(root_sii->ihdr.used) > in ntfs_security_init()
|
/Linux-v6.6/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-v6.6/net/rds/ |
D | ib_recv.c | 855 struct rds_header *ihdr, *hdr; in rds_ib_process_recv() local 873 ihdr = ic->i_recv_hdrs[recv - ic->i_recvs]; in rds_ib_process_recv() 876 sizeof(*ihdr), DMA_FROM_DEVICE); in rds_ib_process_recv() 878 if (!rds_message_verify_checksum(ihdr)) { in rds_ib_process_recv() 888 state->ack_recv = be64_to_cpu(ihdr->h_ack); in rds_ib_process_recv() 892 if (ihdr->h_credit) in rds_ib_process_recv() 893 rds_ib_send_add_credits(conn, ihdr->h_credit); in rds_ib_process_recv() 895 if (ihdr->h_sport == 0 && ihdr->h_dport == 0 && data_len == 0) { in rds_ib_process_recv() 930 memcpy(hdr, ihdr, sizeof(*hdr)); in rds_ib_process_recv() 941 if (hdr->h_sequence != ihdr->h_sequence || in rds_ib_process_recv() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_discovery.c | 385 struct ip_discovery_header *ihdr = in amdgpu_discovery_init() local 387 if (le32_to_cpu(ihdr->signature) != DISCOVERY_TABLE_SIGNATURE) { in amdgpu_discovery_init() 394 le16_to_cpu(ihdr->size), checksum)) { in amdgpu_discovery_init() 527 struct ip_discovery_header *ihdr; in amdgpu_discovery_read_harvest_bit_per_ip() local 534 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_read_harvest_bit_per_ip() 536 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_read_harvest_bit_per_ip() 540 die_offset = le16_to_cpu(ihdr->die_info[i].die_offset); in amdgpu_discovery_read_harvest_bit_per_ip() 577 if (ihdr->base_addr_64_bit) in amdgpu_discovery_read_harvest_bit_per_ip() 1033 struct ip_discovery_header *ihdr; in amdgpu_discovery_sysfs_recurse() local 1041 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_sysfs_recurse() [all …]
|
/Linux-v6.6/net/ipv6/ |
D | exthdrs.c | 1073 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr0() local 1076 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr0() 1078 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0() 1079 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr0() 1081 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 1084 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr0() 1088 *addr_p = ihdr->addr; in ipv6_push_rthdr0()
|
/Linux-v6.6/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-v6.6/drivers/usb/gadget/function/ |
D | uvc_configfs.c | 3001 struct uvc_input_header_descriptor *ihdr = *dest; in __uvcg_fill_strm() local 3012 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz; in __uvcg_fill_strm() 3013 ihdr->bNumFormats = h->num_fmt; in __uvcg_fill_strm()
|
/Linux-v6.6/net/key/ |
D | af_key.c | 1717 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) in unicast_flush_resp() argument 1726 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg)); in unicast_flush_resp()
|