avail 519 arch/ia64/kernel/palinfo.c static void feature_set_info(struct seq_file *m, u64 avail, u64 status, u64 control, avail 526 arch/ia64/kernel/palinfo.c for(i=0; i < 64; i++, avail >>=1, status >>=1, control >>=1) { avail 530 arch/ia64/kernel/palinfo.c if (!(avail & 0x1)) /* Print only bits that are available */ avail 536 arch/ia64/kernel/palinfo.c avail & 0x1 ? (status & 0x1 ? avail 538 arch/ia64/kernel/palinfo.c avail & 0x1 ? (control & 0x1 ? avail 544 arch/ia64/kernel/palinfo.c avail & 0x1 ? (status & 0x1 ? avail 546 arch/ia64/kernel/palinfo.c avail & 0x1 ? (control & 0x1 ? avail 554 arch/ia64/kernel/palinfo.c u64 avail=1, status=1, control=1, feature_set=0; avail 558 arch/ia64/kernel/palinfo.c ret = ia64_pal_proc_get_features(&avail, &status, &control, avail 568 arch/ia64/kernel/palinfo.c feature_set_info(m, avail, status, control, feature_set); avail 605 arch/ia64/kernel/palinfo.c u64 avail, status, control; avail 612 arch/ia64/kernel/palinfo.c avail = av.pal_bus_features_val; avail 616 arch/ia64/kernel/palinfo.c for(i=0; i < 64; i++, v++, avail >>=1, status >>=1, control >>=1) { avail 620 arch/ia64/kernel/palinfo.c avail & 0x1 ? "" : "NotImpl", avail 621 arch/ia64/kernel/palinfo.c avail & 0x1 ? (status & 0x1 ? "On" : "Off"): "", avail 622 arch/ia64/kernel/palinfo.c avail & 0x1 ? (control & 0x1 ? "Ctrl" : "NoCtrl"): ""); avail 85 arch/mips/cavium-octeon/crypto/octeon-md5.c const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); avail 91 arch/mips/cavium-octeon/crypto/octeon-md5.c if (avail > len) { avail 92 arch/mips/cavium-octeon/crypto/octeon-md5.c memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), avail 97 arch/mips/cavium-octeon/crypto/octeon-md5.c memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), data, avail 98 arch/mips/cavium-octeon/crypto/octeon-md5.c avail); avail 104 arch/mips/cavium-octeon/crypto/octeon-md5.c data += avail; avail 105 arch/mips/cavium-octeon/crypto/octeon-md5.c len -= avail; avail 1969 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t avail:32; avail 1971 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t avail:32; avail 1984 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t avail:32; avail 1986 arch/mips/include/asm/octeon/cvmx-npi-defs.h uint64_t avail:32; avail 49 arch/powerpc/crypto/md5-glue.c unsigned int avail = 64 - offset; avail 54 arch/powerpc/crypto/md5-glue.c if (avail > len) { avail 60 arch/powerpc/crypto/md5-glue.c memcpy((char *)sctx->block + offset, src, avail); avail 62 arch/powerpc/crypto/md5-glue.c len -= avail; avail 63 arch/powerpc/crypto/md5-glue.c src += avail; avail 78 arch/powerpc/crypto/sha1-spe-glue.c const unsigned int avail = 64 - offset; avail 82 arch/powerpc/crypto/sha1-spe-glue.c if (avail > len) { avail 91 arch/powerpc/crypto/sha1-spe-glue.c memcpy((char *)sctx->buffer + offset, src, avail); avail 97 arch/powerpc/crypto/sha1-spe-glue.c len -= avail; avail 98 arch/powerpc/crypto/sha1-spe-glue.c src += avail; avail 99 arch/powerpc/crypto/sha256-spe-glue.c const unsigned int avail = 64 - offset; avail 103 arch/powerpc/crypto/sha256-spe-glue.c if (avail > len) { avail 112 arch/powerpc/crypto/sha256-spe-glue.c memcpy((char *)sctx->buf + offset, src, avail); avail 118 arch/powerpc/crypto/sha256-spe-glue.c len -= avail; avail 119 arch/powerpc/crypto/sha256-spe-glue.c src += avail; avail 486 arch/powerpc/kernel/setup-common.c bool avail; avail 491 arch/powerpc/kernel/setup-common.c avail = of_device_is_available(dn); avail 492 arch/powerpc/kernel/setup-common.c if (!avail) avail 493 arch/powerpc/kernel/setup-common.c avail = !of_property_match_string(dn, avail 496 arch/powerpc/kernel/setup-common.c set_cpu_present(cpu, avail); avail 146 arch/powerpc/platforms/cell/spufs/backing_ops.c int avail = (ctx->csa.prob.mb_stat_R & 0x00ff00) >> 8; avail 152 arch/powerpc/platforms/cell/spufs/backing_ops.c BUG_ON(avail != (4 - slot)); avail 165 arch/powerpc/platforms/powernv/opal-core.c ssize_t tsz, avail; avail 172 arch/powerpc/platforms/powernv/opal-core.c avail = oc_conf->opalcore_size - pos; avail 173 arch/powerpc/platforms/powernv/opal-core.c if (count > avail) avail 174 arch/powerpc/platforms/powernv/opal-core.c count = avail; avail 37 arch/powerpc/platforms/powernv/opal-msglog.c uint32_t out_pos, avail; avail 56 arch/powerpc/platforms/powernv/opal-msglog.c avail = be32_to_cpu(mc->obuf_size) - out_pos; avail 59 arch/powerpc/platforms/powernv/opal-msglog.c conbuf + out_pos, avail); avail 67 arch/powerpc/platforms/powernv/opal-msglog.c pos -= avail; avail 2178 arch/powerpc/platforms/powernv/pci-ioda.c unsigned int tce32_segsz, base, segs, avail, i; avail 2203 arch/powerpc/platforms/powernv/pci-ioda.c for (avail = 0, i = base; i < base + segs; i++) { avail 2206 arch/powerpc/platforms/powernv/pci-ioda.c avail++; avail 2209 arch/powerpc/platforms/powernv/pci-ioda.c if (avail == segs) avail 280 arch/powerpc/platforms/pseries/vio.c size_t avail, delta, tmp; avail 306 arch/powerpc/platforms/pseries/vio.c avail = vio_cmo.excess.free; avail 313 arch/powerpc/platforms/pseries/vio.c if (avail >= delta) avail 319 arch/powerpc/platforms/pseries/vio.c avail += viodev->cmo.entitled - avail 324 arch/powerpc/platforms/pseries/vio.c if (delta <= avail) { avail 389 arch/powerpc/platforms/pseries/vio.c size_t avail = 0, level, chunk, need; avail 407 arch/powerpc/platforms/pseries/vio.c avail = cmo->entitled - cmo->spare; avail 413 arch/powerpc/platforms/pseries/vio.c avail -= max_t(size_t, viodev->cmo.allocated, VIO_CMO_MIN_ENT); avail 422 arch/powerpc/platforms/pseries/vio.c while (avail) { avail 437 arch/powerpc/platforms/pseries/vio.c chunk = min_t(size_t, avail, VIO_CMO_BALANCE_CHUNK); avail 449 arch/powerpc/platforms/pseries/vio.c avail -= need; avail 34 arch/s390/include/asm/airq.h unsigned long *avail; /* Allocation bit mask for the bit vector */ avail 732 arch/s390/kernel/smp.c static int smp_add_core(struct sclp_core_entry *core, cpumask_t *avail, avail 742 arch/s390/kernel/smp.c cpu = cpumask_first(avail); avail 759 arch/s390/kernel/smp.c cpumask_clear_cpu(cpu, avail); avail 760 arch/s390/kernel/smp.c cpu = cpumask_next(cpu, avail); avail 768 arch/s390/kernel/smp.c cpumask_t avail; avail 774 arch/s390/kernel/smp.c cpumask_xor(&avail, cpu_possible_mask, cpu_present_mask); avail 784 arch/s390/kernel/smp.c nr += smp_add_core(core, &avail, true, early); avail 791 arch/s390/kernel/smp.c nr += smp_add_core(&info->core[i], &avail, configured, early); avail 88 arch/um/drivers/vhost_user.h u64 desc, used, avail, log; avail 603 arch/um/drivers/virtio_uml.c u32 index, u64 desc, u64 used, u64 avail, avail 612 arch/um/drivers/virtio_uml.c .payload.vring_addr.avail = avail, avail 252 arch/um/kernel/um_arch.c unsigned long avail, diff; avail 324 arch/um/kernel/um_arch.c avail = stack - start_vm; avail 325 arch/um/kernel/um_arch.c if (physmem_size > avail) avail 326 arch/um/kernel/um_arch.c virtmem_size = avail; avail 16 arch/x86/events/probe.c unsigned long avail = 0; avail 40 arch/x86/events/probe.c avail |= BIT(bit); avail 43 arch/x86/events/probe.c return avail; avail 26 arch/x86/kernel/resource.c static void remove_e820_regions(struct resource *avail) avail 34 arch/x86/kernel/resource.c resource_clip(avail, entry->addr, avail 39 arch/x86/kernel/resource.c void arch_remove_reservations(struct resource *avail) avail 46 arch/x86/kernel/resource.c if (avail->flags & IORESOURCE_MEM) { avail 47 arch/x86/kernel/resource.c resource_clip(avail, BIOS_ROM_BASE, BIOS_ROM_END); avail 49 arch/x86/kernel/resource.c remove_e820_regions(avail); avail 171 crypto/lrw.c unsigned int avail = w.nbytes; avail 184 crypto/lrw.c } while ((avail -= bs) >= bs); avail 193 crypto/lrw.c err = skcipher_walk_done(&w, avail); avail 155 crypto/md4.c const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); avail 159 crypto/md4.c if (avail > len) { avail 160 crypto/md4.c memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), avail 165 crypto/md4.c memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), avail 166 crypto/md4.c data, avail); avail 169 crypto/md4.c data += avail; avail 170 crypto/md4.c len -= avail; avail 148 crypto/md5.c const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); avail 152 crypto/md5.c if (avail > len) { avail 153 crypto/md5.c memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), avail 158 crypto/md5.c memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), avail 159 crypto/md5.c data, avail); avail 162 crypto/md5.c data += avail; avail 163 crypto/md5.c len -= avail; avail 233 crypto/rmd128.c const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); avail 238 crypto/rmd128.c if (avail > len) { avail 239 crypto/rmd128.c memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), avail 244 crypto/rmd128.c memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), avail 245 crypto/rmd128.c data, avail); avail 248 crypto/rmd128.c data += avail; avail 249 crypto/rmd128.c len -= avail; avail 277 crypto/rmd160.c const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); avail 282 crypto/rmd160.c if (avail > len) { avail 283 crypto/rmd160.c memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), avail 288 crypto/rmd160.c memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), avail 289 crypto/rmd160.c data, avail); avail 292 crypto/rmd160.c data += avail; avail 293 crypto/rmd160.c len -= avail; avail 252 crypto/rmd256.c const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); avail 257 crypto/rmd256.c if (avail > len) { avail 258 crypto/rmd256.c memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), avail 263 crypto/rmd256.c memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), avail 264 crypto/rmd256.c data, avail); avail 267 crypto/rmd256.c data += avail; avail 268 crypto/rmd256.c len -= avail; avail 301 crypto/rmd320.c const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); avail 306 crypto/rmd320.c if (avail > len) { avail 307 crypto/rmd320.c memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), avail 312 crypto/rmd320.c memcpy((char *)rctx->buffer + (sizeof(rctx->buffer) - avail), avail 313 crypto/rmd320.c data, avail); avail 316 crypto/rmd320.c data += avail; avail 317 crypto/rmd320.c len -= avail; avail 105 crypto/xts.c unsigned int avail = w.nbytes; avail 114 crypto/xts.c w.total - w.nbytes + avail < 2 * XTS_BLOCK_SIZE) { avail 123 crypto/xts.c skcipher_walk_done(&w, avail - bs); avail 129 crypto/xts.c } while ((avail -= bs) >= bs); avail 131 crypto/xts.c err = skcipher_walk_done(&w, avail); avail 1596 drivers/atm/idt77252.c unsigned long cl, avail; avail 1601 drivers/atm/idt77252.c avail = card->tst_size - 2; avail 1602 drivers/atm/idt77252.c for (e = 0; e < avail; e++) { avail 1606 drivers/atm/idt77252.c if (e >= avail) { avail 1615 drivers/atm/idt77252.c cl = avail; avail 1626 drivers/atm/idt77252.c if ((cl >= avail) && (card->soft_tst[e].vc == NULL)) { avail 1644 drivers/atm/idt77252.c if (++e == avail) avail 449 drivers/block/ps3vram.c unsigned int offset, avail; avail 453 drivers/block/ps3vram.c avail = priv->cache.page_size - offset; avail 460 drivers/block/ps3vram.c (unsigned int)from, cached, offset, avail, count); avail 462 drivers/block/ps3vram.c if (avail > count) avail 463 drivers/block/ps3vram.c avail = count; avail 464 drivers/block/ps3vram.c memcpy(buf, priv->xdr_buf + cached, avail); avail 466 drivers/block/ps3vram.c buf += avail; avail 467 drivers/block/ps3vram.c count -= avail; avail 468 drivers/block/ps3vram.c from += avail; avail 490 drivers/block/ps3vram.c unsigned int offset, avail; avail 494 drivers/block/ps3vram.c avail = priv->cache.page_size - offset; avail 501 drivers/block/ps3vram.c cached, offset, avail, count); avail 503 drivers/block/ps3vram.c if (avail > count) avail 504 drivers/block/ps3vram.c avail = count; avail 505 drivers/block/ps3vram.c memcpy(priv->xdr_buf + cached, buf, avail); avail 509 drivers/block/ps3vram.c buf += avail; avail 510 drivers/block/ps3vram.c count -= avail; avail 511 drivers/block/ps3vram.c to += avail; avail 219 drivers/bluetooth/bt3c_cs.c int size = 0, avail; avail 228 drivers/bluetooth/bt3c_cs.c avail = bt3c_read(iobase, 0x7006); avail 231 drivers/bluetooth/bt3c_cs.c while (size < avail) { avail 1403 drivers/crypto/chelsio/chtls/chtls_io.c unsigned long avail; avail 1504 drivers/crypto/chelsio/chtls/chtls_io.c avail = skb->len - offset; avail 1505 drivers/crypto/chelsio/chtls/chtls_io.c if (len < avail) avail 1506 drivers/crypto/chelsio/chtls/chtls_io.c avail = len; avail 1511 drivers/crypto/chelsio/chtls/chtls_io.c if (urg_offset < avail) { avail 1513 drivers/crypto/chelsio/chtls/chtls_io.c avail = urg_offset; avail 1518 drivers/crypto/chelsio/chtls/chtls_io.c avail--; avail 1519 drivers/crypto/chelsio/chtls/chtls_io.c if (!avail) avail 1524 drivers/crypto/chelsio/chtls/chtls_io.c if (skb_copy_datagram_msg(skb, offset, msg, avail)) { avail 1531 drivers/crypto/chelsio/chtls/chtls_io.c copied += avail; avail 1532 drivers/crypto/chelsio/chtls/chtls_io.c len -= avail; avail 1533 drivers/crypto/chelsio/chtls/chtls_io.c hws->copied_seq += avail; avail 1538 drivers/crypto/chelsio/chtls/chtls_io.c if ((avail + offset) >= skb->len) { avail 1570 drivers/crypto/chelsio/chtls/chtls_io.c size_t avail; /* amount of available data in current skb */ avail 1635 drivers/crypto/chelsio/chtls/chtls_io.c avail = skb->len - offset; avail 1636 drivers/crypto/chelsio/chtls/chtls_io.c if (len < avail) avail 1637 drivers/crypto/chelsio/chtls/chtls_io.c avail = len; avail 1645 drivers/crypto/chelsio/chtls/chtls_io.c if (urg_offset < avail) { avail 1654 drivers/crypto/chelsio/chtls/chtls_io.c avail--; avail 1656 drivers/crypto/chelsio/chtls/chtls_io.c if (!avail) avail 1660 drivers/crypto/chelsio/chtls/chtls_io.c avail = urg_offset; avail 1675 drivers/crypto/chelsio/chtls/chtls_io.c peek_seq += avail; avail 1676 drivers/crypto/chelsio/chtls/chtls_io.c copied += avail; avail 1677 drivers/crypto/chelsio/chtls/chtls_io.c len -= avail; avail 1689 drivers/crypto/chelsio/chtls/chtls_io.c unsigned long avail; /* amount of available data in current skb */ avail 1805 drivers/crypto/chelsio/chtls/chtls_io.c avail = skb->len - offset; avail 1806 drivers/crypto/chelsio/chtls/chtls_io.c if (len < avail) avail 1807 drivers/crypto/chelsio/chtls/chtls_io.c avail = len; avail 1812 drivers/crypto/chelsio/chtls/chtls_io.c if (urg_offset < avail) { avail 1814 drivers/crypto/chelsio/chtls/chtls_io.c avail = urg_offset; avail 1818 drivers/crypto/chelsio/chtls/chtls_io.c avail--; avail 1819 drivers/crypto/chelsio/chtls/chtls_io.c if (!avail) avail 1827 drivers/crypto/chelsio/chtls/chtls_io.c msg, avail)) { avail 1835 drivers/crypto/chelsio/chtls/chtls_io.c tp->copied_seq += avail; avail 1836 drivers/crypto/chelsio/chtls/chtls_io.c copied += avail; avail 1837 drivers/crypto/chelsio/chtls/chtls_io.c len -= avail; avail 1843 drivers/crypto/chelsio/chtls/chtls_io.c if (avail + offset >= skb->len) { avail 191 drivers/crypto/n2_core.c int avail = spu_queue_num_free(q); avail 193 drivers/crypto/n2_core.c if (avail >= num_entries) avail 299 drivers/dax/super.c long avail; avail 310 drivers/dax/super.c avail = dax_dev->ops->direct_access(dax_dev, pgoff, nr_pages, avail 312 drivers/dax/super.c if (!avail) avail 314 drivers/dax/super.c return min(avail, nr_pages); avail 394 drivers/dma/altera-msgdma.c size_t len, avail; avail 413 drivers/dma/altera-msgdma.c avail = sg_dma_len(sgl); avail 421 drivers/dma/altera-msgdma.c len = min_t(size_t, avail, MSGDMA_MAX_TRANS_LEN); avail 424 drivers/dma/altera-msgdma.c dma_src = sg_dma_address(sgl) + sg_dma_len(sgl) - avail; avail 429 drivers/dma/altera-msgdma.c dma_dst = sg_dma_address(sgl) + sg_dma_len(sgl) - avail; avail 433 drivers/dma/altera-msgdma.c avail -= len; avail 441 drivers/dma/altera-msgdma.c if (avail == 0) { avail 448 drivers/dma/altera-msgdma.c avail = sg_dma_len(sgl); avail 108 drivers/dma/fsl_raid.c int avail; avail 115 drivers/dma/fsl_raid.c avail = FSL_RE_SLOT_AVAIL( avail 119 drivers/dma/fsl_raid.c if (!avail) avail 130 drivers/dma/fsl_raid.c avail--; avail 538 drivers/dma/k3dma.c size_t len, avail, total = 0; avail 549 drivers/dma/k3dma.c avail = sg_dma_len(sg); avail 550 drivers/dma/k3dma.c if (avail > DMA_MAX_SIZE) avail 551 drivers/dma/k3dma.c num += DIV_ROUND_UP(avail, DMA_MAX_SIZE) - 1; avail 562 drivers/dma/k3dma.c avail = sg_dma_len(sg); avail 563 drivers/dma/k3dma.c total += avail; avail 566 drivers/dma/k3dma.c len = min_t(size_t, avail, DMA_MAX_SIZE); avail 579 drivers/dma/k3dma.c avail -= len; avail 580 drivers/dma/k3dma.c } while (avail); avail 596 drivers/dma/k3dma.c size_t len, avail, total = 0; avail 606 drivers/dma/k3dma.c avail = buf_len; avail 607 drivers/dma/k3dma.c if (avail > modulo) avail 608 drivers/dma/k3dma.c num += DIV_ROUND_UP(avail, modulo) - 1; avail 616 drivers/dma/k3dma.c avail = buf_len; avail 617 drivers/dma/k3dma.c total = avail; avail 625 drivers/dma/k3dma.c len = min_t(size_t, avail, modulo); avail 645 drivers/dma/k3dma.c avail -= len; avail 646 drivers/dma/k3dma.c } while (avail); avail 532 drivers/dma/mmp_pdma.c size_t len, avail; avail 546 drivers/dma/mmp_pdma.c avail = sg_dma_len(sgl); avail 549 drivers/dma/mmp_pdma.c len = min_t(size_t, avail, PDMA_MAX_DESC_BYTES); avail 583 drivers/dma/mmp_pdma.c avail -= len; avail 584 drivers/dma/mmp_pdma.c } while (avail); avail 977 drivers/dma/pxa_dma.c size_t len, avail; avail 998 drivers/dma/pxa_dma.c avail = sg_dma_len(sg); avail 999 drivers/dma/pxa_dma.c sw_desc->len += avail; avail 1002 drivers/dma/pxa_dma.c len = min_t(size_t, avail, PDMA_MAX_DESC_BYTES); avail 1012 drivers/dma/pxa_dma.c avail -= len; avail 1013 drivers/dma/pxa_dma.c } while (avail); avail 791 drivers/dma/qcom/bam_dma.c u32 i, srcs, pipe_stts, offset, avail; avail 819 drivers/dma/qcom/bam_dma.c avail = CIRC_CNT(offset, bchan->head, MAX_DESCRIPTORS + 1); avail 822 drivers/dma/qcom/bam_dma.c avail--; avail 827 drivers/dma/qcom/bam_dma.c if (avail < async_desc->xfer_len) avail 836 drivers/dma/qcom/bam_dma.c avail -= async_desc->xfer_len; avail 987 drivers/dma/qcom/bam_dma.c unsigned int avail; avail 1013 drivers/dma/qcom/bam_dma.c avail = CIRC_SPACE(bchan->tail, bchan->head, avail 1016 drivers/dma/qcom/bam_dma.c if (async_desc->num_desc > avail) avail 1017 drivers/dma/qcom/bam_dma.c async_desc->xfer_len = avail; avail 1038 drivers/dma/qcom/bam_dma.c if (((avail <= async_desc->xfer_len) || !vd || avail 551 drivers/dma/zx_dma.c size_t len, avail, total = 0; avail 563 drivers/dma/zx_dma.c avail = sg_dma_len(sg); avail 564 drivers/dma/zx_dma.c if (avail > DMA_MAX_SIZE) avail 565 drivers/dma/zx_dma.c num += DIV_ROUND_UP(avail, DMA_MAX_SIZE) - 1; avail 576 drivers/dma/zx_dma.c avail = sg_dma_len(sg); avail 577 drivers/dma/zx_dma.c total += avail; avail 580 drivers/dma/zx_dma.c len = min_t(size_t, avail, DMA_MAX_SIZE); avail 593 drivers/dma/zx_dma.c avail -= len; avail 594 drivers/dma/zx_dma.c } while (avail); avail 362 drivers/firmware/qcom_scm.c bool avail; avail 365 drivers/firmware/qcom_scm.c avail = __qcom_scm_is_call_available(__scm->dev, avail 368 drivers/firmware/qcom_scm.c if (avail) { avail 1291 drivers/gpu/drm/bridge/tc358767.c u32 req, avail; avail 1299 drivers/gpu/drm/bridge/tc358767.c avail = tc->link.base.num_lanes * tc->link.base.rate; avail 1301 drivers/gpu/drm/bridge/tc358767.c if (req > avail) avail 73 drivers/gpu/drm/gma500/accel_2d.c uint32_t avail = PSB_RSGX32(PSB_CR_2D_SOCIF); avail 76 drivers/gpu/drm/gma500/accel_2d.c while (avail < size) { avail 77 drivers/gpu/drm/gma500/accel_2d.c avail = PSB_RSGX32(PSB_CR_2D_SOCIF); avail 241 drivers/gpu/drm/i915/gvt/aperture_gm.c unsigned long request, avail, max, taken; avail 252 drivers/gpu/drm/i915/gvt/aperture_gm.c avail = max - taken; avail 255 drivers/gpu/drm/i915/gvt/aperture_gm.c if (request > avail) avail 263 drivers/gpu/drm/i915/gvt/aperture_gm.c avail = max - taken; avail 266 drivers/gpu/drm/i915/gvt/aperture_gm.c if (request > avail) avail 274 drivers/gpu/drm/i915/gvt/aperture_gm.c avail = max - taken; avail 277 drivers/gpu/drm/i915/gvt/aperture_gm.c if (request > avail) avail 290 drivers/gpu/drm/i915/gvt/aperture_gm.c BYTES_TO_MB(request), BYTES_TO_MB(avail), avail 67 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c int i, avail, cnt = smp->blk_cnt; avail 80 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c avail = cnt - bitmap_weight(state->state, cnt); avail 81 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c if (nblks > avail) { avail 83 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c nblks, avail); avail 357 drivers/hid/hid-cp2112.c static int cp2112_wait(struct cp2112_device *dev, atomic_t *avail) avail 370 drivers/hid/hid-cp2112.c atomic_read(avail), msecs_to_jiffies(RESPONSE_TIMEOUT)); avail 376 drivers/hid/hid-cp2112.c atomic_set(avail, 0); avail 54 drivers/iio/industrialio-buffer.c size_t avail; avail 67 drivers/iio/industrialio-buffer.c avail = iio_buffer_data_available(buf); avail 69 drivers/iio/industrialio-buffer.c if (avail >= to_wait) { avail 71 drivers/iio/industrialio-buffer.c if (!to_wait && avail < to_flush) avail 73 drivers/iio/industrialio-buffer.c to_flush - avail); avail 79 drivers/iio/industrialio-buffer.c to_wait - avail); avail 83 drivers/iio/industrialio-buffer.c if (avail + flushed >= to_wait) avail 38 drivers/iio/potentiometer/mcp4531.c int avail[3]; avail 78 drivers/iio/potentiometer/mcp4531.c [MCP453x_502] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 5, }, avail 79 drivers/iio/potentiometer/mcp4531.c [MCP453x_103] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 10, }, avail 80 drivers/iio/potentiometer/mcp4531.c [MCP453x_503] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 50, }, avail 81 drivers/iio/potentiometer/mcp4531.c [MCP453x_104] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 100, }, avail 82 drivers/iio/potentiometer/mcp4531.c [MCP454x_502] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 5, }, avail 83 drivers/iio/potentiometer/mcp4531.c [MCP454x_103] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 10, }, avail 84 drivers/iio/potentiometer/mcp4531.c [MCP454x_503] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 50, }, avail 85 drivers/iio/potentiometer/mcp4531.c [MCP454x_104] = { .wipers = 1, .avail = { 0, 1, 128 }, .kohms = 100, }, avail 86 drivers/iio/potentiometer/mcp4531.c [MCP455x_502] = { .wipers = 1, .avail = { 0, 1, 256 }, .kohms = 5, }, avail 87 drivers/iio/potentiometer/mcp4531.c [MCP455x_103] = { .wipers = 1, .avail = { 0, 1, 256 }, .kohms = 10, }, avail 88 drivers/iio/potentiometer/mcp4531.c [MCP455x_503] = { .wipers = 1, .avail = { 0, 1, 256 }, .kohms = 50, }, avail 89 drivers/iio/potentiometer/mcp4531.c [MCP455x_104] = { .wipers = 1, .avail = { 0, 1, 256 }, .kohms = 100, }, avail 90 drivers/iio/potentiometer/mcp4531.c [MCP456x_502] = { .wipers = 1, .avail = { 0, 1, 256 }, .kohms = 5, }, avail 91 drivers/iio/potentiometer/mcp4531.c [MCP456x_103] = { .wipers = 1, .avail = { 0, 1, 256 }, .kohms = 10, }, avail 92 drivers/iio/potentiometer/mcp4531.c [MCP456x_503] = { .wipers = 1, .avail = { 0, 1, 256 }, .kohms = 50, }, avail 93 drivers/iio/potentiometer/mcp4531.c [MCP456x_104] = { .wipers = 1, .avail = { 0, 1, 256 }, .kohms = 100, }, avail 94 drivers/iio/potentiometer/mcp4531.c [MCP463x_502] = { .wipers = 2, .avail = { 0, 1, 128 }, .kohms = 5, }, avail 95 drivers/iio/potentiometer/mcp4531.c [MCP463x_103] = { .wipers = 2, .avail = { 0, 1, 128 }, .kohms = 10, }, avail 96 drivers/iio/potentiometer/mcp4531.c [MCP463x_503] = { .wipers = 2, .avail = { 0, 1, 128 }, .kohms = 50, }, avail 97 drivers/iio/potentiometer/mcp4531.c [MCP463x_104] = { .wipers = 2, .avail = { 0, 1, 128 }, .kohms = 100, }, avail 98 drivers/iio/potentiometer/mcp4531.c [MCP464x_502] = { .wipers = 2, .avail = { 0, 1, 128 }, .kohms = 5, }, avail 99 drivers/iio/potentiometer/mcp4531.c [MCP464x_103] = { .wipers = 2, .avail = { 0, 1, 128 }, .kohms = 10, }, avail 100 drivers/iio/potentiometer/mcp4531.c [MCP464x_503] = { .wipers = 2, .avail = { 0, 1, 128 }, .kohms = 50, }, avail 101 drivers/iio/potentiometer/mcp4531.c [MCP464x_104] = { .wipers = 2, .avail = { 0, 1, 128 }, .kohms = 100, }, avail 102 drivers/iio/potentiometer/mcp4531.c [MCP465x_502] = { .wipers = 2, .avail = { 0, 1, 256 }, .kohms = 5, }, avail 103 drivers/iio/potentiometer/mcp4531.c [MCP465x_103] = { .wipers = 2, .avail = { 0, 1, 256 }, .kohms = 10, }, avail 104 drivers/iio/potentiometer/mcp4531.c [MCP465x_503] = { .wipers = 2, .avail = { 0, 1, 256 }, .kohms = 50, }, avail 105 drivers/iio/potentiometer/mcp4531.c [MCP465x_104] = { .wipers = 2, .avail = { 0, 1, 256 }, .kohms = 100, }, avail 106 drivers/iio/potentiometer/mcp4531.c [MCP466x_502] = { .wipers = 2, .avail = { 0, 1, 256 }, .kohms = 5, }, avail 107 drivers/iio/potentiometer/mcp4531.c [MCP466x_103] = { .wipers = 2, .avail = { 0, 1, 256 }, .kohms = 10, }, avail 108 drivers/iio/potentiometer/mcp4531.c [MCP466x_503] = { .wipers = 2, .avail = { 0, 1, 256 }, .kohms = 50, }, avail 109 drivers/iio/potentiometer/mcp4531.c [MCP466x_104] = { .wipers = 2, .avail = { 0, 1, 256 }, .kohms = 100, }, avail 157 drivers/iio/potentiometer/mcp4531.c *val2 = data->cfg->avail[2]; avail 173 drivers/iio/potentiometer/mcp4531.c *length = ARRAY_SIZE(data->cfg->avail); avail 174 drivers/iio/potentiometer/mcp4531.c *vals = data->cfg->avail; avail 191 drivers/iio/potentiometer/mcp4531.c if (val > data->cfg->avail[2] || val < 0) avail 18 drivers/iio/potentiometer/tpl0102.c int avail[3]; avail 31 drivers/iio/potentiometer/tpl0102.c [CAT5140_503] = { .wipers = 1, .avail = { 0, 1, 255 }, .kohms = 50, }, avail 32 drivers/iio/potentiometer/tpl0102.c [CAT5140_104] = { .wipers = 1, .avail = { 0, 1, 255 }, .kohms = 100, }, avail 34 drivers/iio/potentiometer/tpl0102.c [TPL0102_104] = { .wipers = 2, .avail = { 0, 1, 255 }, .kohms = 100 }, avail 35 drivers/iio/potentiometer/tpl0102.c [TPL0401_103] = { .wipers = 1, .avail = { 0, 1, 127 }, .kohms = 10, }, avail 77 drivers/iio/potentiometer/tpl0102.c *val2 = data->cfg->avail[2] + 1; avail 93 drivers/iio/potentiometer/tpl0102.c *length = ARRAY_SIZE(data->cfg->avail); avail 94 drivers/iio/potentiometer/tpl0102.c *vals = data->cfg->avail; avail 111 drivers/iio/potentiometer/tpl0102.c if (val > data->cfg->avail[2] || val < 0) avail 488 drivers/iio/pressure/bmp280-core.c const int *avail = data->chip_info->oversampling_humid_avail; avail 492 drivers/iio/pressure/bmp280-core.c if (avail[i] == val) { avail 505 drivers/iio/pressure/bmp280-core.c const int *avail = data->chip_info->oversampling_temp_avail; avail 509 drivers/iio/pressure/bmp280-core.c if (avail[i] == val) { avail 522 drivers/iio/pressure/bmp280-core.c const int *avail = data->chip_info->oversampling_press_avail; avail 526 drivers/iio/pressure/bmp280-core.c if (avail[i] == val) { avail 463 drivers/infiniband/hw/hfi1/debugfs.c size_t avail; avail 468 drivers/infiniband/hw/hfi1/debugfs.c avail = hfi1_read_cntrs(dd, NULL, &counters); avail 469 drivers/infiniband/hw/hfi1/debugfs.c rval = simple_read_from_buffer(buf, count, ppos, counters, avail); avail 478 drivers/infiniband/hw/hfi1/debugfs.c size_t avail; avail 483 drivers/infiniband/hw/hfi1/debugfs.c avail = hfi1_read_cntrs(dd, &names, NULL); avail 484 drivers/infiniband/hw/hfi1/debugfs.c rval = simple_read_from_buffer(buf, count, ppos, names, avail); avail 503 drivers/infiniband/hw/hfi1/debugfs.c size_t avail; avail 508 drivers/infiniband/hw/hfi1/debugfs.c avail = hfi1_read_portcntrs(dd->pport, &names, NULL); avail 509 drivers/infiniband/hw/hfi1/debugfs.c rval = simple_read_from_buffer(buf, count, ppos, names, avail); avail 518 drivers/infiniband/hw/hfi1/debugfs.c size_t avail; avail 523 drivers/infiniband/hw/hfi1/debugfs.c avail = hfi1_read_portcntrs(ppd, NULL, &counters); avail 524 drivers/infiniband/hw/hfi1/debugfs.c rval = simple_read_from_buffer(buf, count, ppos, counters, avail); avail 1454 drivers/infiniband/hw/hfi1/pio.c unsigned long avail; avail 1467 drivers/infiniband/hw/hfi1/pio.c avail = (unsigned long)sc->credits - (sc->fill - sc->alloc_free); avail 1468 drivers/infiniband/hw/hfi1/pio.c if (blocks > avail) { avail 1476 drivers/infiniband/hw/hfi1/pio.c avail = avail 1479 drivers/infiniband/hw/hfi1/pio.c if (blocks > avail) { avail 250 drivers/infiniband/hw/hfi1/sdma.c static void sdma_desc_avail(struct sdma_engine *sde, uint avail); avail 1765 drivers/infiniband/hw/hfi1/sdma.c static void sdma_desc_avail(struct sdma_engine *sde, uint avail) avail 1774 drivers/infiniband/hw/hfi1/sdma.c dd_dev_err(sde->dd, "avail: %u\n", avail); avail 1796 drivers/infiniband/hw/hfi1/sdma.c if (num_desc > avail) avail 1798 drivers/infiniband/hw/hfi1/sdma.c avail -= num_desc; avail 150 drivers/infiniband/hw/qib/qib_fs.c size_t avail; avail 153 drivers/infiniband/hw/qib/qib_fs.c avail = dd->f_read_cntrs(dd, *ppos, NULL, &counters); avail 154 drivers/infiniband/hw/qib/qib_fs.c return simple_read_from_buffer(buf, count, ppos, counters, avail); avail 162 drivers/infiniband/hw/qib/qib_fs.c size_t avail; avail 165 drivers/infiniband/hw/qib/qib_fs.c avail = dd->f_read_cntrs(dd, *ppos, &names, NULL); avail 166 drivers/infiniband/hw/qib/qib_fs.c return simple_read_from_buffer(buf, count, ppos, names, avail); avail 184 drivers/infiniband/hw/qib/qib_fs.c size_t avail; avail 187 drivers/infiniband/hw/qib/qib_fs.c avail = dd->f_read_portcntrs(dd, *ppos, 0, &names, NULL); avail 188 drivers/infiniband/hw/qib/qib_fs.c return simple_read_from_buffer(buf, count, ppos, names, avail); avail 196 drivers/infiniband/hw/qib/qib_fs.c size_t avail; avail 199 drivers/infiniband/hw/qib/qib_fs.c avail = dd->f_read_portcntrs(dd, *ppos, 0, NULL, &counters); avail 200 drivers/infiniband/hw/qib/qib_fs.c return simple_read_from_buffer(buf, count, ppos, counters, avail); avail 208 drivers/infiniband/hw/qib/qib_fs.c size_t avail; avail 211 drivers/infiniband/hw/qib/qib_fs.c avail = dd->f_read_portcntrs(dd, *ppos, 1, NULL, &counters); avail 212 drivers/infiniband/hw/qib/qib_fs.c return simple_read_from_buffer(buf, count, ppos, counters, avail); avail 3394 drivers/infiniband/hw/qib/qib_iba6120.c u32 len, u32 avail, struct qib_ctxtdata *rcd) avail 382 drivers/infiniband/hw/qib/qib_tx.c unsigned len, u32 avail, struct qib_ctxtdata *rcd) avail 395 drivers/infiniband/hw/qib/qib_tx.c if (avail) { avail 441 drivers/infiniband/hw/qib/qib_tx.c dd->f_txchk_change(dd, ostart, len, avail, rcd); avail 668 drivers/infiniband/hw/qib/qib_verbs.c void qib_verbs_sdma_desc_avail(struct qib_pportdata *ppd, unsigned avail) avail 687 drivers/infiniband/hw/qib/qib_verbs.c if (qpp->s_tx->txreq.sg_count > avail) avail 689 drivers/infiniband/hw/qib/qib_verbs.c avail -= qpp->s_tx->txreq.sg_count; avail 288 drivers/infiniband/hw/qib/qib_verbs.h void qib_verbs_sdma_desc_avail(struct qib_pportdata *ppd, unsigned avail); avail 1955 drivers/infiniband/sw/rdmavt/qp.c u32 avail; avail 1973 drivers/infiniband/sw/rdmavt/qp.c avail = qp->s_size - (qp->s_head - slast); avail 1975 drivers/infiniband/sw/rdmavt/qp.c avail = slast - qp->s_head; avail 1978 drivers/infiniband/sw/rdmavt/qp.c avail = avail - 1 - avail 1981 drivers/infiniband/sw/rdmavt/qp.c if ((s32)avail <= 0) avail 1983 drivers/infiniband/sw/rdmavt/qp.c qp->s_avail = avail; avail 104 drivers/infiniband/sw/rdmavt/trace_tx.h __field(u32, avail) avail 124 drivers/infiniband/sw/rdmavt/trace_tx.h __entry->avail = qp->s_avail; avail 147 drivers/infiniband/sw/rdmavt/trace_tx.h __entry->avail, avail 1277 drivers/iommu/intel_irq_remapping.c irte->avail, irte->vector, irte->dest_id, avail 549 drivers/md/bcache/super.c size_t avail = fifo_used(&ca->free[RESERVE_PRIO]) + avail 551 drivers/md/bcache/super.c if (prio_buckets(ca) > avail) avail 7021 drivers/md/md.c sector_t avail = rdev->sectors; avail 7023 drivers/md/md.c if (fit && (num_sectors == 0 || num_sectors > avail)) avail 7024 drivers/md/md.c num_sectors = avail; avail 7025 drivers/md/md.c if (avail < num_sectors) avail 68 drivers/media/dvb-core/dmxdev.c ssize_t avail; avail 98 drivers/media/dvb-core/dmxdev.c avail = dvb_ringbuffer_avail(src); avail 99 drivers/media/dvb-core/dmxdev.c if (avail > todo) avail 100 drivers/media/dvb-core/dmxdev.c avail = todo; avail 102 drivers/media/dvb-core/dmxdev.c ret = dvb_ringbuffer_read_user(src, buf, avail); avail 84 drivers/media/dvb-core/dvb_ringbuffer.c ssize_t avail; avail 90 drivers/media/dvb-core/dvb_ringbuffer.c avail = smp_load_acquire(&rbuf->pwrite) - rbuf->pread; avail 91 drivers/media/dvb-core/dvb_ringbuffer.c if (avail < 0) avail 92 drivers/media/dvb-core/dvb_ringbuffer.c avail += rbuf->size; avail 93 drivers/media/dvb-core/dvb_ringbuffer.c return avail; avail 59 drivers/media/pci/ngene/ngene-dvb.c int left, avail; avail 67 drivers/media/pci/ngene/ngene-dvb.c avail = dvb_ringbuffer_avail(&dev->tsin_rbuf); avail 68 drivers/media/pci/ngene/ngene-dvb.c if (avail > left) avail 69 drivers/media/pci/ngene/ngene-dvb.c avail = left; avail 70 drivers/media/pci/ngene/ngene-dvb.c dvb_ringbuffer_read_user(&dev->tsin_rbuf, buf, avail); avail 71 drivers/media/pci/ngene/ngene-dvb.c left -= avail; avail 72 drivers/media/pci/ngene/ngene-dvb.c buf += avail; avail 540 drivers/media/pci/ttpci/av7110.c int avail; avail 543 drivers/media/pci/ttpci/av7110.c avail = dvb_ringbuffer_avail(cibuf); avail 544 drivers/media/pci/ttpci/av7110.c if (avail <= 2) { avail 552 drivers/media/pci/ttpci/av7110.c if (avail < len + 2) { avail 175 drivers/media/pci/ttpci/av7110_ca.c int avail; avail 186 drivers/media/pci/ttpci/av7110_ca.c avail = dvb_ringbuffer_avail(cibuf); avail 187 drivers/media/pci/ttpci/av7110_ca.c if (avail < 4) avail 191 drivers/media/pci/ttpci/av7110_ca.c if (avail < len + 2 || count < len) avail 43 drivers/media/usb/go7007/snd-go7007.c int avail; avail 76 drivers/media/usb/go7007/snd-go7007.c gosnd->avail += frames; avail 89 drivers/media/usb/go7007/snd-go7007.c if (gosnd->avail < runtime->period_size) { avail 93 drivers/media/usb/go7007/snd-go7007.c gosnd->avail -= runtime->period_size; avail 172 drivers/media/usb/go7007/snd-go7007.c gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0; avail 235 drivers/media/usb/go7007/snd-go7007.c gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0; avail 663 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c int avail; avail 664 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c avail = len; avail 665 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if (avail > avail 668 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c avail = avail 672 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c data, avail); avail 673 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c ttusb->muxpack_ptr += avail; avail 675 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c data += avail; avail 676 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c len -= avail; avail 36 drivers/misc/cs5535-mfgpt.c DECLARE_BITMAP(avail, MFGPT_MAX_TIMERS); avail 172 drivers/misc/cs5535-mfgpt.c t = find_first_bit(mfgpt->avail, max); avail 177 drivers/misc/cs5535-mfgpt.c if (!test_bit(timer_nr, mfgpt->avail)) avail 183 drivers/misc/cs5535-mfgpt.c __clear_bit(timer_nr, mfgpt->avail); avail 193 drivers/misc/cs5535-mfgpt.c __set_bit(timer_nr, mfgpt->avail); avail 220 drivers/misc/cs5535-mfgpt.c __set_bit(timer->nr, timer->chip->avail); avail 307 drivers/misc/cs5535-mfgpt.c __set_bit(i, mfgpt->avail); avail 113 drivers/misc/mic/vop/vop_debugfs.c struct vring_avail *avail; avail 138 drivers/misc/mic/vop/vop_debugfs.c avail = vrh->vring.avail; avail 140 drivers/misc/mic/vop/vop_debugfs.c vringh16_to_cpu(vrh, avail->flags), avail 142 drivers/misc/mic/vop/vop_debugfs.c avail->idx) & (num - 1)); avail 144 drivers/misc/mic/vop/vop_debugfs.c vringh16_to_cpu(vrh, avail->flags), avail 145 drivers/misc/mic/vop/vop_debugfs.c vringh16_to_cpu(vrh, avail->idx)); avail 148 drivers/misc/mic/vop/vop_debugfs.c j, avail->ring[j]); avail 327 drivers/misc/mic/vop/vop_vringh.c num, false, vr->vr.desc, vr->vr.avail, avail 752 drivers/mtd/devices/st_spi_fsm.c uint32_t avail; avail 761 drivers/mtd/devices/st_spi_fsm.c avail = stfsm_fifo_available(fsm); avail 762 drivers/mtd/devices/st_spi_fsm.c if (avail) avail 766 drivers/mtd/devices/st_spi_fsm.c words = min(avail, remaining); avail 600 drivers/mtd/nand/raw/fsl_elbc_nand.c int avail; avail 605 drivers/mtd/nand/raw/fsl_elbc_nand.c avail = min((unsigned int)len, avail 607 drivers/mtd/nand/raw/fsl_elbc_nand.c memcpy_fromio(buf, &elbc_fcm_ctrl->addr[elbc_fcm_ctrl->index], avail); avail 608 drivers/mtd/nand/raw/fsl_elbc_nand.c elbc_fcm_ctrl->index += avail; avail 610 drivers/mtd/nand/raw/fsl_elbc_nand.c if (len > avail) avail 614 drivers/mtd/nand/raw/fsl_elbc_nand.c len, avail); avail 582 drivers/mtd/nand/raw/fsl_ifc_nand.c int avail; avail 589 drivers/mtd/nand/raw/fsl_ifc_nand.c avail = min((unsigned int)len, avail 591 drivers/mtd/nand/raw/fsl_ifc_nand.c memcpy_fromio(buf, ifc_nand_ctrl->addr + ifc_nand_ctrl->index, avail); avail 592 drivers/mtd/nand/raw/fsl_ifc_nand.c ifc_nand_ctrl->index += avail; avail 594 drivers/mtd/nand/raw/fsl_ifc_nand.c if (len > avail) avail 597 drivers/mtd/nand/raw/fsl_ifc_nand.c __func__, len, avail); avail 227 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int avail; /* available bits - quota */ avail 415 drivers/net/ethernet/chelsio/cxgb/sge.c p->avail = min(p->avail + delta_avail, s->max_avail); avail 463 drivers/net/ethernet/chelsio/cxgb/sge.c if (len <= s->p[s->port].avail) { avail 464 drivers/net/ethernet/chelsio/cxgb/sge.c s->p[s->port].avail -= len; avail 1126 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int avail = WR_FLITS - flits; avail 1128 drivers/net/ethernet/chelsio/cxgb3/sge.c if (avail > sgl_flits) avail 1129 drivers/net/ethernet/chelsio/cxgb3/sge.c avail = sgl_flits; avail 1130 drivers/net/ethernet/chelsio/cxgb3/sge.c memcpy(&d->flit[flits], fp, avail * sizeof(*fp)); avail 1131 drivers/net/ethernet/chelsio/cxgb3/sge.c sgl_flits -= avail; avail 1136 drivers/net/ethernet/chelsio/cxgb3/sge.c fp += avail; avail 3040 drivers/net/ethernet/chelsio/cxgb3/sge.c int i, avail, ret = -ENOMEM; avail 3175 drivers/net/ethernet/chelsio/cxgb3/sge.c avail = refill_fl(adapter, &q->fl[0], q->fl[0].size, avail 3177 drivers/net/ethernet/chelsio/cxgb3/sge.c if (!avail) { avail 3181 drivers/net/ethernet/chelsio/cxgb3/sge.c if (avail < q->fl[0].size) avail 3183 drivers/net/ethernet/chelsio/cxgb3/sge.c avail); avail 3185 drivers/net/ethernet/chelsio/cxgb3/sge.c avail = refill_fl(adapter, &q->fl[1], q->fl[1].size, avail 3187 drivers/net/ethernet/chelsio/cxgb3/sge.c if (avail < q->fl[1].size) avail 3189 drivers/net/ethernet/chelsio/cxgb3/sge.c avail); avail 114 drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h struct cudbg_mem_desc avail[4]; avail 136 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c memset(meminfo_buff->avail, 0, avail 137 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c ARRAY_SIZE(meminfo_buff->avail) * avail 153 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base = avail 155 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].limit = avail 156 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base + avail 158 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].idx = 0; avail 164 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base = avail 166 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].limit = avail 167 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base + avail 169 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].idx = 1; avail 176 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base = avail 178 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].limit = avail 179 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base + avail 181 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].idx = 3; avail 187 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base = avail 189 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].limit = avail 190 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base + avail 192 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].idx = 4; avail 198 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base = avail 200 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].limit = avail 201 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base + avail 203 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].idx = 2; avail 209 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base = avail 211 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].limit = avail 212 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].base + avail 214 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[i].idx = 5; avail 223 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c sort(meminfo_buff->avail, i, sizeof(struct cudbg_mem_desc), avail 317 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (meminfo_buff->avail[n].limit < avail 318 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo_buff->avail[n + 1].base) avail 319 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c (md++)->base = meminfo_buff->avail[n].limit; avail 321 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (meminfo_buff->avail[n].limit) avail 322 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c (md++)->base = meminfo_buff->avail[n].limit; avail 763 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (mem_info->avail[i].idx == flag) { avail 808 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (meminfo->mem[i].base < meminfo->avail[mc].base && avail 809 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c meminfo->mem[i].limit < meminfo->avail[mc].base) avail 812 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (meminfo->mem[i].base > meminfo->avail[mc].limit) avail 841 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (*out_base < meminfo->avail[mc_idx].base) avail 844 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c *out_base -= meminfo->avail[mc_idx].base; avail 846 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (*out_end > meminfo->avail[mc_idx].limit) avail 847 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c *out_end = meminfo->avail[mc_idx].limit; avail 849 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c *out_end -= meminfo->avail[mc_idx].base; avail 1081 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c *region_size = mem_info.avail[mc_idx].limit - avail 1082 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c mem_info.avail[mc_idx].base; avail 1859 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < ARRAY_SIZE(meminfo.avail); j++) { avail 634 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int avail; /* # of available Rx buffers */ avail 1622 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c loff_t avail = file_inode(file)->i_size; avail 1627 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (pos >= avail) avail 1629 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (count > avail - pos) avail 1630 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c count = avail - pos; avail 2737 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL avail:", fl.avail); avail 2801 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL avail:", fl.avail); avail 2851 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL avail:", fl.avail); avail 2877 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL avail:", fl.avail); avail 2903 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL avail:", fl.avail); avail 2937 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL avail:", fl.avail); avail 3082 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c loff_t avail = file_inode(file)->i_size; avail 3090 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (pos >= avail) avail 3092 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (count > avail - pos) avail 3093 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c count = avail - pos; avail 3284 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c mem_region_show(seq, memory[meminfo.avail[i].idx], avail 3285 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c meminfo.avail[i].base, avail 3286 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c meminfo.avail[i].limit - 1); avail 238 drivers/net/ethernet/chelsio/cxgb4/sge.c return fl->avail - fl->pend_cred <= s->fl_starve_thres; avail 507 drivers/net/ethernet/chelsio/cxgb4/sge.c q->avail--; avail 532 drivers/net/ethernet/chelsio/cxgb4/sge.c q->avail--; avail 597 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int cred = q->avail; avail 637 drivers/net/ethernet/chelsio/cxgb4/sge.c q->avail++; avail 666 drivers/net/ethernet/chelsio/cxgb4/sge.c q->avail++; avail 674 drivers/net/ethernet/chelsio/cxgb4/sge.c out: cred = q->avail - cred; avail 690 drivers/net/ethernet/chelsio/cxgb4/sge.c refill_fl(adap, fl, min(MAX_RX_REFILL, fl_cap(fl) - fl->avail), avail 3087 drivers/net/ethernet/chelsio/cxgb4/sge.c q->avail++; avail 3217 drivers/net/ethernet/chelsio/cxgb4/sge.c if (q->offset >= 0 && fl_cap(&rxq->fl) - rxq->fl.avail >= 16) avail 3439 drivers/net/ethernet/chelsio/cxgb4/sge.c int avail; avail 3442 drivers/net/ethernet/chelsio/cxgb4/sge.c avail = reclaimable(&q->q); avail 3444 drivers/net/ethernet/chelsio/cxgb4/sge.c if (avail) { avail 3445 drivers/net/ethernet/chelsio/cxgb4/sge.c free_tx_desc(adap, &q->q, avail, false); avail 3446 drivers/net/ethernet/chelsio/cxgb4/sge.c q->q.in_use -= avail; avail 3634 drivers/net/ethernet/chelsio/cxgb4/sge.c fl->avail = fl->pend_cred = 0; avail 3976 drivers/net/ethernet/chelsio/cxgb4/sge.c free_rx_bufs(adap, fl, fl->avail); avail 126 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h unsigned int avail; /* # of available RX buffers */ avail 2103 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c R("FL avail:", fl.avail); avail 266 drivers/net/ethernet/chelsio/cxgb4vf/sge.c return fl->avail - fl->pend_cred <= s->fl_starve_thres; avail 434 drivers/net/ethernet/chelsio/cxgb4vf/sge.c int avail = reclaimable(tq); avail 436 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (avail) { avail 441 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (avail > MAX_TX_RECLAIM) avail 442 drivers/net/ethernet/chelsio/cxgb4vf/sge.c avail = MAX_TX_RECLAIM; avail 444 drivers/net/ethernet/chelsio/cxgb4vf/sge.c free_tx_desc(adapter, tq, avail, unmap); avail 445 drivers/net/ethernet/chelsio/cxgb4vf/sge.c tq->in_use -= avail; avail 486 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->avail--; avail 514 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->avail--; avail 610 drivers/net/ethernet/chelsio/cxgb4vf/sge.c unsigned int cred = fl->avail; avail 619 drivers/net/ethernet/chelsio/cxgb4vf/sge.c BUG_ON(fl->avail + n > fl->size - FL_PER_EQ_UNIT); avail 666 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->avail++; avail 695 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->avail++; avail 709 drivers/net/ethernet/chelsio/cxgb4vf/sge.c cred = fl->avail - cred; avail 728 drivers/net/ethernet/chelsio/cxgb4vf/sge.c min((unsigned int)MAX_RX_REFILL, fl_cap(fl) - fl->avail), avail 1724 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->avail++; avail 1809 drivers/net/ethernet/chelsio/cxgb4vf/sge.c BUG_ON(rxq->fl.avail == 0); avail 1872 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl_cap(&rxq->fl) - rxq->fl.avail >= 2*FL_PER_EQ_UNIT) avail 2137 drivers/net/ethernet/chelsio/cxgb4vf/sge.c int avail = reclaimable(&txq->q); avail 2139 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (avail > budget) avail 2140 drivers/net/ethernet/chelsio/cxgb4vf/sge.c avail = budget; avail 2142 drivers/net/ethernet/chelsio/cxgb4vf/sge.c free_tx_desc(adapter, &txq->q, avail, true); avail 2143 drivers/net/ethernet/chelsio/cxgb4vf/sge.c txq->q.in_use -= avail; avail 2146 drivers/net/ethernet/chelsio/cxgb4vf/sge.c budget -= avail; avail 2363 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->avail = 0; avail 2546 drivers/net/ethernet/chelsio/cxgb4vf/sge.c free_rx_bufs(adapter, fl, fl->avail); avail 68 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c FM10K_STAT("mac_rules_avail", hw.swapi.mac.avail), avail 1729 drivers/net/ethernet/intel/fm10k/fm10k_pf.c to->avail = le32_to_cpu(from->avail); avail 75 drivers/net/ethernet/intel/fm10k/fm10k_pf.h __le32 avail; avail 557 drivers/net/ethernet/intel/fm10k/fm10k_type.h u32 avail; avail 67 drivers/net/ethernet/mellanox/mlx4/alloc.c --bitmap->avail; avail 140 drivers/net/ethernet/mellanox/mlx4/alloc.c bitmap->avail -= cnt; avail 149 drivers/net/ethernet/mellanox/mlx4/alloc.c return bitmap->avail; avail 169 drivers/net/ethernet/mellanox/mlx4/alloc.c bitmap->avail += cnt; avail 185 drivers/net/ethernet/mellanox/mlx4/alloc.c bitmap->avail = num - reserved_top - reserved_bot; avail 186 drivers/net/ethernet/mellanox/mlx4/alloc.c bitmap->effective_len = bitmap->avail; avail 245 drivers/net/ethernet/mellanox/mlx4/mlx4.h u32 avail; avail 213 drivers/net/ethernet/mellanox/mlx5/core/uar.c unsigned int *avail; avail 239 drivers/net/ethernet/mellanox/mlx5/core/uar.c avail = &up->fp_avail; avail 242 drivers/net/ethernet/mellanox/mlx5/core/uar.c avail = &up->reg_avail; avail 246 drivers/net/ethernet/mellanox/mlx5/core/uar.c (*avail)--; avail 247 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (!(*avail)) avail 298 drivers/net/ethernet/mellanox/mlx5/core/uar.c unsigned int *avail; avail 314 drivers/net/ethernet/mellanox/mlx5/core/uar.c avail = &up->fp_avail; avail 317 drivers/net/ethernet/mellanox/mlx5/core/uar.c avail = &up->reg_avail; avail 321 drivers/net/ethernet/mellanox/mlx5/core/uar.c (*avail)++; avail 323 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (*avail == 1) avail 1006 drivers/net/ethernet/micrel/ksz884x.c int avail; avail 1611 drivers/net/ethernet/micrel/ksz884x.c info->avail--; avail 1631 drivers/net/ethernet/micrel/ksz884x.c info->avail--; avail 3844 drivers/net/ethernet/micrel/ksz884x.c desc_info->avail = desc_info->alloc; avail 3868 drivers/net/ethernet/micrel/ksz884x.c info->avail = info->alloc; avail 3973 drivers/net/ethernet/micrel/ksz884x.c if (hw->tx_desc_info.avail <= 1) avail 3988 drivers/net/ethernet/micrel/ksz884x.c if (physical > hw->tx_desc_info.avail) avail 3991 drivers/net/ethernet/micrel/ksz884x.c return hw->tx_desc_info.avail; avail 4747 drivers/net/ethernet/micrel/ksz884x.c while (info->avail < info->alloc) { avail 4775 drivers/net/ethernet/micrel/ksz884x.c info->avail++; avail 2637 drivers/net/ethernet/myricom/myri10ge/myri10ge.c int idx, avail, frag_cnt, frag_idx, count, mss, max_segments; avail 2649 drivers/net/ethernet/myricom/myri10ge/myri10ge.c avail = tx->mask - 1 - (tx->req - tx->done); avail 2659 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if ((unlikely(avail < max_segments))) { avail 2865 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if ((avail - count) < MXGEFW_MAX_SEND_DESC) { avail 812 drivers/net/ethernet/neterion/vxge/vxge-main.c int i = 0, j = 0, avail; avail 866 drivers/net/ethernet/neterion/vxge/vxge-main.c avail = vxge_hw_fifo_free_txdl_count_get(fifo_hw); avail 867 drivers/net/ethernet/neterion/vxge/vxge-main.c if (avail == 0) { avail 877 drivers/net/ethernet/neterion/vxge/vxge-main.c if (avail == 1) avail 230 drivers/net/ethernet/pensando/ionic/ionic_dev.h unsigned int avail = q->tail->index; avail 232 drivers/net/ethernet/pensando/ionic/ionic_dev.h if (q->head->index >= avail) avail 233 drivers/net/ethernet/pensando/ionic/ionic_dev.h avail += q->head->left - 1; avail 235 drivers/net/ethernet/pensando/ionic/ionic_dev.h avail -= q->head->index + 1; avail 237 drivers/net/ethernet/pensando/ionic/ionic_dev.h return avail; avail 294 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c u32 avail; avail 297 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c avail = tx_q->dirty_tx - tx_q->cur_tx - 1; avail 299 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c avail = DMA_TX_SIZE - tx_q->cur_tx + tx_q->dirty_tx - 1; avail 301 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c return avail; avail 1847 drivers/net/ethernet/tehuti/tehuti.c int avail = bdx_tx_space(priv) - 8; avail 1848 drivers/net/ethernet/tehuti/tehuti.c if (avail <= 0) { avail 1856 drivers/net/ethernet/tehuti/tehuti.c avail = min(avail, size); avail 1857 drivers/net/ethernet/tehuti/tehuti.c DBG("about to push %d bytes starting %p size %d\n", avail, avail 1859 drivers/net/ethernet/tehuti/tehuti.c bdx_tx_push_desc(priv, data, avail); avail 1860 drivers/net/ethernet/tehuti/tehuti.c size -= avail; avail 1861 drivers/net/ethernet/tehuti/tehuti.c data += avail; avail 1431 drivers/net/ethernet/via/via-velocity.c int avail, dirty, unusable; avail 1444 drivers/net/ethernet/via/via-velocity.c for (avail = vptr->rx.filled & 0xfffc; avail; avail--) { avail 1066 drivers/net/hyperv/netvsc.c u32 *filled, u32 *avail) avail 1075 drivers/net/hyperv/netvsc.c *avail = count - *filled - 1; avail 1086 drivers/net/hyperv/netvsc.c u32 filled, avail; avail 1088 drivers/net/hyperv/netvsc.c recv_comp_slot_avail(nvdev, mrc, &filled, &avail); avail 1092 drivers/net/hyperv/netvsc.c recv_comp_slot_avail(nvdev, mrc, &filled, &avail); avail 1095 drivers/net/hyperv/netvsc.c if (unlikely(!avail)) { avail 649 drivers/net/ppp/ppp_async.c int avail, sent, done = 0; avail 669 drivers/net/ppp/ppp_async.c avail = ap->olim - ap->optr; avail 671 drivers/net/ppp/ppp_async.c sent = tty->ops->write(tty, ap->optr, avail); avail 675 drivers/net/ppp/ppp_async.c if (sent < avail) avail 179 drivers/net/ppp/ppp_generic.c u8 avail; /* flag used in multilink stuff */ avail 1703 drivers/net/ppp/ppp_generic.c pch->avail = 1; avail 1707 drivers/net/ppp/ppp_generic.c pch->avail = 0; avail 1709 drivers/net/ppp/ppp_generic.c if (pch->avail) { avail 1717 drivers/net/ppp/ppp_generic.c pch->avail = 2; avail 1766 drivers/net/ppp/ppp_generic.c if (!pch->avail) avail 1773 drivers/net/ppp/ppp_generic.c if (pch->avail == 1) { avail 1777 drivers/net/ppp/ppp_generic.c pch->avail = 1; avail 1790 drivers/net/ppp/ppp_generic.c pch->avail = 0; avail 1839 drivers/net/ppp/ppp_generic.c pch->avail = 2; avail 161 drivers/net/wireless/ath/wil6210/debugfs.c int avail = ring->size - used - 1; avail 189 drivers/net/wireless/ath/wil6210/debugfs.c used, avail, sidle); avail 194 drivers/net/wireless/ath/wil6210/debugfs.c used, avail, sidle); avail 1751 drivers/net/wireless/ath/wil6210/txrx.c int used, avail = wil_ring_avail_tx(vring); avail 1782 drivers/net/wireless/ath/wil6210/txrx.c if (unlikely(avail < min_desc_required)) { avail 1861 drivers/net/wireless/ath/wil6210/txrx.c if (descs_used == avail) { avail 2040 drivers/net/wireless/ath/wil6210/txrx.c int avail = wil_ring_avail_tx(ring); avail 2057 drivers/net/wireless/ath/wil6210/txrx.c if (unlikely(avail < 1 + nr_frags)) { avail 1414 drivers/net/wireless/ath/wil6210/txrx_edma.c int used, avail = wil_ring_avail_tx(ring); avail 1431 drivers/net/wireless/ath/wil6210/txrx_edma.c if (unlikely(avail < min_desc_required)) { avail 391 drivers/net/wireless/ti/wlcore/main.c int avail, freed_blocks; avail 463 drivers/net/wireless/ti/wlcore/main.c avail = status->tx_total - wl->tx_allocated_blocks; avail 474 drivers/net/wireless/ti/wlcore/main.c avail); avail 165 drivers/pci/bus.c struct resource *r, avail; avail 186 drivers/pci/bus.c avail = *r; avail 187 drivers/pci/bus.c pci_clip_resource_to_region(bus, &avail, region); avail 195 drivers/pci/bus.c if (avail.start) avail 196 drivers/pci/bus.c min_used = avail.start; avail 198 drivers/pci/bus.c max = avail.end; avail 96 drivers/pci/hotplug/cpqphp_nvram.c static u32 add_byte(u32 **p_buffer, u8 value, u32 *used, u32 *avail) avail 100 drivers/pci/hotplug/cpqphp_nvram.c if ((*used + 1) > *avail) avail 111 drivers/pci/hotplug/cpqphp_nvram.c static u32 add_dword(u32 **p_buffer, u32 value, u32 *used, u32 *avail) avail 113 drivers/pci/hotplug/cpqphp_nvram.c if ((*used + 4) > *avail) avail 832 drivers/pci/msi.c int avail = 0; avail 836 drivers/pci/msi.c avail++; avail 838 drivers/pci/msi.c if (avail != 0) avail 839 drivers/pci/msi.c ret = avail; avail 64 drivers/pci/p2pdma.c size_t avail = 0; avail 67 drivers/pci/p2pdma.c avail = gen_pool_avail(pdev->p2pdma->pool); avail 69 drivers/pci/p2pdma.c return snprintf(buf, PAGE_SIZE, "%zd\n", avail); avail 640 drivers/pcmcia/yenta_socket.c unsigned long avail = root->end - root->start; avail 643 drivers/pcmcia/yenta_socket.c if (size > avail/8) { avail 644 drivers/pcmcia/yenta_socket.c size = (avail+1)/8; avail 411 drivers/pinctrl/pinctrl-falcon.c u32 avail; avail 416 drivers/pinctrl/pinctrl-falcon.c avail = pad_r32(falcon_info.membase[id], LTQ_PADC_AVAIL); avail 418 drivers/pinctrl/pinctrl-falcon.c return fls(avail); avail 437 drivers/pinctrl/pinctrl-falcon.c u32 avail; avail 464 drivers/pinctrl/pinctrl-falcon.c avail = pad_r32(falcon_info.membase[*bank], avail 466 drivers/pinctrl/pinctrl-falcon.c pins = fls(avail); avail 294 drivers/platform/mellanox/mlxbf-tmfifo.c if (vring->next_avail == virtio16_to_cpu(vdev, vr->avail->idx)) avail 298 drivers/platform/mellanox/mlxbf-tmfifo.c head = virtio16_to_cpu(vdev, vr->avail->ring[idx]); avail 448 drivers/platform/mellanox/mlxbf-tmfifo.c u32 len, avail; avail 454 drivers/platform/mellanox/mlxbf-tmfifo.c avail = CIRC_SPACE(cons->tx_buf.head, cons->tx_buf.tail, avail 456 drivers/platform/mellanox/mlxbf-tmfifo.c if (len + MLXBF_TMFIFO_CON_TX_BUF_RSV_SIZE > avail) { avail 495 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_console_tx(struct mlxbf_tmfifo *fifo, int avail) avail 505 drivers/platform/mellanox/mlxbf-tmfifo.c if (avail < MLXBF_TMFIFO_DATA_MIN_WORDS) avail 519 drivers/platform/mellanox/mlxbf-tmfifo.c if (size + sizeof(hdr) > avail * sizeof(u64)) avail 520 drivers/platform/mellanox/mlxbf-tmfifo.c size = avail * sizeof(u64) - sizeof(hdr); avail 672 drivers/platform/mellanox/mlxbf-tmfifo.c bool is_rx, int *avail) avail 696 drivers/platform/mellanox/mlxbf-tmfifo.c (*avail)--; avail 712 drivers/platform/mellanox/mlxbf-tmfifo.c (*avail)--; avail 749 drivers/platform/mellanox/mlxbf-tmfifo.c int avail = 0, devid = vring->vdev_id; avail 769 drivers/platform/mellanox/mlxbf-tmfifo.c if (avail == 0) { avail 771 drivers/platform/mellanox/mlxbf-tmfifo.c avail = mlxbf_tmfifo_get_rx_avail(fifo); avail 773 drivers/platform/mellanox/mlxbf-tmfifo.c avail = mlxbf_tmfifo_get_tx_avail(fifo, devid); avail 774 drivers/platform/mellanox/mlxbf-tmfifo.c if (avail <= 0) avail 780 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_console_tx(fifo, avail); avail 785 drivers/platform/mellanox/mlxbf-tmfifo.c more = mlxbf_tmfifo_rxtx_one_desc(vring, is_rx, &avail); avail 1090 drivers/rapidio/devices/tsi721.c int i, avail = -1; avail 1151 drivers/rapidio/devices/tsi721.c if (avail == -1) { avail 1152 drivers/rapidio/devices/tsi721.c avail = i; avail 1184 drivers/rapidio/devices/tsi721.c i = avail; avail 50 drivers/remoteproc/remoteproc_core.c void *, int offset, int avail); avail 473 drivers/remoteproc/remoteproc_core.c int offset, int avail) avail 482 drivers/remoteproc/remoteproc_core.c + rsc->config_len > avail) { avail 604 drivers/remoteproc/remoteproc_core.c int offset, int avail) avail 610 drivers/remoteproc/remoteproc_core.c if (sizeof(*rsc) > avail) { avail 678 drivers/remoteproc/remoteproc_core.c int offset, int avail) avail 688 drivers/remoteproc/remoteproc_core.c if (sizeof(*rsc) > avail) { avail 873 drivers/remoteproc/remoteproc_core.c int offset, int avail) avail 878 drivers/remoteproc/remoteproc_core.c if (sizeof(*rsc) > avail) { avail 1051 drivers/remoteproc/remoteproc_core.c int avail = rproc->table_sz - offset - sizeof(*hdr); avail 1055 drivers/remoteproc/remoteproc_core.c if (avail < 0) { avail 1065 drivers/remoteproc/remoteproc_core.c offset + sizeof(*hdr), avail); avail 1085 drivers/remoteproc/remoteproc_core.c ret = handler(rproc, rsc, offset + sizeof(*hdr), avail); avail 103 drivers/remoteproc/remoteproc_internal.h int avail) avail 107 drivers/remoteproc/remoteproc_internal.h avail); avail 278 drivers/rpmsg/qcom_glink_native.c return glink->rx_pipe->avail(glink->rx_pipe); avail 294 drivers/rpmsg/qcom_glink_native.c return glink->tx_pipe->avail(glink->tx_pipe); avail 786 drivers/rpmsg/qcom_glink_native.c static int qcom_glink_rx_data(struct qcom_glink *glink, size_t avail) avail 802 drivers/rpmsg/qcom_glink_native.c if (avail < sizeof(hdr)) { avail 811 drivers/rpmsg/qcom_glink_native.c if (avail < sizeof(hdr) + chunk_size) { avail 902 drivers/rpmsg/qcom_glink_native.c size_t avail) avail 921 drivers/rpmsg/qcom_glink_native.c if (avail < msglen) { avail 984 drivers/rpmsg/qcom_glink_native.c unsigned int avail; avail 989 drivers/rpmsg/qcom_glink_native.c avail = qcom_glink_rx_avail(glink); avail 990 drivers/rpmsg/qcom_glink_native.c if (avail < sizeof(msg)) avail 1016 drivers/rpmsg/qcom_glink_native.c ret = qcom_glink_rx_data(glink, avail); avail 1025 drivers/rpmsg/qcom_glink_native.c qcom_glink_handle_intent(glink, param1, param2, avail); avail 16 drivers/rpmsg/qcom_glink_native.h size_t (*avail)(struct qcom_glink_pipe *glink_pipe); avail 291 drivers/rpmsg/qcom_glink_rpm.c rx_pipe->native.avail = glink_rpm_rx_avail; avail 294 drivers/rpmsg/qcom_glink_rpm.c tx_pipe->native.avail = glink_rpm_tx_avail; avail 119 drivers/rpmsg/qcom_glink_smem.c u32 avail; avail 125 drivers/rpmsg/qcom_glink_smem.c avail = pipe->native.length - head + tail; avail 127 drivers/rpmsg/qcom_glink_smem.c avail = tail - head; avail 129 drivers/rpmsg/qcom_glink_smem.c if (avail < (FIFO_FULL_RESERVE + TX_BLOCKED_CMD_RESERVE)) avail 130 drivers/rpmsg/qcom_glink_smem.c avail = 0; avail 132 drivers/rpmsg/qcom_glink_smem.c avail -= FIFO_FULL_RESERVE + TX_BLOCKED_CMD_RESERVE; avail 134 drivers/rpmsg/qcom_glink_smem.c return avail; avail 267 drivers/rpmsg/qcom_glink_smem.c rx_pipe->native.avail = glink_smem_rx_avail; avail 272 drivers/rpmsg/qcom_glink_smem.c tx_pipe->native.avail = glink_smem_tx_avail; avail 581 drivers/rpmsg/qcom_smd.c int avail; avail 608 drivers/rpmsg/qcom_smd.c avail = qcom_smd_channel_get_rx_avail(channel); avail 610 drivers/rpmsg/qcom_smd.c if (!channel->pkt_size && avail >= SMD_PACKET_HEADER_LEN) { avail 614 drivers/rpmsg/qcom_smd.c } else if (channel->pkt_size && avail >= channel->pkt_size) { avail 159 drivers/s390/cio/airq.c iv->avail = kmalloc(size, GFP_KERNEL); avail 160 drivers/s390/cio/airq.c if (!iv->avail) avail 162 drivers/s390/cio/airq.c memset(iv->avail, 0xff, size); avail 189 drivers/s390/cio/airq.c kfree(iv->avail); avail 213 drivers/s390/cio/airq.c kfree(iv->avail); avail 231 drivers/s390/cio/airq.c if (!iv->avail || num == 0) avail 234 drivers/s390/cio/airq.c bit = find_first_bit_inv(iv->avail, iv->bits); avail 237 drivers/s390/cio/airq.c if (!test_bit_inv(bit + i, iv->avail)) avail 242 drivers/s390/cio/airq.c clear_bit_inv(bit + i, iv->avail); avail 247 drivers/s390/cio/airq.c bit = find_next_bit_inv(iv->avail, iv->bits, bit + i + 1); avail 266 drivers/s390/cio/airq.c if (!iv->avail || num == 0) avail 273 drivers/s390/cio/airq.c set_bit_inv(bit + i, iv->avail); avail 277 drivers/s390/cio/airq.c while (iv->end > 0 && !test_bit_inv(iv->end - 1, iv->avail)) avail 163 drivers/s390/cio/vfio_ccw_drv.c atomic_set(&private->avail, 1); avail 92 drivers/s390/cio/vfio_ccw_ops.c return sprintf(buf, "%d\n", atomic_read(&private->avail)); avail 121 drivers/s390/cio/vfio_ccw_ops.c if (atomic_dec_if_positive(&private->avail) < 0) avail 154 drivers/s390/cio/vfio_ccw_ops.c atomic_inc(&private->avail); avail 82 drivers/s390/cio/vfio_ccw_private.h atomic_t avail; avail 97 drivers/s390/virtio/virtio_ccw.c __u64 avail; avail 470 drivers/s390/virtio/virtio_ccw.c info->info_block->s.avail = 0; avail 569 drivers/s390/virtio/virtio_ccw.c info->info_block->s.avail = (__u64)virtqueue_get_avail_addr(vq); avail 67 drivers/scsi/csiostor/csio_init.c loff_t avail = file_inode(file)->i_size; avail 73 drivers/scsi/csiostor/csio_init.c if (pos >= avail) avail 75 drivers/scsi/csiostor/csio_init.c if (count > avail - pos) avail 76 drivers/scsi/csiostor/csio_init.c count = avail - pos; avail 1237 drivers/scsi/csiostor/csio_wr.c uint32_t avail = csio_wr_avail_qcredits(flq); avail 1238 drivers/scsi/csiostor/csio_wr.c if (avail <= 16) { avail 1243 drivers/scsi/csiostor/csio_wr.c csio_wr_update_fl(hw, flq, (flq->credits - 8) - avail); avail 915 drivers/scsi/libiscsi_tcp.c unsigned int avail; avail 918 drivers/scsi/libiscsi_tcp.c avail = skb_seq_read(consumed, &ptr, &seq); avail 919 drivers/scsi/libiscsi_tcp.c if (avail == 0) { avail 928 drivers/scsi/libiscsi_tcp.c avail); avail 929 drivers/scsi/libiscsi_tcp.c rc = iscsi_tcp_segment_recv(tcp_conn, segment, ptr, avail); avail 731 drivers/soc/fsl/qbman/bman.c static void update_rcr_ci(struct bman_portal *p, int avail) avail 733 drivers/soc/fsl/qbman/bman.c if (avail) avail 744 drivers/soc/fsl/qbman/bman.c int avail, timeout = 1000; /* 1ms */ avail 752 drivers/soc/fsl/qbman/bman.c avail = bm_rcr_get_avail(&p->p); avail 753 drivers/soc/fsl/qbman/bman.c if (avail < 2) avail 754 drivers/soc/fsl/qbman/bman.c update_rcr_ci(p, avail); avail 2302 drivers/soc/fsl/qbman/qman.c static void update_eqcr_ci(struct qman_portal *p, u8 avail) avail 2304 drivers/soc/fsl/qbman/qman.c if (avail) avail 2315 drivers/soc/fsl/qbman/qman.c u8 avail; avail 2331 drivers/soc/fsl/qbman/qman.c avail = qm_eqcr_get_avail(&p->p); avail 2332 drivers/soc/fsl/qbman/qman.c if (avail < 2) avail 2333 drivers/soc/fsl/qbman/qman.c update_eqcr_ci(p, avail); avail 76 drivers/staging/fwserial/dma_fifo.c fifo->avail = size; avail 125 drivers/staging/fwserial/dma_fifo.c fifo->avail = fifo->size; avail 148 drivers/staging/fwserial/dma_fifo.c if (n > fifo->avail) avail 149 drivers/staging/fwserial/dma_fifo.c n = fifo->avail; avail 159 drivers/staging/fwserial/dma_fifo.c fifo->avail < n, avail 161 drivers/staging/fwserial/dma_fifo.c fifo->in, fifo->out, fifo->done, n, fifo->avail)) avail 165 drivers/staging/fwserial/dma_fifo.c fifo->avail -= n; avail 168 drivers/staging/fwserial/dma_fifo.c fifo->done, n, fifo->avail); avail 217 drivers/staging/fwserial/dma_fifo.c fifo->out, fifo->done, n, len, fifo->avail); avail 280 drivers/staging/fwserial/dma_fifo.c fifo->avail += pending->len; avail 284 drivers/staging/fwserial/dma_fifo.c fifo->out, fifo->done, pending->len, fifo->avail); avail 289 drivers/staging/fwserial/dma_fifo.c if (FAIL(fifo, fifo->avail > fifo->size, "fifo avail:%d > size:%d", avail 290 drivers/staging/fwserial/dma_fifo.c fifo->avail, fifo->size)) avail 48 drivers/staging/fwserial/dma_fifo.h int avail; /* # of unused bytes in fifo */ avail 88 drivers/staging/fwserial/dma_fifo.h return fifo->size - fifo->avail; avail 100 drivers/staging/fwserial/dma_fifo.h return fifo->avail; avail 110 drivers/staging/fwserial/fwserial.c int avail; avail 114 drivers/staging/fwserial/fwserial.c avail = dma_fifo_avail(&port->tx_fifo); avail 117 drivers/staging/fwserial/fwserial.c avail, c, n); avail 270 drivers/staging/fwserial/fwserial.c int len, avail; avail 275 drivers/staging/fwserial/fwserial.c avail = dma_fifo_avail(&port->tx_fifo); avail 277 drivers/staging/fwserial/fwserial.c fwtty_dbg(port, "fifo len: %d avail: %d\n", len, avail); avail 53 drivers/staging/uwb/allocator.c if (ri->avail[mas] == 1) { avail 201 drivers/staging/uwb/allocator.c ri->avail[mas] = 1; avail 205 drivers/staging/uwb/allocator.c ri->avail[mas]=0; avail 49 drivers/staging/uwb/drp-avail.c void uwb_drp_available(struct uwb_rc *rc, struct uwb_mas_bm *avail) avail 51 drivers/staging/uwb/drp-avail.c bitmap_and(avail->bm, rc->drp_avail.global, rc->drp_avail.local, UWB_NUM_MAS); avail 52 drivers/staging/uwb/drp-avail.c bitmap_and(avail->bm, avail->bm, rc->drp_avail.pending, UWB_NUM_MAS); avail 64 drivers/staging/uwb/drp-avail.c struct uwb_mas_bm avail; avail 66 drivers/staging/uwb/drp-avail.c uwb_drp_available(rc, &avail); avail 67 drivers/staging/uwb/drp-avail.c if (!bitmap_subset(mas->bm, avail.bm, UWB_NUM_MAS)) avail 107 drivers/staging/uwb/drp-avail.c struct uwb_mas_bm avail; avail 109 drivers/staging/uwb/drp-avail.c bitmap_and(avail.bm, rc->drp_avail.global, rc->drp_avail.local, UWB_NUM_MAS); avail 113 drivers/staging/uwb/drp-avail.c uwb_mas_bm_copy_le(rc->drp_avail.ie.bmp, &avail); avail 139 drivers/staging/uwb/uwb-internal.h unsigned char avail[UWB_MAS_PER_ZONE]; avail 335 drivers/staging/uwb/uwb-internal.h void uwb_drp_available(struct uwb_rc *rc, struct uwb_mas_bm *avail); avail 1239 drivers/target/target_core_sbc.c unsigned int avail; avail 1253 drivers/target/target_core_sbc.c avail = min(block_size, dsg->length - offset); avail 1254 drivers/target/target_core_sbc.c crc = crc_t10dif(daddr + offset, avail); avail 1255 drivers/target/target_core_sbc.c if (avail < block_size) { avail 1263 drivers/target/target_core_sbc.c offset = block_size - avail; avail 1397 drivers/target/target_core_sbc.c unsigned int avail; avail 1422 drivers/target/target_core_sbc.c avail = min(block_size, dsg->length - dsg_off); avail 1423 drivers/target/target_core_sbc.c crc = crc_t10dif(daddr + dsg_off, avail); avail 1424 drivers/target/target_core_sbc.c if (avail < block_size) { avail 1432 drivers/target/target_core_sbc.c dsg_off = block_size - avail; avail 96 drivers/tty/goldfish.c unsigned long avail = next - addr; avail 103 drivers/tty/goldfish.c avail, dma_dir); avail 109 drivers/tty/goldfish.c do_rw_io(qtty, dma_handle, avail, is_write); avail 115 drivers/tty/goldfish.c dma_unmap_single(qtty->dev, dma_handle, avail, dma_dir); avail 117 drivers/tty/goldfish.c addr += avail; avail 397 drivers/tty/serial/qcom_geni_serial.c size_t avail = DEF_FIFO_DEPTH_WORDS - DEF_TX_WM; avail 408 drivers/tty/serial/qcom_geni_serial.c chars_to_write = min_t(size_t, count - i, avail / 2); avail 682 drivers/tty/serial/qcom_geni_serial.c size_t avail; avail 705 drivers/tty/serial/qcom_geni_serial.c avail = port->tx_fifo_depth - (status & TX_FIFO_WC); avail 706 drivers/tty/serial/qcom_geni_serial.c avail *= port->tx_bytes_pw; avail 709 drivers/tty/serial/qcom_geni_serial.c chunk = min(avail, pending); avail 546 drivers/tty/serial/zs.c unsigned int avail, status, ch, flag; avail 551 drivers/tty/serial/zs.c avail = read_zsreg(zport, R0) & Rx_CH_AV; avail 553 drivers/tty/serial/zs.c if (!avail) avail 4727 drivers/tty/vt/vt.c int from, wrap, from_off, avail; avail 4745 drivers/tty/vt/vt.c avail = (origin - from + wrap) % wrap; avail 4748 drivers/tty/vt/vt.c if (avail < 2 * margin) avail 4752 drivers/tty/vt/vt.c if (from_off > avail - margin) avail 4753 drivers/tty/vt/vt.c from_off = avail; avail 819 drivers/usb/class/usblp.c ssize_t avail; avail 829 drivers/usb/class/usblp.c if ((avail = usblp->rstatus) < 0) { avail 831 drivers/usb/class/usblp.c usblp->minor, (int)avail); avail 837 drivers/usb/class/usblp.c count = len < avail - usblp->readcount ? len : avail - usblp->readcount; avail 844 drivers/usb/class/usblp.c if ((usblp->readcount += count) == avail) { avail 495 drivers/usb/gadget/udc/net2272.c struct net2272_request *req, unsigned avail) avail 501 drivers/usb/gadget/udc/net2272.c req->req.actual += avail; avail 504 drivers/usb/gadget/udc/net2272.c ep->ep.name, req, avail, avail 507 drivers/usb/gadget/udc/net2272.c is_short = (avail < ep->ep.maxpacket); avail 509 drivers/usb/gadget/udc/net2272.c if (unlikely(avail == 0)) { avail 516 drivers/usb/gadget/udc/net2272.c if (unlikely(avail % 2)) avail 517 drivers/usb/gadget/udc/net2272.c avail++; avail 522 drivers/usb/gadget/udc/net2272.c avail -= 2; avail 523 drivers/usb/gadget/udc/net2272.c } while (avail); avail 1026 drivers/usb/gadget/udc/net2272.c u16 avail; avail 1034 drivers/usb/gadget/udc/net2272.c avail = net2272_ep_read(ep, EP_AVAIL1) << 8; avail 1035 drivers/usb/gadget/udc/net2272.c avail |= net2272_ep_read(ep, EP_AVAIL0); avail 1036 drivers/usb/gadget/udc/net2272.c if (avail > ep->fifo_size) avail 1039 drivers/usb/gadget/udc/net2272.c avail = ep->fifo_size - avail; avail 1040 drivers/usb/gadget/udc/net2272.c return avail; avail 1405 drivers/usb/gadget/udc/net2280.c u32 avail; avail 1419 drivers/usb/gadget/udc/net2280.c avail = readl(&ep->regs->ep_avail) & (BIT(12) - 1); avail 1420 drivers/usb/gadget/udc/net2280.c if (avail > ep->fifo_size) { avail 1425 drivers/usb/gadget/udc/net2280.c avail = ep->fifo_size - avail; avail 1426 drivers/usb/gadget/udc/net2280.c return avail; avail 393 drivers/usb/gadget/udc/omap_udc.c read_packet(u8 *buf, struct omap_req *req, unsigned avail) avail 398 drivers/usb/gadget/udc/omap_udc.c len = min(req->req.length - req->req.actual, avail); avail 400 drivers/usb/gadget/udc/omap_udc.c avail = len; avail 404 drivers/usb/gadget/udc/omap_udc.c while (avail >= 2) { avail 406 drivers/usb/gadget/udc/omap_udc.c avail -= 2; avail 410 drivers/usb/gadget/udc/omap_udc.c while (avail--) avail 419 drivers/usb/gadget/udc/omap_udc.c unsigned count, avail; avail 438 drivers/usb/gadget/udc/omap_udc.c avail = ep->ep.maxpacket; avail 440 drivers/usb/gadget/udc/omap_udc.c avail = omap_readw(UDC_RXFSTAT); avail 443 drivers/usb/gadget/udc/omap_udc.c count = read_packet(buf, req, avail); avail 449 drivers/usb/gadget/udc/omap_udc.c if (count != avail) { avail 451 drivers/usb/gadget/udc/omap_udc.c avail -= count; avail 452 drivers/usb/gadget/udc/omap_udc.c while (avail--) avail 389 drivers/usb/gadget/udc/s3c2410_udc.c struct s3c2410_request *req, unsigned avail) avail 393 drivers/usb/gadget/udc/s3c2410_udc.c len = min(req->req.length - req->req.actual, avail); avail 410 drivers/usb/gadget/udc/s3c2410_udc.c unsigned avail; avail 454 drivers/usb/gadget/udc/s3c2410_udc.c avail = ep->ep.maxpacket; avail 456 drivers/usb/gadget/udc/s3c2410_udc.c avail = fifo_count; avail 458 drivers/usb/gadget/udc/s3c2410_udc.c fifo_count = s3c2410_udc_read_packet(fifo_reg, buf, req, avail); avail 466 drivers/usb/gadget/udc/s3c2410_udc.c if (fifo_count != avail) avail 902 drivers/usb/mon/mon_bin.c unsigned int bytes, avail; avail 917 drivers/usb/mon/mon_bin.c avail = rp->b_cnt; avail 923 drivers/usb/mon/mon_bin.c while (bytes < avail) { avail 952 drivers/usb/mon/mon_bin.c unsigned int bytes, avail; avail 961 drivers/usb/mon/mon_bin.c avail = rp->b_cnt; avail 967 drivers/usb/mon/mon_bin.c while (bytes < avail) { avail 49 drivers/vhost/vhost.c #define vhost_used_event(vq) ((__virtio16 __user *)&vq->avail->ring[vq->num]) avail 305 drivers/vhost/vhost.c vq->avail = NULL; avail 435 drivers/vhost/vhost.c return sizeof(*vq->avail) + avail 436 drivers/vhost/vhost.c sizeof(*vq->avail->ring) * num + event; avail 983 drivers/vhost/vhost.c return vhost_get_avail(vq, *idx, &vq->avail->idx); avail 990 drivers/vhost/vhost.c &vq->avail->ring[idx & (vq->num - 1)]); avail 996 drivers/vhost/vhost.c return vhost_get_avail(vq, *flags, &vq->avail->flags); avail 1298 drivers/vhost/vhost.c struct vring_avail __user *avail, avail 1303 drivers/vhost/vhost.c access_ok(avail, vhost_get_avail_size(vq, num)) && avail 1363 drivers/vhost/vhost.c iotlb_access_ok(vq, VHOST_ACCESS_RO, (u64)(uintptr_t)vq->avail, avail 1401 drivers/vhost/vhost.c return vq_access_ok(vq, vq->num, vq->desc, vq->avail, vq->used); avail 1527 drivers/vhost/vhost.c BUILD_BUG_ON(__alignof__ *vq->avail > VRING_AVAIL_ALIGN_SIZE); avail 1554 drivers/vhost/vhost.c vq->avail = (void __user *)(unsigned long)a.avail_user_addr; avail 2226 drivers/vhost/vhost.c &vq->avail->idx); avail 2254 drivers/vhost/vhost.c &vq->avail->ring[last_avail_idx % vq->num]); avail 2552 drivers/vhost/vhost.c &vq->avail->idx, r); avail 91 drivers/vhost/vhost.h struct vring_avail __user *avail; avail 41 drivers/vhost/vringh.c err = getu16(vrh, &avail_idx, &vrh->vring.avail->idx); avail 44 drivers/vhost/vringh.c &vrh->vring.avail->idx); avail 56 drivers/vhost/vringh.c err = getu16(vrh, &head, &vrh->vring.avail->ring[i]); avail 59 drivers/vhost/vringh.c *last_avail_idx, &vrh->vring.avail->ring[i]); avail 468 drivers/vhost/vringh.c err = getu16(vrh, &flags, &vrh->vring.avail->flags); avail 471 drivers/vhost/vringh.c &vrh->vring.avail->flags); avail 504 drivers/vhost/vringh.c u16 avail; avail 526 drivers/vhost/vringh.c if (getu16(vrh, &avail, &vrh->vring.avail->idx) != 0) { avail 528 drivers/vhost/vringh.c &vrh->vring.avail->idx); avail 535 drivers/vhost/vringh.c return avail == vrh->last_avail_idx; avail 609 drivers/vhost/vringh.c struct vring_avail __user *avail, avail 627 drivers/vhost/vringh.c vrh->vring.avail = (__force struct vring_avail *)avail; avail 876 drivers/vhost/vringh.c struct vring_avail *avail, avail 893 drivers/vhost/vringh.c vrh->vring.avail = avail; avail 427 drivers/virtio/virtio_ring.c unsigned int i, n, avail, descs_used, uninitialized_var(prev), err_idx; avail 546 drivers/virtio/virtio_ring.c avail = vq->split.avail_idx_shadow & (vq->split.vring.num - 1); avail 547 drivers/virtio/virtio_ring.c vq->split.vring.avail->ring[avail] = cpu_to_virtio16(_vq->vdev, head); avail 553 drivers/virtio/virtio_ring.c vq->split.vring.avail->idx = cpu_to_virtio16(_vq->vdev, avail 743 drivers/virtio/virtio_ring.c vq->split.vring.avail->flags = avail 764 drivers/virtio/virtio_ring.c vq->split.vring.avail->flags = avail 797 drivers/virtio/virtio_ring.c vq->split.vring.avail->flags = avail 833 drivers/virtio/virtio_ring.c vq->split.vring.avail->idx = cpu_to_virtio16(_vq->vdev, avail 1330 drivers/virtio/virtio_ring.c bool avail, used; avail 1334 drivers/virtio/virtio_ring.c avail = !!(flags & (1 << VRING_PACKED_DESC_F_AVAIL)); avail 1337 drivers/virtio/virtio_ring.c return avail == used && used == used_wrap_counter; avail 2109 drivers/virtio/virtio_ring.c vq->split.vring.avail->flags = cpu_to_virtio16(vdev, avail 2304 drivers/virtio/virtio_ring.c ((char *)vq->split.vring.avail - (char *)vq->split.vring.desc); avail 122 drivers/xen/xenbus/xenbus_comms.c unsigned int avail; avail 137 drivers/xen/xenbus/xenbus_comms.c dst = get_output_chunk(cons, prod, intf->req, &avail); avail 138 drivers/xen/xenbus/xenbus_comms.c if (avail == 0) avail 140 drivers/xen/xenbus/xenbus_comms.c if (avail > len) avail 141 drivers/xen/xenbus/xenbus_comms.c avail = len; avail 143 drivers/xen/xenbus/xenbus_comms.c memcpy(dst, data, avail); avail 144 drivers/xen/xenbus/xenbus_comms.c data += avail; avail 145 drivers/xen/xenbus/xenbus_comms.c len -= avail; avail 146 drivers/xen/xenbus/xenbus_comms.c bytes += avail; avail 150 drivers/xen/xenbus/xenbus_comms.c intf->req_prod += avail; avail 173 drivers/xen/xenbus/xenbus_comms.c unsigned int avail; avail 187 drivers/xen/xenbus/xenbus_comms.c src = get_input_chunk(cons, prod, intf->rsp, &avail); avail 188 drivers/xen/xenbus/xenbus_comms.c if (avail == 0) avail 190 drivers/xen/xenbus/xenbus_comms.c if (avail > len) avail 191 drivers/xen/xenbus/xenbus_comms.c avail = len; avail 196 drivers/xen/xenbus/xenbus_comms.c memcpy(data, src, avail); avail 197 drivers/xen/xenbus/xenbus_comms.c data += avail; avail 198 drivers/xen/xenbus/xenbus_comms.c len -= avail; avail 199 drivers/xen/xenbus/xenbus_comms.c bytes += avail; avail 203 drivers/xen/xenbus/xenbus_comms.c intf->rsp_cons += avail; avail 929 fs/aio.c int old, avail = atomic_read(&ctx->reqs_available); avail 932 fs/aio.c if (avail < ctx->req_batch) avail 935 fs/aio.c old = avail; avail 936 fs/aio.c avail = atomic_cmpxchg(&ctx->reqs_available, avail 937 fs/aio.c avail, avail - ctx->req_batch); avail 938 fs/aio.c } while (avail != old); avail 1212 fs/aio.c long avail; avail 1216 fs/aio.c avail = (head <= tail ? tail : ctx->nr_events) - head; avail 1224 fs/aio.c avail = min(avail, nr - ret); avail 1225 fs/aio.c avail = min_t(long, avail, AIO_EVENTS_PER_PAGE - pos); avail 1229 fs/aio.c sizeof(*ev) * avail); avail 1237 fs/aio.c ret += avail; avail 1238 fs/aio.c head += avail; avail 169 fs/btrfs/space-info.c u64 avail; avail 183 fs/btrfs/space-info.c avail = atomic64_read(&fs_info->free_chunk_space); avail 192 fs/btrfs/space-info.c avail = div_u64(avail, factor); avail 200 fs/btrfs/space-info.c avail >>= 3; avail 202 fs/btrfs/space-info.c avail >>= 1; avail 204 fs/btrfs/space-info.c if (used + bytes < space_info->total_bytes + avail) avail 407 fs/ceph/caps.c int *total, int *avail, int *used, int *reserved, avail 416 fs/ceph/caps.c if (avail) avail 417 fs/ceph/caps.c *avail = mdsc->caps_avail_count; avail 141 fs/ceph/debugfs.c int total, avail, used, reserved, min, i; avail 143 fs/ceph/debugfs.c ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); avail 149 fs/ceph/debugfs.c total, avail, used, reserved, min); avail 697 fs/ceph/super.h int *total, int *avail, int *used, avail 212 fs/jffs2/fs.c unsigned long avail; avail 224 fs/jffs2/fs.c avail = c->dirty_size + c->free_size; avail 225 fs/jffs2/fs.c if (avail > c->sector_size * c->resv_blocks_write) avail 226 fs/jffs2/fs.c avail -= c->sector_size * c->resv_blocks_write; avail 228 fs/jffs2/fs.c avail = 0; avail 231 fs/jffs2/fs.c buf->f_bavail = buf->f_bfree = avail >> PAGE_SHIFT; avail 26 fs/jffs2/nodemgmt.c uint32_t avail; avail 29 fs/jffs2/nodemgmt.c avail = c->dirty_size + c->free_size + c->unchecked_size + avail 33 fs/jffs2/nodemgmt.c if (avail < 2 * opts->rp_size) avail 39 fs/jffs2/nodemgmt.c c->nr_erasing_blocks, avail, c->nospc_dirty_size); avail 41 fs/jffs2/nodemgmt.c if (avail > opts->rp_size) avail 101 fs/jffs2/nodemgmt.c uint32_t dirty, avail; avail 140 fs/jffs2/nodemgmt.c avail = c->free_size + c->dirty_size + c->erasing_size + c->unchecked_size; avail 141 fs/jffs2/nodemgmt.c if ( (avail / c->sector_size) <= blocksneeded) { avail 149 fs/jffs2/nodemgmt.c avail, blocksneeded * c->sector_size); avail 1577 fs/nfsd/nfs4state.c unsigned long avail, total_avail; avail 1590 fs/nfsd/nfs4state.c avail = min((unsigned long)NFSD_MAX_MEM_PER_SESSION, total_avail); avail 1602 fs/nfsd/nfs4state.c avail = clamp_t(unsigned long, avail, slotsize, avail 1604 fs/nfsd/nfs4state.c num = min_t(int, num, avail / slotsize); avail 160 fs/nfsd/nfs4xdr.c unsigned int avail = (char *)argp->end - (char *)argp->p; avail 168 fs/nfsd/nfs4xdr.c avail = vec->iov_len; avail 170 fs/nfsd/nfs4xdr.c argp->end = vec->iov_base + avail; avail 173 fs/nfsd/nfs4xdr.c if (avail < nbytes) avail 181 fs/nfsd/nfs4xdr.c if (avail + argp->pagelen < nbytes) avail 183 fs/nfsd/nfs4xdr.c if (avail + PAGE_SIZE < nbytes) /* need more than a page !! */ avail 200 fs/nfsd/nfs4xdr.c memcpy(p, argp->p, avail); avail 202 fs/nfsd/nfs4xdr.c memcpy(((char*)p)+avail, argp->p, (nbytes - avail)); avail 203 fs/nfsd/nfs4xdr.c argp->p += XDR_QUADLEN(nbytes - avail); avail 1267 fs/nfsd/nfs4xdr.c int avail; avail 1285 fs/nfsd/nfs4xdr.c avail = (char*)argp->end - (char*)argp->p; avail 1286 fs/nfsd/nfs4xdr.c if (avail + argp->pagelen < write->wr_buflen) { avail 1292 fs/nfsd/nfs4xdr.c write->wr_head.iov_len = avail; avail 1296 fs/nfsd/nfs4xdr.c if (len >= avail) { avail 1299 fs/nfsd/nfs4xdr.c len -= avail; avail 85 fs/squashfs/block.c int bytes, compressed, b = 0, k = 0, avail, i; avail 178 fs/squashfs/block.c avail = min_t(int, in, PAGE_SIZE - avail 181 fs/squashfs/block.c avail); avail 182 fs/squashfs/block.c in -= avail; avail 183 fs/squashfs/block.c pg_offset += avail; avail 184 fs/squashfs/block.c offset += avail; avail 364 fs/squashfs/file.c void squashfs_fill_page(struct page *page, struct squashfs_cache_entry *buffer, int offset, int avail) avail 370 fs/squashfs/file.c copied = squashfs_copy_data(pageaddr, buffer, offset, avail); avail 375 fs/squashfs/file.c if (copied == avail) avail 399 fs/squashfs/file.c int avail = buffer ? min_t(int, bytes, PAGE_SIZE) : 0; avail 401 fs/squashfs/file.c TRACE("bytes %d, i %d, available_bytes %d\n", bytes, i, avail); avail 412 fs/squashfs/file.c squashfs_fill_page(push_page, buffer, offset, avail); avail 160 fs/squashfs/file_direct.c int avail = min_t(int, bytes, PAGE_SIZE); avail 165 fs/squashfs/file_direct.c squashfs_fill_page(page[n], buffer, offset, avail); avail 97 fs/squashfs/lz4_wrapper.c int avail, i, bytes = length, res; avail 100 fs/squashfs/lz4_wrapper.c avail = min(bytes, msblk->devblksize - offset); avail 101 fs/squashfs/lz4_wrapper.c memcpy(buff, bh[i]->b_data + offset, avail); avail 102 fs/squashfs/lz4_wrapper.c buff += avail; avail 103 fs/squashfs/lz4_wrapper.c bytes -= avail; avail 71 fs/squashfs/lzo_wrapper.c int avail, i, bytes = length, res; avail 75 fs/squashfs/lzo_wrapper.c avail = min(bytes, msblk->devblksize - offset); avail 76 fs/squashfs/lzo_wrapper.c memcpy(buff, bh[i]->b_data + offset, avail); avail 77 fs/squashfs/lzo_wrapper.c buff += avail; avail 78 fs/squashfs/lzo_wrapper.c bytes -= avail; avail 124 fs/squashfs/xz_wrapper.c int avail, total = 0, k = 0; avail 136 fs/squashfs/xz_wrapper.c avail = min(length, msblk->devblksize - offset); avail 137 fs/squashfs/xz_wrapper.c length -= avail; avail 139 fs/squashfs/xz_wrapper.c stream->buf.in_size = avail; avail 65 fs/squashfs/zlib_wrapper.c int avail = min(length, msblk->devblksize - offset); avail 66 fs/squashfs/zlib_wrapper.c length -= avail; avail 68 fs/squashfs/zlib_wrapper.c stream->avail_in = avail; avail 85 fs/squashfs/zstd_wrapper.c int avail = min(length, msblk->devblksize - offset); avail 87 fs/squashfs/zstd_wrapper.c length -= avail; avail 89 fs/squashfs/zstd_wrapper.c in_buf.size = avail; avail 356 fs/ubifs/gc.c int avail, moved = 0; avail 361 fs/ubifs/gc.c avail = c->leb_size - wbuf->offs - wbuf->used - avail 363 fs/ubifs/gc.c if (snod->len > avail) avail 383 fs/ubifs/gc.c avail = c->leb_size - wbuf->offs - wbuf->used - avail 385 fs/ubifs/gc.c if (avail < min) avail 388 fs/ubifs/gc.c if (snod->len > avail) { avail 548 fs/ubifs/io.c ubifs_assert(c, !(wbuf->avail & 7)); avail 590 fs/ubifs/io.c wbuf->avail = wbuf->size; avail 631 fs/ubifs/io.c wbuf->avail = wbuf->size; avail 729 fs/ubifs/io.c ubifs_assert(c, wbuf->avail > 0 && wbuf->avail <= wbuf->size); avail 749 fs/ubifs/io.c if (aligned_len <= wbuf->avail) { avail 756 fs/ubifs/io.c if (aligned_len == wbuf->avail) { avail 770 fs/ubifs/io.c wbuf->avail = wbuf->size; avail 776 fs/ubifs/io.c wbuf->avail -= aligned_len; avail 794 fs/ubifs/io.c memcpy(wbuf->buf + wbuf->used, buf, wbuf->avail); avail 801 fs/ubifs/io.c len -= wbuf->avail; avail 802 fs/ubifs/io.c aligned_len -= wbuf->avail; avail 803 fs/ubifs/io.c written += wbuf->avail; avail 859 fs/ubifs/io.c wbuf->avail = wbuf->size - aligned_len; avail 1120 fs/ubifs/io.c wbuf->avail = wbuf->size = size; avail 100 fs/ubifs/journal.c int err = 0, err1, retries = 0, avail, lnum, offs, squeeze; avail 118 fs/ubifs/journal.c avail = c->leb_size - wbuf->offs - wbuf->used; avail 119 fs/ubifs/journal.c if (wbuf->lnum != -1 && avail >= len) avail 167 fs/ubifs/journal.c avail = c->leb_size - wbuf->offs - wbuf->used; avail 169 fs/ubifs/journal.c if (wbuf->lnum != -1 && avail >= len) { avail 267 fs/ubifs/orphan.c int avail_lebs, avail, gap; avail 270 fs/ubifs/orphan.c avail = avail_lebs * avail 274 fs/ubifs/orphan.c avail += (gap - UBIFS_ORPH_NODE_SZ) / sizeof(__le64); avail 275 fs/ubifs/orphan.c return avail; avail 287 fs/ubifs/orphan.c int avail_lebs, avail; avail 290 fs/ubifs/orphan.c avail = avail_lebs * avail 292 fs/ubifs/orphan.c return avail / 2; avail 479 fs/ubifs/orphan.c int avail, atomic = 0, err; avail 482 fs/ubifs/orphan.c avail = avail_orphs(c); avail 483 fs/ubifs/orphan.c if (avail < c->cmt_orphans) { avail 432 fs/ubifs/tnc_commit.c int lnum, offs, len, next_len, buf_len, buf_offs, used, avail; avail 445 fs/ubifs/tnc_commit.c avail = buf_len; avail 466 fs/ubifs/tnc_commit.c avail = buf_len; avail 512 fs/ubifs/tnc_commit.c avail -= ALIGN(len, 8); avail 516 fs/ubifs/tnc_commit.c avail > 0) avail 519 fs/ubifs/tnc_commit.c if (avail <= 0 && next_len && avail 539 fs/ubifs/tnc_commit.c avail = buf_len - used; avail 829 fs/ubifs/tnc_commit.c int avail, wlen, err, lnum_pos = 0, blen, nxt_offs; avail 845 fs/ubifs/tnc_commit.c avail = buf_len; avail 912 fs/ubifs/tnc_commit.c avail = buf_len; avail 968 fs/ubifs/tnc_commit.c avail -= ALIGN(len, 8); avail 981 fs/ubifs/tnc_commit.c if (avail > 0) avail 1007 fs/ubifs/tnc_commit.c avail = buf_len - used; avail 686 fs/ubifs/ubifs.h int avail; avail 71 fs/xfs/libxfs/xfs_ag_resv.c xfs_extlen_t avail; avail 76 fs/xfs/libxfs/xfs_ag_resv.c avail = pag->pagf_freeblks - pag->pag_rmapbt_resv.ar_reserved; avail 80 fs/xfs/libxfs/xfs_ag_resv.c avail = pag->pagf_freeblks + pag->pagf_flcount - avail 89 fs/xfs/libxfs/xfs_ag_resv.c trace_xfs_ag_resv_critical(pag, type, avail); avail 92 fs/xfs/libxfs/xfs_ag_resv.c return XFS_TEST_ERROR(avail < orig / 10 || avail < XFS_BTREE_MAXLEVELS, avail 4657 fs/xfs/libxfs/xfs_bmap.c xfs_filblks_t avail) /* stealable blocks */ avail 4669 fs/xfs/libxfs/xfs_bmap.c if (ores < nres && avail) avail 4670 fs/xfs/libxfs/xfs_bmap.c stolen = XFS_FILBLKS_MIN(nres - ores, avail); avail 196 include/linux/dmar.h avail : 4, /* 8 - 11 */ avail 259 include/linux/dmar.h dst->avail = src->avail; avail 74 include/linux/genalloc.h atomic_long_t avail; avail 192 include/linux/ioport.h extern void arch_remove_reservations(struct resource *avail); avail 380 include/linux/remoteproc.h int offset, int avail); avail 102 include/linux/vringh.h struct vring_avail __user *avail, avail 164 include/linux/vringh.h struct vring_avail *avail, avail 734 include/sound/pcm.h snd_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; avail 735 include/sound/pcm.h if (avail < 0) avail 736 include/sound/pcm.h avail += runtime->boundary; avail 737 include/sound/pcm.h else if ((snd_pcm_uframes_t) avail >= runtime->boundary) avail 738 include/sound/pcm.h avail -= runtime->boundary; avail 739 include/sound/pcm.h return avail; avail 750 include/sound/pcm.h snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr; avail 751 include/sound/pcm.h if (avail < 0) avail 752 include/sound/pcm.h avail += runtime->boundary; avail 753 include/sound/pcm.h return avail; avail 62 include/sound/rawmidi.h size_t avail; /* max used buffer for wakeup */ avail 1812 include/trace/events/rpcrdma.h __field(int, avail) avail 1818 include/trace/events/rpcrdma.h __entry->avail = atomic_read(&rdma->sc_sq_avail); avail 1824 include/trace/events/rpcrdma.h __get_str(addr), __entry->avail, __entry->depth avail 1847 include/trace/events/rpcrdma.h __field(int, avail) avail 1854 include/trace/events/rpcrdma.h __entry->avail = atomic_read(&rdma->sc_sq_avail); avail 1861 include/trace/events/rpcrdma.h __get_str(addr), __entry->avail, __entry->depth, avail 126 include/uapi/linux/virtio_ring.h struct vring_avail *avail; avail 164 include/uapi/linux/virtio_ring.h #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num]) avail 172 include/uapi/linux/virtio_ring.h vr->avail = p + num*sizeof(struct vring_desc); avail 173 include/uapi/linux/virtio_ring.h vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16) avail 466 include/uapi/sound/asound.h snd_pcm_uframes_t avail; /* number of frames available */ avail 654 include/uapi/sound/asound.h size_t avail; /* available bytes */ avail 82 include/uapi/sound/compress_offload.h __u64 avail; avail 1844 kernel/audit.c int len, avail; avail 1853 kernel/audit.c avail = skb_tailroom(skb); avail 1854 kernel/audit.c if (avail == 0) { avail 1855 kernel/audit.c avail = audit_expand(ab, AUDIT_BUFSIZ); avail 1856 kernel/audit.c if (!avail) avail 1860 kernel/audit.c len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args); avail 1861 kernel/audit.c if (len >= avail) { avail 1865 kernel/audit.c avail = audit_expand(ab, avail 1866 kernel/audit.c max_t(unsigned, AUDIT_BUFSIZ, 1+len-avail)); avail 1867 kernel/audit.c if (!avail) avail 1869 kernel/audit.c len = vsnprintf(skb_tail_pointer(skb), avail, fmt, args2); avail 1912 kernel/audit.c int i, avail, new_len; avail 1921 kernel/audit.c avail = skb_tailroom(skb); avail 1923 kernel/audit.c if (new_len >= avail) { avail 1925 kernel/audit.c new_len = AUDIT_BUFSIZ*(((new_len-avail)/AUDIT_BUFSIZ) + 1); avail 1926 kernel/audit.c avail = audit_expand(ab, new_len); avail 1927 kernel/audit.c if (!avail) avail 1945 kernel/audit.c int avail, new_len; avail 1954 kernel/audit.c avail = skb_tailroom(skb); avail 1956 kernel/audit.c if (new_len > avail) { avail 1957 kernel/audit.c avail = audit_expand(ab, new_len); avail 1958 kernel/audit.c if (!avail) avail 1046 kernel/relay.c size_t padding, avail = 0; avail 1058 kernel/relay.c avail = write_offset - (read_offset + padding); avail 1060 kernel/relay.c avail = (subbuf_size - padding) - read_offset; avail 1062 kernel/relay.c return avail; avail 1128 kernel/relay.c size_t read_start, avail; avail 1143 kernel/relay.c avail = relay_file_read_subbuf_avail(read_start, buf); avail 1144 kernel/relay.c if (!avail) avail 1147 kernel/relay.c avail = min(count, avail); avail 1149 kernel/relay.c ret = avail; avail 1150 kernel/relay.c if (copy_to_user(buffer, from, avail)) avail 567 kernel/resource.c void __weak arch_remove_reservations(struct resource *avail) avail 572 kernel/resource.c const struct resource *avail, avail 576 kernel/resource.c return avail->start; avail 598 kernel/resource.c struct resource tmp = *new, avail, alloc; avail 622 kernel/resource.c avail.start = ALIGN(tmp.start, constraint->align); avail 623 kernel/resource.c avail.end = tmp.end; avail 624 kernel/resource.c avail.flags = new->flags & ~IORESOURCE_UNSET; avail 625 kernel/resource.c if (avail.start >= tmp.start) { avail 626 kernel/resource.c alloc.flags = avail.flags; avail 627 kernel/resource.c alloc.start = constraint->alignf(constraint->alignf_data, &avail, avail 631 kernel/resource.c resource_contains(&avail, &alloc)) { avail 198 lib/genalloc.c atomic_long_set(&chunk->avail, size); avail 296 lib/genalloc.c if (size > atomic_long_read(&chunk->avail)) avail 316 lib/genalloc.c atomic_long_sub(size, &chunk->avail); avail 508 lib/genalloc.c atomic_long_add(size, &chunk->avail); avail 580 lib/genalloc.c size_t avail = 0; avail 584 lib/genalloc.c avail += atomic_long_read(&chunk->avail); avail 586 lib/genalloc.c return avail; avail 137 mm/page-writeback.c unsigned long avail; /* dirtyable */ avail 395 mm/page-writeback.c const unsigned long available_memory = dtc->avail; avail 408 mm/page-writeback.c unsigned long global_avail = gdtc->avail; avail 463 mm/page-writeback.c gdtc.avail = global_dirtyable_memory(); avail 737 mm/page-writeback.c unsigned long global_clean = gdtc->avail - min(gdtc->avail, gdtc->dirty); avail 740 mm/page-writeback.c mdtc->avail = filepages + min(headroom, other_clean); avail 1598 mm/page-writeback.c gdtc->avail = global_dirtyable_memory(); avail 1940 mm/page-writeback.c gdtc->avail = global_dirtyable_memory(); avail 185 mm/slab.c unsigned int avail; avail 525 mm/slab.c ac->avail = 0; avail 578 mm/slab.c int nr = min3(from->avail, max, to->limit - to->avail); avail 583 mm/slab.c memcpy(to->entry + to->avail, from->entry + from->avail -nr, avail 586 mm/slab.c from->avail -= nr; avail 587 mm/slab.c to->avail += nr; avail 690 mm/slab.c if (ac->avail) { avail 700 mm/slab.c free_block(cachep, ac->entry, ac->avail, node, list); avail 701 mm/slab.c ac->avail = 0; avail 719 mm/slab.c if (ac->avail && spin_trylock_irq(&alc->lock)) { avail 766 mm/slab.c if (unlikely(ac->avail == ac->limit)) { avail 770 mm/slab.c ac->entry[ac->avail++] = objp; avail 903 mm/slab.c n->shared->avail, node, &list); avail 904 mm/slab.c n->shared->avail = 0; avail 964 mm/slab.c free_block(cachep, nc->entry, nc->avail, node, &list); avail 965 mm/slab.c nc->avail = 0; avail 975 mm/slab.c shared->avail, node, &list); avail 1772 mm/slab.c cpu_cache_get(cachep)->avail = 0; avail 2124 mm/slab.c if (!ac || !ac->avail) avail 2127 mm/slab.c tofree = free_all ? ac->avail : (ac->limit + 4) / 5; avail 2128 mm/slab.c if (tofree > ac->avail) avail 2129 mm/slab.c tofree = (ac->avail + 1) / 2; avail 2132 mm/slab.c ac->avail -= tofree; avail 2133 mm/slab.c memmove(ac->entry, &(ac->entry[tofree]), sizeof(void *) * ac->avail); avail 2148 mm/slab.c free_block(cachep, ac->entry, ac->avail, node, &list); avail 2151 mm/slab.c ac->avail = 0; avail 2899 mm/slab.c ac->entry[ac->avail++] = slab_get_obj(cachep, page); avail 2929 mm/slab.c BUG_ON(ac->avail > 0 || !n); avail 2931 mm/slab.c if (!n->free_objects && (!shared || !shared->avail)) avail 2956 mm/slab.c n->free_objects -= ac->avail; avail 2962 mm/slab.c if (unlikely(!ac->avail)) { avail 2978 mm/slab.c if (!ac->avail && page) avail 2982 mm/slab.c if (!ac->avail) avail 2987 mm/slab.c return ac->entry[--ac->avail]; avail 3045 mm/slab.c if (likely(ac->avail)) { avail 3047 mm/slab.c objp = ac->entry[--ac->avail]; avail 3068 mm/slab.c kmemleak_erase(&ac->entry[ac->avail]); avail 3385 mm/slab.c int max = shared_array->limit - shared_array->avail; avail 3389 mm/slab.c memcpy(&(shared_array->entry[shared_array->avail]), avail 3391 mm/slab.c shared_array->avail += batchcount; avail 3413 mm/slab.c ac->avail -= batchcount; avail 3414 mm/slab.c memmove(ac->entry, &(ac->entry[batchcount]), sizeof(void *)*ac->avail); avail 3452 mm/slab.c if (ac->avail < ac->limit) { avail 3468 mm/slab.c ac->entry[ac->avail++] = objp; avail 3834 mm/slab.c free_block(cachep, ac->entry, ac->avail, node, &list); avail 3952 mm/slab.c if (!ac || !ac->avail) avail 4053 mm/slab.c shared_avail += n->shared->avail; avail 245 mm/slob.c slobidx_t avail = slob_units(cur); avail 260 mm/slob.c if (avail >= units + delta) { /* room enough? */ avail 265 mm/slob.c set_slob(aligned, avail - delta, next); avail 269 mm/slob.c avail = slob_units(cur); avail 273 mm/slob.c if (avail == units) { /* exact fit? unlink. */ avail 283 mm/slob.c set_slob(cur + units, avail - units, next); avail 480 net/ipv4/tcp.c int avail = READ_ONCE(tp->rcv_nxt) - READ_ONCE(tp->copied_seq); avail 482 net/ipv4/tcp.c if (avail > 0) { avail 483 net/ipv4/tcp.c if (avail >= target) avail 4752 net/ipv4/tcp_input.c int avail = tp->rcv_nxt - tp->copied_seq; avail 4754 net/ipv4/tcp_input.c if (avail < sk->sk_rcvlowat && !tcp_rmem_pressure(sk) && avail 1236 net/packet/af_packet.c int avail = rcvbuf - atomic_read(&sk->sk_rmem_alloc) avail 1239 net/packet/af_packet.c if (avail > (rcvbuf >> ROOM_POW_OFF)) avail 1241 net/packet/af_packet.c else if (avail > 0) avail 449 net/rds/ib.h unsigned int avail); avail 99 net/rds/ib_ring.c u32 ret = 0, avail; avail 101 net/rds/ib_ring.c avail = ring->w_nr - __rds_ib_ring_used(ring); avail 104 net/rds/ib_ring.c ring->w_alloc_ptr, avail); avail 106 net/rds/ib_ring.c if (val && avail) { avail 107 net/rds/ib_ring.c ret = min(val, avail); avail 357 net/rds/ib_send.c unsigned int avail, posted, got = 0, advertise; avail 368 net/rds/ib_send.c avail = IB_GET_SEND_CREDITS(oldval); avail 371 net/rds/ib_send.c wanted, avail, posted); avail 374 net/rds/ib_send.c if (avail && !posted) avail 375 net/rds/ib_send.c avail--; avail 377 net/rds/ib_send.c if (avail < wanted) { avail 382 net/rds/ib_send.c got = avail; avail 85 net/rds/ib_stats.c unsigned int avail) avail 93 net/rds/ib_stats.c if (avail < ARRAY_SIZE(rds_ib_stat_names)) avail 572 net/rds/rds.h unsigned int avail); avail 1011 net/rds/rds.h unsigned int avail); avail 120 net/rds/stats.c unsigned int avail; avail 122 net/rds/stats.c avail = len / sizeof(struct rds_info_counter); avail 124 net/rds/stats.c if (avail < ARRAY_SIZE(rds_stat_names)) { avail 125 net/rds/stats.c avail = 0; avail 138 net/rds/stats.c avail -= ARRAY_SIZE(rds_stat_names); avail 142 net/rds/stats.c lens->nr = rds_trans_stats_info_copy(iter, avail) + avail 97 net/rds/tcp.h unsigned int avail); avail 52 net/rds/tcp_stats.c unsigned int avail) avail 60 net/rds/tcp_stats.c if (avail < ARRAY_SIZE(rds_tcp_stat_names)) avail 137 net/rds/transport.c unsigned int avail) avail 153 net/rds/transport.c part = trans->stats_info_copy(iter, avail); avail 154 net/rds/transport.c avail -= min(avail, part); avail 601 net/rxrpc/conn_client.c u8 avail, mask; avail 615 net/rxrpc/conn_client.c (avail = ~conn->active_chans, avail 616 net/rxrpc/conn_client.c avail &= mask, avail 617 net/rxrpc/conn_client.c avail != 0)) avail 618 net/rxrpc/conn_client.c rxrpc_activate_one_channel(conn, __ffs(avail)); avail 858 net/tipc/link.c int avail[5] = {0,}; avail 864 net/tipc/link.c avail[imp] = l->backlog[imp].limit - l->backlog[imp].len; avail 868 net/tipc/link.c if (avail[imp] <= 0) avail 870 net/tipc/link.c avail[imp]--; avail 515 samples/mic/mpssd/mpssd.c while (avail_idx == le16toh(READ_ONCE(vr->vr.avail->idx))) { avail 519 samples/mic/mpssd/mpssd.c le16toh(vr->vr.avail->idx), vr->info->avail_idx); avail 657 samples/mic/mpssd/mpssd.c le16toh(rx_vr.vr.avail->idx)) { avail 856 samples/mic/mpssd/mpssd.c le16toh(rx_vr.vr.avail->idx)) { avail 1216 samples/mic/mpssd/mpssd.c le16toh(vring.vr.avail->idx)) { avail 1222 samples/mic/mpssd/mpssd.c vring.vr.avail->ring[avail_idx]); avail 613 scripts/kconfig/lxdialog/util.c size_t avail; avail 615 scripts/kconfig/lxdialog/util.c avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str); avail 619 scripts/kconfig/lxdialog/util.c avail, fmt, ap); avail 172 scripts/mod/sumversion.c const uint32_t avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); avail 176 scripts/mod/sumversion.c if (avail > len) { avail 177 scripts/mod/sumversion.c memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), avail 182 scripts/mod/sumversion.c memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), avail 183 scripts/mod/sumversion.c data, avail); avail 186 scripts/mod/sumversion.c data += avail; avail 187 scripts/mod/sumversion.c len -= avail; avail 539 security/apparmor/apparmorfs.c int avail; avail 554 security/apparmor/apparmorfs.c avail = sprintf(buffer, "%ld\n", rev->ns->revision); avail 555 security/apparmor/apparmorfs.c if (*ppos + size > avail) { avail 561 security/apparmor/apparmorfs.c return simple_read_from_buffer(buf, size, ppos, buffer, avail); avail 245 security/tomoyo/common.c head->r.avail = 0; avail 282 security/tomoyo/common.c size_t pos = head->r.avail; avail 294 security/tomoyo/common.c head->r.avail += len; avail 2675 security/tomoyo/common.c if (head->w.avail >= head->writebuf_size - 1) { avail 2683 security/tomoyo/common.c memmove(cp, cp0, head->w.avail); avail 2695 security/tomoyo/common.c cp0[head->w.avail++] = c; avail 2698 security/tomoyo/common.c cp0[head->w.avail - 1] = '\0'; avail 2699 security/tomoyo/common.c head->w.avail = 0; avail 806 security/tomoyo/common.h size_t avail; avail 826 security/tomoyo/common.h size_t avail; avail 184 sound/core/compress_offload.c struct snd_compr_avail *avail) avail 186 sound/core/compress_offload.c memset(avail, 0, sizeof(*avail)); avail 187 sound/core/compress_offload.c snd_compr_update_tstamp(stream, &avail->tstamp); avail 210 sound/core/compress_offload.c avail->avail = stream->runtime->total_bytes_available - avail 213 sound/core/compress_offload.c avail->avail = stream->runtime->buffer_size - avail->avail; avail 215 sound/core/compress_offload.c pr_debug("ret avail as %lld\n", avail->avail); avail 216 sound/core/compress_offload.c return avail->avail; avail 221 sound/core/compress_offload.c struct snd_compr_avail avail; avail 223 sound/core/compress_offload.c return snd_compr_calc_avail(stream, &avail); avail 230 sound/core/compress_offload.c size_t avail; avail 232 sound/core/compress_offload.c avail = snd_compr_calc_avail(stream, &ioctl_avail); avail 233 sound/core/compress_offload.c ioctl_avail.avail = avail; avail 286 sound/core/compress_offload.c size_t avail; avail 305 sound/core/compress_offload.c avail = snd_compr_get_avail(stream); avail 306 sound/core/compress_offload.c pr_debug("avail returned %ld\n", (unsigned long)avail); avail 308 sound/core/compress_offload.c if (avail > count) avail 309 sound/core/compress_offload.c avail = count; avail 313 sound/core/compress_offload.c retval = stream->ops->copy(stream, cbuf, avail); avail 315 sound/core/compress_offload.c retval = snd_compr_write_data(stream, buf, avail); avail 337 sound/core/compress_offload.c size_t avail; avail 362 sound/core/compress_offload.c avail = snd_compr_get_avail(stream); avail 363 sound/core/compress_offload.c pr_debug("avail returned %ld\n", (unsigned long)avail); avail 365 sound/core/compress_offload.c if (avail > count) avail 366 sound/core/compress_offload.c avail = count; avail 369 sound/core/compress_offload.c retval = stream->ops->copy(stream, buf, avail); avail 399 sound/core/compress_offload.c size_t avail; avail 420 sound/core/compress_offload.c avail = snd_compr_get_avail(stream); avail 421 sound/core/compress_offload.c pr_debug("avail is %ld\n", (unsigned long)avail); avail 434 sound/core/compress_offload.c if (avail >= stream->runtime->fragment_size) avail 2219 sound/core/oss/pcm_oss.c snd_pcm_sframes_t avail; avail 2247 sound/core/oss/pcm_oss.c err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &avail); avail 2248 sound/core/oss/pcm_oss.c if (err == -EPIPE || err == -ESTRPIPE || (! err && avail < 0)) { avail 2249 sound/core/oss/pcm_oss.c avail = runtime->buffer_size; avail 2253 sound/core/oss/pcm_oss.c avail = runtime->buffer_size - avail; avail 2257 sound/core/oss/pcm_oss.c err = snd_pcm_oss_capture_position_fixup(substream, &avail); avail 2262 sound/core/oss/pcm_oss.c info.bytes = snd_pcm_oss_bytes(substream, avail) + fixup; avail 468 sound/core/pcm.c snd_iprintf(buffer, "avail : %ld\n", status.avail); avail 178 sound/core/pcm_compat.c u32 avail; avail 218 sound/core/pcm_compat.c put_user(status.avail, &src->avail) || avail 241 sound/core/pcm_compat.c u32 avail; avail 282 sound/core/pcm_compat.c put_user(status.avail, &src->avail) || avail 74 sound/core/pcm_lib.c snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime); avail 75 sound/core/pcm_lib.c if (avail > runtime->buffer_size) avail 76 sound/core/pcm_lib.c avail = runtime->buffer_size; avail 77 sound/core/pcm_lib.c runtime->silence_filled = avail > 0 ? avail : 0; avail 178 sound/core/pcm_lib.c snd_pcm_uframes_t avail; avail 180 sound/core/pcm_lib.c avail = snd_pcm_avail(substream); avail 181 sound/core/pcm_lib.c if (avail > runtime->avail_max) avail 182 sound/core/pcm_lib.c runtime->avail_max = avail; avail 184 sound/core/pcm_lib.c if (avail >= runtime->buffer_size) { avail 189 sound/core/pcm_lib.c if (avail >= runtime->stop_threshold) { avail 195 sound/core/pcm_lib.c if (avail >= runtime->twake) avail 197 sound/core/pcm_lib.c } else if (avail >= runtime->control->avail_min) avail 1822 sound/core/pcm_lib.c snd_pcm_uframes_t avail = 0; avail 1860 sound/core/pcm_lib.c avail = snd_pcm_avail(substream); avail 1861 sound/core/pcm_lib.c if (avail >= runtime->twake) avail 1880 sound/core/pcm_lib.c avail = 0; /* indicate draining */ avail 1901 sound/core/pcm_lib.c *availp = avail; avail 2113 sound/core/pcm_lib.c snd_pcm_uframes_t avail; avail 2181 sound/core/pcm_lib.c avail = snd_pcm_avail(substream); avail 2186 sound/core/pcm_lib.c if (!avail) { avail 2198 sound/core/pcm_lib.c err = wait_for_avail(substream, &avail); avail 2201 sound/core/pcm_lib.c if (!avail) avail 2204 sound/core/pcm_lib.c frames = size > avail ? avail : size; avail 2233 sound/core/pcm_lib.c avail -= frames; avail 921 sound/core/pcm_native.c status->avail = snd_pcm_avail(substream); avail 2659 sound/core/pcm_native.c snd_pcm_sframes_t avail) avail 2665 sound/core/pcm_native.c if (avail <= 0) avail 2667 sound/core/pcm_native.c if (frames > (snd_pcm_uframes_t)avail) avail 2668 sound/core/pcm_native.c frames = avail; avail 2679 sound/core/pcm_native.c snd_pcm_sframes_t avail) avail 2685 sound/core/pcm_native.c if (avail <= 0) avail 2687 sound/core/pcm_native.c if (frames > (snd_pcm_uframes_t)avail) avail 2688 sound/core/pcm_native.c frames = avail; avail 3187 sound/core/pcm_native.c snd_pcm_uframes_t avail; avail 3204 sound/core/pcm_native.c avail = snd_pcm_avail(substream); avail 3209 sound/core/pcm_native.c if (avail >= runtime->control->avail_min) avail 3215 sound/core/pcm_native.c if (!avail) avail 116 sound/core/pcm_trace.h __field( snd_pcm_uframes_t, avail ) avail 127 sound/core/pcm_trace.h __entry->avail = (substream)->stream ? snd_pcm_capture_avail(substream->runtime) : snd_pcm_playback_avail(substream->runtime); avail 138 sound/core/pcm_trace.h __entry->avail, avail 79 sound/core/rawmidi.c return runtime->avail >= runtime->avail_min; avail 87 sound/core/rawmidi.c return runtime->avail >= runtime->avail_min && avail 88 sound/core/rawmidi.c (!substream->append || runtime->avail >= count); avail 126 sound/core/rawmidi.c runtime->avail = 0; avail 128 sound/core/rawmidi.c runtime->avail = runtime->buffer_size; avail 170 sound/core/rawmidi.c runtime->avail = is_input ? 0 : runtime->buffer_size; avail 200 sound/core/rawmidi.c (runtime->avail >= runtime->buffer_size), avail 204 sound/core/rawmidi.c if (runtime->avail < runtime->buffer_size && !timeout) { avail 207 sound/core/rawmidi.c (long)runtime->avail, (long)runtime->buffer_size); avail 703 sound/core/rawmidi.c status->avail = runtime->avail; avail 716 sound/core/rawmidi.c status->avail = runtime->avail; avail 909 sound/core/rawmidi.c if (runtime->avail < runtime->buffer_size) { avail 912 sound/core/rawmidi.c runtime->avail++; avail 922 sound/core/rawmidi.c if (count1 > (int)(runtime->buffer_size - runtime->avail)) avail 923 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->avail; avail 927 sound/core/rawmidi.c runtime->avail += count1; avail 933 sound/core/rawmidi.c if (count1 > (int)(runtime->buffer_size - runtime->avail)) { avail 934 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->avail; avail 940 sound/core/rawmidi.c runtime->avail += count1; avail 968 sound/core/rawmidi.c while (count > 0 && runtime->avail) { avail 972 sound/core/rawmidi.c if (count1 > (int)runtime->avail) avail 973 sound/core/rawmidi.c count1 = runtime->avail; avail 979 sound/core/rawmidi.c runtime->avail -= count1; avail 1044 sound/core/rawmidi.c if (!runtime->avail) avail 1080 sound/core/rawmidi.c result = runtime->avail >= runtime->buffer_size; avail 1106 sound/core/rawmidi.c if (runtime->avail >= runtime->buffer_size) { avail 1117 sound/core/rawmidi.c if (count1 > (int)(runtime->buffer_size - runtime->avail)) avail 1118 sound/core/rawmidi.c count1 = runtime->buffer_size - runtime->avail; avail 1123 sound/core/rawmidi.c if (count > (int)(runtime->buffer_size - runtime->avail - count1)) avail 1124 sound/core/rawmidi.c count = runtime->buffer_size - runtime->avail - count1; avail 1178 sound/core/rawmidi.c snd_BUG_ON(runtime->avail + count > runtime->buffer_size); avail 1181 sound/core/rawmidi.c runtime->avail += count; avail 1260 sound/core/rawmidi.c if (runtime->avail < runtime->buffer_size) { avail 1261 sound/core/rawmidi.c count = runtime->buffer_size - runtime->avail; avail 1287 sound/core/rawmidi.c if ((long)runtime->avail < count) { avail 1293 sound/core/rawmidi.c while (count > 0 && runtime->avail > 0) { avail 1297 sound/core/rawmidi.c if (count1 > (long)runtime->avail) avail 1298 sound/core/rawmidi.c count1 = runtime->avail; avail 1304 sound/core/rawmidi.c runtime->avail -= count1; avail 1323 sound/core/rawmidi.c count1 = runtime->avail < runtime->buffer_size; avail 1373 sound/core/rawmidi.c if (!runtime->avail && !timeout) avail 1389 sound/core/rawmidi.c while (runtime->avail != runtime->buffer_size) { avail 1391 sound/core/rawmidi.c unsigned int last_avail = runtime->avail; avail 1401 sound/core/rawmidi.c if (runtime->avail == last_avail && !timeout) avail 1479 sound/core/rawmidi.c (unsigned long) runtime->avail); avail 1502 sound/core/rawmidi.c (unsigned long) runtime->avail, avail 47 sound/core/rawmidi_compat.c u32 avail; avail 79 sound/core/rawmidi_compat.c put_user(status.avail, &src->avail) || avail 92 sound/core/rawmidi_compat.c u32 avail; avail 126 sound/core/rawmidi_compat.c put_user(status.avail, &src->avail) || avail 76 sound/core/seq/seq_midi.c while (runtime->avail > 0) { avail 104 sound/core/seq/seq_midi.c if ((tmp = runtime->avail) < count) { avail 77 sound/pci/ctxfi/ctresource.c if (n > mgr->avail) avail 82 sound/pci/ctxfi/ctresource.c mgr->avail -= n; avail 90 sound/pci/ctxfi/ctresource.c mgr->avail += n; avail 245 sound/pci/ctxfi/ctresource.c mgr->avail = mgr->amount = amount; avail 287 sound/pci/ctxfi/ctresource.c mgr->avail = mgr->amount = 0; avail 56 sound/pci/ctxfi/ctresource.h unsigned int avail; /* The amount of currently available resources */ avail 446 sound/soc/codecs/wm_adsp.c int avail; avail 1443 sound/soc/codecs/wm_adsp.c int avail = SNDRV_CTL_ELEM_ID_NAME_MAXLEN - ret - 2; avail 1447 sound/soc/codecs/wm_adsp.c avail -= strlen(dsp->component->name_prefix) + 1; avail 1450 sound/soc/codecs/wm_adsp.c if (subname_len > avail) avail 1451 sound/soc/codecs/wm_adsp.c skip = subname_len - avail; avail 3672 sound/soc/codecs/wm_adsp.c buf->avail = 0; avail 3956 sound/soc/codecs/wm_adsp.c int write_index, read_index, avail; avail 3984 sound/soc/codecs/wm_adsp.c avail = write_index - buf->read_index; avail 3985 sound/soc/codecs/wm_adsp.c if (avail < 0) avail 3986 sound/soc/codecs/wm_adsp.c avail += wm_adsp_buffer_size(buf); avail 3989 sound/soc/codecs/wm_adsp.c buf->read_index, write_index, avail * WM_ADSP_DATA_WORD_SIZE); avail 3991 sound/soc/codecs/wm_adsp.c buf->avail = avail; avail 4079 sound/soc/codecs/wm_adsp.c if (buf->avail < wm_adsp_compr_frag_words(compr)) { avail 4090 sound/soc/codecs/wm_adsp.c if (buf->avail < wm_adsp_compr_frag_words(compr)) { avail 4109 sound/soc/codecs/wm_adsp.c tstamp->copied_total += buf->avail * WM_ADSP_DATA_WORD_SIZE; avail 4143 sound/soc/codecs/wm_adsp.c if (nwords > buf->avail) avail 4144 sound/soc/codecs/wm_adsp.c nwords = buf->avail; avail 4169 sound/soc/codecs/wm_adsp.c buf->avail -= nwords; avail 300 sound/soc/intel/atom/sst/sst.h int avail; avail 704 sound/soc/mediatek/common/mtk-btcvsd.c unsigned long avail; avail 711 sound/soc/mediatek/common/mtk-btcvsd.c avail = (bt->rx->packet_w - bt->rx->packet_r) * packet_size; avail 717 sound/soc/mediatek/common/mtk-btcvsd.c if (!avail) { avail 728 sound/soc/mediatek/common/mtk-btcvsd.c avail % packet_size != 0) { avail 730 sound/soc/mediatek/common/mtk-btcvsd.c __func__, count, avail, packet_size); avail 733 sound/soc/mediatek/common/mtk-btcvsd.c avail -= avail % packet_size; avail 736 sound/soc/mediatek/common/mtk-btcvsd.c if (count > avail) avail 737 sound/soc/mediatek/common/mtk-btcvsd.c read_size = avail; avail 783 sound/soc/mediatek/common/mtk-btcvsd.c int written_size = count, avail = 0, cur_write_idx, write_size, cont; avail 803 sound/soc/mediatek/common/mtk-btcvsd.c avail = bt->tx->buf_size - avail 810 sound/soc/mediatek/common/mtk-btcvsd.c if (!avail) { avail 821 sound/soc/mediatek/common/mtk-btcvsd.c avail % packet_size != 0) { avail 823 sound/soc/mediatek/common/mtk-btcvsd.c __func__, count, avail, packet_size); avail 825 sound/soc/mediatek/common/mtk-btcvsd.c avail -= avail % packet_size; avail 828 sound/soc/mediatek/common/mtk-btcvsd.c if (count > avail) avail 829 sound/soc/mediatek/common/mtk-btcvsd.c write_size = avail; avail 502 sound/soc/qcom/qdsp6/q6asm-dai.c uint64_t avail; avail 531 sound/soc/qcom/qdsp6/q6asm-dai.c avail = prtd->bytes_received - prtd->bytes_sent; avail 533 sound/soc/qcom/qdsp6/q6asm-dai.c if (avail >= prtd->pcm_count) { avail 76 sound/soc/sof/trace.c size_t avail, buffer_size = dfse->size; avail 96 sound/soc/sof/trace.c avail = sof_wait_trace_avail(sdev, lpos, buffer_size); avail 103 sound/soc/sof/trace.c count = avail > count ? count : avail; avail 573 sound/soc/sprd/sprd-mcdt.c int avail, i = 0, words = size / 4; avail 591 sound/soc/sprd/sprd-mcdt.c avail = sprd_mcdt_dac_fifo_avail(mcdt, chan->id); avail 592 sound/soc/sprd/sprd-mcdt.c if (size > avail) { avail 624 sound/soc/sprd/sprd-mcdt.c int i = 0, avail, words = size / 4; avail 641 sound/soc/sprd/sprd-mcdt.c avail = sprd_mcdt_adc_fifo_avail(mcdt, chan->id); avail 642 sound/soc/sprd/sprd-mcdt.c if (size > avail) avail 643 sound/soc/sprd/sprd-mcdt.c words = avail / 4; avail 466 tools/include/uapi/sound/asound.h snd_pcm_uframes_t avail; /* number of frames available */ avail 654 tools/include/uapi/sound/asound.h size_t avail; /* available bytes */ avail 1018 tools/perf/util/probe-file.c bool avail; avail 1021 tools/perf/util/probe-file.c [idx] = {.pattern = pat, .avail = false} avail 1052 tools/perf/util/probe-file.c if (!ftrace_readme_table[i].avail) avail 1053 tools/perf/util/probe-file.c ftrace_readme_table[i].avail = avail 1064 tools/perf/util/probe-file.c return ftrace_readme_table[type].avail; avail 103 tools/virtio/ringtest/virtio_ring_0_9.c unsigned avail; avail 135 tools/virtio/ringtest/virtio_ring_0_9.c avail = guest.avail_idx++; avail 136 tools/virtio/ringtest/virtio_ring_0_9.c ring.avail->ring[avail & (ring_size - 1)] = avail 137 tools/virtio/ringtest/virtio_ring_0_9.c (head | (avail & ~(ring_size - 1))) ^ 0x8000; avail 142 tools/virtio/ringtest/virtio_ring_0_9.c avail = (ring_size - 1) & (guest.avail_idx++); avail 143 tools/virtio/ringtest/virtio_ring_0_9.c ring.avail->ring[avail] = head; avail 148 tools/virtio/ringtest/virtio_ring_0_9.c ring.avail->idx = guest.avail_idx; avail 262 tools/virtio/ringtest/virtio_ring_0_9.c unsigned index = ring.avail->ring[head & (ring_size - 1)]; avail 266 tools/virtio/ringtest/virtio_ring_0_9.c return head == ring.avail->idx; avail 277 tools/virtio/ringtest/virtio_ring_0_9.c head = ring.avail->ring[used_idx & (ring_size - 1)]; avail 286 tools/virtio/ringtest/virtio_ring_0_9.c if (used_idx == ring.avail->idx) avail 296 tools/virtio/ringtest/virtio_ring_0_9.c head = ring.avail->ring[used_idx]; avail 69 tools/virtio/virtio_test.c .avail_user_addr = (uint64_t)(unsigned long)info->vring.avail, avail 116 tools/virtio/vringh_test.c err = get_user(avail_idx, &vrh->vring.avail->idx); avail 128 tools/virtio/vringh_test.c err = get_user(*head, &vrh->vring.avail->ring[i]); avail 190 tools/virtio/vringh_test.c vrh.vring.desc, vrh.vring.avail, vrh.vring.used); avail 492 tools/virtio/vringh_test.c vrh.vring.desc, vrh.vring.avail, vrh.vring.used); avail 46 virt/kvm/coalesced_mmio.c unsigned avail; avail 55 virt/kvm/coalesced_mmio.c avail = (ring->first - last - 1) % KVM_COALESCED_MMIO_MAX; avail 56 virt/kvm/coalesced_mmio.c if (avail == 0) {