Home
last modified time | relevance | path

Searched refs:first_len (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/net/sctp/
Dchunk.c150 size_t len, first_len, max_data, remaining; in sctp_datamsg_from_user() local
206 first_len = max_data; in sctp_datamsg_from_user()
218 first_len -= SCTP_PAD4(sizeof(struct sctp_sack_chunk)); in sctp_datamsg_from_user()
222 first_len -= SCTP_ARBITRARY_COOKIE_ECHO_LEN; in sctp_datamsg_from_user()
225 if (msg_len >= first_len) { in sctp_datamsg_from_user()
227 if (msg_len > first_len) in sctp_datamsg_from_user()
232 first_len = msg_len; in sctp_datamsg_from_user()
242 len = first_len; in sctp_datamsg_from_user()
/kernel/linux/linux-5.10/tools/io_uring/
Dio_uring-cp.c30 size_t first_len; member
104 data->first_len = size; in queue_read()
117 data->iov.iov_len = data->first_len; in queue_write()
213 write_left -= data->first_len; in copy_file()
/kernel/linux/linux-5.10/net/ipv6/
Dnetfilter.c156 unsigned int first_len = skb_pagelen(skb); in br_ip6_fragment() local
160 if (first_len - hlen > mtu || in br_ip6_fragment()
Dip6_output.c672 unsigned int first_len; in ip6_fraglist_init() local
700 first_len = skb_pagelen(skb); in ip6_fraglist_init()
701 skb->data_len = first_len - skb_headlen(skb); in ip6_fraglist_init()
702 skb->len = first_len; in ip6_fraglist_init()
703 ipv6_hdr(skb)->payload_len = htons(first_len - sizeof(struct ipv6hdr)); in ip6_fraglist_init()
888 unsigned int first_len = skb_pagelen(skb); in ip6_fragment() local
892 if (first_len - hlen > mtu || in ip6_fragment()
893 ((first_len - hlen) & 7) || in ip6_fragment()
/kernel/linux/linux-5.10/drivers/net/wireguard/
Dnoise.c310 size_t first_len, size_t second_len, size_t third_len, in kdf() argument
317 (first_len > BLAKE2S_HASH_SIZE || in kdf()
321 (!first_len || !first_dst)) || in kdf()
327 if (!first_dst || !first_len) in kdf()
333 memcpy(first_dst, output, first_len); in kdf()
/kernel/linux/linux-5.10/net/bridge/netfilter/
Dnf_conntrack_bridge.c58 unsigned int first_len = skb_pagelen(skb); in nf_br_ip_fragment() local
62 if (first_len - hlen > mtu || in nf_br_ip_fragment()
/kernel/linux/linux-5.10/net/ipv4/
Dip_output.c607 unsigned int first_len = skb_pagelen(skb); in ip_fraglist_init() local
616 skb->data_len = first_len - skb_headlen(skb); in ip_fraglist_init()
617 skb->len = first_len; in ip_fraglist_init()
618 iph->tot_len = htons(first_len); in ip_fraglist_init()
813 unsigned int first_len = skb_pagelen(skb); in ip_do_fragment() local
815 if (first_len - hlen > mtu || in ip_do_fragment()
816 ((first_len - hlen) & 7) || in ip_do_fragment()
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_nvme.c554 int i, rc, xmit_len, first_len; in lpfc_nvme_gen_req() local
579 first_len = 0; in lpfc_nvme_gen_req()
587 first_len = xmit_len; in lpfc_nvme_gen_req()
595 wqe->generic.bde.tus.f.bdeSize = first_len; in lpfc_nvme_gen_req()
600 wqe->gen_req.request_payload_len = first_len; in lpfc_nvme_gen_req()
667 genwqe, pnvme_lsreq, bmp, xmit_len, first_len); in lpfc_nvme_gen_req()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dsunhme.c2267 u32 first_len, u32 first_entry, u32 entry) in unmap_partial_tx_skb() argument
2271 dma_unmap_single(hp->dma_dev, first_mapping, first_len, DMA_TO_DEVICE); in unmap_partial_tx_skb()
2329 u32 first_len, first_mapping; in happy_meal_start_xmit() local
2335 first_len = skb_headlen(skb); in happy_meal_start_xmit()
2336 first_mapping = dma_map_single(hp->dma_dev, skb->data, first_len, in happy_meal_start_xmit()
2350 unmap_partial_tx_skb(hp, first_mapping, first_len, in happy_meal_start_xmit()
2363 (tx_flags | TXFLAG_SOP | (first_len & TXFLAG_SIZE)), in happy_meal_start_xmit()
Dsungem.c1038 u32 first_len; in gem_start_xmit() local
1050 first_len = skb_headlen(skb); in gem_start_xmit()
1054 first_len, DMA_TO_DEVICE); in gem_start_xmit()
1084 cpu_to_le64(ctrl | TXDCTRL_SOF | intme | first_len); in gem_start_xmit()
/kernel/linux/linux-5.10/drivers/scsi/
Dsd.c2727 int first_len; in sd_read_cache_type() local
2738 first_len = 4; in sd_read_cache_type()
2747 first_len = 192; in sd_read_cache_type()
2759 res = sd_do_mode_sense(sdkp, dbd, modepage, buffer, first_len, in sd_read_cache_type()
2767 first_len = 0; in sd_read_cache_type()
2790 if (len > first_len) in sd_read_cache_type()
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/
D8139cp.c803 u32 first_len, first_eor, ctrl; in cp_start_xmit() local
811 first_len = skb_headlen(skb); in cp_start_xmit()
813 first_len, PCI_DMA_TODEVICE); in cp_start_xmit()
859 ctrl = opts1 | first_eor | first_len | FirstFrag; in cp_start_xmit()