Home
last modified time | relevance | path

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

/linux/net/core/
A Dselftests.c62 struct iphdr *ihdr; in net_test_get_skb() local
85 ihdr = skb_put(skb, sizeof(*ihdr)); 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()
134 ihdr->frag_off = 0; in net_test_get_skb()
137 ihdr->tos = 0; in net_test_get_skb()
138 ihdr->id = 0; in net_test_get_skb()
160 udp4_hwcsum(skb, ihdr->saddr, ihdr->daddr); in net_test_get_skb()
212 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in net_test_loopback_validate()
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
A 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()
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()
184 ihdr->tos = 0; in stmmac_test_get_udp_skb()
185 ihdr->id = 0; in stmmac_test_get_udp_skb()
206 udp4_hwcsum(skb, ihdr->saddr, ihdr->daddr); in stmmac_test_get_udp_skb()
290 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_loopback_validate()
299 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_loopback_validate()
[all …]
/linux/net/rds/
A 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()
890 if (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()
940 hdr->h_len != ihdr->h_len || in rds_ib_process_recv()
941 hdr->h_sport != ihdr->h_sport || in rds_ib_process_recv()
942 hdr->h_dport != ihdr->h_dport) { in rds_ib_process_recv()
[all …]
/linux/fs/ntfs3/
A Dindex.c898 hdr = &index->ihdr; in indx_new()
1056 hdr = &root->ihdr; in indx_find()
1499 hdr = &root->ihdr; in indx_insert_into_root()
1623 hdr = &n->index->ihdr; in indx_insert_into_root()
1893 const struct INDEX_HDR *hdr = n ? &n->index->ihdr : &root->ihdr; in indx_find_buffer()
2189 hdr = &ib->ihdr; in indx_delete_entry()
2191 hdr = &root->ihdr; in indx_delete_entry()
2284 hdr = level ? &fnd->nodes[level - 1]->index->ihdr : &root->ihdr; in indx_delete_entry()
2333 hdr = &ib->ihdr; in indx_delete_entry()
2341 hdr = &root->ihdr; in indx_delete_entry()
[all …]
A 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()
A 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);
A Dfslog.c3397 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()
3514 hdr = &ib->ihdr; in do_action()
3546 hdr = &ib->ihdr; in do_action()
3575 hdr = &ib->ihdr; in do_action()
3598 hdr = &ib->ihdr; in do_action()
3619 hdr = &ib->ihdr; in do_action()
[all …]
A 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/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_discovery.c213 struct ip_discovery_header *ihdr; in amdgpu_discovery_init() local
268 if (le32_to_cpu(ihdr->signature) != DISCOVERY_TABLE_SIGNATURE) { in amdgpu_discovery_init()
275 le16_to_cpu(ihdr->size), checksum)) { in amdgpu_discovery_init()
327 struct ip_discovery_header *ihdr; in amdgpu_discovery_reg_base_init() local
346 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_reg_base_init()
348 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_reg_base_init()
353 die_offset = le16_to_cpu(ihdr->die_info[i].die_offset); in amdgpu_discovery_reg_base_init()
431 struct ip_discovery_header *ihdr; in amdgpu_discovery_get_ip_version() local
446 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_get_ip_version()
448 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_get_ip_version()
[all …]
/linux/net/ipv6/
A 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/net/tipc/
A 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()
A Dlink.c1943 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local
1961 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg()
1962 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg()
1964 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
/linux/drivers/usb/gadget/function/
A 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/net/key/
A 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()

Completed in 63 milliseconds