frag 2342 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t frag:32; frag 2346 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t frag:32; frag 2355 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t frag:32; frag 2359 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t frag:32; frag 2712 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t frag:32; frag 2716 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t frag:32; frag 422 arch/mips/include/asm/octeon/cvmx-pip.h status->runt_crc_packets = stat8.s.frag; frag 242 arch/powerpc/mm/book3s64/mmu_context.c void *frag; frag 244 arch/powerpc/mm/book3s64/mmu_context.c frag = mm->context.pte_frag; frag 245 arch/powerpc/mm/book3s64/mmu_context.c if (frag) frag 246 arch/powerpc/mm/book3s64/mmu_context.c pte_frag_destroy(frag); frag 248 arch/powerpc/mm/book3s64/mmu_context.c frag = mm->context.pmd_frag; frag 249 arch/powerpc/mm/book3s64/mmu_context.c if (frag) frag 250 arch/powerpc/mm/book3s64/mmu_context.c pmd_frag_destroy(frag); frag 99 arch/powerpc/mm/mmu_context.c void *frag = pte_frag_get(&mm->context); frag 101 arch/powerpc/mm/mmu_context.c if (frag) frag 102 arch/powerpc/mm/mmu_context.c pte_frag_destroy(frag); frag 503 arch/s390/kernel/perf_cpum_cf_diag.c raw.frag.size = csd->used; frag 504 arch/s390/kernel/perf_cpum_cf_diag.c raw.frag.data = csd->data; frag 273 arch/um/drivers/vector_kern.c int nr_frags, frag; frag 293 arch/um/drivers/vector_kern.c for (frag = 0; frag < nr_frags; frag++) { frag 294 arch/um/drivers/vector_kern.c skb_frag = &skb_shinfo(skb)->frags[frag]; frag 602 arch/um/drivers/vector_kern.c int err, nr_frags, frag; frag 635 arch/um/drivers/vector_kern.c for (frag = 0; frag < nr_frags; frag++) { frag 636 arch/um/drivers/vector_kern.c skb_frag = &skb_shinfo(result)->frags[frag]; frag 656 arch/x86/events/amd/ibs.c .frag = { frag 5673 arch/x86/kvm/x86.c struct kvm_mmio_fragment *frag = &vcpu->mmio_fragments[0]; frag 5675 arch/x86/kvm/x86.c memcpy(vcpu->run->mmio.data, frag->data, min(8u, frag->len)); frag 5702 arch/x86/kvm/x86.c struct kvm_mmio_fragment *frag; frag 5738 arch/x86/kvm/x86.c frag = &vcpu->mmio_fragments[vcpu->mmio_nr_fragments++]; frag 5739 arch/x86/kvm/x86.c frag->gpa = gpa; frag 5740 arch/x86/kvm/x86.c frag->data = val; frag 5741 arch/x86/kvm/x86.c frag->len = bytes; frag 8471 arch/x86/kvm/x86.c struct kvm_mmio_fragment *frag; frag 8477 arch/x86/kvm/x86.c frag = &vcpu->mmio_fragments[vcpu->mmio_cur_fragment]; frag 8478 arch/x86/kvm/x86.c len = min(8u, frag->len); frag 8480 arch/x86/kvm/x86.c memcpy(frag->data, run->mmio.data, len); frag 8482 arch/x86/kvm/x86.c if (frag->len <= 8) { frag 8484 arch/x86/kvm/x86.c frag++; frag 8488 arch/x86/kvm/x86.c frag->data += len; frag 8489 arch/x86/kvm/x86.c frag->gpa += len; frag 8490 arch/x86/kvm/x86.c frag->len -= len; frag 8504 arch/x86/kvm/x86.c run->mmio.phys_addr = frag->gpa; frag 8506 arch/x86/kvm/x86.c memcpy(run->mmio.data, frag->data, min(8u, frag->len)); frag 8507 arch/x86/kvm/x86.c run->mmio.len = min(8u, frag->len); frag 1229 block/partitions/ldm.c struct frag *f; frag 1253 block/partitions/ldm.c f = list_entry (item, struct frag, list); frag 1304 block/partitions/ldm.c kfree (list_entry (item, struct frag, list)); frag 1320 block/partitions/ldm.c struct frag *f; frag 1326 block/partitions/ldm.c f = list_entry (item, struct frag, list); frag 2560 drivers/atm/he.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2584 drivers/atm/he.c frag, 0, skb_frag_size(frag), DMA_TO_DEVICE); frag 2585 drivers/atm/he.c tpd->iovec[slot].len = skb_frag_size(frag); frag 299 drivers/block/aoe/aoecmd.c int frag = 0; frag 303 drivers/block/aoe/aoecmd.c skb_fill_page_desc(skb, frag++, bv.bv_page, frag 587 drivers/block/aoe/aoecmd.c int frag; frag 604 drivers/block/aoe/aoecmd.c for (frag = 0, n = f->iter.bi_size; n > 0; ++frag, n -= m) { frag 609 drivers/block/aoe/aoecmd.c skb_fill_page_desc(skb, frag, empty_page, 0, m); frag 1319 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c unsigned int *frag, uint64_t *frag_end) frag 1351 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c *frag = 0; frag 1357 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c *frag = min((unsigned)ffs(start) - 1, (unsigned)fls64(end - start) - 1); frag 1358 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (*frag >= max_frag) { frag 1359 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c *frag = max_frag; frag 1362 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c *frag_end = start + (1 << *frag); frag 1387 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c unsigned int frag; frag 1391 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_vm_fragment(params, frag_start, end, flags, &frag, &frag_end); frag 1423 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c } else if (frag < shift) { frag 1431 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c } else if (frag >= parent_shift && frag 1456 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c flags | AMDGPU_PTE_FRAG(frag)); frag 1465 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c flags, &frag, &frag_end); frag 1466 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (frag < shift) frag 1478 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c } else if (frag >= shift) { frag 172 drivers/hsi/clients/ssi_protocol.c skb_frag_t *frag; frag 183 drivers/hsi/clients/ssi_protocol.c frag = &skb_shinfo(skb)->frags[i]; frag 184 drivers/hsi/clients/ssi_protocol.c sg_set_page(sg, skb_frag_page(frag), skb_frag_size(frag), frag 185 drivers/hsi/clients/ssi_protocol.c skb_frag_off(frag)); frag 105 drivers/infiniband/hw/hfi1/vnic_sdma.c skb_frag_t *frag = &skb_shinfo(tx->skb)->frags[i]; frag 110 drivers/infiniband/hw/hfi1/vnic_sdma.c skb_frag_page(frag), frag 111 drivers/infiniband/hw/hfi1/vnic_sdma.c skb_frag_off(frag), frag 112 drivers/infiniband/hw/hfi1/vnic_sdma.c skb_frag_size(frag)); frag 618 drivers/infiniband/hw/qib/qib_user_sdma.c int frag) frag 620 drivers/infiniband/hw/qib/qib_user_sdma.c const int i = frag; frag 541 drivers/infiniband/ulp/ipoib/ipoib_cm.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 545 drivers/infiniband/ulp/ipoib/ipoib_cm.c skb_fill_page_desc(toskb, i, skb_frag_page(frag), frag 551 drivers/infiniband/ulp/ipoib/ipoib_cm.c skb_frag_size_set(frag, size); frag 293 drivers/infiniband/ulp/ipoib/ipoib_ib.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 295 drivers/infiniband/ulp/ipoib/ipoib_ib.c skb_frag_page(frag), frag 296 drivers/infiniband/ulp/ipoib/ipoib_ib.c skb_frag_off(frag), frag 297 drivers/infiniband/ulp/ipoib/ipoib_ib.c skb_frag_size(frag), frag 306 drivers/infiniband/ulp/ipoib/ipoib_ib.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; frag 308 drivers/infiniband/ulp/ipoib/ipoib_ib.c ib_dma_unmap_page(ca, mapping[i - !off], skb_frag_size(frag), DMA_TO_DEVICE); frag 333 drivers/infiniband/ulp/ipoib/ipoib_ib.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 336 drivers/infiniband/ulp/ipoib/ipoib_ib.c skb_frag_size(frag), DMA_TO_DEVICE); frag 570 drivers/net/ethernet/3com/3c59x.c } frag[1+MAX_SKB_FRAGS]; frag 2158 drivers/net/ethernet/3com/3c59x.c vp->tx_ring[entry].frag[0].addr = cpu_to_le32(dma_addr); frag 2159 drivers/net/ethernet/3com/3c59x.c vp->tx_ring[entry].frag[0].length = cpu_to_le32(skb->len | LAST_FRAG); frag 2168 drivers/net/ethernet/3com/3c59x.c vp->tx_ring[entry].frag[0].addr = cpu_to_le32(dma_addr); frag 2169 drivers/net/ethernet/3com/3c59x.c vp->tx_ring[entry].frag[0].length = cpu_to_le32(skb_headlen(skb)); frag 2172 drivers/net/ethernet/3com/3c59x.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2174 drivers/net/ethernet/3com/3c59x.c dma_addr = skb_frag_dma_map(vp->gendev, frag, frag 2176 drivers/net/ethernet/3com/3c59x.c skb_frag_size(frag), frag 2181 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[entry].frag[i+1].addr), frag 2182 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[entry].frag[i+1].length), frag 2186 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[entry].frag[0].addr), frag 2187 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[entry].frag[0].length), frag 2193 drivers/net/ethernet/3com/3c59x.c vp->tx_ring[entry].frag[i+1].addr = frag 2197 drivers/net/ethernet/3com/3c59x.c vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(skb_frag_size(frag)|LAST_FRAG); frag 2199 drivers/net/ethernet/3com/3c59x.c vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(skb_frag_size(frag)); frag 2435 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[entry].frag[0].addr), frag 2436 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[entry].frag[0].length)&0xFFF, frag 2441 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[entry].frag[i].addr), frag 2442 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[entry].frag[i].length)&0xFFF, frag 2770 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[i].frag[k].addr), frag 2771 drivers/net/ethernet/3com/3c59x.c le32_to_cpu(vp->tx_ring[i].frag[k].length)&0xFFF, frag 2808 drivers/net/ethernet/3com/3c59x.c length = le32_to_cpu(vp->tx_ring[i].frag[0].length); frag 797 drivers/net/ethernet/3com/typhoon.c txd->frag.addr = cpu_to_le32(skb_dma); frag 798 drivers/net/ethernet/3com/typhoon.c txd->frag.addrHi = 0; frag 808 drivers/net/ethernet/3com/typhoon.c txd->frag.addr = cpu_to_le32(skb_dma); frag 809 drivers/net/ethernet/3com/typhoon.c txd->frag.addrHi = 0; frag 813 drivers/net/ethernet/3com/typhoon.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 820 drivers/net/ethernet/3com/typhoon.c len = skb_frag_size(frag); frag 821 drivers/net/ethernet/3com/typhoon.c frag_addr = skb_frag_address(frag); frag 826 drivers/net/ethernet/3com/typhoon.c txd->frag.addr = cpu_to_le32(skb_dma); frag 827 drivers/net/ethernet/3com/typhoon.c txd->frag.addrHi = 0; frag 1529 drivers/net/ethernet/3com/typhoon.c skb_dma = (dma_addr_t) le32_to_cpu(tx->frag.addr); frag 173 drivers/net/ethernet/3com/typhoon.h } frag; frag 198 drivers/net/ethernet/aeroflex/greth.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 203 drivers/net/ethernet/aeroflex/greth.c skb_frag_size(frag), frag 518 drivers/net/ethernet/aeroflex/greth.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 525 drivers/net/ethernet/aeroflex/greth.c status |= skb_frag_size(frag) & GRETH_BD_LEN; frag 539 drivers/net/ethernet/aeroflex/greth.c dma_addr = skb_frag_dma_map(greth->dev, frag, 0, skb_frag_size(frag), frag 714 drivers/net/ethernet/aeroflex/greth.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 719 drivers/net/ethernet/aeroflex/greth.c skb_frag_size(frag), frag 2425 drivers/net/ethernet/agere/et131x.c u32 frag = 0; frag 2462 drivers/net/ethernet/agere/et131x.c desc[frag].len_vlan = skb_headlen(skb); frag 2467 drivers/net/ethernet/agere/et131x.c desc[frag].addr_lo = lower_32_bits(dma_addr); frag 2468 drivers/net/ethernet/agere/et131x.c desc[frag].addr_hi = upper_32_bits(dma_addr); frag 2469 drivers/net/ethernet/agere/et131x.c frag++; frag 2471 drivers/net/ethernet/agere/et131x.c desc[frag].len_vlan = skb_headlen(skb) / 2; frag 2476 drivers/net/ethernet/agere/et131x.c desc[frag].addr_lo = lower_32_bits(dma_addr); frag 2477 drivers/net/ethernet/agere/et131x.c desc[frag].addr_hi = upper_32_bits(dma_addr); frag 2478 drivers/net/ethernet/agere/et131x.c frag++; frag 2480 drivers/net/ethernet/agere/et131x.c desc[frag].len_vlan = skb_headlen(skb) / 2; frag 2486 drivers/net/ethernet/agere/et131x.c desc[frag].addr_lo = lower_32_bits(dma_addr); frag 2487 drivers/net/ethernet/agere/et131x.c desc[frag].addr_hi = upper_32_bits(dma_addr); frag 2488 drivers/net/ethernet/agere/et131x.c frag++; frag 2491 drivers/net/ethernet/agere/et131x.c desc[frag].len_vlan = skb_frag_size(&frags[i - 1]); frag 2495 drivers/net/ethernet/agere/et131x.c desc[frag].len_vlan, frag 2497 drivers/net/ethernet/agere/et131x.c desc[frag].addr_lo = lower_32_bits(dma_addr); frag 2498 drivers/net/ethernet/agere/et131x.c desc[frag].addr_hi = upper_32_bits(dma_addr); frag 2499 drivers/net/ethernet/agere/et131x.c frag++; frag 2506 drivers/net/ethernet/agere/et131x.c desc[frag - 1].flags = frag 2510 drivers/net/ethernet/agere/et131x.c desc[frag - 1].flags = TXDESC_FLAG_LASTPKT; frag 2513 drivers/net/ethernet/agere/et131x.c desc[frag - 1].flags = frag 2524 drivers/net/ethernet/agere/et131x.c if (thiscopy >= frag) { frag 2526 drivers/net/ethernet/agere/et131x.c thiscopy = frag; frag 2528 drivers/net/ethernet/agere/et131x.c remainder = frag - thiscopy; frag 2461 drivers/net/ethernet/alteon/acenic.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2464 drivers/net/ethernet/alteon/acenic.c len += skb_frag_size(frag); frag 2468 drivers/net/ethernet/alteon/acenic.c mapping = skb_frag_dma_map(&ap->pdev->dev, frag, 0, frag 2469 drivers/net/ethernet/alteon/acenic.c skb_frag_size(frag), frag 2472 drivers/net/ethernet/alteon/acenic.c flagsize = skb_frag_size(frag) << 16; frag 2491 drivers/net/ethernet/alteon/acenic.c dma_unmap_len_set(info, maplen, skb_frag_size(frag)); frag 355 drivers/net/ethernet/amazon/ena/ena_eth_com.c ena_rx_ctx->frag = frag 362 drivers/net/ethernet/amazon/ena/ena_eth_com.c ena_rx_ctx->hash, ena_rx_ctx->frag, cdesc->status); frag 72 drivers/net/ethernet/amazon/ena/ena_eth_com.h bool frag; frag 968 drivers/net/ethernet/amazon/ena/ena_netdev.c if (ena_rx_ctx->frag) { frag 1033 drivers/net/ethernet/amazon/ena/ena_netdev.c if (ena_rx_ctx->frag) frag 2208 drivers/net/ethernet/amazon/ena/ena_netdev.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2210 drivers/net/ethernet/amazon/ena/ena_netdev.c frag_len = skb_frag_size(frag); frag 2217 drivers/net/ethernet/amazon/ena/ena_netdev.c dma = skb_frag_dma_map(tx_ring->dev, frag, delta, frag 529 drivers/net/ethernet/amd/xgbe/xgbe-desc.c skb_frag_t *frag; frag 607 drivers/net/ethernet/amd/xgbe/xgbe-desc.c frag = &skb_shinfo(skb)->frags[i]; frag 610 drivers/net/ethernet/amd/xgbe/xgbe-desc.c for (datalen = skb_frag_size(frag); datalen; ) { frag 614 drivers/net/ethernet/amd/xgbe/xgbe-desc.c skb_dma = skb_frag_dma_map(pdata->dev, frag, offset, frag 1836 drivers/net/ethernet/amd/xgbe/xgbe-drv.c skb_frag_t *frag; frag 1895 drivers/net/ethernet/amd/xgbe/xgbe-drv.c frag = &skb_shinfo(skb)->frags[i]; frag 1896 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (len = skb_frag_size(frag); len; ) { frag 13 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static void xgene_cle_sband_to_hw(u8 frag, enum xgene_cle_prot_version ver, frag 17 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c *reg = SET_VAL(SB_IPFRAG, frag) | frag 231 drivers/net/ethernet/apm/xgene/xgene_enet_main.c skb_frag_t *frag; frag 248 drivers/net/ethernet/apm/xgene/xgene_enet_main.c frag = &skb_shinfo(skb)->frags[i]; frag 249 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dma_unmap_page(dev, frag_dma_addr[i], skb_frag_size(frag), frag 414 drivers/net/ethernet/apm/xgene/xgene_enet_main.c skb_frag_t *frag; frag 466 drivers/net/ethernet/apm/xgene/xgene_enet_main.c frag = &skb_shinfo(skb)->frags[fidx]; frag 467 drivers/net/ethernet/apm/xgene/xgene_enet_main.c size = skb_frag_size(frag); frag 470 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pbuf_addr = skb_frag_dma_map(dev, frag, 0, size, frag 507 drivers/net/ethernet/aquantia/atlantic/aq_nic.c skb_frag_t *frag = &skb_shinfo(skb)->frags[frag_count]; frag 509 drivers/net/ethernet/aquantia/atlantic/aq_nic.c frag_len = skb_frag_size(frag); frag 518 drivers/net/ethernet/aquantia/atlantic/aq_nic.c frag, frag 1468 drivers/net/ethernet/atheros/alx/main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 1476 drivers/net/ethernet/atheros/alx/main.c maplen = skb_frag_size(frag); frag 1477 drivers/net/ethernet/atheros/alx/main.c dma = skb_frag_dma_map(txq->dev, frag, 0, frag 2153 drivers/net/ethernet/atheros/atl1c/atl1c_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 2159 drivers/net/ethernet/atheros/atl1c/atl1c_main.c buffer_info->length = skb_frag_size(frag); frag 2161 drivers/net/ethernet/atheros/atl1c/atl1c_main.c frag, 0, frag 1773 drivers/net/ethernet/atheros/atl1e/atl1e_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 1777 drivers/net/ethernet/atheros/atl1e/atl1e_main.c buf_len = skb_frag_size(frag); frag 1794 drivers/net/ethernet/atheros/atl1e/atl1e_main.c frag, frag 2259 drivers/net/ethernet/atheros/atlx/atl1.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 2262 drivers/net/ethernet/atheros/atlx/atl1.c buf_len = skb_frag_size(frag); frag 2275 drivers/net/ethernet/atheros/atlx/atl1.c frag, i * ATL1_MAX_TX_BUF_LEN, frag 297 drivers/net/ethernet/atheros/atlx/atl2.h unsigned frag:1; /* received a packet less than 64 bytes frag 175 drivers/net/ethernet/broadcom/bgmac.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 176 drivers/net/ethernet/broadcom/bgmac.c int len = skb_frag_size(frag); frag 180 drivers/net/ethernet/broadcom/bgmac.c slot->dma_addr = skb_frag_dma_map(dma_dev, frag, 0, frag 3088 drivers/net/ethernet/broadcom/bnx2.c skb_frag_t *frag = frag 3090 drivers/net/ethernet/broadcom/bnx2.c skb_frag_size_sub(frag, tail); frag 6691 drivers/net/ethernet/broadcom/bnx2.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 6697 drivers/net/ethernet/broadcom/bnx2.c len = skb_frag_size(frag); frag 6698 drivers/net/ethernet/broadcom/bnx2.c mapping = skb_frag_dma_map(&bp->pdev->dev, frag, 0, len, frag 4072 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 4074 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c mapping = skb_frag_dma_map(&bp->pdev->dev, frag, 0, frag 4075 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c skb_frag_size(frag), DMA_TO_DEVICE); frag 4101 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c tx_data_bd->nbytes = cpu_to_le16(skb_frag_size(frag)); frag 4102 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c le16_add_cpu(&pkt_size, skb_frag_size(frag)); frag 435 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_t *frag = &skb_shinfo(skb)->frags[j]; frag 438 drivers/net/ethernet/broadcom/bnxt/bnxt.c fptr = skb_frag_address_safe(frag); frag 442 drivers/net/ethernet/broadcom/bnxt/bnxt.c memcpy(pdata, fptr, skb_frag_size(frag)); frag 443 drivers/net/ethernet/broadcom/bnxt/bnxt.c pdata += skb_frag_size(frag); frag 539 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 544 drivers/net/ethernet/broadcom/bnxt/bnxt.c len = skb_frag_size(frag); frag 545 drivers/net/ethernet/broadcom/bnxt/bnxt.c mapping = skb_frag_dma_map(&pdev->dev, frag, 0, len, frag 931 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_t *frag; frag 961 drivers/net/ethernet/broadcom/bnxt/bnxt.c frag = &skb_shinfo(skb)->frags[0]; frag 962 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_size_sub(frag, payload); frag 963 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_off_add(frag, payload); frag 2527 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_t *frag = &skb_shinfo(skb)->frags[k]; frag 2533 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_size(frag), PCI_DMA_TODEVICE); frag 1556 drivers/net/ethernet/broadcom/genet/bcmgenet.c skb_frag_t *frag; frag 1623 drivers/net/ethernet/broadcom/genet/bcmgenet.c frag = &skb_shinfo(skb)->frags[i - 1]; frag 1624 drivers/net/ethernet/broadcom/genet/bcmgenet.c size = skb_frag_size(frag); frag 1625 drivers/net/ethernet/broadcom/genet/bcmgenet.c mapping = skb_frag_dma_map(kdev, frag, 0, size, frag 7789 drivers/net/ethernet/broadcom/tg3.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 7796 drivers/net/ethernet/broadcom/tg3.c skb_frag_size(frag), PCI_DMA_TODEVICE); frag 8090 drivers/net/ethernet/broadcom/tg3.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 8092 drivers/net/ethernet/broadcom/tg3.c len = skb_frag_size(frag); frag 8093 drivers/net/ethernet/broadcom/tg3.c mapping = skb_frag_dma_map(&tp->pdev->dev, frag, 0, frag 3035 drivers/net/ethernet/brocade/bna/bnad.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 3036 drivers/net/ethernet/brocade/bna/bnad.c u32 size = skb_frag_size(frag); frag 3058 drivers/net/ethernet/brocade/bna/bnad.c dma_addr = skb_frag_dma_map(&bnad->pcidev->dev, frag, frag 982 drivers/net/ethernet/cadence/macb_main.c unsigned int frag; frag 984 drivers/net/ethernet/cadence/macb_main.c for (frag = begin; frag != end; frag++) { frag 985 drivers/net/ethernet/cadence/macb_main.c struct macb_dma_desc *desc = macb_rx_desc(queue, frag); frag 1094 drivers/net/ethernet/cadence/macb_main.c unsigned int frag; frag 1118 drivers/net/ethernet/cadence/macb_main.c for (frag = first_frag; ; frag++) { frag 1119 drivers/net/ethernet/cadence/macb_main.c desc = macb_rx_desc(queue, frag); frag 1121 drivers/net/ethernet/cadence/macb_main.c if (frag == last_frag) frag 1136 drivers/net/ethernet/cadence/macb_main.c for (frag = first_frag; ; frag++) { frag 1140 drivers/net/ethernet/cadence/macb_main.c if (unlikely(frag != last_frag)) { frag 1147 drivers/net/ethernet/cadence/macb_main.c macb_rx_buffer(queue, frag), frag 1150 drivers/net/ethernet/cadence/macb_main.c desc = macb_rx_desc(queue, frag); frag 1153 drivers/net/ethernet/cadence/macb_main.c if (frag == last_frag) frag 1550 drivers/net/ethernet/cadence/macb_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 1552 drivers/net/ethernet/cadence/macb_main.c len = skb_frag_size(frag); frag 1559 drivers/net/ethernet/cadence/macb_main.c mapping = skb_frag_dma_map(&bp->pdev->dev, frag, frag 1693 drivers/net/ethernet/cadence/macb_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 1695 drivers/net/ethernet/cadence/macb_main.c if (!IS_ALIGNED(skb_frag_size(frag), MACB_TX_LEN_ALIGN)) frag 1105 drivers/net/ethernet/calxeda/xgmac.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1107 drivers/net/ethernet/calxeda/xgmac.c len = skb_frag_size(frag); frag 1109 drivers/net/ethernet/calxeda/xgmac.c paddr = skb_frag_dma_map(priv->device, frag, 0, len, frag 1495 drivers/net/ethernet/cavium/liquidio/lio_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; frag 1499 drivers/net/ethernet/cavium/liquidio/lio_main.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1538 drivers/net/ethernet/cavium/liquidio/lio_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; frag 1542 drivers/net/ethernet/cavium/liquidio/lio_main.c skb_frag_size(frag), DMA_TO_DEVICE); frag 2427 drivers/net/ethernet/cavium/liquidio/lio_main.c skb_frag_t *frag; frag 2462 drivers/net/ethernet/cavium/liquidio/lio_main.c frag = &skb_shinfo(skb)->frags[i - 1]; frag 2466 drivers/net/ethernet/cavium/liquidio/lio_main.c frag, 0, skb_frag_size(frag), frag 2476 drivers/net/ethernet/cavium/liquidio/lio_main.c frag = &skb_shinfo(skb)->frags[j - 1]; frag 2479 drivers/net/ethernet/cavium/liquidio/lio_main.c skb_frag_size(frag), frag 2487 drivers/net/ethernet/cavium/liquidio/lio_main.c add_sg_size(&g->sg[(i >> 2)], skb_frag_size(frag), frag 840 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; frag 844 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c skb_frag_size(frag), DMA_TO_DEVICE); frag 884 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; frag 888 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1500 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c skb_frag_t *frag; frag 1535 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c frag = &skb_shinfo(skb)->frags[i - 1]; frag 1539 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c frag, 0, skb_frag_size(frag), frag 1548 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c frag = &skb_shinfo(skb)->frags[j - 1]; frag 1551 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c skb_frag_size(frag), frag 1559 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c add_sg_size(&g->sg[(i >> 2)], skb_frag_size(frag), frag 1591 drivers/net/ethernet/cavium/thunder/nicvf_queues.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1594 drivers/net/ethernet/cavium/thunder/nicvf_queues.c size = skb_frag_size(frag); frag 1596 drivers/net/ethernet/cavium/thunder/nicvf_queues.c skb_frag_page(frag), frag 1597 drivers/net/ethernet/cavium/thunder/nicvf_queues.c skb_frag_off(frag), size, frag 1665 drivers/net/ethernet/cavium/thunder/nicvf_queues.c int frag; frag 1687 drivers/net/ethernet/cavium/thunder/nicvf_queues.c for (frag = 0; frag < cqe_rx->rb_cnt; frag++) { frag 1688 drivers/net/ethernet/cavium/thunder/nicvf_queues.c payload_len = rb_lens[frag_num(frag)]; frag 1696 drivers/net/ethernet/cavium/thunder/nicvf_queues.c if (!frag) { frag 1123 drivers/net/ethernet/chelsio/cxgb/sge.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1124 drivers/net/ethernet/chelsio/cxgb/sge.c len = skb_frag_size(frag); frag 1255 drivers/net/ethernet/chelsio/cxgb/sge.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1265 drivers/net/ethernet/chelsio/cxgb/sge.c mapping = skb_frag_dma_map(&adapter->pdev->dev, frag, 0, frag 1266 drivers/net/ethernet/chelsio/cxgb/sge.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1268 drivers/net/ethernet/chelsio/cxgb/sge.c desc_len = skb_frag_size(frag); frag 1278 drivers/net/ethernet/chelsio/cxgb/sge.c dma_unmap_len_set(ce, dma_len, skb_frag_size(frag)); frag 1024 drivers/net/ethernet/chelsio/cxgb3/sge.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1026 drivers/net/ethernet/chelsio/cxgb3/sge.c sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); frag 1145 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h uint32_t frag:FRAG_BITWIDTH; /* IP fragmentation header */ frag 263 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, FRAGMENTATION_F, fs->val.frag, fs->mask.frag) || frag 622 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (FW_FILTER_WR_FRAG_V(f->fs.val.frag) | frag 623 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_FRAGM_V(f->fs.mask.frag) | frag 803 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.frag && !fs->mask.frag) frag 804 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.frag |= ~0; frag 944 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.frag << tp->frag_shift; frag 1002 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->frag_shift >= 0 && fs->mask.frag) frag 1003 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)(fs->val.frag) << tp->frag_shift; frag 64 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.frag = 1; frag 65 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.frag = 1; frag 67 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.frag = 0; frag 68 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.frag = 1; frag 1551 drivers/net/ethernet/chelsio/cxgb4vf/sge.c int frag; frag 1553 drivers/net/ethernet/chelsio/cxgb4vf/sge.c frag = gl->nfrags - 1; frag 1554 drivers/net/ethernet/chelsio/cxgb4vf/sge.c while (frag--) frag 1555 drivers/net/ethernet/chelsio/cxgb4vf/sge.c put_page(gl->frags[frag].page); frag 1782 drivers/net/ethernet/chelsio/cxgb4vf/sge.c u32 bufsz, frag; frag 1807 drivers/net/ethernet/chelsio/cxgb4vf/sge.c for (frag = 0, fp = gl.frags; /**/; frag++, fp++) { frag 1808 drivers/net/ethernet/chelsio/cxgb4vf/sge.c BUG_ON(frag >= MAX_SKB_FRAGS); frag 1820 drivers/net/ethernet/chelsio/cxgb4vf/sge.c gl.nfrags = frag+1; frag 1842 drivers/net/ethernet/chelsio/cxgb4vf/sge.c restore_rx_bufs(&gl, &rxq->fl, frag); frag 583 drivers/net/ethernet/cisco/enic/enic_main.c const skb_frag_t *frag; frag 587 drivers/net/ethernet/cisco/enic/enic_main.c for (frag = skb_shinfo(skb)->frags; len_left; frag++) { frag 588 drivers/net/ethernet/cisco/enic/enic_main.c len_left -= skb_frag_size(frag); frag 589 drivers/net/ethernet/cisco/enic/enic_main.c dma_addr = skb_frag_dma_map(&enic->pdev->dev, frag, 0, frag 590 drivers/net/ethernet/cisco/enic/enic_main.c skb_frag_size(frag), frag 594 drivers/net/ethernet/cisco/enic/enic_main.c enic_queue_wq_desc_cont(wq, skb, dma_addr, skb_frag_size(frag), frag 716 drivers/net/ethernet/cisco/enic/enic_main.c skb_frag_t *frag; frag 749 drivers/net/ethernet/cisco/enic/enic_main.c for (frag = skb_shinfo(skb)->frags; len_left; frag++) { frag 750 drivers/net/ethernet/cisco/enic/enic_main.c len_left -= skb_frag_size(frag); frag 751 drivers/net/ethernet/cisco/enic/enic_main.c frag_len_left = skb_frag_size(frag); frag 757 drivers/net/ethernet/cisco/enic/enic_main.c dma_addr = skb_frag_dma_map(&enic->pdev->dev, frag, frag 1143 drivers/net/ethernet/cortina/gemini.c short frag, last_frag = skb_si->nr_frags - 1; frag 1180 drivers/net/ethernet/cortina/gemini.c frag = -1; frag 1181 drivers/net/ethernet/cortina/gemini.c while (frag <= last_frag) { frag 1182 drivers/net/ethernet/cortina/gemini.c if (frag == -1) { frag 1186 drivers/net/ethernet/cortina/gemini.c skb_frag = skb_si->frags + frag; frag 1191 drivers/net/ethernet/cortina/gemini.c if (frag == last_frag) { frag 1210 drivers/net/ethernet/cortina/gemini.c frag++; frag 351 drivers/net/ethernet/dlink/sundance.c struct desc_frag { __le32 addr, length; } frag[1]; frag 994 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(np->tx_ring[i].frag[0].addr), frag 995 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(np->tx_ring[i].frag[0].length)); frag 1041 drivers/net/ethernet/dlink/sundance.c np->rx_ring[i].frag[0].length = 0; frag 1053 drivers/net/ethernet/dlink/sundance.c np->rx_ring[i].frag[0].addr = cpu_to_le32( frag 1057 drivers/net/ethernet/dlink/sundance.c np->rx_ring[i].frag[0].addr)) { frag 1062 drivers/net/ethernet/dlink/sundance.c np->rx_ring[i].frag[0].length = cpu_to_le32(np->rx_buf_sz | LastFrag); frag 1112 drivers/net/ethernet/dlink/sundance.c txdesc->frag[0].addr = cpu_to_le32(dma_map_single(&np->pci_dev->dev, frag 1115 drivers/net/ethernet/dlink/sundance.c txdesc->frag[0].addr)) frag 1117 drivers/net/ethernet/dlink/sundance.c txdesc->frag[0].length = cpu_to_le32 (skb->len | LastFrag); frag 1166 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(np->tx_ring[i].frag[0].addr), frag 1286 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(np->tx_ring[entry].frag[0].addr), frag 1290 drivers/net/ethernet/dlink/sundance.c np->tx_ring[entry].frag[0].addr = 0; frag 1291 drivers/net/ethernet/dlink/sundance.c np->tx_ring[entry].frag[0].length = 0; frag 1305 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(np->tx_ring[entry].frag[0].addr), frag 1309 drivers/net/ethernet/dlink/sundance.c np->tx_ring[entry].frag[0].addr = 0; frag 1310 drivers/net/ethernet/dlink/sundance.c np->tx_ring[entry].frag[0].length = 0; frag 1387 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(desc->frag[0].addr), frag 1391 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(desc->frag[0].addr), frag 1396 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(desc->frag[0].addr), frag 1442 drivers/net/ethernet/dlink/sundance.c np->rx_ring[entry].frag[0].addr = cpu_to_le32( frag 1446 drivers/net/ethernet/dlink/sundance.c np->rx_ring[entry].frag[0].addr)) { frag 1453 drivers/net/ethernet/dlink/sundance.c np->rx_ring[entry].frag[0].length = frag 1886 drivers/net/ethernet/dlink/sundance.c i, np->tx_ring[i].status, np->tx_ring[i].frag[0].addr, frag 1887 drivers/net/ethernet/dlink/sundance.c np->tx_ring[i].frag[0].length); frag 1892 drivers/net/ethernet/dlink/sundance.c i, np->rx_ring[i].status, np->rx_ring[i].frag[0].addr, frag 1893 drivers/net/ethernet/dlink/sundance.c np->rx_ring[i].frag[0].length); frag 1908 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(np->rx_ring[i].frag[0].addr), frag 1913 drivers/net/ethernet/dlink/sundance.c np->rx_ring[i].frag[0].addr = cpu_to_le32(0xBADF00D0); /* poison */ frag 1920 drivers/net/ethernet/dlink/sundance.c le32_to_cpu(np->tx_ring[i].frag[0].addr), frag 1017 drivers/net/ethernet/emulex/benet/be_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1018 drivers/net/ethernet/emulex/benet/be_main.c len = skb_frag_size(frag); frag 1020 drivers/net/ethernet/emulex/benet/be_main.c busaddr = skb_frag_dma_map(dev, frag, 0, len, DMA_TO_DEVICE); frag 775 drivers/net/ethernet/faraday/ftgmac100.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 777 drivers/net/ethernet/faraday/ftgmac100.c len = skb_frag_size(frag); frag 780 drivers/net/ethernet/faraday/ftgmac100.c map = skb_frag_dma_map(priv->dev, frag, 0, len, frag 1920 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c skb_frag_t *frag; frag 1965 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c frag = &skb_shinfo(skb)->frags[i]; frag 1966 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c frag_len = skb_frag_size(frag); frag 1967 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c WARN_ON(!skb_frag_page(frag)); frag 1968 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c addr = skb_frag_dma_map(dev, frag, 0, frag 113 drivers/net/ethernet/freescale/enetc/enetc.c skb_frag_t *frag; frag 189 drivers/net/ethernet/freescale/enetc/enetc.c frag = &skb_shinfo(skb)->frags[0]; frag 190 drivers/net/ethernet/freescale/enetc/enetc.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++, frag++) { frag 191 drivers/net/ethernet/freescale/enetc/enetc.c len = skb_frag_size(frag); frag 192 drivers/net/ethernet/freescale/enetc/enetc.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, len, frag 392 drivers/net/ethernet/freescale/fec_main.c int frag, frag_len; frag 401 drivers/net/ethernet/freescale/fec_main.c for (frag = 0; frag < nr_frags; frag++) { frag 402 drivers/net/ethernet/freescale/fec_main.c this_frag = &skb_shinfo(skb)->frags[frag]; frag 409 drivers/net/ethernet/freescale/fec_main.c frag_len = skb_frag_size(&skb_shinfo(skb)->frags[frag]); frag 412 drivers/net/ethernet/freescale/fec_main.c if (frag == nr_frags - 1) { frag 463 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < frag; i++) { frag 492 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c skb_frag_t *frag; frag 502 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c frag = skb_shinfo(skb)->frags; frag 503 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c for (i = 0; i < nr_frags; i++, frag++) { frag 504 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (!IS_ALIGNED(skb_frag_off(frag), 4)) { frag 559 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c frag = skb_shinfo(skb)->frags; frag 571 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c len = skb_frag_size(frag); frag 572 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c CBDW_BUFADDR(bdp, skb_frag_dma_map(fep->dev, frag, 0, len, frag 579 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c frag++; frag 1802 drivers/net/ethernet/freescale/gianfar.c skb_frag_t *frag; frag 1923 drivers/net/ethernet/freescale/gianfar.c frag = &skb_shinfo(skb)->frags[0]; frag 1924 drivers/net/ethernet/freescale/gianfar.c for (i = 0; i < nr_frags; i++, frag++) { frag 1930 drivers/net/ethernet/freescale/gianfar.c size = skb_frag_size(frag); frag 1939 drivers/net/ethernet/freescale/gianfar.c bufaddr = skb_frag_dma_map(priv->dev, frag, 0, frag 721 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 722 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c int len = skb_frag_size(frag); frag 724 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c addr = skb_frag_dma_map(priv->dev, frag, 0, len, DMA_TO_DEVICE); frag 248 drivers/net/ethernet/hisilicon/hns/hns_enet.c skb_frag_t *frag; frag 255 drivers/net/ethernet/hisilicon/hns/hns_enet.c frag = &skb_shinfo(skb)->frags[i]; frag 256 drivers/net/ethernet/hisilicon/hns/hns_enet.c size = skb_frag_size(frag); frag 312 drivers/net/ethernet/hisilicon/hns/hns_enet.c skb_frag_t *frag; frag 348 drivers/net/ethernet/hisilicon/hns/hns_enet.c frag = &skb_shinfo(skb)->frags[i - 1]; frag 349 drivers/net/ethernet/hisilicon/hns/hns_enet.c size = skb_frag_size(frag); frag 350 drivers/net/ethernet/hisilicon/hns/hns_enet.c dma = skb_frag_dma_map(dev, frag, 0, size, DMA_TO_DEVICE); frag 356 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ops.fill_desc(ring, skb_frag_page(frag), size, dma, frag 1113 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c skb_frag_t *frag; frag 1128 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c frag = (skb_frag_t *)priv; frag 1129 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c dma = skb_frag_dma_map(dev, frag, 0, size, DMA_TO_DEVICE); frag 1203 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1204 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c bd_num += hns3_tx_bd_count(skb_frag_size(frag)); frag 1326 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c skb_frag_t *frag; frag 1372 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c frag = &skb_shinfo(skb)->frags[i - 1]; frag 1373 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c size = skb_frag_size(frag); frag 1375 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ret = hns3_fill_desc(ring, frag, size, frag 139 drivers/net/ethernet/huawei/hinic/hinic_tx.c skb_frag_t *frag; frag 153 drivers/net/ethernet/huawei/hinic/hinic_tx.c frag = &skb_shinfo(skb)->frags[i]; frag 155 drivers/net/ethernet/huawei/hinic/hinic_tx.c dma_addr = skb_frag_dma_map(&pdev->dev, frag, 0, frag 156 drivers/net/ethernet/huawei/hinic/hinic_tx.c skb_frag_size(frag), frag 163 drivers/net/ethernet/huawei/hinic/hinic_tx.c hinic_set_sge(&sges[i + 1], dma_addr, skb_frag_size(frag)); frag 1641 drivers/net/ethernet/ibm/ehea/ehea_main.c skb_frag_t *frag; frag 1655 drivers/net/ethernet/ibm/ehea/ehea_main.c frag = &skb_shinfo(skb)->frags[0]; frag 1659 drivers/net/ethernet/ibm/ehea/ehea_main.c sg1entry->len = skb_frag_size(frag); frag 1661 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_map_vaddr(skb_frag_address(frag)); frag 1668 drivers/net/ethernet/ibm/ehea/ehea_main.c frag = &skb_shinfo(skb)->frags[i]; frag 1672 drivers/net/ethernet/ibm/ehea/ehea_main.c sgentry->len = skb_frag_size(frag); frag 1673 drivers/net/ethernet/ibm/ehea/ehea_main.c sgentry->vaddr = ehea_map_vaddr(skb_frag_address(frag)); frag 1552 drivers/net/ethernet/ibm/emac/core.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1553 drivers/net/ethernet/ibm/emac/core.c len = skb_frag_size(frag); frag 1558 drivers/net/ethernet/ibm/emac/core.c pd = skb_frag_dma_map(&dev->ofdev->dev, frag, 0, len, frag 1110 drivers/net/ethernet/ibm/ibmveth.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1112 drivers/net/ethernet/ibm/ibmveth.c dma_addr = skb_frag_dma_map(&adapter->vdev->dev, frag, 0, frag 1113 drivers/net/ethernet/ibm/ibmveth.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1118 drivers/net/ethernet/ibm/ibmveth.c descs[i+1].fields.flags_len = desc_flags | skb_frag_size(frag); frag 1484 drivers/net/ethernet/ibm/ibmvnic.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1487 drivers/net/ethernet/ibm/ibmvnic.c page_address(skb_frag_page(frag)) + frag 1488 drivers/net/ethernet/ibm/ibmvnic.c skb_frag_off(frag), skb_frag_size(frag)); frag 1489 drivers/net/ethernet/ibm/ibmvnic.c cur += skb_frag_size(frag); frag 2892 drivers/net/ethernet/intel/e1000/e1000_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 2894 drivers/net/ethernet/intel/e1000/e1000_main.c len = skb_frag_size(frag); frag 2916 drivers/net/ethernet/intel/e1000/e1000_main.c page_to_phys(skb_frag_page(frag)); frag 2926 drivers/net/ethernet/intel/e1000/e1000_main.c buffer_info->dma = skb_frag_dma_map(&pdev->dev, frag, frag 5593 drivers/net/ethernet/intel/e1000e/netdev.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 5595 drivers/net/ethernet/intel/e1000e/netdev.c len = skb_frag_size(frag); frag 5609 drivers/net/ethernet/intel/e1000e/netdev.c buffer_info->dma = skb_frag_dma_map(&pdev->dev, frag, frag 949 drivers/net/ethernet/intel/fm10k/fm10k_main.c skb_frag_t *frag; frag 973 drivers/net/ethernet/intel/fm10k/fm10k_main.c for (frag = &skb_shinfo(skb)->frags[0];; frag++) { frag 1001 drivers/net/ethernet/intel/fm10k/fm10k_main.c size = skb_frag_size(frag); frag 1004 drivers/net/ethernet/intel/fm10k/fm10k_main.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, size, frag 1077 drivers/net/ethernet/intel/fm10k/fm10k_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 1079 drivers/net/ethernet/intel/fm10k/fm10k_main.c count += TXD_USE_COUNT(skb_frag_size(frag)); frag 3265 drivers/net/ethernet/intel/i40e/i40e_txrx.c const skb_frag_t *frag, *stale; frag 3277 drivers/net/ethernet/intel/i40e/i40e_txrx.c frag = &skb_shinfo(skb)->frags[0]; frag 3288 drivers/net/ethernet/intel/i40e/i40e_txrx.c sum += skb_frag_size(frag++); frag 3289 drivers/net/ethernet/intel/i40e/i40e_txrx.c sum += skb_frag_size(frag++); frag 3290 drivers/net/ethernet/intel/i40e/i40e_txrx.c sum += skb_frag_size(frag++); frag 3291 drivers/net/ethernet/intel/i40e/i40e_txrx.c sum += skb_frag_size(frag++); frag 3292 drivers/net/ethernet/intel/i40e/i40e_txrx.c sum += skb_frag_size(frag++); frag 3300 drivers/net/ethernet/intel/i40e/i40e_txrx.c sum += skb_frag_size(frag++); frag 3352 drivers/net/ethernet/intel/i40e/i40e_txrx.c skb_frag_t *frag; frag 3373 drivers/net/ethernet/intel/i40e/i40e_txrx.c for (frag = &skb_shinfo(skb)->frags[0];; frag++) { frag 3423 drivers/net/ethernet/intel/i40e/i40e_txrx.c size = skb_frag_size(frag); frag 3426 drivers/net/ethernet/intel/i40e/i40e_txrx.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, size, frag 524 drivers/net/ethernet/intel/i40e/i40e_txrx.h const skb_frag_t *frag = &skb_shinfo(skb)->frags[0]; frag 534 drivers/net/ethernet/intel/i40e/i40e_txrx.h size = skb_frag_size(frag++); frag 2164 drivers/net/ethernet/intel/iavf/iavf_txrx.c const skb_frag_t *frag, *stale; frag 2176 drivers/net/ethernet/intel/iavf/iavf_txrx.c frag = &skb_shinfo(skb)->frags[0]; frag 2187 drivers/net/ethernet/intel/iavf/iavf_txrx.c sum += skb_frag_size(frag++); frag 2188 drivers/net/ethernet/intel/iavf/iavf_txrx.c sum += skb_frag_size(frag++); frag 2189 drivers/net/ethernet/intel/iavf/iavf_txrx.c sum += skb_frag_size(frag++); frag 2190 drivers/net/ethernet/intel/iavf/iavf_txrx.c sum += skb_frag_size(frag++); frag 2191 drivers/net/ethernet/intel/iavf/iavf_txrx.c sum += skb_frag_size(frag++); frag 2199 drivers/net/ethernet/intel/iavf/iavf_txrx.c sum += skb_frag_size(frag++); frag 2272 drivers/net/ethernet/intel/iavf/iavf_txrx.c skb_frag_t *frag; frag 2292 drivers/net/ethernet/intel/iavf/iavf_txrx.c for (frag = &skb_shinfo(skb)->frags[0];; frag++) { frag 2340 drivers/net/ethernet/intel/iavf/iavf_txrx.c size = skb_frag_size(frag); frag 2343 drivers/net/ethernet/intel/iavf/iavf_txrx.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, size, frag 465 drivers/net/ethernet/intel/iavf/iavf_txrx.h const skb_frag_t *frag = &skb_shinfo(skb)->frags[0]; frag 475 drivers/net/ethernet/intel/iavf/iavf_txrx.h size = skb_frag_size(frag++); frag 1595 drivers/net/ethernet/intel/ice/ice_txrx.c skb_frag_t *frag; frag 1622 drivers/net/ethernet/intel/ice/ice_txrx.c for (frag = &skb_shinfo(skb)->frags[0];; frag++) { frag 1672 drivers/net/ethernet/intel/ice/ice_txrx.c size = skb_frag_size(frag); frag 1675 drivers/net/ethernet/intel/ice/ice_txrx.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, size, frag 1997 drivers/net/ethernet/intel/ice/ice_txrx.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[0]; frag 2007 drivers/net/ethernet/intel/ice/ice_txrx.c size = skb_frag_size(frag++); frag 2028 drivers/net/ethernet/intel/ice/ice_txrx.c const skb_frag_t *frag, *stale; frag 2040 drivers/net/ethernet/intel/ice/ice_txrx.c frag = &skb_shinfo(skb)->frags[0]; frag 2051 drivers/net/ethernet/intel/ice/ice_txrx.c sum += skb_frag_size(frag++); frag 2052 drivers/net/ethernet/intel/ice/ice_txrx.c sum += skb_frag_size(frag++); frag 2053 drivers/net/ethernet/intel/ice/ice_txrx.c sum += skb_frag_size(frag++); frag 2054 drivers/net/ethernet/intel/ice/ice_txrx.c sum += skb_frag_size(frag++); frag 2055 drivers/net/ethernet/intel/ice/ice_txrx.c sum += skb_frag_size(frag++); frag 2062 drivers/net/ethernet/intel/ice/ice_txrx.c sum += skb_frag_size(frag++); frag 5922 drivers/net/ethernet/intel/igb/igb_main.c skb_frag_t *frag; frag 5940 drivers/net/ethernet/intel/igb/igb_main.c for (frag = &skb_shinfo(skb)->frags[0];; frag++) { frag 5981 drivers/net/ethernet/intel/igb/igb_main.c size = skb_frag_size(frag); frag 5984 drivers/net/ethernet/intel/igb/igb_main.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, frag 2177 drivers/net/ethernet/intel/igbvf/netdev.c const skb_frag_t *frag; frag 2184 drivers/net/ethernet/intel/igbvf/netdev.c frag = &skb_shinfo(skb)->frags[f]; frag 2185 drivers/net/ethernet/intel/igbvf/netdev.c len = skb_frag_size(frag); frag 2192 drivers/net/ethernet/intel/igbvf/netdev.c buffer_info->dma = skb_frag_dma_map(&pdev->dev, frag, 0, len, frag 959 drivers/net/ethernet/intel/igc/igc_main.c skb_frag_t *frag; frag 976 drivers/net/ethernet/intel/igc/igc_main.c for (frag = &skb_shinfo(skb)->frags[0];; frag++) { frag 1017 drivers/net/ethernet/intel/igc/igc_main.c size = skb_frag_size(frag); frag 1020 drivers/net/ethernet/intel/igc/igc_main.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, frag 1334 drivers/net/ethernet/intel/ixgb/ixgb_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 1335 drivers/net/ethernet/intel/ixgb/ixgb_main.c len = skb_frag_size(frag); frag 1356 drivers/net/ethernet/intel/ixgb/ixgb_main.c skb_frag_dma_map(&pdev->dev, frag, offset, size, frag 1789 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[0]; frag 1798 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c va = skb_frag_address(frag); frag 1810 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c skb_frag_size_sub(frag, pull_len); frag 1811 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c skb_frag_off_add(frag, pull_len); frag 1838 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[0]; frag 1842 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c skb_frag_off(frag), frag 1843 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c skb_frag_size(frag), frag 8207 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c skb_frag_t *frag; frag 8236 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (frag = &skb_shinfo(skb)->frags[0];; frag++) { frag 8278 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c size = min_t(unsigned int, data_len, skb_frag_size(frag)); frag 8280 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c size = skb_frag_size(frag); frag 8284 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, size, frag 3951 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c skb_frag_t *frag; frag 3969 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c for (frag = &skb_shinfo(skb)->frags[0];; frag++) { frag 4010 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c size = skb_frag_size(frag); frag 4013 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c dma = skb_frag_dma_map(tx_ring->dev, frag, 0, size, frag 4137 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 4139 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c count += TXD_USE_COUNT(skb_frag_size(frag)); frag 2036 drivers/net/ethernet/jme.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2042 drivers/net/ethernet/jme.c skb_frag_page(frag), skb_frag_off(frag), frag 2043 drivers/net/ethernet/jme.c skb_frag_size(frag), hidma); frag 657 drivers/net/ethernet/marvell/mv643xx_eth.c int frag; frag 659 drivers/net/ethernet/marvell/mv643xx_eth.c for (frag = 0; frag < skb_shinfo(skb)->nr_frags; frag++) { frag 660 drivers/net/ethernet/marvell/mv643xx_eth.c const skb_frag_t *fragp = &skb_shinfo(skb)->frags[frag]; frag 898 drivers/net/ethernet/marvell/mv643xx_eth.c int frag; frag 900 drivers/net/ethernet/marvell/mv643xx_eth.c for (frag = 0; frag < nr_frags; frag++) { frag 905 drivers/net/ethernet/marvell/mv643xx_eth.c this_frag = &skb_shinfo(skb)->frags[frag]; frag 916 drivers/net/ethernet/marvell/mv643xx_eth.c if (frag == nr_frags - 1) { frag 2367 drivers/net/ethernet/marvell/mvneta.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2368 drivers/net/ethernet/marvell/mvneta.c void *addr = skb_frag_address(frag); frag 2371 drivers/net/ethernet/marvell/mvneta.c tx_desc->data_size = skb_frag_size(frag); frag 3045 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 3046 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c void *addr = skb_frag_address(frag); frag 3050 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mvpp2_txdesc_size_set(port, tx_desc, skb_frag_size(frag)); frag 3053 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c skb_frag_size(frag), frag 2786 drivers/net/ethernet/marvell/skge.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2788 drivers/net/ethernet/marvell/skge.c map = skb_frag_dma_map(&hw->pdev->dev, frag, 0, frag 2789 drivers/net/ethernet/marvell/skge.c skb_frag_size(frag), DMA_TO_DEVICE); frag 2801 drivers/net/ethernet/marvell/skge.c dma_unmap_len_set(e, maplen, skb_frag_size(frag)); frag 2803 drivers/net/ethernet/marvell/skge.c tf->control = BMU_OWN | BMU_SW | control | skb_frag_size(frag); frag 1219 drivers/net/ethernet/marvell/sky2.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1221 drivers/net/ethernet/marvell/sky2.c re->frag_addr[i] = skb_frag_dma_map(&pdev->dev, frag, 0, frag 1222 drivers/net/ethernet/marvell/sky2.c skb_frag_size(frag), frag 1935 drivers/net/ethernet/marvell/sky2.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1937 drivers/net/ethernet/marvell/sky2.c mapping = skb_frag_dma_map(&hw->pdev->dev, frag, 0, frag 1938 drivers/net/ethernet/marvell/sky2.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1954 drivers/net/ethernet/marvell/sky2.c dma_unmap_len_set(re, maplen, skb_frag_size(frag)); frag 1958 drivers/net/ethernet/marvell/sky2.c le->length = cpu_to_le16(skb_frag_size(frag)); frag 2500 drivers/net/ethernet/marvell/sky2.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2504 drivers/net/ethernet/marvell/sky2.c __skb_frag_unref(frag); frag 2509 drivers/net/ethernet/marvell/sky2.c skb_frag_size_set(frag, size); frag 962 drivers/net/ethernet/mediatek/mtk_eth_soc.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 964 drivers/net/ethernet/mediatek/mtk_eth_soc.c int frag_size = skb_frag_size(frag); frag 985 drivers/net/ethernet/mediatek/mtk_eth_soc.c mapped_addr = skb_frag_dma_map(eth->dev, frag, offset, frag 1074 drivers/net/ethernet/mediatek/mtk_eth_soc.c skb_frag_t *frag; frag 1079 drivers/net/ethernet/mediatek/mtk_eth_soc.c frag = &skb_shinfo(skb)->frags[i]; frag 1080 drivers/net/ethernet/mediatek/mtk_eth_soc.c nfrags += DIV_ROUND_UP(skb_frag_size(frag), frag 54 drivers/net/ethernet/mellanox/mlx4/en_rx.c struct mlx4_en_rx_alloc *frag, frag 68 drivers/net/ethernet/mellanox/mlx4/en_rx.c frag->page = page; frag 69 drivers/net/ethernet/mellanox/mlx4/en_rx.c frag->dma = dma; frag 70 drivers/net/ethernet/mellanox/mlx4/en_rx.c frag->page_offset = priv->rx_headroom; frag 95 drivers/net/ethernet/mellanox/mlx4/en_rx.c struct mlx4_en_rx_alloc *frag) frag 97 drivers/net/ethernet/mellanox/mlx4/en_rx.c if (frag->page) { frag 98 drivers/net/ethernet/mellanox/mlx4/en_rx.c dma_unmap_page(priv->ddev, frag->dma, frag 100 drivers/net/ethernet/mellanox/mlx4/en_rx.c __free_page(frag->page); frag 105 drivers/net/ethernet/mellanox/mlx4/en_rx.c memset(frag, 0, sizeof(*frag)); frag 787 drivers/net/ethernet/mellanox/mlx4/en_tx.c const skb_frag_t *frag = &shinfo->frags[i_frag]; frag 788 drivers/net/ethernet/mellanox/mlx4/en_tx.c byte_count = skb_frag_size(frag); frag 789 drivers/net/ethernet/mellanox/mlx4/en_tx.c dma = skb_frag_dma_map(ddev, frag, frag 135 drivers/net/ethernet/mellanox/mlx5/core/alloc.c struct mlx5_buf_list *frag = &buf->frags[i]; frag 138 drivers/net/ethernet/mellanox/mlx5/core/alloc.c frag->buf = mlx5_dma_zalloc_coherent_node(dev, frag_sz, frag 139 drivers/net/ethernet/mellanox/mlx5/core/alloc.c &frag->map, node); frag 140 drivers/net/ethernet/mellanox/mlx5/core/alloc.c if (!frag->buf) frag 142 drivers/net/ethernet/mellanox/mlx5/core/alloc.c if (frag->map & ((1 << buf->page_shift) - 1)) { frag 146 drivers/net/ethernet/mellanox/mlx5/core/alloc.c &frag->map, buf->page_shift); frag 151 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c PRINT_MASKED_VAL_L2(u8, frag, frag, p, "%d"); frag 234 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c skb_frag_t *frag = &record->frags[i]; frag 236 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c get_page(skb_frag_page(frag)); frag 237 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c remaining -= skb_frag_size(frag); frag 238 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c info->frags[i++] = *frag; frag 271 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c tx_post_resync_dump(struct mlx5e_txqsq *sq, skb_frag_t *frag, u32 tisn, bool first) frag 293 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c fsz = skb_frag_size(frag); frag 294 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c dma_addr = skb_frag_dma_map(sq->pdev, frag, 0, fsz, frag 304 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c tx_fill_wi(sq, pi, MLX5E_KTLS_DUMP_WQEBBS, fsz, skb_frag_page(frag)); frag 323 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct mlx5e_wqe_frag_info *frag = frag 327 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (f = 0; f < rq->wqe.info.num_frags; f++, frag++) { frag 334 drivers/net/ethernet/mellanox/mlx5/core/en_main.c *frag = next_frag; frag 338 drivers/net/ethernet/mellanox/mlx5/core/en_main.c prev = frag; frag 307 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_wqe_frag_info *frag) frag 311 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c if (!frag->offset) frag 317 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c err = mlx5e_page_alloc(rq, frag->di); frag 323 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_wqe_frag_info *frag, frag 326 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c if (frag->last_in_page) frag 327 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c mlx5e_page_release(rq, frag->di, recycle); frag 338 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_wqe_frag_info *frag = get_frag(rq, ix); frag 342 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c for (i = 0; i < rq->wqe.info.num_frags; i++, frag++) { frag 343 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c err = mlx5e_get_rx_frag(rq, frag); frag 347 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c wqe->data[i].addr = cpu_to_be64(frag->di->addr + frag 348 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c frag->offset + rq->buff.headroom); frag 355 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c mlx5e_put_rx_frag(rq, --frag, true); frag 1771 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c MLX5_SET(fte_match_set_lyr_2_4, headers_c, frag, 1); frag 1772 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag, 0); frag 1991 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c MLX5_SET(fte_match_set_lyr_2_4, headers_c, frag, 1); frag 1992 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag, frag 213 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 214 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c int fsz = skb_frag_size(frag); frag 216 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c dma_addr = skb_frag_dma_map(sq->pdev, frag, 0, fsz, frag 30 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c return (spec->ip_protocol || spec->frag || spec->tcp_flags || frag 883 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c spec->frag = MLX5_GET(fte_match_set_lyr_2_4, mask, frag); frag 1220 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c fragmented, mask, frag); frag 1247 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, fragmented, spec, frag); frag 1282 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c DR_STE_SET_MASK_V(eth_l2_src, bit_mask, ip_fragmented, mask, frag); frag 1334 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c DR_STE_SET_TAG(eth_l2_src, tag, ip_fragmented, spec, frag); frag 1472 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c DR_STE_SET_MASK_V(eth_l2_tnl, bit_mask, ip_fragmented, mask, frag); frag 1502 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c DR_STE_SET_TAG(eth_l2_tnl, tag, ip_fragmented, spec, frag); frag 1591 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c DR_STE_SET_MASK_V(eth_l4, bit_mask, fragmented, mask, frag); frag 1615 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c DR_STE_SET_TAG(eth_l4, tag, fragmented, spec, frag); frag 376 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h u32 frag:1; /* Packet is an IP fragment */ frag 1603 drivers/net/ethernet/mellanox/mlxsw/pci.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1606 drivers/net/ethernet/mellanox/mlxsw/pci.c skb_frag_address(frag), frag 1607 drivers/net/ethernet/mellanox/mlxsw/pci.c skb_frag_size(frag), frag 4655 drivers/net/ethernet/micrel/ksz884x.c int frag; frag 4666 drivers/net/ethernet/micrel/ksz884x.c frag = 0; frag 4668 drivers/net/ethernet/micrel/ksz884x.c this_frag = &skb_shinfo(skb)->frags[frag]; frag 4687 drivers/net/ethernet/micrel/ksz884x.c frag++; frag 4688 drivers/net/ethernet/micrel/ksz884x.c if (frag == last_frag) frag 1610 drivers/net/ethernet/microchip/lan743x_main.c const skb_frag_t *frag = &(skb_shinfo(skb)->frags[j]); frag 1612 drivers/net/ethernet/microchip/lan743x_main.c if (lan743x_tx_frame_add_fragment(tx, frag, frame_length)) { frag 1289 drivers/net/ethernet/myricom/myri10ge/myri10ge.c skb_frag_t *frag; frag 1308 drivers/net/ethernet/myricom/myri10ge/myri10ge.c frag = skb_shinfo(skb)->frags; frag 1309 drivers/net/ethernet/myricom/myri10ge/myri10ge.c skb_frag_off_add(frag, VLAN_HLEN); frag 1310 drivers/net/ethernet/myricom/myri10ge/myri10ge.c skb_frag_size_sub(frag, VLAN_HLEN); frag 2631 drivers/net/ethernet/myricom/myri10ge/myri10ge.c skb_frag_t *frag; frag 2833 drivers/net/ethernet/myricom/myri10ge/myri10ge.c frag = &skb_shinfo(skb)->frags[frag_idx]; frag 2835 drivers/net/ethernet/myricom/myri10ge/myri10ge.c len = skb_frag_size(frag); frag 2836 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus = skb_frag_dma_map(&mgp->pdev->dev, frag, 0, len, frag 1053 drivers/net/ethernet/natsemi/ns83820.c skb_frag_t *frag; frag 1098 drivers/net/ethernet/natsemi/ns83820.c frag = skb_shinfo(skb)->frags; frag 1100 drivers/net/ethernet/natsemi/ns83820.c frag = NULL; frag 1147 drivers/net/ethernet/natsemi/ns83820.c buf = skb_frag_dma_map(&dev->pci_dev->dev, frag, 0, frag 1148 drivers/net/ethernet/natsemi/ns83820.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1150 drivers/net/ethernet/natsemi/ns83820.c (long long)buf, (long) page_to_pfn(frag->page), frag 1151 drivers/net/ethernet/natsemi/ns83820.c frag->page_offset); frag 1152 drivers/net/ethernet/natsemi/ns83820.c len = skb_frag_size(frag); frag 1153 drivers/net/ethernet/natsemi/ns83820.c frag++; frag 2335 drivers/net/ethernet/neterion/s2io.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[j]; frag 2340 drivers/net/ethernet/neterion/s2io.c skb_frag_size(frag), PCI_DMA_TODEVICE); frag 4131 drivers/net/ethernet/neterion/s2io.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 4133 drivers/net/ethernet/neterion/s2io.c if (!skb_frag_size(frag)) frag 4137 drivers/net/ethernet/neterion/s2io.c frag, 0, frag 4138 drivers/net/ethernet/neterion/s2io.c skb_frag_size(frag), frag 4140 drivers/net/ethernet/neterion/s2io.c txdp->Control_1 = TXD_BUFFER0_SIZE(skb_frag_size(frag)); frag 559 drivers/net/ethernet/neterion/vxge/vxge-main.c skb_frag_t *frag; frag 566 drivers/net/ethernet/neterion/vxge/vxge-main.c frag = &skb_shinfo(skb)->frags[0]; frag 594 drivers/net/ethernet/neterion/vxge/vxge-main.c skb_frag_size(frag), PCI_DMA_TODEVICE); frag 595 drivers/net/ethernet/neterion/vxge/vxge-main.c frag += 1; frag 811 drivers/net/ethernet/neterion/vxge/vxge-main.c skb_frag_t *frag; frag 923 drivers/net/ethernet/neterion/vxge/vxge-main.c frag = &skb_shinfo(skb)->frags[0]; frag 926 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!skb_frag_size(frag)) frag 929 drivers/net/ethernet/neterion/vxge/vxge-main.c dma_pointer = (u64)skb_frag_dma_map(&fifo->pdev->dev, frag, frag 930 drivers/net/ethernet/neterion/vxge/vxge-main.c 0, skb_frag_size(frag), frag 942 drivers/net/ethernet/neterion/vxge/vxge-main.c skb_frag_size(frag)); frag 943 drivers/net/ethernet/neterion/vxge/vxge-main.c frag += 1; frag 978 drivers/net/ethernet/neterion/vxge/vxge-main.c frag = &skb_shinfo(skb)->frags[0]; frag 985 drivers/net/ethernet/neterion/vxge/vxge-main.c skb_frag_size(frag), PCI_DMA_TODEVICE); frag 986 drivers/net/ethernet/neterion/vxge/vxge-main.c frag += 1; frag 1035 drivers/net/ethernet/neterion/vxge/vxge-main.c skb_frag_t *frag; frag 1048 drivers/net/ethernet/neterion/vxge/vxge-main.c frag = &skb_shinfo(skb)->frags[0]; frag 1056 drivers/net/ethernet/neterion/vxge/vxge-main.c skb_frag_size(frag), PCI_DMA_TODEVICE); frag 1057 drivers/net/ethernet/neterion/vxge/vxge-main.c frag += 1; frag 183 drivers/net/ethernet/netronome/nfp/nfp_net.h void *frag; frag 312 drivers/net/ethernet/netronome/nfp/nfp_net.h void *frag; frag 65 drivers/net/ethernet/netronome/nfp/nfp_net_common.c static dma_addr_t nfp_net_dma_map_rx(struct nfp_net_dp *dp, void *frag) frag 67 drivers/net/ethernet/netronome/nfp/nfp_net_common.c return dma_map_single_attrs(dp->dev, frag + NFP_NET_RX_BUF_HEADROOM, frag 978 drivers/net/ethernet/netronome/nfp/nfp_net_common.c const skb_frag_t *frag; frag 1063 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = &skb_shinfo(skb)->frags[f]; frag 1064 drivers/net/ethernet/netronome/nfp/nfp_net_common.c fsize = skb_frag_size(frag); frag 1066 drivers/net/ethernet/netronome/nfp/nfp_net_common.c dma_addr = skb_frag_dma_map(dp->dev, frag, 0, frag 1105 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = &skb_shinfo(skb)->frags[f]; frag 1107 drivers/net/ethernet/netronome/nfp/nfp_net_common.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1158 drivers/net/ethernet/netronome/nfp/nfp_net_common.c const skb_frag_t *frag; frag 1183 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = &skb_shinfo(skb)->frags[fidx]; frag 1185 drivers/net/ethernet/netronome/nfp/nfp_net_common.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1273 drivers/net/ethernet/netronome/nfp/nfp_net_common.c const skb_frag_t *frag; frag 1293 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = &skb_shinfo(skb)->frags[tx_buf->fidx]; frag 1295 drivers/net/ethernet/netronome/nfp/nfp_net_common.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1358 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_free_frag(void *frag, bool xdp) frag 1361 drivers/net/ethernet/netronome/nfp/nfp_net_common.c skb_free_frag(frag); frag 1363 drivers/net/ethernet/netronome/nfp/nfp_net_common.c __free_page(virt_to_page(frag)); frag 1377 drivers/net/ethernet/netronome/nfp/nfp_net_common.c void *frag; frag 1380 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = netdev_alloc_frag(dp->fl_bufsz); frag 1385 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = page ? page_address(page) : NULL; frag 1387 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (!frag) { frag 1392 drivers/net/ethernet/netronome/nfp/nfp_net_common.c *dma_addr = nfp_net_dma_map_rx(dp, frag); frag 1394 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_free_frag(frag, dp->xdp_prog); frag 1399 drivers/net/ethernet/netronome/nfp/nfp_net_common.c return frag; frag 1404 drivers/net/ethernet/netronome/nfp/nfp_net_common.c void *frag; frag 1407 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = napi_alloc_frag(dp->fl_bufsz); frag 1408 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (unlikely(!frag)) frag 1416 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = page_address(page); frag 1419 drivers/net/ethernet/netronome/nfp/nfp_net_common.c *dma_addr = nfp_net_dma_map_rx(dp, frag); frag 1421 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_free_frag(frag, dp->xdp_prog); frag 1426 drivers/net/ethernet/netronome/nfp/nfp_net_common.c return frag; frag 1438 drivers/net/ethernet/netronome/nfp/nfp_net_common.c void *frag, dma_addr_t dma_addr) frag 1447 drivers/net/ethernet/netronome/nfp/nfp_net_common.c rx_ring->rxbufs[wr_idx].frag = frag; frag 1486 drivers/net/ethernet/netronome/nfp/nfp_net_common.c rx_ring->rxbufs[wr_idx].frag = rx_ring->rxbufs[last_idx].frag; frag 1488 drivers/net/ethernet/netronome/nfp/nfp_net_common.c rx_ring->rxbufs[last_idx].frag = NULL; frag 1515 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (!rx_ring->rxbufs[i].frag) frag 1519 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_free_frag(rx_ring->rxbufs[i].frag, dp->xdp_prog); frag 1521 drivers/net/ethernet/netronome/nfp/nfp_net_common.c rx_ring->rxbufs[i].frag = NULL; frag 1540 drivers/net/ethernet/netronome/nfp/nfp_net_common.c rxbufs[i].frag = nfp_net_rx_alloc_one(dp, &rxbufs[i].dma_addr); frag 1541 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (!rxbufs[i].frag) { frag 1562 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_rx_give_one(dp, rx_ring, rx_ring->rxbufs[i].frag, frag 1728 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (skb && rxbuf && skb->head == rxbuf->frag) frag 1729 drivers/net/ethernet/netronome/nfp/nfp_net_common.c page_ref_inc(virt_to_head_page(rxbuf->frag)); frag 1731 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_rx_give_one(dp, rx_ring, rxbuf->frag, rxbuf->dma_addr); frag 1764 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_rx_give_one(dp, rx_ring, txbuf->frag, txbuf->dma_addr); frag 1766 drivers/net/ethernet/netronome/nfp/nfp_net_common.c txbuf->frag = rxbuf->frag; frag 1891 drivers/net/ethernet/netronome/nfp/nfp_net_common.c rxbuf->frag + meta_off, rxd); frag 1896 drivers/net/ethernet/netronome/nfp/nfp_net_common.c rxbuf->frag + meta_off, frag 1898 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (unlikely(end != rxbuf->frag + pkt_off)) { frag 1907 drivers/net/ethernet/netronome/nfp/nfp_net_common.c void *orig_data = rxbuf->frag + pkt_off; frag 1911 drivers/net/ethernet/netronome/nfp/nfp_net_common.c xdp.data_hard_start = rxbuf->frag + NFP_NET_RX_BUF_HEADROOM; frag 1942 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_rx_give_one(dp, rx_ring, rxbuf->frag, frag 1953 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_app_ctrl_rx_raw(nn->app, rxbuf->frag + pkt_off, frag 1955 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nfp_net_rx_give_one(dp, rx_ring, rxbuf->frag, frag 1974 drivers/net/ethernet/netronome/nfp/nfp_net_common.c skb = build_skb(rxbuf->frag, true_bufsz); frag 2241 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (unlikely(!nfp_ctrl_meta_ok(nn, rxbuf->frag + meta_off, meta_len))) { frag 2248 drivers/net/ethernet/netronome/nfp/nfp_net_common.c skb = build_skb(rxbuf->frag, dp->fl_bufsz); frag 2415 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (!tx_ring->txbufs[i].frag) frag 2419 drivers/net/ethernet/netronome/nfp/nfp_net_common.c __free_page(virt_to_page(tx_ring->txbufs[i].frag)); frag 2434 drivers/net/ethernet/netronome/nfp/nfp_net_common.c txbufs[i].frag = nfp_net_rx_alloc_one(dp, &txbufs[i].dma_addr); frag 2435 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (!txbufs[i].frag) { frag 18 drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c void *frag; frag 45 drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c frag = READ_ONCE(rx_ring->rxbufs[i].frag); frag 46 drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c if (frag) frag 47 drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c seq_printf(file, " frag=%p", frag); frag 119 drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c READ_ONCE(tx_ring->txbufs[i].frag)); frag 511 drivers/net/ethernet/ni/nixge.c skb_frag_t *frag; frag 543 drivers/net/ethernet/ni/nixge.c frag = &skb_shinfo(skb)->frags[ii]; frag 545 drivers/net/ethernet/ni/nixge.c cur_phys = skb_frag_dma_map(ndev->dev.parent, frag, 0, frag 546 drivers/net/ethernet/ni/nixge.c skb_frag_size(frag), frag 552 drivers/net/ethernet/ni/nixge.c cur_p->cntrl = skb_frag_size(frag); frag 556 drivers/net/ethernet/ni/nixge.c tx_skb->size = skb_frag_size(frag); frag 2280 drivers/net/ethernet/nvidia/forcedeth.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2281 drivers/net/ethernet/nvidia/forcedeth.c u32 frag_size = skb_frag_size(frag); frag 2291 drivers/net/ethernet/nvidia/forcedeth.c frag, offset, frag 2438 drivers/net/ethernet/nvidia/forcedeth.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2439 drivers/net/ethernet/nvidia/forcedeth.c u32 frag_size = skb_frag_size(frag); frag 2448 drivers/net/ethernet/nvidia/forcedeth.c frag, offset, frag 253 drivers/net/ethernet/pasemi/pasemi_mac.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 255 drivers/net/ethernet/pasemi/pasemi_mac.c pci_unmap_page(pdev, dmas[f+1], skb_frag_size(frag), PCI_DMA_TODEVICE); frag 1450 drivers/net/ethernet/pasemi/pasemi_mac.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1452 drivers/net/ethernet/pasemi/pasemi_mac.c map[i + 1] = skb_frag_dma_map(&mac->dma_pdev->dev, frag, 0, frag 1453 drivers/net/ethernet/pasemi/pasemi_mac.c skb_frag_size(frag), DMA_TO_DEVICE); frag 1454 drivers/net/ethernet/pasemi/pasemi_mac.c map_size[i+1] = skb_frag_size(frag); frag 353 drivers/net/ethernet/pensando/ionic/ionic_txrx.c static dma_addr_t ionic_tx_map_frag(struct ionic_queue *q, const skb_frag_t *frag, frag 360 drivers/net/ethernet/pensando/ionic/ionic_txrx.c dma_addr = skb_frag_dma_map(dev, frag, offset, len, DMA_TO_DEVICE); frag 565 drivers/net/ethernet/pensando/ionic/ionic_txrx.c skb_frag_t *frag; frag 638 drivers/net/ethernet/pensando/ionic/ionic_txrx.c for (frag = skb_shinfo(skb)->frags; len_left; frag++) { frag 640 drivers/net/ethernet/pensando/ionic/ionic_txrx.c left = skb_frag_size(frag); frag 650 drivers/net/ethernet/pensando/ionic/ionic_txrx.c cpu_to_le64(ionic_tx_map_frag(q, frag, frag 674 drivers/net/ethernet/pensando/ionic/ionic_txrx.c desc_addr = ionic_tx_map_frag(q, frag, frag 791 drivers/net/ethernet/pensando/ionic/ionic_txrx.c skb_frag_t *frag; frag 794 drivers/net/ethernet/pensando/ionic/ionic_txrx.c for (frag = skb_shinfo(skb)->frags; len_left; frag++, elem++) { frag 795 drivers/net/ethernet/pensando/ionic/ionic_txrx.c len = skb_frag_size(frag); frag 797 drivers/net/ethernet/pensando/ionic/ionic_txrx.c dma_addr = ionic_tx_map_frag(q, frag, 0, len); frag 1743 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c struct netxen_skb_frag *frag; frag 1756 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c frag = &buffer->frag_array[0]; frag 1757 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c pci_unmap_single(pdev, frag->dma, frag->length, frag 1759 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c frag->dma = 0ULL; frag 1761 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c frag++; /* Get the next frag */ frag 1762 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c pci_unmap_page(pdev, frag->dma, frag->length, frag 1764 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c frag->dma = 0ULL; frag 1983 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c skb_frag_t *frag; frag 1999 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c frag = &skb_shinfo(skb)->frags[i]; frag 2002 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c map = skb_frag_dma_map(&pdev->dev, frag, 0, skb_frag_size(frag), frag 2008 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c nf->length = skb_frag_size(frag); frag 2046 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c skb_frag_t *frag; frag 2060 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c frag = &skb_shinfo(skb)->frags[i]; frag 2061 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c delta += skb_frag_size(frag); frag 2516 drivers/net/ethernet/qlogic/qed/qed_ll2.c const skb_frag_t *frag; frag 2578 drivers/net/ethernet/qlogic/qed/qed_ll2.c frag = &skb_shinfo(skb)->frags[i]; frag 2580 drivers/net/ethernet/qlogic/qed/qed_ll2.c mapping = skb_frag_dma_map(&cdev->pdev->dev, frag, 0, frag 2581 drivers/net/ethernet/qlogic/qed/qed_ll2.c skb_frag_size(frag), DMA_TO_DEVICE); frag 2593 drivers/net/ethernet/qlogic/qed/qed_ll2.c skb_frag_size(frag)); frag 268 drivers/net/ethernet/qlogic/qede/qede_fp.c skb_frag_t *frag, struct eth_tx_bd *bd) frag 273 drivers/net/ethernet/qlogic/qede/qede_fp.c mapping = skb_frag_dma_map(txq->dev, frag, 0, frag 274 drivers/net/ethernet/qlogic/qede/qede_fp.c skb_frag_size(frag), DMA_TO_DEVICE); frag 279 drivers/net/ethernet/qlogic/qede/qede_fp.c BD_SET_UNMAP_ADDR_LEN(bd, mapping, skb_frag_size(frag)); frag 2350 drivers/net/ethernet/qlogic/qla3xxx.c skb_frag_t *frag = &skb_shinfo(skb)->frags[completed_segs]; frag 2385 drivers/net/ethernet/qlogic/qla3xxx.c map = skb_frag_dma_map(&qdev->pdev->dev, frag, 0, skb_frag_size(frag), frag 2398 drivers/net/ethernet/qlogic/qla3xxx.c oal_entry->len = cpu_to_le32(skb_frag_size(frag)); frag 2400 drivers/net/ethernet/qlogic/qla3xxx.c dma_unmap_len_set(&tx_cb->map[seg], maplen, skb_frag_size(frag)); frag 584 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c skb_frag_t *frag; frag 600 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c frag = &skb_shinfo(skb)->frags[i]; frag 602 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c map = skb_frag_dma_map(&pdev->dev, frag, 0, skb_frag_size(frag), frag 608 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c nf->length = skb_frag_size(frag); frag 895 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_skb_frag *frag; frag 906 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c frag = &buffer->frag_array[0]; frag 907 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c pci_unmap_single(pdev, frag->dma, frag->length, frag 909 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c frag->dma = 0ULL; frag 911 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c frag++; frag 912 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c pci_unmap_page(pdev, frag->dma, frag->length, frag 914 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c frag->dma = 0ULL; frag 1388 drivers/net/ethernet/qualcomm/emac/emac-mac.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1391 drivers/net/ethernet/qualcomm/emac/emac-mac.c tpbuf->length = skb_frag_size(frag); frag 1393 drivers/net/ethernet/qualcomm/emac/emac-mac.c frag, 0, tpbuf->length, frag 718 drivers/net/ethernet/realtek/8139cp.c int frag, index; frag 721 drivers/net/ethernet/realtek/8139cp.c for (frag = 0; frag+first < entry_last; frag++) { frag 722 drivers/net/ethernet/realtek/8139cp.c index = first+frag; frag 725 drivers/net/ethernet/realtek/8139cp.c this_frag = &skb_shinfo(skb)->frags[frag]; frag 805 drivers/net/ethernet/realtek/8139cp.c int frag, first_entry = entry; frag 819 drivers/net/ethernet/realtek/8139cp.c for (frag = 0; frag < skb_shinfo(skb)->nr_frags; frag++) { frag 820 drivers/net/ethernet/realtek/8139cp.c const skb_frag_t *this_frag = &skb_shinfo(skb)->frags[frag]; frag 839 drivers/net/ethernet/realtek/8139cp.c if (frag == skb_shinfo(skb)->nr_frags - 1) frag 5706 drivers/net/ethernet/realtek/r8169_main.c const skb_frag_t *frag = info->frags + cur_frag; frag 5714 drivers/net/ethernet/realtek/r8169_main.c len = skb_frag_size(frag); frag 5715 drivers/net/ethernet/realtek/r8169_main.c addr = skb_frag_address(frag); frag 1872 drivers/net/ethernet/rocker/rocker_main.c struct rocker_tlv *frag; frag 1880 drivers/net/ethernet/rocker/rocker_main.c frag = rocker_tlv_nest_start(desc_info, ROCKER_TLV_TX_FRAG); frag 1881 drivers/net/ethernet/rocker/rocker_main.c if (!frag) frag 1889 drivers/net/ethernet/rocker/rocker_main.c rocker_tlv_nest_end(desc_info, frag); frag 1893 drivers/net/ethernet/rocker/rocker_main.c rocker_tlv_nest_cancel(desc_info, frag); frag 1931 drivers/net/ethernet/rocker/rocker_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1934 drivers/net/ethernet/rocker/rocker_main.c skb_frag_address(frag), frag 1935 drivers/net/ethernet/rocker/rocker_main.c skb_frag_size(frag)); frag 1350 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[frag_num]; frag 1351 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int len = skb_frag_size(frag); frag 1355 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c tx_desc->tdes01 = skb_frag_dma_map(priv->device, frag, 0, len, frag 209 drivers/net/ethernet/sfc/tx_tso.c skb_frag_t *frag) frag 211 drivers/net/ethernet/sfc/tx_tso.c st->unmap_addr = skb_frag_dma_map(&efx->pci_dev->dev, frag, 0, frag 212 drivers/net/ethernet/sfc/tx_tso.c skb_frag_size(frag), DMA_TO_DEVICE); frag 214 drivers/net/ethernet/sfc/tx_tso.c st->unmap_len = skb_frag_size(frag); frag 215 drivers/net/ethernet/sfc/tx_tso.c st->in_len = skb_frag_size(frag); frag 415 drivers/net/ethernet/stmicro/stmmac/dwmac5.c struct stmmac_tc_entry *entry, *frag; frag 443 drivers/net/ethernet/stmicro/stmmac/dwmac5.c frag = entry->frag_ptr; frag 446 drivers/net/ethernet/stmicro/stmmac/dwmac5.c if (frag) { frag 460 drivers/net/ethernet/stmicro/stmmac/dwmac5.c if (frag && !frag->in_hw) { frag 461 drivers/net/ethernet/stmicro/stmmac/dwmac5.c ret = dwmac5_rxp_update_single_entry(ioaddr, frag, nve); frag 464 drivers/net/ethernet/stmicro/stmmac/dwmac5.c frag->table_pos = nve++; frag 465 drivers/net/ethernet/stmicro/stmmac/dwmac5.c frag->in_hw = true; frag 981 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c struct stmmac_tc_entry *entry, *frag; frag 1009 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c frag = entry->frag_ptr; frag 1012 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (frag) { frag 1026 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (frag && !frag->in_hw) { frag 1027 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c ret = dwxgmac3_rxp_update_single_entry(ioaddr, frag, nve); frag 1030 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c frag->table_pos = nve++; frag 1031 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c frag->in_hw = true; frag 3006 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 3008 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c des = skb_frag_dma_map(priv->device, frag, 0, frag 3009 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c skb_frag_size(frag), frag 3014 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_tso_allocator(priv, des, skb_frag_size(frag), frag 3018 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c tx_q->tx_skbuff_dma[tx_q->cur_tx].len = skb_frag_size(frag); frag 3196 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 3197 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c int len = skb_frag_size(frag); frag 3208 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c des = skb_frag_dma_map(priv->device, frag, 0, len, frag 58 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c struct stmmac_tc_entry *frag, frag 69 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c if (frag) frag 70 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c action_entry = frag; frag 94 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c struct stmmac_tc_entry *entry, *frag = NULL; frag 129 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag = tc_find_entry(priv, cls, true); frag 130 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c if (!frag) { frag 135 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c entry->frag_ptr = frag; frag 143 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag->val.match_en = (mask >> (rem * 8)) & frag 145 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag->val.match_data = (data >> (rem * 8)) & frag 147 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag->val.frame_offset = real_off + 1; frag 148 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag->prio = prio; frag 149 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag->is_frag = true; frag 158 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c ret = tc_fill_actions(entry, frag, cls); frag 165 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c if (frag) frag 166 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c frag->in_use = false; frag 1860 drivers/net/ethernet/sun/cassini.c int frag; frag 1880 drivers/net/ethernet/sun/cassini.c for (frag = 0; frag <= skb_shinfo(skb)->nr_frags; frag++) { frag 1994 drivers/net/ethernet/sun/cassini.c skb_frag_t *frag = skb_shinfo(skb)->frags; frag 2035 drivers/net/ethernet/sun/cassini.c __skb_frag_set_page(frag, page->buffer); frag 2036 drivers/net/ethernet/sun/cassini.c __skb_frag_ref(frag); frag 2037 drivers/net/ethernet/sun/cassini.c skb_frag_off_set(frag, off); frag 2038 drivers/net/ethernet/sun/cassini.c skb_frag_size_set(frag, hlen - swivel); frag 2057 drivers/net/ethernet/sun/cassini.c frag++; frag 2059 drivers/net/ethernet/sun/cassini.c __skb_frag_set_page(frag, page->buffer); frag 2060 drivers/net/ethernet/sun/cassini.c __skb_frag_ref(frag); frag 2061 drivers/net/ethernet/sun/cassini.c skb_frag_off_set(frag, 0); frag 2062 drivers/net/ethernet/sun/cassini.c skb_frag_size_set(frag, hlen); frag 2757 drivers/net/ethernet/sun/cassini.c int entry, nr_frags, frag, tabort, tentry; frag 2812 drivers/net/ethernet/sun/cassini.c for (frag = 0; frag < nr_frags; frag++) { frag 2813 drivers/net/ethernet/sun/cassini.c const skb_frag_t *fragp = &skb_shinfo(skb)->frags[frag]; frag 2838 drivers/net/ethernet/sun/cassini.c (frag + 1 == nr_frags)); frag 3888 drivers/net/ethernet/sun/cassini.c int frag; frag 3896 drivers/net/ethernet/sun/cassini.c for (frag = 0; frag <= skb_shinfo(skb)->nr_frags; frag++) { frag 3908 drivers/net/ethernet/sun/cassini.c if (frag != skb_shinfo(skb)->nr_frags) { frag 6694 drivers/net/ethernet/sun/niu.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 6696 drivers/net/ethernet/sun/niu.c len = skb_frag_size(frag); frag 6697 drivers/net/ethernet/sun/niu.c mapping = np->ops->map_page(np->device, skb_frag_page(frag), frag 6698 drivers/net/ethernet/sun/niu.c skb_frag_off(frag), len, frag 654 drivers/net/ethernet/sun/sungem.c int frag; frag 679 drivers/net/ethernet/sun/sungem.c for (frag = 0; frag <= skb_shinfo(skb)->nr_frags; frag++) { frag 1051 drivers/net/ethernet/sun/sungem.c int frag, first_entry = entry; frag 1066 drivers/net/ethernet/sun/sungem.c for (frag = 0; frag < skb_shinfo(skb)->nr_frags; frag++) { frag 1067 drivers/net/ethernet/sun/sungem.c const skb_frag_t *this_frag = &skb_shinfo(skb)->frags[frag]; frag 1076 drivers/net/ethernet/sun/sungem.c if (frag == skb_shinfo(skb)->nr_frags - 1) frag 1603 drivers/net/ethernet/sun/sungem.c int frag; frag 1608 drivers/net/ethernet/sun/sungem.c for (frag = 0; frag <= skb_shinfo(skb)->nr_frags; frag++) { frag 1617 drivers/net/ethernet/sun/sungem.c if (frag != skb_shinfo(skb)->nr_frags) frag 1222 drivers/net/ethernet/sun/sunhme.c int frag; frag 1226 drivers/net/ethernet/sun/sunhme.c for (frag = 0; frag <= skb_shinfo(skb)->nr_frags; frag++) { frag 1229 drivers/net/ethernet/sun/sunhme.c if (!frag) frag 1240 drivers/net/ethernet/sun/sunhme.c if (frag != skb_shinfo(skb)->nr_frags) frag 1931 drivers/net/ethernet/sun/sunhme.c int frag; frag 1951 drivers/net/ethernet/sun/sunhme.c for (frag = 0; frag <= skb_shinfo(skb)->nr_frags; frag++) { frag 1956 drivers/net/ethernet/sun/sunhme.c if (!frag) frag 2331 drivers/net/ethernet/sun/sunhme.c int frag, first_entry = entry; frag 2343 drivers/net/ethernet/sun/sunhme.c for (frag = 0; frag < skb_shinfo(skb)->nr_frags; frag++) { frag 2344 drivers/net/ethernet/sun/sunhme.c const skb_frag_t *this_frag = &skb_shinfo(skb)->frags[frag]; frag 2356 drivers/net/ethernet/sun/sunhme.c if (frag == skb_shinfo(skb)->nr_frags - 1) frag 506 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c skb_frag_t *frag; frag 583 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c frag = &skb_shinfo(skb)->frags[i]; frag 586 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c for (datalen = skb_frag_size(frag); datalen; ) { frag 590 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c skb_dma = skb_frag_dma_map(pdata->dev, frag, offset, frag 119 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c skb_frag_t *frag; frag 181 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c frag = &skb_shinfo(skb)->frags[i]; frag 182 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (len = skb_frag_size(frag); len; ) { frag 1504 drivers/net/ethernet/tehuti/tehuti.c const skb_frag_t *frag; frag 1506 drivers/net/ethernet/tehuti/tehuti.c frag = &skb_shinfo(skb)->frags[i]; frag 1507 drivers/net/ethernet/tehuti/tehuti.c db->wptr->len = skb_frag_size(frag); frag 1508 drivers/net/ethernet/tehuti/tehuti.c db->wptr->addr.dma = skb_frag_dma_map(&priv->pdev->dev, frag, frag 1509 drivers/net/ethernet/tehuti/tehuti.c 0, skb_frag_size(frag), frag 1117 drivers/net/ethernet/ti/netcp_core.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1118 drivers/net/ethernet/ti/netcp_core.c struct page *page = skb_frag_page(frag); frag 1119 drivers/net/ethernet/ti/netcp_core.c u32 page_offset = skb_frag_off(frag); frag 1120 drivers/net/ethernet/ti/netcp_core.c u32 buf_len = skb_frag_size(frag); frag 703 drivers/net/ethernet/tundra/tsi108_eth.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; frag 706 drivers/net/ethernet/tundra/tsi108_eth.c skb_frag_dma_map(&data->pdev->dev, frag, frag 707 drivers/net/ethernet/tundra/tsi108_eth.c 0, skb_frag_size(frag), frag 709 drivers/net/ethernet/tundra/tsi108_eth.c data->txring[tx].len = skb_frag_size(frag); frag 2561 drivers/net/ethernet/via/via-velocity.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2564 drivers/net/ethernet/via/via-velocity.c frag, 0, frag 2565 drivers/net/ethernet/via/via-velocity.c skb_frag_size(frag), frag 2570 drivers/net/ethernet/via/via-velocity.c td_ptr->td_buf[i + 1].size = cpu_to_le16(skb_frag_size(frag)); frag 832 drivers/net/ethernet/xilinx/ll_temac_main.c skb_frag_t *frag; frag 835 drivers/net/ethernet/xilinx/ll_temac_main.c frag = &skb_shinfo(skb)->frags[0]; frag 884 drivers/net/ethernet/xilinx/ll_temac_main.c skb_frag_address(frag), frag 885 drivers/net/ethernet/xilinx/ll_temac_main.c skb_frag_size(frag), frag 892 drivers/net/ethernet/xilinx/ll_temac_main.c --frag; frag 895 drivers/net/ethernet/xilinx/ll_temac_main.c skb_frag_size(frag), frag 909 drivers/net/ethernet/xilinx/ll_temac_main.c cur_p->len = cpu_to_be32(skb_frag_size(frag)); frag 911 drivers/net/ethernet/xilinx/ll_temac_main.c frag++; frag 619 drivers/net/ethernet/xilinx/xilinx_axienet_main.c skb_frag_t *frag; frag 666 drivers/net/ethernet/xilinx/xilinx_axienet_main.c frag = &skb_shinfo(skb)->frags[ii]; frag 668 drivers/net/ethernet/xilinx/xilinx_axienet_main.c skb_frag_address(frag), frag 669 drivers/net/ethernet/xilinx/xilinx_axienet_main.c skb_frag_size(frag), frag 671 drivers/net/ethernet/xilinx/xilinx_axienet_main.c cur_p->cntrl = skb_frag_size(frag); frag 435 drivers/net/hyperv/netvsc_drv.c skb_frag_t *frag = skb_shinfo(skb)->frags + i; frag 437 drivers/net/hyperv/netvsc_drv.c slots_used += fill_pg_buf(skb_frag_page(frag), frag 438 drivers/net/hyperv/netvsc_drv.c skb_frag_off(frag), frag 439 drivers/net/hyperv/netvsc_drv.c skb_frag_size(frag), &pb[slots_used]); frag 450 drivers/net/hyperv/netvsc_drv.c skb_frag_t *frag = skb_shinfo(skb)->frags + i; frag 451 drivers/net/hyperv/netvsc_drv.c unsigned long size = skb_frag_size(frag); frag 452 drivers/net/hyperv/netvsc_drv.c unsigned long offset = skb_frag_off(frag); frag 837 drivers/net/netconsole.c int frag, left; frag 859 drivers/net/netconsole.c frag = min(left, MAX_PRINT_CHUNK); frag 860 drivers/net/netconsole.c netpoll_send_udp(&nt->np, tmp, frag); frag 861 drivers/net/netconsole.c tmp += frag; frag 862 drivers/net/netconsole.c left -= frag; frag 1688 drivers/net/ppp/ppp_generic.c struct sk_buff *frag; frag 1856 drivers/net/ppp/ppp_generic.c frag = alloc_skb(flen + hdrlen + (flen == 0), GFP_ATOMIC); frag 1857 drivers/net/ppp/ppp_generic.c if (!frag) frag 1859 drivers/net/ppp/ppp_generic.c q = skb_put(frag, flen + hdrlen); frag 1878 drivers/net/ppp/ppp_generic.c !chan->ops->start_xmit(chan, frag)) frag 1879 drivers/net/ppp/ppp_generic.c skb_queue_tail(&pch->file.xq, frag); frag 1005 drivers/net/thunderbolt.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[frag_num]; frag 1007 drivers/net/thunderbolt.c *len = skb_frag_size(frag); frag 1008 drivers/net/thunderbolt.c return kmap_atomic(skb_frag_page(frag)) + skb_frag_off(frag); frag 1021 drivers/net/thunderbolt.c unsigned int frag = 0; frag 1071 drivers/net/thunderbolt.c if (frag < skb_shinfo(skb)->nr_frags) { frag 1073 drivers/net/thunderbolt.c src = tbnet_kmap_frag(skb, frag++, &len); frag 1108 drivers/net/thunderbolt.c if (frag < skb_shinfo(skb)->nr_frags) { frag 1109 drivers/net/thunderbolt.c src = tbnet_kmap_frag(skb, frag++, &len); frag 1492 drivers/net/tun.c void *frag; frag 1498 drivers/net/tun.c frag = netdev_alloc_frag(fragsz); frag 1499 drivers/net/tun.c if (!frag) { frag 1503 drivers/net/tun.c page = virt_to_head_page(frag); frag 1505 drivers/net/tun.c frag - page_address(page), fragsz); frag 660 drivers/net/vmxnet3/vmxnet3_drv.c skb_frag_t *frag = skb_shinfo(skb)->frags + skb_shinfo(skb)->nr_frags; frag 664 drivers/net/vmxnet3/vmxnet3_drv.c __skb_frag_set_page(frag, rbi->page); frag 665 drivers/net/vmxnet3/vmxnet3_drv.c skb_frag_off_set(frag, 0); frag 666 drivers/net/vmxnet3/vmxnet3_drv.c skb_frag_size_set(frag, rcd->len); frag 757 drivers/net/vmxnet3/vmxnet3_drv.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 761 drivers/net/vmxnet3/vmxnet3_drv.c len = skb_frag_size(frag); frag 772 drivers/net/vmxnet3/vmxnet3_drv.c tbi->dma_addr = skb_frag_dma_map(&adapter->pdev->dev, frag, frag 958 drivers/net/vmxnet3/vmxnet3_drv.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 960 drivers/net/vmxnet3/vmxnet3_drv.c count += VMXNET3_TXD_NEEDED(skb_frag_size(frag)); frag 1708 drivers/net/wireless/admtek/adm8211.c txhdr->frag = cpu_to_le16(0x0FFF); frag 475 drivers/net/wireless/admtek/adm8211.h __le16 frag; frag 2447 drivers/net/wireless/ath/ath10k/htt_rx.c u32 tid, frag, seq, rx_desc_info; frag 2501 drivers/net/wireless/ath/ath10k/htt_rx.c frag = sc & IEEE80211_SCTL_FRAG; frag 2559 drivers/net/wireless/ath/ath10k/htt_rx.c if (frag == 0) { frag 2938 drivers/net/wireless/ath/ath10k/htt_rx.c bool frag; frag 2955 drivers/net/wireless/ath/ath10k/htt_rx.c frag = !!(resp->rx_in_ord_ind.info & HTT_RX_IN_ORD_IND_INFO_FRAG_MASK); frag 2959 drivers/net/wireless/ath/ath10k/htt_rx.c vdev_id, peer_id, tid, offload, frag, msdu_count); frag 312 drivers/net/wireless/ath/ath9k/ath9k.h struct sk_buff *frag; frag 875 drivers/net/wireless/ath/ath9k/main.c if (sc->rx.frag) { frag 876 drivers/net/wireless/ath/ath9k/main.c dev_kfree_skb_any(sc->rx.frag); frag 877 drivers/net/wireless/ath/ath9k/main.c sc->rx.frag = NULL; frag 1107 drivers/net/wireless/ath/ath9k/recv.c if (sc->rx.frag) frag 1108 drivers/net/wireless/ath/ath9k/recv.c hdr_skb = sc->rx.frag; frag 1163 drivers/net/wireless/ath/ath9k/recv.c if (sc->rx.frag) { frag 1165 drivers/net/wireless/ath/ath9k/recv.c dev_kfree_skb_any(sc->rx.frag); frag 1170 drivers/net/wireless/ath/ath9k/recv.c sc->rx.frag = skb; frag 1174 drivers/net/wireless/ath/ath9k/recv.c if (sc->rx.frag) { frag 1183 drivers/net/wireless/ath/ath9k/recv.c sc->rx.frag = NULL; frag 1214 drivers/net/wireless/ath/ath9k/recv.c if (sc->rx.frag) { frag 1215 drivers/net/wireless/ath/ath9k/recv.c dev_kfree_skb_any(sc->rx.frag); frag 1216 drivers/net/wireless/ath/ath9k/recv.c sc->rx.frag = NULL; frag 1068 drivers/net/wireless/ath/wil6210/debugfs.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1070 drivers/net/wireless/ath/wil6210/debugfs.c len = skb_frag_size(frag); frag 1071 drivers/net/wireless/ath/wil6210/debugfs.c p = skb_frag_address_safe(frag); frag 1760 drivers/net/wireless/ath/wil6210/txrx.c const skb_frag_t *frag = NULL; frag 1851 drivers/net/wireless/ath/wil6210/txrx.c frag = &skb_shinfo(skb)->frags[f]; frag 1852 drivers/net/wireless/ath/wil6210/txrx.c len = skb_frag_size(frag); frag 1872 drivers/net/wireless/ath/wil6210/txrx.c pa = skb_frag_dma_map(dev, frag, frag 1873 drivers/net/wireless/ath/wil6210/txrx.c skb_frag_size(frag) - len, frag 2095 drivers/net/wireless/ath/wil6210/txrx.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 2096 drivers/net/wireless/ath/wil6210/txrx.c int len = skb_frag_size(frag); frag 2104 drivers/net/wireless/ath/wil6210/txrx.c pa = skb_frag_dma_map(dev, frag, 0, skb_frag_size(frag), frag 1356 drivers/net/wireless/ath/wil6210/txrx_edma.c skb_frag_t *frag, struct wil_ring *ring, frag 1371 drivers/net/wireless/ath/wil6210/txrx_edma.c if (!frag) { frag 1375 drivers/net/wireless/ath/wil6210/txrx_edma.c pa = skb_frag_dma_map(dev, frag, 0, len, DMA_TO_DEVICE); frag 1486 drivers/net/wireless/ath/wil6210/txrx_edma.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; frag 1487 drivers/net/wireless/ath/wil6210/txrx_edma.c int len = skb_frag_size(frag); frag 1496 drivers/net/wireless/ath/wil6210/txrx_edma.c frag, ring, skb, is_ipv4, frag 6210 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct sk_buff *p, struct scb *scb, uint frag, frag 6534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (frag == 0) frag 6761 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!(tx_info->flags & IEEE80211_TX_CTL_AMPDU) && frag == 0) { frag 7295 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (!wrqu->frag.fixed) frag 7298 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (wrqu->frag.disabled) { frag 7302 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (wrqu->frag.value < MIN_FRAG_THRESHOLD || frag 7303 drivers/net/wireless/intel/ipw2x00/ipw2100.c wrqu->frag.value > MAX_FRAG_THRESHOLD) frag 7306 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->ieee->fts = wrqu->frag.value & ~0x1; frag 7324 drivers/net/wireless/intel/ipw2x00/ipw2100.c wrqu->frag.value = priv->frag_threshold & ~FRAG_DISABLED; frag 7325 drivers/net/wireless/intel/ipw2x00/ipw2100.c wrqu->frag.fixed = 0; /* no auto select */ frag 7326 drivers/net/wireless/intel/ipw2x00/ipw2100.c wrqu->frag.disabled = (priv->frag_threshold & FRAG_DISABLED) ? 1 : 0; frag 7328 drivers/net/wireless/intel/ipw2x00/ipw2100.c IPW_DEBUG_WX("GET Frag Threshold -> %d\n", wrqu->frag.value); frag 2524 drivers/net/wireless/intel/ipw2x00/ipw2200.c static int ipw_send_frag_threshold(struct ipw_priv *priv, u16 frag) frag 2527 drivers/net/wireless/intel/ipw2x00/ipw2200.c .frag_threshold = cpu_to_le16(frag), frag 8130 drivers/net/wireless/intel/ipw2x00/ipw2200.c u16 frag = WLAN_GET_SEQ_FRAG(sc); frag 8157 drivers/net/wireless/intel/ipw2x00/ipw2200.c entry->frag_num = frag; frag 8178 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (*last_frag == frag) frag 8180 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (*last_frag + 1 != frag) frag 8186 drivers/net/wireless/intel/ipw2x00/ipw2200.c *last_frag = frag; frag 9341 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (wrqu->frag.disabled || !wrqu->frag.fixed) frag 9344 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (wrqu->frag.value < MIN_FRAG_THRESHOLD || frag 9345 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->frag.value > MAX_FRAG_THRESHOLD) { frag 9350 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->ieee->fts = wrqu->frag.value & ~0x1; frag 9353 drivers/net/wireless/intel/ipw2x00/ipw2200.c ipw_send_frag_threshold(priv, wrqu->frag.value); frag 9355 drivers/net/wireless/intel/ipw2x00/ipw2200.c IPW_DEBUG_WX("SET Frag Threshold -> %d\n", wrqu->frag.value); frag 9365 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->frag.value = priv->ieee->fts; frag 9366 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->frag.fixed = 0; /* no auto select */ frag 9367 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->frag.disabled = (wrqu->frag.value == DEFAULT_FTS); frag 9369 drivers/net/wireless/intel/ipw2x00/ipw2200.c IPW_DEBUG_WX("GET Frag Threshold -> %d\n", wrqu->frag.value); frag 56 drivers/net/wireless/intel/ipw2x00/libipw_rx.c unsigned int frag, frag 75 drivers/net/wireless/intel/ipw2x00/libipw_rx.c (entry->last_frag + 1 == frag || frag == -1) && frag 90 drivers/net/wireless/intel/ipw2x00/libipw_rx.c unsigned int frag, seq; frag 94 drivers/net/wireless/intel/ipw2x00/libipw_rx.c frag = WLAN_GET_SEQ_FRAG(sc); frag 97 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (frag == 0) { frag 117 drivers/net/wireless/intel/ipw2x00/libipw_rx.c entry->last_frag = frag; frag 124 drivers/net/wireless/intel/ipw2x00/libipw_rx.c entry = libipw_frag_cache_find(ieee, seq, frag, hdr->addr2, frag 127 drivers/net/wireless/intel/ipw2x00/libipw_rx.c entry->last_frag = frag; frag 335 drivers/net/wireless/intel/ipw2x00/libipw_rx.c unsigned int frag; frag 362 drivers/net/wireless/intel/ipw2x00/libipw_rx.c frag = WLAN_GET_SEQ_FRAG(sc); frag 578 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if ((frag != 0) || (fc & IEEE80211_FCTL_MOREFRAGS)) { frag 581 drivers/net/wireless/intel/ipw2x00/libipw_rx.c LIBIPW_DEBUG_FRAG("Rx Fragment received (%u)\n", frag); frag 588 drivers/net/wireless/intel/ipw2x00/libipw_rx.c WLAN_GET_SEQ_SEQ(sc), frag); frag 593 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (frag != 0) frag 604 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (frag == 0) { frag 139 drivers/net/wireless/intel/ipw2x00/libipw_tx.c struct sk_buff *frag, int hdr_len) frag 153 drivers/net/wireless/intel/ipw2x00/libipw_tx.c res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); frag 158 drivers/net/wireless/intel/ipw2x00/libipw_tx.c ieee->dev->name, frag->len); frag 435 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 439 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (!skb_frag_size(frag)) frag 442 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = skb_frag_dma_map(trans->dev, frag, 0, frag 443 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c skb_frag_size(frag), DMA_TO_DEVICE); frag 448 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c skb_frag_size(frag)); frag 450 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c skb_frag_address(frag), frag 451 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c skb_frag_size(frag)); frag 476 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct sk_buff *frag; frag 529 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c skb_walk_frags(skb, frag) { frag 530 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = dma_map_single(trans->dev, frag->data, frag 531 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c skb_headlen(frag), DMA_TO_DEVICE); frag 534 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, skb_headlen(frag)); frag 536 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c frag->data, frag 537 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c skb_headlen(frag)); frag 538 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (iwl_pcie_gen2_tx_add_frags(trans, frag, tfd, out_meta)) frag 2030 drivers/net/wireless/intel/iwlwifi/pcie/tx.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2034 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (!skb_frag_size(frag)) frag 2037 drivers/net/wireless/intel/iwlwifi/pcie/tx.c tb_phys = skb_frag_dma_map(trans->dev, frag, 0, frag 2038 drivers/net/wireless/intel/iwlwifi/pcie/tx.c skb_frag_size(frag), DMA_TO_DEVICE); frag 2043 drivers/net/wireless/intel/iwlwifi/pcie/tx.c skb_frag_address(frag), frag 2044 drivers/net/wireless/intel/iwlwifi/pcie/tx.c skb_frag_size(frag)); frag 2046 drivers/net/wireless/intel/iwlwifi/pcie/tx.c skb_frag_size(frag), false); frag 2453 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct sk_buff *frag; frag 2459 drivers/net/wireless/intel/iwlwifi/pcie/tx.c skb_walk_frags(skb, frag) { frag 2460 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(iwl_fill_data_tbs(trans, frag, txq, 0, frag 222 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c unsigned int frag, u8 *src, u8 *dst) frag 239 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (entry->last_frag + 1 == frag || frag == -1) && frag 255 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c unsigned int frag, seq; frag 259 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c frag = sc & IEEE80211_SCTL_FRAG; frag 262 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (frag == 0) { frag 282 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c entry->last_frag = frag; frag 289 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c entry = prism2_frag_cache_find(local, seq, frag, hdr->addr2, frag 292 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c entry->last_frag = frag; frag 725 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c unsigned int frag; frag 756 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c frag = sc & IEEE80211_SCTL_FRAG; frag 919 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (frag != 0 || (fc & IEEE80211_FCTL_MOREFRAGS))) { frag 927 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (sc & IEEE80211_SCTL_SEQ) >> 4, frag); frag 932 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (frag != 0) frag 943 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (frag == 0) { frag 568 drivers/net/wireless/intersil/prism54/islpci_dev.c isl38xx_fragment *frag = &cb->rx_data_mgmt[counter]; frag 569 drivers/net/wireless/intersil/prism54/islpci_dev.c frag->size = cpu_to_le16(MGMT_FRAME_SIZE); frag 570 drivers/net/wireless/intersil/prism54/islpci_dev.c frag->flags = 0; frag 571 drivers/net/wireless/intersil/prism54/islpci_dev.c frag->address = cpu_to_le32(priv->mgmt_rx[counter].pci_addr); frag 109 drivers/net/wireless/intersil/prism54/islpci_mgt.c isl38xx_fragment *frag = &cb->rx_data_mgmt[index]; frag 129 drivers/net/wireless/intersil/prism54/islpci_mgt.c frag->size = cpu_to_le16(MGMT_FRAME_SIZE); frag 130 drivers/net/wireless/intersil/prism54/islpci_mgt.c frag->flags = 0; frag 131 drivers/net/wireless/intersil/prism54/islpci_mgt.c frag->address = cpu_to_le32(buf->pci_addr); frag 160 drivers/net/wireless/intersil/prism54/islpci_mgt.c isl38xx_fragment *frag; frag 226 drivers/net/wireless/intersil/prism54/islpci_mgt.c frag = &cb->tx_data_mgmt[index]; frag 227 drivers/net/wireless/intersil/prism54/islpci_mgt.c frag->size = cpu_to_le16(frag_len); frag 228 drivers/net/wireless/intersil/prism54/islpci_mgt.c frag->flags = 0; /* for any other than the last fragment, set to 1 */ frag 229 drivers/net/wireless/intersil/prism54/islpci_mgt.c frag->address = cpu_to_le32(buf.pci_addr); frag 32 drivers/net/wireless/mediatek/mt7601u/dma.c u32 true_len, hdr_len = 0, copy, frag; frag 56 drivers/net/wireless/mediatek/mt7601u/dma.c frag = true_len - copy; frag 61 drivers/net/wireless/mediatek/mt7601u/dma.c if (frag) { frag 63 drivers/net/wireless/mediatek/mt7601u/dma.c frag, truesize); frag 1221 drivers/net/wireless/ray_cs.c int fthr = wrqu->frag.value; frag 1228 drivers/net/wireless/ray_cs.c if (wrqu->frag.disabled) frag 1249 drivers/net/wireless/ray_cs.c wrqu->frag.value = (local->sparm.b5.a_frag_threshold[0] << 8) frag 1251 drivers/net/wireless/ray_cs.c wrqu->frag.disabled = (wrqu->frag.value == 32767); frag 1252 drivers/net/wireless/ray_cs.c wrqu->frag.fixed = 1; frag 136 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 frag:4; frag 203 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 frag:4; frag 278 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 frag:4; frag 341 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 frag:4; /* 16 */ frag 755 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.h u32 frag:4; frag 485 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.h u32 frag:4; frag 97 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.h u32 frag:4; frag 677 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h u32 frag:4; frag 691 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h u32 frag:4; frag 487 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.h u32 frag:4; frag 600 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.h u32 frag:4; frag 606 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.h u32 frag:4; frag 1705 drivers/net/wireless/wl3501_cs.c wrqu->frag.value = threshold; frag 1706 drivers/net/wireless/wl3501_cs.c wrqu->frag.disabled = threshold >= 2346; frag 1707 drivers/net/wireless/wl3501_cs.c wrqu->frag.fixed = 1; frag 341 drivers/net/wireless/zydas/zd1201.c struct zd1201_frag *frag = NULL; frag 347 drivers/net/wireless/zydas/zd1201.c frag = kmalloc(sizeof(*frag), GFP_ATOMIC); frag 348 drivers/net/wireless/zydas/zd1201.c if (!frag) frag 352 drivers/net/wireless/zydas/zd1201.c kfree(frag); frag 355 drivers/net/wireless/zydas/zd1201.c frag->skb = skb; frag 356 drivers/net/wireless/zydas/zd1201.c frag->seq = seq & IEEE80211_SCTL_SEQ; frag 361 drivers/net/wireless/zydas/zd1201.c hlist_add_head(&frag->fnode, &zd->fraglist); frag 364 drivers/net/wireless/zydas/zd1201.c hlist_for_each_entry(frag, &zd->fraglist, fnode) frag 365 drivers/net/wireless/zydas/zd1201.c if (frag->seq == (seq&IEEE80211_SCTL_SEQ)) frag 367 drivers/net/wireless/zydas/zd1201.c if (!frag) frag 369 drivers/net/wireless/zydas/zd1201.c skb = frag->skb; frag 375 drivers/net/wireless/zydas/zd1201.c hlist_del_init(&frag->fnode); frag 376 drivers/net/wireless/zydas/zd1201.c kfree(frag); frag 1340 drivers/net/wireless/zydas/zd1201.c struct iw_param *frag, char *extra) frag 1344 drivers/net/wireless/zydas/zd1201.c short val = frag->value; frag 1346 drivers/net/wireless/zydas/zd1201.c if (frag->disabled || !frag->fixed) frag 1361 drivers/net/wireless/zydas/zd1201.c struct iw_param *frag, char *extra) frag 1370 drivers/net/wireless/zydas/zd1201.c frag->value = fragt; frag 1371 drivers/net/wireless/zydas/zd1201.c frag->disabled = (frag->value == ZD1201_FRAGMAX); frag 1372 drivers/net/wireless/zydas/zd1201.c frag->fixed = 1; frag 1833 drivers/net/wireless/zydas/zd1201.c struct zd1201_frag *frag; frag 1839 drivers/net/wireless/zydas/zd1201.c hlist_for_each_entry_safe(frag, node2, &zd->fraglist, fnode) { frag 1840 drivers/net/wireless/zydas/zd1201.c hlist_del_init(&frag->fnode); frag 1841 drivers/net/wireless/zydas/zd1201.c kfree_skb(frag->skb); frag 1842 drivers/net/wireless/zydas/zd1201.c kfree(frag); frag 137 drivers/net/xen-netback/netback.c static u16 frag_get_pending_idx(skb_frag_t *frag) frag 139 drivers/net/xen-netback/netback.c return (u16)skb_frag_off(frag); frag 142 drivers/net/xen-netback/netback.c static void frag_set_pending_idx(skb_frag_t *frag, u16 pending_idx) frag 144 drivers/net/xen-netback/netback.c skb_frag_off_set(frag, pending_idx); frag 568 drivers/net/xen-netback/netback.c skb_frag_t *frag = shinfo->frags + i; frag 573 drivers/net/xen-netback/netback.c pending_idx = frag_get_pending_idx(frag); frag 219 drivers/net/xen-netback/rx.c int frag; /* frag == -1 => frag_iter->head */ frag 243 drivers/net/xen-netback/rx.c pkt->frag = -1; frag 303 drivers/net/xen-netback/rx.c pkt->frag++; frag 306 drivers/net/xen-netback/rx.c if (pkt->frag >= nr_frags) { frag 312 drivers/net/xen-netback/rx.c pkt->frag = -1; frag 327 drivers/net/xen-netback/rx.c if (pkt->frag == -1) { frag 331 drivers/net/xen-netback/rx.c skb_frag_t *frag = &skb_shinfo(frag_iter)->frags[pkt->frag]; frag 333 drivers/net/xen-netback/rx.c frag_data = skb_frag_address(frag); frag 334 drivers/net/xen-netback/rx.c frag_len = skb_frag_size(frag); frag 532 drivers/net/xen-netfront.c skb_frag_t *frag = skb_shinfo(skb)->frags + i; frag 533 drivers/net/xen-netfront.c unsigned long size = skb_frag_size(frag); frag 534 drivers/net/xen-netfront.c unsigned long offset = skb_frag_off(frag); frag 676 drivers/net/xen-netfront.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 677 drivers/net/xen-netfront.c tx = xennet_make_txreqs(queue, tx, skb, skb_frag_page(frag), frag 678 drivers/net/xen-netfront.c skb_frag_off(frag), frag 679 drivers/net/xen-netfront.c skb_frag_size(frag)); frag 2058 drivers/nfc/pn533/pn533.c struct sk_buff *frag; frag 2069 drivers/nfc/pn533/pn533.c frag = pn533_alloc_skb(dev, frag_size); frag 2070 drivers/nfc/pn533/pn533.c if (!frag) { frag 2077 drivers/nfc/pn533/pn533.c skb_reserve(frag, 1); frag 2081 drivers/nfc/pn533/pn533.c *(u8 *)skb_push(frag, sizeof(u8)) = frag 2084 drivers/nfc/pn533/pn533.c *(u8 *)skb_push(frag, sizeof(u8)) = 1; /* TG */ frag 2087 drivers/nfc/pn533/pn533.c skb_put_data(frag, skb->data, frag_size); frag 2093 drivers/nfc/pn533/pn533.c skb_queue_tail(&dev->fragment_skb, frag); frag 3589 drivers/s390/net/qeth_core_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[cnt]; frag 3592 drivers/s390/net/qeth_core_main.c (addr_t)skb_frag_address(frag), frag 3593 drivers/s390/net/qeth_core_main.c (addr_t)skb_frag_address(frag) + skb_frag_size(frag)); frag 3768 drivers/s390/net/qeth_core_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[cnt]; frag 3770 drivers/s390/net/qeth_core_main.c data = skb_frag_address(frag); frag 3771 drivers/s390/net/qeth_core_main.c length = skb_frag_size(frag); frag 343 drivers/scsi/bnx2fc/bnx2fc_fcoe.c skb_frag_t *frag; frag 348 drivers/scsi/bnx2fc/bnx2fc_fcoe.c frag = &skb_shinfo(skb)->frags[skb_shinfo(skb)->nr_frags - 1]; frag 349 drivers/scsi/bnx2fc/bnx2fc_fcoe.c cp = kmap_atomic(skb_frag_page(frag)) + skb_frag_off(frag); frag 2006 drivers/scsi/cxgbi/libcxgbi.c struct page_frag *frag = tdata->frags; frag 2009 drivers/scsi/cxgbi/libcxgbi.c for (i = 0; i < tdata->nr_frags; i++, frag++) { frag 2010 drivers/scsi/cxgbi/libcxgbi.c char *src = kmap_atomic(frag->page); frag 2012 drivers/scsi/cxgbi/libcxgbi.c memcpy(dst, src+frag->offset, frag->size); frag 2013 drivers/scsi/cxgbi/libcxgbi.c dst += frag->size; frag 1525 drivers/scsi/fcoe/fcoe.c skb_frag_t *frag; frag 1530 drivers/scsi/fcoe/fcoe.c frag = &skb_shinfo(skb)->frags[skb_shinfo(skb)->nr_frags - 1]; frag 1531 drivers/scsi/fcoe/fcoe.c cp = kmap_atomic(skb_frag_page(frag)) + skb_frag_off(frag); frag 311 drivers/scsi/fcoe/fcoe_transport.c skb_frag_t *frag; frag 320 drivers/scsi/fcoe/fcoe_transport.c frag = &skb_shinfo(skb)->frags[i]; frag 321 drivers/scsi/fcoe/fcoe_transport.c off = skb_frag_off(frag); frag 322 drivers/scsi/fcoe/fcoe_transport.c len = skb_frag_size(frag); frag 326 drivers/scsi/fcoe/fcoe_transport.c skb_frag_page(frag) + (off >> PAGE_SHIFT)); frag 1097 drivers/scsi/qedf/qedf_main.c skb_frag_t *frag; frag 1103 drivers/scsi/qedf/qedf_main.c frag = &skb_shinfo(skb)->frags[skb_shinfo(skb)->nr_frags - 1]; frag 1104 drivers/scsi/qedf/qedf_main.c cp = kmap_atomic(skb_frag_page(frag)) + skb_frag_off(frag); frag 697 drivers/staging/ks7010/ks_wlan_net.c int fthr = vwrq->frag.value; frag 703 drivers/staging/ks7010/ks_wlan_net.c if (vwrq->frag.disabled) frag 725 drivers/staging/ks7010/ks_wlan_net.c vwrq->frag.value = priv->reg.fragment; frag 726 drivers/staging/ks7010/ks_wlan_net.c vwrq->frag.disabled = (vwrq->frag.value >= 2346); frag 727 drivers/staging/ks7010/ks_wlan_net.c vwrq->frag.fixed = 1; frag 1350 drivers/staging/qlge/qlge_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[frag_idx]; frag 1400 drivers/staging/qlge/qlge_main.c map = skb_frag_dma_map(&qdev->pdev->dev, frag, 0, skb_frag_size(frag), frag 1412 drivers/staging/qlge/qlge_main.c tbd->len = cpu_to_le32(skb_frag_size(frag)); frag 1415 drivers/staging/qlge/qlge_main.c skb_frag_size(frag)); frag 1534 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (wrqu->frag.disabled) { frag 1537 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (wrqu->frag.value < MIN_FRAG_THRESHOLD || frag 1538 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wrqu->frag.value > MAX_FRAG_THRESHOLD) frag 1541 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c padapter->xmitpriv.frag_len = wrqu->frag.value & ~0x1; frag 1557 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wrqu->frag.value = padapter->xmitpriv.frag_len; frag 1558 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wrqu->frag.fixed = 0; /* no auto select */ frag 1689 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c unsigned int frag, seq; frag 1693 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c frag = WLAN_GET_SEQ_FRAG(sc); frag 591 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c if (wrqu->frag.disabled) frag 594 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c if (wrqu->frag.value < MIN_FRAG_THRESHOLD || frag 595 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c wrqu->frag.value > MAX_FRAG_THRESHOLD) frag 598 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c priv->rtllib->fts = wrqu->frag.value & ~0x1; frag 610 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c wrqu->frag.value = priv->rtllib->fts; frag 611 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c wrqu->frag.fixed = 0; /* no auto select */ frag 612 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c wrqu->frag.disabled = (wrqu->frag.value == DEFAULT_FRAG_THRESHOLD); frag 1207 drivers/staging/rtl8192e/rtllib.h int frag; frag 1938 drivers/staging/rtl8192e/rtllib.h struct sk_buff *frag, frag 59 drivers/staging/rtl8192e/rtllib_rx.c unsigned int frag, u8 tid, u8 *src, u8 *dst) frag 76 drivers/staging/rtl8192e/rtllib_rx.c (entry->last_frag + 1 == frag || frag == -1) && frag 93 drivers/staging/rtl8192e/rtllib_rx.c unsigned int frag = WLAN_GET_SEQ_FRAG(sc); frag 115 drivers/staging/rtl8192e/rtllib_rx.c if (frag == 0) { frag 138 drivers/staging/rtl8192e/rtllib_rx.c entry->last_frag = frag; frag 146 drivers/staging/rtl8192e/rtllib_rx.c entry = rtllib_frag_cache_find(ieee, seq, frag, tid, hdr->addr2, frag 149 drivers/staging/rtl8192e/rtllib_rx.c entry->last_frag = frag; frag 367 drivers/staging/rtl8192e/rtllib_rx.c u16 frag = WLAN_GET_SEQ_FRAG(sc); frag 410 drivers/staging/rtl8192e/rtllib_rx.c entry->frag_num[tid] = frag; frag 432 drivers/staging/rtl8192e/rtllib_rx.c if (*last_frag == frag) frag 434 drivers/staging/rtl8192e/rtllib_rx.c if (*last_frag + 1 != frag) frag 440 drivers/staging/rtl8192e/rtllib_rx.c *last_frag = frag; frag 919 drivers/staging/rtl8192e/rtllib_rx.c u8 frag, type, stype; frag 925 drivers/staging/rtl8192e/rtllib_rx.c frag = WLAN_GET_SEQ_FRAG(sc); frag 941 drivers/staging/rtl8192e/rtllib_rx.c if ((fc & (1<<11)) && (frag == pRxTS->RxLastFragNum) && frag 944 drivers/staging/rtl8192e/rtllib_rx.c pRxTS->RxLastFragNum = frag; frag 1085 drivers/staging/rtl8192e/rtllib_rx.c u8 frag; frag 1090 drivers/staging/rtl8192e/rtllib_rx.c frag = WLAN_GET_SEQ_FRAG(sc); frag 1104 drivers/staging/rtl8192e/rtllib_rx.c if ((frag != 0 || (fc & RTLLIB_FCTL_MOREFRAGS))) { frag 1108 drivers/staging/rtl8192e/rtllib_rx.c netdev_dbg(ieee->dev, "Rx Fragment received (%u)\n", frag); frag 1114 drivers/staging/rtl8192e/rtllib_rx.c WLAN_GET_SEQ_SEQ(sc), frag); frag 1118 drivers/staging/rtl8192e/rtllib_rx.c if (frag != 0) frag 1129 drivers/staging/rtl8192e/rtllib_rx.c if (frag == 0) { frag 157 drivers/staging/rtl8192e/rtllib_tx.c int rtllib_encrypt_fragment(struct rtllib_device *ieee, struct sk_buff *frag, frag 180 drivers/staging/rtl8192e/rtllib_tx.c res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); frag 182 drivers/staging/rtl8192e/rtllib_tx.c res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); frag 187 drivers/staging/rtl8192e/rtllib_tx.c ieee->dev->name, frag->len); frag 1457 drivers/staging/rtl8192u/ieee80211/ieee80211.h int frag; frag 2179 drivers/staging/rtl8192u/ieee80211/ieee80211.h struct sk_buff *frag, int hdr_len); frag 63 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c unsigned int frag, u8 tid, u8 *src, u8 *dst) frag 81 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c (entry->last_frag + 1 == frag || frag == -1) && frag 98 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c unsigned int frag = WLAN_GET_SEQ_FRAG(sc); frag 119 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (frag == 0) { frag 141 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c entry->last_frag = frag; frag 148 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c entry = ieee80211_frag_cache_find(ieee, seq, frag, tid, hdr->addr2, frag 151 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c entry->last_frag = frag; frag 418 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u16 frag = WLAN_GET_SEQ_FRAG(sc); frag 461 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c entry->frag_num[tid] = frag; frag 487 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (*last_frag == frag) frag 489 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (*last_frag + 1 != frag) frag 495 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c *last_frag = frag; frag 879 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c unsigned int frag; frag 917 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c frag = WLAN_GET_SEQ_FRAG(sc); frag 1011 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c (frag == pRxTS->rx_last_frag_num) && frag 1015 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c pRxTS->rx_last_frag_num = frag; frag 1126 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if ((frag != 0 || (fc & IEEE80211_FCTL_MOREFRAGS))) { frag 1129 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c IEEE80211_DEBUG_FRAG("Rx Fragment received (%u)\n", frag); frag 1136 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c WLAN_GET_SEQ_SEQ(sc), frag); frag 1140 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (frag != 0) frag 1151 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (frag == 0) { frag 2082 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c for (i = ieee->tx_pending.frag; i < ieee->tx_pending.txb->nr_frags; i++) { frag 2084 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee->tx_pending.frag = i; frag 166 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c struct sk_buff *frag, frag 182 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c header = (struct rtl_80211_hdr_3addrqos *)frag->data; frag 201 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); frag 203 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); frag 208 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c ieee->dev->name, frag->len); frag 434 drivers/staging/rtl8192u/r8192U_wx.c if (wrqu->frag.disabled) frag 437 drivers/staging/rtl8192u/r8192U_wx.c if (wrqu->frag.value < MIN_FRAG_THRESHOLD || frag 438 drivers/staging/rtl8192u/r8192U_wx.c wrqu->frag.value > MAX_FRAG_THRESHOLD) frag 441 drivers/staging/rtl8192u/r8192U_wx.c priv->ieee80211->fts = wrqu->frag.value & ~0x1; frag 454 drivers/staging/rtl8192u/r8192U_wx.c wrqu->frag.value = priv->ieee80211->fts; frag 455 drivers/staging/rtl8192u/r8192U_wx.c wrqu->frag.fixed = 0; /* no auto select */ frag 456 drivers/staging/rtl8192u/r8192U_wx.c wrqu->frag.disabled = (wrqu->frag.value == DEFAULT_FRAG_THRESHOLD); frag 987 drivers/staging/rtl8712/rtl8712_recv.c u8 frag, mf; frag 1019 drivers/staging/rtl8712/rtl8712_recv.c frag = (le32_to_cpu(prxstat->rxdw2) >> 12) & 0xf; frag 1039 drivers/staging/rtl8712/rtl8712_recv.c if ((mf == 1) && (frag == 0)) frag 1463 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (wrqu->frag.disabled) { frag 1466 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (wrqu->frag.value < MIN_FRAG_THRESHOLD || frag 1467 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wrqu->frag.value > MAX_FRAG_THRESHOLD) frag 1469 drivers/staging/rtl8712/rtl871x_ioctl_linux.c padapter->xmitpriv.frag_len = wrqu->frag.value & ~0x1; frag 1480 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wrqu->frag.value = padapter->xmitpriv.frag_len; frag 1481 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wrqu->frag.fixed = 0; /* no auto select */ frag 62 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c pattrib->frag_num = (u8)prxreport->frag; frag 51 drivers/staging/rtl8723bs/include/rtl8723b_recv.h u32 frag:4; frag 1787 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (wrqu->frag.disabled) frag 1790 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (wrqu->frag.value < MIN_FRAG_THRESHOLD || frag 1791 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wrqu->frag.value > MAX_FRAG_THRESHOLD) frag 1794 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c padapter->xmitpriv.frag_len = wrqu->frag.value & ~0x1; frag 1811 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wrqu->frag.value = padapter->xmitpriv.frag_len; frag 1812 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wrqu->frag.fixed = 0; /* no auto select */ frag 383 drivers/staging/unisys/include/iochannel.h struct phys_info frag; frag 242 drivers/staging/unisys/visornic/visornic_main.c unsigned int count = 0, frag, size, offset = 0, numfrags; frag 284 drivers/staging/unisys/visornic/visornic_main.c for (frag = 0; frag < numfrags; frag++) { frag 286 drivers/staging/unisys/visornic/visornic_main.c skb_frag_page(&skb_shinfo(skb)->frags[frag])), frag 287 drivers/staging/unisys/visornic/visornic_main.c skb_frag_off(&skb_shinfo(skb)->frags[frag]), frag 288 drivers/staging/unisys/visornic/visornic_main.c skb_frag_size(&skb_shinfo(skb)->frags[frag]), frag 452 drivers/staging/unisys/visornic/visornic_main.c cmdrsp->net.rcvpost.frag.pi_pfn = page_to_pfn(virt_to_page(skb->data)); frag 453 drivers/staging/unisys/visornic/visornic_main.c cmdrsp->net.rcvpost.frag.pi_off = frag 455 drivers/staging/unisys/visornic/visornic_main.c cmdrsp->net.rcvpost.frag.pi_len = skb->len; frag 458 drivers/staging/unisys/visornic/visornic_main.c if ((cmdrsp->net.rcvpost.frag.pi_off + skb->len) > PI_PAGE_SIZE) frag 74 fs/adfs/map.c u32 frag; frag 77 fs/adfs/map.c frag = GET_FRAG_ID(map, start, idmask); frag 96 fs/adfs/map.c if (frag == frag_id) frag 105 fs/adfs/map.c frag, start, mapptr); frag 134 fs/adfs/map.c u32 frag; frag 140 fs/adfs/map.c frag = GET_FRAG_ID(map, start, idmask); frag 146 fs/adfs/map.c if (frag == 0) frag 150 fs/adfs/map.c start += frag; frag 155 fs/adfs/map.c frag = GET_FRAG_ID(map, start, idmask); frag 175 fs/adfs/map.c } while (frag >= idlen + 1); frag 177 fs/adfs/map.c if (frag != 0) frag 298 fs/ceph/dir.c return !ceph_frag_contains_value(dfi->frag, fpos_hash(pos)); frag 300 fs/ceph/dir.c return dfi->frag != fpos_frag(pos); frag 312 fs/ceph/dir.c unsigned frag = -1; frag 371 fs/ceph/dir.c if (frag == (unsigned)-1) frag 372 fs/ceph/dir.c frag = ceph_choose_frag(ci, fpos_hash(ctx->pos), frag 375 fs/ceph/dir.c frag = fpos_frag(ctx->pos); frag 379 fs/ceph/dir.c ceph_vinop(inode), frag, dfi->last_name); frag 391 fs/ceph/dir.c req->r_direct_hash = ceph_frag_value(frag); frag 410 fs/ceph/dir.c req->r_args.readdir.frag = cpu_to_le32(frag); frag 424 fs/ceph/dir.c err, frag, frag 430 fs/ceph/dir.c if (le32_to_cpu(rinfo->dir_dir->frag) != frag) { frag 431 fs/ceph/dir.c frag = le32_to_cpu(rinfo->dir_dir->frag); frag 435 fs/ceph/dir.c ctx->pos = ceph_make_fpos(frag, frag 441 fs/ceph/dir.c dfi->frag = frag; frag 449 fs/ceph/dir.c } else if (ceph_frag_is_leftmost(frag) && frag 482 fs/ceph/dir.c dfi->frag, rinfo->dir_nr, ctx->pos, frag 530 fs/ceph/dir.c frag = dfi->frag; frag 535 fs/ceph/dir.c if (!ceph_frag_is_rightmost(dfi->frag)) { frag 536 fs/ceph/dir.c frag = ceph_frag_next(dfi->frag); frag 538 fs/ceph/dir.c loff_t new_pos = ceph_make_fpos(ceph_frag_value(frag), frag 544 fs/ceph/dir.c ctx->pos = ceph_make_fpos(frag, dfi->next_offset, frag 549 fs/ceph/dir.c dout("readdir next frag is %x\n", frag); frag 609 fs/ceph/dir.c } else if (dfi->frag != fpos_frag(new_pos)) { frag 120 fs/ceph/inode.c struct ceph_inode_frag *frag; frag 126 fs/ceph/inode.c frag = rb_entry(parent, struct ceph_inode_frag, node); frag 127 fs/ceph/inode.c c = ceph_frag_compare(f, frag->frag); frag 133 fs/ceph/inode.c return frag; frag 136 fs/ceph/inode.c frag = kmalloc(sizeof(*frag), GFP_NOFS); frag 137 fs/ceph/inode.c if (!frag) frag 140 fs/ceph/inode.c frag->frag = f; frag 141 fs/ceph/inode.c frag->split_by = 0; frag 142 fs/ceph/inode.c frag->mds = -1; frag 143 fs/ceph/inode.c frag->ndist = 0; frag 145 fs/ceph/inode.c rb_link_node(&frag->node, parent, p); frag 146 fs/ceph/inode.c rb_insert_color(&frag->node, &ci->i_fragtree); frag 150 fs/ceph/inode.c return frag; frag 161 fs/ceph/inode.c struct ceph_inode_frag *frag = frag 163 fs/ceph/inode.c int c = ceph_frag_compare(f, frag->frag); frag 169 fs/ceph/inode.c return frag; frag 183 fs/ceph/inode.c struct ceph_inode_frag *frag; frag 192 fs/ceph/inode.c frag = __ceph_find_frag(ci, t); frag 193 fs/ceph/inode.c if (!frag) frag 195 fs/ceph/inode.c if (frag->split_by == 0) { frag 197 fs/ceph/inode.c memcpy(pfrag, frag, sizeof(*pfrag)); frag 204 fs/ceph/inode.c nway = 1 << frag->split_by; frag 206 fs/ceph/inode.c frag->split_by, nway); frag 208 fs/ceph/inode.c n = ceph_frag_make_child(t, frag->split_by, i); frag 240 fs/ceph/inode.c struct ceph_inode_frag *frag; frag 241 fs/ceph/inode.c u32 id = le32_to_cpu(dirinfo->frag); frag 259 fs/ceph/inode.c frag = __ceph_find_frag(ci, id); frag 260 fs/ceph/inode.c if (!frag) frag 262 fs/ceph/inode.c if (frag->split_by == 0) { frag 266 fs/ceph/inode.c rb_erase(&frag->node, &ci->i_fragtree); frag 267 fs/ceph/inode.c kfree(frag); frag 272 fs/ceph/inode.c frag->mds = -1; frag 273 fs/ceph/inode.c frag->ndist = 0; frag 280 fs/ceph/inode.c frag = __get_or_create_frag(ci, id); frag 281 fs/ceph/inode.c if (IS_ERR(frag)) { frag 285 fs/ceph/inode.c ceph_vinop(inode), le32_to_cpu(dirinfo->frag)); frag 290 fs/ceph/inode.c frag->mds = mds; frag 291 fs/ceph/inode.c frag->ndist = min_t(u32, ndist, CEPH_MAX_DIRFRAG_REP); frag 292 fs/ceph/inode.c for (i = 0; i < frag->ndist; i++) frag 293 fs/ceph/inode.c frag->dist[i] = le32_to_cpu(dirinfo->dist[i]); frag 295 fs/ceph/inode.c ceph_vinop(inode), frag->frag, frag->ndist); frag 306 fs/ceph/inode.c return ceph_frag_compare(le32_to_cpu(ls->frag), frag 307 fs/ceph/inode.c le32_to_cpu(rs->frag)); frag 310 fs/ceph/inode.c static bool is_frag_child(u32 f, struct ceph_inode_frag *frag) frag 312 fs/ceph/inode.c if (!frag) frag 314 fs/ceph/inode.c if (ceph_frag_bits(f) != ceph_frag_bits(frag->frag) + frag->split_by) frag 316 fs/ceph/inode.c return ceph_frag_contains_value(frag->frag, ceph_frag_value(f)); frag 324 fs/ceph/inode.c struct ceph_inode_frag *frag, *prev_frag = NULL; frag 336 fs/ceph/inode.c id = le32_to_cpu(fragtree->splits[i].frag); frag 341 fs/ceph/inode.c frag = rb_entry(rb_node, struct ceph_inode_frag, node); frag 342 fs/ceph/inode.c if (frag->frag != ceph_frag_make(0, 0) || rb_next(rb_node)) frag 346 fs/ceph/inode.c id = le32_to_cpu(dirinfo->frag); frag 361 fs/ceph/inode.c id = le32_to_cpu(fragtree->splits[i].frag); frag 369 fs/ceph/inode.c frag = NULL; frag 371 fs/ceph/inode.c frag = rb_entry(rb_node, struct ceph_inode_frag, node); frag 372 fs/ceph/inode.c if (ceph_frag_compare(frag->frag, id) >= 0) { frag 373 fs/ceph/inode.c if (frag->frag != id) frag 374 fs/ceph/inode.c frag = NULL; frag 381 fs/ceph/inode.c if (frag->split_by > 0 || frag 382 fs/ceph/inode.c !is_frag_child(frag->frag, prev_frag)) { frag 383 fs/ceph/inode.c rb_erase(&frag->node, &ci->i_fragtree); frag 384 fs/ceph/inode.c if (frag->split_by > 0) frag 386 fs/ceph/inode.c kfree(frag); frag 388 fs/ceph/inode.c frag = NULL; frag 390 fs/ceph/inode.c if (!frag) { frag 391 fs/ceph/inode.c frag = __get_or_create_frag(ci, id); frag 392 fs/ceph/inode.c if (IS_ERR(frag)) frag 395 fs/ceph/inode.c if (frag->split_by == 0) frag 397 fs/ceph/inode.c frag->split_by = split_by; frag 398 fs/ceph/inode.c dout(" frag %x split by %d\n", frag->frag, frag->split_by); frag 399 fs/ceph/inode.c prev_frag = frag; frag 402 fs/ceph/inode.c frag = rb_entry(rb_node, struct ceph_inode_frag, node); frag 405 fs/ceph/inode.c if (frag->split_by > 0 || frag 406 fs/ceph/inode.c !is_frag_child(frag->frag, prev_frag)) { frag 407 fs/ceph/inode.c rb_erase(&frag->node, &ci->i_fragtree); frag 408 fs/ceph/inode.c if (frag->split_by > 0) frag 410 fs/ceph/inode.c kfree(frag); frag 534 fs/ceph/inode.c struct ceph_inode_frag *frag; frag 574 fs/ceph/inode.c frag = rb_entry(n, struct ceph_inode_frag, node); frag 576 fs/ceph/inode.c kfree(frag); frag 1568 fs/ceph/inode.c u32 frag = le32_to_cpu(rhead->args.readdir.frag); frag 1590 fs/ceph/inode.c le32_to_cpu(rinfo->dir_dir->frag) != frag) { frag 1592 fs/ceph/inode.c frag, le32_to_cpu(rinfo->dir_dir->frag)); frag 1593 fs/ceph/inode.c frag = le32_to_cpu(rinfo->dir_dir->frag); frag 1607 fs/ceph/inode.c if (ceph_frag_is_leftmost(frag) && frag 1644 fs/ceph/inode.c rde->offset = ceph_make_fpos(frag, fpos_offset++, false); frag 959 fs/ceph/mds_client.c struct ceph_inode_frag frag; frag 962 fs/ceph/mds_client.c ceph_choose_frag(ci, hash, &frag, &found); frag 964 fs/ceph/mds_client.c if (mode == USE_ANY_MDS && frag.ndist > 0) { frag 969 fs/ceph/mds_client.c r %= frag.ndist; frag 970 fs/ceph/mds_client.c mds = frag.dist[r]; frag 974 fs/ceph/mds_client.c frag.frag, mds, frag 975 fs/ceph/mds_client.c (int)r, frag.ndist); frag 985 fs/ceph/mds_client.c if (frag.mds >= 0) { frag 987 fs/ceph/mds_client.c mds = frag.mds; frag 990 fs/ceph/mds_client.c inode, ceph_vinop(inode), frag.frag, mds); frag 241 fs/ceph/super.h u32 frag; frag 724 fs/ceph/super.h u32 frag; frag 166 fs/configfs/dir.c void put_fragment(struct configfs_fragment *frag) frag 168 fs/configfs/dir.c if (frag && atomic_dec_and_test(&frag->frag_count)) frag 169 fs/configfs/dir.c kfree(frag); frag 172 fs/configfs/dir.c struct configfs_fragment *get_fragment(struct configfs_fragment *frag) frag 174 fs/configfs/dir.c if (likely(frag)) frag 175 fs/configfs/dir.c atomic_inc(&frag->frag_count); frag 176 fs/configfs/dir.c return frag; frag 184 fs/configfs/dir.c struct configfs_fragment *frag) frag 203 fs/configfs/dir.c sd->s_frag = get_fragment(frag); frag 238 fs/configfs/dir.c umode_t mode, int type, struct configfs_fragment *frag) frag 242 fs/configfs/dir.c sd = configfs_new_dirent(parent_sd, element, type, frag); frag 276 fs/configfs/dir.c struct configfs_fragment *frag) frag 291 fs/configfs/dir.c frag); frag 629 fs/configfs/dir.c struct configfs_fragment *frag); frag 678 fs/configfs/dir.c struct configfs_fragment *frag) frag 694 fs/configfs/dir.c &group->cg_item, child, frag); frag 709 fs/configfs/dir.c struct configfs_fragment *frag) frag 715 fs/configfs/dir.c ret = create_default_group(group, new_group, frag); frag 830 fs/configfs/dir.c struct configfs_fragment *frag) frag 834 fs/configfs/dir.c ret = configfs_create_dir(item, dentry, frag); frag 865 fs/configfs/dir.c struct configfs_fragment *frag) frag 870 fs/configfs/dir.c ret = configfs_attach_item(parent_item, item, dentry, frag); frag 886 fs/configfs/dir.c ret = populate_groups(to_config_group(item), frag); frag 1281 fs/configfs/dir.c struct configfs_fragment *frag; frag 1300 fs/configfs/dir.c frag = new_fragment(); frag 1301 fs/configfs/dir.c if (!frag) { frag 1408 fs/configfs/dir.c ret = configfs_attach_group(parent_item, item, dentry, frag); frag 1410 fs/configfs/dir.c ret = configfs_attach_item(parent_item, item, dentry, frag); frag 1447 fs/configfs/dir.c put_fragment(frag); frag 1459 fs/configfs/dir.c struct configfs_fragment *frag; frag 1517 fs/configfs/dir.c frag = sd->s_frag; frag 1518 fs/configfs/dir.c if (down_write_killable(&frag->frag_sem)) { frag 1525 fs/configfs/dir.c frag->frag_dead = true; frag 1526 fs/configfs/dir.c up_write(&frag->frag_sem); frag 1748 fs/configfs/dir.c struct configfs_fragment *frag; frag 1751 fs/configfs/dir.c frag = new_fragment(); frag 1752 fs/configfs/dir.c if (!frag) frag 1762 fs/configfs/dir.c ret = create_default_group(parent_group, group, frag); frag 1770 fs/configfs/dir.c put_fragment(frag); frag 1777 fs/configfs/dir.c put_fragment(frag); frag 1794 fs/configfs/dir.c struct configfs_fragment *frag = sd->s_frag; frag 1796 fs/configfs/dir.c down_write(&frag->frag_sem); frag 1797 fs/configfs/dir.c frag->frag_dead = true; frag 1798 fs/configfs/dir.c up_write(&frag->frag_sem); frag 1871 fs/configfs/dir.c struct configfs_fragment *frag; frag 1873 fs/configfs/dir.c frag = new_fragment(); frag 1874 fs/configfs/dir.c if (!frag) frag 1879 fs/configfs/dir.c put_fragment(frag); frag 1897 fs/configfs/dir.c dentry, frag); frag 1915 fs/configfs/dir.c put_fragment(frag); frag 1926 fs/configfs/dir.c struct configfs_fragment *frag = sd->s_frag; frag 1933 fs/configfs/dir.c down_write(&frag->frag_sem); frag 1934 fs/configfs/dir.c frag->frag_dead = true; frag 1935 fs/configfs/dir.c up_write(&frag->frag_sem); frag 60 fs/configfs/file.c struct configfs_fragment *frag = to_frag(file); frag 68 fs/configfs/file.c down_read(&frag->frag_sem); frag 69 fs/configfs/file.c if (!frag->frag_dead) frag 71 fs/configfs/file.c up_read(&frag->frag_sem); frag 146 fs/configfs/file.c struct configfs_fragment *frag = to_frag(file); frag 162 fs/configfs/file.c down_read(&frag->frag_sem); frag 163 fs/configfs/file.c if (!frag->frag_dead) frag 167 fs/configfs/file.c up_read(&frag->frag_sem); frag 187 fs/configfs/file.c down_read(&frag->frag_sem); frag 188 fs/configfs/file.c if (!frag->frag_dead) frag 193 fs/configfs/file.c up_read(&frag->frag_sem); frag 246 fs/configfs/file.c struct configfs_fragment *frag = to_frag(file); frag 249 fs/configfs/file.c down_read(&frag->frag_sem); frag 250 fs/configfs/file.c if (!frag->frag_dead) frag 252 fs/configfs/file.c up_read(&frag->frag_sem); frag 359 fs/configfs/file.c struct configfs_fragment *frag = to_frag(file); frag 370 fs/configfs/file.c down_read(&frag->frag_sem); frag 371 fs/configfs/file.c if (unlikely(frag->frag_dead)) frag 433 fs/configfs/file.c up_read(&frag->frag_sem); frag 441 fs/configfs/file.c up_read(&frag->frag_sem); frag 476 fs/configfs/file.c struct configfs_fragment *frag = to_frag(file); frag 479 fs/configfs/file.c down_read(&frag->frag_sem); frag 480 fs/configfs/file.c if (!frag->frag_dead) { frag 486 fs/configfs/file.c up_read(&frag->frag_sem); frag 77 fs/jffs2/debug.c struct jffs2_node_frag *frag; frag 80 fs/jffs2/debug.c for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { frag 81 fs/jffs2/debug.c struct jffs2_full_dnode *fn = frag->node; frag 98 fs/jffs2/debug.c if (frag->ofs & (PAGE_SIZE-1) && frag_prev(frag) frag 99 fs/jffs2/debug.c && frag_prev(frag)->size < PAGE_SIZE && frag_prev(frag)->node) { frag 105 fs/jffs2/debug.c if ((frag->ofs+frag->size) & (PAGE_SIZE-1) && frag_next(frag) frag 106 fs/jffs2/debug.c && frag_next(frag)->size < PAGE_SIZE && frag_next(frag)->node) { frag 108 fs/jffs2/debug.c ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); frag 500 fs/jffs2/gc.c struct jffs2_node_frag *frag; frag 534 fs/jffs2/gc.c for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { frag 535 fs/jffs2/gc.c if (frag->node && frag->node->raw == raw) { frag 536 fs/jffs2/gc.c fn = frag->node; frag 537 fs/jffs2/gc.c end = frag->ofs + frag->size; frag 539 fs/jffs2/gc.c start = frag->ofs; frag 540 fs/jffs2/gc.c if (nrfrags == frag->node->frags) frag 549 fs/jffs2/gc.c frag->node->raw = f->inocache->nodes; frag 1018 fs/jffs2/gc.c struct jffs2_node_frag *frag; frag 1083 fs/jffs2/gc.c frag = frag_last(&f->fragtree); frag 1084 fs/jffs2/gc.c if (frag) frag 1087 fs/jffs2/gc.c ilen = frag->ofs + frag->size; frag 1139 fs/jffs2/gc.c for (frag = jffs2_lookup_node_frag(&f->fragtree, fn->ofs); frag 1140 fs/jffs2/gc.c frag; frag = frag_next(frag)) { frag 1141 fs/jffs2/gc.c if (frag->ofs > fn->size + fn->ofs) frag 1143 fs/jffs2/gc.c if (frag->node == fn) { frag 1144 fs/jffs2/gc.c frag->node = new_fn; frag 1193 fs/jffs2/gc.c struct jffs2_node_frag *frag; frag 1199 fs/jffs2/gc.c frag = jffs2_lookup_node_frag(&f->fragtree, start); frag 1203 fs/jffs2/gc.c BUG_ON(frag->ofs != start); frag 1206 fs/jffs2/gc.c while((frag = frag_prev(frag)) && frag->ofs >= min) { frag 1210 fs/jffs2/gc.c if (frag->ofs > min) { frag 1212 fs/jffs2/gc.c frag->ofs, frag->ofs+frag->size); frag 1213 fs/jffs2/gc.c start = frag->ofs; frag 1217 fs/jffs2/gc.c if (!frag->node || !frag->node->raw) { frag 1219 fs/jffs2/gc.c frag->ofs, frag->ofs+frag->size); frag 1227 fs/jffs2/gc.c struct jffs2_raw_node_ref *raw = frag->node->raw; frag 1234 fs/jffs2/gc.c frag->ofs, frag 1235 fs/jffs2/gc.c frag->ofs + frag->size, frag 1237 fs/jffs2/gc.c start = frag->ofs; frag 1242 fs/jffs2/gc.c frag->ofs, frag 1243 fs/jffs2/gc.c frag->ofs + frag->size, frag 1249 fs/jffs2/gc.c frag->ofs, frag 1250 fs/jffs2/gc.c frag->ofs + frag->size, frag 1252 fs/jffs2/gc.c start = frag->ofs; frag 1260 fs/jffs2/gc.c frag = jffs2_lookup_node_frag(&f->fragtree, end-1); frag 1262 fs/jffs2/gc.c while((frag = frag_next(frag)) && frag->ofs+frag->size <= max) { frag 1266 fs/jffs2/gc.c if (frag->ofs+frag->size < max) { frag 1268 fs/jffs2/gc.c frag->ofs, frag->ofs+frag->size); frag 1269 fs/jffs2/gc.c end = frag->ofs + frag->size; frag 1273 fs/jffs2/gc.c if (!frag->node || !frag->node->raw) { frag 1275 fs/jffs2/gc.c frag->ofs, frag->ofs+frag->size); frag 1283 fs/jffs2/gc.c struct jffs2_raw_node_ref *raw = frag->node->raw; frag 1290 fs/jffs2/gc.c frag->ofs, frag 1291 fs/jffs2/gc.c frag->ofs + frag->size, frag 1293 fs/jffs2/gc.c end = frag->ofs + frag->size; frag 1298 fs/jffs2/gc.c frag->ofs, frag 1299 fs/jffs2/gc.c frag->ofs + frag->size, frag 1305 fs/jffs2/gc.c frag->ofs, frag 1306 fs/jffs2/gc.c frag->ofs + frag->size, frag 1308 fs/jffs2/gc.c end = frag->ofs + frag->size; frag 61 fs/jffs2/nodelist.c struct jffs2_node_frag *frag = jffs2_lookup_node_frag(list, size); frag 66 fs/jffs2/nodelist.c if (frag && frag->ofs != size) { frag 67 fs/jffs2/nodelist.c if (frag->ofs+frag->size > size) { frag 68 fs/jffs2/nodelist.c frag->size = size - frag->ofs; frag 70 fs/jffs2/nodelist.c frag = frag_next(frag); frag 72 fs/jffs2/nodelist.c while (frag && frag->ofs >= size) { frag 73 fs/jffs2/nodelist.c struct jffs2_node_frag *next = frag_next(frag); frag 75 fs/jffs2/nodelist.c frag_erase(frag, list); frag 76 fs/jffs2/nodelist.c jffs2_obsolete_node_frag(c, frag); frag 77 fs/jffs2/nodelist.c frag = next; frag 83 fs/jffs2/nodelist.c frag = frag_last(list); frag 86 fs/jffs2/nodelist.c if (!frag) frag 88 fs/jffs2/nodelist.c if (frag->ofs + frag->size < size) frag 89 fs/jffs2/nodelist.c return frag->ofs + frag->size; frag 93 fs/jffs2/nodelist.c if (frag->node && (frag->ofs & (PAGE_SIZE - 1)) == 0) { frag 95 fs/jffs2/nodelist.c frag->ofs, frag->ofs + frag->size); frag 96 fs/jffs2/nodelist.c frag->node->raw->flash_offset = ref_offset(frag->node->raw) | REF_PRISTINE; frag 530 fs/jffs2/nodelist.c struct jffs2_node_frag *frag = NULL; frag 537 fs/jffs2/nodelist.c frag = rb_entry(next, struct jffs2_node_frag, rb); frag 539 fs/jffs2/nodelist.c if (frag->ofs + frag->size <= offset) { frag 541 fs/jffs2/nodelist.c if (!prev || frag->ofs > prev->ofs) frag 542 fs/jffs2/nodelist.c prev = frag; frag 543 fs/jffs2/nodelist.c next = frag->rb.rb_right; frag 544 fs/jffs2/nodelist.c } else if (frag->ofs > offset) { frag 545 fs/jffs2/nodelist.c next = frag->rb.rb_left; frag 547 fs/jffs2/nodelist.c return frag; frag 567 fs/jffs2/nodelist.c struct jffs2_node_frag *frag, *next; frag 570 fs/jffs2/nodelist.c rbtree_postorder_for_each_entry_safe(frag, next, root, rb) { frag 571 fs/jffs2/nodelist.c if (frag->node && !(--frag->node->frags)) { frag 575 fs/jffs2/nodelist.c jffs2_mark_node_obsolete(c, frag->node->raw); frag 577 fs/jffs2/nodelist.c jffs2_free_full_dnode(frag->node); frag 580 fs/jffs2/nodelist.c jffs2_free_node_frag(frag); frag 347 fs/jffs2/nodelist.h #define frag_next(frag) rb_entry(rb_next(&(frag)->rb), struct jffs2_node_frag, rb) frag 348 fs/jffs2/nodelist.h #define frag_prev(frag) rb_entry(rb_prev(&(frag)->rb), struct jffs2_node_frag, rb) frag 349 fs/jffs2/nodelist.h #define frag_parent(frag) rb_entry(rb_parent(&(frag)->rb), struct jffs2_node_frag, rb) frag 350 fs/jffs2/nodelist.h #define frag_left(frag) rb_entry((frag)->rb.rb_left, struct jffs2_node_frag, rb) frag 351 fs/jffs2/nodelist.h #define frag_right(frag) rb_entry((frag)->rb.rb_right, struct jffs2_node_frag, rb) frag 352 fs/jffs2/nodelist.h #define frag_erase(frag, list) rb_erase(&frag->rb, list); frag 161 fs/jffs2/read.c struct jffs2_node_frag *frag; frag 167 fs/jffs2/read.c frag = jffs2_lookup_node_frag(&f->fragtree, offset); frag 177 fs/jffs2/read.c if (unlikely(!frag || frag->ofs > offset || frag 178 fs/jffs2/read.c frag->ofs + frag->size <= offset)) { frag 180 fs/jffs2/read.c if (frag && frag->ofs > offset) { frag 182 fs/jffs2/read.c f->inocache->ino, frag->ofs, offset); frag 183 fs/jffs2/read.c holesize = min(holesize, frag->ofs - offset); frag 191 fs/jffs2/read.c } else if (unlikely(!frag->node)) { frag 192 fs/jffs2/read.c uint32_t holeend = min(end, frag->ofs + frag->size); frag 194 fs/jffs2/read.c offset, holeend, frag->ofs, frag 195 fs/jffs2/read.c frag->ofs + frag->size); frag 199 fs/jffs2/read.c frag = frag_next(frag); frag 205 fs/jffs2/read.c fragofs = offset - frag->ofs; frag 206 fs/jffs2/read.c readlen = min(frag->size - fragofs, end - offset); frag 208 fs/jffs2/read.c frag->ofs+fragofs, frag 209 fs/jffs2/read.c frag->ofs + fragofs+readlen, frag 210 fs/jffs2/read.c ref_offset(frag->node->raw), frag 211 fs/jffs2/read.c ref_flags(frag->node->raw)); frag 212 fs/jffs2/read.c ret = jffs2_read_dnode(c, f, frag->node, buf, fragofs + frag->ofs - frag->node->ofs, readlen); frag 222 fs/jffs2/read.c frag = frag_next(frag); frag 187 fs/jffs2/wbuf.c struct jffs2_node_frag *frag; frag 202 fs/jffs2/wbuf.c frag = jffs2_lookup_node_frag(&f->fragtree, je32_to_cpu(node->i.offset)); frag 203 fs/jffs2/wbuf.c BUG_ON(!frag); frag 205 fs/jffs2/wbuf.c while (!frag->node || frag->node->raw != raw) { frag 206 fs/jffs2/wbuf.c frag = frag_next(frag); frag 207 fs/jffs2/wbuf.c BUG_ON(!frag); frag 209 fs/jffs2/wbuf.c dbg_noderef("Will replace ->raw in full_dnode at %p\n", frag->node); frag 210 fs/jffs2/wbuf.c return &frag->node->raw; frag 130 fs/squashfs/inode.c unsigned int frag_offset, frag; frag 140 fs/squashfs/inode.c frag = le32_to_cpu(sqsh_ino->fragment); frag 141 fs/squashfs/inode.c if (frag != SQUASHFS_INVALID_FRAG) { frag 143 fs/squashfs/inode.c frag_size = squashfs_frag_lookup(sb, frag, &frag_blk); frag 173 fs/squashfs/inode.c unsigned int frag_offset, frag; frag 183 fs/squashfs/inode.c frag = le32_to_cpu(sqsh_ino->fragment); frag 184 fs/squashfs/inode.c if (frag != SQUASHFS_INVALID_FRAG) { frag 186 fs/squashfs/inode.c frag_size = squashfs_frag_lookup(sb, frag, &frag_blk); frag 404 fs/ufs/inode.c unsigned frag = fragment & uspi->s_fpbmask; frag 456 fs/ufs/inode.c phys64 += frag; frag 466 fs/ufs/inode.c map_bh(bh_result, sb, phys64 + frag); frag 98 fs/xfs/scrub/refcount.c struct xchk_refcnt_frag *frag; frag 128 fs/xfs/scrub/refcount.c frag = kmem_alloc(sizeof(struct xchk_refcnt_frag), frag 130 fs/xfs/scrub/refcount.c if (!frag) frag 132 fs/xfs/scrub/refcount.c memcpy(&frag->rm, rec, sizeof(frag->rm)); frag 133 fs/xfs/scrub/refcount.c list_add_tail(&frag->list, &refchk->fragments); frag 151 fs/xfs/scrub/refcount.c struct xchk_refcnt_frag *frag; frag 177 fs/xfs/scrub/refcount.c list_for_each_entry(frag, &refchk->fragments, list) { frag 178 fs/xfs/scrub/refcount.c if (frag->rm.rm_startblock < bno) frag 180 fs/xfs/scrub/refcount.c bno = frag->rm.rm_startblock; frag 187 fs/xfs/scrub/refcount.c list_for_each_entry_safe(frag, n, &refchk->fragments, list) { frag 188 fs/xfs/scrub/refcount.c if (frag->rm.rm_startblock > refchk->bno) frag 190 fs/xfs/scrub/refcount.c bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; frag 193 fs/xfs/scrub/refcount.c list_move_tail(&frag->list, &worklist); frag 210 fs/xfs/scrub/refcount.c list_for_each_entry_safe(frag, n, &worklist, list) { frag 211 fs/xfs/scrub/refcount.c bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; frag 217 fs/xfs/scrub/refcount.c list_del(&frag->list); frag 218 fs/xfs/scrub/refcount.c kmem_free(frag); frag 223 fs/xfs/scrub/refcount.c list_for_each_entry_safe(frag, n, &refchk->fragments, list) { frag 224 fs/xfs/scrub/refcount.c bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; frag 225 fs/xfs/scrub/refcount.c if (frag->rm.rm_startblock != rbno) frag 227 fs/xfs/scrub/refcount.c list_move_tail(&frag->list, &worklist); frag 258 fs/xfs/scrub/refcount.c list_for_each_entry_safe(frag, n, &worklist, list) { frag 259 fs/xfs/scrub/refcount.c list_del(&frag->list); frag 260 fs/xfs/scrub/refcount.c kmem_free(frag); frag 262 fs/xfs/scrub/refcount.c list_for_each_entry_safe(frag, n, &refchk->fragments, list) { frag 263 fs/xfs/scrub/refcount.c list_del(&frag->list); frag 264 fs/xfs/scrub/refcount.c kmem_free(frag); frag 285 fs/xfs/scrub/refcount.c struct xchk_refcnt_frag *frag; frag 309 fs/xfs/scrub/refcount.c list_for_each_entry_safe(frag, n, &refchk.fragments, list) { frag 310 fs/xfs/scrub/refcount.c list_del(&frag->list); frag 311 fs/xfs/scrub/refcount.c kmem_free(frag); frag 401 include/linux/ceph/ceph_fs.h __le32 frag; /* which dir fragment */ frag 484 include/linux/ceph/ceph_fs.h __le32 frag; /* this frag splits... */ frag 534 include/linux/ceph/ceph_fs.h __le32 frag; /* fragment */ frag 875 include/linux/mlx5/driver.h unsigned int frag; frag 878 include/linux/mlx5/driver.h frag = ix >> fbc->log_frag_strides; frag 880 include/linux/mlx5/driver.h return fbc->frags[frag].buf + ((fbc->frag_sz_m1 & ix) << fbc->log_stride); frag 460 include/linux/mlx5/mlx5_ifc.h u8 frag[0x1]; frag 88 include/linux/perf_event.h struct perf_raw_frag frag; frag 1426 include/linux/perf_event.h static __always_inline bool perf_raw_frag_last(const struct perf_raw_frag *frag) frag 1428 include/linux/perf_event.h return frag->pad < sizeof(u64); frag 325 include/linux/skbuff.h static inline unsigned int skb_frag_size(const skb_frag_t *frag) frag 327 include/linux/skbuff.h return frag->bv_len; frag 335 include/linux/skbuff.h static inline void skb_frag_size_set(skb_frag_t *frag, unsigned int size) frag 337 include/linux/skbuff.h frag->bv_len = size; frag 345 include/linux/skbuff.h static inline void skb_frag_size_add(skb_frag_t *frag, int delta) frag 347 include/linux/skbuff.h frag->bv_len += delta; frag 355 include/linux/skbuff.h static inline void skb_frag_size_sub(skb_frag_t *frag, int delta) frag 357 include/linux/skbuff.h frag->bv_len -= delta; frag 2107 include/linux/skbuff.h skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2114 include/linux/skbuff.h frag->bv_page = page; frag 2115 include/linux/skbuff.h frag->bv_offset = off; frag 2116 include/linux/skbuff.h skb_frag_size_set(frag, size); frag 2898 include/linux/skbuff.h static inline unsigned int skb_frag_off(const skb_frag_t *frag) frag 2900 include/linux/skbuff.h return frag->bv_offset; frag 2908 include/linux/skbuff.h static inline void skb_frag_off_add(skb_frag_t *frag, int delta) frag 2910 include/linux/skbuff.h frag->bv_offset += delta; frag 2918 include/linux/skbuff.h static inline void skb_frag_off_set(skb_frag_t *frag, unsigned int offset) frag 2920 include/linux/skbuff.h frag->bv_offset = offset; frag 2940 include/linux/skbuff.h static inline struct page *skb_frag_page(const skb_frag_t *frag) frag 2942 include/linux/skbuff.h return frag->bv_page; frag 2951 include/linux/skbuff.h static inline void __skb_frag_ref(skb_frag_t *frag) frag 2953 include/linux/skbuff.h get_page(skb_frag_page(frag)); frag 2974 include/linux/skbuff.h static inline void __skb_frag_unref(skb_frag_t *frag) frag 2976 include/linux/skbuff.h put_page(skb_frag_page(frag)); frag 2998 include/linux/skbuff.h static inline void *skb_frag_address(const skb_frag_t *frag) frag 3000 include/linux/skbuff.h return page_address(skb_frag_page(frag)) + skb_frag_off(frag); frag 3010 include/linux/skbuff.h static inline void *skb_frag_address_safe(const skb_frag_t *frag) frag 3012 include/linux/skbuff.h void *ptr = page_address(skb_frag_page(frag)); frag 3016 include/linux/skbuff.h return ptr + skb_frag_off(frag); frag 3037 include/linux/skbuff.h static inline void __skb_frag_set_page(skb_frag_t *frag, struct page *page) frag 3039 include/linux/skbuff.h frag->bv_page = page; frag 3070 include/linux/skbuff.h const skb_frag_t *frag, frag 3074 include/linux/skbuff.h return dma_map_page(dev, skb_frag_page(frag), frag 3075 include/linux/skbuff.h skb_frag_off(frag) + offset, size, dir); frag 3242 include/linux/skbuff.h const skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; frag 3244 include/linux/skbuff.h return page == skb_frag_page(frag) && frag 3245 include/linux/skbuff.h off == skb_frag_off(frag) + skb_frag_size(frag); frag 1324 include/net/bluetooth/hci.h __u8 frag[0]; frag 1332 include/net/bluetooth/hci.h __u8 frag[0]; frag 44 include/net/cfg80211-wext.h struct iw_param *frag, char *extra); frag 47 include/net/cfg80211-wext.h struct iw_param *frag, char *extra); frag 167 include/net/ip.h struct sk_buff *frag; frag 179 include/net/ip.h struct sk_buff *skb = iter->frag; frag 181 include/net/ip.h iter->frag = skb->next; frag 156 include/net/ipv6.h struct sk_buff *frag; frag 170 include/net/ipv6.h struct sk_buff *skb = iter->frag; frag 172 include/net/ipv6.h iter->frag = skb->next; frag 82 include/uapi/linux/icmp.h } frag; frag 912 include/uapi/linux/wireless.h struct iw_param frag; /* Fragmentation threshold */ frag 6410 kernel/events/core.c struct perf_raw_frag *frag = &raw->frag; frag 6414 kernel/events/core.c if (frag->copy) { frag 6415 kernel/events/core.c __output_custom(handle, frag->copy, frag 6416 kernel/events/core.c frag->data, frag->size); frag 6418 kernel/events/core.c __output_copy(handle, frag->data, frag 6419 kernel/events/core.c frag->size); frag 6421 kernel/events/core.c if (perf_raw_frag_last(frag)) frag 6423 kernel/events/core.c frag = frag->next; frag 6425 kernel/events/core.c if (frag->pad) frag 6426 kernel/events/core.c __output_skip(handle, NULL, frag->pad); frag 6613 kernel/events/core.c struct perf_raw_frag *frag = &raw->frag; frag 6617 kernel/events/core.c sum += frag->size; frag 6618 kernel/events/core.c if (perf_raw_frag_last(frag)) frag 6620 kernel/events/core.c frag = frag->next; frag 6625 kernel/events/core.c frag->pad = raw->size - sum; frag 8676 kernel/events/core.c void *record = data->raw->frag.data; frag 8730 kernel/events/core.c .frag = { frag 465 kernel/trace/bpf_trace.c .frag = { frag 517 kernel/trace/bpf_trace.c struct perf_raw_frag frag = { frag 523 kernel/trace/bpf_trace.c .frag = { frag 525 kernel/trace/bpf_trace.c .next = ctx_size ? &frag : NULL, frag 946 net/appletalk/ddp.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 949 net/appletalk/ddp.c end = start + skb_frag_size(frag); frag 955 net/appletalk/ddp.c vaddr = kmap_atomic(skb_frag_page(frag)); frag 956 net/appletalk/ddp.c sum = atalk_sum_partial(vaddr + skb_frag_off(frag) + frag 393 net/bluetooth/af_bluetooth.c struct sk_buff *frag; frag 398 net/bluetooth/af_bluetooth.c skb_walk_frags(skb, frag) { frag 399 net/bluetooth/af_bluetooth.c if (chunk <= frag->len) { frag 403 net/bluetooth/af_bluetooth.c __skb_pull(frag, chunk); frag 405 net/bluetooth/af_bluetooth.c } else if (frag->len) { frag 407 net/bluetooth/af_bluetooth.c chunk -= frag->len; frag 408 net/bluetooth/af_bluetooth.c skb->len -= frag->len; frag 409 net/bluetooth/af_bluetooth.c skb->data_len -= frag->len; frag 410 net/bluetooth/af_bluetooth.c __skb_pull(frag, frag->len); frag 234 net/bluetooth/amp.c memcpy(assoc->data + assoc->offset, rp->frag, frag_len); frag 243 net/bluetooth/amp.c memcpy(assoc->data + assoc->offset, rp->frag, rem_len); frag 366 net/bluetooth/amp.c memcpy(cp->frag, ctrl->assoc, frag_len); frag 2159 net/bluetooth/l2cap_core.c struct sk_buff **frag; frag 2169 net/bluetooth/l2cap_core.c frag = &skb_shinfo(skb)->frag_list; frag 2180 net/bluetooth/l2cap_core.c *frag = tmp; frag 2182 net/bluetooth/l2cap_core.c if (!copy_from_iter_full(skb_put(*frag, count), count, frag 2189 net/bluetooth/l2cap_core.c skb->len += (*frag)->len; frag 2190 net/bluetooth/l2cap_core.c skb->data_len += (*frag)->len; frag 2192 net/bluetooth/l2cap_core.c frag = &(*frag)->next; frag 2925 net/bluetooth/l2cap_core.c struct sk_buff *skb, **frag; frag 2965 net/bluetooth/l2cap_core.c frag = &skb_shinfo(skb)->frag_list; frag 2969 net/bluetooth/l2cap_core.c *frag = bt_skb_alloc(count, GFP_KERNEL); frag 2970 net/bluetooth/l2cap_core.c if (!*frag) frag 2973 net/bluetooth/l2cap_core.c skb_put_data(*frag, data, count); frag 2978 net/bluetooth/l2cap_core.c frag = &(*frag)->next; frag 60 net/bridge/netfilter/nf_conntrack_bridge.c struct sk_buff *frag; frag 69 net/bridge/netfilter/nf_conntrack_bridge.c skb_walk_frags(skb, frag) { frag 70 net/bridge/netfilter/nf_conntrack_bridge.c if (frag->len > mtu || frag 71 net/bridge/netfilter/nf_conntrack_bridge.c skb_headroom(frag) < hlen + ll_rs) frag 74 net/bridge/netfilter/nf_conntrack_bridge.c if (skb_shared(frag)) frag 81 net/bridge/netfilter/nf_conntrack_bridge.c if (iter.frag) frag 86 net/bridge/netfilter/nf_conntrack_bridge.c if (err || !iter.frag) frag 441 net/core/datagram.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 445 net/core/datagram.c end = start + skb_frag_size(frag); frag 447 net/core/datagram.c struct page *page = skb_frag_page(frag); frag 453 net/core/datagram.c vaddr + skb_frag_off(frag) + offset - start, frag 573 net/core/datagram.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 577 net/core/datagram.c end = start + skb_frag_size(frag); frag 583 net/core/datagram.c copied = copy_page_from_iter(skb_frag_page(frag), frag 584 net/core/datagram.c skb_frag_off(frag) + offset - start, frag 626 net/core/datagram.c int frag = skb_shinfo(skb)->nr_frags; frag 635 net/core/datagram.c if (frag == MAX_SKB_FRAGS) frag 639 net/core/datagram.c MAX_SKB_FRAGS - frag, &start); frag 658 net/core/datagram.c skb_fill_page_desc(skb, frag++, pages[n], start, size); frag 3060 net/core/dev.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 3062 net/core/dev.c if (PageHighMem(skb_frag_page(frag))) frag 556 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 558 net/core/skbuff.c skb_frag_size_add(frag, size); frag 783 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 788 net/core/skbuff.c skb_frag_foreach_page(frag, skb_frag_off(frag), frag 789 net/core/skbuff.c skb_frag_size(frag), p, p_off, p_len, frag 1928 net/core/skbuff.c struct sk_buff *frag; frag 1963 net/core/skbuff.c for (fragp = &skb_shinfo(skb)->frag_list; (frag = *fragp); frag 1964 net/core/skbuff.c fragp = &frag->next) { frag 1965 net/core/skbuff.c int end = offset + frag->len; frag 1967 net/core/skbuff.c if (skb_shared(frag)) { frag 1970 net/core/skbuff.c nfrag = skb_clone(frag, GFP_ATOMIC); frag 1974 net/core/skbuff.c nfrag->next = frag->next; frag 1975 net/core/skbuff.c consume_skb(frag); frag 1976 net/core/skbuff.c frag = nfrag; frag 1977 net/core/skbuff.c *fragp = frag; frag 1986 net/core/skbuff.c unlikely((err = pskb_trim(frag, len - offset)))) frag 1989 net/core/skbuff.c if (frag->next) frag 1990 net/core/skbuff.c skb_drop_list(&frag->next); frag 2147 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[k]; frag 2149 net/core/skbuff.c *frag = skb_shinfo(skb)->frags[i]; frag 2151 net/core/skbuff.c skb_frag_off_add(frag, eat); frag 2152 net/core/skbuff.c skb_frag_size_sub(frag, eat); frag 2488 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[fragidx]; frag 2490 net/core/skbuff.c if (offset < skb_frag_size(frag)) frag 2493 net/core/skbuff.c offset -= skb_frag_size(frag); frag 2497 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[fragidx]; frag 2499 net/core/skbuff.c slen = min_t(size_t, len, skb_frag_size(frag) - offset); frag 2502 net/core/skbuff.c ret = kernel_sendpage_locked(sk, skb_frag_page(frag), frag 2503 net/core/skbuff.c skb_frag_off(frag) + offset, frag 2570 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2575 net/core/skbuff.c end = start + skb_frag_size(frag); frag 2584 net/core/skbuff.c skb_frag_foreach_page(frag, frag 2585 net/core/skbuff.c skb_frag_off(frag) + offset - start, frag 2650 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2654 net/core/skbuff.c end = start + skb_frag_size(frag); frag 2664 net/core/skbuff.c skb_frag_foreach_page(frag, frag 2665 net/core/skbuff.c skb_frag_off(frag) + offset - start, frag 2754 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 2763 net/core/skbuff.c skb_frag_foreach_page(frag, frag 2764 net/core/skbuff.c skb_frag_off(frag) + offset - start, frag 3469 net/core/skbuff.c skb_frag_t *frag; frag 3491 net/core/skbuff.c frag = &skb_shinfo(st->cur_skb)->frags[st->frag_idx]; frag 3492 net/core/skbuff.c block_limit = skb_frag_size(frag) + st->stepped_offset; frag 3496 net/core/skbuff.c st->frag_data = kmap_atomic(skb_frag_page(frag)); frag 3498 net/core/skbuff.c *data = (u8 *) st->frag_data + skb_frag_off(frag) + frag 3510 net/core/skbuff.c st->stepped_offset += skb_frag_size(frag); frag 3656 net/core/skbuff.c skb_frag_t *frag = skb_shinfo(head_skb)->frags; frag 3772 net/core/skbuff.c frag = skb_shinfo(list_skb)->frags; frag 3779 net/core/skbuff.c size = skb_frag_size(frag); frag 3785 net/core/skbuff.c frag++; frag 3866 net/core/skbuff.c frag = skb_shinfo(list_skb)->frags; frag 3875 net/core/skbuff.c frag--; frag 3894 net/core/skbuff.c *nskb_frag = (i < 0) ? skb_head_frag_to_page_desc(frag_skb) : *frag; frag 3907 net/core/skbuff.c frag++; frag 4002 net/core/skbuff.c skb_frag_t *frag; frag 4014 net/core/skbuff.c frag = pinfo->frags + nr_frags; frag 4017 net/core/skbuff.c *--frag = *--frag2; frag 4020 net/core/skbuff.c skb_frag_off_add(frag, offset); frag 4021 net/core/skbuff.c skb_frag_size_sub(frag, offset); frag 4035 net/core/skbuff.c skb_frag_t *frag = pinfo->frags + nr_frags; frag 4049 net/core/skbuff.c __skb_frag_set_page(frag, page); frag 4050 net/core/skbuff.c skb_frag_off_set(frag, first_offset); frag 4051 net/core/skbuff.c skb_frag_size_set(frag, first_size); frag 4053 net/core/skbuff.c memcpy(frag + 1, skbinfo->frags, sizeof(*frag) * skbinfo->nr_frags); frag 4190 net/core/skbuff.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 4196 net/core/skbuff.c sg_set_page(&sg[elt], skb_frag_page(frag), copy, frag 4197 net/core/skbuff.c skb_frag_off(frag) + offset - start); frag 55 net/core/tso.c skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; frag 58 net/core/tso.c tso->size = skb_frag_size(frag); frag 59 net/core/tso.c tso->data = skb_frag_address(frag); frag 79 net/core/tso.c skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; frag 82 net/core/tso.c tso->size = skb_frag_size(frag); frag 83 net/core/tso.c tso->data = skb_frag_address(frag); frag 46 net/ieee802154/6lowpan/reassembly.c struct inet_frag_queue *frag = from_timer(frag, t, timer); frag 49 net/ieee802154/6lowpan/reassembly.c fq = container_of(frag, struct frag_queue, q); frag 105 net/ieee802154/6lowpan/tx.c struct sk_buff *frag; frag 108 net/ieee802154/6lowpan/tx.c frag = alloc_skb(wdev->needed_headroom + wdev->needed_tailroom + size, frag 111 net/ieee802154/6lowpan/tx.c if (likely(frag)) { frag 112 net/ieee802154/6lowpan/tx.c frag->dev = wdev; frag 113 net/ieee802154/6lowpan/tx.c frag->priority = skb->priority; frag 114 net/ieee802154/6lowpan/tx.c skb_reserve(frag, wdev->needed_headroom); frag 115 net/ieee802154/6lowpan/tx.c skb_reset_network_header(frag); frag 116 net/ieee802154/6lowpan/tx.c *mac_cb(frag) = *mac_cb(skb); frag 119 net/ieee802154/6lowpan/tx.c skb_put_data(frag, skb_mac_header(skb), skb->mac_len); frag 121 net/ieee802154/6lowpan/tx.c rc = wpan_dev_hard_header(frag, wdev, frag 125 net/ieee802154/6lowpan/tx.c kfree_skb(frag); frag 130 net/ieee802154/6lowpan/tx.c frag = ERR_PTR(-ENOMEM); frag 133 net/ieee802154/6lowpan/tx.c return frag; frag 141 net/ieee802154/6lowpan/tx.c struct sk_buff *frag; frag 145 net/ieee802154/6lowpan/tx.c frag = lowpan_alloc_frag(skb, frag_hdrlen + len, wpan_hdr, frag1); frag 146 net/ieee802154/6lowpan/tx.c if (IS_ERR(frag)) frag 147 net/ieee802154/6lowpan/tx.c return PTR_ERR(frag); frag 149 net/ieee802154/6lowpan/tx.c skb_put_data(frag, frag_hdr, frag_hdrlen); frag 150 net/ieee802154/6lowpan/tx.c skb_put_data(frag, skb_network_header(skb) + offset, len); frag 152 net/ieee802154/6lowpan/tx.c raw_dump_table(__func__, " fragment dump", frag->data, frag->len); frag 154 net/ieee802154/6lowpan/tx.c return dev_queue_xmit(frag); frag 836 net/ipv4/icmp.c info = ntohs(icmph->un.frag.mtu); frag 135 net/ipv4/ip_fragment.c struct inet_frag_queue *frag = from_timer(frag, t, timer); frag 142 net/ipv4/ip_fragment.c qp = container_of(frag, struct ipq, q); frag 595 net/ipv4/ip_output.c iter->frag = skb_shinfo(skb)->frag_list; frag 613 net/ipv4/ip_output.c struct sk_buff *to = iter->frag; frag 626 net/ipv4/ip_output.c struct sk_buff *frag; frag 628 net/ipv4/ip_output.c frag = iter->frag; frag 629 net/ipv4/ip_output.c frag->ip_summed = CHECKSUM_NONE; frag 630 net/ipv4/ip_output.c skb_reset_transport_header(frag); frag 631 net/ipv4/ip_output.c __skb_push(frag, hlen); frag 632 net/ipv4/ip_output.c skb_reset_network_header(frag); frag 633 net/ipv4/ip_output.c memcpy(skb_network_header(frag), iph, hlen); frag 634 net/ipv4/ip_output.c iter->iph = ip_hdr(frag); frag 636 net/ipv4/ip_output.c iph->tot_len = htons(frag->len); frag 637 net/ipv4/ip_output.c ip_copy_metadata(frag, skb); frag 640 net/ipv4/ip_output.c if (frag->next) frag 810 net/ipv4/ip_output.c struct sk_buff *frag, *frag2; frag 820 net/ipv4/ip_output.c skb_walk_frags(skb, frag) { frag 822 net/ipv4/ip_output.c if (frag->len > mtu || frag 823 net/ipv4/ip_output.c ((frag->len & 7) && frag->next) || frag 824 net/ipv4/ip_output.c skb_headroom(frag) < hlen + ll_rs) frag 828 net/ipv4/ip_output.c if (skb_shared(frag)) frag 831 net/ipv4/ip_output.c BUG_ON(frag->sk); frag 833 net/ipv4/ip_output.c frag->sk = skb->sk; frag 834 net/ipv4/ip_output.c frag->destructor = sock_wfree; frag 836 net/ipv4/ip_output.c skb->truesize -= frag->truesize; frag 845 net/ipv4/ip_output.c if (iter.frag) { frag 855 net/ipv4/ip_output.c if (err || !iter.frag) frag 866 net/ipv4/ip_output.c kfree_skb_list(iter.frag); frag 873 net/ipv4/ip_output.c if (frag2 == frag) frag 192 net/ipv4/netfilter/nf_log_ipv4.c ntohs(ich->un.frag.mtu)); frag 129 net/ipv6/esp6_offload.c __be16 frag; frag 131 net/ipv6/esp6_offload.c ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &proto, &frag); frag 612 net/ipv6/ip6_output.c iter->frag = skb_shinfo(skb)->frag_list; frag 643 net/ipv6/ip6_output.c struct sk_buff *frag = iter->frag; frag 647 net/ipv6/ip6_output.c frag->ip_summed = CHECKSUM_NONE; frag 648 net/ipv6/ip6_output.c skb_reset_transport_header(frag); frag 649 net/ipv6/ip6_output.c fh = __skb_push(frag, sizeof(struct frag_hdr)); frag 650 net/ipv6/ip6_output.c __skb_push(frag, hlen); frag 651 net/ipv6/ip6_output.c skb_reset_network_header(frag); frag 652 net/ipv6/ip6_output.c memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); frag 657 net/ipv6/ip6_output.c if (frag->next) frag 660 net/ipv6/ip6_output.c ipv6_hdr(frag)->payload_len = htons(frag->len - sizeof(struct ipv6hdr)); frag 661 net/ipv6/ip6_output.c ip6_copy_metadata(frag, skb); frag 689 net/ipv6/ip6_output.c struct sk_buff *frag; frag 703 net/ipv6/ip6_output.c frag = alloc_skb(len + state->hlen + sizeof(struct frag_hdr) + frag 705 net/ipv6/ip6_output.c if (!frag) frag 712 net/ipv6/ip6_output.c ip6_copy_metadata(frag, skb); frag 713 net/ipv6/ip6_output.c skb_reserve(frag, state->hroom); frag 714 net/ipv6/ip6_output.c skb_put(frag, len + state->hlen + sizeof(struct frag_hdr)); frag 715 net/ipv6/ip6_output.c skb_reset_network_header(frag); frag 716 net/ipv6/ip6_output.c fh = (struct frag_hdr *)(skb_network_header(frag) + state->hlen); frag 717 net/ipv6/ip6_output.c frag->transport_header = (frag->network_header + state->hlen + frag 725 net/ipv6/ip6_output.c skb_set_owner_w(frag, skb->sk); frag 730 net/ipv6/ip6_output.c skb_copy_from_linear_data(skb, skb_network_header(frag), state->hlen); frag 732 net/ipv6/ip6_output.c fragnexthdr_offset = skb_network_header(frag); frag 746 net/ipv6/ip6_output.c BUG_ON(skb_copy_bits(skb, state->ptr, skb_transport_header(frag), frag 753 net/ipv6/ip6_output.c ipv6_hdr(frag)->payload_len = htons(frag->len - sizeof(struct ipv6hdr)); frag 758 net/ipv6/ip6_output.c return frag; frag 765 net/ipv6/ip6_output.c struct sk_buff *frag; frag 829 net/ipv6/ip6_output.c skb_walk_frags(skb, frag) { frag 831 net/ipv6/ip6_output.c if (frag->len > mtu || frag 832 net/ipv6/ip6_output.c ((frag->len & 7) && frag->next) || frag 833 net/ipv6/ip6_output.c skb_headroom(frag) < (hlen + hroom + sizeof(struct frag_hdr))) frag 837 net/ipv6/ip6_output.c if (skb_shared(frag)) frag 840 net/ipv6/ip6_output.c BUG_ON(frag->sk); frag 842 net/ipv6/ip6_output.c frag->sk = skb->sk; frag 843 net/ipv6/ip6_output.c frag->destructor = sock_wfree; frag 845 net/ipv6/ip6_output.c skb->truesize -= frag->truesize; frag 856 net/ipv6/ip6_output.c if (iter.frag) frag 865 net/ipv6/ip6_output.c if (err || !iter.frag) frag 879 net/ipv6/ip6_output.c kfree_skb_list(iter.frag); frag 887 net/ipv6/ip6_output.c if (frag2 == frag) frag 909 net/ipv6/ip6_output.c frag = ip6_frag_next(skb, &state); frag 910 net/ipv6/ip6_output.c if (IS_ERR(frag)) { frag 911 net/ipv6/ip6_output.c err = PTR_ERR(frag); frag 918 net/ipv6/ip6_output.c frag->tstamp = tstamp; frag 919 net/ipv6/ip6_output.c err = output(net, sk, frag); frag 184 net/ipv6/netfilter.c if (iter.frag) frag 189 net/ipv6/netfilter.c if (err || !iter.frag) frag 199 net/ipv6/netfilter.c kfree_skb_list(iter.frag); frag 140 net/ipv6/netfilter/nf_conntrack_reasm.c struct inet_frag_queue *frag = from_timer(frag, t, timer); frag 143 net/ipv6/netfilter/nf_conntrack_reasm.c fq = container_of(frag, struct frag_queue, q); frag 73 net/ipv6/reassembly.c struct inet_frag_queue *frag = from_timer(frag, t, timer); frag 76 net/ipv6/reassembly.c fq = container_of(frag, struct frag_queue, q); frag 1226 net/iucv/af_iucv.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1229 net/iucv/af_iucv.c (u32)(addr_t)skb_frag_address(frag); frag 1230 net/iucv/af_iucv.c iba[i + 1].length = (u32)skb_frag_size(frag); frag 1326 net/iucv/af_iucv.c skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; frag 1329 net/iucv/af_iucv.c (u32)(addr_t)skb_frag_address(frag); frag 1330 net/iucv/af_iucv.c iba[i + 1].length = (u32)skb_frag_size(frag); frag 637 net/kcm/kcmsock.c skb_frag_t *frag; frag 641 net/kcm/kcmsock.c frag = &skb_shinfo(skb)->frags[fragidx]; frag 642 net/kcm/kcmsock.c if (WARN_ON(!skb_frag_size(frag))) { frag 648 net/kcm/kcmsock.c skb_frag_page(frag), frag 649 net/kcm/kcmsock.c skb_frag_off(frag) + frag_offset, frag 650 net/kcm/kcmsock.c skb_frag_size(frag) - frag_offset, frag 685 net/kcm/kcmsock.c if (frag_offset < skb_frag_size(frag)) { frag 2087 net/mac80211/rx.c unsigned int frag, unsigned int seq, int rx_queue, frag 2104 net/mac80211/rx.c entry->last_frag = frag; frag 2113 net/mac80211/rx.c unsigned int frag, unsigned int seq, frag 2131 net/mac80211/rx.c entry->last_frag + 1 != frag) frag 2162 net/mac80211/rx.c unsigned int frag, seq; frag 2173 net/mac80211/rx.c frag = sc & IEEE80211_SCTL_FRAG; frag 2180 net/mac80211/rx.c if (likely(!ieee80211_has_morefrags(fc) && frag == 0)) frag 2196 net/mac80211/rx.c if (frag == 0) { frag 2198 net/mac80211/rx.c entry = ieee80211_reassemble_add(rx->sdata, frag, seq, frag 2230 net/mac80211/rx.c entry = ieee80211_reassemble_find(rx->sdata, frag, seq, frag 2268 net/mac80211/rx.c entry->last_frag = frag; frag 1809 net/netfilter/ipvs/ip_vs_core.c u32 mtu = ntohs(ic->un.frag.mtu); frag 533 net/openvswitch/conntrack.c key->ip.frag = OVS_FRAG_TYPE_NONE; frag 1293 net/openvswitch/conntrack.c if (key->ip.frag != OVS_FRAG_TYPE_NONE) { frag 319 net/openvswitch/datapath.c later_key.ip.frag = OVS_FRAG_TYPE_LATER; frag 267 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_LATER; frag 271 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_FIRST; frag 273 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_NONE; frag 562 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_LATER; frag 568 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_FIRST; frag 570 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_NONE; frag 681 net/openvswitch/flow.c if (key->ip.frag == OVS_FRAG_TYPE_LATER) { frag 686 net/openvswitch/flow.c key->ip.frag = OVS_FRAG_TYPE_FIRST; frag 94 net/openvswitch/flow.h u8 frag; /* One of OVS_FRAG_TYPE_*. */ frag 199 net/openvswitch/flow_netlink.c if (match->key->ip.frag != OVS_FRAG_TYPE_LATER) { frag 236 net/openvswitch/flow_netlink.c if (match->key->ip.frag != OVS_FRAG_TYPE_LATER) { frag 1551 net/openvswitch/flow_netlink.c SW_FLOW_KEY_PUT(match, ip.frag, frag 1584 net/openvswitch/flow_netlink.c SW_FLOW_KEY_PUT(match, ip.frag, frag 2082 net/openvswitch/flow_netlink.c ipv4_key->ipv4_frag = output->ip.frag; frag 2098 net/openvswitch/flow_netlink.c ipv6_key->ipv6_frag = output->ip.frag; frag 2128 net/openvswitch/flow_netlink.c swkey->ip.frag != OVS_FRAG_TYPE_LATER) { frag 2730 net/openvswitch/flow_netlink.c if (ipv4_key->ipv4_frag != flow_key->ip.frag) frag 2755 net/openvswitch/flow_netlink.c if (ipv6_key->ipv6_frag != flow_key->ip.frag) frag 159 net/rds/ib_recv.c struct rds_page_frag *frag; frag 178 net/rds/ib_recv.c list_for_each_entry_safe(frag, frag_tmp, &list, f_cache_entry) { frag 179 net/rds/ib_recv.c list_del(&frag->f_cache_entry); frag 180 net/rds/ib_recv.c WARN_ON(!list_empty(&frag->f_item)); frag 181 net/rds/ib_recv.c kmem_cache_free(rds_ib_frag_slab, frag); frag 193 net/rds/ib_recv.c struct rds_page_frag *frag) frag 195 net/rds/ib_recv.c rdsdebug("frag %p page %p\n", frag, sg_page(&frag->f_sg)); frag 197 net/rds/ib_recv.c rds_ib_recv_cache_put(&frag->f_cache_entry, &ic->i_cache_frags); frag 206 net/rds/ib_recv.c struct rds_page_frag *frag; frag 213 net/rds/ib_recv.c list_for_each_entry_safe(frag, pos, &ibinc->ii_frags, f_item) { frag 214 net/rds/ib_recv.c list_del_init(&frag->f_item); frag 215 net/rds/ib_recv.c rds_ib_frag_free(ic, frag); frag 278 net/rds/ib_recv.c struct rds_page_frag *frag; frag 284 net/rds/ib_recv.c frag = container_of(cache_item, struct rds_page_frag, f_cache_entry); frag 288 net/rds/ib_recv.c frag = kmem_cache_alloc(rds_ib_frag_slab, slab_mask); frag 289 net/rds/ib_recv.c if (!frag) frag 292 net/rds/ib_recv.c sg_init_table(&frag->f_sg, 1); frag 293 net/rds/ib_recv.c ret = rds_page_remainder_alloc(&frag->f_sg, frag 296 net/rds/ib_recv.c kmem_cache_free(rds_ib_frag_slab, frag); frag 302 net/rds/ib_recv.c INIT_LIST_HEAD(&frag->f_item); frag 304 net/rds/ib_recv.c return frag; frag 535 net/rds/ib_recv.c struct rds_page_frag *frag; frag 543 net/rds/ib_recv.c frag = list_entry(ibinc->ii_frags.next, struct rds_page_frag, f_item); frag 548 net/rds/ib_recv.c frag = list_entry(frag->f_item.next, frag 558 net/rds/ib_recv.c ret = copy_page_to_iter(sg_page(&frag->f_sg), frag 559 net/rds/ib_recv.c frag->f_sg.offset + frag_off, frag 782 net/rds/ib_recv.c struct rds_page_frag *frag; frag 797 net/rds/ib_recv.c frag = list_entry(ibinc->ii_frags.next, struct rds_page_frag, f_item); frag 809 net/rds/ib_recv.c addr = kmap_atomic(sg_page(&frag->f_sg)); frag 811 net/rds/ib_recv.c src = addr + frag->f_sg.offset + frag_off; frag 831 net/rds/ib_recv.c frag = list_entry(frag->f_item.next, frag 117 net/sched/act_ct.c static int tcf_ct_ipv4_is_fragment(struct sk_buff *skb, bool *frag) frag 127 net/sched/act_ct.c *frag = ip_is_fragment(ip_hdr(skb)); frag 131 net/sched/act_ct.c static int tcf_ct_ipv6_is_fragment(struct sk_buff *skb, bool *frag) frag 147 net/sched/act_ct.c *frag = flags & IP6_FH_F_FRAG; frag 157 net/sched/act_ct.c bool frag; frag 165 net/sched/act_ct.c err = tcf_ct_ipv4_is_fragment(skb, &frag); frag 167 net/sched/act_ct.c err = tcf_ct_ipv6_is_fragment(skb, &frag); frag 168 net/sched/act_ct.c if (err || !frag) frag 1398 net/sctp/associola.c int frag = sctp_mtu_payload(sctp_sk(asoc->base.sk), asoc->pathmtu, frag 1402 net/sctp/associola.c frag = min_t(int, frag, asoc->user_frag); frag 1404 net/sctp/associola.c frag = min_t(int, frag, SCTP_MAX_CHUNK_LEN - frag 1407 net/sctp/associola.c asoc->frag_point = SCTP_TRUNC4(frag); frag 239 net/sctp/chunk.c u8 frag = SCTP_DATA_MIDDLE_FRAG; frag 243 net/sctp/chunk.c frag |= SCTP_DATA_FIRST_FRAG; frag 253 net/sctp/chunk.c frag |= SCTP_DATA_LAST_FRAG; frag 261 net/sctp/chunk.c frag |= SCTP_DATA_SACK_IMM; frag 264 net/sctp/chunk.c chunk = asoc->stream.si->make_datafrag(asoc, sinfo, len, frag, frag 9272 net/sctp/socket.c struct sk_buff *frag; frag 9278 net/sctp/socket.c skb_walk_frags(skb, frag) frag 9279 net/sctp/socket.c sctp_skb_set_owner_r_frag(frag, sk); frag 1023 net/sctp/ulpevent.c struct sk_buff *skb, *frag; frag 1039 net/sctp/ulpevent.c skb_walk_frags(skb, frag) frag 1040 net/sctp/ulpevent.c sctp_ulpevent_receive_data(sctp_skb2event(frag), asoc); frag 1048 net/sctp/ulpevent.c struct sk_buff *skb, *frag; frag 1065 net/sctp/ulpevent.c skb_walk_frags(skb, frag) { frag 1070 net/sctp/ulpevent.c sctp_ulpevent_release_frag_data(sctp_skb2event(frag)); frag 1081 net/sctp/ulpevent.c struct sk_buff *skb, *frag; frag 1089 net/sctp/ulpevent.c skb_walk_frags(skb, frag) { frag 1094 net/sctp/ulpevent.c sctp_ulpevent_release_frag_data(sctp_skb2event(frag)); frag 125 net/tipc/msg.c struct sk_buff *frag = *buf; frag 132 net/tipc/msg.c if (!frag) frag 135 net/tipc/msg.c msg = buf_msg(frag); frag 137 net/tipc/msg.c frag->next = NULL; frag 138 net/tipc/msg.c skb_pull(frag, msg_hdr_sz(msg)); frag 143 net/tipc/msg.c if (unlikely(skb_unclone(frag, GFP_ATOMIC))) frag 145 net/tipc/msg.c head = *headbuf = frag; frag 161 net/tipc/msg.c if (skb_try_coalesce(head, frag, &headstolen, &delta)) { frag 162 net/tipc/msg.c kfree_skb_partial(frag, headstolen); frag 166 net/tipc/msg.c skb_shinfo(head)->frag_list = frag; frag 168 net/tipc/msg.c tail->next = frag; frag 169 net/tipc/msg.c head->truesize += frag->truesize; frag 170 net/tipc/msg.c head->data_len += frag->len; frag 171 net/tipc/msg.c head->len += frag->len; frag 172 net/tipc/msg.c TIPC_SKB_CB(head)->tail = frag; frag 704 net/tipc/msg.c struct sk_buff *frag = NULL; frag 721 net/tipc/msg.c frag = skb_clone(skb, GFP_ATOMIC); frag 722 net/tipc/msg.c if (!frag) frag 724 net/tipc/msg.c frag->next = NULL; frag 725 net/tipc/msg.c if (tipc_buf_append(&head, &frag)) frag 730 net/tipc/msg.c __skb_queue_tail(rcvq, frag); frag 236 net/tls/tls_device.c skb_frag_t *frag; frag 238 net/tls/tls_device.c frag = &record->frags[record->num_frags - 1]; frag 239 net/tls/tls_device.c if (skb_frag_page(frag) == pfrag->page && frag 240 net/tls/tls_device.c skb_frag_off(frag) + skb_frag_size(frag) == pfrag->offset) { frag 241 net/tls/tls_device.c skb_frag_size_add(frag, size); frag 243 net/tls/tls_device.c ++frag; frag 244 net/tls/tls_device.c __skb_frag_set_page(frag, pfrag->page); frag 245 net/tls/tls_device.c skb_frag_off_set(frag, pfrag->offset); frag 246 net/tls/tls_device.c skb_frag_size_set(frag, size); frag 263 net/tls/tls_device.c skb_frag_t *frag; frag 276 net/tls/tls_device.c frag = &record->frags[i]; frag 278 net/tls/tls_device.c sg_set_page(&offload_ctx->sg_tx_data[i], skb_frag_page(frag), frag 279 net/tls/tls_device.c skb_frag_size(frag), skb_frag_off(frag)); frag 280 net/tls/tls_device.c sk_mem_charge(sk, skb_frag_size(frag)); frag 281 net/tls/tls_device.c get_page(skb_frag_page(frag)); frag 326 net/tls/tls_device.c skb_frag_t *frag; frag 332 net/tls/tls_device.c frag = &record->frags[0]; frag 333 net/tls/tls_device.c __skb_frag_set_page(frag, pfrag->page); frag 334 net/tls/tls_device.c skb_frag_off_set(frag, pfrag->offset); frag 335 net/tls/tls_device.c skb_frag_size_set(frag, prepend_size); frag 272 net/tls/tls_device_fallback.c skb_frag_t *frag = &record->frags[i]; frag 274 net/tls/tls_device_fallback.c __skb_frag_ref(frag); frag 275 net/tls/tls_device_fallback.c sg_set_page(sg_in + i, skb_frag_page(frag), frag 276 net/tls/tls_device_fallback.c skb_frag_size(frag), skb_frag_off(frag)); frag 278 net/tls/tls_device_fallback.c remaining -= skb_frag_size(frag); frag 577 net/wireless/util.c const skb_frag_t *frag = &sh->frags[0]; frag 590 net/wireless/util.c frag_page = skb_frag_page(frag); frag 591 net/wireless/util.c frag_ptr = skb_frag_address(frag); frag 592 net/wireless/util.c frag_size = skb_frag_size(frag); frag 593 net/wireless/util.c frag++; frag 605 net/wireless/util.c frag_len = skb_frag_size(frag); frag 607 net/wireless/util.c __frame_add_frag(frame, skb_frag_page(frag), frag 608 net/wireless/util.c skb_frag_address(frag), cur_len, frag_len); frag 610 net/wireless/util.c frag++; frag 291 net/wireless/wext-compat.c struct iw_param *frag, char *extra) frag 298 net/wireless/wext-compat.c if (frag->disabled || !frag->fixed) frag 300 net/wireless/wext-compat.c else if (frag->value < 256) frag 304 net/wireless/wext-compat.c wdev->wiphy->frag_threshold = frag->value & ~0x1; frag 317 net/wireless/wext-compat.c struct iw_param *frag, char *extra) frag 321 net/wireless/wext-compat.c frag->value = wdev->wiphy->frag_threshold; frag 322 net/wireless/wext-compat.c frag->disabled = frag->value == (u32) -1; frag 323 net/wireless/wext-compat.c frag->fixed = 1; frag 68 net/xfrm/xfrm_ipcomp.c skb_frag_t *frag; frag 75 net/xfrm/xfrm_ipcomp.c frag = skb_shinfo(skb)->frags + skb_shinfo(skb)->nr_frags; frag 82 net/xfrm/xfrm_ipcomp.c __skb_frag_set_page(frag, page); frag 88 net/xfrm/xfrm_ipcomp.c skb_frag_off_set(frag, 0); frag 89 net/xfrm/xfrm_ipcomp.c skb_frag_size_set(frag, len); frag 90 net/xfrm/xfrm_ipcomp.c memcpy(skb_frag_address(frag), scratch, len); frag 95 samples/bpf/xdp_adjust_tail_kern.c icmp_hdr->un.frag.mtu = htons(MAX_PCKT_SIZE-sizeof(struct ethhdr)); frag 432 sound/pci/cs4281.c int frag; /* period number */ frag 739 sound/pci/cs4281.c dma->frag = 0; /* for workaround */ frag 1810 sound/pci/cs4281.c cdma->frag++; frag 1811 sound/pci/cs4281.c if ((val & BA0_HDSR_DHTC) && !(cdma->frag & 1)) { frag 1812 sound/pci/cs4281.c cdma->frag--; frag 1817 sound/pci/cs4281.c if ((val & BA0_HDSR_DTC) && (cdma->frag & 1)) { frag 1818 sound/pci/cs4281.c cdma->frag--; frag 358 sound/pci/rme9652/rme9652.c unsigned int offset, frag; frag 379 sound/pci/rme9652/rme9652.c frag = status & RME9652_buffer_id; frag 383 sound/pci/rme9652/rme9652.c if (frag) frag 387 sound/pci/rme9652/rme9652.c } else if (!frag) frag 394 sound/pci/rme9652/rme9652.c if (!frag) frag 398 sound/pci/rme9652/rme9652.c } else if (frag)