/linux-6.12.1/lib/ |
D | kfifo.c | 20 static inline unsigned int kfifo_unused(struct __kfifo *fifo) in kfifo_unused() argument 22 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused() 25 int __kfifo_alloc(struct __kfifo *fifo, unsigned int size, in __kfifo_alloc() argument 34 fifo->in = 0; in __kfifo_alloc() 35 fifo->out = 0; in __kfifo_alloc() 36 fifo->esize = esize; in __kfifo_alloc() 39 fifo->data = NULL; in __kfifo_alloc() 40 fifo->mask = 0; in __kfifo_alloc() 44 fifo->data = kmalloc_array(esize, size, gfp_mask); in __kfifo_alloc() 46 if (!fifo->data) { in __kfifo_alloc() [all …]
|
/linux-6.12.1/fs/bcachefs/ |
D | fifo.h | 15 #define fifo_buf_size(fifo) \ argument 16 ((fifo)->size \ 17 ? roundup_pow_of_two((fifo)->size) * sizeof((fifo)->data[0]) \ 20 #define init_fifo(fifo, _size, _gfp) \ argument 22 (fifo)->front = (fifo)->back = 0; \ 23 (fifo)->size = (_size); \ 24 (fifo)->mask = (fifo)->size \ 25 ? roundup_pow_of_two((fifo)->size) - 1 \ 27 (fifo)->data = kvmalloc(fifo_buf_size(fifo), (_gfp)); \ 30 #define free_fifo(fifo) \ argument [all …]
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | base.c | 44 nvkm_runl_foreach(runl, engine->subdev.device->fifo) { in nvkm_fifo_ctxsw_in_progress() 55 nvkm_fifo_pause(struct nvkm_fifo *fifo, unsigned long *flags) in nvkm_fifo_pause() argument 57 return fifo->func->pause(fifo, flags); in nvkm_fifo_pause() 61 nvkm_fifo_start(struct nvkm_fifo *fifo, unsigned long *flags) in nvkm_fifo_start() argument 63 return fifo->func->start(fifo, flags); in nvkm_fifo_start() 67 nvkm_fifo_fault(struct nvkm_fifo *fifo, struct nvkm_fault_data *info) in nvkm_fifo_fault() argument 69 return fifo->func->mmu_fault->recover(fifo, info); in nvkm_fifo_fault() 76 struct nvkm_fifo *fifo = nvkm_fifo(oclass->engine); in nvkm_fifo_class_new() local 78 if (oclass->engn == &fifo->func->cgrp.user) in nvkm_fifo_class_new() 79 return nvkm_ucgrp_new(fifo, oclass, argv, argc, pobject); in nvkm_fifo_class_new() [all …]
|
D | Kbuild | 2 nvkm-y += nvkm/engine/fifo/base.o 3 nvkm-y += nvkm/engine/fifo/cgrp.o 4 nvkm-y += nvkm/engine/fifo/chan.o 5 nvkm-y += nvkm/engine/fifo/chid.o 6 nvkm-y += nvkm/engine/fifo/runl.o 7 nvkm-y += nvkm/engine/fifo/runq.o 9 nvkm-y += nvkm/engine/fifo/nv04.o 10 nvkm-y += nvkm/engine/fifo/nv10.o 11 nvkm-y += nvkm/engine/fifo/nv17.o 12 nvkm-y += nvkm/engine/fifo/nv40.o [all …]
|
D | gf100.c | 43 nvkm_wr32(chan->cgrp->runl->fifo->engine.subdev.device, 0x002634, chan->id); in gf100_chan_preempt() 49 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gf100_chan_stop() 57 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gf100_chan_start() 67 struct nvkm_fifo *fifo = chan->cgrp->runl->fifo; in gf100_chan_unbind() local 68 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_chan_unbind() 71 gf100_fifo_intr_engine(fifo); in gf100_chan_unbind() 79 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gf100_chan_bind() 205 struct nvkm_fifo *fifo = runl->fifo; in gf100_engn_mmu_fault_triggered() local 206 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_engn_mmu_fault_triggered() 213 spin_lock(&fifo->lock); in gf100_engn_mmu_fault_triggered() [all …]
|
D | nv04.c | 43 struct nvkm_fifo *fifo = chan->cgrp->runl->fifo; in nv04_chan_stop() local 44 struct nvkm_device *device = fifo->engine.subdev.device; in nv04_chan_stop() 52 spin_lock_irqsave(&fifo->lock, flags); in nv04_chan_stop() 56 chid = nvkm_rd32(device, NV03_PFIFO_CACHE1_PUSH1) & fifo->chid->mask; in nv04_chan_stop() 80 nvkm_wr32(device, NV03_PFIFO_CACHE1_PUSH1, fifo->chid->mask); in nv04_chan_stop() 88 spin_unlock_irqrestore(&fifo->lock, flags); in nv04_chan_stop() 94 struct nvkm_fifo *fifo = chan->cgrp->runl->fifo; in nv04_chan_start() local 97 spin_lock_irqsave(&fifo->lock, flags); in nv04_chan_start() 98 nvkm_mask(fifo->engine.subdev.device, NV04_PFIFO_MODE, BIT(chan->id), BIT(chan->id)); in nv04_chan_start() 99 spin_unlock_irqrestore(&fifo->lock, flags); in nv04_chan_start() [all …]
|
D | gk104.c | 42 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gk104_chan_stop() 50 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gk104_chan_start() 58 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gk104_chan_unbind() 66 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gk104_chan_bind_inst() 75 struct nvkm_device *device = runl->fifo->engine.subdev.device; in gk104_chan_bind() 206 u32 stat = nvkm_rd32(engn->runl->fifo->engine.subdev.device, 0x002640 + (engn->id * 0x08)); in gk104_engn_status() 291 struct nvkm_device *device = runq->fifo->engine.subdev.device; in gk104_runq_idle() 309 struct nvkm_subdev *subdev = &runq->fifo->engine.subdev; in gk104_runq_intr_1() 381 struct nvkm_device *device = runq->fifo->engine.subdev.device; in gk104_runq_init() 392 return nvkm_rd32(runq->fifo->engine.subdev.device, 0x002390 + (runq->id * 0x04)); in gk104_runq_runm() [all …]
|
D | tu102.c | 43 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in tu102_chan_start() 65 struct nvkm_device *device = runl->fifo->engine.subdev.device; in tu102_runl_pending() 73 struct nvkm_device *device = runl->fifo->engine.subdev.device; in tu102_runl_commit() 169 tu102_fifo_intr_ctxsw_timeout(struct nvkm_fifo *fifo) in tu102_fifo_intr_ctxsw_timeout() argument 171 struct nvkm_device *device = fifo->engine.subdev.device; in tu102_fifo_intr_ctxsw_timeout() 177 nvkm_runl_foreach(runl, fifo) { in tu102_fifo_intr_ctxsw_timeout() 188 tu102_fifo_intr_sched(struct nvkm_fifo *fifo) in tu102_fifo_intr_sched() argument 190 struct nvkm_subdev *subdev = &fifo->engine.subdev; in tu102_fifo_intr_sched() 200 struct nvkm_fifo *fifo = container_of(inth, typeof(*fifo), engine.subdev.inth); in tu102_fifo_intr() local 201 struct nvkm_subdev *subdev = &fifo->engine.subdev; in tu102_fifo_intr() [all …]
|
D | g84.c | 37 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in g84_chan_bind() 45 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in g84_chan_ramfc_write() 108 struct nvkm_subdev *subdev = &chan->cgrp->runl->fifo->engine.subdev; in g84_ectx_bind() 164 struct nvkm_fifo *fifo = container_of(event, typeof(*fifo), nonstall.event); in g84_fifo_nonstall_block() local 167 spin_lock_irqsave(&fifo->lock, flags); in g84_fifo_nonstall_block() 168 nvkm_mask(fifo->engine.subdev.device, 0x002140, 0x40000000, 0x00000000); in g84_fifo_nonstall_block() 169 spin_unlock_irqrestore(&fifo->lock, flags); in g84_fifo_nonstall_block() 175 struct nvkm_fifo *fifo = container_of(event, typeof(*fifo), nonstall.event); in g84_fifo_nonstall_allow() local 178 spin_lock_irqsave(&fifo->lock, flags); in g84_fifo_nonstall_allow() 179 nvkm_mask(fifo->engine.subdev.device, 0x002140, 0x40000000, 0x40000000); in g84_fifo_nonstall_allow() [all …]
|
D | g98.c | 29 g98_fifo_runl_ctor(struct nvkm_fifo *fifo) in g98_fifo_runl_ctor() argument 33 runl = nvkm_runl_new(fifo, 0, 0, 0); in g98_fifo_runl_ctor() 37 nvkm_runl_add(runl, 0, fifo->func->engn_sw, NVKM_ENGINE_SW, 0); in g98_fifo_runl_ctor() 38 nvkm_runl_add(runl, 0, fifo->func->engn_sw, NVKM_ENGINE_DMAOBJ, 0); in g98_fifo_runl_ctor() 39 nvkm_runl_add(runl, 1, fifo->func->engn, NVKM_ENGINE_GR, 0); in g98_fifo_runl_ctor() 40 nvkm_runl_add(runl, 2, fifo->func->engn, NVKM_ENGINE_MSPPP, 0); in g98_fifo_runl_ctor() 41 nvkm_runl_add(runl, 3, fifo->func->engn, NVKM_ENGINE_CE, 0); in g98_fifo_runl_ctor() 42 nvkm_runl_add(runl, 4, fifo->func->engn, NVKM_ENGINE_MSPDEC, 0); in g98_fifo_runl_ctor() 43 nvkm_runl_add(runl, 5, fifo->func->engn, NVKM_ENGINE_SEC, 0); in g98_fifo_runl_ctor() 44 nvkm_runl_add(runl, 6, fifo->func->engn, NVKM_ENGINE_MSVLD, 0); in g98_fifo_runl_ctor()
|
/linux-6.12.1/include/linux/ |
D | kfifo.h | 108 #define __is_kfifo_ptr(fifo) \ argument 109 (sizeof(*fifo) == sizeof(STRUCT_KFIFO_PTR(typeof(*(fifo)->type)))) 116 #define DECLARE_KFIFO_PTR(fifo, type) STRUCT_KFIFO_PTR(type) fifo argument 124 #define DECLARE_KFIFO(fifo, type, size) STRUCT_KFIFO(type, size) fifo argument 130 #define INIT_KFIFO(fifo) \ argument 132 typeof(&(fifo)) __tmp = &(fifo); \ 149 #define DEFINE_KFIFO(fifo, type, size) \ argument 150 DECLARE_KFIFO(fifo, type, size) = \ 151 (typeof(fifo)) { \ 156 .mask = __is_kfifo_ptr(&(fifo)) ? \ [all …]
|
/linux-6.12.1/drivers/staging/axis-fifo/ |
D | axis-fifo.c | 150 struct axis_fifo *fifo = dev_get_drvdata(dev); in sysfs_write() local 158 iowrite32(tmp, fifo->base_addr + addr_offset); in sysfs_write() 166 struct axis_fifo *fifo = dev_get_drvdata(dev); in sysfs_read() local 169 read_val = ioread32(fifo->base_addr + addr_offset); in sysfs_read() 321 static void reset_ip_core(struct axis_fifo *fifo) in reset_ip_core() argument 323 iowrite32(XLLF_SRR_RESET_MASK, fifo->base_addr + XLLF_SRR_OFFSET); in reset_ip_core() 324 iowrite32(XLLF_TDFR_RESET_MASK, fifo->base_addr + XLLF_TDFR_OFFSET); in reset_ip_core() 325 iowrite32(XLLF_RDFR_RESET_MASK, fifo->base_addr + XLLF_RDFR_OFFSET); in reset_ip_core() 329 fifo->base_addr + XLLF_IER_OFFSET); in reset_ip_core() 330 iowrite32(XLLF_INT_ALL_MASK, fifo->base_addr + XLLF_ISR_OFFSET); in reset_ip_core() [all …]
|
/linux-6.12.1/sound/soc/meson/ |
D | axg-fifo.c | 68 static void __dma_enable(struct axg_fifo *fifo, bool enable) in __dma_enable() argument 70 regmap_update_bits(fifo->map, FIFO_CTRL0, CTRL0_DMA_EN, in __dma_enable() 77 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_trigger() local 83 __dma_enable(fifo, true); in axg_fifo_pcm_trigger() 88 __dma_enable(fifo, false); in axg_fifo_pcm_trigger() 101 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_pointer() local 105 regmap_read(fifo->map, FIFO_STATUS2, &addr); in axg_fifo_pcm_pointer() 116 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_hw_params() local 124 regmap_write(fifo->map, FIFO_START_ADDR, runtime->dma_addr); in axg_fifo_pcm_hw_params() 125 regmap_write(fifo->map, FIFO_FINISH_ADDR, end_ptr); in axg_fifo_pcm_hw_params() [all …]
|
D | aiu-fifo.c | 37 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_pointer() local 41 addr = snd_soc_component_read(component, fifo->mem_offset + AIU_MEM_RD); in aiu_fifo_pointer() 49 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_enable() local 54 fifo->mem_offset + AIU_MEM_CONTROL, in aiu_fifo_enable() 83 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_prepare() local 86 fifo->mem_offset + AIU_MEM_CONTROL, in aiu_fifo_prepare() 90 fifo->mem_offset + AIU_MEM_CONTROL, in aiu_fifo_prepare() 101 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_hw_params() local 105 end = runtime->dma_addr + runtime->dma_bytes - fifo->fifo_block; in aiu_fifo_hw_params() 106 snd_soc_component_write(component, fifo->mem_offset + AIU_MEM_START, in aiu_fifo_hw_params() [all …]
|
/linux-6.12.1/drivers/usb/fotg210/ |
D | fotg210-udc.h | 49 #define DCFESR_FIFO_EMPTY(fifo) (1 << 8 << (fifo)) argument 78 #define DMISGR1_MF_IN_INT(fifo) (1 << (16 + (fifo))) argument 87 #define DMISGR1_MF_OUTSPK_INT(fifo) (0x3 << (fifo) * 2) argument 111 #define DISGR1_OUT_INT(fifo) (1 << ((fifo) * 2)) argument 112 #define DISGR1_SPK_INT(fifo) (1 << 1 << ((fifo) * 2)) argument 113 #define DISGR1_IN_INT(fifo) (1 << 16 << (fifo)) argument 167 #define FIFOMAP_DIROUT(fifo) (0x0 << 4 << (fifo) * 8) argument 168 #define FIFOMAP_DIRIN(fifo) (0x1 << 4 << (fifo) * 8) argument 169 #define FIFOMAP_BIDIR(fifo) (0x2 << 4 << (fifo) * 8) argument 170 #define FIFOMAP_NA(fifo) (0x3 << 4 << (fifo) * 8) argument [all …]
|
/linux-6.12.1/drivers/platform/mellanox/ |
D | mlxbf-tmfifo.c | 95 struct mlxbf_tmfifo *fifo; member 155 struct mlxbf_tmfifo *fifo; member 246 static void mlxbf_tmfifo_free_vrings(struct mlxbf_tmfifo *fifo, in mlxbf_tmfifo_free_vrings() argument 268 static int mlxbf_tmfifo_alloc_vrings(struct mlxbf_tmfifo *fifo, in mlxbf_tmfifo_alloc_vrings() argument 279 vring->fifo = fifo; in mlxbf_tmfifo_alloc_vrings() 290 mlxbf_tmfifo_free_vrings(fifo, tm_vdev); in mlxbf_tmfifo_alloc_vrings() 303 static void mlxbf_tmfifo_disable_irqs(struct mlxbf_tmfifo *fifo) in mlxbf_tmfifo_disable_irqs() argument 308 irq = fifo->irq_info[i].irq; in mlxbf_tmfifo_disable_irqs() 309 fifo->irq_info[i].irq = 0; in mlxbf_tmfifo_disable_irqs() 319 if (!test_and_set_bit(irq_info->index, &irq_info->fifo->pend_events)) in mlxbf_tmfifo_irq_handler() [all …]
|
/linux-6.12.1/drivers/md/bcache/ |
D | util.h | 56 #define fifo_for_each(c, fifo, iter) \ argument 57 for (iter = (fifo)->front; \ 58 c = (fifo)->data[iter], iter != (fifo)->back; \ 59 iter = (iter + 1) & (fifo)->mask) 61 #define __init_fifo(fifo, gfp) \ argument 64 BUG_ON(!(fifo)->size); \ 66 _allocated_size = roundup_pow_of_two((fifo)->size + 1); \ 67 _bytes = _allocated_size * sizeof(*(fifo)->data); \ 69 (fifo)->mask = _allocated_size - 1; \ 70 (fifo)->front = (fifo)->back = 0; \ [all …]
|
/linux-6.12.1/drivers/usb/renesas_usbhs/ |
D | fifo.c | 98 struct usbhs_fifo *fifo); 99 static struct dma_chan *usbhsf_dma_chan_get(struct usbhs_fifo *fifo, 109 struct usbhs_fifo *fifo = usbhs_pipe_to_fifo(pipe); in usbhs_pkt_pop() local 123 if (fifo) in usbhs_pkt_pop() 124 chan = usbhsf_dma_chan_get(fifo, pkt); in usbhs_pkt_pop() 141 if (fifo) in usbhs_pkt_pop() 142 usbhsf_fifo_unselect(pipe, fifo); in usbhs_pkt_pop() 258 struct usbhs_fifo *fifo) in usbhsf_send_terminator() argument 262 usbhs_bset(priv, fifo->ctr, BVAL, BVAL); in usbhsf_send_terminator() 266 struct usbhs_fifo *fifo) in usbhsf_fifo_barrier() argument [all …]
|
/linux-6.12.1/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_buffer.c | 105 if (st->fifo.en & INV_ICM42600_SENSOR_GYRO) in inv_icm42600_buffer_update_fifo_period() 110 if (st->fifo.en & INV_ICM42600_SENSOR_ACCEL) in inv_icm42600_buffer_update_fifo_period() 120 st->fifo.period = period; in inv_icm42600_buffer_update_fifo_period() 147 st->fifo.en = fifo_en; in inv_icm42600_buffer_set_fifo_en() 213 packet_size = inv_icm42600_get_packet_size(st->fifo.en); in inv_icm42600_buffer_update_watermark() 216 wm_gyro = inv_icm42600_wm_truncate(st->fifo.watermark.gyro, packet_size); in inv_icm42600_buffer_update_watermark() 217 wm_accel = inv_icm42600_wm_truncate(st->fifo.watermark.accel, packet_size); in inv_icm42600_buffer_update_watermark() 230 st->fifo.watermark.eff_accel = wm_accel; in inv_icm42600_buffer_update_watermark() 233 st->fifo.watermark.eff_gyro = wm_gyro; in inv_icm42600_buffer_update_watermark() 250 st->fifo.watermark.eff_gyro = latency / period_gyro; in inv_icm42600_buffer_update_watermark() [all …]
|
/linux-6.12.1/drivers/isdn/hardware/mISDN/ |
D | hfcsusb.c | 804 hfcsusb_rx_frame(struct usb_fifo *fifo, __u8 *data, unsigned int len, in hfcsusb_rx_frame() argument 807 struct hfcsusb *hw = fifo->hw; in hfcsusb_rx_frame() 810 int fifon = fifo->fifonum; in hfcsusb_rx_frame() 819 fifo->dch, fifo->bch, fifo->ech); in hfcsusb_rx_frame() 824 if ((!!fifo->dch + !!fifo->bch + !!fifo->ech) != 1) { in hfcsusb_rx_frame() 831 if (fifo->dch) { in hfcsusb_rx_frame() 832 rx_skb = fifo->dch->rx_skb; in hfcsusb_rx_frame() 833 maxlen = fifo->dch->maxlen; in hfcsusb_rx_frame() 836 if (fifo->bch) { in hfcsusb_rx_frame() 837 if (test_bit(FLG_RX_OFF, &fifo->bch->Flags)) { in hfcsusb_rx_frame() [all …]
|
/linux-6.12.1/samples/kfifo/ |
D | dma-example.c | 20 static struct kfifo fifo; variable 31 if (kfifo_alloc(&fifo, FIFO_SIZE, GFP_KERNEL)) { in example_init() 36 printk(KERN_INFO "queue size: %u\n", kfifo_size(&fifo)); in example_init() 38 kfifo_in(&fifo, "test", 4); in example_init() 41 kfifo_put(&fifo, i); in example_init() 44 kfifo_skip(&fifo); in example_init() 46 printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); in example_init() 64 nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); in example_init() 91 kfifo_dma_in_finish(&fifo, ret); in example_init() 94 nents = kfifo_dma_out_prepare(&fifo, sg, ARRAY_SIZE(sg), 8); in example_init() [all …]
|
/linux-6.12.1/drivers/mailbox/ |
D | omap-mailbox.c | 108 struct omap_mbox_fifo *fifo = &mbox->rx_fifo; in mbox_fifo_read() local 110 return mbox_read_reg(mbox->parent, fifo->msg); in mbox_fifo_read() 115 struct omap_mbox_fifo *fifo = &mbox->tx_fifo; in mbox_fifo_write() local 117 mbox_write_reg(mbox->parent, msg, fifo->msg); in mbox_fifo_write() 122 struct omap_mbox_fifo *fifo = &mbox->rx_fifo; in mbox_fifo_empty() local 124 return (mbox_read_reg(mbox->parent, fifo->msg_stat) == 0); in mbox_fifo_empty() 129 struct omap_mbox_fifo *fifo = &mbox->tx_fifo; in mbox_fifo_full() local 131 return mbox_read_reg(mbox->parent, fifo->fifo_stat); in mbox_fifo_full() 137 struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? in ack_mbox_irq() local 139 u32 bit = fifo->intr_bit; in ack_mbox_irq() [all …]
|
/linux-6.12.1/drivers/spi/ |
D | spi-mpc512x-psc.c | 55 struct mpc512x_psc_fifo __iomem *fifo; member 147 struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; in mpc512x_psc_spi_transfer_rxtx() local 167 fifosz = MPC512x_PSC_FIFO_SZ(in_be32(&fifo->txsz)); in mpc512x_psc_spi_transfer_rxtx() 169 fifosz = MPC512x_PSC_FIFO_SZ(in_be32(&fifo->rxsz)); in mpc512x_psc_spi_transfer_rxtx() 170 fifosz -= in_be32(&fifo->rxcnt) + 1; in mpc512x_psc_spi_transfer_rxtx() 178 setbits32(&fifo->txcmd, in mpc512x_psc_spi_transfer_rxtx() 180 out_8(&fifo->txdata_8, data); in mpc512x_psc_spi_transfer_rxtx() 186 out_be32(&fifo->txisr, MPC512x_PSC_FIFO_EMPTY); in mpc512x_psc_spi_transfer_rxtx() 187 out_be32(&fifo->tximr, MPC512x_PSC_FIFO_EMPTY); in mpc512x_psc_spi_transfer_rxtx() 210 fifosz = in_be32(&fifo->rxcnt); in mpc512x_psc_spi_transfer_rxtx() [all …]
|
/linux-6.12.1/drivers/char/xillybus/ |
D | xillyusb.c | 107 struct xillyfifo fifo; member 224 static int fifo_write(struct xillyfifo *fifo, in fifo_write() argument 231 unsigned int writepos = fifo->writepos; in fifo_write() 232 unsigned int writebuf = fifo->writebuf; in fifo_write() 236 nmax = fifo->size - READ_ONCE(fifo->fill); in fifo_write() 239 unsigned int nrail = fifo->bufsize - writepos; in fifo_write() 243 spin_lock_irqsave(&fifo->lock, flags); in fifo_write() 244 fifo->fill += done; in fifo_write() 245 spin_unlock_irqrestore(&fifo->lock, flags); in fifo_write() 247 fifo->writepos = writepos; in fifo_write() [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_mbx.c | 12 static void fm10k_fifo_init(struct fm10k_mbx_fifo *fifo, u32 *buffer, u16 size) in fm10k_fifo_init() argument 14 fifo->buffer = buffer; in fm10k_fifo_init() 15 fifo->size = size; in fm10k_fifo_init() 16 fifo->head = 0; in fm10k_fifo_init() 17 fifo->tail = 0; in fm10k_fifo_init() 26 static u16 fm10k_fifo_used(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_used() argument 28 return fifo->tail - fifo->head; in fm10k_fifo_used() 37 static u16 fm10k_fifo_unused(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_unused() argument 39 return fifo->size + fifo->head - fifo->tail; in fm10k_fifo_unused() 48 static bool fm10k_fifo_empty(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_empty() argument [all …]
|