/openbmc/linux/net/core/ |
H A D | selftests.c | 62 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 …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | index.c | 641 if (bytes <= offsetof(struct INDEX_BUFFER, ihdr) || in index_buf_check() 652 return index_hdr_check(&ib->ihdr, in index_buf_check() 653 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in index_buf_check() 881 if (t32 <= offsetof(struct INDEX_ROOT, ihdr) || in indx_init() 882 !index_hdr_check(&root->ihdr, in indx_init() 883 t32 - offsetof(struct INDEX_ROOT, ihdr))) { in indx_init() 969 hdr = &index->ihdr; in indx_new() 988 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr)); in indx_new() 1014 offsetof(struct INDEX_ROOT, ihdr) + le32_to_cpu(root->ihdr.used) > in indx_get_root() 1109 if (offsetof(struct INDEX_BUFFER, ihdr) + le32_to_cpu(ib->ihdr.used) > in indx_read() [all …]
|
H A D | dir.c | 456 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() 596 hdr = &node->index->ihdr; in ntfs_dir_count()
|
H A D | ntfs.h | 758 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 D | fslog.c | 2656 return check_index_header(&ib->ihdr, in check_index_buffer() 2657 bytes - offsetof(struct INDEX_BUFFER, ihdr)); in check_index_buffer() 2683 ret = check_index_header(&root->ihdr, in check_index_root() 2685 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 …]
|
H A D | inode.c | 1469 memcpy(root, dir_root, offsetof(struct INDEX_ROOT, ihdr)); in ntfs_create_inode() 1470 root->ihdr.de_off = cpu_to_le32(sizeof(struct INDEX_HDR)); in ntfs_create_inode() 1471 root->ihdr.used = cpu_to_le32(sizeof(struct INDEX_HDR) + in ntfs_create_inode() 1473 root->ihdr.total = root->ihdr.used; in ntfs_create_inode()
|
H A D | fsntfs.c | 1900 offsetof(struct INDEX_ROOT, ihdr) + in ntfs_security_init() 1901 le32_to_cpu(root_sdh->ihdr.used) > in ntfs_security_init() 1920 offsetof(struct INDEX_ROOT, ihdr) + in ntfs_security_init() 1921 le32_to_cpu(root_sii->ihdr.used) > in ntfs_security_init()
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_selftests.c | 67 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 …]
|
/openbmc/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() 360 struct mctp_i3c_internal_hdr *ihdr = NULL; in mctp_i3c_xmit() local 371 ihdr = (void *)skb_mac_header(skb); in mctp_i3c_xmit() 373 pid = get_unaligned_be48(ihdr->dest); in mctp_i3c_xmit() 504 struct mctp_i3c_internal_hdr *ihdr; in mctp_i3c_header_create() local 508 ihdr = (void *)skb_mac_header(skb); in mctp_i3c_header_create() 509 memcpy(ihdr->dest, daddr, PID_SIZE); in mctp_i3c_header_create() [all …]
|
/openbmc/linux/net/rds/ |
H A D | ib_recv.c | 855 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() 888 state->ack_recv = be64_to_cpu(ihdr->h_ack); in rds_ib_process_recv() 892 if (ihdr->h_credit) in rds_ib_process_recv() 893 rds_ib_send_add_credits(conn, 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() 941 if (hdr->h_sequence != ihdr->h_sequence || in rds_ib_process_recv() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_discovery.c | 404 struct ip_discovery_header *ihdr = in amdgpu_discovery_init() local 406 if (le32_to_cpu(ihdr->signature) != DISCOVERY_TABLE_SIGNATURE) { in amdgpu_discovery_init() 413 le16_to_cpu(ihdr->size), checksum)) { in amdgpu_discovery_init() 546 struct ip_discovery_header *ihdr; in amdgpu_discovery_read_harvest_bit_per_ip() local 553 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_read_harvest_bit_per_ip() 555 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_read_harvest_bit_per_ip() 559 die_offset = le16_to_cpu(ihdr->die_info[i].die_offset); in amdgpu_discovery_read_harvest_bit_per_ip() 596 if (ihdr->base_addr_64_bit) in amdgpu_discovery_read_harvest_bit_per_ip() 1052 struct ip_discovery_header *ihdr; in amdgpu_discovery_sysfs_recurse() local 1060 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_sysfs_recurse() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | exthdrs.c | 1083 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr0() local 1086 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr0() 1088 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0() 1089 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr0() 1091 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 1094 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr0() 1098 *addr_p = ihdr->addr; in ipv6_push_rthdr0()
|
/openbmc/linux/net/tipc/ |
H A D | msg.c | 583 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 D | link.c | 1944 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local 1962 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg() 1963 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg() 1965 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
|
/openbmc/u-boot/tools/ |
H A D | mxsimage.c | 1410 struct sb_boot_image_header *ihdr = &ictx->payload; in sb_fixup_sections_and_tags() local 1415 uint32_t offset = ihdr->first_boot_tag_block; in sb_fixup_sections_and_tags()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | uvc_configfs.c | 3013 struct uvc_input_header_descriptor *ihdr = *dest; in __uvcg_fill_strm() local 3024 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz; in __uvcg_fill_strm() 3025 ihdr->bNumFormats = h->num_fmt; in __uvcg_fill_strm()
|
/openbmc/linux/net/key/ |
H A D | af_key.c | 1717 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) in unicast_flush_resp() argument 1726 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg)); in unicast_flush_resp()
|