Home
last modified time | relevance | path

Searched refs:header_len (Results 1 – 25 of 93) sorted by relevance

1234

/linux/net/batman-adv/
A Dgateway_client.c575 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
580 *header_len += ETH_HLEN; in batadv_gw_dhcp_recipient_get()
584 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
589 *header_len += VLAN_HLEN; in batadv_gw_dhcp_recipient_get()
595 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
598 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
599 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
610 ipv6hdr = (struct ipv6hdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
611 *header_len += sizeof(*ipv6hdr); in batadv_gw_dhcp_recipient_get()
625 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
[all …]
A Dmain.c334 int header_len = 0; in batadv_max_header_len() local
336 header_len = max_t(int, header_len, in batadv_max_header_len()
338 header_len = max_t(int, header_len, in batadv_max_header_len()
340 header_len = max_t(int, header_len, in batadv_max_header_len()
344 header_len = max_t(int, header_len, in batadv_max_header_len()
348 return header_len + ETH_HLEN; in batadv_max_header_len()
623 unsigned short batadv_get_vid(struct sk_buff *skb, size_t header_len) in batadv_get_vid() argument
625 struct ethhdr *ethhdr = (struct ethhdr *)(skb->data + header_len); in batadv_get_vid()
632 if (!pskb_may_pull(skb, header_len + VLAN_ETH_HLEN)) in batadv_get_vid()
635 vhdr = (struct vlan_ethhdr *)(skb->data + header_len); in batadv_get_vid()
A Drouting.h17 int header_len);
A Dgateway_client.h37 batadv_gw_dhcp_recipient_get(struct sk_buff *skb, unsigned int *header_len,
/linux/drivers/net/ethernet/sfc/
A Dtx_tso.c73 unsigned int header_len; member
174 unsigned int header_len, in_len; in tso_start() local
179 header_len = st->tcp_off + (tcp_hdr(skb)->doff << 2u); in tso_start()
180 in_len = skb_headlen(skb) - header_len; in tso_start()
181 st->header_len = header_len; in tso_start()
184 st->ip_base_len = st->header_len - st->ip_off; in tso_start()
187 st->ip_base_len = st->header_len - st->tcp_off; in tso_start()
196 st->out_len = skb->len - header_len; in tso_start()
202 st->dma_addr = dma_addr + header_len; in tso_start()
326 buffer->len = st->header_len; in tso_start_new_packet()
A Dtx_common.c316 size_t header_len; in efx_tx_tso_header_length() local
319 header_len = skb_inner_transport_header(skb) - in efx_tx_tso_header_length()
323 header_len = skb_transport_header(skb) - skb->data + in efx_tx_tso_header_length()
325 return header_len; in efx_tx_tso_header_length()
356 size_t header_len = efx_tx_tso_header_length(skb); in efx_tx_map_data() local
358 if (header_len != len) { in efx_tx_map_data()
360 efx_tx_map_chunk(tx_queue, dma_addr, header_len); in efx_tx_map_data()
361 len -= header_len; in efx_tx_map_data()
362 dma_addr += header_len; in efx_tx_map_data()
A Def100_tx.c57 size_t header_len; in ef100_tx_can_tso() local
73 header_len = efx_tx_tso_header_length(skb); in ef100_tx_can_tso()
74 if (header_len > nic_data->tso_max_hdr_len) in ef100_tx_can_tso()
95 buffer->len = header_len; in ef100_tx_can_tso()
/linux/net/x25/
A Dx25_out.c54 int header_len = x25->neighbour->extended ? X25_EXT_MIN_LEN : in x25_output() local
58 if (skb->len - header_len > max_len) { in x25_output()
60 skb_copy_from_linear_data(skb, header, header_len); in x25_output()
61 skb_pull(skb, header_len); in x25_output()
90 skb_push(skbn, header_len); in x25_output()
91 skb_copy_to_linear_data(skbn, header, header_len); in x25_output()
107 sent = skb->len - header_len; in x25_output()
/linux/fs/ceph/
A Dmetric.c27 u32 header_len = sizeof(struct ceph_metric_header); in ceph_mdsc_send_metrics() local
53 cap->header.data_len = cpu_to_le32(sizeof(*cap) - header_len); in ceph_mdsc_send_metrics()
64 read->header.data_len = cpu_to_le32(sizeof(*read) - header_len); in ceph_mdsc_send_metrics()
76 write->header.data_len = cpu_to_le32(sizeof(*write) - header_len); in ceph_mdsc_send_metrics()
88 meta->header.data_len = cpu_to_le32(sizeof(*meta) - header_len); in ceph_mdsc_send_metrics()
100 dlease->header.data_len = cpu_to_le32(sizeof(*dlease) - header_len); in ceph_mdsc_send_metrics()
113 files->header.data_len = cpu_to_le32(sizeof(*files) - header_len); in ceph_mdsc_send_metrics()
123 icaps->header.data_len = cpu_to_le32(sizeof(*icaps) - header_len); in ceph_mdsc_send_metrics()
133 inodes->header.data_len = cpu_to_le32(sizeof(*inodes) - header_len); in ceph_mdsc_send_metrics()
143 rsize->header.data_len = cpu_to_le32(sizeof(*rsize) - header_len); in ceph_mdsc_send_metrics()
[all …]
/linux/drivers/net/ethernet/amazon/ena/
A Dena_eth_com.c92 u16 header_len) in ena_com_write_header_to_bounce() argument
105 if (unlikely((header_offset + header_len) > in ena_com_write_header_to_bounce()
118 memcpy(bounce_buffer + header_offset, header_src, header_len); in ena_com_write_header_to_bounce()
391 u16 header_len = ena_tx_ctx->header_len; in ena_com_prepare_tx() local
407 if (unlikely(header_len > io_sq->tx_max_header_size)) { in ena_com_prepare_tx()
410 header_len, io_sq->tx_max_header_size); in ena_com_prepare_tx()
421 rc = ena_com_write_header_to_bounce(io_sq, buffer_to_push, header_len); in ena_com_prepare_tx()
433 if (unlikely(!num_bufs && !header_len)) { in ena_com_prepare_tx()
451 desc->buff_addr_hi_hdr_sz |= ((u32)header_len << in ena_com_prepare_tx()
/linux/drivers/net/ethernet/google/gve/
A Dgve_tx_dqo.c357 int header_len; in gve_prep_tso() local
389 header_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in gve_prep_tso()
395 if (unlikely(header_len > GVE_TX_MAX_HDR_SIZE_DQO)) in gve_prep_tso()
398 return header_len; in gve_prep_tso()
404 int header_len) in gve_tx_fill_tso_ctx_desc() argument
407 .header_len = header_len, in gve_tx_fill_tso_ctx_desc()
421 desc->tso_total_len = skb->len - header_len; in gve_tx_fill_tso_ctx_desc()
470 int header_len = gve_prep_tso(skb); in gve_tx_add_skb_no_copy_dqo() local
472 if (unlikely(header_len < 0)) in gve_tx_add_skb_no_copy_dqo()
476 skb, &metadata, header_len); in gve_tx_add_skb_no_copy_dqo()
[all …]
A Dgve_desc_dqo.h83 u8 header_len; /* Header length to use for TSO offload */ member
218 u16 header_len: 10; member
/linux/net/ipv6/
A Dmip6.c169 WARN_ON(len != x->props.header_len); in mip6_destopt_output()
170 dstopt->hdrlen = (x->props.header_len >> 3) - 1; in mip6_destopt_output()
262 x->props.header_len = sizeof(struct ipv6_destopt_hdr) + in mip6_destopt_init_state()
265 WARN_ON(x->props.header_len != 24); in mip6_destopt_init_state()
321 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; in mip6_rthdr_output()
348 x->props.header_len = sizeof(struct rt2_hdr); in mip6_rthdr_init_state()
A Dipcomp6.c143 x->props.header_len = 0; in ipcomp6_init_state()
148 x->props.header_len += sizeof(struct ipv6hdr); in ipcomp6_init_state()
/linux/drivers/gpu/drm/i915/display/
A Dintel_dmc.c105 u32 header_len; member
162 u8 header_len; member
178 u8 header_len; member
402 header_len_bytes = dmc_header->header_len * 4; in parse_dmc_fw_header()
416 header_len_bytes = dmc_header->header_len; in parse_dmc_fw_header()
503 if (package_header->header_len * 4 != package_size) { in parse_dmc_fw_package()
539 (css_header->header_len * 4)) { in parse_dmc_fw_css()
542 (css_header->header_len * 4)); in parse_dmc_fw_css()
/linux/net/xfrm/
A Dxfrm_output.c33 int nhead = dst->header_len + LL_RESERVED_SPACE(dst->dev) in xfrm_skb_check_space()
71 skb_set_network_header(skb, -x->props.header_len); in xfrm4_transport_output()
176 (prevhdr - x->props.header_len) - skb->data); in xfrm6_transport_output()
177 skb_set_network_header(skb, -x->props.header_len); in xfrm6_transport_output()
206 (prevhdr - x->props.header_len) - skb->data); in xfrm6_ro_output()
207 skb_set_network_header(skb, -x->props.header_len); in xfrm6_ro_output()
236 skb_set_network_header(skb, -x->props.header_len - hdrlen + in xfrm4_beet_encap_add()
283 skb_set_network_header(skb, -x->props.header_len); in xfrm4_tunnel_encap_add()
328 skb_set_network_header(skb, -x->props.header_len); in xfrm6_tunnel_encap_add()
365 skb_set_network_header(skb, -x->props.header_len - hdr_len); in xfrm6_beet_encap_add()
A Dxfrm_device.c29 skb->transport_header -= x->props.header_len; in __xfrm_transport_prep()
31 pskb_pull(skb, skb_transport_offset(skb) + x->props.header_len); in __xfrm_transport_prep()
44 pskb_pull(skb, skb->mac_len + x->props.header_len); in __xfrm_mode_tunnel_prep()
63 pskb_pull(skb, skb->mac_len + hsize + (x->props.header_len - phlen)); in __xfrm_mode_beet_prep()
/linux/drivers/usb/gadget/function/
A Duvc_video.c136 int header_len; in uvc_video_encode_isoc_sg() local
142 header_len = uvc_video_encode_header(video, buf, ureq->header, in uvc_video_encode_isoc_sg()
144 sg_set_buf(sg, ureq->header, header_len); in uvc_video_encode_isoc_sg()
145 len -= header_len; in uvc_video_encode_isoc_sg()
151 len + header_len : video->req_size; in uvc_video_encode_isoc_sg()
180 video->queue.buf_used += req->length - header_len; in uvc_video_encode_isoc_sg()
/linux/drivers/net/ethernet/amd/xgbe/
A Dxgbe-desc.c559 packet->header_len, DMA_TO_DEVICE); in xgbe_map_tx_skb()
565 rdata->skb_dma_len = packet->header_len; in xgbe_map_tx_skb()
568 cur_index, &skb_dma, packet->header_len); in xgbe_map_tx_skb()
570 offset = packet->header_len; in xgbe_map_tx_skb()
572 packet->length += packet->header_len; in xgbe_map_tx_skb()
/linux/drivers/staging/wfx/
A Dtraces.h174 int header_len;
188 header_len = 4;
191 header_len = 0;
195 - sizeof(struct hif_msg) - header_len;
196 memcpy(__entry->buf, hif->body + header_len, __entry->buf_len);
/linux/drivers/net/ethernet/synopsys/
A Ddwc-xlgmac-desc.c535 pkt_info->header_len, DMA_TO_DEVICE); in xlgmac_map_tx_skb()
541 desc_data->skb_dma_len = pkt_info->header_len; in xlgmac_map_tx_skb()
544 cur_index, &skb_dma, pkt_info->header_len); in xlgmac_map_tx_skb()
546 offset = pkt_info->header_len; in xlgmac_map_tx_skb()
548 pkt_info->length += pkt_info->header_len; in xlgmac_map_tx_skb()
/linux/drivers/net/wireless/rsi/
A Drsi_hal.h191 u8 header_len; member
205 u8 header_len; member
/linux/drivers/net/
A Dnetconsole.c776 int header_len, body_len; in send_ext_msg_udp() local
789 header_len = body - header; in send_ext_msg_udp()
790 body_len = msg_len - header_len - 1; in send_ext_msg_udp()
797 memcpy(buf, header, header_len); in send_ext_msg_udp()
800 int this_header = header_len; in send_ext_msg_udp()
/linux/net/ipv4/
A Dipcomp.c124 x->props.header_len = 0; in ipcomp4_init_state()
129 x->props.header_len += sizeof(struct iphdr); in ipcomp4_init_state()
/linux/drivers/net/wireguard/
A Dreceive.c56 size_t data_offset, data_len, header_len; in prepare_skb_header() local
89 header_len = validate_header_len(skb); in prepare_skb_header()
90 if (unlikely(!header_len)) in prepare_skb_header()
93 if (unlikely(!pskb_may_pull(skb, data_offset + header_len))) in prepare_skb_header()

Completed in 46 milliseconds

1234