Home
last modified time | relevance | path

Searched refs:ihdr (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.15/net/core/
Dselftests.c62 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-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_discovery.c165 struct ip_discovery_header *ihdr; in amdgpu_discovery_init() local
206 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
208 if (le32_to_cpu(ihdr->signature) != DISCOVERY_TABLE_SIGNATURE) { in amdgpu_discovery_init()
215 ihdr->size, checksum)) { in amdgpu_discovery_init()
251 struct ip_discovery_header *ihdr; in amdgpu_discovery_reg_base_init() local
270 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_reg_base_init()
272 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_reg_base_init()
277 die_offset = le16_to_cpu(ihdr->die_info[i].die_offset); in amdgpu_discovery_reg_base_init()
335 struct ip_discovery_header *ihdr; in amdgpu_discovery_get_ip_version() local
350 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_get_ip_version()
[all …]
/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c67 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-v5.15/net/rds/
Dib_recv.c853 struct rds_header *ihdr, *hdr; in rds_ib_process_recv() local
871 ihdr = ic->i_recv_hdrs[recv - ic->i_recvs]; in rds_ib_process_recv()
874 sizeof(*ihdr), DMA_FROM_DEVICE); in rds_ib_process_recv()
876 if (!rds_message_verify_checksum(ihdr)) { in rds_ib_process_recv()
886 state->ack_recv = be64_to_cpu(ihdr->h_ack); in rds_ib_process_recv()
890 if (ihdr->h_credit) in rds_ib_process_recv()
891 rds_ib_send_add_credits(conn, ihdr->h_credit); in rds_ib_process_recv()
893 if (ihdr->h_sport == 0 && ihdr->h_dport == 0 && data_len == 0) { in rds_ib_process_recv()
928 memcpy(hdr, ihdr, sizeof(*hdr)); in rds_ib_process_recv()
939 if (hdr->h_sequence != ihdr->h_sequence || in rds_ib_process_recv()
[all …]
/Linux-v5.15/fs/ntfs3/
Dindex.c898 hdr = &index->ihdr; in indx_new()
917 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new()
1056 hdr = &root->ihdr; in indx_find()
1091 e = hdr_find_e(indx, &node->index->ihdr, key, key_len, ctx, in indx_find()
1118 e = hdr_first_de(&root->ihdr); in indx_find_sort()
1129 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_sort()
1140 e = hdr_next_de(&n->index->ihdr, e); in indx_find_sort()
1168 e = hdr_first_de(&n->index->ihdr); in indx_find_sort()
1232 e = hdr_first_de(&root->ihdr); in indx_find_raw()
1259 e = hdr_next_de(&root->ihdr, fnd->root_de); in indx_find_raw()
[all …]
Ddir.c424 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()
Dntfs.h758 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);
Dfslog.c2660 return check_index_header(&ib->ihdr, in check_index_buffer()
2661 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in check_index_buffer()
2686 ret = check_index_header(&root->ihdr, in check_index_root()
2688 offsetof(struct INDEX_ROOT, ihdr)); in check_index_root()
2911 u32 o = offsetof(struct INDEX_BUFFER, ihdr) + de_off; in check_if_alloc_index()
3397 hdr = &root->ihdr; in do_action()
3424 hdr = &root->ihdr; in do_action()
3449 hdr = &root->ihdr; in do_action()
3464 hdr = &root->ihdr; in do_action()
3479 hdr = &root->ihdr; in do_action()
[all …]
Dinode.c1398 memcpy(root, dir_root, offsetof(struct INDEX_ROOT, ihdr)); in ntfs_create_inode()
1399 root->ihdr.de_off = in ntfs_create_inode()
1401 root->ihdr.used = cpu_to_le32(sizeof(struct INDEX_HDR) + in ntfs_create_inode()
1403 root->ihdr.total = root->ihdr.used; in ntfs_create_inode()
/Linux-v5.15/net/ipv6/
Dexthdrs.c1110 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr0() local
1113 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr0()
1115 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0()
1116 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr0()
1118 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0()
1121 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr0()
1125 *addr_p = ihdr->addr; in ipv6_push_rthdr0()
/Linux-v5.15/net/tipc/
Dmsg.c579 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()
Dlink.c1940 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local
1958 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg()
1959 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg()
1961 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
/Linux-v5.15/drivers/usb/gadget/function/
Duvc_configfs.c2086 struct uvc_input_header_descriptor *ihdr = *dest; in __uvcg_fill_strm() local
2097 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz; in __uvcg_fill_strm()
2098 ihdr->bNumFormats = h->num_fmt; in __uvcg_fill_strm()
/Linux-v5.15/net/key/
Daf_key.c1715 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) in unicast_flush_resp() argument
1724 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg)); in unicast_flush_resp()