tot_len 199 arch/powerpc/platforms/ps3/gelic_udbg.c h_ip->tot_len = msgsize + sizeof(struct udphdr) + tot_len 83 drivers/crypto/bcm/util.h u8 from_nents, u32 tot_len); tot_len 214 drivers/crypto/ccree/cc_buffer_mgr.c u32 tot_len = sg_data->total_data_len[i]; tot_len 218 drivers/crypto/ccree/cc_buffer_mgr.c rc = cc_render_sg_to_mlli(dev, entry->sgl, tot_len, tot_len 223 drivers/crypto/ccree/cc_buffer_mgr.c tot_len, &total_nents, tot_len 342 drivers/crypto/chelsio/chtls/chtls_main.c skb = alloc_skb(gl->tot_len + sizeof(struct cpl_pass_accept_req) tot_len 346 drivers/crypto/chelsio/chtls/chtls_main.c __skb_put(skb, gl->tot_len + sizeof(struct cpl_pass_accept_req) tot_len 352 drivers/crypto/chelsio/chtls/chtls_main.c gl->tot_len - pktshift); tot_len 886 drivers/crypto/n2_core.c unsigned int tot_len; tot_len 906 drivers/crypto/n2_core.c tot_len = 0; tot_len 925 drivers/crypto/n2_core.c tot_len + this_len > (1 << 16)) { tot_len 939 drivers/crypto/n2_core.c tot_len = 0; tot_len 947 drivers/crypto/n2_core.c tot_len += this_len; tot_len 133 drivers/infiniband/core/ud_header.c { STRUCT_FIELD(ip4, tot_len), tot_len 290 drivers/infiniband/core/ud_header.c iph.tot_len = header->ip4.tot_len; tot_len 370 drivers/infiniband/core/ud_header.c header->ip4.tot_len = tot_len 1116 drivers/infiniband/hw/cxgb4/device.c skb = alloc_skb(gl->tot_len + sizeof(struct cpl_pass_accept_req) + tot_len 1121 drivers/infiniband/hw/cxgb4/device.c __skb_put(skb, gl->tot_len + sizeof(struct cpl_pass_accept_req) + tot_len 1137 drivers/infiniband/hw/cxgb4/device.c gl->tot_len - pktshift); tot_len 1196 drivers/infiniband/hw/cxgb4/device.c gl->tot_len); tot_len 449 drivers/infiniband/hw/i40iw/i40iw_cm.c iph->tot_len = htons(packetsize); tot_len 1447 drivers/infiniband/hw/i40iw/i40iw_utils.c iph->tot_len = htons(packetsize); tot_len 1481 drivers/infiniband/hw/i40iw/i40iw_utils.c pkt_len = ntohs(iph->tot_len); tot_len 132 drivers/infiniband/hw/ocrdma/ocrdma_ah.c ipv4.tot_len = htons(0); tot_len 316 drivers/infiniband/sw/rxe/rxe_net.c iph->tot_len = htons(skb->len); tot_len 511 drivers/media/cec/cec-pin.c unsigned int tot_len = pin->tx_msg.len + tot_len 515 drivers/media/cec/cec-pin.c v = !pin->tx_post_eom && tx_byte_idx == tot_len - 1; tot_len 516 drivers/media/cec/cec-pin.c if (tot_len > 1 && tx_byte_idx == tot_len - 2 && tot_len 699 drivers/misc/mic/vop/vop_vringh.c size_t partlen, tot_len = 0; tot_len 723 drivers/misc/mic/vop/vop_vringh.c tot_len += partlen; tot_len 736 drivers/misc/mic/vop/vop_vringh.c *out_len = tot_len; tot_len 321 drivers/mtd/lpddr/lpddr2_nvm.c u_long add, current_len, tot_len, target_len, my_data; tot_len 332 drivers/mtd/lpddr/lpddr2_nvm.c tot_len = 0; tot_len 334 drivers/mtd/lpddr/lpddr2_nvm.c while (tot_len < target_len) { tot_len 336 drivers/mtd/lpddr/lpddr2_nvm.c my_data = write_buf[tot_len]; tot_len 337 drivers/mtd/lpddr/lpddr2_nvm.c my_data += (write_buf[tot_len+1]) << 8; tot_len 339 drivers/mtd/lpddr/lpddr2_nvm.c my_data += (write_buf[tot_len+2]) << 16; tot_len 340 drivers/mtd/lpddr/lpddr2_nvm.c my_data += (write_buf[tot_len+3]) << 24; tot_len 348 drivers/mtd/lpddr/lpddr2_nvm.c tot_len += pcm_data->bus_width; tot_len 350 drivers/mtd/lpddr/lpddr2_nvm.c current_len = min(target_len - tot_len, tot_len 353 drivers/mtd/lpddr/lpddr2_nvm.c 0x00, add, current_len, write_buf + tot_len); tot_len 358 drivers/mtd/lpddr/lpddr2_nvm.c tot_len += current_len; tot_len 363 drivers/mtd/lpddr/lpddr2_nvm.c *retlen = tot_len; tot_len 1990 drivers/net/ethernet/atheros/atl1c/atl1c_main.c + ntohs(ip_hdr(skb)->tot_len)); tot_len 1639 drivers/net/ethernet/atheros/atl1e/atl1e_main.c + ntohs(ip_hdr(skb)->tot_len)); tot_len 1652 drivers/net/ethernet/atheros/atl1e/atl1e_main.c ip_hdr(skb)->tot_len = 0; tot_len 2117 drivers/net/ethernet/atheros/atlx/atl1.c ntohs(iph->tot_len)); tot_len 3662 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c (__force u32)iph->tot_len - tot_len 7986 drivers/net/ethernet/broadcom/tg3.c ip_tot_len = iph->tot_len; tot_len 7988 drivers/net/ethernet/broadcom/tg3.c iph->tot_len = htons(mss + hdr_len); tot_len 8122 drivers/net/ethernet/broadcom/tg3.c iph->tot_len = ip_tot_len; tot_len 13476 drivers/net/ethernet/broadcom/tg3.c iph->tot_len = htons((u16)(mss + hdr_len)); tot_len 2499 drivers/net/ethernet/brocade/bna/bnad.c iph->tot_len = 0; tot_len 1199 drivers/net/ethernet/cavium/thunder/nicvf_queues.c atomic64_add(hdr->tot_len, tot_len 1231 drivers/net/ethernet/cavium/thunder/nicvf_queues.c hdr->tot_len = len; tot_len 1358 drivers/net/ethernet/cavium/thunder/nicvf_queues.c hdr->tot_len = len; tot_len 1454 drivers/net/ethernet/cavium/thunder/nicvf_queues.c hdr->tot_len = 1; tot_len 543 drivers/net/ethernet/cavium/thunder/q_struct.h u64 tot_len:20; /* W0 */ tot_len 552 drivers/net/ethernet/cavium/thunder/q_struct.h u64 tot_len:20; tot_len 966 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c unsigned long tot_len, tot_len 996 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c bytes_left = tot_len; tot_len 2968 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 i, j, cur_off, tot_len; tot_len 2974 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c tot_len = size; tot_len 3110 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c while (tot_len) { tot_len 3111 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 chunk_size = min_t(u32, tot_len, CUDBG_CHUNK_SIZE); tot_len 3121 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c tot_len -= chunk_size; tot_len 659 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int tot_len; /* total length of fragments */ tot_len 1512 drivers/net/ethernet/chelsio/cxgb4/sge.c iph->tot_len = 0; tot_len 2652 drivers/net/ethernet/chelsio/cxgb4/sge.c if (gl->tot_len <= RX_COPY_THRES) { tot_len 2653 drivers/net/ethernet/chelsio/cxgb4/sge.c skb = dev_alloc_skb(gl->tot_len); tot_len 2656 drivers/net/ethernet/chelsio/cxgb4/sge.c __skb_put(skb, gl->tot_len); tot_len 2657 drivers/net/ethernet/chelsio/cxgb4/sge.c skb_copy_to_linear_data(skb, gl->va, gl->tot_len); tot_len 2666 drivers/net/ethernet/chelsio/cxgb4/sge.c skb->len = gl->tot_len; tot_len 2758 drivers/net/ethernet/chelsio/cxgb4/sge.c skb->len = gl->tot_len - s->pktshift; tot_len 3166 drivers/net/ethernet/chelsio/cxgb4/sge.c si.tot_len = len; tot_len 156 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h unsigned int tot_len; /* total length of fragments */ tot_len 1518 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (gl->tot_len <= RX_COPY_THRES) { tot_len 1520 drivers/net/ethernet/chelsio/cxgb4vf/sge.c skb = alloc_skb(gl->tot_len, GFP_ATOMIC); tot_len 1523 drivers/net/ethernet/chelsio/cxgb4vf/sge.c __skb_put(skb, gl->tot_len); tot_len 1524 drivers/net/ethernet/chelsio/cxgb4vf/sge.c skb_copy_to_linear_data(skb, gl->va, gl->tot_len); tot_len 1533 drivers/net/ethernet/chelsio/cxgb4vf/sge.c skb->len = gl->tot_len; tot_len 1584 drivers/net/ethernet/chelsio/cxgb4vf/sge.c skb->len = gl->tot_len - s->pktshift; tot_len 1802 drivers/net/ethernet/chelsio/cxgb4vf/sge.c gl.tot_len = len; tot_len 1143 drivers/net/ethernet/emulex/benet/be_main.c pskb_trim(skb, eth_hdr_len + ntohs(ip->tot_len)); tot_len 1226 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c unsigned int tot_len = 0; tot_len 1230 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tot_len += skb_frag_size(&skb_shinfo(skb)->frags[i]); tot_len 1235 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (((tot_len + skb_headlen(skb)) < (skb_shinfo(skb)->gso_size + tot_len 1236 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_gso_hdr_len(skb))) || (tot_len < skb_shinfo(skb)->gso_size)) tot_len 1241 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tot_len -= skb_frag_size(&skb_shinfo(skb)->frags[i]); tot_len 1242 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c tot_len += skb_frag_size(&skb_shinfo(skb)->frags[i + bd_limit]); tot_len 1244 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (tot_len < skb_shinfo(skb)->gso_size) tot_len 300 drivers/net/ethernet/huawei/hinic/hinic_tx.c ip.v4->tot_len = 0; tot_len 332 drivers/net/ethernet/huawei/hinic/hinic_tx.c ip.v4->tot_len = 0; tot_len 1731 drivers/net/ethernet/ibm/emac/core.c int tot_len = dev->rx_sg_skb->len + len; tot_len 1733 drivers/net/ethernet/ibm/emac/core.c if (unlikely(tot_len + NET_IP_ALIGN > dev->rx_skb_size)) { tot_len 1381 drivers/net/ethernet/ibm/ibmvnic.c int tot_len; tot_len 1384 drivers/net/ethernet/ibm/ibmvnic.c tot_len = build_hdr_data(hdr_field, txbuff->skb, hdr_len, tot_len 1386 drivers/net/ethernet/ibm/ibmvnic.c *num_entries += create_hdr_descs(hdr_field, hdr_data, tot_len, hdr_len, tot_len 2709 drivers/net/ethernet/intel/e1000/e1000_main.c iph->tot_len = 0; tot_len 5454 drivers/net/ethernet/intel/e1000e/netdev.c iph->tot_len = 0; tot_len 2920 drivers/net/ethernet/intel/i40e/i40e_txrx.c ip.v4->tot_len = 0; tot_len 2951 drivers/net/ethernet/intel/i40e/i40e_txrx.c ip.v4->tot_len = 0; tot_len 1886 drivers/net/ethernet/intel/iavf/iavf_txrx.c ip.v4->tot_len = 0; tot_len 1917 drivers/net/ethernet/intel/iavf/iavf_txrx.c ip.v4->tot_len = 0; tot_len 1924 drivers/net/ethernet/intel/ice/ice_txrx.c ip.v4->tot_len = 0; tot_len 5733 drivers/net/ethernet/intel/igb/igb_main.c ip.v4->tot_len = 0; tot_len 2042 drivers/net/ethernet/intel/igbvf/netdev.c ip.v4->tot_len = 0; tot_len 1204 drivers/net/ethernet/intel/ixgb/ixgb_main.c iph->tot_len = 0; tot_len 8005 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ip.v4->tot_len = 0; tot_len 3793 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c ip.v4->tot_len = 0; tot_len 589 drivers/net/ethernet/mellanox/mlx4/en_rx.c length_for_csum = (be16_to_cpu(iph->tot_len) - (iph->ihl << 2)); tot_len 126 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len); tot_len 161 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c iph->tot_len = htons(nskb->len - skb_network_offset(nskb)); tot_len 735 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 tot_len; tot_len 740 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c tot_len = cqe_bcnt - network_depth; tot_len 750 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c ipv4->tot_len = cpu_to_be16(tot_len); tot_len 760 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c tot_len - sizeof(struct iphdr), tot_len 763 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 payload_len = tot_len - sizeof(struct ipv6hdr); tot_len 890 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c pkt_len = network_depth + ntohs(ip4->tot_len); tot_len 149 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c iph->tot_len = htons(iplen); tot_len 4970 drivers/net/ethernet/micrel/ksz884x.c protocol = iph->tot_len; tot_len 8220 drivers/net/ethernet/neterion/s2io.c return ntohs(ip->tot_len) - (ip->ihl << 2) - (tcp->doff << 2); tot_len 8234 drivers/net/ethernet/neterion/s2io.c lro->total_len = ntohs(ip->tot_len); tot_len 8260 drivers/net/ethernet/neterion/s2io.c csum_replace2(&ip->check, ip->tot_len, htons(lro->total_len)); tot_len 8261 drivers/net/ethernet/neterion/s2io.c ip->tot_len = htons(lro->total_len); tot_len 582 drivers/net/ethernet/netronome/nfp/flower/action.c tos_word_mask->tot_len) { tot_len 88 drivers/net/ethernet/netronome/nfp/flower/offload.c u32 meta_len, key_len, mask_len, act_len, tot_len; tot_len 97 drivers/net/ethernet/netronome/nfp/flower/offload.c tot_len = meta_len + key_len + mask_len + act_len; tot_len 106 drivers/net/ethernet/netronome/nfp/flower/offload.c skb = nfp_flower_cmsg_alloc(app, tot_len, mtype, GFP_KERNEL); tot_len 1521 drivers/net/ethernet/packetengines/hamachi.c if (ntohs(ih->tot_len) >= 46){ tot_len 1625 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c csum_replace2(&iph->check, iph->tot_len, htons(length)); tot_len 1626 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c iph->tot_len = htons(length); tot_len 1732 drivers/net/ethernet/qlogic/qed/qed_iwarp.c *payload_len = ntohs(iph->tot_len) - ip_hlen; tot_len 1522 drivers/net/ethernet/qlogic/qede/qede_filter.c ip->tot_len = cpu_to_be16(qede_flow_get_min_header_size(t) - ETH_HLEN); tot_len 2468 drivers/net/ethernet/qlogic/qla3xxx.c u32 tot_len = skb->len; tot_len 2488 drivers/net/ethernet/qlogic/qla3xxx.c mac_iocb_ptr->data_len = cpu_to_le16((u16) tot_len); tot_len 1331 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c csum_replace2(&iph->check, iph->tot_len, htons(length)); tot_len 1332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c iph->tot_len = htons(length); tot_len 1854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c csum_replace2(&iph->check, iph->tot_len, htons(length)); tot_len 1855 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c iph->tot_len = htons(length); tot_len 1262 drivers/net/ethernet/qualcomm/emac/emac-mac.c + ntohs(ip_hdr(skb)->tot_len); tot_len 79 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ntohs(ip4h->tot_len) - ip4h->ihl * 4, tot_len 2346 drivers/net/ethernet/sfc/ef10.c ip->tot_len = 0; tot_len 390 drivers/net/ethernet/sfc/falcon/selftest.c payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); tot_len 390 drivers/net/ethernet/sfc/selftest.c payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); tot_len 507 drivers/net/ethernet/sgi/ioc3-eth.c (ih->tot_len - (ih->ihl << 2)) + tot_len 1402 drivers/net/ethernet/sgi/ioc3-eth.c ih->tot_len - (ih->ihl << 2), tot_len 1138 drivers/net/ethernet/socionext/netsec.c ip_hdr(skb)->tot_len = 0; tot_len 178 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ihdr->tot_len = htons(iplen); tot_len 546 drivers/net/gtp.c mtu < ntohs(iph->tot_len)) { tot_len 632 drivers/net/hyperv/netvsc_drv.c ip_hdr(skb)->tot_len = 0; tot_len 160 drivers/net/ipvlan/ipvlan_core.c pktlen = ntohs(ip4h->tot_len); tot_len 366 drivers/net/netdevsim/dev.c int tot_len, data_len = NSIM_TRAP_L4_DATA_LEN; tot_len 375 drivers/net/netdevsim/dev.c tot_len = sizeof(struct iphdr) + sizeof(struct udphdr) + data_len; tot_len 392 drivers/net/netdevsim/dev.c iph->tot_len = htons(tot_len); tot_len 236 drivers/net/ppp/pptp.c iph->tot_len = htons(skb->len); tot_len 405 drivers/net/slip/slhc.c if(ip->tot_len != cs->cs_ip.tot_len && tot_len 406 drivers/net/slip/slhc.c ntohs(cs->cs_ip.tot_len) == hlen) tot_len 417 drivers/net/slip/slhc.c deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ tot_len 424 drivers/net/slip/slhc.c if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ tot_len 553 drivers/net/slip/slhc.c i = ntohs(ip->tot_len) - hdrlen; tot_len 561 drivers/net/slip/slhc.c ntohs(ip->tot_len) - hdrlen); tot_len 611 drivers/net/slip/slhc.c ip->tot_len = htons(len); tot_len 876 drivers/net/usb/hso.c frame_len = ntohs(odev->rx_ip_hdr.tot_len); tot_len 1800 drivers/net/wireless/ath/wil6210/txrx.c ip_hdr(skb)->tot_len = 0; tot_len 2016 drivers/s390/net/qeth_l3_main.c iph->tot_len = 0; tot_len 2203 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c pgl->tot_len); tot_len 1091 drivers/scsi/fnic/fnic_fcs.c u32 tot_len, eth_hdr_len; tot_len 1123 drivers/scsi/fnic/fnic_fcs.c tot_len = skb->len; tot_len 1124 drivers/scsi/fnic/fnic_fcs.c BUG_ON(tot_len % 4); tot_len 1131 drivers/scsi/fnic/fnic_fcs.c pa = dma_map_single(&fnic->pdev->dev, eth_hdr, tot_len, DMA_TO_DEVICE); tot_len 1139 drivers/scsi/fnic/fnic_fcs.c (char *)eth_hdr, tot_len)) != 0) { tot_len 1146 drivers/scsi/fnic/fnic_fcs.c dma_unmap_single(&fnic->pdev->dev, pa, tot_len, DMA_TO_DEVICE); tot_len 1151 drivers/scsi/fnic/fnic_fcs.c fnic_queue_wq_desc(wq, skb, pa, tot_len, fr_eof(fp), tot_len 17762 drivers/scsi/lpfc/lpfc_sli.c uint32_t len, tot_len; tot_len 17771 drivers/scsi/lpfc/lpfc_sli.c tot_len = 0; tot_len 17795 drivers/scsi/lpfc/lpfc_sli.c tot_len = bf_get(lpfc_rcqe_length, tot_len 17801 drivers/scsi/lpfc/lpfc_sli.c if (tot_len > LPFC_DATA_BUF_SIZE) tot_len 17805 drivers/scsi/lpfc/lpfc_sli.c first_iocbq->iocb.un.cont64[0].tus.f.bdeSize = tot_len; tot_len 17809 drivers/scsi/lpfc/lpfc_sli.c first_iocbq->iocb.unsli3.rcvsli3.acc_len = tot_len; tot_len 17836 drivers/scsi/lpfc/lpfc_sli.c tot_len += len; tot_len 17862 drivers/scsi/lpfc/lpfc_sli.c tot_len += len; tot_len 17863 drivers/scsi/lpfc/lpfc_sli.c iocbq->iocb.unsli3.rcvsli3.acc_len = tot_len; tot_len 2616 drivers/staging/qlge/qlge_main.c len = (ntohs(iph->tot_len) - (iph->ihl << 2)); tot_len 158 drivers/staging/wilc1000/wilc_wlan.c total_length = ntohs(ip_hdr_ptr->tot_len); tot_len 487 drivers/target/iscsi/cxgbit/cxgbit_main.c gl->tot_len); tot_len 325 fs/btrfs/lzo.c unsigned long tot_len; tot_len 333 fs/btrfs/lzo.c tot_len = read_compress_length(data_in); tot_len 342 fs/btrfs/lzo.c if (tot_len > min_t(size_t, BTRFS_MAX_COMPRESSED, srclen) || tot_len 343 fs/btrfs/lzo.c tot_len < srclen - PAGE_SIZE) { tot_len 354 fs/btrfs/lzo.c while (tot_in < tot_len) { tot_len 366 fs/btrfs/lzo.c if (in_len > max_segment_len || tot_in + in_len > tot_len) { tot_len 401 fs/btrfs/lzo.c if (working_bytes == 0 && tot_in >= tot_len) tot_len 845 fs/read_write.c compat_ssize_t tot_len; tot_len 881 fs/read_write.c tot_len = 0; tot_len 899 fs/read_write.c if (len > MAX_RW_COUNT - tot_len) tot_len 900 fs/read_write.c len = MAX_RW_COUNT - tot_len; tot_len 901 fs/read_write.c tot_len += len; tot_len 907 fs/read_write.c ret = tot_len; tot_len 917 fs/read_write.c size_t tot_len; tot_len 925 fs/read_write.c tot_len = iov_iter_count(iter); tot_len 926 fs/read_write.c if (!tot_len) tot_len 928 fs/read_write.c ret = rw_verify_area(READ, file, pos, tot_len); tot_len 954 fs/read_write.c size_t tot_len; tot_len 962 fs/read_write.c tot_len = iov_iter_count(iter); tot_len 963 fs/read_write.c if (!tot_len) tot_len 965 fs/read_write.c ret = rw_verify_area(WRITE, file, pos, tot_len); tot_len 36 include/linux/ip.h return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); tot_len 290 include/net/ipv6.h int tot_len; tot_len 34 include/net/netfilter/nf_tables_ipv4.h len = ntohs(iph->tot_len); tot_len 242 include/rdma/ib_pack.h __be16 tot_len; tot_len 3502 include/uapi/linux/bpf.h __u16 tot_len; tot_len 97 include/uapi/linux/ip.h __be16 tot_len; tot_len 256 net/bridge/br_multicast.c iph->tot_len = htons(sizeof(*iph) + igmp_hdr_size + 4); tot_len 2322 net/bridge/br_multicast.c t_len = ntohs(ip_hdr(skb)->tot_len) - ip_hdrlen(skb); tot_len 217 net/bridge/br_netfilter_hooks.c len = ntohs(iph->tot_len); tot_len 204 net/bridge/netfilter/nf_conntrack_bridge.c len = ntohs(iph->tot_len); tot_len 248 net/bridge/netfilter/nf_conntrack_bridge.c len = ntohs(ip_hdr(skb)->tot_len); tot_len 54 net/bridge/netfilter/nft_reject_bridge.c len = ntohs(iph->tot_len); tot_len 95 net/bridge/netfilter/nft_reject_bridge.c niph->tot_len = htons(nskb->len); tot_len 128 net/bridge/netfilter/nft_reject_bridge.c if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) tot_len 157 net/bridge/netfilter/nft_reject_bridge.c niph->tot_len = htons(nskb->len); tot_len 4690 net/core/filter.c if (params->tot_len > mtu) tot_len 4816 net/core/filter.c if (params->tot_len > mtu) tot_len 441 net/core/netpoll.c put_unaligned(htons(ip_len), &(iph->tot_len)); tot_len 2586 net/core/pktgen.c iph->tot_len = htons(skb->len - ETH_HLEN); tot_len 2814 net/core/pktgen.c iph->tot_len = htons(iplen); tot_len 28 net/core/tso.c iph->tot_len = htons(size + hdr_len - mac_hdr_len); tot_len 503 net/dccp/options.c u8 tot_len, *to; tot_len 513 net/dccp/options.c tot_len = 3 + repeat_first + len; tot_len 515 net/dccp/options.c if (DCCP_SKB_CB(skb)->dccpd_opt_len + tot_len > DCCP_MAX_OPT_LEN) { tot_len 519 net/dccp/options.c DCCP_SKB_CB(skb)->dccpd_opt_len += tot_len; tot_len 521 net/dccp/options.c to = skb_push(skb, tot_len); tot_len 523 net/dccp/options.c *to++ = tot_len; tot_len 1305 net/ipv4/af_inet.c int proto, tot_len; tot_len 1363 net/ipv4/af_inet.c tot_len = skb->len - nhoff; tot_len 1371 net/ipv4/af_inet.c tot_len = skb_shinfo(skb)->gso_size + tot_len 1375 net/ipv4/af_inet.c tot_len = skb->len - nhoff; tot_len 1379 net/ipv4/af_inet.c tot_len = skb->len - nhoff; tot_len 1381 net/ipv4/af_inet.c iph->tot_len = htons(tot_len); tot_len 1594 net/ipv4/af_inet.c csum_replace2(&iph->check, iph->tot_len, newlen); tot_len 1595 net/ipv4/af_inet.c iph->tot_len = newlen; tot_len 210 net/ipv4/ah4.c top_iph->tot_len = htons(skb->len); tot_len 2230 net/ipv4/cipso_ipv4.c iph->tot_len = htons(skb->len); tot_len 272 net/ipv4/esp4_offload.c ip_hdr(skb)->tot_len = htons(skb->len); tot_len 60 net/ipv4/fou.c ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(skb)->tot_len) - len); tot_len 181 net/ipv4/fou.c ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(skb)->tot_len) - len); tot_len 401 net/ipv4/igmp.c pip->tot_len = 0; /* filled in later */ tot_len 1506 net/ipv4/igmp.c len = skb_network_offset(skb) + ntohs(iph->tot_len); tot_len 436 net/ipv4/ip_fragment.c iph->tot_len = htons(len); tot_len 520 net/ipv4/ip_fragment.c len = ntohs(iph.tot_len); tot_len 533 net/ipv4/ip_gre.c (ntohs(ip_hdr(skb)->tot_len) > skb->len - nhoff)) tot_len 473 net/ipv4/ip_input.c len = ntohs(iph->tot_len); tot_len 102 net/ipv4/ip_output.c iph->tot_len = htons(skb->len); tot_len 604 net/ipv4/ip_output.c iph->tot_len = htons(first_len); tot_len 636 net/ipv4/ip_output.c iph->tot_len = htons(frag->len); tot_len 751 net/ipv4/ip_output.c iph->tot_len = htons(len + state->hlen); tot_len 818 net/ipv4/ipconfig.c h->tot_len = htons(sizeof(struct bootp_pkt)); tot_len 993 net/ipv4/ipconfig.c if (skb->len < ntohs(h->tot_len)) tot_len 1002 net/ipv4/ipconfig.c if (ntohs(h->tot_len) < ntohs(b->udph.len) + sizeof(struct iphdr)) tot_len 1045 net/ipv4/ipconfig.c u8 *end = (u8 *) b + ntohs(b->iph.tot_len); tot_len 614 net/ipv4/ipmr.c encap->tot_len == 0 || tot_len 615 net/ipv4/ipmr.c ntohs(encap->tot_len) + pimlen > skb->len) tot_len 1075 net/ipv4/ipmr.c ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(pkt)->tot_len) + tot_len 1092 net/ipv4/ipmr.c ip_hdr(skb)->tot_len = htons(skb->len); /* Fix the length */ tot_len 1792 net/ipv4/ipmr.c iph->tot_len = htons(skb->len); tot_len 61 net/ipv4/netfilter/nf_log_ipv4.c ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK, tot_len 153 net/ipv4/netfilter/nf_reject_ipv4.c niph->tot_len = htons(nskb->len); tot_len 416 net/ipv4/raw.c iph->tot_len = htons(length); tot_len 65 net/ipv4/xfrm4_input.c iph->tot_len = htons(skb->len); tot_len 152 net/ipv4/xfrm4_input.c iph->tot_len = htons(ntohs(iph->tot_len) - len); tot_len 495 net/ipv6/af_inet6.c atomic_sub(opt->tot_len, &sk->sk_omem_alloc); tot_len 795 net/ipv6/calipso.c atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); tot_len 1220 net/ipv6/calipso.c atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); tot_len 1253 net/ipv6/calipso.c atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); tot_len 996 net/ipv6/exthdrs.c opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); tot_len 999 net/ipv6/exthdrs.c memcpy(opt2, opt, opt->tot_len); tot_len 1056 net/ipv6/exthdrs.c int tot_len = 0; tot_len 1062 net/ipv6/exthdrs.c tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); tot_len 1064 net/ipv6/exthdrs.c tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); tot_len 1066 net/ipv6/exthdrs.c tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); tot_len 1068 net/ipv6/exthdrs.c tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); tot_len 1072 net/ipv6/exthdrs.c tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); tot_len 1074 net/ipv6/exthdrs.c if (!tot_len) tot_len 1077 net/ipv6/exthdrs.c tot_len += sizeof(*opt2); tot_len 1078 net/ipv6/exthdrs.c opt2 = sock_kmalloc(sk, tot_len, GFP_ATOMIC); tot_len 1082 net/ipv6/exthdrs.c memset(opt2, 0, tot_len); tot_len 1084 net/ipv6/exthdrs.c opt2->tot_len = tot_len; tot_len 336 net/ipv6/ip6_flowlabel.c opt_space->tot_len = fopt->tot_len; tot_len 402 net/ipv6/ip6_flowlabel.c fl->opt->tot_len = sizeof(*fl->opt) + olen; tot_len 944 net/ipv6/ip6_gre.c (ntohs(ip_hdr(skb)->tot_len) > skb->len - nhoff)) tot_len 1254 net/ipv6/ip6_output.c v6_cork->opt->tot_len = sizeof(*opt); tot_len 243 net/ipv6/ipv6_sockglue.c atomic_sub(opt->tot_len, &sk->sk_omem_alloc); tot_len 474 net/ipv6/ipv6_sockglue.c atomic_sub(opt->tot_len, &sk->sk_omem_alloc); tot_len 530 net/ipv6/ipv6_sockglue.c opt->tot_len = sizeof(*opt) + optlen; tot_len 547 net/ipv6/ipv6_sockglue.c atomic_sub(opt->tot_len, &sk->sk_omem_alloc); tot_len 870 net/ipv6/raw.c opt->tot_len = sizeof(struct ipv6_txoptions); tot_len 114 net/ipv6/seg6_iptunnel.c int hdrlen, tot_len, err; tot_len 118 net/ipv6/seg6_iptunnel.c tot_len = hdrlen + sizeof(*hdr); tot_len 120 net/ipv6/seg6_iptunnel.c err = skb_cow_head(skb, tot_len + skb->mac_len); tot_len 127 net/ipv6/seg6_iptunnel.c skb_push(skb, tot_len); tot_len 166 net/ipv6/seg6_iptunnel.c skb_postpush_rcsum(skb, hdr, tot_len); tot_len 816 net/ipv6/tcp_ipv6.c unsigned int tot_len = sizeof(struct tcphdr); tot_len 822 net/ipv6/tcp_ipv6.c tot_len += TCPOLEN_TSTAMP_ALIGNED; tot_len 825 net/ipv6/tcp_ipv6.c tot_len += TCPOLEN_MD5SIG_ALIGNED; tot_len 828 net/ipv6/tcp_ipv6.c buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + tot_len, tot_len 833 net/ipv6/tcp_ipv6.c skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); tot_len 835 net/ipv6/tcp_ipv6.c t1 = skb_push(buff, tot_len); tot_len 842 net/ipv6/tcp_ipv6.c t1->doff = tot_len / 4; tot_len 1368 net/ipv6/udp.c opt->tot_len = sizeof(*opt); tot_len 584 net/l2tp/l2tp_ip6.c opt->tot_len = sizeof(struct ipv6_txoptions); tot_len 997 net/netfilter/ipvs/ip_vs_xmit.c *payload_len = ntohs(old_iph->tot_len); tot_len 59 net/netfilter/nf_nat_helper.c ip_hdr(skb)->tot_len = htons(skb->len); tot_len 180 net/netfilter/nfnetlink_osf.c ctx->totlen = ntohs(ip->tot_len); tot_len 210 net/netfilter/xt_TCPMSS.c newlen = htons(ntohs(iph->tot_len) + ret); tot_len 211 net/netfilter/xt_TCPMSS.c csum_replace2(&iph->check, iph->tot_len, newlen); tot_len 212 net/netfilter/xt_TCPMSS.c iph->tot_len = newlen; tot_len 24 net/netfilter/xt_length.c u_int16_t pktlen = ntohs(ip_hdr(skb)->tot_len); tot_len 1258 net/openvswitch/conntrack.c len = ntohs(ip_hdr(skb)->tot_len); tot_len 403 net/sched/act_csum.c ntohs(iph->tot_len))) tot_len 409 net/sched/act_csum.c ntohs(iph->tot_len))) tot_len 415 net/sched/act_csum.c ntohs(iph->tot_len))) tot_len 421 net/sched/act_csum.c ntohs(iph->tot_len), 0)) tot_len 427 net/sched/act_csum.c ntohs(iph->tot_len), 1)) tot_len 432 net/sched/act_csum.c !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) tot_len 84 net/sched/act_ct.c len = ntohs(ip_hdr(skb)->tot_len); tot_len 1172 net/sched/sch_cake.c seglen = ntohs(iph_check->tot_len) - tot_len 207 net/xfrm/xfrm_input.c iph->tot_len = htons(skb->len); tot_len 405 net/xfrm/xfrm_input.c ip_hdr(skb)->tot_len = htons(skb->len + ihl); tot_len 106 samples/bpf/xdp_adjust_tail_kern.c iph->tot_len = htons( tot_len 76 samples/bpf/xdp_fwd_kern.c fib_params.tot_len = ntohs(iph->tot_len); tot_len 95 samples/bpf/xdp_fwd_kern.c fib_params.tot_len = ntohs(ip6h->payload_len); tot_len 103 samples/bpf/xdp_tx_iptunnel_kern.c payload_len = ntohs(iph->tot_len); tot_len 135 samples/bpf/xdp_tx_iptunnel_kern.c iph->tot_len = htons(payload_len + sizeof(*iph)); tot_len 3502 tools/include/uapi/linux/bpf.h __u16 tot_len; tot_len 110 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), tot_len 152 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), tot_len 196 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), tot_len 222 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), tot_len 336 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), tot_len 339 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph_inner.tot_len = tot_len 364 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), tot_len 367 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .iph_inner.tot_len = tot_len 379 tools/testing/selftests/bpf/progs/test_l4lb.c pkt_bytes = bpf_ntohs(iph->tot_len); tot_len 379 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c pkt_bytes = bpf_ntohs(iph->tot_len); tot_len 39 tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); tot_len 105 tools/testing/selftests/bpf/progs/test_tc_tunnel.c iph_inner.tot_len = bpf_htons(sizeof(iph6_inner) + tot_len 162 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + tot_len 192 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.ip.tot_len = bpf_htons(olen + tot_len 193 tools/testing/selftests/bpf/progs/test_tc_tunnel.c bpf_ntohs(h_outer.ip.tot_len)); tot_len 225 tools/testing/selftests/bpf/progs/test_tc_tunnel.c __u16 tot_len; tot_len 269 tools/testing/selftests/bpf/progs/test_tc_tunnel.c tot_len = bpf_ntohs(iph_inner.payload_len) + sizeof(iph_inner) + tot_len 272 tools/testing/selftests/bpf/progs/test_tc_tunnel.c h_outer.l4hdr.udp.len = bpf_htons(tot_len); tot_len 106 tools/testing/selftests/bpf/progs/test_xdp.c payload_len = bpf_ntohs(iph->tot_len); tot_len 136 tools/testing/selftests/bpf/progs/test_xdp.c iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); tot_len 102 tools/testing/selftests/bpf/progs/test_xdp_loop.c payload_len = bpf_ntohs(iph->tot_len); tot_len 132 tools/testing/selftests/bpf/progs/test_xdp_loop.c iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); tot_len 356 tools/testing/selftests/bpf/progs/test_xdp_noinline.c iph->tot_len = bpf_htons(pkt_bytes + sizeof(struct iphdr)); tot_len 675 tools/testing/selftests/bpf/progs/test_xdp_noinline.c *pkt_bytes = bpf_ntohs(iph->tot_len); tot_len 78 tools/testing/selftests/bpf/progs/xdping_kern.c if (bpf_ntohs(iph->tot_len) - sizeof(*iph) != ICMP_ECHO_LEN) tot_len 175 tools/testing/selftests/bpf/test_flow_dissector.c iph->tot_len = htons(sizeof(*iph) + payload_len); tot_len 171 tools/testing/selftests/bpf/test_progs.c .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), tot_len 271 tools/testing/selftests/net/msg_zerocopy.c iph->tot_len = htons(sizeof(*iph) + payload_len); tot_len 124 tools/testing/selftests/net/psock_snd.c iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len); tot_len 164 tools/testing/selftests/net/psock_tpacket.c ip->tot_len = htons((uint16_t) *len - sizeof(*eth)); tot_len 61 tools/testing/selftests/net/txring_overwrite.c iph->tot_len = htons(blen - off);