Searched refs:ihdr (Results 1 – 8 of 8) sorted by relevance
| /Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_discovery.c | 175 struct ip_discovery_header *ihdr; in amdgpu_discovery_init() local 215 ihdr = (struct ip_discovery_header *)(adev->discovery + offset); in amdgpu_discovery_init() 217 if (le32_to_cpu(ihdr->signature) != DISCOVERY_TABLE_SIGNATURE) { in amdgpu_discovery_init() 224 ihdr->size, checksum)) { in amdgpu_discovery_init() 260 struct ip_discovery_header *ihdr; in amdgpu_discovery_reg_base_init() local 277 ihdr = (struct ip_discovery_header *)(adev->discovery + in amdgpu_discovery_reg_base_init() 279 num_dies = le16_to_cpu(ihdr->num_dies); in amdgpu_discovery_reg_base_init() 284 die_offset = le16_to_cpu(ihdr->die_info[i].die_offset); in amdgpu_discovery_reg_base_init() 339 struct ip_discovery_header *ihdr; in amdgpu_discovery_get_ip_version() local 354 ihdr = (struct ip_discovery_header *)(adev->discovery + in amdgpu_discovery_get_ip_version() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/ |
| D | stmmac_selftests.c | 65 struct iphdr *ihdr; in stmmac_test_get_udp_skb() local 100 ihdr = skb_put(skb, sizeof(*ihdr)); in stmmac_test_get_udp_skb() 158 (sizeof(*ihdr) + sizeof(*ehdr))); in stmmac_test_get_udp_skb() 162 ihdr->ihl = 5; in stmmac_test_get_udp_skb() 163 ihdr->ttl = 32; in stmmac_test_get_udp_skb() 164 ihdr->version = 4; in stmmac_test_get_udp_skb() 166 ihdr->protocol = IPPROTO_TCP; in stmmac_test_get_udp_skb() 168 ihdr->protocol = IPPROTO_UDP; in stmmac_test_get_udp_skb() 169 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in stmmac_test_get_udp_skb() 178 ihdr->tot_len = htons(iplen); in stmmac_test_get_udp_skb() [all …]
|
| /Linux-v5.4/net/rds/ |
| D | ib_recv.c | 847 struct rds_header *ihdr, *hdr; in rds_ib_process_recv() local 864 ihdr = &ic->i_recv_hdrs[recv - ic->i_recvs]; in rds_ib_process_recv() 867 if (!rds_message_verify_checksum(ihdr)) { in rds_ib_process_recv() 877 state->ack_recv = be64_to_cpu(ihdr->h_ack); in rds_ib_process_recv() 881 if (ihdr->h_credit) in rds_ib_process_recv() 882 rds_ib_send_add_credits(conn, ihdr->h_credit); in rds_ib_process_recv() 884 if (ihdr->h_sport == 0 && ihdr->h_dport == 0 && data_len == 0) { in rds_ib_process_recv() 919 memcpy(hdr, ihdr, sizeof(*hdr)); in rds_ib_process_recv() 930 if (hdr->h_sequence != ihdr->h_sequence || in rds_ib_process_recv() 931 hdr->h_len != ihdr->h_len || in rds_ib_process_recv() [all …]
|
| /Linux-v5.4/net/ipv6/ |
| D | exthdrs.c | 870 struct rt0_hdr *phdr, *ihdr; in ipv6_push_rthdr0() local 873 ihdr = (struct rt0_hdr *) opt; in ipv6_push_rthdr0() 875 phdr = skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3); in ipv6_push_rthdr0() 876 memcpy(phdr, ihdr, sizeof(struct rt0_hdr)); in ipv6_push_rthdr0() 878 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr0() 881 memcpy(phdr->addr, ihdr->addr + 1, in ipv6_push_rthdr0() 885 *addr_p = ihdr->addr; in ipv6_push_rthdr0()
|
| /Linux-v5.4/net/tipc/ |
| D | msg.c | 478 struct tipc_msg *hdr, *ihdr; in tipc_msg_extract() local 489 ihdr = (struct tipc_msg *)(msg_data(hdr) + *pos); in tipc_msg_extract() 490 imsz = msg_size(ihdr); in tipc_msg_extract() 499 skb_copy_to_linear_data(*iskb, ihdr, imsz); in tipc_msg_extract()
|
| D | link.c | 1685 struct tipc_msg *hdr, *ihdr; in tipc_link_create_dummy_tnl_msg() local 1703 ihdr = (struct tipc_msg *)msg_data(hdr); in tipc_link_create_dummy_tnl_msg() 1704 tipc_msg_init(onode, ihdr, TIPC_LOW_IMPORTANCE, TIPC_DIRECT_MSG, in tipc_link_create_dummy_tnl_msg() 1706 msg_set_errcode(ihdr, TIPC_ERR_NO_PORT); in tipc_link_create_dummy_tnl_msg()
|
| /Linux-v5.4/drivers/usb/gadget/function/ |
| D | uvc_configfs.c | 2091 struct uvc_input_header_descriptor *ihdr = *dest; in __uvcg_fill_strm() local 2102 ihdr->bLength = sizeof(h->desc) + h->num_fmt * sz; in __uvcg_fill_strm() 2103 ihdr->bNumFormats = h->num_fmt; in __uvcg_fill_strm()
|
| /Linux-v5.4/net/key/ |
| D | af_key.c | 1719 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) in unicast_flush_resp() argument 1728 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg)); in unicast_flush_resp()
|