Searched refs:ihdr (Results 1 - 16 of 16) sorted by relevance

/linux-master/net/core/
H A Dselftests.c62 struct iphdr *ihdr; local
85 ihdr = skb_put(skb, sizeof(*ihdr));
113 (sizeof(*ihdr) + sizeof(*ehdr)));
117 ihdr->ihl = 5;
118 ihdr->ttl = 32;
119 ihdr->version = 4;
121 ihdr->protocol = IPPROTO_TCP;
123 ihdr->protocol = IPPROTO_UDP;
124 iplen = sizeof(*ihdr)
182 struct iphdr *ihdr; local
[all...]
/linux-master/fs/ntfs3/
H A Dindex.c641 if (bytes <= offsetof(struct INDEX_BUFFER, ihdr) ||
652 return index_hdr_check(&ib->ihdr,
653 bytes - offsetof(struct INDEX_BUFFER, ihdr));
881 if (t32 <= offsetof(struct INDEX_ROOT, ihdr) ||
882 !index_hdr_check(&root->ihdr,
883 t32 - offsetof(struct INDEX_ROOT, ihdr))) {
969 hdr = &index->ihdr;
988 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr));
1014 offsetof(struct INDEX_ROOT, ihdr) + le32_to_cpu(root->ihdr
[all...]
H A Ddir.c448 err = ntfs_read_hdr(sbi, ni, &root->ihdr, 0, pos, name, ctx);
487 err = ntfs_read_hdr(sbi, ni, &node->index->ihdr,
529 hdr = &root->ihdr;
584 hdr = &node->index->ihdr;
H A Dntfs.h760 struct INDEX_HDR ihdr; // 0x18: member in struct:INDEX_BUFFER
767 const struct NTFS_DE *first = hdr_first_de(&ib->ihdr);
774 return !(ib->ihdr.flags & 1);
801 struct INDEX_HDR ihdr; // 0x10: member in struct:INDEX_ROOT
805 static_assert(offsetof(struct INDEX_ROOT, ihdr) == 0x10);
H A Dfslog.c2636 return check_index_header(&ib->ihdr,
2637 bytes - offsetof(struct INDEX_BUFFER, ihdr));
2663 ret = check_index_header(&root->ihdr,
2665 offsetof(struct INDEX_ROOT, ihdr));
2891 u32 o = offsetof(struct INDEX_BUFFER, ihdr) + de_off;
3377 hdr = &root->ihdr;
3404 hdr = &root->ihdr;
3429 hdr = &root->ihdr;
3444 hdr = &root->ihdr;
3459 hdr = &root->ihdr;
[all...]
H A Dinode.c1466 memcpy(root, dir_root, offsetof(struct INDEX_ROOT, ihdr));
1467 root->ihdr.de_off = cpu_to_le32(sizeof(struct INDEX_HDR));
1468 root->ihdr.used = cpu_to_le32(sizeof(struct INDEX_HDR) +
1470 root->ihdr.total = root->ihdr.used;
H A Dfsntfs.c1900 offsetof(struct INDEX_ROOT, ihdr) +
1901 le32_to_cpu(root_sdh->ihdr.used) >
1920 offsetof(struct INDEX_ROOT, ihdr) +
1921 le32_to_cpu(root_sii->ihdr.used) >
/linux-master/drivers/net/mctp/
H A Dmctp-i3c.c104 struct mctp_i3c_internal_hdr *ihdr = NULL; local
121 ihdr = skb_put(skb, sizeof(struct mctp_i3c_internal_hdr));
122 put_unaligned_be48(mi->pid, ihdr->source);
123 put_unaligned_be48(mi->mbus->pid, ihdr->dest);
360 struct mctp_i3c_internal_hdr *ihdr = NULL; local
371 ihdr = (void *)skb_mac_header(skb);
373 pid = get_unaligned_be48(ihdr->dest);
504 struct mctp_i3c_internal_hdr *ihdr; local
508 ihdr = (void *)skb_mac_header(skb);
509 memcpy(ihdr
[all...]
/linux-master/net/rds/
H A Dib_recv.c855 struct rds_header *ihdr, *hdr; local
873 ihdr = ic->i_recv_hdrs[recv - ic->i_recvs];
876 sizeof(*ihdr), DMA_FROM_DEVICE);
878 if (!rds_message_verify_checksum(ihdr)) {
888 state->ack_recv = be64_to_cpu(ihdr->h_ack);
892 if (ihdr->h_credit)
893 rds_ib_send_add_credits(conn, ihdr->h_credit);
895 if (ihdr->h_sport == 0 && ihdr->h_dport == 0 && data_len == 0) {
930 memcpy(hdr, ihdr, sizeo
[all...]
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_selftests.c67 struct iphdr *ihdr; local
102 ihdr = skb_put(skb, sizeof(*ihdr));
160 (sizeof(*ihdr) + sizeof(*ehdr)));
164 ihdr->ihl = 5;
165 ihdr->ttl = 32;
166 ihdr->version = 4;
168 ihdr->protocol = IPPROTO_TCP;
170 ihdr->protocol = IPPROTO_UDP;
171 iplen = sizeof(*ihdr)
258 struct iphdr *ihdr; local
844 struct iphdr *ihdr; local
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_discovery.c420 struct ip_discovery_header *ihdr = local
422 if (le32_to_cpu(ihdr->signature) != DISCOVERY_TABLE_SIGNATURE) {
429 le16_to_cpu(ihdr->size), checksum)) {
564 struct ip_discovery_header *ihdr; local
571 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin +
573 num_dies = le16_to_cpu(ihdr->num_dies);
577 die_offset = le16_to_cpu(ihdr->die_info[i].die_offset);
614 if (ihdr->base_addr_64_bit)
1070 struct ip_discovery_header *ihdr; local
1078 ihdr
1226 struct ip_discovery_header *ihdr; local
[all...]
/linux-master/net/ipv6/
H A Dexthdrs.c1081 struct rt0_hdr *phdr, *ihdr; local
1084 ihdr = (struct rt0_hdr *) opt;
1086 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3);
1087 memcpy(phdr, ihdr, sizeof(struct rt0_hdr));
1089 hops = ihdr->rt_hdr.hdrlen >> 1;
1092 memcpy(phdr->addr, ihdr->addr + 1,
1096 *addr_p = ihdr->addr;
/linux-master/net/tipc/
H A Dmsg.c579 struct tipc_msg *hdr, *ihdr; local
590 ihdr = (struct tipc_msg *)(msg_data(hdr) + *pos);
591 imsz = msg_size(ihdr);
600 skb_copy_to_linear_data(*iskb, ihdr, imsz);
H A Dlink.c1929 struct tipc_msg *hdr, *ihdr; local
1947 ihdr = (struct tipc_msg *)msg_data(hdr);
1948 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG,
1950 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT);
/linux-master/drivers/usb/gadget/function/
H A Duvc_configfs.c3001 struct uvc_input_header_descriptor *ihdr = *dest; local
3012 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz;
3013 ihdr->bNumFormats = h->num_fmt;
/linux-master/net/key/
H A Daf_key.c1717 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) argument
1726 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg));

Completed in 324 milliseconds