Home
last modified time | relevance | path

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

/linux-6.15/net/core/
H 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()
168 udp4_hwcsum(skb, ihdr->saddr, ihdr->daddr); in net_test_get_skb()
220 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in net_test_loopback_validate()
[all …]
/linux-6.15/fs/ntfs3/
H A Dindex.c969 hdr = &index->ihdr; in indx_new()
1014 offsetof(struct INDEX_ROOT, ihdr) + le32_to_cpu(root->ihdr.used) > in indx_get_root()
1108 if (offsetof(struct INDEX_BUFFER, ihdr) + le32_to_cpu(ib->ihdr.used) > in indx_read()
1603 hdr = &root->ihdr; in indx_insert_into_root()
2007 const struct INDEX_HDR *hdr = n ? &n->index->ihdr : &root->ihdr; in indx_find_buffer()
2307 hdr = &ib->ihdr; in indx_delete_entry()
2309 hdr = &root->ihdr; in indx_delete_entry()
2402 hdr = level ? &fnd->nodes[level - 1]->index->ihdr : &root->ihdr; in indx_delete_entry()
2451 hdr = &ib->ihdr; in indx_delete_entry()
2459 hdr = &root->ihdr; in indx_delete_entry()
[all …]
H A Ddir.c456 err = ntfs_read_hdr(sbi, ni, &root->ihdr, 0, pos, name, ctx); in ntfs_readdir()
494 err = ntfs_read_hdr(sbi, ni, &node->index->ihdr, in ntfs_readdir()
543 hdr = &root->ihdr; in ntfs_dir_count()
598 hdr = &node->index->ihdr; in ntfs_dir_count()
H 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 & NTFS_INDEX_HDR_HAS_SUBNODES); in ib_is_leaf()
799 struct INDEX_HDR ihdr; // 0x10: member
803 static_assert(offsetof(struct INDEX_ROOT, ihdr) == 0x10);
H 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 …]
H A Dinode.c1399 memcpy(root, dir_root, offsetof(struct INDEX_ROOT, ihdr)); in ntfs_create_inode()
1400 root->ihdr.de_off = cpu_to_le32(sizeof(struct INDEX_HDR)); 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()
H A Dfsntfs.c1876 offsetof(struct INDEX_ROOT, ihdr) + in ntfs_security_init()
1877 le32_to_cpu(root_sdh->ihdr.used) > in ntfs_security_init()
1896 offsetof(struct INDEX_ROOT, ihdr) + in ntfs_security_init()
1897 le32_to_cpu(root_sii->ihdr.used) > in ntfs_security_init()
/linux-6.15/drivers/net/ethernet/stmicro/stmmac/
H 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-6.15/drivers/net/mctp/
H A Dmctp-i3c.c104 struct mctp_i3c_internal_hdr *ihdr = NULL; in mctp_i3c_read() local
121 ihdr = skb_put(skb, sizeof(struct mctp_i3c_internal_hdr)); in mctp_i3c_read()
122 put_unaligned_be48(mi->pid, ihdr->source); in mctp_i3c_read()
123 put_unaligned_be48(mi->mbus->pid, ihdr->dest); in mctp_i3c_read()
364 struct mctp_i3c_internal_hdr *ihdr = NULL; in mctp_i3c_xmit() local
375 ihdr = (void *)skb_mac_header(skb); in mctp_i3c_xmit()
377 pid = get_unaligned_be48(ihdr->dest); in mctp_i3c_xmit()
508 struct mctp_i3c_internal_hdr *ihdr; in mctp_i3c_header_create() local
520 ihdr = (void *)skb_mac_header(skb); in mctp_i3c_header_create()
521 memcpy(ihdr->dest, daddr, PID_SIZE); in mctp_i3c_header_create()
[all …]
/linux-6.15/net/rds/
H A Dib_recv.c855 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()
892 if (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()
942 hdr->h_len != ihdr->h_len || in rds_ib_process_recv()
943 hdr->h_sport != ihdr->h_sport || in rds_ib_process_recv()
944 hdr->h_dport != ihdr->h_dport) { in rds_ib_process_recv()
[all …]
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_discovery.c495 struct ip_discovery_header *ihdr = in amdgpu_discovery_init() local
642 struct ip_discovery_header *ihdr; in amdgpu_discovery_read_harvest_bit_per_ip() local
653 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_read_harvest_bit_per_ip()
1160 struct ip_discovery_header *ihdr; in amdgpu_discovery_sysfs_recurse() local
1170 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_sysfs_recurse()
1316 struct ip_discovery_header *ihdr; in amdgpu_discovery_reg_base_init() local
1446 if (ihdr->base_addr_64_bit) in amdgpu_discovery_reg_base_init()
1480 if (ihdr->version < 3) { in amdgpu_discovery_reg_base_init()
1499 if (ihdr->base_addr_64_bit) in amdgpu_discovery_reg_base_init()
1514 struct ip_discovery_header *ihdr; in amdgpu_discovery_harvest_ip() local
[all …]
/linux-6.15/net/ipv6/
H A Dexthdrs.c1081 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr0() local
1084 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr0()
1086 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0()
1087 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr0()
1089 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0()
1092 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr0()
1096 *addr_p = ihdr->addr; in ipv6_push_rthdr0()
/linux-6.15/net/tipc/
H A Dmsg.c583 struct tipc_msg *hdr, *ihdr; in tipc_msg_extract() local
594 ihdr = (struct tipc_msg *)(msg_data(hdr) + *pos); in tipc_msg_extract()
595 imsz = msg_size(ihdr); in tipc_msg_extract()
604 skb_copy_to_linear_data(*iskb, ihdr, imsz); in tipc_msg_extract()
H A Dlink.c1923 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local
1941 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg()
1942 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg()
1944 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
/linux-6.15/drivers/usb/gadget/function/
H A Duvc_configfs.c3323 struct uvc_input_header_descriptor *ihdr = *dest; in __uvcg_fill_strm() local
3334 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz; in __uvcg_fill_strm()
3335 ihdr->bNumFormats = h->num_fmt; in __uvcg_fill_strm()
/linux-6.15/net/key/
H A Daf_key.c1718 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()