fifo 881 block/bfq-iosched.c rq = rq_entry_fifo(bfqq->fifo.next); fifo 5049 block/bfq-iosched.c INIT_LIST_HEAD(&bfqq->fifo); fifo 5449 block/bfq-iosched.c list_add_tail(&rq->queuelist, &bfqq->fifo); fifo 267 block/bfq-iosched.h struct list_head fifo; fifo 145 drivers/ata/pata_ali.c u8 fifo; fifo 152 drivers/ata/pata_ali.c pci_read_config_byte(pdev, pio_fifo, &fifo); fifo 153 drivers/ata/pata_ali.c fifo &= ~(0x0F << shift); fifo 154 drivers/ata/pata_ali.c fifo |= (on << shift); fifo 155 drivers/ata/pata_ali.c pci_write_config_byte(pdev, pio_fifo, fifo); fifo 183 drivers/ata/pata_amd.c u8 fifo = fifobit[ap->port_no]; fifo 189 drivers/ata/pata_amd.c fifo = 0; fifo 192 drivers/ata/pata_amd.c fifo = 0; fifo 197 drivers/ata/pata_amd.c r |= fifo; fifo 450 drivers/ata/pata_amd.c u8 fifo; fifo 453 drivers/ata/pata_amd.c pci_read_config_byte(pdev, 0x41, &fifo); fifo 454 drivers/ata/pata_amd.c fifo &= 0x0F; fifo 455 drivers/ata/pata_amd.c pci_write_config_byte(pdev, 0x41, fifo); fifo 535 drivers/ata/pata_amd.c u8 fifo; fifo 544 drivers/ata/pata_amd.c pci_read_config_byte(pdev, 0x41, &fifo); fifo 497 drivers/ata/pata_via.c u8 fifo; fifo 499 drivers/ata/pata_via.c pci_read_config_byte(pdev, 0x43, &fifo); fifo 503 drivers/ata/pata_via.c fifo &= 0x7F; fifo 505 drivers/ata/pata_via.c fifo &= 0x9f; fifo 507 drivers/ata/pata_via.c fifo |= fifo_setting[enable]; fifo 508 drivers/ata/pata_via.c pci_write_config_byte(pdev, 0x43, fifo); fifo 475 drivers/char/sonypi.c struct kfifo fifo; fifo 865 drivers/char/sonypi.c kfifo_in_locked(&sonypi_device.fifo, (unsigned char *)&event, fifo 891 drivers/char/sonypi.c kfifo_reset(&sonypi_device.fifo); fifo 904 drivers/char/sonypi.c if ((kfifo_len(&sonypi_device.fifo) == 0) && fifo 909 drivers/char/sonypi.c kfifo_len(&sonypi_device.fifo) != 0); fifo 914 drivers/char/sonypi.c (kfifo_out_locked(&sonypi_device.fifo, &c, sizeof(c), fifo 932 drivers/char/sonypi.c if (kfifo_len(&sonypi_device.fifo)) fifo 1300 drivers/char/sonypi.c error = kfifo_alloc(&sonypi_device.fifo, SONYPI_BUF_SIZE, GFP_KERNEL); fifo 1407 drivers/char/sonypi.c kfifo_free(&sonypi_device.fifo); fifo 1435 drivers/char/sonypi.c kfifo_free(&sonypi_device.fifo); fifo 289 drivers/crypto/talitos.c request = &priv->chan[ch].fifo[head]; fifo 352 drivers/crypto/talitos.c while (priv->chan[ch].fifo[tail].desc) { fifo 355 drivers/crypto/talitos.c request = &priv->chan[ch].fifo[tail]; fifo 480 drivers/crypto/talitos.c while (priv->chan[ch].fifo[iter].dma_desc != cur_desc && fifo 481 drivers/crypto/talitos.c priv->chan[ch].fifo[iter].desc->next_desc != cur_desc) { fifo 489 drivers/crypto/talitos.c if (priv->chan[ch].fifo[iter].desc->next_desc == cur_desc) { fifo 492 drivers/crypto/talitos.c edesc = container_of(priv->chan[ch].fifo[iter].desc, fifo 498 drivers/crypto/talitos.c return priv->chan[ch].fifo[iter].desc->hdr; fifo 3416 drivers/crypto/talitos.c priv->chan[i].fifo = devm_kcalloc(dev, fifo 3420 drivers/crypto/talitos.c if (!priv->chan[i].fifo) { fifo 93 drivers/crypto/talitos.h struct talitos_request *fifo; fifo 35 drivers/dma/bestcomm/fec.c u32 fifo; /* (u32*) address of fec's fifo */ fifo 55 drivers/dma/bestcomm/fec.c u32 fifo; /* (u32*) address of fec's fifo */ fifo 75 drivers/dma/bestcomm/fec.c phys_addr_t fifo; fifo 85 drivers/dma/bestcomm/fec.c bcom_fec_rx_init(int queue_len, phys_addr_t fifo, int maxbufsize) fifo 98 drivers/dma/bestcomm/fec.c priv->fifo = fifo; fifo 129 drivers/dma/bestcomm/fec.c var->fifo = (u32) priv->fifo; fifo 187 drivers/dma/bestcomm/fec.c bcom_fec_tx_init(int queue_len, phys_addr_t fifo) fifo 200 drivers/dma/bestcomm/fec.c priv->fifo = fifo; fifo 230 drivers/dma/bestcomm/fec.c var->fifo = (u32) priv->fifo; fifo 36 drivers/dma/bestcomm/gen_bd.c u32 fifo; /* (u32*) address of gen_bd's fifo */ fifo 53 drivers/dma/bestcomm/gen_bd.c u32 fifo; /* (u32*) address of gen_bd's fifo */ fifo 73 drivers/dma/bestcomm/gen_bd.c phys_addr_t fifo; fifo 85 drivers/dma/bestcomm/gen_bd.c bcom_gen_bd_rx_init(int queue_len, phys_addr_t fifo, fifo 99 drivers/dma/bestcomm/gen_bd.c priv->fifo = fifo; fifo 132 drivers/dma/bestcomm/gen_bd.c var->fifo = (u32) priv->fifo; fifo 170 drivers/dma/bestcomm/gen_bd.c bcom_gen_bd_tx_init(int queue_len, phys_addr_t fifo, fifo 184 drivers/dma/bestcomm/gen_bd.c priv->fifo = fifo; fifo 216 drivers/dma/bestcomm/gen_bd.c var->fifo = (u32) priv->fifo; fifo 316 drivers/dma/bestcomm/gen_bd.c phys_addr_t fifo, int maxbufsize) fifo 321 drivers/dma/bestcomm/gen_bd.c return bcom_gen_bd_rx_init(queue_len, fifo, fifo 337 drivers/dma/bestcomm/gen_bd.c bcom_psc_gen_bd_tx_init(unsigned psc_num, int queue_len, phys_addr_t fifo) fifo 340 drivers/dma/bestcomm/gen_bd.c return bcom_gen_bd_tx_init(queue_len, fifo, fifo 984 drivers/dma/qcom/bam_dma.c struct bam_desc_hw *fifo = PTR_ALIGN(bchan->fifo_virt, fifo 1047 drivers/dma/qcom/bam_dma.c memcpy(&fifo[bchan->tail], desc, fifo 1049 drivers/dma/qcom/bam_dma.c memcpy(fifo, &desc[partial], fifo 1053 drivers/dma/qcom/bam_dma.c memcpy(&fifo[bchan->tail], desc, fifo 459 drivers/gpu/drm/mcde/mcde_display.c enum mcde_fifo fifo, fifo 536 drivers/gpu/drm/mcde/mcde_display.c switch (fifo) { fifo 548 drivers/gpu/drm/mcde/mcde_display.c static void mcde_configure_fifo(struct mcde *mcde, enum mcde_fifo fifo, fifo 556 drivers/gpu/drm/mcde/mcde_display.c switch (fifo) { fifo 683 drivers/gpu/drm/mcde/mcde_display.c static void mcde_enable_fifo(struct mcde *mcde, enum mcde_fifo fifo) fifo 688 drivers/gpu/drm/mcde/mcde_display.c switch (fifo) { fifo 697 drivers/gpu/drm/mcde/mcde_display.c 'A' + fifo); fifo 709 drivers/gpu/drm/mcde/mcde_display.c static void mcde_disable_fifo(struct mcde *mcde, enum mcde_fifo fifo, fifo 716 drivers/gpu/drm/mcde/mcde_display.c switch (fifo) { fifo 725 drivers/gpu/drm/mcde/mcde_display.c 'A' + fifo); fifo 745 drivers/gpu/drm/mcde/mcde_display.c 'A' + fifo); fifo 754 drivers/gpu/drm/mcde/mcde_display.c static void mcde_drain_pipe(struct mcde *mcde, enum mcde_fifo fifo, fifo 761 drivers/gpu/drm/mcde/mcde_display.c switch (fifo) { fifo 789 drivers/gpu/drm/mcde/mcde_display.c mcde_enable_fifo(mcde, fifo); fifo 793 drivers/gpu/drm/mcde/mcde_display.c mcde_disable_fifo(mcde, fifo, true); fifo 96 drivers/gpu/drm/msm/msm_rd.c struct circ_buf fifo; fifo 103 drivers/gpu/drm/msm/msm_rd.c struct circ_buf *fifo = &rd->fifo; fifo 107 drivers/gpu/drm/msm/msm_rd.c char *fptr = &fifo->buf[fifo->head]; fifo 110 drivers/gpu/drm/msm/msm_rd.c wait_event(rd->fifo_event, circ_space(&rd->fifo) > 0 || !rd->open); fifo 118 drivers/gpu/drm/msm/msm_rd.c n = min(sz, circ_space_to_end(&rd->fifo)); fifo 121 drivers/gpu/drm/msm/msm_rd.c smp_store_release(&fifo->head, (fifo->head + n) & (BUF_SZ - 1)); fifo 141 drivers/gpu/drm/msm/msm_rd.c struct circ_buf *fifo = &rd->fifo; fifo 142 drivers/gpu/drm/msm/msm_rd.c const char *fptr = &fifo->buf[fifo->tail]; fifo 148 drivers/gpu/drm/msm/msm_rd.c circ_count(&rd->fifo) > 0); fifo 156 drivers/gpu/drm/msm/msm_rd.c n = min_t(int, sz, circ_count_to_end(&rd->fifo)); fifo 162 drivers/gpu/drm/msm/msm_rd.c smp_store_release(&fifo->tail, (fifo->tail + n) & (BUF_SZ - 1)); fifo 245 drivers/gpu/drm/msm/msm_rd.c rd->fifo.buf = rd->buf; fifo 54 drivers/gpu/drm/nouveau/dispnv04/arb.c nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb) fifo 104 drivers/gpu/drm/nouveau/dispnv04/arb.c fifo->lwm = clwm; fifo 105 drivers/gpu/drm/nouveau/dispnv04/arb.c fifo->burst = cbs; fifo 110 drivers/gpu/drm/nouveau/dispnv04/arb.c nv10_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb) fifo 176 drivers/gpu/drm/nouveau/dispnv04/arb.c fifo->burst = min(max_burst_o, 1024); fifo 180 drivers/gpu/drm/nouveau/dispnv04/arb.c fifo->burst = min(max_burst_l, fifo->burst); fifo 182 drivers/gpu/drm/nouveau/dispnv04/arb.c fifo->burst = rounddown_pow_of_two(fifo->burst); fifo 187 drivers/gpu/drm/nouveau/dispnv04/arb.c max_lwm = fifo_len - fifo->burst fifo 189 drivers/gpu/drm/nouveau/dispnv04/arb.c + fifo->burst * drain_rate / fill_rate; fifo 191 drivers/gpu/drm/nouveau/dispnv04/arb.c fifo->lwm = min_lwm + 10 * (max_lwm - min_lwm) / 100; /* Empirical. */ fifo 163 drivers/gpu/drm/nouveau/include/nvkm/core/device.h struct nvkm_fifo *fifo; fifo 236 drivers/gpu/drm/nouveau/include/nvkm/core/device.h int (*fifo )(struct nvkm_device *, int idx, struct nvkm_fifo **); fifo 38 drivers/gpu/drm/nouveau/include/nvkm/core/engine.h } fifo; fifo 19 drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h struct nvkm_fifo *fifo; fifo 84 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c struct nvkm_fifo *fifo = device->fifo; fifo 93 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c chan = nvkm_fifo_chan_inst(fifo, (u64)inst << 12, &flags); fifo 102 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c nvkm_fifo_chan_put(fifo, flags, &chan); fifo 93 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv04_fifo_new, fifo 114 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv04_fifo_new, fifo 156 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv10_fifo_new, fifo 178 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv10_fifo_new, fifo 200 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 222 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 244 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv10_fifo_new, fifo 266 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 288 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 310 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 332 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 354 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 376 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 398 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 421 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 444 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 466 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv17_fifo_new, fifo 491 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 517 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 543 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 569 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 595 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 621 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 647 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 673 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 699 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 725 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 751 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 777 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 803 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 832 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv50_fifo_new, fifo 858 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 884 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 910 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = nv40_fifo_new, fifo 941 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 973 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1005 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1037 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1069 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1099 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1133 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1165 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1199 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1232 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1263 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1295 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1329 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = g84_fifo_new, fifo 1366 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1402 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1438 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1475 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1512 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1549 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1585 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1620 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1656 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gf100_fifo_new, fifo 1695 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gk104_fifo_new, fifo 1734 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gk104_fifo_new, fifo 1773 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gk104_fifo_new, fifo 1801 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gk20a_fifo_new, fifo 1837 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gk110_fifo_new, fifo 1875 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gk110_fifo_new, fifo 1913 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gk208_fifo_new, fifo 1951 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gk208_fifo_new, fifo 1988 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gm107_fifo_new, fifo 2022 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gm107_fifo_new, fifo 2057 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gm200_fifo_new, fifo 2092 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gm200_fifo_new, fifo 2127 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gm200_fifo_new, fifo 2152 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gm20b_fifo_new, fifo 2188 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gp100_fifo_new, fifo 2222 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gp100_fifo_new, fifo 2258 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gp100_fifo_new, fifo 2294 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gp100_fifo_new, fifo 2330 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gp100_fifo_new, fifo 2366 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gp100_fifo_new, fifo 2392 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gp10b_fifo_new, fifo 2432 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = gv100_fifo_new, fifo 2468 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = tu102_fifo_new, fifo 2503 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = tu102_fifo_new, fifo 2538 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = tu102_fifo_new, fifo 2573 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = tu102_fifo_new, fifo 2608 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fifo = tu102_fifo_new, fifo 2697 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(FIFO , device->fifo , &device->fifo->engine); fifo 3185 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(NVKM_ENGINE_FIFO , fifo); fifo 102 drivers/gpu/drm/nouveau/nvkm/engine/dma/base.c .fifo.sclass = nvkm_dma_oclass_fifo_get, fifo 71 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c chan = nvkm_fifo_chan_inst(device->fifo, (u64)inst << 12, &flags); fifo 92 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c nvkm_fifo_chan_put(device->fifo, flags, &chan); fifo 333 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c .fifo.sclass = nvkm_falcon_oclass_get, fifo 37 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_recover_chan(struct nvkm_fifo *fifo, int chid) fifo 40 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if (WARN_ON(!fifo->func->recover_chan)) fifo 42 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c spin_lock_irqsave(&fifo->lock, flags); fifo 43 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->func->recover_chan(fifo, chid); fifo 44 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c spin_unlock_irqrestore(&fifo->lock, flags); fifo 48 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_pause(struct nvkm_fifo *fifo, unsigned long *flags) fifo 50 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c return fifo->func->pause(fifo, flags); fifo 54 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_start(struct nvkm_fifo *fifo, unsigned long *flags) fifo 56 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c return fifo->func->start(fifo, flags); fifo 60 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_fault(struct nvkm_fifo *fifo, struct nvkm_fault_data *info) fifo 62 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c return fifo->func->fault(fifo, info); fifo 66 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_chan_put(struct nvkm_fifo *fifo, unsigned long flags, fifo 72 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c spin_unlock_irqrestore(&fifo->lock, flags); fifo 77 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_chan_inst_locked(struct nvkm_fifo *fifo, u64 inst) fifo 80 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c list_for_each_entry(chan, &fifo->chan, head) { fifo 83 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c list_add(&chan->head, &fifo->chan); fifo 91 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_chan_inst(struct nvkm_fifo *fifo, u64 inst, unsigned long *rflags) fifo 95 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c spin_lock_irqsave(&fifo->lock, flags); fifo 96 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if ((chan = nvkm_fifo_chan_inst_locked(fifo, inst))) { fifo 100 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c spin_unlock_irqrestore(&fifo->lock, flags); fifo 105 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_chan_chid(struct nvkm_fifo *fifo, int chid, unsigned long *rflags) fifo 109 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c spin_lock_irqsave(&fifo->lock, flags); fifo 110 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c list_for_each_entry(chan, &fifo->chan, head) { fifo 113 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c list_add(&chan->head, &fifo->chan); fifo 118 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c spin_unlock_irqrestore(&fifo->lock, flags); fifo 123 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_kevent(struct nvkm_fifo *fifo, int chid) fifo 125 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_event_send(&fifo->kevent, 1, chid, NULL, 0); fifo 166 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_cevent(struct nvkm_fifo *fifo) fifo 168 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_event_send(&fifo->cevent, 1, 0, NULL, 0); fifo 174 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = container_of(event, typeof(*fifo), uevent); fifo 175 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->func->uevent_fini(fifo); fifo 181 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = container_of(event, typeof(*fifo), uevent); fifo 182 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->func->uevent_init(fifo); fifo 211 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_uevent(struct nvkm_fifo *fifo) fifo 215 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_event_send(&fifo->uevent, 1, 0, &rep, sizeof(rep)); fifo 223 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(oclass->engine); fifo 224 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c return fifo->func->class_new(fifo, oclass, data, size, pobject); fifo 238 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(oclass->engine); fifo 239 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c return sclass->ctor(fifo, oclass, data, size, pobject); fifo 251 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(oclass->engine); fifo 255 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if (fifo->func->class_get) { fifo 256 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c int ret = fifo->func->class_get(fifo, index, oclass); fifo 262 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c while ((sclass = fifo->func->chan[c])) { fifo 277 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(engine); fifo 278 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->func->intr(fifo); fifo 284 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(engine); fifo 285 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if (fifo->func->fini) fifo 286 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->func->fini(fifo); fifo 293 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(engine); fifo 295 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c case NV_DEVICE_FIFO_CHANNELS: *data = fifo->nr; return 0; fifo 297 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if (fifo->func->info) fifo 298 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c return fifo->func->info(fifo, mthd, data); fifo 307 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(engine); fifo 308 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if (fifo->func->oneinit) fifo 309 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c return fifo->func->oneinit(fifo); fifo 322 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(engine); fifo 323 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->func->init(fifo); fifo 330 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c struct nvkm_fifo *fifo = nvkm_fifo(engine); fifo 331 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c void *data = fifo; fifo 332 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if (fifo->func->dtor) fifo 333 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c data = fifo->func->dtor(fifo); fifo 334 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_event_fini(&fifo->kevent); fifo 335 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_event_fini(&fifo->cevent); fifo 336 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_event_fini(&fifo->uevent); fifo 354 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c int index, int nr, struct nvkm_fifo *fifo) fifo 358 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->func = func; fifo 359 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c INIT_LIST_HEAD(&fifo->chan); fifo 360 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c spin_lock_init(&fifo->lock); fifo 362 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if (WARN_ON(fifo->nr > NVKM_FIFO_CHID_NR)) fifo 363 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->nr = NVKM_FIFO_CHID_NR; fifo 365 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c fifo->nr = nr; fifo 366 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c bitmap_clear(fifo->mask, 0, fifo->nr); fifo 368 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c ret = nvkm_engine_ctor(&nvkm_fifo, device, index, true, &fifo->engine); fifo 374 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c &fifo->uevent); fifo 379 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c ret = nvkm_event_init(&nvkm_fifo_cevent_func, 1, 1, &fifo->cevent); fifo 383 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c return nvkm_event_init(&nvkm_fifo_kevent_func, 1, nr, &fifo->kevent); fifo 157 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c if (engine->func->fifo.cclass) { fifo 158 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c ret = engine->func->fifo.cclass(chan, &cclass, fifo 205 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c struct nvkm_fifo *fifo = chan->fifo; fifo 206 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 217 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c if (engine->func->fifo.sclass) { fifo 218 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c ret = engine->func->fifo.sclass(oclass, index); fifo 316 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c struct nvkm_fifo *fifo = chan->fifo; fifo 320 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c spin_lock_irqsave(&fifo->lock, flags); fifo 322 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c __clear_bit(chan->chid, fifo->mask); fifo 325 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c spin_unlock_irqrestore(&fifo->lock, flags); fifo 354 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c struct nvkm_fifo *fifo, u32 size, u32 align, bool zero, fifo 360 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 367 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c chan->fifo = fifo; fifo 405 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c spin_lock_irqsave(&fifo->lock, flags); fifo 406 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c chan->chid = find_first_zero_bit(fifo->mask, NVKM_FIFO_CHID_NR); fifo 408 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c spin_unlock_irqrestore(&fifo->lock, flags); fifo 411 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c list_add(&chan->head, &fifo->chan); fifo 412 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c __set_bit(chan->chid, fifo->mask); fifo 413 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c spin_unlock_irqrestore(&fifo->lock, flags); fifo 420 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c nvkm_fifo_cevent(fifo); fifo 39 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c *pevent = &chan->fifo->uevent; fifo 94 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c struct nv50_fifo *fifo = chan->fifo; fifo 95 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 208 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c struct nv50_fifo *fifo = chan->fifo; fifo 209 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 214 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c nv50_fifo_runlist_update(fifo); fifo 232 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c g84_fifo_chan_ctor(struct nv50_fifo *fifo, u64 vmm, u64 push, fifo 236 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 242 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c ret = nvkm_fifo_chan_ctor(&g84_fifo_chan_func, &fifo->base, fifo 259 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c chan->fifo = fifo; fifo 10 drivers/gpu/drm/nouveau/nvkm/engine/fifo/changf100.h struct gf100_fifo *fifo; fifo 10 drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h struct gk104_fifo *fifo; fifo 10 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv04.h struct nv04_fifo *fifo; fifo 50 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c struct nv50_fifo *fifo = chan->fifo; fifo 51 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 182 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c struct nv50_fifo *fifo = chan->fifo; fifo 183 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 188 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c nv50_fifo_runlist_update(fifo); fifo 196 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c struct nv50_fifo *fifo = chan->fifo; fifo 197 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 202 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c nv50_fifo_runlist_update(fifo); fifo 231 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c nv50_fifo_chan_ctor(struct nv50_fifo *fifo, u64 vmm, u64 push, fifo 235 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 241 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c ret = nvkm_fifo_chan_ctor(&nv50_fifo_chan_func, &fifo->base, fifo 248 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c chan->fifo = fifo; fifo 9 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.h struct nv50_fifo *fifo; fifo 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmag84.c struct nv50_fifo *fifo = nv50_fifo(base); fifo 60 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmag84.c ret = g84_fifo_chan_ctor(fifo, args->v0.vmm, args->v0.pushbuf, fifo 39 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; fifo 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c mutex_lock(&chan->fifo->base.engine.subdev.mutex); fifo 43 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c mutex_unlock(&chan->fifo->base.engine.subdev.mutex); fifo 51 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; fifo 66 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c mutex_lock(&chan->fifo->base.engine.subdev.mutex); fifo 69 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c mutex_unlock(&chan->fifo->base.engine.subdev.mutex); fifo 77 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nv04_fifo *fifo = chan->fifo; fifo 78 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 82 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c u32 mask = fifo->base.nr - 1; fifo 87 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 97 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c c = fifo->ramfc; fifo 108 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c c = fifo->ramfc; fifo 123 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 130 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nv04_fifo *fifo = chan->fifo; fifo 131 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 134 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 136 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 143 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nv04_fifo *fifo = chan->fifo; fifo 144 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nvkm_instmem *imem = fifo->base.engine.subdev.device->imem; fifo 145 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c const struct nv04_fifo_ramfc *c = fifo->ramfc; fifo 172 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 174 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 192 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c ret = nvkm_fifo_chan_ctor(&nv04_fifo_dma_func, &fifo->base, fifo 198 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c chan->fifo = fifo; fifo 43 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv10.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 45 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv10.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 63 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv10.c ret = nvkm_fifo_chan_ctor(&nv04_fifo_dma_func, &fifo->base, fifo 69 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv10.c chan->fifo = fifo; fifo 43 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv17.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 45 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv17.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 63 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv17.c ret = nvkm_fifo_chan_ctor(&nv04_fifo_dma_func, &fifo->base, fifo 70 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv17.c chan->fifo = fifo; fifo 63 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c struct nv04_fifo *fifo = chan->fifo; fifo 64 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 73 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 76 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c chid = nvkm_rd32(device, 0x003204) & (fifo->base.nr - 1); fifo 84 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 93 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c struct nv04_fifo *fifo = chan->fifo; fifo 94 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 104 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 107 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c chid = nvkm_rd32(device, 0x003204) & (fifo->base.nr - 1); fifo 115 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 147 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; fifo 162 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c mutex_lock(&chan->fifo->base.engine.subdev.mutex); fifo 165 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c mutex_unlock(&chan->fifo->base.engine.subdev.mutex); fifo 190 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 192 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 210 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c ret = nvkm_fifo_chan_ctor(&nv40_fifo_dma_func, &fifo->base, fifo 217 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c chan->fifo = fifo; fifo 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv50.c struct nv50_fifo *fifo = nv50_fifo(base); fifo 60 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv50.c ret = nv50_fifo_chan_ctor(fifo, args->v0.vmm, args->v0.pushbuf, fifo 28 drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c g84_fifo_uevent_fini(struct nvkm_fifo *fifo) fifo 30 drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 35 drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c g84_fifo_uevent_init(struct nvkm_fifo *fifo) fifo 37 drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 37 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_uevent_init(struct nvkm_fifo *fifo) fifo 39 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 44 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_uevent_fini(struct nvkm_fifo *fifo) fifo 46 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 51 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_runlist_commit(struct gf100_fifo *fifo) fifo 54 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 61 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c cur = fifo->runlist.mem[fifo->runlist.active]; fifo 62 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c fifo->runlist.active = !fifo->runlist.active; fifo 65 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c list_for_each_entry(chan, &fifo->chan, head) { fifo 85 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c if (wait_event_timeout(fifo->runlist.wait, fifo 93 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_runlist_remove(struct gf100_fifo *fifo, struct gf100_fifo_chan *chan) fifo 95 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c mutex_lock(&fifo->base.engine.subdev.mutex); fifo 97 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c mutex_unlock(&fifo->base.engine.subdev.mutex); fifo 101 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_runlist_insert(struct gf100_fifo *fifo, struct gf100_fifo_chan *chan) fifo 103 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c mutex_lock(&fifo->base.engine.subdev.mutex); fifo 104 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c list_add_tail(&chan->head, &fifo->chan); fifo 105 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c mutex_unlock(&fifo->base.engine.subdev.mutex); fifo 109 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_engidx(struct gf100_fifo *fifo, u32 engn) fifo 126 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_engine(struct gf100_fifo *fifo, u32 engn) fifo 128 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 147 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct gf100_fifo *fifo = container_of(w, typeof(*fifo), recover.work); fifo 148 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 154 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 155 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c mask = fifo->recover.mask; fifo 156 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c fifo->recover.mask = 0ULL; fifo 157 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 160 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c engm |= 1 << gf100_fifo_engidx(fifo, engn); fifo 170 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_runlist_commit(fifo); fifo 176 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_recover(struct gf100_fifo *fifo, struct nvkm_engine *engine, fifo 179 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 185 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c assert_spin_locked(&fifo->base.lock); fifo 191 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c if (engine != &fifo->base.engine) fifo 192 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c fifo->recover.mask |= 1ULL << engine->subdev.index; fifo 193 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c schedule_work(&fifo->recover.work); fifo 194 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_fifo_kevent(&fifo->base, chid); fifo 259 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct gf100_fifo *fifo = gf100_fifo(base); fifo 260 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 294 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c chan = nvkm_fifo_chan_inst(&fifo->base, info->inst, &flags); fifo 306 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_recover(fifo, engine, (void *)chan); fifo 307 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_fifo_chan_put(&fifo->base, flags, &chan); fifo 317 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_sched_ctxsw(struct gf100_fifo *fifo) fifo 319 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 325 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 336 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c list_for_each_entry(chan, &fifo->chan, head) { fifo 338 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c engine = gf100_fifo_engine(fifo, engn); fifo 341 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_recover(fifo, engine, chan); fifo 347 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 351 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_sched(struct gf100_fifo *fifo) fifo 353 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 365 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_sched_ctxsw(fifo); fifo 373 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_fault(struct nvkm_fifo *fifo, int unit) fifo 375 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 393 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_fifo_fault(fifo, &info); fifo 405 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_pbdma(struct gf100_fifo *fifo, int unit) fifo 407 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 429 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c chan = nvkm_fifo_chan_chid(&fifo->base, chid, &flags); fifo 435 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_fifo_chan_put(&fifo->base, flags, &chan); fifo 443 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_runlist(struct gf100_fifo *fifo) fifo 445 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 450 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c wake_up(&fifo->runlist.wait); fifo 462 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_engine_unit(struct gf100_fifo *fifo, int engn) fifo 464 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 475 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_fifo_uevent(&fifo->base); fifo 487 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_engine(struct gf100_fifo *fifo) fifo 489 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 493 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_engine_unit(fifo, unit); fifo 501 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct gf100_fifo *fifo = gf100_fifo(base); fifo 502 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 515 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_sched(fifo); fifo 538 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_fault(&fifo->base, unit); fifo 549 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_pbdma(fifo, unit); fifo 557 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_runlist(fifo); fifo 562 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c gf100_fifo_intr_engine(fifo); fifo 576 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct gf100_fifo *fifo = gf100_fifo(base); fifo 577 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 584 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c fifo->pbdma_nr = hweight32(nvkm_rd32(device, 0x002204)); fifo 585 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_debug(subdev, "%d PBDMA(s)\n", fifo->pbdma_nr); fifo 589 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c false, &fifo->runlist.mem[0]); fifo 594 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c false, &fifo->runlist.mem[1]); fifo 598 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c init_waitqueue_head(&fifo->runlist.wait); fifo 601 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 0x1000, false, &fifo->user.mem); fifo 605 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c ret = nvkm_vmm_get(bar, 12, nvkm_memory_size(fifo->user.mem), fifo 606 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c &fifo->user.bar); fifo 610 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c return nvkm_memory_map(fifo->user.mem, 0, bar, fifo->user.bar, NULL, 0); fifo 616 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct gf100_fifo *fifo = gf100_fifo(base); fifo 617 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c flush_work(&fifo->recover.work); fifo 623 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct gf100_fifo *fifo = gf100_fifo(base); fifo 624 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 628 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_wr32(device, 0x000204, (1 << fifo->pbdma_nr) - 1); fifo 629 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_wr32(device, 0x002204, (1 << fifo->pbdma_nr) - 1); fifo 632 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c if (fifo->pbdma_nr >= 3) { fifo 642 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c for (i = 0; i < fifo->pbdma_nr; i++) { fifo 649 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_wr32(device, 0x002254, 0x10000000 | fifo->user.bar->addr >> 12); fifo 659 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct gf100_fifo *fifo = gf100_fifo(base); fifo 660 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 661 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_vmm_put(nvkm_bar_bar1_vmm(device), &fifo->user.bar); fifo 662 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_memory_unref(&fifo->user.mem); fifo 663 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_memory_unref(&fifo->runlist.mem[0]); fifo 664 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_memory_unref(&fifo->runlist.mem[1]); fifo 665 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c return fifo; fifo 687 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c struct gf100_fifo *fifo; fifo 689 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c if (!(fifo = kzalloc(sizeof(*fifo), GFP_KERNEL))) fifo 691 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c INIT_LIST_HEAD(&fifo->chan); fifo 692 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c INIT_WORK(&fifo->recover.work, gf100_fifo_recover_work); fifo 693 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c *pfifo = &fifo->base; fifo 695 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c return nvkm_fifo_ctor(&gf100_fifo, device, index, 128, &fifo->base); fifo 52 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_engine_status(struct gk104_fifo *fifo, int engn, fifo 55 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_engine *engine = fifo->engine[engn].engine; fifo 56 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 102 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 103 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (oclass->engn == &fifo->func->chan) { fifo 105 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c return user->ctor(fifo, oclass, argv, argc, pobject); fifo 107 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (oclass->engn == &fifo->func->user) { fifo 119 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 122 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (fifo->func->user.ctor && c++ == index) { fifo 123 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c oclass->base = fifo->func->user.user; fifo 124 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c oclass->engn = &fifo->func->user; fifo 128 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (fifo->func->chan.ctor && c++ == index) { fifo 129 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c oclass->base = fifo->func->chan.user; fifo 130 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c oclass->engn = &fifo->func->chan; fifo 138 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_uevent_fini(struct nvkm_fifo *fifo) fifo 140 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 145 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_uevent_init(struct nvkm_fifo *fifo) fifo 147 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 152 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_runlist_commit(struct gk104_fifo *fifo, int runl, fifo 155 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 179 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_runlist_update(struct gk104_fifo *fifo, int runl) fifo 181 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c const struct gk104_fifo_runlist_func *func = fifo->func->runlist; fifo 183 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 189 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c mem = fifo->runlist[runl].mem[fifo->runlist[runl].next]; fifo 190 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->runlist[runl].next = !fifo->runlist[runl].next; fifo 193 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c list_for_each_entry(chan, &fifo->runlist[runl].chan, head) { fifo 197 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c list_for_each_entry(cgrp, &fifo->runlist[runl].cgrp, head) { fifo 205 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c func->commit(fifo, runl, mem, nr); fifo 210 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_runlist_remove(struct gk104_fifo *fifo, struct gk104_fifo_chan *chan) fifo 213 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c mutex_lock(&fifo->base.engine.subdev.mutex); fifo 219 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c mutex_unlock(&fifo->base.engine.subdev.mutex); fifo 223 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_runlist_insert(struct gk104_fifo *fifo, struct gk104_fifo_chan *chan) fifo 226 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c mutex_lock(&fifo->base.engine.subdev.mutex); fifo 229 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c list_add_tail(&cgrp->head, &fifo->runlist[chan->runl].cgrp); fifo 232 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c list_add_tail(&chan->head, &fifo->runlist[chan->runl].chan); fifo 234 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c mutex_unlock(&fifo->base.engine.subdev.mutex); fifo 253 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_pbdma_init(struct gk104_fifo *fifo) fifo 255 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 256 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_wr32(device, 0x000204, (1 << fifo->pbdma_nr) - 1); fifo 260 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_pbdma_nr(struct gk104_fifo *fifo) fifo 262 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 277 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = container_of(w, typeof(*fifo), recover.work); fifo 278 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 284 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 285 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c runm = fifo->recover.runm; fifo 286 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c engm = fifo->recover.engm; fifo 287 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->recover.engm = 0; fifo 288 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->recover.runm = 0; fifo 289 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 294 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if ((engine = fifo->engine[engn].engine)) { fifo 301 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_runlist_update(fifo, runl); fifo 307 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c static void gk104_fifo_recover_engn(struct gk104_fifo *fifo, int engn); fifo 310 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_runl(struct gk104_fifo *fifo, int runl) fifo 312 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 316 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c assert_spin_locked(&fifo->base.lock); fifo 317 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (fifo->recover.runm & runm) fifo 319 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->recover.runm |= runm; fifo 326 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c schedule_work(&fifo->recover.work); fifo 330 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_chid(struct gk104_fifo *fifo, int runl, int chid) fifo 335 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c list_for_each_entry(chan, &fifo->runlist[runl].chan, head) { fifo 342 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c list_for_each_entry(cgrp, &fifo->runlist[runl].cgrp, head) { fifo 358 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 359 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 364 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c unsigned long engn, engm = fifo->runlist[runl].engm; fifo 367 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c assert_spin_locked(&fifo->base.lock); fifo 372 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c chan = gk104_fifo_recover_chid(fifo, runl, chid); fifo 375 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_fifo_kevent(&fifo->base, chid); fifo 383 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_runl(fifo, runl); fifo 386 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for_each_set_bit(engn, &engm, fifo->engine_nr) { fifo 388 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_engine_status(fifo, engn, &status); fifo 391 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_engn(fifo, engn); fifo 396 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_engn(struct gk104_fifo *fifo, int engn) fifo 398 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_engine *engine = fifo->engine[engn].engine; fifo 399 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 401 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c const u32 runl = fifo->engine[engn].runl; fifo 406 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c assert_spin_locked(&fifo->base.lock); fifo 407 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (fifo->recover.engm & engm) fifo 409 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->recover.engm |= engm; fifo 412 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_runl(fifo, runl); fifo 415 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_engine_status(fifo, engn, &status); fifo 418 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_chan(&fifo->base, status.chan->id); fifo 427 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c const struct nvkm_enum *en = fifo->func->fault.engine; fifo 448 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_engine_status(fifo, engn, &status); fifo 461 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c schedule_work(&fifo->recover.work); fifo 467 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 468 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 477 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c er = nvkm_enum_find(fifo->func->fault.reason, info->reason); fifo 478 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c ee = nvkm_enum_find(fifo->func->fault.engine, info->engine); fifo 480 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c ec = nvkm_enum_find(fifo->func->fault.hubclient, info->client); fifo 482 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c ec = nvkm_enum_find(fifo->func->fault.gpcclient, info->client); fifo 485 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c ea = nvkm_enum_find(fifo->func->fault.access, info->access); fifo 518 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 519 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c chan = nvkm_fifo_chan_inst_locked(&fifo->base, info->inst); fifo 532 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_chan(&fifo->base, chan->chid); fifo 538 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (engn = 0; engn < fifo->engine_nr && engine; engn++) { fifo 539 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (fifo->engine[engn].engine == engine) { fifo 540 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_engn(fifo, engn); fifo 545 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 560 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_bind(struct gk104_fifo *fifo) fifo 562 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 579 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_sched_ctxsw(struct gk104_fifo *fifo) fifo 581 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 588 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 592 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (engn = 0; engn < fifo->engine_nr; engn++) { fifo 595 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_engine_status(fifo, engn, &status); fifo 602 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for_each_set_bit(engn, &engm, fifo->engine_nr) fifo 603 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_recover_engn(fifo, engn); fifo 606 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 610 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_sched(struct gk104_fifo *fifo) fifo 612 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 623 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_sched_ctxsw(fifo); fifo 631 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_chsw(struct gk104_fifo *fifo) fifo 633 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 641 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_dropped_fault(struct gk104_fifo *fifo) fifo 643 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 684 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_pbdma_0(struct gk104_fifo *fifo, int unit) fifo 686 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 711 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c chan = nvkm_fifo_chan_chid(&fifo->base, chid, &flags); fifo 717 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_fifo_chan_put(&fifo->base, flags, &chan); fifo 733 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_pbdma_1(struct gk104_fifo *fifo, int unit) fifo 735 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 754 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_runlist(struct gk104_fifo *fifo) fifo 756 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 760 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c wake_up(&fifo->runlist[runl].wait); fifo 767 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_engine(struct gk104_fifo *fifo) fifo 769 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_fifo_uevent(&fifo->base); fifo 775 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 776 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 782 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_bind(fifo); fifo 794 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_sched(fifo); fifo 800 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_chsw(fifo); fifo 818 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_dropped_fault(fifo); fifo 827 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->func->intr.fault(&fifo->base, unit); fifo 838 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_pbdma_0(fifo, unit); fifo 839 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_pbdma_1(fifo, unit); fifo 847 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_runlist(fifo); fifo 853 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_fifo_intr_engine(fifo); fifo 867 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 868 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 869 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c flush_work(&fifo->recover.work); fifo 877 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 880 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c *data = (1ULL << fifo->runlist_nr) - 1; fifo 885 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (runl < fifo->runlist_nr) { fifo 886 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c unsigned long engm = fifo->runlist[runl].engm; fifo 889 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for_each_set_bit(engn, &engm, fifo->engine_nr) { fifo 890 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if ((engine = fifo->engine[engn].engine)) fifo 905 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 906 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 913 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->pbdma_nr = fifo->func->pbdma->nr(fifo); fifo 914 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_debug(subdev, "%d PBDMA(s)\n", fifo->pbdma_nr); fifo 917 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (!(map = kcalloc(fifo->pbdma_nr, sizeof(*map), GFP_KERNEL))) fifo 920 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (i = 0; i < fifo->pbdma_nr; i++) fifo 927 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (j = 0, pbid = -1; j < fifo->pbdma_nr; j++) { fifo 937 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->engine[engn].engine = nvkm_device_engine(device, engidx); fifo 938 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->engine[engn].runl = runl; fifo 939 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->engine[engn].pbid = pbid; fifo 940 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->engine_nr = max(fifo->engine_nr, engn + 1); fifo 941 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->runlist[runl].engm |= 1 << engn; fifo 942 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->runlist_nr = max(fifo->runlist_nr, runl + 1); fifo 947 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (i = 0; i < fifo->runlist_nr; i++) { fifo 948 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (j = 0; j < ARRAY_SIZE(fifo->runlist[i].mem); j++) { fifo 950 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->base.nr * 2/* TSG+chan */ * fifo 951 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->func->runlist->size, fifo 953 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c &fifo->runlist[i].mem[j]); fifo 958 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c init_waitqueue_head(&fifo->runlist[i].wait); fifo 959 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c INIT_LIST_HEAD(&fifo->runlist[i].cgrp); fifo 960 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c INIT_LIST_HEAD(&fifo->runlist[i].chan); fifo 964 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->base.nr * 0x200, 0x1000, true, fifo 965 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c &fifo->user.mem); fifo 969 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c ret = nvkm_vmm_get(bar, 12, nvkm_memory_size(fifo->user.mem), fifo 970 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c &fifo->user.bar); fifo 974 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c return nvkm_memory_map(fifo->user.mem, 0, bar, fifo->user.bar, NULL, 0); fifo 980 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 981 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 985 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->func->pbdma->init(fifo); fifo 988 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (i = 0; i < fifo->pbdma_nr; i++) { fifo 995 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (i = 0; i < fifo->pbdma_nr; i++) { fifo 1000 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_wr32(device, 0x002254, 0x10000000 | fifo->user.bar->addr >> 12); fifo 1002 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (fifo->func->pbdma->init_timeout) fifo 1003 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->func->pbdma->init_timeout(fifo); fifo 1012 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo = gk104_fifo(base); fifo 1013 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 1016 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_vmm_put(nvkm_bar_bar1_vmm(device), &fifo->user.bar); fifo 1017 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_memory_unref(&fifo->user.mem); fifo 1019 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (i = 0; i < fifo->runlist_nr; i++) { fifo 1020 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_memory_unref(&fifo->runlist[i].mem[1]); fifo 1021 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_memory_unref(&fifo->runlist[i].mem[0]); fifo 1024 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c return fifo; fifo 1047 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c struct gk104_fifo *fifo; fifo 1049 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (!(fifo = kzalloc(sizeof(*fifo), GFP_KERNEL))) fifo 1051 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c fifo->func = func; fifo 1052 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c INIT_WORK(&fifo->recover.work, gk104_fifo_recover_work); fifo 1053 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c *pfifo = &fifo->base; fifo 1055 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c return nvkm_fifo_ctor(&gk104_fifo_, device, index, nr, &fifo->base); fifo 30 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk208.c gk208_fifo_pbdma_init_timeout(struct gk104_fifo *fifo) fifo 32 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk208.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 35 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk208.c for (i = 0; i < fifo->pbdma_nr; i++) fifo 72 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c gm107_fifo_intr_fault(struct nvkm_fifo *fifo, int unit) fifo 74 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 92 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c nvkm_fifo_fault(fifo, &info); fifo 30 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm200.c gm200_fifo_pbdma_nr(struct gk104_fifo *fifo) fifo 32 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm200.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 56 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c gp100_fifo_intr_fault(struct nvkm_fifo *fifo, int unit) fifo 58 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c struct nvkm_device *device = fifo->engine.subdev.device; fifo 76 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c nvkm_fifo_fault(fifo, &info); fifo 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifog84.c struct nv50_fifo *fifo = nv50_fifo(base); fifo 62 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifog84.c ret = g84_fifo_chan_ctor(fifo, args->v0.vmm, args->v0.pushbuf, fifo 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c *pevent = &chan->fifo->uevent; fifo 44 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c *pevent = &chan->fifo->kevent; fifo 75 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c struct nvkm_subdev *subdev = &chan->fifo->base.engine.subdev; fifo 162 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c struct gf100_fifo *fifo = chan->fifo; fifo 163 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 167 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c gf100_fifo_runlist_remove(fifo, chan); fifo 169 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c gf100_fifo_runlist_commit(fifo); fifo 172 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c gf100_fifo_intr_engine(fifo); fifo 181 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c struct gf100_fifo *fifo = chan->fifo; fifo 182 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 189 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c gf100_fifo_runlist_insert(fifo, chan); fifo 191 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c gf100_fifo_runlist_commit(fifo); fifo 220 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c struct gf100_fifo *fifo = gf100_fifo(base); fifo 241 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c chan->fifo = fifo; fifo 244 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c ret = nvkm_fifo_chan_ctor(&gf100_fifo_gpfifo_func, &fifo->base, fifo 253 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c 1, fifo->user.bar->addr, 0x1000, fifo 266 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_kmap(fifo->user.mem); fifo 268 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(fifo->user.mem, usermem + i, 0x00000000); fifo 269 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_done(fifo->user.mem); fifo 270 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c usermem = nvkm_memory_addr(fifo->user.mem) + usermem; fifo 40 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c struct gk104_fifo *fifo = chan->fifo; fifo 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 58 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_fifo_recover_chan(&fifo->base, chan->base.chid); fifo 68 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c mutex_lock(&chan->base.fifo->engine.subdev.mutex); fifo 70 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c mutex_unlock(&chan->base.fifo->engine.subdev.mutex); fifo 187 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c struct gk104_fifo *fifo = chan->fifo; fifo 188 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 192 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c gk104_fifo_runlist_remove(fifo, chan); fifo 195 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c gk104_fifo_runlist_update(fifo, chan->runl); fifo 205 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c struct gk104_fifo *fifo = chan->fifo; fifo 206 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 214 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c gk104_fifo_runlist_insert(fifo, chan); fifo 216 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c gk104_fifo_runlist_update(fifo, chan->runl); fifo 243 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c gk104_fifo_gpfifo_new_(struct gk104_fifo *fifo, u64 *runlists, u16 *chid, fifo 254 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c if (!vmm || runlist < 0 || runlist >= fifo->runlist_nr) fifo 258 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c engm = fifo->runlist[runlist].engm; fifo 259 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c for_each_set_bit(i, &engm, fifo->engine_nr) { fifo 260 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c if (fifo->engine[i].engine) fifo 261 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c subdevs |= BIT_ULL(fifo->engine[i].engine->subdev.index); fifo 271 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c chan->fifo = fifo; fifo 275 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c ret = nvkm_fifo_chan_ctor(&gk104_fifo_gpfifo_func, &fifo->base, fifo 277 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c 1, fifo->user.bar->addr, 0x200, fifo 288 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c if (fifo->func->cgrp_force) { fifo 301 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_kmap(fifo->user.mem); fifo 303 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(fifo->user.mem, usermem + i, 0x00000000); fifo 304 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_done(fifo->user.mem); fifo 305 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c usermem = nvkm_memory_addr(fifo->user.mem) + usermem; fifo 330 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c gk104_fifo_gpfifo_new(struct gk104_fifo *fifo, const struct nvkm_oclass *oclass, fifo 348 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c return gk104_fifo_gpfifo_new_(fifo, fifo 40 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c struct nvkm_subdev *subdev = &chan->base.fifo->engine.subdev; fifo 124 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c struct gk104_fifo *fifo, u64 *runlists, u16 *chid, fifo 129 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 137 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c if (!vmm || runlist < 0 || runlist >= fifo->runlist_nr) fifo 141 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c engm = fifo->runlist[runlist].engm; fifo 142 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c for_each_set_bit(i, &engm, fifo->engine_nr) { fifo 143 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c if (fifo->engine[i].engine) fifo 144 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c subdevs |= BIT_ULL(fifo->engine[i].engine->subdev.index); fifo 151 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c chan->fifo = fifo; fifo 155 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c ret = nvkm_fifo_chan_ctor(func, &fifo->base, 0x1000, 0x1000, true, vmm, fifo 156 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c 0, subdevs, 1, fifo->user.bar->addr, 0x200, fifo 168 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c if (fifo->func->cgrp_force) { fifo 181 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_kmap(fifo->user.mem); fifo 183 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(fifo->user.mem, usermem + i, 0x00000000); fifo 184 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_done(fifo->user.mem); fifo 185 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c usermem = nvkm_memory_addr(fifo->user.mem) + usermem; fifo 224 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c gv100_fifo_gpfifo_new(struct gk104_fifo *fifo, const struct nvkm_oclass *oclass, fifo 242 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c return gv100_fifo_gpfifo_new_(&gv100_fifo_gpfifo, fifo, fifo 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifonv50.c struct nv50_fifo *fifo = nv50_fifo(base); fifo 62 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifonv50.c ret = nv50_fifo_chan_ctor(fifo, args->v0.vmm, args->v0.pushbuf, fifo 52 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifotu102.c tu102_fifo_gpfifo_new(struct gk104_fifo *fifo, const struct nvkm_oclass *oclass, fifo 70 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifotu102.c return gv100_fifo_gpfifo_new_(&tu102_fifo_gpfifo, fifo, fifo 35 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c struct nvkm_memory *usermem = chan->fifo->user.mem; fifo 49 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c __acquires(fifo->base.lock) fifo 51 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 52 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 55 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c spin_lock_irqsave(&fifo->base.lock, flags); fifo 85 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c __releases(fifo->base.lock) fifo 87 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 88 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 94 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c spin_unlock_irqrestore(&fifo->base.lock, flags); fifo 137 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c nv04_fifo_cache_error(struct nv04_fifo *fifo, u32 chid, u32 get) fifo 139 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 164 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c chan = nvkm_fifo_chan_chid(&fifo->base, chid, &flags); fifo 169 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c nvkm_fifo_chan_put(&fifo->base, flags, &chan); fifo 188 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c nv04_fifo_dma_pusher(struct nv04_fifo *fifo, u32 chid) fifo 190 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 200 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c chan = nvkm_fifo_chan_chid(&fifo->base, chid, &flags); fifo 232 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c nvkm_fifo_chan_put(&fifo->base, flags, &chan); fifo 242 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 243 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nvkm_subdev *subdev = &fifo->base.engine.subdev; fifo 252 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c chid = nvkm_rd32(device, NV03_PFIFO_CACHE1_PUSH1) & (fifo->base.nr - 1); fifo 256 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c nv04_fifo_cache_error(fifo, chid, get); fifo 261 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c nv04_fifo_dma_pusher(fifo, chid); fifo 284 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c nvkm_fifo_uevent(&fifo->base); fifo 301 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 302 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 317 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c nvkm_wr32(device, NV03_PFIFO_CACHE1_PUSH1, fifo->base.nr - 1); fifo 332 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c struct nv04_fifo *fifo; fifo 335 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c if (!(fifo = kzalloc(sizeof(*fifo), GFP_KERNEL))) fifo 337 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c fifo->ramfc = ramfc; fifo 338 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c *pfifo = &fifo->base; fifo 340 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c ret = nvkm_fifo_ctor(func, device, index, nr, &fifo->base); fifo 344 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c set_bit(nr - 1, fifo->base.mask); /* inactive channel */ fifo 53 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv17.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 54 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv17.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 70 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv17.c nvkm_wr32(device, NV03_PFIFO_CACHE1_PUSH1, fifo->base.nr - 1); fifo 62 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c struct nv04_fifo *fifo = nv04_fifo(base); fifo 63 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 101 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c nvkm_wr32(device, NV03_PFIFO_CACHE1_PUSH1, fifo->base.nr - 1); fifo 30 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c nv50_fifo_runlist_update_locked(struct nv50_fifo *fifo) fifo 32 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 36 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c cur = fifo->runlist[fifo->cur_runlist]; fifo 37 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c fifo->cur_runlist = !fifo->cur_runlist; fifo 40 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c for (i = 0, p = 0; i < fifo->base.nr; i++) { fifo 52 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c nv50_fifo_runlist_update(struct nv50_fifo *fifo) fifo 54 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c mutex_lock(&fifo->base.engine.subdev.mutex); fifo 55 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c nv50_fifo_runlist_update_locked(fifo); fifo 56 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c mutex_unlock(&fifo->base.engine.subdev.mutex); fifo 62 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c struct nv50_fifo *fifo = nv50_fifo(base); fifo 63 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 67 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c false, &fifo->runlist[0]); fifo 72 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c false, &fifo->runlist[1]); fifo 78 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c struct nv50_fifo *fifo = nv50_fifo(base); fifo 79 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 92 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c nv50_fifo_runlist_update_locked(fifo); fifo 102 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c struct nv50_fifo *fifo = nv50_fifo(base); fifo 103 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c nvkm_memory_unref(&fifo->runlist[1]); fifo 104 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c nvkm_memory_unref(&fifo->runlist[0]); fifo 105 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c return fifo; fifo 112 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c struct nv50_fifo *fifo; fifo 115 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c if (!(fifo = kzalloc(sizeof(*fifo), GFP_KERNEL))) fifo 117 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c *pfifo = &fifo->base; fifo 119 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c ret = nvkm_fifo_ctor(func, device, index, 128, &fifo->base); fifo 123 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c set_bit(0, fifo->base.mask); /* PIO channel */ fifo 124 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c set_bit(127, fifo->base.mask); /* inactive channel */ fifo 32 drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c tu102_fifo_runlist_commit(struct gk104_fifo *fifo, int runl, fifo 35 drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 83 drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c tu102_fifo_pbdma_init(struct gk104_fifo *fifo) fifo 85 drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c struct nvkm_device *device = fifo->base.engine.subdev.device; fifo 86 drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c const u32 mask = (1 << fifo->pbdma_nr) - 1; fifo 172 drivers/gpu/drm/nouveau/nvkm/engine/gr/base.c .fifo.cclass = nvkm_gr_cclass_new, fifo 173 drivers/gpu/drm/nouveau/nvkm/engine/gr/base.c .fifo.sclass = nvkm_gr_oclass_get, fifo 1564 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c chan = nvkm_fifo_chan_inst(device->fifo, (u64)inst << 12, &flags); fifo 1634 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_fifo_chan_put(device->fifo, flags, &chan); fifo 816 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c u32 st2, st2_dl, st2_dh, fifo_ptr, fifo[0x60/4]; fifo 849 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c for (i = 0; i < ARRAY_SIZE(fifo); i++) fifo 850 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c fifo[i] = nvkm_rd32(device, 0x4007a0 + 4 * i); fifo 868 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c for (i = 0; i < ARRAY_SIZE(fifo); i++) fifo 869 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c nvkm_wr32(device, 0x4007a0 + 4 * i, fifo[i]); fifo 1053 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c struct nvkm_fifo *fifo = device->fifo; fifo 1056 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c nvkm_fifo_pause(fifo, &flags); fifo 1063 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c nvkm_fifo_start(fifo, &flags); fifo 153 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c struct nvkm_fifo *fifo = device->fifo; fifo 156 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_fifo_pause(fifo, &flags); fifo 176 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_fifo_start(fifo, &flags); fifo 199 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c chan = nvkm_fifo_chan_chid(device->fifo, chid, &flags); fifo 216 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_fifo_chan_put(device->fifo, flags, &chan); fifo 159 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c chan->fifo = fifoch; fifo 177 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c struct nvkm_fifo *fifo = device->fifo; fifo 180 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c nvkm_fifo_pause(fifo, &flags); fifo 228 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c nvkm_fifo_start(fifo, &flags); fifo 278 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c chan ? chan->fifo->chid : -1, inst << 4, fifo 279 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c chan ? chan->fifo->object.client->name : "unknown", fifo 25 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.h struct nvkm_fifo_chan *fifo; fifo 35 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv44.c struct nvkm_fifo *fifo = device->fifo; fifo 38 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv44.c nvkm_fifo_pause(fifo, &flags); fifo 73 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv44.c nvkm_fifo_start(fifo, &flags); fifo 640 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c chan = nvkm_fifo_chan_inst(device->fifo, (u64)inst << 12, &flags); fifo 675 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_fifo_chan_put(device->fifo, flags, &chan); fifo 97 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c chan->fifo = fifoch; fifo 216 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c mpeg->chan ? mpeg->chan->fifo->chid : -1, fifo 268 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c .fifo.cclass = nv31_mpeg_chan_new, fifo 27 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.h struct nvkm_fifo_chan *fifo; fifo 46 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c struct nvkm_fifo_chan *fifo; fifo 115 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c chan->fifo = fifoch; fifo 185 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c chan ? chan->fifo->chid : -1, inst << 4, fifo 198 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c .fifo.cclass = nv44_mpeg_chan_new, fifo 38 drivers/gpu/drm/nouveau/nvkm/engine/sw/base.c if (chan->fifo->chid == chid) { fifo 94 drivers/gpu/drm/nouveau/nvkm/engine/sw/base.c .fifo.cclass = nvkm_sw_cclass_get, fifo 95 drivers/gpu/drm/nouveau/nvkm/engine/sw/base.c .fifo.sclass = nvkm_sw_oclass_get, fifo 97 drivers/gpu/drm/nouveau/nvkm/engine/sw/chan.c struct nvkm_fifo_chan *fifo, const struct nvkm_oclass *oclass, fifo 105 drivers/gpu/drm/nouveau/nvkm/engine/sw/chan.c chan->fifo = fifo; fifo 14 drivers/gpu/drm/nouveau/nvkm/engine/sw/chan.h struct nvkm_fifo_chan *fifo; fifo 45 drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c u32 inst = chan->base.fifo->inst->addr >> 12; fifo 109 drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c nv04_sw_chan_new(struct nvkm_sw *sw, struct nvkm_fifo_chan *fifo, fifo 119 drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c return nvkm_sw_chan_ctor(&nv04_sw_chan, sw, fifo, oclass, &chan->base); fifo 39 drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c nv10_sw_chan_new(struct nvkm_sw *sw, struct nvkm_fifo_chan *fifo, fifo 48 drivers/gpu/drm/nouveau/nvkm/engine/sw/nv10.c return nvkm_sw_chan_ctor(&nv10_sw_chan, sw, fifo, oclass, chan); fifo 46 drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c nvkm_wr32(device, 0x001704, chan->base.fifo->inst->addr >> 12); fifo 173 drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c .fifo.sclass = nvkm_xtensa_oclass_get, fifo 310 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c struct nvkm_fifo *fifo = device->fifo; fifo 322 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c if (fifo) fifo 323 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c nvkm_fifo_pause(fifo, flags); fifo 345 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c struct nvkm_fifo *fifo = device->fifo; fifo 347 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c if (fifo && flags) fifo 348 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c nvkm_fifo_start(fifo, flags); fifo 388 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c clk_wr32(hwsq, fifo, 0x00000001); /* block fifo */ fifo 490 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c clk_wr32(hwsq, fifo, 0x00000000); /* un-block fifo */ fifo 68 drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c nvkm_fifo_fault(device->fifo, &info); fifo 148 drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c nvkm_fifo_fault(device->fifo, &info); fifo 95 drivers/gpu/drm/nouveau/nvkm/subdev/fault/tu102.c nvkm_fifo_fault(device->fifo, &info); fifo 140 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nvkm_fifo *fifo = device->fifo; fifo 181 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c chan = nvkm_fifo_chan_inst(fifo, inst, &flags); fifo 192 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c nvkm_fifo_chan_put(fifo, flags, &chan); fifo 1373 drivers/gpu/drm/omapdrm/dss/dispc.c int fifo; fifo 1382 drivers/gpu/drm/omapdrm/dss/dispc.c for (fifo = 0; fifo < dispc->feat->num_fifos; ++fifo) { fifo 1383 drivers/gpu/drm/omapdrm/dss/dispc.c size = REG_GET(dispc, DISPC_OVL_FIFO_SIZE_STATUS(fifo), fifo 1386 drivers/gpu/drm/omapdrm/dss/dispc.c dispc->fifo_size[fifo] = size; fifo 1392 drivers/gpu/drm/omapdrm/dss/dispc.c dispc->fifo_assignment[fifo] = fifo; fifo 1448 drivers/gpu/drm/omapdrm/dss/dispc.c int fifo; fifo 1451 drivers/gpu/drm/omapdrm/dss/dispc.c for (fifo = 0; fifo < dispc->feat->num_fifos; ++fifo) { fifo 1452 drivers/gpu/drm/omapdrm/dss/dispc.c if (dispc->fifo_assignment[fifo] == plane) fifo 1453 drivers/gpu/drm/omapdrm/dss/dispc.c size += dispc->fifo_size[fifo]; fifo 235 drivers/gpu/drm/sun4i/sun4i_drv.c DECLARE_KFIFO(fifo, struct device_node *, 16); fifo 292 drivers/gpu/drm/sun4i/sun4i_drv.c kfifo_put(&list->fifo, remote); fifo 355 drivers/gpu/drm/sun4i/sun4i_drv.c INIT_KFIFO(list.fifo); fifo 364 drivers/gpu/drm/sun4i/sun4i_drv.c kfifo_put(&list.fifo, pipeline); fifo 367 drivers/gpu/drm/sun4i/sun4i_drv.c while (kfifo_get(&list.fifo, &endpoint)) { fifo 28 drivers/gpu/drm/vc4/vc4_kms.c int fifo; fifo 119 drivers/gpu/drm/vc4/vc4_kms.c if (ctm_state->fifo) { fifo 144 drivers/gpu/drm/vc4/vc4_kms.c VC4_SET_FIELD(ctm_state->fifo, SCALER_OLEDOFFS_DISPFIFO)); fifo 361 drivers/gpu/drm/vc4/vc4_kms.c ctm_state->fifo = 0; fifo 378 drivers/gpu/drm/vc4/vc4_kms.c int fifo = to_vc4_crtc(crtc)->channel + 1; fifo 383 drivers/gpu/drm/vc4/vc4_kms.c if (ctm_state->fifo && ctm_state->fifo != fifo) { fifo 401 drivers/gpu/drm/vc4/vc4_kms.c ctm_state->fifo = fifo; fifo 436 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c ret = vmw_fifo_init(dev_priv, &dev_priv->fifo); fifo 469 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c vmw_fifo_release(dev_priv, &dev_priv->fifo); fifo 514 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c vmw_fifo_release(dev_priv, &dev_priv->fifo); fifo 438 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h struct vmw_fifo_state fifo; fifo 879 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h struct vmw_fifo_state *fifo); fifo 881 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h struct vmw_fifo_state *fifo); fifo 3437 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c vmw_update_seqno(dev_priv, &dev_priv->fifo); fifo 3658 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c ret = vmw_wait_lag(dev_priv, &dev_priv->fifo.marker_queue, fifo 43 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c const struct vmw_fifo_state *fifo = &dev_priv->fifo; fifo 70 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c ((fifo->capabilities & fifo 103 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c int vmw_fifo_init(struct vmw_private *dev_priv, struct vmw_fifo_state *fifo) fifo 109 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->dx = false; fifo 110 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->static_buffer_size = VMWGFX_FIFO_STATIC_SIZE; fifo 111 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->static_buffer = vmalloc(fifo->static_buffer_size); fifo 112 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c if (unlikely(fifo->static_buffer == NULL)) fifo 115 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->dynamic_buffer = NULL; fifo 116 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->reserved_size = 0; fifo 117 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->using_bounce_buffer = false; fifo 119 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c mutex_init(&fifo->fifo_mutex); fifo 120 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c init_rwsem(&fifo->rwsem); fifo 154 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->capabilities = vmw_mmio_read(fifo_mem + SVGA_FIFO_CAPABILITIES); fifo 159 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c (unsigned int) fifo->capabilities); fifo 163 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c vmw_marker_queue_init(&fifo->marker_queue); fifo 178 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c void vmw_fifo_release(struct vmw_private *dev_priv, struct vmw_fifo_state *fifo) fifo 195 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c vmw_marker_queue_takedown(&fifo->marker_queue); fifo 197 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c if (likely(fifo->static_buffer != NULL)) { fifo 198 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c vfree(fifo->static_buffer); fifo 199 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->static_buffer = NULL; fifo 202 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c if (likely(fifo->dynamic_buffer != NULL)) { fifo 203 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c vfree(fifo->dynamic_buffer); fifo 204 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c fifo->dynamic_buffer = NULL; fifo 302 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c struct vmw_fifo_state *fifo_state = &dev_priv->fifo; fifo 449 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c struct vmw_fifo_state *fifo_state = &dev_priv->fifo; fifo 539 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c struct vmw_fifo_state *fifo_state = &dev_priv->fifo; fifo 63 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c param->value = dev_priv->fifo.capabilities; fifo 71 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c const struct vmw_fifo_state *fifo = &dev_priv->fifo; fifo 80 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c ((fifo->capabilities & fifo 139 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c fifo_state = &dev_priv->fifo; fifo 166 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c struct vmw_fifo_state *fifo_state = &dev_priv->fifo; fifo 290 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c struct vmw_fifo_state *fifo = &dev_priv->fifo; fifo 300 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c if (!(fifo->capabilities & SVGA_FIFO_CAP_FENCE)) fifo 455 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c ((dev_priv->fifo.capabilities & VMW_OVERLAY_CAP_MASK) == fifo 57 drivers/hid/wacom_sys.c struct kfifo_rec_ptr_2 *fifo, fifo 62 drivers/hid/wacom_sys.c while (kfifo_avail(fifo) < size) { fifo 67 drivers/hid/wacom_sys.c kfifo_skip(fifo); fifo 70 drivers/hid/wacom_sys.c kfifo_in(fifo, raw_data, size); fifo 74 drivers/hid/wacom_sys.c struct kfifo_rec_ptr_2 *fifo) fifo 76 drivers/hid/wacom_sys.c while (!kfifo_is_empty(fifo)) { fifo 81 drivers/hid/wacom_sys.c size = kfifo_out(fifo, buf, sizeof(buf)); fifo 55 drivers/ide/alim15x3.c u8 fifo; fifo 58 drivers/ide/alim15x3.c pci_read_config_byte(pdev, pio_fifo, &fifo); fifo 59 drivers/ide/alim15x3.c fifo &= ~(0x0F << shift); fifo 60 drivers/ide/alim15x3.c fifo |= (on << shift); fifo 61 drivers/ide/alim15x3.c pci_write_config_byte(pdev, pio_fifo, fifo); fifo 47 drivers/infiniband/hw/cxgb3/cxio_resource.c static int __cxio_init_resource_fifo(struct kfifo *fifo, fifo 58 drivers/infiniband/hw/cxgb3/cxio_resource.c if (kfifo_alloc(fifo, nr * sizeof(u32), GFP_KERNEL)) fifo 62 drivers/infiniband/hw/cxgb3/cxio_resource.c kfifo_in(fifo, (unsigned char *) &entry, sizeof(u32)); fifo 74 drivers/infiniband/hw/cxgb3/cxio_resource.c kfifo_in(fifo, fifo 81 drivers/infiniband/hw/cxgb3/cxio_resource.c kfifo_in(fifo, fifo 86 drivers/infiniband/hw/cxgb3/cxio_resource.c kfifo_in(fifo, (unsigned char *) &i, sizeof(u32)); fifo 89 drivers/infiniband/hw/cxgb3/cxio_resource.c if (kfifo_out_locked(fifo, (unsigned char *) &entry, fifo 95 drivers/infiniband/hw/cxgb3/cxio_resource.c static int cxio_init_resource_fifo(struct kfifo *fifo, spinlock_t * fifo_lock, fifo 98 drivers/infiniband/hw/cxgb3/cxio_resource.c return (__cxio_init_resource_fifo(fifo, fifo_lock, nr, skip_low, fifo 102 drivers/infiniband/hw/cxgb3/cxio_resource.c static int cxio_init_resource_fifo_random(struct kfifo *fifo, fifo 107 drivers/infiniband/hw/cxgb3/cxio_resource.c return (__cxio_init_resource_fifo(fifo, fifo_lock, nr, skip_low, fifo 181 drivers/infiniband/hw/cxgb3/cxio_resource.c static u32 cxio_hal_get_resource(struct kfifo *fifo, spinlock_t * lock) fifo 184 drivers/infiniband/hw/cxgb3/cxio_resource.c if (kfifo_out_locked(fifo, (unsigned char *) &entry, sizeof(u32), lock)) fifo 190 drivers/infiniband/hw/cxgb3/cxio_resource.c static void cxio_hal_put_resource(struct kfifo *fifo, spinlock_t * lock, fifo 194 drivers/infiniband/hw/cxgb3/cxio_resource.c kfifo_in_locked(fifo, (unsigned char *) &entry, sizeof(u32), lock) fifo 167 drivers/input/keyboard/stmpe-keypad.c u8 fifo[MAX_NUM_DATA]; fifo 171 drivers/input/keyboard/stmpe-keypad.c ret = stmpe_keypad_read_data(keypad, fifo); fifo 176 drivers/input/keyboard/stmpe-keypad.c u8 data = fifo[i]; fifo 518 drivers/input/rmi4/rmi_f54.c u8 fifo[2]; fifo 561 drivers/input/rmi4/rmi_f54.c fifo[0] = report->start & 0xff; fifo 562 drivers/input/rmi4/rmi_f54.c fifo[1] = (report->start >> 8) & 0xff; fifo 565 drivers/input/rmi4/rmi_f54.c fifo, sizeof(fifo)); fifo 322 drivers/isdn/hardware/mISDN/hfcpci.c hfcpci_clear_fifo_rx(struct hfc_pci *hc, int fifo) fifo 327 drivers/isdn/hardware/mISDN/hfcpci.c if (fifo) { fifo 337 drivers/isdn/hardware/mISDN/hfcpci.c hc->hw.last_bfifo_cnt[fifo] = 0; fifo 351 drivers/isdn/hardware/mISDN/hfcpci.c static void hfcpci_clear_fifo_tx(struct hfc_pci *hc, int fifo) fifo 356 drivers/isdn/hardware/mISDN/hfcpci.c if (fifo) { fifo 366 drivers/isdn/hardware/mISDN/hfcpci.c if (hc->bch[fifo].debug & DEBUG_HW_BCHANNEL) fifo 369 drivers/isdn/hardware/mISDN/hfcpci.c fifo, bzt->f1, bzt->f2, fifo 380 drivers/isdn/hardware/mISDN/hfcpci.c if (hc->bch[fifo].debug & DEBUG_HW_BCHANNEL) fifo 383 drivers/isdn/hardware/mISDN/hfcpci.c fifo, bzt->f1, bzt->f2, fifo 801 drivers/isdn/hardware/mISDN/hfcsusb.c hfcsusb_rx_frame(struct usb_fifo *fifo, __u8 *data, unsigned int len, fifo 804 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = fifo->hw; fifo 807 drivers/isdn/hardware/mISDN/hfcsusb.c int fifon = fifo->fifonum; fifo 816 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->dch, fifo->bch, fifo->ech); fifo 821 drivers/isdn/hardware/mISDN/hfcsusb.c if ((!!fifo->dch + !!fifo->bch + !!fifo->ech) != 1) { fifo 828 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->dch) { fifo 829 drivers/isdn/hardware/mISDN/hfcsusb.c rx_skb = fifo->dch->rx_skb; fifo 830 drivers/isdn/hardware/mISDN/hfcsusb.c maxlen = fifo->dch->maxlen; fifo 833 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->bch) { fifo 834 drivers/isdn/hardware/mISDN/hfcsusb.c if (test_bit(FLG_RX_OFF, &fifo->bch->Flags)) { fifo 835 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->bch->dropcnt += len; fifo 839 drivers/isdn/hardware/mISDN/hfcsusb.c maxlen = bchannel_get_rxbuf(fifo->bch, len); fifo 840 drivers/isdn/hardware/mISDN/hfcsusb.c rx_skb = fifo->bch->rx_skb; fifo 845 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, fifo->bch->nr, len); fifo 849 drivers/isdn/hardware/mISDN/hfcsusb.c maxlen = fifo->bch->maxlen; fifo 850 drivers/isdn/hardware/mISDN/hfcsusb.c hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); fifo 852 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->ech) { fifo 853 drivers/isdn/hardware/mISDN/hfcsusb.c rx_skb = fifo->ech->rx_skb; fifo 854 drivers/isdn/hardware/mISDN/hfcsusb.c maxlen = fifo->ech->maxlen; fifo 858 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->dch || fifo->ech) { fifo 862 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->dch) fifo 863 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->dch->rx_skb = rx_skb; fifo 864 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->ech) fifo 865 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->ech->rx_skb = rx_skb; fifo 907 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->dch) fifo 908 drivers/isdn/hardware/mISDN/hfcsusb.c recv_Dchannel(fifo->dch); fifo 909 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->bch) fifo 910 drivers/isdn/hardware/mISDN/hfcsusb.c recv_Bchannel(fifo->bch, MISDN_ID_ANY, fifo 912 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->ech) fifo 913 drivers/isdn/hardware/mISDN/hfcsusb.c recv_Echannel(fifo->ech, fifo 932 drivers/isdn/hardware/mISDN/hfcsusb.c recv_Bchannel(fifo->bch, MISDN_ID_ANY, false); fifo 964 drivers/isdn/hardware/mISDN/hfcsusb.c struct usb_fifo *fifo = context_iso_urb->owner_fifo; fifo 965 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = fifo->hw; fifo 973 drivers/isdn/hardware/mISDN/hfcsusb.c fifon = fifo->fifonum; fifo 977 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->stop_gracefull) { fifo 978 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->stop_gracefull = 0; fifo 979 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->active = 0; fifo 1000 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->active && !status) { fifo 1002 drivers/isdn/hardware/mISDN/hfcsusb.c maxlen = fifo->usb_packet_maxlen; fifo 1030 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->last_urblen != maxlen) { fifo 1043 drivers/isdn/hardware/mISDN/hfcsusb.c hfcsusb_rx_frame(fifo, buf + 2, fifo 1047 drivers/isdn/hardware/mISDN/hfcsusb.c hfcsusb_rx_frame(fifo, buf, len, fifo 1050 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->last_urblen = len; fifo 1061 drivers/isdn/hardware/mISDN/hfcsusb.c fill_isoc_urb(urb, fifo->hw->dev, fifo->pipe, fifo 1063 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->usb_packet_maxlen, fifo->intervall, fifo 1086 drivers/isdn/hardware/mISDN/hfcsusb.c struct usb_fifo *fifo = (struct usb_fifo *) urb->context; fifo 1087 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = fifo->hw; fifo 1092 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->stop_gracefull) { fifo 1093 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->stop_gracefull = 0; fifo 1094 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->active = 0; fifo 1100 drivers/isdn/hardware/mISDN/hfcsusb.c fifon = fifo->fifonum; fifo 1101 drivers/isdn/hardware/mISDN/hfcsusb.c if ((!fifo->active) || (urb->status)) { fifo 1107 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->urb->interval = 0; /* cancel automatic rescheduling */ fifo 1111 drivers/isdn/hardware/mISDN/hfcsusb.c buf = fifo->buffer; fifo 1112 drivers/isdn/hardware/mISDN/hfcsusb.c maxlen = fifo->usb_packet_maxlen; fifo 1123 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->last_urblen != fifo->usb_packet_maxlen) { fifo 1136 drivers/isdn/hardware/mISDN/hfcsusb.c hfcsusb_rx_frame(fifo, buf + 2, fifo 1140 drivers/isdn/hardware/mISDN/hfcsusb.c hfcsusb_rx_frame(fifo, buf, urb->actual_length, fifo 1143 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->last_urblen = urb->actual_length; fifo 1158 drivers/isdn/hardware/mISDN/hfcsusb.c struct usb_fifo *fifo = context_iso_urb->owner_fifo; fifo 1159 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = fifo->hw; fifo 1169 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->stop_gracefull) { fifo 1170 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->stop_gracefull = 0; fifo 1171 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->active = 0; fifo 1176 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->dch) { fifo 1177 drivers/isdn/hardware/mISDN/hfcsusb.c tx_skb = fifo->dch->tx_skb; fifo 1178 drivers/isdn/hardware/mISDN/hfcsusb.c tx_idx = &fifo->dch->tx_idx; fifo 1180 drivers/isdn/hardware/mISDN/hfcsusb.c } else if (fifo->bch) { fifo 1181 drivers/isdn/hardware/mISDN/hfcsusb.c tx_skb = fifo->bch->tx_skb; fifo 1182 drivers/isdn/hardware/mISDN/hfcsusb.c tx_idx = &fifo->bch->tx_idx; fifo 1183 drivers/isdn/hardware/mISDN/hfcsusb.c hdlc = test_bit(FLG_HDLC, &fifo->bch->Flags); fifo 1185 drivers/isdn/hardware/mISDN/hfcsusb.c test_bit(FLG_FILLEMPTY, &fifo->bch->Flags)) fifo 1194 drivers/isdn/hardware/mISDN/hfcsusb.c fifon = fifo->fifonum; fifo 1213 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->active && !status) { fifo 1223 drivers/isdn/hardware/mISDN/hfcsusb.c fill_isoc_urb(urb, fifo->hw->dev, fifo->pipe, fifo 1225 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->usb_packet_maxlen, fifo->intervall, fifo 1251 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->bit_line -= sink; fifo 1252 drivers/isdn/hardware/mISDN/hfcsusb.c current_len = (0 - fifo->bit_line) / 8; fifo 1261 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->bit_line += current_len * 8; fifo 1271 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->bit_line += 32; fifo 1279 drivers/isdn/hardware/mISDN/hfcsusb.c memset(p, fifo->bch->fill[0], fifo 1315 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->bit_line -= sink; fifo 1316 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->bit_line < BITLINE_INF) fifo 1317 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->bit_line = BITLINE_INF; fifo 1337 drivers/isdn/hardware/mISDN/hfcsusb.c if (fifo->dch && get_next_dframe(fifo->dch)) fifo 1338 drivers/isdn/hardware/mISDN/hfcsusb.c tx_skb = fifo->dch->tx_skb; fifo 1339 drivers/isdn/hardware/mISDN/hfcsusb.c else if (fifo->bch && fifo 1340 drivers/isdn/hardware/mISDN/hfcsusb.c get_next_bframe(fifo->bch)) fifo 1341 drivers/isdn/hardware/mISDN/hfcsusb.c tx_skb = fifo->bch->tx_skb; fifo 1378 drivers/isdn/hardware/mISDN/hfcsusb.c start_isoc_chain(struct usb_fifo *fifo, int num_packets_per_urb, fifo 1381 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = fifo->hw; fifo 1386 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, fifo->fifonum); fifo 1390 drivers/isdn/hardware/mISDN/hfcsusb.c if (!(fifo->iso[i].urb)) { fifo 1391 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].urb = fifo 1393 drivers/isdn/hardware/mISDN/hfcsusb.c if (!(fifo->iso[i].urb)) { fifo 1396 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, fifo->fifonum); fifo 1399 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].owner_fifo = (struct usb_fifo *) fifo; fifo 1400 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].indx = i; fifo 1404 drivers/isdn/hardware/mISDN/hfcsusb.c (fifo->usb_packet_maxlen * fifo 1406 drivers/isdn/hardware/mISDN/hfcsusb.c fill_isoc_urb(fifo->iso[i].urb, fifo 1407 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->hw->dev, fifo->pipe, fifo 1408 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].buffer, fifo 1410 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->usb_packet_maxlen, fifo 1411 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->intervall, complete, fifo 1412 drivers/isdn/hardware/mISDN/hfcsusb.c &fifo->iso[i]); fifo 1413 drivers/isdn/hardware/mISDN/hfcsusb.c memset(fifo->iso[i].buffer, 0, fifo 1414 drivers/isdn/hardware/mISDN/hfcsusb.c sizeof(fifo->iso[i].buffer)); fifo 1417 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].urb-> fifo 1420 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].urb-> fifo 1430 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->bit_line = BITLINE_INF; fifo 1432 drivers/isdn/hardware/mISDN/hfcsusb.c errcode = usb_submit_urb(fifo->iso[i].urb, GFP_KERNEL); fifo 1433 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->active = (errcode >= 0) ? 1 : 0; fifo 1434 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->stop_gracefull = 0; fifo 1441 drivers/isdn/hardware/mISDN/hfcsusb.c return fifo->active; fifo 1445 drivers/isdn/hardware/mISDN/hfcsusb.c stop_iso_gracefull(struct usb_fifo *fifo) fifo 1447 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = fifo->hw; fifo 1455 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, fifo->fifonum, i); fifo 1456 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->stop_gracefull = 1; fifo 1462 drivers/isdn/hardware/mISDN/hfcsusb.c while (fifo->stop_gracefull && timeout--) fifo 1464 drivers/isdn/hardware/mISDN/hfcsusb.c if (debug && fifo->stop_gracefull) fifo 1466 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, fifo->fifonum, i); fifo 1471 drivers/isdn/hardware/mISDN/hfcsusb.c stop_int_gracefull(struct usb_fifo *fifo) fifo 1473 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = fifo->hw; fifo 1480 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, fifo->fifonum); fifo 1481 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->stop_gracefull = 1; fifo 1485 drivers/isdn/hardware/mISDN/hfcsusb.c while (fifo->stop_gracefull && timeout--) fifo 1487 drivers/isdn/hardware/mISDN/hfcsusb.c if (debug && fifo->stop_gracefull) fifo 1489 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, fifo->fifonum); fifo 1494 drivers/isdn/hardware/mISDN/hfcsusb.c start_int_fifo(struct usb_fifo *fifo) fifo 1496 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = fifo->hw; fifo 1501 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, fifo->fifonum); fifo 1503 drivers/isdn/hardware/mISDN/hfcsusb.c if (!fifo->urb) { fifo 1504 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->urb = usb_alloc_urb(0, GFP_KERNEL); fifo 1505 drivers/isdn/hardware/mISDN/hfcsusb.c if (!fifo->urb) fifo 1508 drivers/isdn/hardware/mISDN/hfcsusb.c usb_fill_int_urb(fifo->urb, fifo->hw->dev, fifo->pipe, fifo 1509 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->buffer, fifo->usb_packet_maxlen, fifo 1510 drivers/isdn/hardware/mISDN/hfcsusb.c (usb_complete_t)rx_int_complete, fifo, fifo->intervall); fifo 1511 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->active = 1; fifo 1512 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->stop_gracefull = 0; fifo 1513 drivers/isdn/hardware/mISDN/hfcsusb.c errcode = usb_submit_urb(fifo->urb, GFP_KERNEL); fifo 1517 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->active = 0; fifo 1546 drivers/isdn/hardware/mISDN/hfcsusb.c struct usb_fifo *fifo; fifo 1573 drivers/isdn/hardware/mISDN/hfcsusb.c fifo = hw->fifos; fifo 1576 drivers/isdn/hardware/mISDN/hfcsusb.c fifo[i].max_size = fifo 1578 drivers/isdn/hardware/mISDN/hfcsusb.c fifo[i].last_urblen = 0; fifo 66 drivers/mailbox/omap-mailbox.c struct kfifo fifo; fifo 146 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = &mbox->rx_fifo; fifo 148 drivers/mailbox/omap-mailbox.c return mbox_read_reg(mbox->parent, fifo->msg); fifo 153 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = &mbox->tx_fifo; fifo 155 drivers/mailbox/omap-mailbox.c mbox_write_reg(mbox->parent, msg, fifo->msg); fifo 160 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = &mbox->rx_fifo; fifo 162 drivers/mailbox/omap-mailbox.c return (mbox_read_reg(mbox->parent, fifo->msg_stat) == 0); fifo 167 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = &mbox->tx_fifo; fifo 169 drivers/mailbox/omap-mailbox.c return mbox_read_reg(mbox->parent, fifo->fifo_stat); fifo 175 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? fifo 177 drivers/mailbox/omap-mailbox.c u32 bit = fifo->intr_bit; fifo 178 drivers/mailbox/omap-mailbox.c u32 irqstatus = fifo->irqstatus; fifo 188 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? fifo 190 drivers/mailbox/omap-mailbox.c u32 bit = fifo->intr_bit; fifo 191 drivers/mailbox/omap-mailbox.c u32 irqenable = fifo->irqenable; fifo 192 drivers/mailbox/omap-mailbox.c u32 irqstatus = fifo->irqstatus; fifo 203 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? fifo 205 drivers/mailbox/omap-mailbox.c u32 bit = fifo->intr_bit; fifo 206 drivers/mailbox/omap-mailbox.c u32 irqenable = fifo->irqenable; fifo 215 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? fifo 217 drivers/mailbox/omap-mailbox.c u32 bit = fifo->intr_bit; fifo 218 drivers/mailbox/omap-mailbox.c u32 irqdisable = fifo->irqdisable; fifo 263 drivers/mailbox/omap-mailbox.c while (kfifo_len(&mq->fifo) >= sizeof(msg)) { fifo 264 drivers/mailbox/omap-mailbox.c len = kfifo_out(&mq->fifo, (unsigned char *)&msg, sizeof(msg)); fifo 295 drivers/mailbox/omap-mailbox.c if (unlikely(kfifo_avail(&mq->fifo) < sizeof(msg))) { fifo 303 drivers/mailbox/omap-mailbox.c len = kfifo_in(&mq->fifo, (unsigned char *)&msg, sizeof(msg)); fifo 340 drivers/mailbox/omap-mailbox.c if (kfifo_alloc(&mq->fifo, mbox_kfifo_size, GFP_KERNEL)) fifo 353 drivers/mailbox/omap-mailbox.c kfifo_free(&q->fifo); fifo 604 drivers/mailbox/omap-mailbox.c u32 usr, fifo, reg; fifo 609 drivers/mailbox/omap-mailbox.c for (fifo = 0; fifo < mdev->num_fifos; fifo++) { fifo 610 drivers/mailbox/omap-mailbox.c if (mbox_read_reg(mdev, MAILBOX_MSGSTATUS(fifo))) { fifo 612 drivers/mailbox/omap-mailbox.c fifo); fifo 704 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo; fifo 804 drivers/mailbox/omap-mailbox.c fifo = &mbox->tx_fifo; fifo 805 drivers/mailbox/omap-mailbox.c fifo->msg = MAILBOX_MESSAGE(finfo->tx_id); fifo 806 drivers/mailbox/omap-mailbox.c fifo->fifo_stat = MAILBOX_FIFOSTATUS(finfo->tx_id); fifo 807 drivers/mailbox/omap-mailbox.c fifo->intr_bit = MAILBOX_IRQ_NOTFULL(finfo->tx_id); fifo 808 drivers/mailbox/omap-mailbox.c fifo->irqenable = MAILBOX_IRQENABLE(intr_type, finfo->tx_usr); fifo 809 drivers/mailbox/omap-mailbox.c fifo->irqstatus = MAILBOX_IRQSTATUS(intr_type, finfo->tx_usr); fifo 810 drivers/mailbox/omap-mailbox.c fifo->irqdisable = MAILBOX_IRQDISABLE(intr_type, finfo->tx_usr); fifo 812 drivers/mailbox/omap-mailbox.c fifo = &mbox->rx_fifo; fifo 813 drivers/mailbox/omap-mailbox.c fifo->msg = MAILBOX_MESSAGE(finfo->rx_id); fifo 814 drivers/mailbox/omap-mailbox.c fifo->msg_stat = MAILBOX_MSGSTATUS(finfo->rx_id); fifo 815 drivers/mailbox/omap-mailbox.c fifo->intr_bit = MAILBOX_IRQ_NEWMSG(finfo->rx_id); fifo 816 drivers/mailbox/omap-mailbox.c fifo->irqenable = MAILBOX_IRQENABLE(intr_type, finfo->rx_usr); fifo 817 drivers/mailbox/omap-mailbox.c fifo->irqstatus = MAILBOX_IRQSTATUS(intr_type, finfo->rx_usr); fifo 818 drivers/mailbox/omap-mailbox.c fifo->irqdisable = MAILBOX_IRQDISABLE(intr_type, finfo->rx_usr); fifo 122 drivers/md/bcache/util.h #define fifo_for_each(c, fifo, iter) \ fifo 123 drivers/md/bcache/util.h for (iter = (fifo)->front; \ fifo 124 drivers/md/bcache/util.h c = (fifo)->data[iter], iter != (fifo)->back; \ fifo 125 drivers/md/bcache/util.h iter = (iter + 1) & (fifo)->mask) fifo 127 drivers/md/bcache/util.h #define __init_fifo(fifo, gfp) \ fifo 130 drivers/md/bcache/util.h BUG_ON(!(fifo)->size); \ fifo 132 drivers/md/bcache/util.h _allocated_size = roundup_pow_of_two((fifo)->size + 1); \ fifo 133 drivers/md/bcache/util.h _bytes = _allocated_size * sizeof(*(fifo)->data); \ fifo 135 drivers/md/bcache/util.h (fifo)->mask = _allocated_size - 1; \ fifo 136 drivers/md/bcache/util.h (fifo)->front = (fifo)->back = 0; \ fifo 138 drivers/md/bcache/util.h (fifo)->data = kvmalloc(_bytes, (gfp) & GFP_KERNEL); \ fifo 139 drivers/md/bcache/util.h (fifo)->data; \ fifo 142 drivers/md/bcache/util.h #define init_fifo_exact(fifo, _size, gfp) \ fifo 144 drivers/md/bcache/util.h (fifo)->size = (_size); \ fifo 145 drivers/md/bcache/util.h __init_fifo(fifo, gfp); \ fifo 148 drivers/md/bcache/util.h #define init_fifo(fifo, _size, gfp) \ fifo 150 drivers/md/bcache/util.h (fifo)->size = (_size); \ fifo 151 drivers/md/bcache/util.h if ((fifo)->size > 4) \ fifo 152 drivers/md/bcache/util.h (fifo)->size = roundup_pow_of_two((fifo)->size) - 1; \ fifo 153 drivers/md/bcache/util.h __init_fifo(fifo, gfp); \ fifo 156 drivers/md/bcache/util.h #define free_fifo(fifo) \ fifo 158 drivers/md/bcache/util.h kvfree((fifo)->data); \ fifo 159 drivers/md/bcache/util.h (fifo)->data = NULL; \ fifo 162 drivers/md/bcache/util.h #define fifo_used(fifo) (((fifo)->back - (fifo)->front) & (fifo)->mask) fifo 163 drivers/md/bcache/util.h #define fifo_free(fifo) ((fifo)->size - fifo_used(fifo)) fifo 165 drivers/md/bcache/util.h #define fifo_empty(fifo) (!fifo_used(fifo)) fifo 166 drivers/md/bcache/util.h #define fifo_full(fifo) (!fifo_free(fifo)) fifo 168 drivers/md/bcache/util.h #define fifo_front(fifo) ((fifo)->data[(fifo)->front]) fifo 169 drivers/md/bcache/util.h #define fifo_back(fifo) \ fifo 170 drivers/md/bcache/util.h ((fifo)->data[((fifo)->back - 1) & (fifo)->mask]) fifo 172 drivers/md/bcache/util.h #define fifo_idx(fifo, p) (((p) - &fifo_front(fifo)) & (fifo)->mask) fifo 174 drivers/md/bcache/util.h #define fifo_push_back(fifo, i) \ fifo 176 drivers/md/bcache/util.h bool _r = !fifo_full((fifo)); \ fifo 178 drivers/md/bcache/util.h (fifo)->data[(fifo)->back++] = (i); \ fifo 179 drivers/md/bcache/util.h (fifo)->back &= (fifo)->mask; \ fifo 184 drivers/md/bcache/util.h #define fifo_pop_front(fifo, i) \ fifo 186 drivers/md/bcache/util.h bool _r = !fifo_empty((fifo)); \ fifo 188 drivers/md/bcache/util.h (i) = (fifo)->data[(fifo)->front++]; \ fifo 189 drivers/md/bcache/util.h (fifo)->front &= (fifo)->mask; \ fifo 194 drivers/md/bcache/util.h #define fifo_push_front(fifo, i) \ fifo 196 drivers/md/bcache/util.h bool _r = !fifo_full((fifo)); \ fifo 198 drivers/md/bcache/util.h --(fifo)->front; \ fifo 199 drivers/md/bcache/util.h (fifo)->front &= (fifo)->mask; \ fifo 200 drivers/md/bcache/util.h (fifo)->data[(fifo)->front] = (i); \ fifo 205 drivers/md/bcache/util.h #define fifo_pop_back(fifo, i) \ fifo 207 drivers/md/bcache/util.h bool _r = !fifo_empty((fifo)); \ fifo 209 drivers/md/bcache/util.h --(fifo)->back; \ fifo 210 drivers/md/bcache/util.h (fifo)->back &= (fifo)->mask; \ fifo 211 drivers/md/bcache/util.h (i) = (fifo)->data[(fifo)->back] \ fifo 216 drivers/md/bcache/util.h #define fifo_push(fifo, i) fifo_push_back(fifo, (i)) fifo 217 drivers/md/bcache/util.h #define fifo_pop(fifo, i) fifo_pop_front(fifo, (i)) fifo 215 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(channel->fifo, fifo 217 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(channel->fifo + FIFO_LEN - 1, fifo 220 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(channel->fifo, fifo 222 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(channel->fifo, fifo 577 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c tsin->fifo = (tsin->tsin_id * FIFO_LEN); fifo 579 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(tsin->fifo, fei->io + C8SECTPFE_IB_BUFF_STRT(tsin->tsin_id)); fifo 580 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(tsin->fifo + FIFO_LEN - 1, fifo 583 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(tsin->fifo, fei->io + C8SECTPFE_IB_READ_PNT(tsin->tsin_id)); fifo 584 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(tsin->fifo, fei->io + C8SECTPFE_IB_WRT_PNT(tsin->tsin_id)); fifo 622 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(tsin->fifo, tsin->irec + DMA_PRDS_MEMBASE); fifo 624 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c writel(tsin->fifo + FIFO_LEN - 1, tsin->irec + DMA_PRDS_MEMTOP); fifo 49 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.h unsigned long fifo; fifo 33 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h #define CSI_BUF_ADDR_REG(fifo, buf) (0x10 + (0x8 * (fifo)) + (0x4 * (buf))) fifo 131 drivers/media/radio/radio-cadet.c unsigned fifo = 0; fifo 146 drivers/media/radio/radio-cadet.c fifo = (fifo << 1) | ((inb(dev->io + 1) >> 7) & 0x01); fifo 158 drivers/media/radio/radio-cadet.c return fifo; fifo 164 drivers/media/radio/radio-cadet.c unsigned freq = 0, test, fifo = 0; fifo 169 drivers/media/radio/radio-cadet.c fifo = cadet_gettune(dev); fifo 175 drivers/media/radio/radio-cadet.c return ((fifo & 0x7fff) - 450) * 16; fifo 179 drivers/media/radio/radio-cadet.c if ((fifo & 0x01) != 0) fifo 182 drivers/media/radio/radio-cadet.c fifo = fifo >> 1; fifo 189 drivers/media/radio/radio-cadet.c static void cadet_settune(struct cadet *dev, unsigned fifo) fifo 199 drivers/media/radio/radio-cadet.c test = (fifo >> 23) & 0x02; /* Align data for SDO */ fifo 208 drivers/media/radio/radio-cadet.c fifo = fifo << 1; /* Prepare the next bit */ fifo 209 drivers/media/radio/radio-cadet.c test = 0x1c | ((fifo >> 23) & 0x02); fifo 216 drivers/media/radio/radio-cadet.c unsigned fifo; fifo 226 drivers/media/radio/radio-cadet.c fifo = 0; fifo 232 drivers/media/radio/radio-cadet.c fifo = fifo << 1; fifo 234 drivers/media/radio/radio-cadet.c fifo |= 0x01; fifo 240 drivers/media/radio/radio-cadet.c fifo = (freq / 16) + 450; /* Make it kHz */ fifo 241 drivers/media/radio/radio-cadet.c fifo |= 0x100000; /* Select AM Band */ fifo 255 drivers/media/radio/radio-cadet.c cadet_settune(dev, fifo | (j << 16)); fifo 600 drivers/media/rc/ite-cir.c int fifo, read = 0; fifo 605 drivers/media/rc/ite-cir.c fifo = inb(dev->cir_addr + IT87_RSR) & IT87_RXFBC; fifo 607 drivers/media/rc/ite-cir.c while (fifo > 0 && buf_size > 0) { fifo 609 drivers/media/rc/ite-cir.c fifo--; fifo 825 drivers/media/rc/ite-cir.c int fifo, read = 0; fifo 830 drivers/media/rc/ite-cir.c fifo = inb(dev->cir_addr + IT8708_C0RFSR) & IT85_RXFBC; fifo 832 drivers/media/rc/ite-cir.c while (fifo > 0 && buf_size > 0) { fifo 834 drivers/media/rc/ite-cir.c fifo--; fifo 1116 drivers/media/rc/ite-cir.c int fifo, read = 0; fifo 1121 drivers/media/rc/ite-cir.c fifo = it8709_rm(dev, IT8709_RFSR) & IT85_RXFBC; fifo 1123 drivers/media/rc/ite-cir.c while (fifo > 0 && buf_size > 0) { fifo 1125 drivers/media/rc/ite-cir.c fifo--; fifo 73 drivers/misc/hpilo.c struct fifo *fifo_q = FIFOBARTOHANDLE(fifobar); fifo 92 drivers/misc/hpilo.c struct fifo *fifo_q = FIFOBARTOHANDLE(fifobar); fifo 115 drivers/misc/hpilo.c struct fifo *fifo_q = FIFOBARTOHANDLE(fifobar); fifo 215 drivers/misc/hpilo.c struct fifo *fifo_q = base_addr; fifo 179 drivers/misc/hpilo.h #define FIFOHANDLESIZE (sizeof(struct fifo) - sizeof(u64)) fifo 181 drivers/misc/hpilo.h ((struct fifo *)(((char *)(_fifo)) - FIFOHANDLESIZE)) fifo 423 drivers/mmc/host/s3cmci.c u32 fifo; fifo 433 drivers/mmc/host/s3cmci.c while ((fifo = fifo_count(host))) { fifo 453 drivers/mmc/host/s3cmci.c fifo, host->pio_bytes, fifo 461 drivers/mmc/host/s3cmci.c if (fifo >= host->pio_bytes) fifo 462 drivers/mmc/host/s3cmci.c fifo = host->pio_bytes; fifo 464 drivers/mmc/host/s3cmci.c fifo -= fifo & 3; fifo 466 drivers/mmc/host/s3cmci.c host->pio_bytes -= fifo; fifo 467 drivers/mmc/host/s3cmci.c host->pio_count += fifo; fifo 469 drivers/mmc/host/s3cmci.c fifo_words = fifo >> 2; fifo 475 drivers/mmc/host/s3cmci.c if (fifo & 3) { fifo 476 drivers/mmc/host/s3cmci.c u32 n = fifo & 3; fifo 507 drivers/mmc/host/s3cmci.c u32 fifo; fifo 512 drivers/mmc/host/s3cmci.c while ((fifo = fifo_free(host)) > 3) { fifo 534 drivers/mmc/host/s3cmci.c if (fifo >= host->pio_bytes) fifo 535 drivers/mmc/host/s3cmci.c fifo = host->pio_bytes; fifo 537 drivers/mmc/host/s3cmci.c fifo -= fifo & 3; fifo 539 drivers/mmc/host/s3cmci.c host->pio_bytes -= fifo; fifo 540 drivers/mmc/host/s3cmci.c host->pio_count += fifo; fifo 542 drivers/mmc/host/s3cmci.c fifo = (fifo + 3) >> 2; fifo 544 drivers/mmc/host/s3cmci.c while (fifo--) fifo 402 drivers/mmc/host/wbsd.c int i, idx, fsr, fifo; fifo 423 drivers/mmc/host/wbsd.c fifo = 16; fifo 425 drivers/mmc/host/wbsd.c fifo = 8; fifo 427 drivers/mmc/host/wbsd.c fifo = 1; fifo 429 drivers/mmc/host/wbsd.c for (i = 0; i < fifo; i++) { fifo 467 drivers/mmc/host/wbsd.c int i, idx, fsr, fifo; fifo 489 drivers/mmc/host/wbsd.c fifo = 0; fifo 491 drivers/mmc/host/wbsd.c fifo = 8; fifo 493 drivers/mmc/host/wbsd.c fifo = 15; fifo 495 drivers/mmc/host/wbsd.c for (i = 16; i > fifo; i--) { fifo 194 drivers/mtd/nand/raw/sh_flctl.c cfg.dst_addr = flctl->fifo; fifo 210 drivers/mtd/nand/raw/sh_flctl.c cfg.src_addr = flctl->fifo; fifo 1129 drivers/mtd/nand/raw/sh_flctl.c flctl->fifo = res->start + 0x24; /* FLDTFIFO */ fifo 242 drivers/net/ethernet/3com/3c589_cs.c int ret, i, j, multi = 0, fifo; fifo 307 drivers/net/ethernet/3com/3c589_cs.c fifo = inl(ioaddr); fifo 326 drivers/net/ethernet/3com/3c589_cs.c (fifo & 7) ? 32 : 8, ram_split[(fifo >> 16) & 3], fifo 2339 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int *fifo) fifo 2345 drivers/net/ethernet/amd/xgbe/xgbe-dev.c q_fifo_size = (fifo[i] + 1) * XGMAC_FIFO_UNIT; fifo 2379 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int *fifo) fifo 2397 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo[i] = p_fifo; fifo 2402 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int *fifo) fifo 2416 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo[i] = (XGMAC_FIFO_MIN_ALLOC / XGMAC_FIFO_UNIT) - 1; fifo 2470 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int *fifo) fifo 2483 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_calculate_equal_fifo(fifo_size, prio_queues, fifo); fifo 2512 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo[i] = (q_fifo_size / XGMAC_FIFO_UNIT) - 1; fifo 2526 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo[i] += (addn_fifo / XGMAC_FIFO_UNIT); fifo 2535 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo[i] += (inc_fifo / XGMAC_FIFO_UNIT); fifo 2542 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int fifo[XGBE_MAX_QUEUES]; fifo 2547 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_calculate_equal_fifo(fifo_size, pdata->tx_q_count, fifo); fifo 2550 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_TQOMR, TQS, fifo[i]); fifo 2554 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->tx_q_count, ((fifo[0] + 1) * XGMAC_FIFO_UNIT)); fifo 2560 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int fifo[XGBE_MAX_QUEUES]; fifo 2572 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo_size = xgbe_set_nonprio_fifos(fifo_size, pdata->rx_q_count, fifo); fifo 2575 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_calculate_dcb_fifo(pdata, fifo_size, fifo); fifo 2577 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_calculate_equal_fifo(fifo_size, prio_queues, fifo); fifo 2580 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQOMR, RQS, fifo[i]); fifo 2582 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_calculate_flow_control_threshold(pdata, fifo); fifo 2591 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ((fifo[i] + 1) * XGMAC_FIFO_UNIT)); fifo 2596 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ((fifo[0] + 1) * XGMAC_FIFO_UNIT)); fifo 1388 drivers/net/ethernet/broadcom/sb1250-mac.c uint64_t cfg,fifo,framecfg; fifo 1432 drivers/net/ethernet/broadcom/sb1250-mac.c fifo = V_MAC_TX_WR_THRSH(4) | /* Must be '4' or '8' */ fifo 1503 drivers/net/ethernet/broadcom/sb1250-mac.c __raw_writeq(fifo, s->sbm_fifocfg); fifo 1554 drivers/net/ethernet/freescale/fman/fman.c u32 fifo = *size_of_fifo; fifo 1570 drivers/net/ethernet/freescale/fman/fman.c if ((fman->state->accumulated_fifo_size + fifo) > fifo 1579 drivers/net/ethernet/freescale/fman/fman.c tmp = (fifo / FMAN_BMI_FIFO_UNITS - 1) | fifo 1585 drivers/net/ethernet/freescale/fman/fman.c fman->state->accumulated_fifo_size += fifo; fifo 29 drivers/net/ethernet/google/gve/gve_tx.c static int gve_tx_fifo_init(struct gve_priv *priv, struct gve_tx_fifo *fifo) fifo 31 drivers/net/ethernet/google/gve/gve_tx.c fifo->base = vmap(fifo->qpl->pages, fifo->qpl->num_entries, VM_MAP, fifo 33 drivers/net/ethernet/google/gve/gve_tx.c if (unlikely(!fifo->base)) { fifo 35 drivers/net/ethernet/google/gve/gve_tx.c fifo->qpl->id); fifo 39 drivers/net/ethernet/google/gve/gve_tx.c fifo->size = fifo->qpl->num_entries * PAGE_SIZE; fifo 40 drivers/net/ethernet/google/gve/gve_tx.c atomic_set(&fifo->available, fifo->size); fifo 41 drivers/net/ethernet/google/gve/gve_tx.c fifo->head = 0; fifo 45 drivers/net/ethernet/google/gve/gve_tx.c static void gve_tx_fifo_release(struct gve_priv *priv, struct gve_tx_fifo *fifo) fifo 47 drivers/net/ethernet/google/gve/gve_tx.c WARN(atomic_read(&fifo->available) != fifo->size, fifo 50 drivers/net/ethernet/google/gve/gve_tx.c vunmap(fifo->base); fifo 53 drivers/net/ethernet/google/gve/gve_tx.c static int gve_tx_fifo_pad_alloc_one_frag(struct gve_tx_fifo *fifo, fifo 56 drivers/net/ethernet/google/gve/gve_tx.c return (fifo->head + bytes < fifo->size) ? 0 : fifo->size - fifo->head; fifo 59 drivers/net/ethernet/google/gve/gve_tx.c static bool gve_tx_fifo_can_alloc(struct gve_tx_fifo *fifo, size_t bytes) fifo 61 drivers/net/ethernet/google/gve/gve_tx.c return (atomic_read(&fifo->available) <= bytes) ? false : true; fifo 74 drivers/net/ethernet/google/gve/gve_tx.c static int gve_tx_alloc_fifo(struct gve_tx_fifo *fifo, size_t bytes, fifo 90 drivers/net/ethernet/google/gve/gve_tx.c WARN(!gve_tx_fifo_can_alloc(fifo, bytes), fifo 95 drivers/net/ethernet/google/gve/gve_tx.c iov[0].iov_offset = fifo->head; fifo 97 drivers/net/ethernet/google/gve/gve_tx.c fifo->head += bytes; fifo 99 drivers/net/ethernet/google/gve/gve_tx.c if (fifo->head > fifo->size) { fifo 104 drivers/net/ethernet/google/gve/gve_tx.c overflow = fifo->head - fifo->size; fifo 109 drivers/net/ethernet/google/gve/gve_tx.c fifo->head = overflow; fifo 113 drivers/net/ethernet/google/gve/gve_tx.c aligned_head = L1_CACHE_ALIGN(fifo->head); fifo 114 drivers/net/ethernet/google/gve/gve_tx.c padding = aligned_head - fifo->head; fifo 116 drivers/net/ethernet/google/gve/gve_tx.c atomic_sub(bytes + padding, &fifo->available); fifo 117 drivers/net/ethernet/google/gve/gve_tx.c fifo->head = aligned_head; fifo 119 drivers/net/ethernet/google/gve/gve_tx.c if (fifo->head == fifo->size) fifo 120 drivers/net/ethernet/google/gve/gve_tx.c fifo->head = 0; fifo 129 drivers/net/ethernet/google/gve/gve_tx.c static void gve_tx_free_fifo(struct gve_tx_fifo *fifo, size_t bytes) fifo 131 drivers/net/ethernet/google/gve/gve_tx.c atomic_add(bytes, &fifo->available); fifo 29 drivers/net/ethernet/i825xx/sun3_82586.c static int fifo=0x8; /* don't change */ fifo 424 drivers/net/ethernet/i825xx/sun3_82586.c cfg_cmd->fifo = fifo; /* fifo-limit (8=tx:32/rx:64) */ fifo 231 drivers/net/ethernet/i825xx/sun3_82586.h unsigned char fifo; /* fifo/recv monitor */ fifo 12 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static void fm10k_fifo_init(struct fm10k_mbx_fifo *fifo, u32 *buffer, u16 size) fifo 14 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->buffer = buffer; fifo 15 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->size = size; fifo 16 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->head = 0; fifo 17 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->tail = 0; fifo 26 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static u16 fm10k_fifo_used(struct fm10k_mbx_fifo *fifo) fifo 28 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c return fifo->tail - fifo->head; fifo 37 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static u16 fm10k_fifo_unused(struct fm10k_mbx_fifo *fifo) fifo 39 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c return fifo->size + fifo->head - fifo->tail; fifo 48 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static bool fm10k_fifo_empty(struct fm10k_mbx_fifo *fifo) fifo 50 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c return fifo->head == fifo->tail; fifo 60 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static u16 fm10k_fifo_head_offset(struct fm10k_mbx_fifo *fifo, u16 offset) fifo 62 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c return (fifo->head + offset) & (fifo->size - 1); fifo 72 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static u16 fm10k_fifo_tail_offset(struct fm10k_mbx_fifo *fifo, u16 offset) fifo 74 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c return (fifo->tail + offset) & (fifo->size - 1); fifo 83 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static u16 fm10k_fifo_head_len(struct fm10k_mbx_fifo *fifo) fifo 85 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u32 *head = fifo->buffer + fm10k_fifo_head_offset(fifo, 0); fifo 88 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c if (fm10k_fifo_empty(fifo)) fifo 101 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static u16 fm10k_fifo_head_drop(struct fm10k_mbx_fifo *fifo) fifo 103 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u16 len = fm10k_fifo_head_len(fifo); fifo 106 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->head += len; fifo 118 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static void fm10k_fifo_drop_all(struct fm10k_mbx_fifo *fifo) fifo 120 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->head = fifo->tail; fifo 236 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static void fm10k_fifo_write_copy(struct fm10k_mbx_fifo *fifo, fifo 239 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u16 end = fm10k_fifo_tail_offset(fifo, tail_offset); fifo 240 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u32 *tail = fifo->buffer + end; fifo 243 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c end = fifo->size - end; fifo 247 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c memcpy(fifo->buffer, msg + end, (len - end) << 2); fifo 264 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static s32 fm10k_fifo_enqueue(struct fm10k_mbx_fifo *fifo, const u32 *msg) fifo 269 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c if (len > fifo->size) fifo 273 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c if (len > fm10k_fifo_unused(fifo)) fifo 277 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fm10k_fifo_write_copy(fifo, msg, 0, len); fifo 283 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->tail += len; fifo 298 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->rx; fifo 308 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c msg = fifo->buffer + fm10k_fifo_tail_offset(fifo, total_len); fifo 333 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->tx; fifo 335 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u32 *head = fifo->buffer; fifo 349 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c end = fm10k_fifo_head_offset(fifo, mbx->pulled); fifo 356 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c for (end = fifo->size - end; len; head = fifo->buffer) { fifo 386 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->tx; fifo 393 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c len = fm10k_fifo_used(fifo) - mbx->pulled; fifo 402 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c for (len = fm10k_fifo_head_len(fifo); fifo 404 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c len = fm10k_fifo_head_len(fifo)) { fifo 405 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c mbx->pulled -= fm10k_fifo_head_drop(fifo); fifo 426 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->rx; fifo 428 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u32 *tail = fifo->buffer; fifo 438 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c end = fm10k_fifo_tail_offset(fifo, mbx->pushed); fifo 442 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c for (end = fifo->size - end; len; tail = fifo->buffer) { fifo 475 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->rx; fifo 479 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c len = fm10k_fifo_unused(fifo) - mbx->pushed; fifo 505 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->tail += len; fifo 588 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static u16 fm10k_fifo_crc(struct fm10k_mbx_fifo *fifo, u16 offset, fifo 591 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u32 *data = fifo->buffer + offset; fifo 594 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c offset = fifo->size - offset; fifo 599 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c data = fifo->buffer; fifo 640 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->rx; fifo 642 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u16 offset = fm10k_fifo_tail_offset(fifo, mbx->pushed) - len; fifo 647 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c mbx->remote = fm10k_fifo_crc(fifo, offset, len, mbx->remote); fifo 705 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->rx; fifo 710 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c for (cnt = 0; !fm10k_fifo_empty(fifo); cnt++) { fifo 711 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c err = fm10k_tlv_msg_parse(hw, fifo->buffer + fifo->head, fifo 716 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fm10k_fifo_head_drop(fifo); fifo 720 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c memmove(fifo->buffer, fifo->buffer + fifo->tail, mbx->pushed << 2); fifo 723 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->tail -= fifo->head; fifo 724 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fifo->head = 0; fifo 856 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->tx; fifo 863 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c crc = fm10k_fifo_crc(fifo, fm10k_fifo_head_offset(fifo, mbx->pulled), fifo 1920 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_fifo *fifo = &mbx->tx; fifo 1935 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c msg = fifo->buffer + fm10k_fifo_head_offset(fifo, len); fifo 203 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h mlx5e_xdpi_fifo_push(struct mlx5e_xdp_info_fifo *fifo, fifo 206 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h u32 i = (*fifo->pc)++ & fifo->mask; fifo 208 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h fifo->xi[i] = *xi; fifo 212 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h mlx5e_xdpi_fifo_pop(struct mlx5e_xdp_info_fifo *fifo) fifo 214 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h return fifo->xi[(*fifo->cc)++ & fifo->mask]; fifo 251 drivers/net/ethernet/neterion/s2io-regs.h #define TX_MAT_SET(fifo, msi) vBIT(msi, (8 * fifo), 8) fifo 541 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo, int cnt, u8 multiq) fifo 545 drivers/net/ethernet/neterion/s2io.c if (cnt && __netif_subqueue_stopped(fifo->dev, fifo->fifo_no)) fifo 546 drivers/net/ethernet/neterion/s2io.c netif_wake_subqueue(fifo->dev, fifo->fifo_no); fifo 547 drivers/net/ethernet/neterion/s2io.c } else if (cnt && (fifo->queue_state == FIFO_QUEUE_STOP)) { fifo 548 drivers/net/ethernet/neterion/s2io.c if (netif_queue_stopped(fifo->dev)) { fifo 549 drivers/net/ethernet/neterion/s2io.c fifo->queue_state = FIFO_QUEUE_START; fifo 550 drivers/net/ethernet/neterion/s2io.c netif_wake_queue(fifo->dev); fifo 612 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = &mac_control->fifos[i]; fifo 617 drivers/net/ethernet/neterion/s2io.c fifo->list_info = kzalloc(list_holder_size, GFP_KERNEL); fifo 618 drivers/net/ethernet/neterion/s2io.c if (!fifo->list_info) { fifo 627 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = &mac_control->fifos[i]; fifo 630 drivers/net/ethernet/neterion/s2io.c fifo->tx_curr_put_info.offset = 0; fifo 631 drivers/net/ethernet/neterion/s2io.c fifo->tx_curr_put_info.fifo_len = tx_cfg->fifo_len - 1; fifo 632 drivers/net/ethernet/neterion/s2io.c fifo->tx_curr_get_info.offset = 0; fifo 633 drivers/net/ethernet/neterion/s2io.c fifo->tx_curr_get_info.fifo_len = tx_cfg->fifo_len - 1; fifo 634 drivers/net/ethernet/neterion/s2io.c fifo->fifo_no = i; fifo 635 drivers/net/ethernet/neterion/s2io.c fifo->nic = nic; fifo 636 drivers/net/ethernet/neterion/s2io.c fifo->max_txds = MAX_SKB_FRAGS + 2; fifo 637 drivers/net/ethernet/neterion/s2io.c fifo->dev = dev; fifo 674 drivers/net/ethernet/neterion/s2io.c fifo->list_info[l].list_virt_addr = fifo 676 drivers/net/ethernet/neterion/s2io.c fifo->list_info[l].list_phy_addr = fifo 684 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = &mac_control->fifos[i]; fifo 688 drivers/net/ethernet/neterion/s2io.c fifo->ufo_in_band_v = kcalloc(size, sizeof(u64), GFP_KERNEL); fifo 689 drivers/net/ethernet/neterion/s2io.c if (!fifo->ufo_in_band_v) fifo 895 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = &mac_control->fifos[i]; fifo 903 drivers/net/ethernet/neterion/s2io.c if (!fifo->list_info) fifo 906 drivers/net/ethernet/neterion/s2io.c fli = &fifo->list_info[mem_blks]; fifo 927 drivers/net/ethernet/neterion/s2io.c kfree(fifo->list_info); fifo 984 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = &mac_control->fifos[i]; fifo 987 drivers/net/ethernet/neterion/s2io.c if (fifo->ufo_in_band_v) { fifo 990 drivers/net/ethernet/neterion/s2io.c kfree(fifo->ufo_in_band_v); fifo 2369 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = &mac_control->fifos[i]; fifo 2372 drivers/net/ethernet/neterion/s2io.c spin_lock_irqsave(&fifo->tx_lock, flags); fifo 2374 drivers/net/ethernet/neterion/s2io.c txdp = fifo->list_info[j].list_virt_addr; fifo 2385 drivers/net/ethernet/neterion/s2io.c fifo->tx_curr_get_info.offset = 0; fifo 2386 drivers/net/ethernet/neterion/s2io.c fifo->tx_curr_put_info.offset = 0; fifo 2387 drivers/net/ethernet/neterion/s2io.c spin_unlock_irqrestore(&fifo->tx_lock, flags); fifo 4007 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = NULL; fifo 4067 drivers/net/ethernet/neterion/s2io.c fifo = &mac_control->fifos[queue]; fifo 4069 drivers/net/ethernet/neterion/s2io.c spin_lock_irqsave(&fifo->tx_lock, flags); fifo 4072 drivers/net/ethernet/neterion/s2io.c if (__netif_subqueue_stopped(dev, fifo->fifo_no)) { fifo 4073 drivers/net/ethernet/neterion/s2io.c spin_unlock_irqrestore(&fifo->tx_lock, flags); fifo 4076 drivers/net/ethernet/neterion/s2io.c } else if (unlikely(fifo->queue_state == FIFO_QUEUE_STOP)) { fifo 4078 drivers/net/ethernet/neterion/s2io.c spin_unlock_irqrestore(&fifo->tx_lock, flags); fifo 4083 drivers/net/ethernet/neterion/s2io.c put_off = (u16)fifo->tx_curr_put_info.offset; fifo 4084 drivers/net/ethernet/neterion/s2io.c get_off = (u16)fifo->tx_curr_get_info.offset; fifo 4085 drivers/net/ethernet/neterion/s2io.c txdp = fifo->list_info[put_off].list_virt_addr; fifo 4087 drivers/net/ethernet/neterion/s2io.c queue_len = fifo->tx_curr_put_info.fifo_len + 1; fifo 4092 drivers/net/ethernet/neterion/s2io.c s2io_stop_tx_queue(sp, fifo->fifo_no); fifo 4094 drivers/net/ethernet/neterion/s2io.c spin_unlock_irqrestore(&fifo->tx_lock, flags); fifo 4110 drivers/net/ethernet/neterion/s2io.c txdp->Control_2 |= TXD_INT_NUMBER(fifo->fifo_no); fifo 4145 drivers/net/ethernet/neterion/s2io.c val64 = fifo->list_info[put_off].list_phy_addr; fifo 4156 drivers/net/ethernet/neterion/s2io.c if (put_off == fifo->tx_curr_put_info.fifo_len + 1) fifo 4158 drivers/net/ethernet/neterion/s2io.c fifo->tx_curr_put_info.offset = put_off; fifo 4166 drivers/net/ethernet/neterion/s2io.c s2io_stop_tx_queue(sp, fifo->fifo_no); fifo 4169 drivers/net/ethernet/neterion/s2io.c spin_unlock_irqrestore(&fifo->tx_lock, flags); fifo 4172 drivers/net/ethernet/neterion/s2io.c tx_intr_handler(fifo); fifo 4178 drivers/net/ethernet/neterion/s2io.c s2io_stop_tx_queue(sp, fifo->fifo_no); fifo 4181 drivers/net/ethernet/neterion/s2io.c spin_unlock_irqrestore(&fifo->tx_lock, flags); fifo 7994 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = &mac_control->fifos[i]; fifo 7996 drivers/net/ethernet/neterion/s2io.c spin_lock_init(&fifo->tx_lock); fifo 8072 drivers/net/ethernet/neterion/s2io.c struct fifo_info *fifo = &mac_control->fifos[i]; fifo 8074 drivers/net/ethernet/neterion/s2io.c fifo->multiq = config->multiq; fifo 1249 drivers/net/ethernet/neterion/vxge/vxge-config.c status = __vxge_hw_device_fifo_config_check(&vp_config->fifo); fifo 1363 drivers/net/ethernet/neterion/vxge/vxge-config.c if (device_config->vp_config[i].fifo.enable == fifo 1365 drivers/net/ethernet/neterion/vxge/vxge-config.c nblocks += device_config->vp_config[i].fifo.fifo_blocks; fifo 2938 drivers/net/ethernet/neterion/vxge/vxge-config.c device_config->vp_config[i].fifo.enable = VXGE_HW_FIFO_ENABLE; fifo 2940 drivers/net/ethernet/neterion/vxge/vxge-config.c device_config->vp_config[i].fifo.fifo_blocks = fifo 2943 drivers/net/ethernet/neterion/vxge/vxge-config.c device_config->vp_config[i].fifo.max_frags = fifo 2946 drivers/net/ethernet/neterion/vxge/vxge-config.c device_config->vp_config[i].fifo.memblock_size = fifo 2949 drivers/net/ethernet/neterion/vxge/vxge-config.c device_config->vp_config[i].fifo.alignment_size = fifo 2952 drivers/net/ethernet/neterion/vxge/vxge-config.c device_config->vp_config[i].fifo.intr = fifo 2955 drivers/net/ethernet/neterion/vxge/vxge-config.c device_config->vp_config[i].fifo.no_snoop_bits = fifo 3334 drivers/net/ethernet/neterion/vxge/vxge-config.c static enum vxge_hw_status __vxge_hw_fifo_abort(struct __vxge_hw_fifo *fifo) fifo 3339 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_channel_dtr_try_complete(&fifo->channel, &txdlh); fifo 3344 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_channel_dtr_complete(&fifo->channel); fifo 3346 drivers/net/ethernet/neterion/vxge/vxge-config.c if (fifo->txdl_term) { fifo 3347 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->txdl_term(txdlh, fifo 3349 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->channel.userdata); fifo 3352 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_channel_dtr_free(&fifo->channel, txdlh); fifo 3362 drivers/net/ethernet/neterion/vxge/vxge-config.c static enum vxge_hw_status __vxge_hw_fifo_reset(struct __vxge_hw_fifo *fifo) fifo 3366 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_fifo_abort(fifo); fifo 3367 drivers/net/ethernet/neterion/vxge/vxge-config.c status = __vxge_hw_channel_reset(&fifo->channel); fifo 3379 drivers/net/ethernet/neterion/vxge/vxge-config.c struct __vxge_hw_fifo *fifo = vp->vpath->fifoh; fifo 3381 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_fifo_abort(fifo); fifo 3383 drivers/net/ethernet/neterion/vxge/vxge-config.c if (fifo->mempool) fifo 3384 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_mempool_destroy(fifo->mempool); fifo 3388 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_channel_free(&fifo->channel); fifo 3409 drivers/net/ethernet/neterion/vxge/vxge-config.c struct __vxge_hw_fifo *fifo = fifo 3419 drivers/net/ethernet/neterion/vxge/vxge-config.c txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, txdp); fifo 3423 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->channel.reserve_arr[fifo->channel.reserve_ptr - 1 - index] = txdp; fifo 3444 drivers/net/ethernet/neterion/vxge/vxge-config.c struct __vxge_hw_fifo *fifo; fifo 3455 drivers/net/ethernet/neterion/vxge/vxge-config.c config = &vpath->hldev->config.vp_config[vpath->vp_id].fifo; fifo 3461 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo = (struct __vxge_hw_fifo *)__vxge_hw_channel_allocate(vp, fifo 3466 drivers/net/ethernet/neterion/vxge/vxge-config.c if (fifo == NULL) { fifo 3471 drivers/net/ethernet/neterion/vxge/vxge-config.c vpath->fifoh = fifo; fifo 3472 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->nofl_db = vpath->nofl_db; fifo 3474 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->vp_id = vpath->vp_id; fifo 3475 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->vp_reg = vpath->vp_reg; fifo 3476 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->stats = &vpath->sw_stats->fifo_stats; fifo 3478 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->config = config; fifo 3481 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->interrupt_type = VXGE_HW_FIFO_TXD_INT_TYPE_UTILZ; fifo 3482 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->tim_tti_cfg1_saved = vpath->tim_tti_cfg1_saved; fifo 3483 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->tim_tti_cfg3_saved = vpath->tim_tti_cfg3_saved; fifo 3485 drivers/net/ethernet/neterion/vxge/vxge-config.c if (fifo->config->intr) fifo 3486 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->interrupt_type = VXGE_HW_FIFO_TXD_INT_TYPE_PER_LIST; fifo 3488 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->no_snoop_bits = config->no_snoop_bits; fifo 3510 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->priv_size = fifo 3512 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->priv_size = ((fifo->priv_size + VXGE_CACHE_LINE_SIZE - 1) / fifo 3515 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->per_txdl_space = attr->per_txdl_space; fifo 3518 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->txdl_size = txdl_size; fifo 3519 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->txdl_per_memblock = txdl_per_memblock; fifo 3521 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->txdl_term = attr->txdl_term; fifo 3522 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->callback = attr->callback; fifo 3524 drivers/net/ethernet/neterion/vxge/vxge-config.c if (fifo->txdl_per_memblock == 0) { fifo 3532 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->mempool = fifo 3534 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->config->memblock_size, fifo 3535 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->txdl_size, fifo 3536 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo->priv_size, fifo 3537 drivers/net/ethernet/neterion/vxge/vxge-config.c (fifo->config->fifo_blocks * fifo->txdl_per_memblock), fifo 3538 drivers/net/ethernet/neterion/vxge/vxge-config.c (fifo->config->fifo_blocks * fifo->txdl_per_memblock), fifo 3540 drivers/net/ethernet/neterion/vxge/vxge-config.c fifo); fifo 3542 drivers/net/ethernet/neterion/vxge/vxge-config.c if (fifo->mempool == NULL) { fifo 3548 drivers/net/ethernet/neterion/vxge/vxge-config.c status = __vxge_hw_channel_initialize(&fifo->channel); fifo 3554 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_assert(fifo->channel.reserve_ptr); fifo 4159 drivers/net/ethernet/neterion/vxge/vxge-config.c if (vpath->vp_config->fifo.enable == VXGE_HW_FIFO_ENABLE) { fifo 4164 drivers/net/ethernet/neterion/vxge/vxge-config.c ((vpath->vp_config->fifo.memblock_size / fifo 4165 drivers/net/ethernet/neterion/vxge/vxge-config.c (vpath->vp_config->fifo.max_frags * fifo 4167 drivers/net/ethernet/neterion/vxge/vxge-config.c vpath->vp_config->fifo.fifo_blocks)) { fifo 4303 drivers/net/ethernet/neterion/vxge/vxge-config.c if (config->fifo.enable == VXGE_HW_FIFO_ENABLE) { fifo 4823 drivers/net/ethernet/neterion/vxge/vxge-config.c if (vpath->vp_config->fifo.enable == VXGE_HW_FIFO_ENABLE) { fifo 373 drivers/net/ethernet/neterion/vxge/vxge-config.h struct vxge_hw_fifo_config fifo; fifo 1977 drivers/net/ethernet/neterion/vxge/vxge-config.h struct __vxge_hw_fifo *fifo, fifo 1982 drivers/net/ethernet/neterion/vxge/vxge-config.h fifo->per_txdl_space); fifo 579 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *ptr += vdev->vpaths[k].fifo.stats.tx_frms; fifo 580 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 1) += vdev->vpaths[k].fifo.stats.tx_errors; fifo 581 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 2) += vdev->vpaths[k].fifo.stats.tx_bytes; fifo 582 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 3) += vdev->vpaths[k].fifo.stats.txd_not_free; fifo 583 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 4) += vdev->vpaths[k].fifo.stats.txd_out_of_desc; fifo 588 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 9) += vdev->vpaths[k].fifo.stats.pci_map_fail + fifo 97 drivers/net/ethernet/neterion/vxge/vxge-main.c static inline void VXGE_COMPLETE_VPATH_TX(struct vxge_fifo *fifo) fifo 109 drivers/net/ethernet/neterion/vxge/vxge-main.c if (__netif_tx_trylock(fifo->txq)) { fifo 110 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_poll_tx(fifo->handle, &skb_ptr, fifo 112 drivers/net/ethernet/neterion/vxge/vxge-main.c __netif_tx_unlock(fifo->txq); fifo 127 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_COMPLETE_VPATH_TX(&vdev->vpaths[i].fifo); fifo 550 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_fifo *fifo = (struct vxge_fifo *)userdata; fifo 570 drivers/net/ethernet/neterion/vxge/vxge-main.c "tcode = 0x%x", fifo->ndev->name, __func__, fifo 576 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->ndev->name, __func__, __LINE__, fifo 579 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->stats.tx_errors++; fifo 582 drivers/net/ethernet/neterion/vxge/vxge-main.c "error t_code %01x", fifo->ndev->name, fifo 588 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_unmap_single(fifo->pdev, txd_priv->dma_buffers[i++], fifo 592 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_unmap_page(fifo->pdev, fifo 601 drivers/net/ethernet/neterion/vxge/vxge-main.c u64_stats_update_begin(&fifo->stats.syncp); fifo 602 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->stats.tx_frms++; fifo 603 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->stats.tx_bytes += skb->len; fifo 604 drivers/net/ethernet/neterion/vxge/vxge-main.c u64_stats_update_end(&fifo->stats.syncp); fifo 614 drivers/net/ethernet/neterion/vxge/vxge-main.c if (pkt_cnt > fifo->indicate_max_pkts) fifo 621 drivers/net/ethernet/neterion/vxge/vxge-main.c if (netif_tx_queue_stopped(fifo->txq)) fifo 622 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_wake_queue(fifo->txq); fifo 626 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->ndev->name, __func__, __LINE__); fifo 805 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_fifo *fifo = NULL; fifo 860 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo = &vdev->vpaths[vpath_no].fifo; fifo 861 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo_hw = fifo->handle; fifo 863 drivers/net/ethernet/neterion/vxge/vxge-main.c if (netif_tx_queue_stopped(fifo->txq)) fifo 870 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->stats.txd_not_free++; fifo 878 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_queue(fifo->txq); fifo 884 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->stats.txd_out_of_desc++; fifo 900 drivers/net/ethernet/neterion/vxge/vxge-main.c dma_pointer = pci_map_single(fifo->pdev, skb->data, first_frg_len, fifo 903 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(pci_dma_mapping_error(fifo->pdev, dma_pointer))) { fifo 905 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->stats.pci_map_fail++; fifo 929 drivers/net/ethernet/neterion/vxge/vxge-main.c dma_pointer = (u64)skb_frag_dma_map(&fifo->pdev->dev, frag, fifo 933 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(dma_mapping_error(&fifo->pdev->dev, dma_pointer))) fifo 980 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_unmap_single(fifo->pdev, txdl_priv->dma_buffers[j++], fifo 984 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_unmap_page(fifo->pdev, txdl_priv->dma_buffers[j], fifo 991 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_queue(fifo->txq); fifo 1034 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_fifo *fifo = (struct vxge_fifo *)userdata; fifo 1051 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_unmap_single(fifo->pdev, txd_priv->dma_buffers[i++], fifo 1055 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_unmap_page(fifo->pdev, txd_priv->dma_buffers[i++], fifo 1569 drivers/net/ethernet/neterion/vxge/vxge-main.c if (netif_tx_queue_stopped(vpath->fifo.txq)) fifo 1570 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_wake_queue(vpath->fifo.txq); fifo 1592 drivers/net/ethernet/neterion/vxge/vxge-main.c struct __vxge_hw_fifo *hw_fifo = vdev->vpaths[i].fifo.handle; fifo 2051 drivers/net/ethernet/neterion/vxge/vxge-main.c attr.fifo_attr.userdata = &vpath->fifo; fifo 2064 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.handle = fifo 2068 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.tx_steering_type = fifo 2070 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.ndev = vdev->ndev; fifo 2071 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.pdev = vdev->pdev; fifo 2073 drivers/net/ethernet/neterion/vxge/vxge-main.c u64_stats_init(&vpath->fifo.stats.syncp); fifo 2077 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.txq = fifo 2080 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.txq = fifo 2082 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.indicate_max_pkts = fifo 2084 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.tx_vector_no = 0; fifo 2116 drivers/net/ethernet/neterion/vxge/vxge-main.c static void adaptive_coalesce_tx_interrupts(struct vxge_fifo *fifo) fifo 2118 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->interrupt_count++; fifo 2119 drivers/net/ethernet/neterion/vxge/vxge-main.c if (time_before(fifo->jiffies + HZ / 100, jiffies)) { fifo 2120 drivers/net/ethernet/neterion/vxge/vxge-main.c struct __vxge_hw_fifo *hw_fifo = fifo->handle; fifo 2122 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->jiffies = jiffies; fifo 2123 drivers/net/ethernet/neterion/vxge/vxge-main.c if (fifo->interrupt_count > VXGE_T1A_MAX_TX_INTERRUPT_COUNT && fifo 2131 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->interrupt_count = 0; fifo 2221 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_fifo *fifo = (struct vxge_fifo *)dev_id; fifo 2223 drivers/net/ethernet/neterion/vxge/vxge-main.c adaptive_coalesce_tx_interrupts(fifo); fifo 2225 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_channel_msix_mask((struct __vxge_hw_channel *)fifo->handle, fifo 2226 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->tx_vector_no); fifo 2228 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_channel_msix_clear((struct __vxge_hw_channel *)fifo->handle, fifo 2229 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->tx_vector_no); fifo 2231 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_COMPLETE_VPATH_TX(fifo); fifo 2233 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_channel_msix_unmask((struct __vxge_hw_channel *)fifo->handle, fifo 2234 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->tx_vector_no); fifo 2399 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.tx_vector_no = (vpath->device_id * fifo 2480 drivers/net/ethernet/neterion/vxge/vxge-main.c &vdev->vpaths[vp_idx].fifo); fifo 2482 drivers/net/ethernet/neterion/vxge/vxge-main.c &vdev->vpaths[vp_idx].fifo; fifo 2569 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_tti_ci_set(vdev->vpaths[0].fifo.handle); fifo 2638 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_queue(vpath->fifo.txq); fifo 3110 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_fifo_stats *txstats = &vdev->vpaths[k].fifo.stats; fifo 3600 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_queue(vpath->fifo.txq); fifo 3743 drivers/net/ethernet/neterion/vxge/vxge-main.c device_config->vp_config[i].fifo.enable = fifo 3745 drivers/net/ethernet/neterion/vxge/vxge-main.c device_config->vp_config[i].fifo.max_frags = fifo 3747 drivers/net/ethernet/neterion/vxge/vxge-main.c device_config->vp_config[i].fifo.memblock_size = fifo 3750 drivers/net/ethernet/neterion/vxge/vxge-main.c txdl_size = device_config->vp_config[i].fifo.max_frags * fifo 3754 drivers/net/ethernet/neterion/vxge/vxge-main.c device_config->vp_config[i].fifo.fifo_blocks = fifo 3757 drivers/net/ethernet/neterion/vxge/vxge-main.c device_config->vp_config[i].fifo.intr = fifo 3997 drivers/net/ethernet/neterion/vxge/vxge-main.c config.vp_config[i].fifo.max_frags); fifo 300 drivers/net/ethernet/neterion/vxge/vxge-main.h struct vxge_fifo fifo; fifo 223 drivers/net/ethernet/neterion/vxge/vxge-traffic.c void vxge_hw_vpath_tti_ci_set(struct __vxge_hw_fifo *fifo) fifo 229 drivers/net/ethernet/neterion/vxge/vxge-traffic.c if (fifo->config->enable != VXGE_HW_FIFO_ENABLE) fifo 232 drivers/net/ethernet/neterion/vxge/vxge-traffic.c vp_reg = fifo->vp_reg; fifo 233 drivers/net/ethernet/neterion/vxge/vxge-traffic.c config = container_of(fifo->config, struct vxge_hw_vp_config, fifo); fifo 239 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->tim_tti_cfg1_saved = val64; fifo 253 drivers/net/ethernet/neterion/vxge/vxge-traffic.c void vxge_hw_vpath_dynamic_tti_rtimer_set(struct __vxge_hw_fifo *fifo) fifo 255 drivers/net/ethernet/neterion/vxge/vxge-traffic.c u64 val64 = fifo->tim_tti_cfg3_saved; fifo 256 drivers/net/ethernet/neterion/vxge/vxge-traffic.c u64 timer = (fifo->rtimer * 1000) / 272; fifo 263 drivers/net/ethernet/neterion/vxge/vxge-traffic.c writeq(val64, &fifo->vp_reg->tim_cfg3_int_num[VXGE_HW_VPATH_INTR_TX]); fifo 1394 drivers/net/ethernet/neterion/vxge/vxge-traffic.c static void __vxge_hw_non_offload_db_post(struct __vxge_hw_fifo *fifo, fifo 1400 drivers/net/ethernet/neterion/vxge/vxge-traffic.c &fifo->nofl_db->control_0); fifo 1402 drivers/net/ethernet/neterion/vxge/vxge-traffic.c writeq(txdl_ptr, &fifo->nofl_db->txdl_ptr); fifo 1436 drivers/net/ethernet/neterion/vxge/vxge-traffic.c struct __vxge_hw_fifo *fifo, fifo 1443 drivers/net/ethernet/neterion/vxge/vxge-traffic.c channel = &fifo->channel; fifo 1452 drivers/net/ethernet/neterion/vxge/vxge-traffic.c priv = __vxge_hw_fifo_txdl_priv(fifo, txdp); fifo 1459 drivers/net/ethernet/neterion/vxge/vxge-traffic.c priv->alloc_frags = fifo->config->max_frags; fifo 1464 drivers/net/ethernet/neterion/vxge/vxge-traffic.c for (i = 0; i < fifo->config->max_frags; i++) { fifo 1490 drivers/net/ethernet/neterion/vxge/vxge-traffic.c void vxge_hw_fifo_txdl_buffer_set(struct __vxge_hw_fifo *fifo, fifo 1497 drivers/net/ethernet/neterion/vxge/vxge-traffic.c txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, txdlh); fifo 1505 drivers/net/ethernet/neterion/vxge/vxge-traffic.c txdp->control_1 |= fifo->interrupt_type; fifo 1507 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->tx_intr_num); fifo 1520 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->stats->total_buffers++; fifo 1536 drivers/net/ethernet/neterion/vxge/vxge-traffic.c void vxge_hw_fifo_txdl_post(struct __vxge_hw_fifo *fifo, void *txdlh) fifo 1542 drivers/net/ethernet/neterion/vxge/vxge-traffic.c txdl_priv = __vxge_hw_fifo_txdl_priv(fifo, txdlh); fifo 1550 drivers/net/ethernet/neterion/vxge/vxge-traffic.c vxge_hw_channel_dtr_post(&fifo->channel, txdlh); fifo 1552 drivers/net/ethernet/neterion/vxge/vxge-traffic.c __vxge_hw_non_offload_db_post(fifo, fifo 1555 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->no_snoop_bits); fifo 1557 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->stats->total_posts++; fifo 1558 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->stats->common_stats.usage_cnt++; fifo 1559 drivers/net/ethernet/neterion/vxge/vxge-traffic.c if (fifo->stats->common_stats.usage_max < fifo 1560 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->stats->common_stats.usage_cnt) fifo 1561 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->stats->common_stats.usage_max = fifo 1562 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->stats->common_stats.usage_cnt; fifo 1598 drivers/net/ethernet/neterion/vxge/vxge-traffic.c struct __vxge_hw_fifo *fifo, void **txdlh, fifo 1605 drivers/net/ethernet/neterion/vxge/vxge-traffic.c channel = &fifo->channel; fifo 1624 drivers/net/ethernet/neterion/vxge/vxge-traffic.c if (fifo->stats->common_stats.usage_cnt > 0) fifo 1625 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->stats->common_stats.usage_cnt--; fifo 1652 drivers/net/ethernet/neterion/vxge/vxge-traffic.c enum vxge_hw_status vxge_hw_fifo_handle_tcode(struct __vxge_hw_fifo *fifo, fifo 1663 drivers/net/ethernet/neterion/vxge/vxge-traffic.c fifo->stats->txd_t_code_err_cnt[t_code]++; fifo 1692 drivers/net/ethernet/neterion/vxge/vxge-traffic.c void vxge_hw_fifo_txdl_free(struct __vxge_hw_fifo *fifo, void *txdlh) fifo 1696 drivers/net/ethernet/neterion/vxge/vxge-traffic.c channel = &fifo->channel; fifo 2427 drivers/net/ethernet/neterion/vxge/vxge-traffic.c enum vxge_hw_status vxge_hw_vpath_poll_tx(struct __vxge_hw_fifo *fifo, fifo 2436 drivers/net/ethernet/neterion/vxge/vxge-traffic.c channel = &fifo->channel; fifo 2438 drivers/net/ethernet/neterion/vxge/vxge-traffic.c status = vxge_hw_fifo_txdl_next_completed(fifo, fifo 2441 drivers/net/ethernet/neterion/vxge/vxge-traffic.c if (fifo->callback(fifo, first_txdlh, t_code, fifo 2144 drivers/net/ethernet/neterion/vxge/vxge-traffic.h void vxge_hw_vpath_dynamic_tti_rtimer_set(struct __vxge_hw_fifo *fifo); fifo 2286 drivers/net/ethernet/neterion/vxge/vxge-traffic.h void vxge_hw_vpath_tti_ci_set(struct __vxge_hw_fifo *fifo); fifo 411 drivers/net/ethernet/smsc/smc911x.c unsigned int fifo; fifo 413 drivers/net/ethernet/smsc/smc911x.c fifo = SMC_GET_FIFO_INT(lp); fifo 414 drivers/net/ethernet/smsc/smc911x.c if (fifo & 0xFF) fifo--; fifo 416 drivers/net/ethernet/smsc/smc911x.c fifo & 0xff); fifo 417 drivers/net/ethernet/smsc/smc911x.c SMC_SET_FIFO_INT(lp, fifo); fifo 1080 drivers/net/ethernet/smsc/smc911x.c unsigned int fifo; fifo 1082 drivers/net/ethernet/smsc/smc911x.c fifo = SMC_GET_RX_FIFO_INF(lp); fifo 1083 drivers/net/ethernet/smsc/smc911x.c pkts = (fifo & RX_FIFO_INF_RXSUSED_) >> 16; fifo 1085 drivers/net/ethernet/smsc/smc911x.c pkts, fifo & 0xFFFF); fifo 1088 drivers/net/ethernet/smsc/smc911x.c unsigned int fifo; fifo 1093 drivers/net/ethernet/smsc/smc911x.c fifo = SMC_GET_FIFO_INT(lp) & ~0xFF; fifo 1094 drivers/net/ethernet/smsc/smc911x.c fifo |= pkts & 0xFF; fifo 1097 drivers/net/ethernet/smsc/smc911x.c fifo & 0xff); fifo 1098 drivers/net/ethernet/smsc/smc911x.c SMC_SET_FIFO_INT(lp, fifo); fifo 1328 drivers/net/ethernet/smsc/smc91x.c int status, mask, eph_st, meminfo, fifo; fifo 1335 drivers/net/ethernet/smsc/smc91x.c fifo = SMC_GET_FIFO(lp); fifo 1342 drivers/net/ethernet/smsc/smc91x.c status, mask, meminfo, fifo, eph_st); fifo 150 drivers/net/ethernet/tehuti/tehuti.c bdx_fifo_init(struct bdx_priv *priv, struct fifo *f, int fsz_type, fifo 155 drivers/net/ethernet/tehuti/tehuti.c memset(f, 0, sizeof(struct fifo)); fifo 182 drivers/net/ethernet/tehuti/tehuti.c static void bdx_fifo_free(struct bdx_priv *priv, struct fifo *f) fifo 156 drivers/net/ethernet/tehuti/tehuti.h struct fifo m; /* minimal set of variables used by all fifos */ fifo 160 drivers/net/ethernet/tehuti/tehuti.h struct fifo m; /* minimal set of variables used by all fifos */ fifo 164 drivers/net/ethernet/tehuti/tehuti.h struct fifo m; /* minimal set of variables used by all fifos */ fifo 168 drivers/net/ethernet/tehuti/tehuti.h struct fifo m; /* minimal set of variables used by all fifos */ fifo 1040 drivers/net/ethernet/ti/cpsw.c static void cpsw_fifo_shp_on(struct cpsw_priv *priv, int fifo, int on) fifo 1050 drivers/net/ethernet/ti/cpsw.c mask = (1 << --fifo) << shift; fifo 1421 drivers/net/ethernet/ti/cpsw.c static int cpsw_set_fifo_bw(struct cpsw_priv *priv, int fifo, int bw) fifo 1438 drivers/net/ethernet/ti/cpsw.c if (i >= fifo || !priv->fifo_bw[i]) fifo 1445 drivers/net/ethernet/ti/cpsw.c if (!priv->fifo_bw[i] && i > fifo) { fifo 1451 drivers/net/ethernet/ti/cpsw.c if (i == fifo) { fifo 1470 drivers/net/ethernet/ti/cpsw.c priv->fifo_bw[fifo] = bw; fifo 1472 drivers/net/ethernet/ti/cpsw.c dev_warn(priv->dev, "set FIFO%d bw = %d\n", fifo, fifo 1481 drivers/net/ethernet/ti/cpsw.c static int cpsw_set_fifo_rlimit(struct cpsw_priv *priv, int fifo, int bw) fifo 1488 drivers/net/ethernet/ti/cpsw.c ret = cpsw_set_fifo_bw(priv, fifo, bw); fifo 1497 drivers/net/ethernet/ti/cpsw.c cpsw_fifo_shp_on(priv, fifo, bw); fifo 1516 drivers/net/ethernet/ti/cpsw.c val |= BIT(fifo + CPSW_FIFO_RATE_EN_SHIFT); fifo 1518 drivers/net/ethernet/ti/cpsw.c val &= ~BIT(fifo + CPSW_FIFO_RATE_EN_SHIFT); fifo 1522 drivers/net/ethernet/ti/cpsw.c cpsw_fifo_shp_on(priv, fifo, bw); fifo 1538 drivers/net/ethernet/ti/cpsw.c int tc, ret, fifo; fifo 1547 drivers/net/ethernet/ti/cpsw.c fifo = cpsw_tc_to_fifo(tc, ndev->num_tc); fifo 1548 drivers/net/ethernet/ti/cpsw.c if (!fifo) { fifo 1554 drivers/net/ethernet/ti/cpsw.c if (!qopt->enable && !priv->fifo_bw[fifo]) fifo 1579 drivers/net/ethernet/ti/cpsw.c ret = cpsw_set_fifo_rlimit(priv, fifo, bw); fifo 1595 drivers/net/ethernet/ti/cpsw.c int fifo, bw; fifo 1597 drivers/net/ethernet/ti/cpsw.c for (fifo = CPSW_FIFO_SHAPERS_NUM; fifo > 0; fifo--) { fifo 1598 drivers/net/ethernet/ti/cpsw.c bw = priv->fifo_bw[fifo]; fifo 1602 drivers/net/ethernet/ti/cpsw.c cpsw_set_fifo_rlimit(priv, fifo, bw); fifo 1610 drivers/net/ethernet/ti/cpsw.c int i, tc, fifo; fifo 1618 drivers/net/ethernet/ti/cpsw.c fifo = CPSW_FIFO_SHAPERS_NUM - tc; fifo 1619 drivers/net/ethernet/ti/cpsw.c tx_prio_map |= fifo << (4 * i); fifo 2274 drivers/net/ethernet/ti/cpsw.c int fifo, num_tc, count, offset; fifo 2295 drivers/net/ethernet/ti/cpsw.c fifo = cpsw_tc_to_fifo(tc, num_tc); fifo 2296 drivers/net/ethernet/ti/cpsw.c tx_prio_map |= fifo << (4 * i); fifo 203 drivers/net/ethernet/wiznet/w5300.c u16 fifo; fifo 207 drivers/net/ethernet/wiznet/w5300.c fifo = w5300_read(priv, W5300_S0_RX_FIFO); fifo 208 drivers/net/ethernet/wiznet/w5300.c *buf++ = fifo >> 8; fifo 209 drivers/net/ethernet/wiznet/w5300.c *buf++ = fifo; fifo 211 drivers/net/ethernet/wiznet/w5300.c fifo = w5300_read(priv, W5300_S0_RX_FIFO); fifo 212 drivers/net/ethernet/wiznet/w5300.c fifo = w5300_read(priv, W5300_S0_RX_FIFO); fifo 217 drivers/net/ethernet/wiznet/w5300.c u16 fifo; fifo 221 drivers/net/ethernet/wiznet/w5300.c fifo = *buf++ << 8; fifo 222 drivers/net/ethernet/wiznet/w5300.c fifo |= *buf++; fifo 223 drivers/net/ethernet/wiznet/w5300.c w5300_write(priv, W5300_S0_TX_FIFO, fifo); fifo 697 drivers/net/fddi/skfp/ess.c if (smc->hw.fp.fifo.fifo_config_mode & SYNC_TRAFFIC_ON && fifo 698 drivers/net/fddi/skfp/ess.c (smc->hw.fp.fifo.fifo_config_mode&SEND_ASYNC_AS_SYNC) == fifo 704 drivers/net/fddi/skfp/ess.c if (!(smc->hw.fp.fifo.fifo_config_mode & SYNC_TRAFFIC_ON)) { fifo 174 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rbc_ram_start = 0 ; fifo 175 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rbc_ram_end = fifo 176 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rbc_ram_start + RBC_MEM_SIZE ; fifo 178 drivers/net/fddi/skfp/fplustm.c MARW(smc->hw.fp.fifo.rbc_ram_start) ; fifo 179 drivers/net/fddi/skfp/fplustm.c for (i = smc->hw.fp.fifo.rbc_ram_start; fifo 180 drivers/net/fddi/skfp/fplustm.c i < (u_short) (smc->hw.fp.fifo.rbc_ram_end-1); i++) fifo 194 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_RPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* RPR1 */ fifo 195 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SWPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* SWPR1 */ fifo 196 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_WPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* WPR1 */ fifo 197 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_EARV1),smc->hw.fp.fifo.tx_s_start-1) ; /* EARV1 */ fifo 202 drivers/net/fddi/skfp/fplustm.c if (smc->hw.fp.fifo.rx2_fifo_size) { fifo 203 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_RPR2),smc->hw.fp.fifo.rx2_fifo_start) ; fifo 204 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SWPR2),smc->hw.fp.fifo.rx2_fifo_start) ; fifo 205 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_WPR2),smc->hw.fp.fifo.rx2_fifo_start) ; fifo 206 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_EARV2),smc->hw.fp.fifo.rbc_ram_end-1) ; fifo 209 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_RPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; fifo 210 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SWPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; fifo 211 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_WPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; fifo 212 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_EARV2),smc->hw.fp.fifo.rbc_ram_end-1) ; fifo 226 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_RPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* RPXA0 */ fifo 227 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SWPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* SWPXA0 */ fifo 228 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_WPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* WPXA0 */ fifo 229 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_EAA0),smc->hw.fp.fifo.rx2_fifo_start-1) ; /* EAA0 */ fifo 234 drivers/net/fddi/skfp/fplustm.c if (smc->hw.fp.fifo.tx_s_size) { fifo 235 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_RPXS),smc->hw.fp.fifo.tx_s_start) ; fifo 236 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SWPXS),smc->hw.fp.fifo.tx_s_start) ; fifo 237 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_WPXS),smc->hw.fp.fifo.tx_s_start) ; fifo 238 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_EAS),smc->hw.fp.fifo.tx_a0_start-1) ; fifo 241 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_RPXS),smc->hw.fp.fifo.tx_a0_start-1) ; fifo 242 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SWPXS),smc->hw.fp.fifo.tx_a0_start-1) ; fifo 243 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_WPXS),smc->hw.fp.fifo.tx_a0_start-1) ; fifo 244 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_EAS),smc->hw.fp.fifo.tx_a0_start-1) ; fifo 258 drivers/net/fddi/skfp/fplustm.c rbc_ram_addr = smc->hw.fp.fifo.rx2_fifo_start - 1 ; fifo 457 drivers/net/fddi/skfp/fplustm.c MARW(smc->hw.fp.fifo.rbc_ram_start+DBEACON_FRAME_OFF+4) ; fifo 462 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SABC),smc->hw.fp.fifo.rbc_ram_start + DBEACON_FRAME_OFF) ; fifo 490 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rbc_ram_start + CLAIM_FRAME_OFF,len) ; fifo 492 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SACL),smc->hw.fp.fifo.rbc_ram_start + CLAIM_FRAME_OFF) ; fifo 505 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rbc_ram_start + BEACON_FRAME_OFF,len) ; fifo 507 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_SABC),smc->hw.fp.fifo.rbc_ram_start + BEACON_FRAME_OFF) ; fifo 523 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rbc_ram_start + DBEACON_FRAME_OFF,len) ; fifo 526 drivers/net/fddi/skfp/fplustm.c outpw(FM_A(FM_EACB),smc->hw.fp.fifo.rx1_fifo_start-1) ; fifo 1391 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx1_fifo_size = RX_FIFO_SPACE ; fifo 1392 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx2_fifo_size = 0 ; fifo 1397 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx1_fifo_size = RX_LARGE_FIFO ; fifo 1398 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx2_fifo_size = RX_SMALL_FIFO ; fifo 1401 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx1_fifo_size = RX_FIFO_SPACE * fifo 1403 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx2_fifo_size = RX_FIFO_SPACE * fifo 1432 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.fifo_config_mode |= fifo 1437 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.fifo_config_mode &= fifo 1444 drivers/net/fddi/skfp/fplustm.c if (smc->hw.fp.fifo.fifo_config_mode & SYNC_TRAFFIC_ON) { fifo 1445 drivers/net/fddi/skfp/fplustm.c if (smc->hw.fp.fifo.fifo_config_mode & SEND_ASYNC_AS_SYNC) { fifo 1446 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_s_size = TX_LARGE_FIFO ; fifo 1447 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_a0_size = TX_SMALL_FIFO ; fifo 1450 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_s_size = TX_MEDIUM_FIFO ; fifo 1451 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_a0_size = TX_MEDIUM_FIFO ; fifo 1455 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_s_size = 0 ; fifo 1456 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_a0_size = TX_FIFO_SPACE ; fifo 1459 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx1_fifo_start = smc->hw.fp.fifo.rbc_ram_start + fifo 1461 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_s_start = smc->hw.fp.fifo.rx1_fifo_start + fifo 1462 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx1_fifo_size ; fifo 1463 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_a0_start = smc->hw.fp.fifo.tx_s_start + fifo 1464 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_s_size ; fifo 1465 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx2_fifo_start = smc->hw.fp.fifo.tx_a0_start + fifo 1466 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_a0_size ; fifo 1468 drivers/net/fddi/skfp/fplustm.c DB_SMT("FIFO split: mode = %x", smc->hw.fp.fifo.fifo_config_mode); fifo 1470 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rbc_ram_start, smc->hw.fp.fifo.rbc_ram_end); fifo 1472 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.rx1_fifo_start, smc->hw.fp.fifo.tx_s_start); fifo 1474 drivers/net/fddi/skfp/fplustm.c smc->hw.fp.fifo.tx_a0_start, smc->hw.fp.fifo.rx2_fifo_start); fifo 1484 drivers/net/fddi/skfp/fplustm.c if (!smc->hw.fp.fifo.tx_s_size && smc->mib.a[PATH0].fddiPATHSbaPayload){ fifo 197 drivers/net/fddi/skfp/h/fplustm.h struct s_smt_fifo_conf fifo ; fifo 929 drivers/net/ieee802154/cc2520.c priv->fifo_pin = pdata->fifo; fifo 933 drivers/net/ieee802154/cc2520.c pdata->fifo = of_get_named_gpio(np, "fifo-gpio", 0); fifo 934 drivers/net/ieee802154/cc2520.c priv->fifo_pin = pdata->fifo; fifo 1107 drivers/net/ieee802154/cc2520.c if (!gpio_is_valid(pdata.fifo)) { fifo 1113 drivers/net/ieee802154/cc2520.c ret = devm_gpio_request_one(&spi->dev, pdata.fifo, fifo 25 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c #define BRCMF_FLOWRING_HASH_AP(da, fifo, ifidx) (da[5] * 2 + fifo + ifidx * 16) fifo 26 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c #define BRCMF_FLOWRING_HASH_STA(fifo, ifidx) (fifo + ifidx * 16) fifo 67 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c u8 fifo; fifo 70 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c fifo = brcmf_flowring_prio2fifo[prio]; fifo 75 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c fifo = 0; fifo 81 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : fifo 82 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c BRCMF_FLOWRING_HASH_AP(mac, fifo, ifidx); fifo 88 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c (hash[hash_idx].fifo == fifo) && fifo 111 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c u8 fifo; fifo 115 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c fifo = brcmf_flowring_prio2fifo[prio]; fifo 120 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c fifo = 0; fifo 126 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : fifo 127 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c BRCMF_FLOWRING_HASH_AP(mac, fifo, ifidx); fifo 153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c hash[hash_idx].fifo = fifo; fifo 174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c return flow->hash[ring->hash_id].fifo; fifo 15 drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.h u8 fifo; fifo 791 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c int fifo) fifo 811 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c return closed || !(entry->ac_bitmap & BIT(fifo)); fifo 929 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c int fifo, bool send_immediately) fifo 939 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (brcmu_pktq_mlen(&entry->psq, 3 << (fifo * 2)) == 0) fifo 940 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c entry->traffic_pending_bmp &= ~NBITVAL(fifo); fifo 942 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c entry->traffic_pending_bmp |= NBITVAL(fifo); fifo 1201 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c u8 fifo, u8 credits) fifo 1210 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_credit_map |= 1 << fifo; fifo 1212 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if ((fifo == BRCMF_FWS_FIFO_AC_BE) && fifo 1233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_credit[fifo] += credits; fifo 1234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (fws->fifo_credit[fifo] > fws->init_fifo_credit[fifo]) fifo 1235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_credit[fifo] = fws->init_fifo_credit[fifo]; fifo 1248 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c enum brcmf_fws_skb_state state, int fifo, fifo 1252 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c int prec = 2 * fifo; fifo 1268 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_dbg(DATA, "enter: fifo %d skb %p\n", fifo, p); fifo 1326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_delay_map |= 1 << fifo; fifo 1327 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_enqpkt[fifo]++; fifo 1336 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_tim_update(fws, entry, fifo, true); fifo 1342 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c static struct sk_buff *brcmf_fws_deq(struct brcmf_fws_info *fws, int fifo) fifo 1355 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c node_pos = fws->deq_node_pos[fifo]; fifo 1360 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_macdesc_closed(fws, entry, fifo)) fifo 1367 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c p = brcmu_pktq_mdeq(&entry->psq, pmsk << (fifo * 2), &prec_out); fifo 1374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c 1 << (fifo * 2), &prec_out); fifo 1383 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->deq_node_pos[fifo] = (node_pos + i + 1) % num_nodes; fifo 1392 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_tim_update(fws, entry, fifo, false); fifo 1398 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_enqpkt[fifo]--; fifo 1399 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (fws->fifo_enqpkt[fifo] == 0) fifo 1400 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_delay_map &= ~(1 << fifo); fifo 1405 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_dbg(DATA, "exit: fifo %d skb %p\n", fifo, p); fifo 1409 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c static int brcmf_fws_txstatus_suppressed(struct brcmf_fws_info *fws, int fifo, fifo 1437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ret = brcmf_fws_enq(fws, BRCMF_FWS_SKBSTATE_SUPPRESSED, fifo, skb); fifo 1455 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c u32 fifo; fifo 1504 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fifo = brcmf_skb_htod_tag_get_field(skb, FIFO); fifo 1508 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_return_credits(fws, fifo, 1); fifo 1519 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ret = brcmf_fws_txstatus_suppressed(fws, fifo, skb, fifo 1972 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c static u8 brcmf_fws_precommit_skb(struct brcmf_fws_info *fws, int fifo, fifo 1994 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c struct sk_buff *skb, int fifo) fifo 2004 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c qidx = 2 * fifo; fifo 2025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_return_credits(fws, fifo, 1); fifo 2054 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c static int brcmf_fws_commit_skb(struct brcmf_fws_info *fws, int fifo, fifo 2067 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c data_offset = brcmf_fws_precommit_skb(fws, fifo, skb); fifo 2086 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->stats.send_pkts[fifo]++; fifo 2088 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->stats.requested_sent[fifo]++; fifo 2093 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_rollback_toq(fws, skb, fifo); fifo 2098 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c int fifo) fifo 2107 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_skb_htod_tag_set_field(p, FREERUN, skcb->mac->seq[fifo]); fifo 2108 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_skb_htod_tag_set_field(p, FIFO, fifo); fifo 2111 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c skcb->mac->seq[fifo]++; fifo 2123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c int fifo = BRCMF_FWS_FIFO_BCMC; fifo 2134 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fifo = brcmf_fws_prio2fifo[skb->priority]; fifo 2137 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (fifo != BRCMF_FWS_FIFO_AC_BE && fifo < BRCMF_FWS_FIFO_BCMC) fifo 2143 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c eh->h_dest, multicast, fifo); fifo 2144 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (!brcmf_fws_assign_htod(fws, skb, fifo)) { fifo 2145 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_enq(fws, BRCMF_FWS_SKBSTATE_DELAYED, fifo, skb); fifo 2208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c int fifo; fifo 2217 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c for (fifo = BRCMF_FWS_FIFO_BCMC; fifo >= 0 && !fws->bus_flow_blocked; fifo 2218 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fifo--) { fifo 2220 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c while ((skb = brcmf_fws_deq(fws, fifo)) != NULL) { fifo 2240 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c while ((fws->fifo_credit[fifo] > 0) || fifo 2242 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c (fifo == BRCMF_FWS_FIFO_BCMC))) { fifo 2243 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c skb = brcmf_fws_deq(fws, fifo); fifo 2246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c fws->fifo_credit[fifo]--; fifo 2247 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (brcmf_fws_commit_skb(fws, fifo, skb)) fifo 2252 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if ((fifo == BRCMF_FWS_FIFO_AC_BE) && fifo 2253 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c (fws->fifo_credit[fifo] <= 0) && fifo 2256 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c skb = brcmf_fws_deq(fws, fifo); fifo 2258 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_fws_return_credits(fws, fifo, 1); fifo 2261 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (brcmf_fws_commit_skb(fws, fifo, skb)) fifo 1483 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c hash->ifidx, hash->fifo, hash->mac); fifo 208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c struct brcms_fifo_info *fifo; fifo 211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo = (ampdu->fifo_tb + j); fifo 212 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->ampdu_pld_size = 0; fifo 214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->mcs2ampdu_table[i] = 255; fifo 215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->dmaxferrate = 0; fifo 216 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->accum_txampdu = 0; fifo 217 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->prev_txfunfl = 0; fifo 218 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->accum_txfunfl = 0; fifo 323 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c struct brcms_fifo_info *fifo = (ampdu->fifo_tb + f); fifo 327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c max_mpdu = min_t(u8, fifo->mcs2ampdu_table[FFPLD_MAX_MCS], fifo 332 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c (max_mpdu * FFPLD_MPDU_SIZE - fifo->ampdu_pld_size)) fifo 334 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->dmaxferrate = dma_rate; fifo 342 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c tmp = ((fifo->ampdu_pld_size * phy_rate) / fifo 345 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->mcs2ampdu_table[i] = (u8) tmp; fifo 365 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c struct brcms_fifo_info *fifo = (ampdu->fifo_tb + fid); fifo 373 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c new_txunfl = (u16) (cur_txunfl - fifo->prev_txfunfl); fifo 379 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->prev_txfunfl = cur_txunfl; fifo 392 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->accum_txfunfl += new_txunfl; fifo 395 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (fifo->accum_txfunfl < 10) fifo 399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c current_ampdu_cnt, fifo->accum_txfunfl); fifo 410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c txunfl_ratio = current_ampdu_cnt / fifo->accum_txfunfl; fifo 414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->accum_txfunfl = 0; fifo 418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c max_mpdu = min_t(u8, fifo->mcs2ampdu_table[FFPLD_MAX_MCS], fifo 425 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (fifo->ampdu_pld_size >= max_mpdu * FFPLD_MPDU_SIZE) { fifo 426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->accum_txfunfl = 0; fifo 430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (fifo->ampdu_pld_size < max_pld_size) { fifo 433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->ampdu_pld_size += FFPLD_PLD_INCR; fifo 434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (fifo->ampdu_pld_size > max_pld_size) fifo 435 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->ampdu_pld_size = max_pld_size; fifo 447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->dmaxferrate = fifo 449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c (max_mpdu * FFPLD_MPDU_SIZE - fifo->ampdu_pld_size)) fifo 455 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->dmaxferrate, fifo->ampdu_pld_size); fifo 459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (fifo->mcs2ampdu_table[FFPLD_MAX_MCS] > 1) { fifo 460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (fifo->mcs2ampdu_table[FFPLD_MAX_MCS] == 255) fifo 461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->mcs2ampdu_table[FFPLD_MAX_MCS] = fifo 464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->mcs2ampdu_table[FFPLD_MAX_MCS] -= 1; fifo 473 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo->accum_txfunfl = 0; fifo 583 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c uint fifo = le16_to_cpu(txh->TxFrameID) & TXFID_QUEUE_MASK; fifo 584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c struct brcms_fifo_info *f = &du->fifo_tb[fifo]; fifo 637 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c uint fifo; fifo 663 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo = le16_to_cpu(txh->TxFrameID) & TXFID_QUEUE_MASK; fifo 664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c f = &du->fifo_tb[fifo]; fifo 350 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static u8 brcms_fifo_to_ac(u8 fifo) fifo 352 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (fifo >= ARRAY_SIZE(fifo_to_ac_mapping)) fifo 354 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c return fifo_to_ac_mapping[fifo]; fifo 1989 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static bool wlc_dma_rxreset(struct brcms_hardware *wlc_hw, uint fifo) fifo 1991 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct dma_pub *di = wlc_hw->di[fifo]; fifo 2441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c u8 fifo = 1 << tx_fifo; fifo 2446 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if ((wlc_hw->suspended_fifos & fifo) == fifo) fifo 2454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->suspended_fifos |= fifo; fifo 6853 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c int fifo, ret = -ENOSPC; fifo 6857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c fifo = brcms_ac_to_fifo(skb_get_queue_mapping(skb)); fifo 6858 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c dma = wlc->hw->di[fifo]; fifo 6881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (fifo == TX_BCMC_FIFO) fifo 6893 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c ret = brcms_c_txfifo(wlc, fifo, skb); fifo 6907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint fifo; fifo 6910 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c fifo = brcms_ac_to_fifo(skb_get_queue_mapping(sdu)); fifo 6911 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_d11hdrs_mac80211(wlc, hw, sdu, scb, 0, 1, fifo, 0); fifo 6921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_txfifo(struct brcms_c_info *wlc, uint fifo, struct sk_buff *p) fifo 6923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct dma_pub *dma = wlc->hw->di[fifo]; fifo 6937 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (dma->txavail <= TX_HEADROOM && fifo < TX_BCMC_FIFO && fifo 7518 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c int brcms_b_xmtfifo_sz_get(struct brcms_hardware *wlc_hw, uint fifo, fifo 7521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (fifo >= NFIFO) fifo 7524 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c *blocks = wlc_hw->xmtfifo_sz[fifo]; fifo 7707 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_b_recv(struct brcms_hardware *wlc_hw, uint fifo, bool bound) fifo 7725 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c morepending = dma_rx(wlc_hw->di[fifo], &recv_frames); fifo 7730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c dma_rxfill(wlc_hw->di[fifo]); fifo 620 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h int brcms_c_txfifo(struct brcms_c_info *wlc, uint fifo, struct sk_buff *p); fifo 621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h int brcms_b_xmtfifo_sz_get(struct brcms_hardware *wlc_hw, uint fifo, fifo 686 drivers/net/wireless/intel/iwlwifi/dvm/tx.c int q, fifo; fifo 697 drivers/net/wireless/intel/iwlwifi/dvm/tx.c fifo = ctx->ac_to_fifo[tid_to_ac[tid]]; fifo 699 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_txq_enable(priv->trans, q, fifo, sta_priv->sta_id, tid, fifo 1195 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iter->fifo = -1; fifo 1203 drivers/net/wireless/intel/iwlwifi/fw/dbg.c for (iter->fifo++; iter->fifo < txf_num; iter->fifo++) { fifo 1205 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cfg->lmac[iter->lmac].txfifo_size[iter->fifo]; fifo 1206 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (iter->fifo_size && (lmac_bitmap & BIT(iter->fifo))) fifo 1216 drivers/net/wireless/intel/iwlwifi/fw/dbg.c for (iter->fifo++; iter->fifo < int_txf_num + txf_num; iter->fifo++) { fifo 1218 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cfg->internal_txfifo_size[iter->fifo - txf_num]; fifo 1219 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (iter->fifo_size && (lmac_bitmap & BIT(iter->fifo))) fifo 1246 drivers/net/wireless/intel/iwlwifi/fw/dbg.c range->fifo_hdr.fifo_num = cpu_to_le32(iter->fifo); fifo 1250 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_prph_no_grab(fwrt->trans, TXF_LARC_NUM + offs, iter->fifo); fifo 101 drivers/net/wireless/intel/iwlwifi/fw/runtime.h int fifo; fifo 441 drivers/net/wireless/intel/iwlwifi/iwl-trans.h u8 fifo; fifo 1055 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int fifo, int sta_id, int tid, fifo 1060 drivers/net/wireless/intel/iwlwifi/iwl-trans.h .fifo = fifo, fifo 1071 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void iwl_trans_ac_txq_enable(struct iwl_trans *trans, int queue, int fifo, fifo 1075 drivers/net/wireless/intel/iwlwifi/iwl-trans.h .fifo = fifo, fifo 1958 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h int iwl_mvm_reconfig_scd(struct iwl_mvm *mvm, int queue, int fifo, int sta_id, fifo 861 drivers/net/wireless/intel/iwlwifi/mvm/sta.c .tx_fifo = cfg->fifo, fifo 880 drivers/net/wireless/intel/iwlwifi/mvm/sta.c "Failed to configure queue %d on FIFO %d\n", queue, cfg->fifo); fifo 1206 drivers/net/wireless/intel/iwlwifi/mvm/sta.c .fifo = iwl_mvm_mac_ac_to_tx_fifo(mvm, ac), fifo 1510 drivers/net/wireless/intel/iwlwifi/mvm/sta.c cfg.fifo = iwl_mvm_mac_ac_to_tx_fifo(mvm, ac); fifo 1966 drivers/net/wireless/intel/iwlwifi/mvm/sta.c u8 sta_id, u8 fifo) fifo 1972 drivers/net/wireless/intel/iwlwifi/mvm/sta.c .fifo = fifo, fifo 1999 drivers/net/wireless/intel/iwlwifi/mvm/sta.c u16 *queue, int fifo) fifo 2005 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_mvm_enable_aux_snif_queue(mvm, *queue, sta->sta_id, fifo); fifo 2114 drivers/net/wireless/intel/iwlwifi/mvm/sta.c .fifo = IWL_MVM_TX_FIFO_VO, fifo 2299 drivers/net/wireless/intel/iwlwifi/mvm/sta.c .fifo = vif->type == NL80211_IFTYPE_AP ? fifo 2925 drivers/net/wireless/intel/iwlwifi/mvm/sta.c cfg.fifo = iwl_mvm_ac_to_tx_fifo[tid_to_mac80211_ac[tid]]; fifo 2950 drivers/net/wireless/intel/iwlwifi/mvm/sta.c ret = iwl_mvm_reconfig_scd(mvm, queue, cfg.fifo, fifo 609 drivers/net/wireless/intel/iwlwifi/mvm/utils.c int iwl_mvm_reconfig_scd(struct iwl_mvm *mvm, int queue, int fifo, int sta_id, fifo 618 drivers/net/wireless/intel/iwlwifi/mvm/utils.c .tx_fifo = fifo, fifo 636 drivers/net/wireless/intel/iwlwifi/mvm/utils.c queue, fifo, ret); fifo 2302 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u8 fifo; fifo 2312 drivers/net/wireless/intel/iwlwifi/pcie/trans.c fifo = (status >> SCD_QUEUE_STTS_REG_POS_TXF) & 0x7; fifo 2317 drivers/net/wireless/intel/iwlwifi/pcie/trans.c txq_id, active ? "" : "in", fifo, fifo 2324 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_direct32(trans, FH_TX_TRB_REG(fifo))); fifo 1362 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int fifo = -1; fifo 1371 drivers/net/wireless/intel/iwlwifi/pcie/tx.c fifo = cfg->fifo; fifo 1447 drivers/net/wireless/intel/iwlwifi/pcie/tx.c (cfg->fifo << SCD_QUEUE_STTS_REG_POS_TXF) | fifo 1458 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq_id, fifo, ssn & 0xff); fifo 165 drivers/net/wireless/realtek/rtw88/fw.c struct rtw_fifo_conf *fifo = &rtwdev->fifo; fifo 174 drivers/net/wireless/realtek/rtw88/fw.c fifo->rsvd_fw_txbuf_addr - fifo 175 drivers/net/wireless/realtek/rtw88/fw.c fifo->rsvd_boundary); fifo 581 drivers/net/wireless/realtek/rtw88/fw.c rsvd_pg_head = rtwdev->fifo.rsvd_boundary; fifo 598 drivers/net/wireless/realtek/rtw88/fw.c if (pg_num > rtwdev->fifo.rsvd_drv_pg_num) fifo 601 drivers/net/wireless/realtek/rtw88/fw.c pg_addr = rtwdev->fifo.rsvd_drv_addr; fifo 658 drivers/net/wireless/realtek/rtw88/fw.c if (total_page > rtwdev->fifo.rsvd_drv_pg_num) { fifo 758 drivers/net/wireless/realtek/rtw88/fw.c struct rtw_fifo_conf *fifo = &rtwdev->fifo; fifo 770 drivers/net/wireless/realtek/rtw88/fw.c offset += fifo->rsvd_boundary << TX_PAGE_SIZE_SHIFT; fifo 763 drivers/net/wireless/realtek/rtw88/mac.c struct rtw_fifo_conf *fifo = &rtwdev->fifo; fifo 769 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_drv_pg_num = 8; fifo 770 drivers/net/wireless/realtek/rtw88/mac.c fifo->txff_pg_num = chip->txff_size >> 7; fifo 771 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_pg_num = fifo->rsvd_drv_pg_num + fifo 779 drivers/net/wireless/realtek/rtw88/mac.c if (fifo->rsvd_pg_num > fifo->txff_pg_num) fifo 782 drivers/net/wireless/realtek/rtw88/mac.c fifo->acq_pg_num = fifo->txff_pg_num - fifo->rsvd_pg_num; fifo 783 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_boundary = fifo->txff_pg_num - fifo->rsvd_pg_num; fifo 785 drivers/net/wireless/realtek/rtw88/mac.c cur_pg_addr = fifo->txff_pg_num; fifo 787 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_csibuf_addr = cur_pg_addr; fifo 789 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_fw_txbuf_addr = cur_pg_addr; fifo 791 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_cpu_instr_addr = cur_pg_addr; fifo 793 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_h2cq_addr = cur_pg_addr; fifo 795 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_h2c_sta_info_addr = cur_pg_addr; fifo 797 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_h2c_info_addr = cur_pg_addr; fifo 798 drivers/net/wireless/realtek/rtw88/mac.c cur_pg_addr -= fifo->rsvd_drv_pg_num; fifo 799 drivers/net/wireless/realtek/rtw88/mac.c fifo->rsvd_drv_addr = cur_pg_addr; fifo 801 drivers/net/wireless/realtek/rtw88/mac.c if (fifo->rsvd_boundary != fifo->rsvd_drv_addr) { fifo 811 drivers/net/wireless/realtek/rtw88/mac.c struct rtw_fifo_conf *fifo = &rtwdev->fifo; fifo 839 drivers/net/wireless/realtek/rtw88/mac.c pubq_num = fifo->acq_pg_num - pg_tbl->hq_num - pg_tbl->lq_num - fifo 848 drivers/net/wireless/realtek/rtw88/mac.c rtw_write16(rtwdev, REG_FIFOPAGE_CTRL_2, fifo->rsvd_boundary); fifo 851 drivers/net/wireless/realtek/rtw88/mac.c rtw_write16(rtwdev, REG_BCNQ_BDNY_V1, fifo->rsvd_boundary); fifo 852 drivers/net/wireless/realtek/rtw88/mac.c rtw_write16(rtwdev, REG_FIFOPAGE_CTRL_2 + 2, fifo->rsvd_boundary); fifo 853 drivers/net/wireless/realtek/rtw88/mac.c rtw_write16(rtwdev, REG_BCNQ1_BDNY_V1, fifo->rsvd_boundary); fifo 867 drivers/net/wireless/realtek/rtw88/mac.c struct rtw_fifo_conf *fifo = &rtwdev->fifo; fifo 875 drivers/net/wireless/realtek/rtw88/mac.c h2cq_addr = fifo->rsvd_h2cq_addr << TX_PAGE_SIZE_SHIFT; fifo 1323 drivers/net/wireless/realtek/rtw88/main.h struct rtw_fifo_conf fifo; fifo 165 drivers/parport/parport_ip32.c void __iomem *fifo; fifo 1401 drivers/parport/parport_ip32.c writeb(*bufp, priv->regs.fifo); fifo 1404 drivers/parport/parport_ip32.c writesb(priv->regs.fifo, bufp, count); fifo 1566 drivers/parport/parport_ip32.c writeb(0x00, priv->regs.fifo); fifo 1894 drivers/parport/parport_ip32.c writeb((u8)i, priv->regs.fifo); fifo 1913 drivers/parport/parport_ip32.c if (readb(priv->regs.fifo) != (u8)i) { fifo 1953 drivers/parport/parport_ip32.c writeb(0xaa, priv->regs.fifo); fifo 2008 drivers/parport/parport_ip32.c .fifo = r_base_hi(0), fifo 478 drivers/parport/parport_pc.c const int fifo = FIFO(port); fifo 545 drivers/parport/parport_pc.c outsb(fifo, bufp, n); fifo 561 drivers/parport/parport_pc.c outb(byte, fifo); fifo 303 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(bank-fifo-full, 0x0b), fifo 306 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(bank-conflict-fifo-issue, 0x0e), fifo 307 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(bank-fifo-issue, 0x0f), fifo 409 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(input-req-async-fifo-stall, 0x12), fifo 410 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(output-req-async-fifo-stall, 0x13), fifo 411 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(output-data-async-fifo-stall, 0x14), fifo 467 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(cswlf-outbound-req-fifo-full, 0x29), fifo 468 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(cswlf-inbound-snoop-fifo-backpressure, 0x2a), fifo 469 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(cswlf-outbound-lack-fifo-full, 0x2b), fifo 470 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(cswlf-inbound-gack-fifo-backpressure, 0x2c), fifo 471 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(cswlf-outbound-data-fifo-full, 0x2d), fifo 472 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(cswlf-inbound-data-fifo-backpressure, 0x2e), fifo 83 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo; fifo 134 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo; fifo 208 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_free_vrings(struct mlxbf_tmfifo *fifo, fifo 230 drivers/platform/mellanox/mlxbf-tmfifo.c static int mlxbf_tmfifo_alloc_vrings(struct mlxbf_tmfifo *fifo, fifo 241 drivers/platform/mellanox/mlxbf-tmfifo.c vring->fifo = fifo; fifo 251 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_free_vrings(fifo, tm_vdev); fifo 264 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_disable_irqs(struct mlxbf_tmfifo *fifo) fifo 269 drivers/platform/mellanox/mlxbf-tmfifo.c irq = fifo->irq_info[i].irq; fifo 270 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->irq_info[i].irq = 0; fifo 280 drivers/platform/mellanox/mlxbf-tmfifo.c if (!test_and_set_bit(irq_info->index, &irq_info->fifo->pend_events)) fifo 281 drivers/platform/mellanox/mlxbf-tmfifo.c schedule_work(&irq_info->fifo->work); fifo 398 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo = container_of(t, struct mlxbf_tmfifo, timer); fifo 401 drivers/platform/mellanox/mlxbf-tmfifo.c rx = !test_and_set_bit(MLXBF_TM_RX_HWM_IRQ, &fifo->pend_events); fifo 402 drivers/platform/mellanox/mlxbf-tmfifo.c tx = !test_and_set_bit(MLXBF_TM_TX_LWM_IRQ, &fifo->pend_events); fifo 405 drivers/platform/mellanox/mlxbf-tmfifo.c schedule_work(&fifo->work); fifo 407 drivers/platform/mellanox/mlxbf-tmfifo.c mod_timer(&fifo->timer, jiffies + MLXBF_TMFIFO_TIMER_INTERVAL); fifo 468 drivers/platform/mellanox/mlxbf-tmfifo.c static int mlxbf_tmfifo_get_rx_avail(struct mlxbf_tmfifo *fifo) fifo 472 drivers/platform/mellanox/mlxbf-tmfifo.c sts = readq(fifo->rx_base + MLXBF_TMFIFO_RX_STS); fifo 477 drivers/platform/mellanox/mlxbf-tmfifo.c static int mlxbf_tmfifo_get_tx_avail(struct mlxbf_tmfifo *fifo, int vdev_id) fifo 485 drivers/platform/mellanox/mlxbf-tmfifo.c tx_reserve = fifo->tx_fifo_size / MLXBF_TMFIFO_RESERVE_RATIO; fifo 489 drivers/platform/mellanox/mlxbf-tmfifo.c sts = readq(fifo->tx_base + MLXBF_TMFIFO_TX_STS); fifo 491 drivers/platform/mellanox/mlxbf-tmfifo.c return fifo->tx_fifo_size - tx_reserve - count; fifo 495 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_console_tx(struct mlxbf_tmfifo *fifo, int avail) fifo 508 drivers/platform/mellanox/mlxbf-tmfifo.c cons = fifo->vdev[VIRTIO_ID_CONSOLE]; fifo 525 drivers/platform/mellanox/mlxbf-tmfifo.c writeq(*(u64 *)&hdr, fifo->tx_base + MLXBF_TMFIFO_TX_DATA); fifo 528 drivers/platform/mellanox/mlxbf-tmfifo.c spin_lock_irqsave(&fifo->spin_lock[0], flags); fifo 542 drivers/platform/mellanox/mlxbf-tmfifo.c writeq(data, fifo->tx_base + MLXBF_TMFIFO_TX_DATA); fifo 555 drivers/platform/mellanox/mlxbf-tmfifo.c spin_unlock_irqrestore(&fifo->spin_lock[0], flags); fifo 564 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo = vring->fifo; fifo 573 drivers/platform/mellanox/mlxbf-tmfifo.c data = readq(fifo->rx_base + MLXBF_TMFIFO_RX_DATA); fifo 595 drivers/platform/mellanox/mlxbf-tmfifo.c writeq(data, fifo->tx_base + MLXBF_TMFIFO_TX_DATA); fifo 609 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo = vring->fifo; fifo 617 drivers/platform/mellanox/mlxbf-tmfifo.c *(u64 *)&hdr = readq(fifo->rx_base + MLXBF_TMFIFO_RX_DATA); fifo 627 drivers/platform/mellanox/mlxbf-tmfifo.c config = &fifo->vdev[vdev_id]->config.net; fifo 641 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_dev2 = fifo->vdev[vdev_id]; fifo 658 drivers/platform/mellanox/mlxbf-tmfifo.c writeq(*(u64 *)&hdr, fifo->tx_base + MLXBF_TMFIFO_TX_DATA); fifo 663 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->vring[is_rx] = vring; fifo 675 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo = vring->fifo; fifo 682 drivers/platform/mellanox/mlxbf-tmfifo.c vdev = &fifo->vdev[vring->vdev_id]->vdev; fifo 731 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->vring[is_rx] = NULL; fifo 734 drivers/platform/mellanox/mlxbf-tmfifo.c spin_lock_irqsave(&fifo->spin_lock[is_rx], flags); fifo 736 drivers/platform/mellanox/mlxbf-tmfifo.c spin_unlock_irqrestore(&fifo->spin_lock[is_rx], flags); fifo 750 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo; fifo 753 drivers/platform/mellanox/mlxbf-tmfifo.c fifo = vring->fifo; fifo 756 drivers/platform/mellanox/mlxbf-tmfifo.c if (!fifo->vdev[devid]) fifo 760 drivers/platform/mellanox/mlxbf-tmfifo.c if (fifo->vring[is_rx] && fifo->vring[is_rx] != vring) fifo 771 drivers/platform/mellanox/mlxbf-tmfifo.c avail = mlxbf_tmfifo_get_rx_avail(fifo); fifo 773 drivers/platform/mellanox/mlxbf-tmfifo.c avail = mlxbf_tmfifo_get_tx_avail(fifo, devid); fifo 780 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_console_tx(fifo, avail); fifo 790 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_work_rxtx(struct mlxbf_tmfifo *fifo, int queue_id, fifo 797 drivers/platform/mellanox/mlxbf-tmfifo.c if (!test_and_clear_bit(irq_id, &fifo->pend_events) || fifo 798 drivers/platform/mellanox/mlxbf-tmfifo.c !fifo->irq_info[irq_id].irq) fifo 802 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev = fifo->vdev[i]; fifo 814 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo; fifo 816 drivers/platform/mellanox/mlxbf-tmfifo.c fifo = container_of(work, struct mlxbf_tmfifo, work); fifo 817 drivers/platform/mellanox/mlxbf-tmfifo.c if (!fifo->is_ready) fifo 820 drivers/platform/mellanox/mlxbf-tmfifo.c mutex_lock(&fifo->lock); fifo 823 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_work_rxtx(fifo, MLXBF_TMFIFO_VRING_TX, fifo 827 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_work_rxtx(fifo, MLXBF_TMFIFO_VRING_RX, fifo 830 drivers/platform/mellanox/mlxbf-tmfifo.c mutex_unlock(&fifo->lock); fifo 838 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo; fifo 841 drivers/platform/mellanox/mlxbf-tmfifo.c fifo = vring->fifo; fifo 855 drivers/platform/mellanox/mlxbf-tmfifo.c spin_lock_irqsave(&fifo->spin_lock[0], flags); fifo 856 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev = fifo->vdev[VIRTIO_ID_CONSOLE]; fifo 858 drivers/platform/mellanox/mlxbf-tmfifo.c spin_unlock_irqrestore(&fifo->spin_lock[0], flags); fifo 860 drivers/platform/mellanox/mlxbf-tmfifo.c &fifo->pend_events)) { fifo 864 drivers/platform/mellanox/mlxbf-tmfifo.c if (test_and_set_bit(MLXBF_TM_RX_HWM_IRQ, &fifo->pend_events)) fifo 868 drivers/platform/mellanox/mlxbf-tmfifo.c schedule_work(&fifo->work); fifo 1039 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo, fifo 1046 drivers/platform/mellanox/mlxbf-tmfifo.c mutex_lock(&fifo->lock); fifo 1048 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev = fifo->vdev[vdev_id]; fifo 1069 drivers/platform/mellanox/mlxbf-tmfifo.c if (mlxbf_tmfifo_alloc_vrings(fifo, tm_vdev)) { fifo 1080 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->vdev[vdev_id] = tm_vdev; fifo 1090 drivers/platform/mellanox/mlxbf-tmfifo.c mutex_unlock(&fifo->lock); fifo 1094 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_free_vrings(fifo, tm_vdev); fifo 1095 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->vdev[vdev_id] = NULL; fifo 1101 drivers/platform/mellanox/mlxbf-tmfifo.c mutex_unlock(&fifo->lock); fifo 1106 drivers/platform/mellanox/mlxbf-tmfifo.c static int mlxbf_tmfifo_delete_vdev(struct mlxbf_tmfifo *fifo, int vdev_id) fifo 1110 drivers/platform/mellanox/mlxbf-tmfifo.c mutex_lock(&fifo->lock); fifo 1113 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev = fifo->vdev[vdev_id]; fifo 1116 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_free_vrings(fifo, tm_vdev); fifo 1117 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->vdev[vdev_id] = NULL; fifo 1120 drivers/platform/mellanox/mlxbf-tmfifo.c mutex_unlock(&fifo->lock); fifo 1141 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_set_threshold(struct mlxbf_tmfifo *fifo) fifo 1146 drivers/platform/mellanox/mlxbf-tmfifo.c ctl = readq(fifo->tx_base + MLXBF_TMFIFO_TX_CTL); fifo 1147 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->tx_fifo_size = fifo 1151 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->tx_fifo_size / 2); fifo 1154 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->tx_fifo_size - 1); fifo 1155 drivers/platform/mellanox/mlxbf-tmfifo.c writeq(ctl, fifo->tx_base + MLXBF_TMFIFO_TX_CTL); fifo 1158 drivers/platform/mellanox/mlxbf-tmfifo.c ctl = readq(fifo->rx_base + MLXBF_TMFIFO_RX_CTL); fifo 1159 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->rx_fifo_size = fifo 1165 drivers/platform/mellanox/mlxbf-tmfifo.c writeq(ctl, fifo->rx_base + MLXBF_TMFIFO_RX_CTL); fifo 1168 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_cleanup(struct mlxbf_tmfifo *fifo) fifo 1172 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->is_ready = false; fifo 1173 drivers/platform/mellanox/mlxbf-tmfifo.c del_timer_sync(&fifo->timer); fifo 1174 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_disable_irqs(fifo); fifo 1175 drivers/platform/mellanox/mlxbf-tmfifo.c cancel_work_sync(&fifo->work); fifo 1177 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_delete_vdev(fifo, i); fifo 1185 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo; fifo 1188 drivers/platform/mellanox/mlxbf-tmfifo.c fifo = devm_kzalloc(dev, sizeof(*fifo), GFP_KERNEL); fifo 1189 drivers/platform/mellanox/mlxbf-tmfifo.c if (!fifo) fifo 1192 drivers/platform/mellanox/mlxbf-tmfifo.c spin_lock_init(&fifo->spin_lock[0]); fifo 1193 drivers/platform/mellanox/mlxbf-tmfifo.c spin_lock_init(&fifo->spin_lock[1]); fifo 1194 drivers/platform/mellanox/mlxbf-tmfifo.c INIT_WORK(&fifo->work, mlxbf_tmfifo_work_handler); fifo 1195 drivers/platform/mellanox/mlxbf-tmfifo.c mutex_init(&fifo->lock); fifo 1198 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->rx_base = devm_platform_ioremap_resource(pdev, 0); fifo 1199 drivers/platform/mellanox/mlxbf-tmfifo.c if (IS_ERR(fifo->rx_base)) fifo 1200 drivers/platform/mellanox/mlxbf-tmfifo.c return PTR_ERR(fifo->rx_base); fifo 1203 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->tx_base = devm_platform_ioremap_resource(pdev, 1); fifo 1204 drivers/platform/mellanox/mlxbf-tmfifo.c if (IS_ERR(fifo->tx_base)) fifo 1205 drivers/platform/mellanox/mlxbf-tmfifo.c return PTR_ERR(fifo->tx_base); fifo 1207 drivers/platform/mellanox/mlxbf-tmfifo.c platform_set_drvdata(pdev, fifo); fifo 1209 drivers/platform/mellanox/mlxbf-tmfifo.c timer_setup(&fifo->timer, mlxbf_tmfifo_timer, 0); fifo 1212 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->irq_info[i].index = i; fifo 1213 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->irq_info[i].fifo = fifo; fifo 1214 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->irq_info[i].irq = platform_get_irq(pdev, i); fifo 1215 drivers/platform/mellanox/mlxbf-tmfifo.c rc = devm_request_irq(dev, fifo->irq_info[i].irq, fifo 1217 drivers/platform/mellanox/mlxbf-tmfifo.c "tmfifo", &fifo->irq_info[i]); fifo 1220 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->irq_info[i].irq = 0; fifo 1225 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_set_threshold(fifo); fifo 1228 drivers/platform/mellanox/mlxbf-tmfifo.c rc = mlxbf_tmfifo_create_vdev(dev, fifo, VIRTIO_ID_CONSOLE, 0, NULL, 0); fifo 1237 drivers/platform/mellanox/mlxbf-tmfifo.c rc = mlxbf_tmfifo_create_vdev(dev, fifo, VIRTIO_ID_NET, fifo 1243 drivers/platform/mellanox/mlxbf-tmfifo.c mod_timer(&fifo->timer, jiffies + MLXBF_TMFIFO_TIMER_INTERVAL); fifo 1245 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->is_ready = true; fifo 1249 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_cleanup(fifo); fifo 1256 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo *fifo = platform_get_drvdata(pdev); fifo 1258 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_cleanup(fifo); fifo 131 drivers/platform/x86/fujitsu-laptop.c struct kfifo fifo; fifo 790 drivers/platform/x86/fujitsu-laptop.c ret = kfifo_alloc(&priv->fifo, RINGBUFFERSIZE * sizeof(int), fifo 845 drivers/platform/x86/fujitsu-laptop.c kfifo_free(&priv->fifo); fifo 856 drivers/platform/x86/fujitsu-laptop.c kfifo_free(&priv->fifo); fifo 866 drivers/platform/x86/fujitsu-laptop.c ret = kfifo_in_locked(&priv->fifo, (unsigned char *)&scancode, fifo 884 drivers/platform/x86/fujitsu-laptop.c ret = kfifo_out_locked(&priv->fifo, (unsigned char *)&scancode, fifo 194 drivers/platform/x86/sony-laptop.c struct kfifo fifo; fifo 359 drivers/platform/x86/sony-laptop.c if (kfifo_out(&sony_laptop_input.fifo, fifo 366 drivers/platform/x86/sony-laptop.c if (kfifo_len(&sony_laptop_input.fifo) != 0) fifo 430 drivers/platform/x86/sony-laptop.c kfifo_in_locked(&sony_laptop_input.fifo, fifo 452 drivers/platform/x86/sony-laptop.c error = kfifo_alloc(&sony_laptop_input.fifo, fifo 526 drivers/platform/x86/sony-laptop.c kfifo_free(&sony_laptop_input.fifo); fifo 547 drivers/platform/x86/sony-laptop.c while (kfifo_out(&sony_laptop_input.fifo, fifo 562 drivers/platform/x86/sony-laptop.c kfifo_free(&sony_laptop_input.fifo); fifo 4047 drivers/platform/x86/sony-laptop.c struct kfifo fifo; fifo 4075 drivers/platform/x86/sony-laptop.c kfifo_reset(&sonypi_compat.fifo); fifo 4088 drivers/platform/x86/sony-laptop.c if ((kfifo_len(&sonypi_compat.fifo) == 0) && fifo 4093 drivers/platform/x86/sony-laptop.c kfifo_len(&sonypi_compat.fifo) != 0); fifo 4098 drivers/platform/x86/sony-laptop.c (kfifo_out_locked(&sonypi_compat.fifo, &c, sizeof(c), fifo 4116 drivers/platform/x86/sony-laptop.c if (kfifo_len(&sonypi_compat.fifo)) fifo 4281 drivers/platform/x86/sony-laptop.c kfifo_in_locked(&sonypi_compat.fifo, (unsigned char *)&event, fifo 4293 drivers/platform/x86/sony-laptop.c kfifo_alloc(&sonypi_compat.fifo, SONY_LAPTOP_BUF_SIZE, GFP_KERNEL); fifo 4315 drivers/platform/x86/sony-laptop.c kfifo_free(&sonypi_compat.fifo); fifo 4322 drivers/platform/x86/sony-laptop.c kfifo_free(&sonypi_compat.fifo); fifo 94 drivers/ptp/ptp_sysfs.c static DEVICE_ATTR(fifo, 0444, extts_fifo_show, NULL); fifo 53 drivers/rpmsg/qcom_glink_rpm.c void __iomem *fifo; fifo 85 drivers/rpmsg/qcom_glink_rpm.c __ioread32_copy(data, pipe->fifo + tail, fifo 90 drivers/rpmsg/qcom_glink_rpm.c __ioread32_copy(data + len, pipe->fifo, fifo 133 drivers/rpmsg/qcom_glink_rpm.c __iowrite32_copy(pipe->fifo + head, data, fifo 138 drivers/rpmsg/qcom_glink_rpm.c __iowrite32_copy(pipe->fifo, data + len, fifo 232 drivers/rpmsg/qcom_glink_rpm.c rx->fifo = msg_ram + offset + 2 * sizeof(u32); fifo 239 drivers/rpmsg/qcom_glink_rpm.c tx->fifo = msg_ram + offset + 2 * sizeof(u32); fifo 244 drivers/rpmsg/qcom_glink_rpm.c if (!rx->fifo || !tx->fifo) { fifo 42 drivers/rpmsg/qcom_glink_smem.c void *fifo; fifo 53 drivers/rpmsg/qcom_glink_smem.c void *fifo; fifo 57 drivers/rpmsg/qcom_glink_smem.c if (!pipe->fifo) { fifo 58 drivers/rpmsg/qcom_glink_smem.c fifo = qcom_smem_get(pipe->remote_pid, fifo 60 drivers/rpmsg/qcom_glink_smem.c if (IS_ERR(fifo)) { fifo 62 drivers/rpmsg/qcom_glink_smem.c PTR_ERR(fifo)); fifo 66 drivers/rpmsg/qcom_glink_smem.c pipe->fifo = fifo; fifo 93 drivers/rpmsg/qcom_glink_smem.c memcpy_fromio(data, pipe->fifo + tail, len); fifo 96 drivers/rpmsg/qcom_glink_smem.c memcpy_fromio(data + len, pipe->fifo, (count - len)); fifo 145 drivers/rpmsg/qcom_glink_smem.c memcpy(pipe->fifo + head, data, len); fifo 148 drivers/rpmsg/qcom_glink_smem.c memcpy(pipe->fifo, data + len, count - len); fifo 259 drivers/rpmsg/qcom_glink_smem.c tx_pipe->fifo = qcom_smem_get(remote_pid, SMEM_GLINK_NATIVE_XPRT_FIFO_0, fifo 261 drivers/rpmsg/qcom_glink_smem.c if (IS_ERR(tx_pipe->fifo)) { fifo 263 drivers/rpmsg/qcom_glink_smem.c ret = PTR_ERR(tx_pipe->fifo); fifo 1163 drivers/scsi/aic7xxx/aic79xx_core.c ahd_clear_fifo(struct ahd_softc *ahd, u_int fifo) fifo 1169 drivers/scsi/aic7xxx/aic79xx_core.c printk("%s: Clearing FIFO %d\n", ahd_name(ahd), fifo); fifo 1172 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_modes(ahd, fifo, fifo); fifo 8665 drivers/scsi/aic7xxx/aic79xx_core.c u_int fifo; fifo 8716 drivers/scsi/aic7xxx/aic79xx_core.c next_fifo = fifo = ahd_inb(ahd, DFFSTAT) & CURRFIFO; fifo 8719 drivers/scsi/aic7xxx/aic79xx_core.c next_fifo = fifo = 0; fifo 8732 drivers/scsi/aic7xxx/aic79xx_core.c } while (next_fifo != fifo); fifo 419 drivers/scsi/arm/fas216.c if (pos >= msg->fifo) fifo 705 drivers/scsi/arm/fas216.c unsigned long total, residual, fifo; fifo 723 drivers/scsi/arm/fas216.c fifo = fas216_readb(info, REG_CFIS) & CFIS_CF; fifo 727 drivers/scsi/arm/fas216.c total, residual, fifo); fifo 736 drivers/scsi/arm/fas216.c residual += fifo; fifo 840 drivers/scsi/arm/fas216.c unsigned int fifo; fifo 847 drivers/scsi/arm/fas216.c fifo = fas216_readb(info, REG_CFIS) & CFIS_CF; fifo 848 drivers/scsi/arm/fas216.c while (fifo && info->scsi.SCp.ptr) { fifo 851 drivers/scsi/arm/fas216.c fifo--; fifo 1330 drivers/scsi/arm/fas216.c msg->fifo = tot_msglen - (fas216_readb(info, REG_CFIS) & CFIS_CF); fifo 1719 drivers/scsi/arm/fas216.c msg->fifo = tot_msglen - (fas216_readb(info, REG_CFIS) & CFIS_CF); fifo 1739 drivers/scsi/arm/fas216.c msg->fifo = 1; fifo 1885 drivers/scsi/arm/fas216.c msg->fifo = 1; fifo 130 drivers/scsi/arm/msgqueue.c mq->msg.fifo = 0; fifo 15 drivers/scsi/arm/msgqueue.h int fifo; fifo 224 drivers/scsi/esp_scsi.c esp->fifo[idx++] = esp_read8(ESP_FDATA); fifo 225 drivers/scsi/esp_scsi.c esp->fifo[idx++] = esp_read8(ESP_FDATA); fifo 229 drivers/scsi/esp_scsi.c esp->fifo[idx++] = esp_read8(ESP_FDATA); fifo 1155 drivers/scsi/esp_scsi.c target = esp->fifo[0]; fifo 1156 drivers/scsi/esp_scsi.c lun = esp->fifo[1] & 0x7; fifo 1979 drivers/scsi/esp_scsi.c val = esp->fifo[0]; fifo 454 drivers/scsi/esp_scsi.h u8 fifo[16]; fifo 174 drivers/scsi/mac53c94.c writeb(cmd->cmnd[i], ®s->fifo); fifo 327 drivers/scsi/mac53c94.c cmd->SCp.Status = readb(®s->fifo); fifo 328 drivers/scsi/mac53c94.c cmd->SCp.Message = readb(®s->fifo); fifo 20 drivers/scsi/mac53c94.h unsigned char fifo; fifo 319 drivers/scsi/mesh.c printk(KERN_DEBUG " fifo data=%.2x\n",in_8(&mr->fifo)); fifo 754 drivers/scsi/mesh.c out_8(&mr->fifo, ms->msgout[i]); fifo 775 drivers/scsi/mesh.c out_8(&mr->fifo, cmd->cmnd[i]); fifo 780 drivers/scsi/mesh.c out_8(&mr->fifo, 0); fifo 834 drivers/scsi/mesh.c ms->msgin[i++] = in_8(&mr->fifo); fifo 934 drivers/scsi/mesh.c b = in_8(&mr->fifo); fifo 1378 drivers/scsi/mesh.c out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); fifo 1524 drivers/scsi/mesh.c out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); fifo 1600 drivers/scsi/mesh.c cmd->SCp.Status = mr->fifo; fifo 20 drivers/scsi/mesh.h unsigned char fifo; fifo 372 drivers/scsi/sun3_scsi.c unsigned short fifo; fifo 380 drivers/scsi/sun3_scsi.c fifo = dregs->fifo_count; fifo 382 drivers/scsi/sun3_scsi.c if ((fifo > 0) && (fifo < sun3_dma_orig_count)) fifo 383 drivers/scsi/sun3_scsi.c fifo++; fifo 386 drivers/scsi/sun3_scsi.c last_residual = fifo; fifo 393 drivers/scsi/sun3_scsi.c vaddr += (sun3_dma_orig_count - fifo); fifo 434 drivers/scsi/sun3_scsi.c fifo = dregs->fifo_count; fifo 435 drivers/scsi/sun3_scsi.c last_residual = fifo; fifo 438 drivers/scsi/sun3_scsi.c if((!write_flag) && (count - fifo) == 2) { fifo 445 drivers/scsi/sun3_scsi.c vaddr += (sun3_dma_orig_count - fifo); fifo 62 drivers/soc/aspeed/aspeed-lpc-snoop.c struct kfifo fifo; fifo 87 drivers/soc/aspeed/aspeed-lpc-snoop.c if (kfifo_is_empty(&chan->fifo)) { fifo 91 drivers/soc/aspeed/aspeed-lpc-snoop.c !kfifo_is_empty(&chan->fifo)); fifo 95 drivers/soc/aspeed/aspeed-lpc-snoop.c ret = kfifo_to_user(&chan->fifo, buffer, count, &copied); fifo 106 drivers/soc/aspeed/aspeed-lpc-snoop.c return !kfifo_is_empty(&chan->fifo) ? EPOLLIN : 0; fifo 119 drivers/soc/aspeed/aspeed-lpc-snoop.c if (!kfifo_initialized(&chan->fifo)) fifo 121 drivers/soc/aspeed/aspeed-lpc-snoop.c if (kfifo_is_full(&chan->fifo)) fifo 122 drivers/soc/aspeed/aspeed-lpc-snoop.c kfifo_skip(&chan->fifo); fifo 123 drivers/soc/aspeed/aspeed-lpc-snoop.c kfifo_put(&chan->fifo, val); fifo 193 drivers/soc/aspeed/aspeed-lpc-snoop.c rc = kfifo_alloc(&lpc_snoop->chan[channel].fifo, fifo 253 drivers/soc/aspeed/aspeed-lpc-snoop.c kfifo_free(&lpc_snoop->chan[channel].fifo); fifo 106 drivers/spi/spi-bcm63xx-hsspi.c u8 __iomem *fifo; fifo 191 drivers/spi/spi-bcm63xx-hsspi.c memcpy_toio(bs->fifo + HSSPI_OPCODE_LEN, tx, curr_step); fifo 195 drivers/spi/spi-bcm63xx-hsspi.c __raw_writew(opcode | curr_step, bs->fifo); fifo 213 drivers/spi/spi-bcm63xx-hsspi.c memcpy_fromio(rx, bs->fifo, curr_step); fifo 388 drivers/spi/spi-bcm63xx-hsspi.c bs->fifo = (u8 __iomem *)(bs->regs + HSSPI_FIFO_REG(0)); fifo 460 drivers/spi/spi-dw.c u32 fifo; fifo 462 drivers/spi/spi-dw.c for (fifo = 1; fifo < 256; fifo++) { fifo 463 drivers/spi/spi-dw.c dw_writel(dws, DW_SPI_TXFLTR, fifo); fifo 464 drivers/spi/spi-dw.c if (fifo != dw_readl(dws, DW_SPI_TXFLTR)) fifo 469 drivers/spi/spi-dw.c dws->fifo_len = (fifo == 1) ? 0 : fifo; fifo 60 drivers/spi/spi-mpc512x-psc.c struct mpc512x_psc_fifo __iomem *fifo; fifo 153 drivers/spi/spi-mpc512x-psc.c struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; fifo 173 drivers/spi/spi-mpc512x-psc.c fifosz = MPC512x_PSC_FIFO_SZ(in_be32(&fifo->txsz)); fifo 175 drivers/spi/spi-mpc512x-psc.c fifosz = MPC512x_PSC_FIFO_SZ(in_be32(&fifo->rxsz)); fifo 176 drivers/spi/spi-mpc512x-psc.c fifosz -= in_be32(&fifo->rxcnt) + 1; fifo 184 drivers/spi/spi-mpc512x-psc.c setbits32(&fifo->txcmd, fifo 186 drivers/spi/spi-mpc512x-psc.c out_8(&fifo->txdata_8, data); fifo 192 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->txisr, MPC512x_PSC_FIFO_EMPTY); fifo 193 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->tximr, MPC512x_PSC_FIFO_EMPTY); fifo 216 drivers/spi/spi-mpc512x-psc.c fifosz = in_be32(&fifo->rxcnt); fifo 219 drivers/spi/spi-mpc512x-psc.c data = in_8(&fifo->rxdata_8); fifo 269 drivers/spi/spi-mpc512x-psc.c rxcount = in_be32(&fifo->rxcnt); fifo 281 drivers/spi/spi-mpc512x-psc.c while (in_be32(&fifo->rxcnt)) fifo 282 drivers/spi/spi-mpc512x-psc.c in_8(&fifo->rxdata_8); fifo 353 drivers/spi/spi-mpc512x-psc.c struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; fifo 359 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->tximr, 0); fifo 408 drivers/spi/spi-mpc512x-psc.c struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; fifo 423 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->tximr, 0); fifo 424 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->rximr, 0); fifo 450 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->rxalarm, 0xfff); fifo 451 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->txalarm, 0); fifo 454 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->rxcmd, fifo 456 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->txcmd, fifo 467 drivers/spi/spi-mpc512x-psc.c struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; fifo 470 drivers/spi/spi-mpc512x-psc.c if (in_be32(&fifo->txisr) & fifo 471 drivers/spi/spi-mpc512x-psc.c in_be32(&fifo->tximr) & MPC512x_PSC_FIFO_EMPTY) { fifo 472 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->txisr, MPC512x_PSC_FIFO_EMPTY); fifo 473 drivers/spi/spi-mpc512x-psc.c out_be32(&fifo->tximr, 0); fifo 527 drivers/spi/spi-mpc512x-psc.c mps->fifo = fifo 36 drivers/spi/spi-mpc52xx-psc.c struct mpc52xx_psc_fifo __iomem *fifo; fifo 131 drivers/spi/spi-mpc52xx-psc.c struct mpc52xx_psc_fifo __iomem *fifo = mps->fifo; fifo 178 drivers/spi/spi-mpc52xx-psc.c out_be16(&fifo->rfalarm, rfalarm); fifo 182 drivers/spi/spi-mpc52xx-psc.c recv_at_once = in_be16(&fifo->rfnum); fifo 311 drivers/spi/spi-mpc52xx-psc.c struct mpc52xx_psc_fifo __iomem *fifo = mps->fifo; fifo 329 drivers/spi/spi-mpc52xx-psc.c out_8(&fifo->rfcntl, 0); fifo 405 drivers/spi/spi-mpc52xx-psc.c mps->fifo = ((void __iomem *)mps->psc) + sizeof(struct mpc52xx_psc); fifo 207 drivers/spi/spi-rockchip.c u32 fifo; fifo 209 drivers/spi/spi-rockchip.c for (fifo = 2; fifo < 32; fifo++) { fifo 210 drivers/spi/spi-rockchip.c writel_relaxed(fifo, rs->regs + ROCKCHIP_SPI_TXFTLR); fifo 211 drivers/spi/spi-rockchip.c if (fifo != readl_relaxed(rs->regs + ROCKCHIP_SPI_TXFTLR)) fifo 217 drivers/spi/spi-rockchip.c return (fifo == 31) ? 0 : fifo; fifo 157 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = dev_get_drvdata(dev); fifo 165 drivers/staging/axis-fifo/axis-fifo.c iowrite32(tmp, fifo->base_addr + addr_offset); fifo 173 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = dev_get_drvdata(dev); fifo 178 drivers/staging/axis-fifo/axis-fifo.c read_val = ioread32(fifo->base_addr + addr_offset); fifo 328 drivers/staging/axis-fifo/axis-fifo.c static void reset_ip_core(struct axis_fifo *fifo) fifo 330 drivers/staging/axis-fifo/axis-fifo.c iowrite32(XLLF_SRR_RESET_MASK, fifo->base_addr + XLLF_SRR_OFFSET); fifo 331 drivers/staging/axis-fifo/axis-fifo.c iowrite32(XLLF_TDFR_RESET_MASK, fifo->base_addr + XLLF_TDFR_OFFSET); fifo 332 drivers/staging/axis-fifo/axis-fifo.c iowrite32(XLLF_RDFR_RESET_MASK, fifo->base_addr + XLLF_RDFR_OFFSET); fifo 336 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_IER_OFFSET); fifo 337 drivers/staging/axis-fifo/axis-fifo.c iowrite32(XLLF_INT_ALL_MASK, fifo->base_addr + XLLF_ISR_OFFSET); fifo 344 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = (struct axis_fifo *)f->private_data; fifo 353 drivers/staging/axis-fifo/axis-fifo.c if (fifo->read_flags & O_NONBLOCK) { fifo 357 drivers/staging/axis-fifo/axis-fifo.c if (!ioread32(fifo->base_addr + XLLF_RDFO_OFFSET)) fifo 364 drivers/staging/axis-fifo/axis-fifo.c spin_lock_irq(&fifo->read_queue_lock); fifo 366 drivers/staging/axis-fifo/axis-fifo.c (fifo->read_queue, fifo 367 drivers/staging/axis-fifo/axis-fifo.c ioread32(fifo->base_addr + XLLF_RDFO_OFFSET), fifo 368 drivers/staging/axis-fifo/axis-fifo.c fifo->read_queue_lock, fifo 371 drivers/staging/axis-fifo/axis-fifo.c spin_unlock_irq(&fifo->read_queue_lock); fifo 375 drivers/staging/axis-fifo/axis-fifo.c dev_dbg(fifo->dt_device, "read timeout"); fifo 381 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "wait_event_interruptible_timeout() error in read (ret=%i)\n", fifo 387 drivers/staging/axis-fifo/axis-fifo.c bytes_available = ioread32(fifo->base_addr + XLLF_RLR_OFFSET); fifo 389 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "received a packet of length 0 - fifo core will be reset\n"); fifo 390 drivers/staging/axis-fifo/axis-fifo.c reset_ip_core(fifo); fifo 395 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "user read buffer too small (available bytes=%zu user buffer bytes=%zu) - fifo core will be reset\n", fifo 397 drivers/staging/axis-fifo/axis-fifo.c reset_ip_core(fifo); fifo 405 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "received a packet that isn't word-aligned - fifo core will be reset\n"); fifo 406 drivers/staging/axis-fifo/axis-fifo.c reset_ip_core(fifo); fifo 420 drivers/staging/axis-fifo/axis-fifo.c tmp_buf[i] = ioread32(fifo->base_addr + fifo 426 drivers/staging/axis-fifo/axis-fifo.c reset_ip_core(fifo); fifo 440 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = (struct axis_fifo *)f->private_data; fifo 449 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 457 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 462 drivers/staging/axis-fifo/axis-fifo.c if (words_to_write > fifo->tx_fifo_depth) { fifo 463 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tried to write more words [%u] than slots in the fifo buffer [%u]\n", fifo 464 drivers/staging/axis-fifo/axis-fifo.c words_to_write, fifo->tx_fifo_depth); fifo 468 drivers/staging/axis-fifo/axis-fifo.c if (fifo->write_flags & O_NONBLOCK) { fifo 472 drivers/staging/axis-fifo/axis-fifo.c if (words_to_write > ioread32(fifo->base_addr + fifo 482 drivers/staging/axis-fifo/axis-fifo.c spin_lock_irq(&fifo->write_queue_lock); fifo 484 drivers/staging/axis-fifo/axis-fifo.c (fifo->write_queue, fifo 485 drivers/staging/axis-fifo/axis-fifo.c ioread32(fifo->base_addr + XLLF_TDFV_OFFSET) fifo 487 drivers/staging/axis-fifo/axis-fifo.c fifo->write_queue_lock, fifo 491 drivers/staging/axis-fifo/axis-fifo.c spin_unlock_irq(&fifo->write_queue_lock); fifo 495 drivers/staging/axis-fifo/axis-fifo.c dev_dbg(fifo->dt_device, "write timeout\n"); fifo 502 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 518 drivers/staging/axis-fifo/axis-fifo.c reset_ip_core(fifo); fifo 523 drivers/staging/axis-fifo/axis-fifo.c iowrite32(tmp_buf[i], fifo->base_addr + fifo 531 drivers/staging/axis-fifo/axis-fifo.c iowrite32(copied * sizeof(u32), fifo->base_addr + XLLF_TLR_OFFSET); fifo 538 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = (struct axis_fifo *)dw; fifo 542 drivers/staging/axis-fifo/axis-fifo.c pending_interrupts = ioread32(fifo->base_addr + fifo 544 drivers/staging/axis-fifo/axis-fifo.c ioread32(fifo->base_addr fifo 550 drivers/staging/axis-fifo/axis-fifo.c wake_up(&fifo->read_queue); fifo 554 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 559 drivers/staging/axis-fifo/axis-fifo.c wake_up(&fifo->write_queue); fifo 562 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 567 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 572 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 577 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 582 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 587 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 592 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 595 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 599 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 602 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 606 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 609 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 613 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 616 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 620 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 623 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 627 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 630 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 635 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr + XLLF_ISR_OFFSET); fifo 644 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = (struct axis_fifo *)container_of(inod->i_cdev, fifo 646 drivers/staging/axis-fifo/axis-fifo.c f->private_data = fifo; fifo 650 drivers/staging/axis-fifo/axis-fifo.c if (fifo->has_tx_fifo) { fifo 651 drivers/staging/axis-fifo/axis-fifo.c fifo->write_flags = f->f_flags; fifo 653 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tried to open device for write but the transmit fifo is disabled\n"); fifo 660 drivers/staging/axis-fifo/axis-fifo.c if (fifo->has_rx_fifo) { fifo 661 drivers/staging/axis-fifo/axis-fifo.c fifo->read_flags = f->f_flags; fifo 663 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tried to open device for read but the receive fifo is disabled\n"); fifo 687 drivers/staging/axis-fifo/axis-fifo.c static int get_dts_property(struct axis_fifo *fifo, fifo 692 drivers/staging/axis-fifo/axis-fifo.c rc = of_property_read_u32(fifo->dt_device->of_node, name, var); fifo 694 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "couldn't read IP dts property '%s'", fifo 698 drivers/staging/axis-fifo/axis-fifo.c dev_dbg(fifo->dt_device, "dts property '%s' = %u\n", fifo 709 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = NULL; fifo 749 drivers/staging/axis-fifo/axis-fifo.c fifo = devm_kmalloc(dev, sizeof(*fifo), GFP_KERNEL); fifo 750 drivers/staging/axis-fifo/axis-fifo.c if (!fifo) fifo 753 drivers/staging/axis-fifo/axis-fifo.c dev_set_drvdata(dev, fifo); fifo 754 drivers/staging/axis-fifo/axis-fifo.c fifo->dt_device = dev; fifo 756 drivers/staging/axis-fifo/axis-fifo.c init_waitqueue_head(&fifo->read_queue); fifo 757 drivers/staging/axis-fifo/axis-fifo.c init_waitqueue_head(&fifo->write_queue); fifo 759 drivers/staging/axis-fifo/axis-fifo.c spin_lock_init(&fifo->read_queue_lock); fifo 760 drivers/staging/axis-fifo/axis-fifo.c spin_lock_init(&fifo->write_queue_lock); fifo 770 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "invalid address\n"); fifo 775 drivers/staging/axis-fifo/axis-fifo.c fifo->mem = r_mem; fifo 778 drivers/staging/axis-fifo/axis-fifo.c if (!request_mem_region(fifo->mem->start, resource_size(fifo->mem), fifo 780 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 782 drivers/staging/axis-fifo/axis-fifo.c &fifo->mem->start); fifo 786 drivers/staging/axis-fifo/axis-fifo.c dev_dbg(fifo->dt_device, "got memory location [0x%pa - 0x%pa]\n", fifo 787 drivers/staging/axis-fifo/axis-fifo.c &fifo->mem->start, &fifo->mem->end); fifo 790 drivers/staging/axis-fifo/axis-fifo.c fifo->base_addr = ioremap(fifo->mem->start, resource_size(fifo->mem)); fifo 791 drivers/staging/axis-fifo/axis-fifo.c if (!fifo->base_addr) { fifo 792 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "couldn't map physical memory\n"); fifo 796 drivers/staging/axis-fifo/axis-fifo.c dev_dbg(fifo->dt_device, "remapped memory to 0x%p\n", fifo->base_addr); fifo 800 drivers/staging/axis-fifo/axis-fifo.c DRIVER_NAME, &fifo->mem->start); fifo 802 drivers/staging/axis-fifo/axis-fifo.c dev_dbg(fifo->dt_device, "device name [%s]\n", device_name); fifo 810 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,axi-str-rxd-tdata-width", fifo 814 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,axi-str-txc-tdata-width", fifo 818 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,axi-str-txd-tdata-width", fifo 822 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,axis-tdest-width", &tdest_width); fifo 825 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,axis-tid-width", &tid_width); fifo 828 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,axis-tuser-width", &tuser_width); fifo 831 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,data-interface-type", fifo 835 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,has-axis-tdest", &has_tdest); fifo 838 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,has-axis-tid", &has_tid); fifo 841 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,has-axis-tkeep", &has_tkeep); fifo 844 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,has-axis-tstrb", &has_tstrb); fifo 847 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,has-axis-tuser", &has_tuser); fifo 850 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,rx-fifo-depth", &rx_fifo_depth); fifo 853 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,rx-fifo-pe-threshold", fifo 857 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,rx-fifo-pf-threshold", fifo 861 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,s-axi-id-width", &axi_id_width); fifo 864 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,s-axi4-data-width", &axi4_data_width); fifo 867 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,select-xpm", &select_xpm); fifo 870 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,tx-fifo-depth", &tx_fifo_depth); fifo 873 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,tx-fifo-pe-threshold", fifo 877 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,tx-fifo-pf-threshold", fifo 881 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,use-rx-cut-through", fifo 885 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,use-rx-data", &use_rx_data); fifo 888 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,use-tx-ctrl", &use_tx_control); fifo 891 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,use-tx-cut-through", fifo 895 drivers/staging/axis-fifo/axis-fifo.c rc = get_dts_property(fifo, "xlnx,use-tx-data", &use_tx_data); fifo 901 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 908 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 915 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tdest not supported\n"); fifo 920 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tid not supported\n"); fifo 925 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tkeep not supported\n"); fifo 930 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tstrb not supported\n"); fifo 935 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tuser not supported\n"); fifo 940 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "rx cut-through not supported\n"); fifo 945 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tx cut-through not supported\n"); fifo 950 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "tx control not supported\n"); fifo 962 drivers/staging/axis-fifo/axis-fifo.c fifo->rx_fifo_depth = rx_fifo_depth; fifo 964 drivers/staging/axis-fifo/axis-fifo.c fifo->tx_fifo_depth = tx_fifo_depth - 4; fifo 965 drivers/staging/axis-fifo/axis-fifo.c fifo->has_rx_fifo = use_rx_data; fifo 966 drivers/staging/axis-fifo/axis-fifo.c fifo->has_tx_fifo = use_tx_data; fifo 968 drivers/staging/axis-fifo/axis-fifo.c reset_ip_core(fifo); fifo 978 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "no IRQ found for 0x%pa\n", fifo 979 drivers/staging/axis-fifo/axis-fifo.c &fifo->mem->start); fifo 985 drivers/staging/axis-fifo/axis-fifo.c fifo->irq = r_irq->start; fifo 986 drivers/staging/axis-fifo/axis-fifo.c rc = request_irq(fifo->irq, &axis_fifo_irq, 0, DRIVER_NAME, fifo); fifo 988 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "couldn't allocate interrupt %i\n", fifo 989 drivers/staging/axis-fifo/axis-fifo.c fifo->irq); fifo 999 drivers/staging/axis-fifo/axis-fifo.c rc = alloc_chrdev_region(&fifo->devt, 0, 1, DRIVER_NAME); fifo 1002 drivers/staging/axis-fifo/axis-fifo.c dev_dbg(fifo->dt_device, "allocated device number major %i minor %i\n", fifo 1003 drivers/staging/axis-fifo/axis-fifo.c MAJOR(fifo->devt), MINOR(fifo->devt)); fifo 1006 drivers/staging/axis-fifo/axis-fifo.c fifo->device = device_create(axis_fifo_driver_class, NULL, fifo->devt, fifo 1008 drivers/staging/axis-fifo/axis-fifo.c if (IS_ERR(fifo->device)) { fifo 1009 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, fifo 1011 drivers/staging/axis-fifo/axis-fifo.c rc = PTR_ERR(fifo->device); fifo 1014 drivers/staging/axis-fifo/axis-fifo.c dev_set_drvdata(fifo->device, fifo); fifo 1017 drivers/staging/axis-fifo/axis-fifo.c cdev_init(&fifo->char_device, &fops); fifo 1018 drivers/staging/axis-fifo/axis-fifo.c rc = cdev_add(&fifo->char_device, fifo->devt, 1); fifo 1020 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "couldn't create character device\n"); fifo 1025 drivers/staging/axis-fifo/axis-fifo.c rc = sysfs_create_group(&fifo->device->kobj, &axis_fifo_attrs_group); fifo 1027 drivers/staging/axis-fifo/axis-fifo.c dev_err(fifo->dt_device, "couldn't register sysfs group\n"); fifo 1031 drivers/staging/axis-fifo/axis-fifo.c dev_info(fifo->dt_device, "axis-fifo created at %pa mapped to 0x%pa, irq=%i, major=%i, minor=%i\n", fifo 1032 drivers/staging/axis-fifo/axis-fifo.c &fifo->mem->start, &fifo->base_addr, fifo->irq, fifo 1033 drivers/staging/axis-fifo/axis-fifo.c MAJOR(fifo->devt), MINOR(fifo->devt)); fifo 1038 drivers/staging/axis-fifo/axis-fifo.c cdev_del(&fifo->char_device); fifo 1040 drivers/staging/axis-fifo/axis-fifo.c device_destroy(axis_fifo_driver_class, fifo->devt); fifo 1042 drivers/staging/axis-fifo/axis-fifo.c unregister_chrdev_region(fifo->devt, 1); fifo 1044 drivers/staging/axis-fifo/axis-fifo.c free_irq(fifo->irq, fifo); fifo 1046 drivers/staging/axis-fifo/axis-fifo.c iounmap(fifo->base_addr); fifo 1048 drivers/staging/axis-fifo/axis-fifo.c release_mem_region(fifo->mem->start, resource_size(fifo->mem)); fifo 1057 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = dev_get_drvdata(dev); fifo 1059 drivers/staging/axis-fifo/axis-fifo.c sysfs_remove_group(&fifo->device->kobj, &axis_fifo_attrs_group); fifo 1060 drivers/staging/axis-fifo/axis-fifo.c cdev_del(&fifo->char_device); fifo 1061 drivers/staging/axis-fifo/axis-fifo.c dev_set_drvdata(fifo->device, NULL); fifo 1062 drivers/staging/axis-fifo/axis-fifo.c device_destroy(axis_fifo_driver_class, fifo->devt); fifo 1063 drivers/staging/axis-fifo/axis-fifo.c unregister_chrdev_region(fifo->devt, 1); fifo 1064 drivers/staging/axis-fifo/axis-fifo.c free_irq(fifo->irq, fifo); fifo 1065 drivers/staging/axis-fifo/axis-fifo.c iounmap(fifo->base_addr); fifo 1066 drivers/staging/axis-fifo/axis-fifo.c release_mem_region(fifo->mem->start, resource_size(fifo->mem)); fifo 1370 drivers/staging/comedi/drivers/cb_pcidas64.c const struct hw_fifo_info *const fifo = board->ai_fifo; fifo 1376 drivers/staging/comedi/drivers/cb_pcidas64.c if (num_entries > fifo->max_segment_length) fifo 1377 drivers/staging/comedi/drivers/cb_pcidas64.c num_entries = fifo->max_segment_length; fifo 1382 drivers/staging/comedi/drivers/cb_pcidas64.c bits = (~(num_increments - 1)) & fifo->fifo_size_reg_mask; fifo 1383 drivers/staging/comedi/drivers/cb_pcidas64.c devpriv->fifo_size_bits &= ~fifo->fifo_size_reg_mask; fifo 1401 drivers/staging/comedi/drivers/cb_pcidas64.c const struct hw_fifo_info *const fifo = board->ai_fifo; fifo 1403 drivers/staging/comedi/drivers/cb_pcidas64.c num_fifo_entries = num_samples / fifo->sample_packing_ratio; fifo 1407 drivers/staging/comedi/drivers/cb_pcidas64.c fifo->num_segments); fifo 1411 drivers/staging/comedi/drivers/cb_pcidas64.c return retval * fifo->num_segments * fifo->sample_packing_ratio; fifo 1906 drivers/staging/comedi/drivers/cb_pcidas64.c const struct hw_fifo_info *const fifo = board->ai_fifo; fifo 1913 drivers/staging/comedi/drivers/cb_pcidas64.c fifo_size = requested_block_size * fifo->num_segments / fifo 1921 drivers/staging/comedi/drivers/cb_pcidas64.c block_size = ai_fifo_size(dev) / fifo->num_segments * bytes_in_sample; fifo 21 drivers/staging/fwserial/dma_fifo.c #define FAIL(fifo, condition, format...) ({ \ fifo 22 drivers/staging/fwserial/dma_fifo.c fifo->corrupt = !!(condition); \ fifo 23 drivers/staging/fwserial/dma_fifo.c WARN(fifo->corrupt, format); \ fifo 38 drivers/staging/fwserial/dma_fifo.c void dma_fifo_init(struct dma_fifo *fifo) fifo 40 drivers/staging/fwserial/dma_fifo.c memset(fifo, 0, sizeof(*fifo)); fifo 41 drivers/staging/fwserial/dma_fifo.c INIT_LIST_HEAD(&fifo->pending); fifo 58 drivers/staging/fwserial/dma_fifo.c int dma_fifo_alloc(struct dma_fifo *fifo, int size, unsigned int align, fifo 68 drivers/staging/fwserial/dma_fifo.c fifo->data = kmalloc(capacity, gfp_mask); fifo 69 drivers/staging/fwserial/dma_fifo.c if (!fifo->data) fifo 72 drivers/staging/fwserial/dma_fifo.c fifo->in = 0; fifo 73 drivers/staging/fwserial/dma_fifo.c fifo->out = 0; fifo 74 drivers/staging/fwserial/dma_fifo.c fifo->done = 0; fifo 75 drivers/staging/fwserial/dma_fifo.c fifo->size = size; fifo 76 drivers/staging/fwserial/dma_fifo.c fifo->avail = size; fifo 77 drivers/staging/fwserial/dma_fifo.c fifo->align = align; fifo 78 drivers/staging/fwserial/dma_fifo.c fifo->tx_limit = max_t(int, round_down(tx_limit, align), align); fifo 79 drivers/staging/fwserial/dma_fifo.c fifo->open = 0; fifo 80 drivers/staging/fwserial/dma_fifo.c fifo->open_limit = open_limit; fifo 81 drivers/staging/fwserial/dma_fifo.c fifo->guard = size + align * open_limit; fifo 82 drivers/staging/fwserial/dma_fifo.c fifo->capacity = capacity; fifo 83 drivers/staging/fwserial/dma_fifo.c fifo->corrupt = 0; fifo 96 drivers/staging/fwserial/dma_fifo.c void dma_fifo_free(struct dma_fifo *fifo) fifo 100 drivers/staging/fwserial/dma_fifo.c if (!fifo->data) fifo 103 drivers/staging/fwserial/dma_fifo.c list_for_each_entry_safe(pending, next, &fifo->pending, link) fifo 105 drivers/staging/fwserial/dma_fifo.c kfree(fifo->data); fifo 106 drivers/staging/fwserial/dma_fifo.c fifo->data = NULL; fifo 113 drivers/staging/fwserial/dma_fifo.c void dma_fifo_reset(struct dma_fifo *fifo) fifo 117 drivers/staging/fwserial/dma_fifo.c if (!fifo->data) fifo 120 drivers/staging/fwserial/dma_fifo.c list_for_each_entry_safe(pending, next, &fifo->pending, link) fifo 122 drivers/staging/fwserial/dma_fifo.c fifo->in = 0; fifo 123 drivers/staging/fwserial/dma_fifo.c fifo->out = 0; fifo 124 drivers/staging/fwserial/dma_fifo.c fifo->done = 0; fifo 125 drivers/staging/fwserial/dma_fifo.c fifo->avail = fifo->size; fifo 126 drivers/staging/fwserial/dma_fifo.c fifo->open = 0; fifo 127 drivers/staging/fwserial/dma_fifo.c fifo->corrupt = 0; fifo 139 drivers/staging/fwserial/dma_fifo.c int dma_fifo_in(struct dma_fifo *fifo, const void *src, int n) fifo 143 drivers/staging/fwserial/dma_fifo.c if (!fifo->data) fifo 145 drivers/staging/fwserial/dma_fifo.c if (fifo->corrupt) fifo 148 drivers/staging/fwserial/dma_fifo.c if (n > fifo->avail) fifo 149 drivers/staging/fwserial/dma_fifo.c n = fifo->avail; fifo 153 drivers/staging/fwserial/dma_fifo.c ofs = fifo->in % fifo->capacity; fifo 154 drivers/staging/fwserial/dma_fifo.c l = min(n, fifo->capacity - ofs); fifo 155 drivers/staging/fwserial/dma_fifo.c memcpy(fifo->data + ofs, src, l); fifo 156 drivers/staging/fwserial/dma_fifo.c memcpy(fifo->data, src + l, n - l); fifo 158 drivers/staging/fwserial/dma_fifo.c if (FAIL(fifo, addr_check(fifo->done, fifo->in, fifo->in + n) || fifo 159 drivers/staging/fwserial/dma_fifo.c fifo->avail < n, fifo 161 drivers/staging/fwserial/dma_fifo.c fifo->in, fifo->out, fifo->done, n, fifo->avail)) fifo 164 drivers/staging/fwserial/dma_fifo.c fifo->in += n; fifo 165 drivers/staging/fwserial/dma_fifo.c fifo->avail -= n; fifo 167 drivers/staging/fwserial/dma_fifo.c df_trace("in:%u out:%u done:%u n:%d avail:%d", fifo->in, fifo->out, fifo 168 drivers/staging/fwserial/dma_fifo.c fifo->done, n, fifo->avail); fifo 182 drivers/staging/fwserial/dma_fifo.c int dma_fifo_out_pend(struct dma_fifo *fifo, struct dma_pending *pended) fifo 186 drivers/staging/fwserial/dma_fifo.c if (!fifo->data) fifo 188 drivers/staging/fwserial/dma_fifo.c if (fifo->corrupt) fifo 193 drivers/staging/fwserial/dma_fifo.c pended->out = fifo->out; fifo 195 drivers/staging/fwserial/dma_fifo.c len = fifo->in - fifo->out; fifo 198 drivers/staging/fwserial/dma_fifo.c if (fifo->open == fifo->open_limit) fifo 202 drivers/staging/fwserial/dma_fifo.c ofs = fifo->out % fifo->capacity; fifo 203 drivers/staging/fwserial/dma_fifo.c l = fifo->capacity - ofs; fifo 204 drivers/staging/fwserial/dma_fifo.c limit = min_t(unsigned int, l, fifo->tx_limit); fifo 207 drivers/staging/fwserial/dma_fifo.c fifo->out += limit; fifo 208 drivers/staging/fwserial/dma_fifo.c } else if (ofs + n > fifo->guard) { fifo 209 drivers/staging/fwserial/dma_fifo.c fifo->out += l; fifo 210 drivers/staging/fwserial/dma_fifo.c fifo->in = fifo->out; fifo 212 drivers/staging/fwserial/dma_fifo.c fifo->out += round_up(n, fifo->align); fifo 213 drivers/staging/fwserial/dma_fifo.c fifo->in = fifo->out; fifo 216 drivers/staging/fwserial/dma_fifo.c df_trace("in: %u out: %u done: %u n: %d len: %u avail: %d", fifo->in, fifo 217 drivers/staging/fwserial/dma_fifo.c fifo->out, fifo->done, n, len, fifo->avail); fifo 220 drivers/staging/fwserial/dma_fifo.c pended->data = fifo->data + ofs; fifo 221 drivers/staging/fwserial/dma_fifo.c pended->next = fifo->out; fifo 222 drivers/staging/fwserial/dma_fifo.c list_add_tail(&pended->link, &fifo->pending); fifo 223 drivers/staging/fwserial/dma_fifo.c ++fifo->open; fifo 225 drivers/staging/fwserial/dma_fifo.c if (FAIL(fifo, fifo->open > fifo->open_limit, fifo 227 drivers/staging/fwserial/dma_fifo.c fifo->open, fifo->open_limit)) fifo 229 drivers/staging/fwserial/dma_fifo.c if (FAIL(fifo, fifo->out & (fifo->align - 1), fifo 231 drivers/staging/fwserial/dma_fifo.c fifo->out, fifo->align)) fifo 242 drivers/staging/fwserial/dma_fifo.c int dma_fifo_out_complete(struct dma_fifo *fifo, struct dma_pending *complete) fifo 246 drivers/staging/fwserial/dma_fifo.c if (!fifo->data) fifo 248 drivers/staging/fwserial/dma_fifo.c if (fifo->corrupt) fifo 250 drivers/staging/fwserial/dma_fifo.c if (list_empty(&fifo->pending) && fifo->open == 0) fifo 253 drivers/staging/fwserial/dma_fifo.c if (FAIL(fifo, list_empty(&fifo->pending) != (fifo->open == 0), fifo 255 drivers/staging/fwserial/dma_fifo.c fifo->open)) fifo 264 drivers/staging/fwserial/dma_fifo.c list_for_each_entry_safe(pending, next, &fifo->pending, link) { fifo 271 drivers/staging/fwserial/dma_fifo.c if (FAIL(fifo, pending->out != fifo->done || fifo 272 drivers/staging/fwserial/dma_fifo.c addr_check(fifo->in, fifo->done, pending->next), fifo 274 drivers/staging/fwserial/dma_fifo.c fifo->in, fifo->out, fifo->done, pending->out, fifo 279 drivers/staging/fwserial/dma_fifo.c fifo->done = pending->next; fifo 280 drivers/staging/fwserial/dma_fifo.c fifo->avail += pending->len; fifo 281 drivers/staging/fwserial/dma_fifo.c --fifo->open; fifo 283 drivers/staging/fwserial/dma_fifo.c df_trace("in: %u out: %u done: %u len: %u avail: %d", fifo->in, fifo 284 drivers/staging/fwserial/dma_fifo.c fifo->out, fifo->done, pending->len, fifo->avail); fifo 287 drivers/staging/fwserial/dma_fifo.c if (FAIL(fifo, fifo->open < 0, "open dma:%d < 0", fifo->open)) fifo 289 drivers/staging/fwserial/dma_fifo.c if (FAIL(fifo, fifo->avail > fifo->size, "fifo avail:%d > size:%d", fifo 290 drivers/staging/fwserial/dma_fifo.c fifo->avail, fifo->size)) fifo 75 drivers/staging/fwserial/dma_fifo.h void dma_fifo_init(struct dma_fifo *fifo); fifo 76 drivers/staging/fwserial/dma_fifo.h int dma_fifo_alloc(struct dma_fifo *fifo, int size, unsigned int align, fifo 78 drivers/staging/fwserial/dma_fifo.h void dma_fifo_free(struct dma_fifo *fifo); fifo 79 drivers/staging/fwserial/dma_fifo.h void dma_fifo_reset(struct dma_fifo *fifo); fifo 80 drivers/staging/fwserial/dma_fifo.h int dma_fifo_in(struct dma_fifo *fifo, const void *src, int n); fifo 81 drivers/staging/fwserial/dma_fifo.h int dma_fifo_out_pend(struct dma_fifo *fifo, struct dma_pending *pended); fifo 82 drivers/staging/fwserial/dma_fifo.h int dma_fifo_out_complete(struct dma_fifo *fifo, fifo 86 drivers/staging/fwserial/dma_fifo.h static inline int dma_fifo_level(struct dma_fifo *fifo) fifo 88 drivers/staging/fwserial/dma_fifo.h return fifo->size - fifo->avail; fifo 92 drivers/staging/fwserial/dma_fifo.h static inline int dma_fifo_out_level(struct dma_fifo *fifo) fifo 94 drivers/staging/fwserial/dma_fifo.h return fifo->in - fifo->out; fifo 98 drivers/staging/fwserial/dma_fifo.h static inline int dma_fifo_avail(struct dma_fifo *fifo) fifo 100 drivers/staging/fwserial/dma_fifo.h return fifo->avail; fifo 104 drivers/staging/fwserial/dma_fifo.h static inline bool dma_fifo_busy(struct dma_fifo *fifo) fifo 106 drivers/staging/fwserial/dma_fifo.h return fifo->open == fifo->open_limit; fifo 110 drivers/staging/fwserial/dma_fifo.h static inline int dma_fifo_change_tx_limit(struct dma_fifo *fifo, int tx_limit) fifo 112 drivers/staging/fwserial/dma_fifo.h tx_limit = round_down(tx_limit, fifo->align); fifo 113 drivers/staging/fwserial/dma_fifo.h fifo->tx_limit = max_t(int, tx_limit, fifo->align); fifo 42 drivers/staging/most/cdev/cdev.c DECLARE_KFIFO_PTR(fifo, typeof(struct mbo *)); fifo 58 drivers/staging/most/cdev/cdev.c if (!kfifo_peek(&c->fifo, mbo)) { fifo 61 drivers/staging/most/cdev/cdev.c kfifo_in(&c->fifo, mbo, 1); fifo 89 drivers/staging/most/cdev/cdev.c while (kfifo_out((struct kfifo *)&c->fifo, &mbo, 1)) fifo 108 drivers/staging/most/cdev/cdev.c kfifo_free(&c->fifo); fifo 224 drivers/staging/most/cdev/cdev.c kfifo_skip(&c->fifo); fifo 251 drivers/staging/most/cdev/cdev.c while (c->dev && !kfifo_peek(&c->fifo, &mbo)) { fifo 256 drivers/staging/most/cdev/cdev.c (!kfifo_is_empty(&c->fifo) || fifo 280 drivers/staging/most/cdev/cdev.c kfifo_skip(&c->fifo); fifo 297 drivers/staging/most/cdev/cdev.c if (!c->dev || !kfifo_is_empty(&c->fifo)) fifo 300 drivers/staging/most/cdev/cdev.c if (!c->dev || !kfifo_is_empty(&c->fifo) || ch_has_mbo(c)) fifo 379 drivers/staging/most/cdev/cdev.c kfifo_in(&c->fifo, &mbo, 1); fifo 382 drivers/staging/most/cdev/cdev.c if (kfifo_is_full(&c->fifo)) fifo 464 drivers/staging/most/cdev/cdev.c INIT_KFIFO(c->fifo); fifo 465 drivers/staging/most/cdev/cdev.c retval = kfifo_alloc(&c->fifo, cfg->num_buffers, GFP_KERNEL); fifo 484 drivers/staging/most/cdev/cdev.c kfifo_free(&c->fifo); fifo 62 drivers/staging/most/core.c struct list_head fifo; fifo 132 drivers/staging/most/core.c if (list_empty(&c->fifo) && list_empty(&c->halt_fifo)) fifo 136 drivers/staging/most/core.c list_for_each_entry_safe(mbo, tmp, &c->fifo, list) { fifo 153 drivers/staging/most/core.c if (unlikely((!list_empty(&c->fifo) || !list_empty(&c->halt_fifo)))) fifo 932 drivers/staging/most/core.c list_add_tail(&mbo->list, &c->fifo); fifo 990 drivers/staging/most/core.c list_add_tail(&mbo->list, &c->fifo); fifo 1054 drivers/staging/most/core.c empty = list_empty(&c->fifo); fifo 1094 drivers/staging/most/core.c if (list_empty(&c->fifo)) { fifo 1098 drivers/staging/most/core.c mbo = list_pop_mbo(&c->fifo); fifo 1436 drivers/staging/most/core.c INIT_LIST_HEAD(&c->fifo); fifo 1202 drivers/staging/octeon-usb/octeon-hcd.c struct cvmx_usb_tx_fifo *fifo, int available) fifo 1208 drivers/staging/octeon-usb/octeon-hcd.c while (available && (fifo->head != fifo->tail)) { fifo 1209 drivers/staging/octeon-usb/octeon-hcd.c int i = fifo->tail; fifo 1210 drivers/staging/octeon-usb/octeon-hcd.c const u32 *ptr = cvmx_phys_to_ptr(fifo->entry[i].address); fifo 1211 drivers/staging/octeon-usb/octeon-hcd.c u64 csr_address = USB_FIFO_ADDRESS(fifo->entry[i].channel, fifo 1216 drivers/staging/octeon-usb/octeon-hcd.c if (fifo->entry[i].size <= available) { fifo 1217 drivers/staging/octeon-usb/octeon-hcd.c words = fifo->entry[i].size; fifo 1218 drivers/staging/octeon-usb/octeon-hcd.c fifo->tail++; fifo 1219 drivers/staging/octeon-usb/octeon-hcd.c if (fifo->tail > MAX_CHANNELS) fifo 1220 drivers/staging/octeon-usb/octeon-hcd.c fifo->tail = 0; fifo 1225 drivers/staging/octeon-usb/octeon-hcd.c fifo->entry[i].address += words * 4; fifo 1226 drivers/staging/octeon-usb/octeon-hcd.c fifo->entry[i].size -= words; fifo 1248 drivers/staging/octeon-usb/octeon-hcd.c return fifo->head != fifo->tail; fifo 1298 drivers/staging/octeon-usb/octeon-hcd.c struct cvmx_usb_tx_fifo *fifo; fifo 1323 drivers/staging/octeon-usb/octeon-hcd.c fifo = &usb->periodic; fifo 1325 drivers/staging/octeon-usb/octeon-hcd.c fifo = &usb->nonperiodic; fifo 1327 drivers/staging/octeon-usb/octeon-hcd.c fifo->entry[fifo->head].channel = channel; fifo 1328 drivers/staging/octeon-usb/octeon-hcd.c fifo->entry[fifo->head].address = fifo 1331 drivers/staging/octeon-usb/octeon-hcd.c fifo->entry[fifo->head].size = (usbc_hctsiz.s.xfersize + 3) >> 2; fifo 1332 drivers/staging/octeon-usb/octeon-hcd.c fifo->head++; fifo 1333 drivers/staging/octeon-usb/octeon-hcd.c if (fifo->head > MAX_CHANNELS) fifo 1334 drivers/staging/octeon-usb/octeon-hcd.c fifo->head = 0; fifo 214 drivers/tty/mxser.c int fifo[32]; fifo 1630 drivers/tty/mxser.c me->fifo[p] = 1; fifo 132 drivers/tty/n_gsm.c struct kfifo *fifo; /* Queue fifo for the DLCI */ fifo 799 drivers/tty/n_gsm.c len = kfifo_len(dlci->fifo); fifo 823 drivers/tty/n_gsm.c WARN_ON(kfifo_out_locked(dlci->fifo, dp , len, &dlci->lock) != len); fifo 1427 drivers/tty/n_gsm.c kfifo_reset(dlci->fifo); fifo 1648 drivers/tty/n_gsm.c dlci->fifo = &dlci->_fifo; fifo 1684 drivers/tty/n_gsm.c kfifo_free(dlci->fifo); fifo 3033 drivers/tty/n_gsm.c sent = kfifo_in_locked(dlci->fifo, buf, len, &dlci->lock); fifo 3044 drivers/tty/n_gsm.c return TX_SIZE - kfifo_len(dlci->fifo); fifo 3052 drivers/tty/n_gsm.c return kfifo_len(dlci->fifo); fifo 3064 drivers/tty/n_gsm.c kfifo_reset(dlci->fifo); fifo 93 drivers/tty/serial/kgdb_nmi.c STRUCT_KFIFO(char, KGDB_NMI_FIFO_SIZE) fifo; fifo 112 drivers/tty/serial/kgdb_nmi.c kfifo_in(&priv->fifo, &c, 1); fifo 200 drivers/tty/serial/kgdb_nmi.c !kfifo_len(&priv->fifo))) fifo 203 drivers/tty/serial/kgdb_nmi.c while (kfifo_out(&priv->fifo, &ch, 1)) fifo 243 drivers/tty/serial/kgdb_nmi.c INIT_KFIFO(priv->fifo); fifo 199 drivers/tty/serial/mpc52xx_uart.c struct mpc52xx_psc_fifo __iomem *fifo = FIFO_52xx(port); fifo 201 drivers/tty/serial/mpc52xx_uart.c out_8(&fifo->rfcntl, 0x00); fifo 202 drivers/tty/serial/mpc52xx_uart.c out_be16(&fifo->rfalarm, 0x1ff); fifo 203 drivers/tty/serial/mpc52xx_uart.c out_8(&fifo->tfcntl, 0x07); fifo 204 drivers/tty/serial/mpc52xx_uart.c out_be16(&fifo->tfalarm, 0x80); fifo 209 drivers/usb/dwc2/debugfs.c DEFINE_SHOW_ATTRIBUTE(fifo); fifo 569 drivers/usb/dwc2/params.c int fifo; fifo 577 drivers/usb/dwc2/params.c for (fifo = 1; fifo <= fifo_count; fifo++) fifo 578 drivers/usb/dwc2/params.c total += hsotg->params.g_tx_fifo_size[fifo]; fifo 586 drivers/usb/dwc2/params.c for (fifo = 1; fifo <= fifo_count; fifo++) { fifo 587 drivers/usb/dwc2/params.c dptxfszn = hsotg->hw_params.g_tx_fifo_size[fifo]; fifo 589 drivers/usb/dwc2/params.c if (hsotg->params.g_tx_fifo_size[fifo] < min || fifo 590 drivers/usb/dwc2/params.c hsotg->params.g_tx_fifo_size[fifo] > dptxfszn) { fifo 592 drivers/usb/dwc2/params.c __func__, fifo, fifo 593 drivers/usb/dwc2/params.c hsotg->params.g_tx_fifo_size[fifo]); fifo 594 drivers/usb/dwc2/params.c hsotg->params.g_tx_fifo_size[fifo] = dptxfszn; fifo 717 drivers/usb/dwc2/params.c int fifo, fifo_count; fifo 728 drivers/usb/dwc2/params.c for (fifo = 1; fifo <= fifo_count; fifo++) { fifo 729 drivers/usb/dwc2/params.c hw->g_tx_fifo_size[fifo] = fifo 730 drivers/usb/dwc2/params.c (dwc2_readl(hsotg, DPTXFSIZN(fifo)) & fifo 422 drivers/usb/gadget/udc/atmel_usba_udc.c memcpy_toio(ep->fifo, req->req.buf + req->req.actual, transaction_len); fifo 514 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo, bytecount); fifo 1266 drivers/usb/gadget/udc/atmel_usba_udc.c memcpy_toio(ep->fifo, test_packet_buffer, fifo 1334 drivers/usb/gadget/udc/atmel_usba_udc.c writew_relaxed(status, ep->fifo); fifo 1570 drivers/usb/gadget/udc/atmel_usba_udc.c DBG(DBG_FIFO, "Copying ctrl request from 0x%p:\n", ep->fifo); fifo 1571 drivers/usb/gadget/udc/atmel_usba_udc.c memcpy_fromio(crq.data, ep->fifo, sizeof(crq)); fifo 2154 drivers/usb/gadget/udc/atmel_usba_udc.c ep->fifo = udc->fifo + USBA_FIFO_BASE(i); fifo 2225 drivers/usb/gadget/udc/atmel_usba_udc.c udc->fifo = devm_ioremap_resource(&pdev->dev, res); fifo 2226 drivers/usb/gadget/udc/atmel_usba_udc.c if (IS_ERR(udc->fifo)) fifo 2227 drivers/usb/gadget/udc/atmel_usba_udc.c return PTR_ERR(udc->fifo); fifo 2228 drivers/usb/gadget/udc/atmel_usba_udc.c dev_info(&pdev->dev, "FIFO at %pR mapped at %p\n", res, udc->fifo); fifo 272 drivers/usb/gadget/udc/atmel_usba_udc.h void __iomem *fifo; fifo 318 drivers/usb/gadget/udc/atmel_usba_udc.h void __iomem *fifo; fifo 972 drivers/usb/gadget/udc/fotg210-udc.c int fifo; fifo 976 drivers/usb/gadget/udc/fotg210-udc.c for (fifo = 0; fifo < FOTG210_MAX_FIFO_NUM; fifo++) { fifo 977 drivers/usb/gadget/udc/fotg210-udc.c if (int_grp1 & DISGR1_IN_INT(fifo)) fifo 978 drivers/usb/gadget/udc/fotg210-udc.c fotg210_in_fifo_handler(fotg210->ep[fifo + 1]); fifo 980 drivers/usb/gadget/udc/fotg210-udc.c if ((int_grp1 & DISGR1_OUT_INT(fifo)) || fifo 981 drivers/usb/gadget/udc/fotg210-udc.c (int_grp1 & DISGR1_SPK_INT(fifo))) fifo 982 drivers/usb/gadget/udc/fotg210-udc.c fotg210_out_fifo_handler(fotg210->ep[fifo + 1]); fifo 49 drivers/usb/gadget/udc/fotg210.h #define DCFESR_FIFO_EMPTY(fifo) (1 << 8 << (fifo)) fifo 76 drivers/usb/gadget/udc/fotg210.h #define DMISGR1_MF_IN_INT(fifo) (1 << (16 + (fifo))) fifo 85 drivers/usb/gadget/udc/fotg210.h #define DMISGR1_MF_OUTSPK_INT(fifo) (0x3 << (fifo) * 2) fifo 109 drivers/usb/gadget/udc/fotg210.h #define DISGR1_OUT_INT(fifo) (1 << ((fifo) * 2)) fifo 110 drivers/usb/gadget/udc/fotg210.h #define DISGR1_SPK_INT(fifo) (1 << 1 << ((fifo) * 2)) fifo 111 drivers/usb/gadget/udc/fotg210.h #define DISGR1_IN_INT(fifo) (1 << 16 << (fifo)) fifo 165 drivers/usb/gadget/udc/fotg210.h #define FIFOMAP_DIROUT(fifo) (0x0 << 4 << (fifo) * 8) fifo 166 drivers/usb/gadget/udc/fotg210.h #define FIFOMAP_DIRIN(fifo) (0x1 << 4 << (fifo) * 8) fifo 167 drivers/usb/gadget/udc/fotg210.h #define FIFOMAP_BIDIR(fifo) (0x2 << 4 << (fifo) * 8) fifo 168 drivers/usb/gadget/udc/fotg210.h #define FIFOMAP_NA(fifo) (0x3 << 4 << (fifo) * 8) fifo 174 drivers/usb/gadget/udc/fotg210.h #define FIFOCF_TYPE(type, fifo) ((type) << (fifo) * 8) fifo 175 drivers/usb/gadget/udc/fotg210.h #define FIFOCF_BLK_SIN(fifo) (0x0 << (fifo) * 8 << 2) fifo 176 drivers/usb/gadget/udc/fotg210.h #define FIFOCF_BLK_DUB(fifo) (0x1 << (fifo) * 8 << 2) fifo 177 drivers/usb/gadget/udc/fotg210.h #define FIFOCF_BLK_TRI(fifo) (0x2 << (fifo) * 8 << 2) fifo 178 drivers/usb/gadget/udc/fotg210.h #define FIFOCF_BLKSZ_512(fifo) (0x0 << (fifo) * 8 << 4) fifo 179 drivers/usb/gadget/udc/fotg210.h #define FIFOCF_BLKSZ_1024(fifo) (0x1 << (fifo) * 8 << 4) fifo 180 drivers/usb/gadget/udc/fotg210.h #define FIFOCF_FIFO_EN(fifo) (0x1 << (fifo) * 8 << 5) fifo 183 drivers/usb/gadget/udc/fotg210.h #define FOTG210_FIBCR(fifo) (0x1B0 + (fifo) * 4) fifo 194 drivers/usb/gadget/udc/fotg210.h #define DMATFNR_ACC_FN(fifo) (1 << (fifo)) fifo 332 drivers/usb/gadget/udc/goku_udc.c write_packet(u32 __iomem *fifo, u8 *buf, struct goku_request *req, unsigned max) fifo 341 drivers/usb/gadget/udc/goku_udc.c writel(*buf++, fifo); fifo 115 drivers/usb/gadget/udc/s3c-hsudc.c void __iomem *fifo; fifo 335 drivers/usb/gadget/udc/s3c-hsudc.c void __iomem *fifo = hsep->fifo; fifo 346 drivers/usb/gadget/udc/s3c-hsudc.c writel(*buf++, fifo); fifo 381 drivers/usb/gadget/udc/s3c-hsudc.c void __iomem *fifo = hsep->fifo; fifo 400 drivers/usb/gadget/udc/s3c-hsudc.c word = (u16)readl(fifo); fifo 1000 drivers/usb/gadget/udc/s3c-hsudc.c hsep->fifo = hsudc->regs + S3C_BR(epnum); fifo 278 drivers/usb/gadget/udc/s3c2410_udc.c static inline int s3c2410_udc_write_packet(int fifo, fifo 293 drivers/usb/gadget/udc/s3c2410_udc.c writesb(base_addr + fifo, buf, len); fifo 388 drivers/usb/gadget/udc/s3c2410_udc.c static inline int s3c2410_udc_read_packet(int fifo, u8 *buf, fifo 396 drivers/usb/gadget/udc/s3c2410_udc.c readsb(fifo + base_addr, buf, len); fifo 473 drivers/usb/host/fhci.h static inline int cq_new(struct kfifo *fifo, int size) fifo 475 drivers/usb/host/fhci.h return kfifo_alloc(fifo, size * sizeof(void *), GFP_KERNEL); fifo 288 drivers/usb/mtu3/mtu3.h struct mtu3_fifo_info *fifo; fifo 25 drivers/usb/mtu3/mtu3_core.c struct mtu3_fifo_info *fifo = mep->fifo; fifo 31 drivers/usb/mtu3/mtu3_core.c if (num_bits > fifo->limit) fifo 36 drivers/usb/mtu3/mtu3_core.c start_bit = bitmap_find_next_zero_area(fifo->bitmap, fifo 37 drivers/usb/mtu3/mtu3_core.c fifo->limit, 0, num_bits, 0); fifo 38 drivers/usb/mtu3/mtu3_core.c if (start_bit >= fifo->limit) fifo 41 drivers/usb/mtu3/mtu3_core.c bitmap_set(fifo->bitmap, start_bit, num_bits); fifo 43 drivers/usb/mtu3/mtu3_core.c mep->fifo_addr = fifo->base + MTU3_EP_FIFO_UNIT * start_bit; fifo 53 drivers/usb/mtu3/mtu3_core.c struct mtu3_fifo_info *fifo = mep->fifo; fifo 58 drivers/usb/mtu3/mtu3_core.c if (unlikely(addr < fifo->base || bits > fifo->limit)) fifo 61 drivers/usb/mtu3/mtu3_core.c start_bit = (addr - fifo->base) / MTU3_EP_FIFO_UNIT; fifo 62 drivers/usb/mtu3/mtu3_core.c bitmap_clear(fifo->bitmap, start_bit, bits); fifo 528 drivers/usb/mtu3/mtu3_core.c mep->fifo = &mtu->tx_fifo; fifo 530 drivers/usb/mtu3/mtu3_core.c mep->fifo = &mtu->rx_fifo; fifo 82 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; fifo 89 drivers/usb/mtu3/mtu3_gadget_ep0.c iowrite32_rep(fifo, src, len >> 2); fifo 93 drivers/usb/mtu3/mtu3_gadget_ep0.c writew(*(u16 *)&src[index], fifo); fifo 97 drivers/usb/mtu3/mtu3_gadget_ep0.c writeb(src[index], fifo); fifo 102 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; fifo 110 drivers/usb/mtu3/mtu3_gadget_ep0.c ioread32_rep(fifo, dst, len >> 2); fifo 114 drivers/usb/mtu3/mtu3_gadget_ep0.c value = readl(fifo); fifo 391 drivers/usb/musb/am35x.c void __iomem *fifo = hw_ep->fifo; fifo 397 drivers/usb/musb/am35x.c readsl(fifo, dst, len >> 2); fifo 407 drivers/usb/musb/am35x.c *(u32 *) dst = musb_readl(fifo, 0); fifo 413 drivers/usb/musb/am35x.c val = musb_readl(fifo, 0); fifo 284 drivers/usb/musb/musb_core.c void __iomem *fifo = hw_ep->fifo; fifo 292 drivers/usb/musb/musb_core.c 'T', hw_ep->epnum, fifo, len, src); fifo 301 drivers/usb/musb/musb_core.c iowrite32_rep(fifo, src + index, len >> 2); fifo 305 drivers/usb/musb/musb_core.c __raw_writew(*(u16 *)&src[index], fifo); fifo 310 drivers/usb/musb/musb_core.c iowrite16_rep(fifo, src + index, len >> 1); fifo 315 drivers/usb/musb/musb_core.c __raw_writeb(src[index], fifo); fifo 318 drivers/usb/musb/musb_core.c iowrite8_rep(fifo, src, len); fifo 328 drivers/usb/musb/musb_core.c void __iomem *fifo = hw_ep->fifo; fifo 334 drivers/usb/musb/musb_core.c 'R', hw_ep->epnum, fifo, len, dst); fifo 343 drivers/usb/musb/musb_core.c ioread32_rep(fifo, dst, len >> 2); fifo 347 drivers/usb/musb/musb_core.c *(u16 *)&dst[index] = __raw_readw(fifo); fifo 352 drivers/usb/musb/musb_core.c ioread16_rep(fifo, dst, len >> 1); fifo 357 drivers/usb/musb/musb_core.c dst[index] = __raw_readb(fifo); fifo 360 drivers/usb/musb/musb_core.c ioread8_rep(fifo, dst, len); fifo 1533 drivers/usb/musb/musb_core.c hw_ep->fifo = musb->io.fifo_offset(i) + mbase; fifo 193 drivers/usb/musb/musb_core.h void __iomem *fifo; fifo 625 drivers/usb/musb/musb_dsps.c void __iomem *fifo = hw_ep->fifo; fifo 628 drivers/usb/musb/musb_dsps.c ioread32_rep(fifo, dst, len >> 2); fifo 635 drivers/usb/musb/musb_dsps.c u32 val = musb_readl(fifo, 0); fifo 178 drivers/usb/musb/tusb6010.c tusb_fifo_write_unaligned(void __iomem *fifo, const u8 *buf, u16 len) fifo 186 drivers/usb/musb/tusb6010.c musb_writel(fifo, 0, val); fifo 194 drivers/usb/musb/tusb6010.c musb_writel(fifo, 0, val); fifo 198 drivers/usb/musb/tusb6010.c static inline void tusb_fifo_read_unaligned(void __iomem *fifo, fifo 206 drivers/usb/musb/tusb6010.c val = musb_readl(fifo, 0); fifo 214 drivers/usb/musb/tusb6010.c val = musb_readl(fifo, 0); fifo 223 drivers/usb/musb/tusb6010.c void __iomem *fifo = hw_ep->fifo; fifo 229 drivers/usb/musb/tusb6010.c 'T', epnum, fifo, len, buf); fifo 243 drivers/usb/musb/tusb6010.c iowrite32_rep(fifo, buf, len >> 2); fifo 258 drivers/usb/musb/tusb6010.c musb_writel(fifo, 0, val); fifo 266 drivers/usb/musb/tusb6010.c tusb_fifo_write_unaligned(fifo, buf, len); fifo 273 drivers/usb/musb/tusb6010.c void __iomem *fifo = hw_ep->fifo; fifo 277 drivers/usb/musb/tusb6010.c 'R', epnum, fifo, len, buf); fifo 290 drivers/usb/musb/tusb6010.c ioread32_rep(fifo, buf, len >> 2); fifo 301 drivers/usb/musb/tusb6010.c val = musb_readl(fifo, 0); fifo 313 drivers/usb/musb/tusb6010.c tusb_fifo_read_unaligned(fifo, buf, len); fifo 98 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo); fifo 99 drivers/usb/renesas_usbhs/fifo.c static struct dma_chan *usbhsf_dma_chan_get(struct usbhs_fifo *fifo, fifo 107 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhs_pipe_to_fifo(pipe); fifo 121 drivers/usb/renesas_usbhs/fifo.c if (fifo) fifo 122 drivers/usb/renesas_usbhs/fifo.c chan = usbhsf_dma_chan_get(fifo, pkt); fifo 133 drivers/usb/renesas_usbhs/fifo.c if (fifo) fifo 134 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 248 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo) fifo 252 drivers/usb/renesas_usbhs/fifo.c usbhs_bset(priv, fifo->ctr, BVAL, BVAL); fifo 256 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo) fifo 259 drivers/usb/renesas_usbhs/fifo.c if (usbhs_read(priv, fifo->ctr) & FRDY) fifo 266 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo) fifo 280 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_barrier(priv, fifo); fifo 288 drivers/usb/renesas_usbhs/fifo.c usbhs_write(priv, fifo->ctr, BCLR); fifo 292 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo) fifo 294 drivers/usb/renesas_usbhs/fifo.c return usbhs_read(priv, fifo->ctr) & DTLN_MASK; fifo 298 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo) fifo 303 drivers/usb/renesas_usbhs/fifo.c usbhs_write(priv, fifo->sel, 0); fifo 307 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo, fifo 317 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_is_busy(fifo)) fifo 328 drivers/usb/renesas_usbhs/fifo.c usbhs_write(priv, fifo->sel, base | MBW_32); fifo 332 drivers/usb/renesas_usbhs/fifo.c if (base == (mask & usbhs_read(priv, fifo->sel))) { fifo 333 drivers/usb/renesas_usbhs/fifo.c usbhs_pipe_select_fifo(pipe, fifo); fifo 351 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); /* CFIFO */ fifo 357 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_select(pipe, fifo, 1); fifo 365 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_clear(pipe, fifo); fifo 366 drivers/usb/renesas_usbhs/fifo.c usbhsf_send_terminator(pipe, fifo); fifo 368 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 380 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); /* CFIFO */ fifo 386 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_select(pipe, fifo, 0); fifo 393 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_clear(pipe, fifo); fifo 395 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 458 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); fifo 473 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_select(pipe, fifo, 0); fifo 474 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_clear(pipe, fifo); fifo 475 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 497 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); /* CFIFO */ fifo 498 drivers/usb/renesas_usbhs/fifo.c void __iomem *addr = priv->base + fifo->port; fifo 510 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_select(pipe, fifo, 1); fifo 521 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_barrier(priv, fifo); fifo 567 drivers/usb/renesas_usbhs/fifo.c usbhsf_send_terminator(pipe, fifo); fifo 577 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 582 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 614 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); fifo 629 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_clear(pipe, fifo); fifo 644 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); /* CFIFO */ fifo 645 drivers/usb/renesas_usbhs/fifo.c void __iomem *addr = priv->base + fifo->port; fifo 653 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_select(pipe, fifo, 0); fifo 657 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_barrier(priv, fifo); fifo 661 drivers/usb/renesas_usbhs/fifo.c rcv_len = usbhsf_fifo_rcv_len(priv, fifo); fifo 698 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_clear(pipe, fifo); fifo 727 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 757 drivers/usb/renesas_usbhs/fifo.c static struct dma_chan *usbhsf_dma_chan_get(struct usbhs_fifo *fifo, fifo 761 drivers/usb/renesas_usbhs/fifo.c return fifo->tx_chan; fifo 764 drivers/usb/renesas_usbhs/fifo.c return fifo->rx_chan; fifo 772 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo; fifo 775 drivers/usb/renesas_usbhs/fifo.c usbhs_for_each_dfifo(priv, fifo, i) { fifo 776 drivers/usb/renesas_usbhs/fifo.c if (usbhsf_dma_chan_get(fifo, pkt) && fifo 777 drivers/usb/renesas_usbhs/fifo.c !usbhsf_fifo_is_busy(fifo)) fifo 778 drivers/usb/renesas_usbhs/fifo.c return fifo; fifo 787 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo, fifo 792 drivers/usb/renesas_usbhs/fifo.c usbhs_bset(priv, fifo->sel, DREQE, dreqe); fifo 800 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhs_pipe_to_fifo(pipe); fifo 801 drivers/usb/renesas_usbhs/fifo.c struct dma_chan *chan = usbhsf_dma_chan_get(fifo, pkt); fifo 810 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo; fifo 817 drivers/usb/renesas_usbhs/fifo.c fifo = usbhs_pipe_to_fifo(pipe); fifo 818 drivers/usb/renesas_usbhs/fifo.c if (!fifo) fifo 821 drivers/usb/renesas_usbhs/fifo.c chan = usbhsf_dma_chan_get(fifo, pkt); fifo 840 drivers/usb/renesas_usbhs/fifo.c fifo->name, usbhs_pipe_number(pipe), pkt->length, pkt->zero); fifo 845 drivers/usb/renesas_usbhs/fifo.c usbhsf_dma_start(pipe, fifo); fifo 868 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo; fifo 896 drivers/usb/renesas_usbhs/fifo.c fifo = usbhsf_get_dma_fifo(priv, pkt); fifo 897 drivers/usb/renesas_usbhs/fifo.c if (!fifo) fifo 900 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_select(pipe, fifo, 0); fifo 921 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 947 drivers/usb/renesas_usbhs/fifo.c usbhsf_dma_stop(pipe, pipe->fifo); fifo 949 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, pipe->fifo); fifo 980 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo; fifo 991 drivers/usb/renesas_usbhs/fifo.c fifo = usbhsf_get_dma_fifo(priv, pkt); fifo 992 drivers/usb/renesas_usbhs/fifo.c if (!fifo) fifo 1004 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_select(pipe, fifo, 0); fifo 1027 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 1053 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo; fifo 1063 drivers/usb/renesas_usbhs/fifo.c fifo = usbhsf_get_dma_fifo(priv, pkt); fifo 1064 drivers/usb/renesas_usbhs/fifo.c if (!fifo) fifo 1070 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_select(pipe, fifo, 0); fifo 1075 drivers/usb/renesas_usbhs/fifo.c len = usbhsf_fifo_rcv_len(priv, fifo); fifo 1083 drivers/usb/renesas_usbhs/fifo.c ret = usbhsf_fifo_barrier(priv, fifo); fifo 1107 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 1132 drivers/usb/renesas_usbhs/fifo.c usbhsf_dma_stop(pipe, pipe->fifo); fifo 1134 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, pipe->fifo); fifo 1176 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhs_pipe_to_fifo(pipe); fifo 1177 drivers/usb/renesas_usbhs/fifo.c struct dma_chan *chan = usbhsf_dma_chan_get(fifo, pkt); fifo 1187 drivers/usb/renesas_usbhs/fifo.c rcv_len = usbhsf_fifo_rcv_len(priv, fifo); fifo 1188 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_clear(pipe, fifo); fifo 1192 drivers/usb/renesas_usbhs/fifo.c usbhsf_dma_stop(pipe, fifo); fifo 1194 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, pipe->fifo); fifo 1238 drivers/usb/renesas_usbhs/fifo.c static void usbhsf_dma_quit(struct usbhs_priv *priv, struct usbhs_fifo *fifo) fifo 1240 drivers/usb/renesas_usbhs/fifo.c if (fifo->tx_chan) fifo 1241 drivers/usb/renesas_usbhs/fifo.c dma_release_channel(fifo->tx_chan); fifo 1242 drivers/usb/renesas_usbhs/fifo.c if (fifo->rx_chan) fifo 1243 drivers/usb/renesas_usbhs/fifo.c dma_release_channel(fifo->rx_chan); fifo 1245 drivers/usb/renesas_usbhs/fifo.c fifo->tx_chan = NULL; fifo 1246 drivers/usb/renesas_usbhs/fifo.c fifo->rx_chan = NULL; fifo 1249 drivers/usb/renesas_usbhs/fifo.c static void usbhsf_dma_init_pdev(struct usbhs_fifo *fifo) fifo 1255 drivers/usb/renesas_usbhs/fifo.c fifo->tx_chan = dma_request_channel(mask, usbhsf_dma_filter, fifo 1256 drivers/usb/renesas_usbhs/fifo.c &fifo->tx_slave); fifo 1260 drivers/usb/renesas_usbhs/fifo.c fifo->rx_chan = dma_request_channel(mask, usbhsf_dma_filter, fifo 1261 drivers/usb/renesas_usbhs/fifo.c &fifo->rx_slave); fifo 1264 drivers/usb/renesas_usbhs/fifo.c static void usbhsf_dma_init_dt(struct device *dev, struct usbhs_fifo *fifo, fifo 1276 drivers/usb/renesas_usbhs/fifo.c fifo->tx_chan = dma_request_slave_channel_reason(dev, name); fifo 1277 drivers/usb/renesas_usbhs/fifo.c if (IS_ERR(fifo->tx_chan)) fifo 1278 drivers/usb/renesas_usbhs/fifo.c fifo->tx_chan = NULL; fifo 1280 drivers/usb/renesas_usbhs/fifo.c fifo->rx_chan = dma_request_slave_channel_reason(dev, name); fifo 1281 drivers/usb/renesas_usbhs/fifo.c if (IS_ERR(fifo->rx_chan)) fifo 1282 drivers/usb/renesas_usbhs/fifo.c fifo->rx_chan = NULL; fifo 1286 drivers/usb/renesas_usbhs/fifo.c static void usbhsf_dma_init(struct usbhs_priv *priv, struct usbhs_fifo *fifo, fifo 1292 drivers/usb/renesas_usbhs/fifo.c usbhsf_dma_init_dt(dev, fifo, channel); fifo 1294 drivers/usb/renesas_usbhs/fifo.c usbhsf_dma_init_pdev(fifo); fifo 1296 drivers/usb/renesas_usbhs/fifo.c if (fifo->tx_chan || fifo->rx_chan) fifo 1298 drivers/usb/renesas_usbhs/fifo.c fifo->name, fifo 1299 drivers/usb/renesas_usbhs/fifo.c fifo->tx_chan ? "[TX]" : " ", fifo 1300 drivers/usb/renesas_usbhs/fifo.c fifo->rx_chan ? "[RX]" : " "); fifo 1382 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); /* CFIFO */ fifo 1385 drivers/usb/renesas_usbhs/fifo.c if (usbhsf_fifo_select(pipe, fifo, 1) < 0) fifo 1387 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_clear(pipe, fifo); fifo 1388 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 1391 drivers/usb/renesas_usbhs/fifo.c if (usbhsf_fifo_select(pipe, fifo, 0) < 0) fifo 1393 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_clear(pipe, fifo); fifo 1394 drivers/usb/renesas_usbhs/fifo.c usbhsf_fifo_unselect(pipe, fifo); fifo 1427 drivers/usb/renesas_usbhs/fifo.c #define __USBHS_DFIFO_INIT(priv, fifo, channel, fifo_port) \ fifo 1429 drivers/usb/renesas_usbhs/fifo.c fifo = usbhsf_get_dnfifo(priv, channel); \ fifo 1430 drivers/usb/renesas_usbhs/fifo.c fifo->name = "D"#channel"FIFO"; \ fifo 1431 drivers/usb/renesas_usbhs/fifo.c fifo->port = fifo_port; \ fifo 1432 drivers/usb/renesas_usbhs/fifo.c fifo->sel = D##channel##FIFOSEL; \ fifo 1433 drivers/usb/renesas_usbhs/fifo.c fifo->ctr = D##channel##FIFOCTR; \ fifo 1434 drivers/usb/renesas_usbhs/fifo.c fifo->tx_slave.shdma_slave.slave_id = \ fifo 1436 drivers/usb/renesas_usbhs/fifo.c fifo->rx_slave.shdma_slave.slave_id = \ fifo 1438 drivers/usb/renesas_usbhs/fifo.c usbhsf_dma_init(priv, fifo, channel); \ fifo 1441 drivers/usb/renesas_usbhs/fifo.c #define USBHS_DFIFO_INIT(priv, fifo, channel) \ fifo 1442 drivers/usb/renesas_usbhs/fifo.c __USBHS_DFIFO_INIT(priv, fifo, channel, D##channel##FIFO) fifo 1443 drivers/usb/renesas_usbhs/fifo.c #define USBHS_DFIFO_INIT_NO_PORT(priv, fifo, channel) \ fifo 1444 drivers/usb/renesas_usbhs/fifo.c __USBHS_DFIFO_INIT(priv, fifo, channel, 0) fifo 1448 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo; fifo 1451 drivers/usb/renesas_usbhs/fifo.c fifo = usbhsf_get_cfifo(priv); fifo 1452 drivers/usb/renesas_usbhs/fifo.c fifo->name = "CFIFO"; fifo 1453 drivers/usb/renesas_usbhs/fifo.c fifo->port = CFIFO; fifo 1454 drivers/usb/renesas_usbhs/fifo.c fifo->sel = CFIFOSEL; fifo 1455 drivers/usb/renesas_usbhs/fifo.c fifo->ctr = CFIFOCTR; fifo 1458 drivers/usb/renesas_usbhs/fifo.c USBHS_DFIFO_INIT(priv, fifo, 0); fifo 1459 drivers/usb/renesas_usbhs/fifo.c USBHS_DFIFO_INIT(priv, fifo, 1); fifo 1460 drivers/usb/renesas_usbhs/fifo.c USBHS_DFIFO_INIT_NO_PORT(priv, fifo, 2); fifo 1461 drivers/usb/renesas_usbhs/fifo.c USBHS_DFIFO_INIT_NO_PORT(priv, fifo, 3); fifo 1468 drivers/usb/renesas_usbhs/fifo.c struct usbhs_fifo *fifo; fifo 1471 drivers/usb/renesas_usbhs/fifo.c usbhs_for_each_dfifo(priv, fifo, i) fifo 1472 drivers/usb/renesas_usbhs/fifo.c usbhsf_dma_quit(priv, fifo); fifo 681 drivers/usb/renesas_usbhs/pipe.c pipe->fifo = NULL; fifo 752 drivers/usb/renesas_usbhs/pipe.c void usbhs_pipe_select_fifo(struct usbhs_pipe *pipe, struct usbhs_fifo *fifo) fifo 754 drivers/usb/renesas_usbhs/pipe.c if (pipe->fifo) fifo 755 drivers/usb/renesas_usbhs/pipe.c pipe->fifo->pipe = NULL; fifo 757 drivers/usb/renesas_usbhs/pipe.c pipe->fifo = fifo; fifo 759 drivers/usb/renesas_usbhs/pipe.c if (fifo) fifo 760 drivers/usb/renesas_usbhs/pipe.c fifo->pipe = pipe; fifo 21 drivers/usb/renesas_usbhs/pipe.h struct usbhs_fifo *fifo; fifo 92 drivers/usb/renesas_usbhs/pipe.h void usbhs_pipe_select_fifo(struct usbhs_pipe *pipe, struct usbhs_fifo *fifo); fifo 104 drivers/usb/renesas_usbhs/pipe.h #define usbhs_pipe_to_fifo(p) ((p)->fifo) fifo 157 drivers/usb/serial/io_edgeport.c unsigned char *fifo; /* allocated Buffer */ fifo 990 drivers/usb/serial/io_edgeport.c edge_port->txfifo.fifo = kmalloc(edge_port->maxTxCredits, GFP_KERNEL); fifo 992 drivers/usb/serial/io_edgeport.c if (!edge_port->txfifo.fifo) { fifo 1084 drivers/usb/serial/io_edgeport.c struct TxFifo *fifo = &edge_port->txfifo; fifo 1091 drivers/usb/serial/io_edgeport.c lastCount = fifo->count; fifo 1107 drivers/usb/serial/io_edgeport.c if (lastCount == fifo->count) { fifo 1177 drivers/usb/serial/io_edgeport.c kfree(edge_port->txfifo.fifo); fifo 1178 drivers/usb/serial/io_edgeport.c edge_port->txfifo.fifo = NULL; fifo 1192 drivers/usb/serial/io_edgeport.c struct TxFifo *fifo; fifo 1203 drivers/usb/serial/io_edgeport.c fifo = &edge_port->txfifo; fifo 1209 drivers/usb/serial/io_edgeport.c (edge_port->txCredits - fifo->count)); fifo 1212 drivers/usb/serial/io_edgeport.c __func__, count, edge_port->txCredits - fifo->count, copySize); fifo 1228 drivers/usb/serial/io_edgeport.c bytesleft = fifo->size - fifo->head; fifo 1234 drivers/usb/serial/io_edgeport.c memcpy(&fifo->fifo[fifo->head], data, firsthalf); fifo 1235 drivers/usb/serial/io_edgeport.c usb_serial_debug_data(&port->dev, __func__, firsthalf, &fifo->fifo[fifo->head]); fifo 1238 drivers/usb/serial/io_edgeport.c fifo->head += firsthalf; fifo 1239 drivers/usb/serial/io_edgeport.c fifo->count += firsthalf; fifo 1242 drivers/usb/serial/io_edgeport.c if (fifo->head == fifo->size) fifo 1243 drivers/usb/serial/io_edgeport.c fifo->head = 0; fifo 1249 drivers/usb/serial/io_edgeport.c memcpy(&fifo->fifo[fifo->head], &data[firsthalf], secondhalf); fifo 1250 drivers/usb/serial/io_edgeport.c usb_serial_debug_data(&port->dev, __func__, secondhalf, &fifo->fifo[fifo->head]); fifo 1252 drivers/usb/serial/io_edgeport.c fifo->count += secondhalf; fifo 1253 drivers/usb/serial/io_edgeport.c fifo->head += secondhalf; fifo 1266 drivers/usb/serial/io_edgeport.c __func__, copySize, edge_port->txCredits, fifo->count); fifo 1288 drivers/usb/serial/io_edgeport.c struct TxFifo *fifo = &edge_port->txfifo; fifo 1303 drivers/usb/serial/io_edgeport.c (fifo->count == 0)) { fifo 1305 drivers/usb/serial/io_edgeport.c __func__, fifo->count, edge_port->write_in_progress); fifo 1318 drivers/usb/serial/io_edgeport.c __func__, fifo->count, edge_port->txCredits); fifo 1334 drivers/usb/serial/io_edgeport.c count = fifo->count; fifo 1344 drivers/usb/serial/io_edgeport.c bytesleft = fifo->size - fifo->tail; fifo 1346 drivers/usb/serial/io_edgeport.c memcpy(&buffer[2], &fifo->fifo[fifo->tail], firsthalf); fifo 1347 drivers/usb/serial/io_edgeport.c fifo->tail += firsthalf; fifo 1348 drivers/usb/serial/io_edgeport.c fifo->count -= firsthalf; fifo 1349 drivers/usb/serial/io_edgeport.c if (fifo->tail == fifo->size) fifo 1350 drivers/usb/serial/io_edgeport.c fifo->tail = 0; fifo 1354 drivers/usb/serial/io_edgeport.c memcpy(&buffer[2+firsthalf], &fifo->fifo[fifo->tail], fifo 1356 drivers/usb/serial/io_edgeport.c fifo->tail += secondhalf; fifo 1357 drivers/usb/serial/io_edgeport.c fifo->count -= secondhalf; fifo 1387 drivers/usb/serial/io_edgeport.c __func__, count, edge_port->txCredits, fifo->count); fifo 242 drivers/video/fbdev/nvidia/nv_hw.c static void nv4CalcArbitration(nv4_fifo_info * fifo, nv4_sim_state * arb) fifo 251 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 1; fifo 288 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 1; fifo 345 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 0; fifo 352 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 0; fifo 360 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 0; fifo 372 drivers/video/fbdev/nvidia/nv_hw.c fifo->graphics_lwm = data; fifo 373 drivers/video/fbdev/nvidia/nv_hw.c fifo->graphics_burst_size = 128; fifo 375 drivers/video/fbdev/nvidia/nv_hw.c fifo->video_lwm = data; fifo 376 drivers/video/fbdev/nvidia/nv_hw.c fifo->video_burst_size = vbs; fifo 415 drivers/video/fbdev/nvidia/nv_hw.c static void nv10CalcArbitration(nv10_fifo_info * fifo, nv10_sim_state * arb) fifo 430 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 1; fifo 490 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 1; fifo 580 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 0; fifo 595 drivers/video/fbdev/nvidia/nv_hw.c fifo->valid = 0; fifo 610 drivers/video/fbdev/nvidia/nv_hw.c fifo->graphics_lwm = data; fifo 611 drivers/video/fbdev/nvidia/nv_hw.c fifo->graphics_burst_size = cbs; fifo 613 drivers/video/fbdev/nvidia/nv_hw.c fifo->video_lwm = 1024; fifo 614 drivers/video/fbdev/nvidia/nv_hw.c fifo->video_burst_size = 512; fifo 1567 drivers/video/fbdev/nvidia/nv_hw.c VGA_WR08(par->PCIO, 0x03D5, state->fifo); fifo 1625 drivers/video/fbdev/nvidia/nv_hw.c state->fifo = VGA_RD08(par->PCIO, 0x03D5); fifo 64 drivers/video/fbdev/nvidia/nv_type.h u32 fifo; fifo 441 drivers/video/fbdev/nvidia/nvidia.c state->fifo = VGA_RD08(par->PCIO, 0x03D5) & ~(1<<5); fifo 1147 drivers/video/fbdev/omap2/omapfb/dss/dispc.c int fifo; fifo 1156 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (fifo = 0; fifo < dispc.feat->num_fifos; ++fifo) { fifo 1157 drivers/video/fbdev/omap2/omapfb/dss/dispc.c size = REG_GET(DISPC_OVL_FIFO_SIZE_STATUS(fifo), start, end); fifo 1159 drivers/video/fbdev/omap2/omapfb/dss/dispc.c dispc.fifo_size[fifo] = size; fifo 1165 drivers/video/fbdev/omap2/omapfb/dss/dispc.c dispc.fifo_assignment[fifo] = fifo; fifo 1219 drivers/video/fbdev/omap2/omapfb/dss/dispc.c int fifo; fifo 1222 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (fifo = 0; fifo < dispc.feat->num_fifos; ++fifo) { fifo 1223 drivers/video/fbdev/omap2/omapfb/dss/dispc.c if (dispc.fifo_assignment[fifo] == plane) fifo 1224 drivers/video/fbdev/omap2/omapfb/dss/dispc.c size += dispc.fifo_size[fifo]; fifo 655 drivers/video/fbdev/riva/riva_hw.c nv4_fifo_info *fifo, fifo 667 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 1; fifo 707 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 1; fifo 760 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 0; fifo 769 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 0; fifo 779 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 0; fifo 790 drivers/video/fbdev/riva/riva_hw.c fifo->graphics_lwm = data; fifo 791 drivers/video/fbdev/riva/riva_hw.c fifo->graphics_burst_size = 128; fifo 793 drivers/video/fbdev/riva/riva_hw.c fifo->video_lwm = data; fifo 794 drivers/video/fbdev/riva/riva_hw.c fifo->video_burst_size = vbs; fifo 841 drivers/video/fbdev/riva/riva_hw.c nv10_fifo_info *fifo, fifo 858 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 1; fifo 927 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 1; fifo 1028 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 0; fifo 1041 drivers/video/fbdev/riva/riva_hw.c fifo->valid = 0; fifo 1054 drivers/video/fbdev/riva/riva_hw.c fifo->graphics_lwm = data; fifo->graphics_burst_size = cbs; fifo 1057 drivers/video/fbdev/riva/riva_hw.c fifo->video_lwm = 1024; fifo->video_burst_size = 512; fifo 41 include/linux/fsl/bestcomm/fec.h bcom_fec_rx_init(int queue_len, phys_addr_t fifo, int maxbufsize); fifo 51 include/linux/fsl/bestcomm/fec.h bcom_fec_tx_init(int queue_len, phys_addr_t fifo); fifo 20 include/linux/fsl/bestcomm/gen_bd.h bcom_gen_bd_rx_init(int queue_len, phys_addr_t fifo, fifo 31 include/linux/fsl/bestcomm/gen_bd.h bcom_gen_bd_tx_init(int queue_len, phys_addr_t fifo, fifo 43 include/linux/fsl/bestcomm/gen_bd.h phys_addr_t fifo, int maxbufsize); fifo 45 include/linux/fsl/bestcomm/gen_bd.h phys_addr_t fifo); fifo 102 include/linux/kfifo.h #define __is_kfifo_ptr(fifo) \ fifo 103 include/linux/kfifo.h (sizeof(*fifo) == sizeof(STRUCT_KFIFO_PTR(typeof(*(fifo)->type)))) fifo 110 include/linux/kfifo.h #define DECLARE_KFIFO_PTR(fifo, type) STRUCT_KFIFO_PTR(type) fifo fifo 118 include/linux/kfifo.h #define DECLARE_KFIFO(fifo, type, size) STRUCT_KFIFO(type, size) fifo fifo 124 include/linux/kfifo.h #define INIT_KFIFO(fifo) \ fifo 126 include/linux/kfifo.h typeof(&(fifo)) __tmp = &(fifo); \ fifo 143 include/linux/kfifo.h #define DEFINE_KFIFO(fifo, type, size) \ fifo 144 include/linux/kfifo.h DECLARE_KFIFO(fifo, type, size) = \ fifo 145 include/linux/kfifo.h (typeof(fifo)) { \ fifo 150 include/linux/kfifo.h .mask = __is_kfifo_ptr(&(fifo)) ? \ fifo 152 include/linux/kfifo.h ARRAY_SIZE((fifo).buf) - 1, \ fifo 153 include/linux/kfifo.h .esize = sizeof(*(fifo).buf), \ fifo 154 include/linux/kfifo.h .data = __is_kfifo_ptr(&(fifo)) ? \ fifo 156 include/linux/kfifo.h (fifo).buf, \ fifo 181 include/linux/kfifo.h #define kfifo_initialized(fifo) ((fifo)->kfifo.mask) fifo 187 include/linux/kfifo.h #define kfifo_esize(fifo) ((fifo)->kfifo.esize) fifo 193 include/linux/kfifo.h #define kfifo_recsize(fifo) (sizeof(*(fifo)->rectype)) fifo 199 include/linux/kfifo.h #define kfifo_size(fifo) ((fifo)->kfifo.mask + 1) fifo 209 include/linux/kfifo.h #define kfifo_reset(fifo) \ fifo 211 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 223 include/linux/kfifo.h #define kfifo_reset_out(fifo) \ fifo 225 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 233 include/linux/kfifo.h #define kfifo_len(fifo) \ fifo 235 include/linux/kfifo.h typeof((fifo) + 1) __tmpl = (fifo); \ fifo 243 include/linux/kfifo.h #define kfifo_is_empty(fifo) \ fifo 245 include/linux/kfifo.h typeof((fifo) + 1) __tmpq = (fifo); \ fifo 253 include/linux/kfifo.h #define kfifo_is_full(fifo) \ fifo 255 include/linux/kfifo.h typeof((fifo) + 1) __tmpq = (fifo); \ fifo 263 include/linux/kfifo.h #define kfifo_avail(fifo) \ fifo 266 include/linux/kfifo.h typeof((fifo) + 1) __tmpq = (fifo); \ fifo 279 include/linux/kfifo.h #define kfifo_skip(fifo) \ fifo 281 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 296 include/linux/kfifo.h #define kfifo_peek_len(fifo) \ fifo 299 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 319 include/linux/kfifo.h #define kfifo_alloc(fifo, size, gfp_mask) \ fifo 322 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 334 include/linux/kfifo.h #define kfifo_free(fifo) \ fifo 336 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 353 include/linux/kfifo.h #define kfifo_init(fifo, buffer, size) \ fifo 355 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 374 include/linux/kfifo.h #define kfifo_put(fifo, val) \ fifo 376 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 411 include/linux/kfifo.h #define kfifo_get(fifo, val) \ fifo 414 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 450 include/linux/kfifo.h #define kfifo_peek(fifo, val) \ fifo 453 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 488 include/linux/kfifo.h #define kfifo_in(fifo, buf, n) \ fifo 490 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 510 include/linux/kfifo.h #define kfifo_in_spinlocked(fifo, buf, n, lock) \ fifo 515 include/linux/kfifo.h __ret = kfifo_in(fifo, buf, n); \ fifo 521 include/linux/kfifo.h #define kfifo_in_locked(fifo, buf, n, lock) \ fifo 522 include/linux/kfifo.h kfifo_in_spinlocked(fifo, buf, n, lock) fifo 536 include/linux/kfifo.h #define kfifo_out(fifo, buf, n) \ fifo 539 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 560 include/linux/kfifo.h #define kfifo_out_spinlocked(fifo, buf, n, lock) \ fifo 566 include/linux/kfifo.h __ret = kfifo_out(fifo, buf, n); \ fifo 573 include/linux/kfifo.h #define kfifo_out_locked(fifo, buf, n, lock) \ fifo 574 include/linux/kfifo.h kfifo_out_spinlocked(fifo, buf, n, lock) fifo 589 include/linux/kfifo.h #define kfifo_from_user(fifo, from, len, copied) \ fifo 592 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 617 include/linux/kfifo.h #define kfifo_to_user(fifo, to, len, copied) \ fifo 620 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 645 include/linux/kfifo.h #define kfifo_dma_in_prepare(fifo, sgl, nents, len) \ fifo 647 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 669 include/linux/kfifo.h #define kfifo_dma_in_finish(fifo, len) \ fifo 671 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 696 include/linux/kfifo.h #define kfifo_dma_out_prepare(fifo, sgl, nents, len) \ fifo 698 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 720 include/linux/kfifo.h #define kfifo_dma_out_finish(fifo, len) \ fifo 722 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 744 include/linux/kfifo.h #define kfifo_out_peek(fifo, buf, n) \ fifo 747 include/linux/kfifo.h typeof((fifo) + 1) __tmp = (fifo); \ fifo 758 include/linux/kfifo.h extern int __kfifo_alloc(struct __kfifo *fifo, unsigned int size, fifo 761 include/linux/kfifo.h extern void __kfifo_free(struct __kfifo *fifo); fifo 763 include/linux/kfifo.h extern int __kfifo_init(struct __kfifo *fifo, void *buffer, fifo 766 include/linux/kfifo.h extern unsigned int __kfifo_in(struct __kfifo *fifo, fifo 769 include/linux/kfifo.h extern unsigned int __kfifo_out(struct __kfifo *fifo, fifo 772 include/linux/kfifo.h extern int __kfifo_from_user(struct __kfifo *fifo, fifo 775 include/linux/kfifo.h extern int __kfifo_to_user(struct __kfifo *fifo, fifo 778 include/linux/kfifo.h extern unsigned int __kfifo_dma_in_prepare(struct __kfifo *fifo, fifo 781 include/linux/kfifo.h extern unsigned int __kfifo_dma_out_prepare(struct __kfifo *fifo, fifo 784 include/linux/kfifo.h extern unsigned int __kfifo_out_peek(struct __kfifo *fifo, fifo 787 include/linux/kfifo.h extern unsigned int __kfifo_in_r(struct __kfifo *fifo, fifo 790 include/linux/kfifo.h extern unsigned int __kfifo_out_r(struct __kfifo *fifo, fifo 793 include/linux/kfifo.h extern int __kfifo_from_user_r(struct __kfifo *fifo, fifo 797 include/linux/kfifo.h extern int __kfifo_to_user_r(struct __kfifo *fifo, void __user *to, fifo 800 include/linux/kfifo.h extern unsigned int __kfifo_dma_in_prepare_r(struct __kfifo *fifo, fifo 803 include/linux/kfifo.h extern void __kfifo_dma_in_finish_r(struct __kfifo *fifo, fifo 806 include/linux/kfifo.h extern unsigned int __kfifo_dma_out_prepare_r(struct __kfifo *fifo, fifo 809 include/linux/kfifo.h extern void __kfifo_dma_out_finish_r(struct __kfifo *fifo, size_t recsize); fifo 811 include/linux/kfifo.h extern unsigned int __kfifo_len_r(struct __kfifo *fifo, size_t recsize); fifo 813 include/linux/kfifo.h extern void __kfifo_skip_r(struct __kfifo *fifo, size_t recsize); fifo 815 include/linux/kfifo.h extern unsigned int __kfifo_out_peek_r(struct __kfifo *fifo, fifo 138 include/linux/mtd/sh_flctl.h resource_size_t fifo; fifo 13 include/linux/spi/cc2520.h int fifo; fifo 19 lib/kfifo.c static inline unsigned int kfifo_unused(struct __kfifo *fifo) fifo 21 lib/kfifo.c return (fifo->mask + 1) - (fifo->in - fifo->out); fifo 24 lib/kfifo.c int __kfifo_alloc(struct __kfifo *fifo, unsigned int size, fifo 33 lib/kfifo.c fifo->in = 0; fifo 34 lib/kfifo.c fifo->out = 0; fifo 35 lib/kfifo.c fifo->esize = esize; fifo 38 lib/kfifo.c fifo->data = NULL; fifo 39 lib/kfifo.c fifo->mask = 0; fifo 43 lib/kfifo.c fifo->data = kmalloc_array(esize, size, gfp_mask); fifo 45 lib/kfifo.c if (!fifo->data) { fifo 46 lib/kfifo.c fifo->mask = 0; fifo 49 lib/kfifo.c fifo->mask = size - 1; fifo 55 lib/kfifo.c void __kfifo_free(struct __kfifo *fifo) fifo 57 lib/kfifo.c kfree(fifo->data); fifo 58 lib/kfifo.c fifo->in = 0; fifo 59 lib/kfifo.c fifo->out = 0; fifo 60 lib/kfifo.c fifo->esize = 0; fifo 61 lib/kfifo.c fifo->data = NULL; fifo 62 lib/kfifo.c fifo->mask = 0; fifo 66 lib/kfifo.c int __kfifo_init(struct __kfifo *fifo, void *buffer, fifo 74 lib/kfifo.c fifo->in = 0; fifo 75 lib/kfifo.c fifo->out = 0; fifo 76 lib/kfifo.c fifo->esize = esize; fifo 77 lib/kfifo.c fifo->data = buffer; fifo 80 lib/kfifo.c fifo->mask = 0; fifo 83 lib/kfifo.c fifo->mask = size - 1; fifo 89 lib/kfifo.c static void kfifo_copy_in(struct __kfifo *fifo, const void *src, fifo 92 lib/kfifo.c unsigned int size = fifo->mask + 1; fifo 93 lib/kfifo.c unsigned int esize = fifo->esize; fifo 96 lib/kfifo.c off &= fifo->mask; fifo 104 lib/kfifo.c memcpy(fifo->data + off, src, l); fifo 105 lib/kfifo.c memcpy(fifo->data, src + l, len - l); fifo 113 lib/kfifo.c unsigned int __kfifo_in(struct __kfifo *fifo, fifo 118 lib/kfifo.c l = kfifo_unused(fifo); fifo 122 lib/kfifo.c kfifo_copy_in(fifo, buf, len, fifo->in); fifo 123 lib/kfifo.c fifo->in += len; fifo 128 lib/kfifo.c static void kfifo_copy_out(struct __kfifo *fifo, void *dst, fifo 131 lib/kfifo.c unsigned int size = fifo->mask + 1; fifo 132 lib/kfifo.c unsigned int esize = fifo->esize; fifo 135 lib/kfifo.c off &= fifo->mask; fifo 143 lib/kfifo.c memcpy(dst, fifo->data + off, l); fifo 144 lib/kfifo.c memcpy(dst + l, fifo->data, len - l); fifo 152 lib/kfifo.c unsigned int __kfifo_out_peek(struct __kfifo *fifo, fifo 157 lib/kfifo.c l = fifo->in - fifo->out; fifo 161 lib/kfifo.c kfifo_copy_out(fifo, buf, len, fifo->out); fifo 166 lib/kfifo.c unsigned int __kfifo_out(struct __kfifo *fifo, fifo 169 lib/kfifo.c len = __kfifo_out_peek(fifo, buf, len); fifo 170 lib/kfifo.c fifo->out += len; fifo 175 lib/kfifo.c static unsigned long kfifo_copy_from_user(struct __kfifo *fifo, fifo 179 lib/kfifo.c unsigned int size = fifo->mask + 1; fifo 180 lib/kfifo.c unsigned int esize = fifo->esize; fifo 184 lib/kfifo.c off &= fifo->mask; fifo 192 lib/kfifo.c ret = copy_from_user(fifo->data + off, from, l); fifo 196 lib/kfifo.c ret = copy_from_user(fifo->data, from + l, len - l); fifo 210 lib/kfifo.c int __kfifo_from_user(struct __kfifo *fifo, const void __user *from, fifo 215 lib/kfifo.c unsigned int esize = fifo->esize; fifo 221 lib/kfifo.c l = kfifo_unused(fifo); fifo 225 lib/kfifo.c ret = kfifo_copy_from_user(fifo, from, len, fifo->in, copied); fifo 231 lib/kfifo.c fifo->in += len; fifo 236 lib/kfifo.c static unsigned long kfifo_copy_to_user(struct __kfifo *fifo, void __user *to, fifo 241 lib/kfifo.c unsigned int size = fifo->mask + 1; fifo 242 lib/kfifo.c unsigned int esize = fifo->esize; fifo 244 lib/kfifo.c off &= fifo->mask; fifo 252 lib/kfifo.c ret = copy_to_user(to, fifo->data + off, l); fifo 256 lib/kfifo.c ret = copy_to_user(to + l, fifo->data, len - l); fifo 270 lib/kfifo.c int __kfifo_to_user(struct __kfifo *fifo, void __user *to, fifo 275 lib/kfifo.c unsigned int esize = fifo->esize; fifo 281 lib/kfifo.c l = fifo->in - fifo->out; fifo 284 lib/kfifo.c ret = kfifo_copy_to_user(fifo, to, len, fifo->out, copied); fifo 290 lib/kfifo.c fifo->out += len; fifo 334 lib/kfifo.c static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, fifo 337 lib/kfifo.c unsigned int size = fifo->mask + 1; fifo 338 lib/kfifo.c unsigned int esize = fifo->esize; fifo 342 lib/kfifo.c off &= fifo->mask; fifo 350 lib/kfifo.c n = setup_sgl_buf(sgl, fifo->data + off, nents, l); fifo 351 lib/kfifo.c n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l); fifo 356 lib/kfifo.c unsigned int __kfifo_dma_in_prepare(struct __kfifo *fifo, fifo 361 lib/kfifo.c l = kfifo_unused(fifo); fifo 365 lib/kfifo.c return setup_sgl(fifo, sgl, nents, len, fifo->in); fifo 369 lib/kfifo.c unsigned int __kfifo_dma_out_prepare(struct __kfifo *fifo, fifo 374 lib/kfifo.c l = fifo->in - fifo->out; fifo 378 lib/kfifo.c return setup_sgl(fifo, sgl, nents, len, fifo->out); fifo 398 lib/kfifo.c static unsigned int __kfifo_peek_n(struct __kfifo *fifo, size_t recsize) fifo 401 lib/kfifo.c unsigned int mask = fifo->mask; fifo 402 lib/kfifo.c unsigned char *data = fifo->data; fifo 404 lib/kfifo.c l = __KFIFO_PEEK(data, fifo->out, mask); fifo 407 lib/kfifo.c l |= __KFIFO_PEEK(data, fifo->out + 1, mask) << 8; fifo 421 lib/kfifo.c static void __kfifo_poke_n(struct __kfifo *fifo, unsigned int n, size_t recsize) fifo 423 lib/kfifo.c unsigned int mask = fifo->mask; fifo 424 lib/kfifo.c unsigned char *data = fifo->data; fifo 426 lib/kfifo.c __KFIFO_POKE(data, fifo->in, mask, n); fifo 429 lib/kfifo.c __KFIFO_POKE(data, fifo->in + 1, mask, n >> 8); fifo 432 lib/kfifo.c unsigned int __kfifo_len_r(struct __kfifo *fifo, size_t recsize) fifo 434 lib/kfifo.c return __kfifo_peek_n(fifo, recsize); fifo 438 lib/kfifo.c unsigned int __kfifo_in_r(struct __kfifo *fifo, const void *buf, fifo 441 lib/kfifo.c if (len + recsize > kfifo_unused(fifo)) fifo 444 lib/kfifo.c __kfifo_poke_n(fifo, len, recsize); fifo 446 lib/kfifo.c kfifo_copy_in(fifo, buf, len, fifo->in + recsize); fifo 447 lib/kfifo.c fifo->in += len + recsize; fifo 452 lib/kfifo.c static unsigned int kfifo_out_copy_r(struct __kfifo *fifo, fifo 455 lib/kfifo.c *n = __kfifo_peek_n(fifo, recsize); fifo 460 lib/kfifo.c kfifo_copy_out(fifo, buf, len, fifo->out + recsize); fifo 464 lib/kfifo.c unsigned int __kfifo_out_peek_r(struct __kfifo *fifo, void *buf, fifo 469 lib/kfifo.c if (fifo->in == fifo->out) fifo 472 lib/kfifo.c return kfifo_out_copy_r(fifo, buf, len, recsize, &n); fifo 476 lib/kfifo.c unsigned int __kfifo_out_r(struct __kfifo *fifo, void *buf, fifo 481 lib/kfifo.c if (fifo->in == fifo->out) fifo 484 lib/kfifo.c len = kfifo_out_copy_r(fifo, buf, len, recsize, &n); fifo 485 lib/kfifo.c fifo->out += n + recsize; fifo 490 lib/kfifo.c void __kfifo_skip_r(struct __kfifo *fifo, size_t recsize) fifo 494 lib/kfifo.c n = __kfifo_peek_n(fifo, recsize); fifo 495 lib/kfifo.c fifo->out += n + recsize; fifo 499 lib/kfifo.c int __kfifo_from_user_r(struct __kfifo *fifo, const void __user *from, fifo 506 lib/kfifo.c if (len + recsize > kfifo_unused(fifo)) { fifo 511 lib/kfifo.c __kfifo_poke_n(fifo, len, recsize); fifo 513 lib/kfifo.c ret = kfifo_copy_from_user(fifo, from, len, fifo->in + recsize, copied); fifo 518 lib/kfifo.c fifo->in += len + recsize; fifo 523 lib/kfifo.c int __kfifo_to_user_r(struct __kfifo *fifo, void __user *to, fifo 529 lib/kfifo.c if (fifo->in == fifo->out) { fifo 534 lib/kfifo.c n = __kfifo_peek_n(fifo, recsize); fifo 538 lib/kfifo.c ret = kfifo_copy_to_user(fifo, to, len, fifo->out + recsize, copied); fifo 543 lib/kfifo.c fifo->out += n + recsize; fifo 548 lib/kfifo.c unsigned int __kfifo_dma_in_prepare_r(struct __kfifo *fifo, fifo 555 lib/kfifo.c if (len + recsize > kfifo_unused(fifo)) fifo 558 lib/kfifo.c return setup_sgl(fifo, sgl, nents, len, fifo->in + recsize); fifo 562 lib/kfifo.c void __kfifo_dma_in_finish_r(struct __kfifo *fifo, fifo 566 lib/kfifo.c __kfifo_poke_n(fifo, len, recsize); fifo 567 lib/kfifo.c fifo->in += len + recsize; fifo 571 lib/kfifo.c unsigned int __kfifo_dma_out_prepare_r(struct __kfifo *fifo, fifo 578 lib/kfifo.c if (len + recsize > fifo->in - fifo->out) fifo 581 lib/kfifo.c return setup_sgl(fifo, sgl, nents, len, fifo->out + recsize); fifo 585 lib/kfifo.c void __kfifo_dma_out_finish_r(struct __kfifo *fifo, size_t recsize) fifo 589 lib/kfifo.c len = __kfifo_peek_n(fifo, recsize); fifo 590 lib/kfifo.c fifo->out += len + recsize; fifo 1433 mm/memory-failure.c DECLARE_KFIFO(fifo, struct memory_failure_entry, fifo 1468 mm/memory-failure.c if (kfifo_put(&mf_cpu->fifo, entry)) fifo 1488 mm/memory-failure.c gotten = kfifo_get(&mf_cpu->fifo, &entry); fifo 1507 mm/memory-failure.c INIT_KFIFO(mf_cpu->fifo); fifo 67 net/openvswitch/actions.c struct deferred_action fifo[DEFERRED_ACTION_FIFO_SIZE]; fifo 95 net/openvswitch/actions.c static void action_fifo_init(struct action_fifo *fifo) fifo 97 net/openvswitch/actions.c fifo->head = 0; fifo 98 net/openvswitch/actions.c fifo->tail = 0; fifo 101 net/openvswitch/actions.c static bool action_fifo_is_empty(const struct action_fifo *fifo) fifo 103 net/openvswitch/actions.c return (fifo->head == fifo->tail); fifo 106 net/openvswitch/actions.c static struct deferred_action *action_fifo_get(struct action_fifo *fifo) fifo 108 net/openvswitch/actions.c if (action_fifo_is_empty(fifo)) fifo 111 net/openvswitch/actions.c return &fifo->fifo[fifo->tail++]; fifo 114 net/openvswitch/actions.c static struct deferred_action *action_fifo_put(struct action_fifo *fifo) fifo 116 net/openvswitch/actions.c if (fifo->head >= DEFERRED_ACTION_FIFO_SIZE - 1) fifo 119 net/openvswitch/actions.c return &fifo->fifo[fifo->head++]; fifo 128 net/openvswitch/actions.c struct action_fifo *fifo; fifo 131 net/openvswitch/actions.c fifo = this_cpu_ptr(action_fifos); fifo 132 net/openvswitch/actions.c da = action_fifo_put(fifo); fifo 1437 net/openvswitch/actions.c struct action_fifo *fifo = this_cpu_ptr(action_fifos); fifo 1440 net/openvswitch/actions.c if (action_fifo_is_empty(fifo)) fifo 1445 net/openvswitch/actions.c struct deferred_action *da = action_fifo_get(fifo); fifo 1455 net/openvswitch/actions.c } while (!action_fifo_is_empty(fifo)); fifo 1458 net/openvswitch/actions.c action_fifo_init(fifo); fifo 19 samples/kfifo/dma-example.c static struct kfifo fifo; fifo 30 samples/kfifo/dma-example.c if (kfifo_alloc(&fifo, FIFO_SIZE, GFP_KERNEL)) { fifo 35 samples/kfifo/dma-example.c printk(KERN_INFO "queue size: %u\n", kfifo_size(&fifo)); fifo 37 samples/kfifo/dma-example.c kfifo_in(&fifo, "test", 4); fifo 40 samples/kfifo/dma-example.c kfifo_put(&fifo, i); fifo 43 samples/kfifo/dma-example.c kfifo_skip(&fifo); fifo 45 samples/kfifo/dma-example.c printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); fifo 63 samples/kfifo/dma-example.c nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); fifo 90 samples/kfifo/dma-example.c kfifo_dma_in_finish(&fifo, ret); fifo 93 samples/kfifo/dma-example.c nents = kfifo_dma_out_prepare(&fifo, sg, ARRAY_SIZE(sg), 8); fifo 119 samples/kfifo/dma-example.c kfifo_dma_out_finish(&fifo, ret); fifo 121 samples/kfifo/dma-example.c ret = kfifo_len(&fifo); fifo 122 samples/kfifo/dma-example.c printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); fifo 135 samples/kfifo/dma-example.c kfifo_free(&fifo); fifo 112 samples/vfio-mdev/mtty.c u8 fifo[MAX_FIFO_SIZE]; fifo 310 samples/vfio-mdev/mtty.c mdev_state->s[index].rxtx.fifo[ fifo 475 samples/vfio-mdev/mtty.c *buf = mdev_state->s[index].rxtx.fifo[ fifo 247 sound/arm/aaci.c : "r" (aacirun->fifo) fifo 307 sound/arm/aaci.c : "r" (aacirun->fifo) fifo 960 sound/arm/aaci.c writel(0, aacirun->fifo); fifo 1011 sound/arm/aaci.c aaci->playback.fifo = aaci->base + AACI_DR1; fifo 1018 sound/arm/aaci.c aaci->capture.fifo = aaci->base + AACI_DR1; fifo 201 sound/arm/aaci.h void __iomem *fifo; fifo 345 sound/core/seq/seq_clientmgr.c user->fifo = NULL; fifo 350 sound/core/seq/seq_clientmgr.c user->fifo = snd_seq_fifo_new(user->fifo_pool_size); fifo 351 sound/core/seq/seq_clientmgr.c if (user->fifo == NULL) { fifo 384 sound/core/seq/seq_clientmgr.c if (client->data.user.fifo) fifo 385 sound/core/seq/seq_clientmgr.c snd_seq_fifo_delete(&client->data.user.fifo); fifo 405 sound/core/seq/seq_clientmgr.c struct snd_seq_fifo *fifo; fifo 420 sound/core/seq/seq_clientmgr.c if (!client->accept_input || (fifo = client->data.user.fifo) == NULL) fifo 423 sound/core/seq/seq_clientmgr.c if (atomic_read(&fifo->overflow) > 0) { fifo 425 sound/core/seq/seq_clientmgr.c snd_seq_fifo_clear(fifo); fifo 432 sound/core/seq/seq_clientmgr.c snd_seq_fifo_lock(fifo); fifo 439 sound/core/seq/seq_clientmgr.c if ((err = snd_seq_fifo_cell_out(fifo, &cell, nonblock)) < 0) { fifo 475 sound/core/seq/seq_clientmgr.c snd_seq_fifo_cell_putback(fifo, cell); fifo 479 sound/core/seq/seq_clientmgr.c snd_seq_fifo_unlock(fifo); fifo 631 sound/core/seq/seq_clientmgr.c if (dest->data.user.fifo) fifo 632 sound/core/seq/seq_clientmgr.c result = snd_seq_fifo_event_in(dest->data.user.fifo, event); fifo 1132 sound/core/seq/seq_clientmgr.c client->data.user.fifo) { fifo 1135 sound/core/seq/seq_clientmgr.c if (snd_seq_fifo_poll_wait(client->data.user.fifo, file, wait)) fifo 1838 sound/core/seq/seq_clientmgr.c info->input_free = snd_seq_fifo_unused_cells(cptr->data.user.fifo); fifo 1874 sound/core/seq/seq_clientmgr.c if (client->type == USER_CLIENT && client->data.user.fifo != NULL && fifo 1879 sound/core/seq/seq_clientmgr.c rc = snd_seq_fifo_resize(client->data.user.fifo, info->input_pool); fifo 1907 sound/core/seq/seq_clientmgr.c if (client->type == USER_CLIENT && client->data.user.fifo) fifo 1908 sound/core/seq/seq_clientmgr.c snd_seq_fifo_clear(client->data.user.fifo); fifo 2475 sound/core/seq/seq_clientmgr.c if (client->type == USER_CLIENT && client->data.user.fifo && fifo 2476 sound/core/seq/seq_clientmgr.c client->data.user.fifo->pool) { fifo 2478 sound/core/seq/seq_clientmgr.c snd_seq_info_pool(buffer, client->data.user.fifo->pool, " "); fifo 24 sound/core/seq/seq_clientmgr.h struct snd_seq_fifo *fifo; /* queue for incoming events */ fifo 49 sound/core/seq/seq_fifo.c void snd_seq_fifo_delete(struct snd_seq_fifo **fifo) fifo 53 sound/core/seq/seq_fifo.c if (snd_BUG_ON(!fifo)) fifo 55 sound/core/seq/seq_fifo.c f = *fifo; fifo 58 sound/core/seq/seq_fifo.c *fifo = NULL; fifo 38 sound/core/seq/seq_fifo.h #define snd_seq_fifo_lock(fifo) snd_use_lock_use(&(fifo)->use_lock) fifo 39 sound/core/seq/seq_fifo.h #define snd_seq_fifo_unlock(fifo) snd_use_lock_free(&(fifo)->use_lock) fifo 59 sound/core/seq/seq_prioq.c void snd_seq_prioq_delete(struct snd_seq_prioq **fifo) fifo 61 sound/core/seq/seq_prioq.c struct snd_seq_prioq *f = *fifo; fifo 62 sound/core/seq/seq_prioq.c *fifo = NULL; fifo 26 sound/core/seq/seq_prioq.h void snd_seq_prioq_delete(struct snd_seq_prioq **fifo); fifo 767 sound/pci/au88x0/au88x0_core.c vortex_fifo_clearadbdata(vortex_t * vortex, int fifo, int x) fifo 772 sound/pci/au88x0/au88x0_core.c (((fifo << FIFO_SIZE_BITS) + x) << 2), 0); fifo 776 sound/pci/au88x0/au88x0_core.c static void vortex_fifo_adbinitialize(vortex_t * vortex, int fifo, int j) fifo 778 sound/pci/au88x0/au88x0_core.c vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE); fifo 780 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2), fifo 783 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2), fifo 788 sound/pci/au88x0/au88x0_core.c static void vortex_fifo_setadbvalid(vortex_t * vortex, int fifo, int en) fifo 790 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2), fifo 791 sound/pci/au88x0/au88x0_core.c (hwread(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2)) & fifo 796 sound/pci/au88x0/au88x0_core.c vortex_fifo_setadbctrl(vortex_t * vortex, int fifo, int stereo, int priority, fifo 808 sound/pci/au88x0/au88x0_core.c temp = hwread(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2)); fifo 822 sound/pci/au88x0/au88x0_core.c vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE); // this_4 fifo 860 sound/pci/au88x0/au88x0_core.c vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE); fifo 862 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2), temp); fifo 863 sound/pci/au88x0/au88x0_core.c hwread(vortex->mmio, VORTEX_FIFO_ADBCTRL + (fifo << 2)); fifo 867 sound/pci/au88x0/au88x0_core.c static void vortex_fifo_clearwtdata(vortex_t * vortex, int fifo, int x) fifo 874 sound/pci/au88x0/au88x0_core.c (((fifo << FIFO_SIZE_BITS) + x) << 2), 0); fifo 877 sound/pci/au88x0/au88x0_core.c static void vortex_fifo_wtinitialize(vortex_t * vortex, int fifo, int j) fifo 879 sound/pci/au88x0/au88x0_core.c vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); fifo 881 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), fifo 884 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), fifo 889 sound/pci/au88x0/au88x0_core.c static void vortex_fifo_setwtvalid(vortex_t * vortex, int fifo, int en) fifo 891 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), fifo 892 sound/pci/au88x0/au88x0_core.c (hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)) & fifo 897 sound/pci/au88x0/au88x0_core.c vortex_fifo_setwtctrl(vortex_t * vortex, int fifo, int ctrl, int priority, fifo 904 sound/pci/au88x0/au88x0_core.c temp = hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)); fifo 915 sound/pci/au88x0/au88x0_core.c vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); // this_4 fifo 953 sound/pci/au88x0/au88x0_core.c vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); fifo 955 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2), temp); fifo 956 sound/pci/au88x0/au88x0_core.c hwread(vortex->mmio, VORTEX_FIFO_WTCTRL + (fifo << 2)); fifo 13 sound/pci/au88x0/au88x0_synth.c static void vortex_fifo_setwtvalid(vortex_t * vortex, int fifo, int en); fifo 21 sound/pci/au88x0/au88x0_synth.c static void vortex_fifo_wtinitialize(vortex_t * vortex, int fifo, int j); fifo 849 sound/pci/intel8x0.c unsigned int val, fifo; fifo 860 sound/pci/intel8x0.c fifo = igetdword(chip, fiforeg[ichdev->ali_slot / 4]); fifo 861 sound/pci/intel8x0.c fifo &= ~(0xff << (ichdev->ali_slot % 4)); fifo 862 sound/pci/intel8x0.c fifo |= 0x83 << (ichdev->ali_slot % 4); fifo 863 sound/pci/intel8x0.c iputdword(chip, fiforeg[ichdev->ali_slot / 4], fifo); fifo 372 sound/soc/fsl/mpc5200_dma.c phys_addr_t fifo; fifo 419 sound/soc/fsl/mpc5200_dma.c fifo = res.start + offsetof(struct mpc52xx_psc, buffer.buffer_32); fifo 421 sound/soc/fsl/mpc5200_dma.c bcom_psc_gen_bd_rx_init(psc_dma->id, 10, fifo, 512); fifo 423 sound/soc/fsl/mpc5200_dma.c bcom_psc_gen_bd_tx_init(psc_dma->id, 10, fifo); fifo 67 sound/soc/meson/axg-fifo.c static void __dma_enable(struct axg_fifo *fifo, bool enable) fifo 69 sound/soc/meson/axg-fifo.c regmap_update_bits(fifo->map, FIFO_CTRL0, CTRL0_DMA_EN, fifo 75 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo = axg_fifo_data(ss); fifo 81 sound/soc/meson/axg-fifo.c __dma_enable(fifo, true); fifo 86 sound/soc/meson/axg-fifo.c __dma_enable(fifo, false); fifo 97 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo = axg_fifo_data(ss); fifo 101 sound/soc/meson/axg-fifo.c regmap_read(fifo->map, FIFO_STATUS2, &addr); fifo 110 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo = axg_fifo_data(ss); fifo 123 sound/soc/meson/axg-fifo.c regmap_write(fifo->map, FIFO_START_ADDR, runtime->dma_addr); fifo 124 sound/soc/meson/axg-fifo.c regmap_write(fifo->map, FIFO_FINISH_ADDR, end_ptr); fifo 128 sound/soc/meson/axg-fifo.c regmap_write(fifo->map, FIFO_INT_ADDR, burst_num); fifo 143 sound/soc/meson/axg-fifo.c regmap_field_write(fifo->field_threshold, fifo 147 sound/soc/meson/axg-fifo.c regmap_update_bits(fifo->map, FIFO_CTRL0, fifo 157 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo = axg_fifo_data(ss); fifo 166 sound/soc/meson/axg-fifo.c regmap_write(fifo->map, FIFO_INIT_ADDR, runtime->dma_addr); fifo 173 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo = axg_fifo_data(ss); fifo 176 sound/soc/meson/axg-fifo.c regmap_update_bits(fifo->map, FIFO_CTRL0, fifo 182 sound/soc/meson/axg-fifo.c static void axg_fifo_ack_irq(struct axg_fifo *fifo, u8 mask) fifo 184 sound/soc/meson/axg-fifo.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 189 sound/soc/meson/axg-fifo.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 197 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo = axg_fifo_data(ss); fifo 200 sound/soc/meson/axg-fifo.c regmap_read(fifo->map, FIFO_STATUS1, &status); fifo 210 sound/soc/meson/axg-fifo.c axg_fifo_ack_irq(fifo, status); fifo 217 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo = axg_fifo_data(ss); fifo 239 sound/soc/meson/axg-fifo.c ret = request_irq(fifo->irq, axg_fifo_pcm_irq_block, 0, fifo 245 sound/soc/meson/axg-fifo.c ret = clk_prepare_enable(fifo->pclk); fifo 250 sound/soc/meson/axg-fifo.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 255 sound/soc/meson/axg-fifo.c __dma_enable(fifo, false); fifo 258 sound/soc/meson/axg-fifo.c regmap_update_bits(fifo->map, FIFO_CTRL0, fifo 262 sound/soc/meson/axg-fifo.c axg_fifo_ack_irq(fifo, FIFO_INT_MASK); fifo 265 sound/soc/meson/axg-fifo.c ret = reset_control_deassert(fifo->arb); fifo 267 sound/soc/meson/axg-fifo.c clk_disable_unprepare(fifo->pclk); fifo 274 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo = axg_fifo_data(ss); fifo 278 sound/soc/meson/axg-fifo.c ret = reset_control_assert(fifo->arb); fifo 281 sound/soc/meson/axg-fifo.c clk_disable_unprepare(fifo->pclk); fifo 284 sound/soc/meson/axg-fifo.c free_irq(fifo->irq, ss); fifo 334 sound/soc/meson/axg-fifo.c struct axg_fifo *fifo; fifo 343 sound/soc/meson/axg-fifo.c fifo = devm_kzalloc(dev, sizeof(*fifo), GFP_KERNEL); fifo 344 sound/soc/meson/axg-fifo.c if (!fifo) fifo 346 sound/soc/meson/axg-fifo.c platform_set_drvdata(pdev, fifo); fifo 352 sound/soc/meson/axg-fifo.c fifo->map = devm_regmap_init_mmio(dev, regs, &axg_fifo_regmap_cfg); fifo 353 sound/soc/meson/axg-fifo.c if (IS_ERR(fifo->map)) { fifo 355 sound/soc/meson/axg-fifo.c PTR_ERR(fifo->map)); fifo 356 sound/soc/meson/axg-fifo.c return PTR_ERR(fifo->map); fifo 359 sound/soc/meson/axg-fifo.c fifo->pclk = devm_clk_get(dev, NULL); fifo 360 sound/soc/meson/axg-fifo.c if (IS_ERR(fifo->pclk)) { fifo 361 sound/soc/meson/axg-fifo.c if (PTR_ERR(fifo->pclk) != -EPROBE_DEFER) fifo 363 sound/soc/meson/axg-fifo.c PTR_ERR(fifo->pclk)); fifo 364 sound/soc/meson/axg-fifo.c return PTR_ERR(fifo->pclk); fifo 367 sound/soc/meson/axg-fifo.c fifo->arb = devm_reset_control_get_exclusive(dev, NULL); fifo 368 sound/soc/meson/axg-fifo.c if (IS_ERR(fifo->arb)) { fifo 369 sound/soc/meson/axg-fifo.c if (PTR_ERR(fifo->arb) != -EPROBE_DEFER) fifo 371 sound/soc/meson/axg-fifo.c PTR_ERR(fifo->arb)); fifo 372 sound/soc/meson/axg-fifo.c return PTR_ERR(fifo->arb); fifo 375 sound/soc/meson/axg-fifo.c fifo->irq = of_irq_get(dev->of_node, 0); fifo 376 sound/soc/meson/axg-fifo.c if (fifo->irq <= 0) { fifo 377 sound/soc/meson/axg-fifo.c dev_err(dev, "failed to get irq: %d\n", fifo->irq); fifo 378 sound/soc/meson/axg-fifo.c return fifo->irq; fifo 381 sound/soc/meson/axg-fifo.c fifo->field_threshold = fifo 382 sound/soc/meson/axg-fifo.c devm_regmap_field_alloc(dev, fifo->map, data->field_threshold); fifo 383 sound/soc/meson/axg-fifo.c if (IS_ERR(fifo->field_threshold)) fifo 384 sound/soc/meson/axg-fifo.c return PTR_ERR(fifo->field_threshold); fifo 36 sound/soc/meson/axg-frddr.c struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); fifo 39 sound/soc/meson/axg-frddr.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 41 sound/soc/meson/axg-frddr.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 43 sound/soc/meson/axg-frddr.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 52 sound/soc/meson/axg-frddr.c struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); fifo 57 sound/soc/meson/axg-frddr.c ret = clk_prepare_enable(fifo->pclk); fifo 62 sound/soc/meson/axg-frddr.c regmap_update_bits(fifo->map, FIFO_CTRL0, CTRL0_FRDDR_PP_MODE, 0); fifo 71 sound/soc/meson/axg-frddr.c regmap_update_bits(fifo->map, FIFO_CTRL1, CTRL1_FRDDR_DEPTH_MASK, fifo 80 sound/soc/meson/axg-frddr.c struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); fifo 82 sound/soc/meson/axg-frddr.c clk_disable_unprepare(fifo->pclk); fifo 41 sound/soc/meson/axg-toddr.c struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); fifo 44 sound/soc/meson/axg-toddr.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 46 sound/soc/meson/axg-toddr.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 48 sound/soc/meson/axg-toddr.c regmap_update_bits(fifo->map, FIFO_CTRL1, fifo 58 sound/soc/meson/axg-toddr.c struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); fifo 77 sound/soc/meson/axg-toddr.c regmap_update_bits(fifo->map, FIFO_CTRL0, fifo 91 sound/soc/meson/axg-toddr.c struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); fifo 95 sound/soc/meson/axg-toddr.c ret = clk_prepare_enable(fifo->pclk); fifo 100 sound/soc/meson/axg-toddr.c regmap_update_bits(fifo->map, FIFO_CTRL0, CTRL0_TODDR_SEL_RESAMPLE, 0); fifo 103 sound/soc/meson/axg-toddr.c regmap_update_bits(fifo->map, FIFO_CTRL0, CTRL0_TODDR_EXT_SIGNED, fifo 107 sound/soc/meson/axg-toddr.c regmap_update_bits(fifo->map, FIFO_CTRL0, CTRL0_TODDR_PP_MODE, 0); fifo 115 sound/soc/meson/axg-toddr.c struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); fifo 117 sound/soc/meson/axg-toddr.c clk_disable_unprepare(fifo->pclk); fifo 579 sound/usb/line6/driver.c while (kfifo_len(&line6->messages.fifo) == 0) { fifo 584 sound/usb/line6/driver.c kfifo_len(&line6->messages.fifo) != 0); fifo 592 sound/usb/line6/driver.c if (kfifo_peek_len(&line6->messages.fifo) > count) { fifo 596 sound/usb/line6/driver.c rv = kfifo_to_user(&line6->messages.fifo, buf, count, &out_count); fifo 642 sound/usb/line6/driver.c if (kfifo_avail(&line6->messages.fifo) >= line6->message_length) { fifo 644 sound/usb/line6/driver.c kfifo_in(&line6->messages.fifo, fifo 661 sound/usb/line6/driver.c INIT_KFIFO(line6->messages.fifo); fifo 167 sound/usb/line6/driver.h fifo;