| /linux/net/core/ |
| H A D | selftests.c | 27 struct iphdr *ihdr; in net_test_get_skb() local 50 ihdr = skb_put(skb, sizeof(*ihdr)); in net_test_get_skb() 78 (sizeof(*ihdr) + sizeof(*ehdr))); in net_test_get_skb() 82 ihdr->ihl = 5; in net_test_get_skb() 83 ihdr->ttl = 32; in net_test_get_skb() 84 ihdr->version = 4; in net_test_get_skb() 86 ihdr->protocol = IPPROTO_TCP; in net_test_get_skb() 88 ihdr->protocol = IPPROTO_UDP; in net_test_get_skb() 89 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in net_test_get_skb() 98 ihdr->tot_len = htons(iplen); in net_test_get_skb() [all …]
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_selftests.c | 66 struct iphdr *ihdr; in stmmac_test_get_udp_skb() local 101 ihdr = skb_put(skb, sizeof(*ihdr)); in stmmac_test_get_udp_skb() 159 (sizeof(*ihdr) + sizeof(*ehdr))); in stmmac_test_get_udp_skb() 163 ihdr->ihl = 5; in stmmac_test_get_udp_skb() 164 ihdr->ttl = 32; in stmmac_test_get_udp_skb() 165 ihdr->version = 4; in stmmac_test_get_udp_skb() 167 ihdr->protocol = IPPROTO_TCP; in stmmac_test_get_udp_skb() 169 ihdr->protocol = IPPROTO_UDP; in stmmac_test_get_udp_skb() 170 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in stmmac_test_get_udp_skb() 179 ihdr->tot_len = htons(iplen); in stmmac_test_get_udp_skb() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | index.c | 674 if (bytes <= offsetof(struct INDEX_BUFFER, ihdr) || in index_buf_check() 685 return index_hdr_check(&ib->ihdr, in index_buf_check() 686 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in index_buf_check() 916 if (t32 <= offsetof(struct INDEX_ROOT, ihdr) || in indx_init() 917 !index_hdr_check(&root->ihdr, in indx_init() 918 t32 - offsetof(struct INDEX_ROOT, ihdr))) { in indx_init() 1000 hdr = &index->ihdr; in indx_new() 1019 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new() 1045 offsetof(struct INDEX_ROOT, ihdr) + le32_to_cpu(root->ihdr.used) > in indx_get_root() 1140 if (offsetof(struct INDEX_BUFFER, ihdr) + le32_to_cpu(ib->ihdr.used) > in indx_read_ra() [all …]
|
| H A D | dir.c | 555 err = ntfs_read_hdr(sbi, ni, &root->ihdr, 0, pos, name, ctx); in ntfs_readdir() 589 err = ntfs_read_hdr(sbi, ni, &node->index->ihdr, in ntfs_readdir() 659 hdr = &root->ihdr; in ntfs_dir_count() 711 hdr = &node->index->ihdr; in ntfs_dir_count()
|
| H A 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 & NTFS_INDEX_HDR_HAS_SUBNODES); in ib_is_leaf() 803 struct INDEX_HDR ihdr; // 0x10: member 807 static_assert(offsetof(struct INDEX_ROOT, ihdr) == 0x10);
|
| H A D | fslog.c | 2713 return check_index_header(&ib->ihdr, in check_index_buffer() 2714 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in check_index_buffer() 2740 ret = check_index_header(&root->ihdr, in check_index_root() 2742 offsetof(struct INDEX_ROOT, ihdr)); in check_index_root() 2978 u32 o = offsetof(struct INDEX_BUFFER, ihdr) + de_off; in check_if_alloc_index() 3475 hdr = &root->ihdr; in do_action() 3502 hdr = &root->ihdr; in do_action() 3530 hdr = &root->ihdr; in do_action() 3545 hdr = &root->ihdr; in do_action() 3560 hdr = &root->ihdr; in do_action() [all …]
|
| H A D | inode.c | 1647 memcpy(root, dir_root, offsetof(struct INDEX_ROOT, ihdr)); in ntfs_create_inode() 1648 root->ihdr.de_off = cpu_to_le32(sizeof(struct INDEX_HDR)); in ntfs_create_inode() 1649 root->ihdr.used = cpu_to_le32(sizeof(struct INDEX_HDR) + in ntfs_create_inode() 1651 root->ihdr.total = root->ihdr.used; in ntfs_create_inode()
|
| H A D | fsntfs.c | 1910 offsetof(struct INDEX_ROOT, ihdr) + in ntfs_security_init() 1911 le32_to_cpu(root_sdh->ihdr.used) > in ntfs_security_init() 1930 offsetof(struct INDEX_ROOT, ihdr) + in ntfs_security_init() 1931 le32_to_cpu(root_sii->ihdr.used) > in ntfs_security_init()
|
| /linux/drivers/net/mctp/ |
| H A D | mctp-i3c.c | 104 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/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_discovery.c | 636 struct ip_discovery_header *ihdr = in amdgpu_discovery_table_check() local 638 act_val = le32_to_cpu(ihdr->signature); in amdgpu_discovery_table_check() 640 table_size = le16_to_cpu(ihdr->size); in amdgpu_discovery_table_check() 810 struct ip_discovery_header *ihdr; in amdgpu_discovery_read_harvest_bit_per_ip() local 819 ihdr = (struct ip_discovery_header in amdgpu_discovery_read_harvest_bit_per_ip() 822 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_read_harvest_bit_per_ip() 826 die_offset = le16_to_cpu(ihdr->die_info[i].die_offset); in amdgpu_discovery_read_harvest_bit_per_ip() 1337 struct ip_discovery_header *ihdr; in amdgpu_discovery_sysfs_recurse() local 1348 ihdr = (struct ip_discovery_header in amdgpu_discovery_sysfs_recurse() 1351 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_sysfs_recurse() [all …]
|
| /linux/net/tipc/ |
| H A D | msg.c | 595 struct tipc_msg *hdr, *ihdr; in tipc_msg_extract() 606 ihdr = (struct tipc_msg *)(msg_data(hdr) + *pos); in tipc_msg_extract() 607 imsz = msg_size(ihdr); in tipc_msg_extract() 616 skb_copy_to_linear_data(*iskb, ihdr, imsz); 583 struct tipc_msg *hdr, *ihdr; tipc_msg_extract() local
|
| H A D | link.c | 1920 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local 1938 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg() 1939 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg() 1941 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | uvc_configfs.c | 3334 struct uvc_input_header_descriptor *ihdr = *dest; in __uvcg_fill_strm() local 3345 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz; in __uvcg_fill_strm() 3346 ihdr->bNumFormats = h->num_fmt; in __uvcg_fill_strm()
|
| /linux/net/key/ |
| H A D | af_key.c | 1735 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) in unicast_flush_resp() argument 1744 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg)); in unicast_flush_resp()
|