Home
last modified time | relevance | path

Searched refs:fifo (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/Linux-v6.1/lib/
Dkfifo.c19 static inline unsigned int kfifo_unused(struct __kfifo *fifo) in kfifo_unused() argument
21 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused()
24 int __kfifo_alloc(struct __kfifo *fifo, unsigned int size, in __kfifo_alloc() argument
33 fifo->in = 0; in __kfifo_alloc()
34 fifo->out = 0; in __kfifo_alloc()
35 fifo->esize = esize; in __kfifo_alloc()
38 fifo->data = NULL; in __kfifo_alloc()
39 fifo->mask = 0; in __kfifo_alloc()
43 fifo->data = kmalloc_array(esize, size, gfp_mask); in __kfifo_alloc()
45 if (!fifo->data) { in __kfifo_alloc()
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dbase.c37 nvkm_fifo_recover_chan(struct nvkm_fifo *fifo, int chid) in nvkm_fifo_recover_chan() argument
40 if (WARN_ON(!fifo->func->recover_chan)) in nvkm_fifo_recover_chan()
42 spin_lock_irqsave(&fifo->lock, flags); in nvkm_fifo_recover_chan()
43 fifo->func->recover_chan(fifo, chid); in nvkm_fifo_recover_chan()
44 spin_unlock_irqrestore(&fifo->lock, flags); in nvkm_fifo_recover_chan()
48 nvkm_fifo_pause(struct nvkm_fifo *fifo, unsigned long *flags) in nvkm_fifo_pause() argument
50 return fifo->func->pause(fifo, flags); in nvkm_fifo_pause()
54 nvkm_fifo_start(struct nvkm_fifo *fifo, unsigned long *flags) in nvkm_fifo_start() argument
56 return fifo->func->start(fifo, flags); in nvkm_fifo_start()
60 nvkm_fifo_fault(struct nvkm_fifo *fifo, struct nvkm_fault_data *info) in nvkm_fifo_fault() argument
[all …]
Dgk104.c40 gk104_fifo_engine_status(struct gk104_fifo *fifo, int engn, in gk104_fifo_engine_status() argument
43 struct nvkm_engine *engine = fifo->engine[engn].engine; in gk104_fifo_engine_status()
44 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in gk104_fifo_engine_status()
90 struct gk104_fifo *fifo = gk104_fifo(base); in gk104_fifo_class_new() local
91 if (oclass->engn == &fifo->func->chan) { in gk104_fifo_class_new()
93 return user->ctor(fifo, oclass, argv, argc, pobject); in gk104_fifo_class_new()
95 if (oclass->engn == &fifo->func->user) { in gk104_fifo_class_new()
107 struct gk104_fifo *fifo = gk104_fifo(base); in gk104_fifo_class_get() local
110 if (fifo->func->user.ctor && c++ == index) { in gk104_fifo_class_get()
111 oclass->base = fifo->func->user.user; in gk104_fifo_class_get()
[all …]
Dtu102.c38 tu102_fifo_runlist_commit(struct gk104_fifo *fifo, int runl, in tu102_fifo_runlist_commit() argument
41 struct nvkm_device *device = fifo->base.engine.subdev.device; in tu102_fifo_runlist_commit()
89 tu102_fifo_pbdma_init(struct gk104_fifo *fifo) in tu102_fifo_pbdma_init() argument
91 struct nvkm_device *device = fifo->base.engine.subdev.device; in tu102_fifo_pbdma_init()
92 const u32 mask = (1 << fifo->pbdma_nr) - 1; in tu102_fifo_pbdma_init()
121 struct gk104_fifo *fifo = container_of(w, typeof(*fifo), recover.work); in tu102_fifo_recover_work() local
122 struct nvkm_device *device = fifo->base.engine.subdev.device; in tu102_fifo_recover_work()
128 spin_lock_irqsave(&fifo->base.lock, flags); in tu102_fifo_recover_work()
129 runm = fifo->recover.runm; in tu102_fifo_recover_work()
130 engm = fifo->recover.engm; in tu102_fifo_recover_work()
[all …]
Dgf100.c37 gf100_fifo_uevent_init(struct nvkm_fifo *fifo) in gf100_fifo_uevent_init() argument
39 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_fifo_uevent_init()
44 gf100_fifo_uevent_fini(struct nvkm_fifo *fifo) in gf100_fifo_uevent_fini() argument
46 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_fifo_uevent_fini()
51 gf100_fifo_runlist_commit(struct gf100_fifo *fifo) in gf100_fifo_runlist_commit() argument
54 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in gf100_fifo_runlist_commit()
60 mutex_lock(&fifo->base.mutex); in gf100_fifo_runlist_commit()
61 cur = fifo->runlist.mem[fifo->runlist.active]; in gf100_fifo_runlist_commit()
62 fifo->runlist.active = !fifo->runlist.active; in gf100_fifo_runlist_commit()
65 list_for_each_entry(chan, &fifo->chan, head) { in gf100_fifo_runlist_commit()
[all …]
DKbuild2 nvkm-y += nvkm/engine/fifo/base.o
3 nvkm-y += nvkm/engine/fifo/nv04.o
4 nvkm-y += nvkm/engine/fifo/nv10.o
5 nvkm-y += nvkm/engine/fifo/nv17.o
6 nvkm-y += nvkm/engine/fifo/nv40.o
7 nvkm-y += nvkm/engine/fifo/nv50.o
8 nvkm-y += nvkm/engine/fifo/g84.o
9 nvkm-y += nvkm/engine/fifo/gf100.o
10 nvkm-y += nvkm/engine/fifo/gk104.o
11 nvkm-y += nvkm/engine/fifo/gk110.o
[all …]
Dnv50.c30 nv50_fifo_runlist_update_locked(struct nv50_fifo *fifo) in nv50_fifo_runlist_update_locked() argument
32 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_runlist_update_locked()
36 cur = fifo->runlist[fifo->cur_runlist]; in nv50_fifo_runlist_update_locked()
37 fifo->cur_runlist = !fifo->cur_runlist; in nv50_fifo_runlist_update_locked()
40 for (i = 0, p = 0; i < fifo->base.nr; i++) { in nv50_fifo_runlist_update_locked()
52 nv50_fifo_runlist_update(struct nv50_fifo *fifo) in nv50_fifo_runlist_update() argument
54 mutex_lock(&fifo->base.mutex); in nv50_fifo_runlist_update()
55 nv50_fifo_runlist_update_locked(fifo); in nv50_fifo_runlist_update()
56 mutex_unlock(&fifo->base.mutex); in nv50_fifo_runlist_update()
62 struct nv50_fifo *fifo = nv50_fifo(base); in nv50_fifo_oneinit() local
[all …]
Ddmanv04.c39 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; in nv04_fifo_dma_object_dtor()
41 mutex_lock(&chan->fifo->base.mutex); in nv04_fifo_dma_object_dtor()
43 mutex_unlock(&chan->fifo->base.mutex); in nv04_fifo_dma_object_dtor()
51 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; in nv04_fifo_dma_object_ctor()
66 mutex_lock(&chan->fifo->base.mutex); in nv04_fifo_dma_object_ctor()
69 mutex_unlock(&chan->fifo->base.mutex); in nv04_fifo_dma_object_ctor()
77 struct nv04_fifo *fifo = chan->fifo; in nv04_fifo_dma_fini() local
78 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_dma_fini()
82 u32 mask = fifo->base.nr - 1; in nv04_fifo_dma_fini()
87 spin_lock_irqsave(&fifo->base.lock, flags); in nv04_fifo_dma_fini()
[all …]
Dnv04.c49 __acquires(fifo->base.lock) in nv04_fifo_pause()
51 struct nv04_fifo *fifo = nv04_fifo(base); in nv04_fifo_pause() local
52 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_pause()
55 spin_lock_irqsave(&fifo->base.lock, flags); in nv04_fifo_pause()
85 __releases(fifo->base.lock) in nv04_fifo_start()
87 struct nv04_fifo *fifo = nv04_fifo(base); in nv04_fifo_start() local
88 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_start()
94 spin_unlock_irqrestore(&fifo->base.lock, flags); in nv04_fifo_start()
98 nv04_fifo_id_engine(struct nvkm_fifo *fifo, int engi) in nv04_fifo_id_engine() argument
112 return nvkm_device_engine(fifo->engine.subdev.device, type, 0); in nv04_fifo_id_engine()
[all …]
Dgpfifogk104.c40 struct gk104_fifo *fifo = chan->fifo; in gk104_fifo_gpfifo_kick_locked() local
41 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in gk104_fifo_gpfifo_kick_locked()
58 nvkm_fifo_recover_chan(&fifo->base, chan->base.chid); in gk104_fifo_gpfifo_kick_locked()
68 mutex_lock(&chan->base.fifo->mutex); in gk104_fifo_gpfifo_kick()
70 mutex_unlock(&chan->base.fifo->mutex); in gk104_fifo_gpfifo_kick()
101 int engi = chan->base.fifo->func->engine_id(chan->base.fifo, engine); in gk104_fifo_gpfifo_engine()
202 struct gk104_fifo *fifo = chan->fifo; in gk104_fifo_gpfifo_fini() local
203 struct nvkm_device *device = fifo->base.engine.subdev.device; in gk104_fifo_gpfifo_fini()
207 gk104_fifo_runlist_remove(fifo, chan); in gk104_fifo_gpfifo_fini()
210 gk104_fifo_runlist_update(fifo, chan->runl); in gk104_fifo_gpfifo_fini()
[all …]
Dgpfifogf100.c41 *pevent = &chan->fifo->uevent; in gf100_fifo_chan_ntfy()
44 *pevent = &chan->fifo->kevent; in gf100_fifo_chan_ntfy()
71 int engi = chan->base.fifo->func->engine_id(chan->base.fifo, engine); in gf100_fifo_gpfifo_engine()
83 struct nvkm_subdev *subdev = &chan->fifo->base.engine.subdev; in gf100_fifo_gpfifo_engine_fini()
88 mutex_lock(&chan->fifo->base.mutex); in gf100_fifo_gpfifo_engine_fini()
98 mutex_unlock(&chan->fifo->base.mutex); in gf100_fifo_gpfifo_engine_fini()
169 struct gf100_fifo *fifo = chan->fifo; in gf100_fifo_gpfifo_fini() local
170 struct nvkm_device *device = fifo->base.engine.subdev.device; in gf100_fifo_gpfifo_fini()
174 gf100_fifo_runlist_remove(fifo, chan); in gf100_fifo_gpfifo_fini()
176 gf100_fifo_runlist_commit(fifo); in gf100_fifo_gpfifo_fini()
[all …]
Ddmanv40.c61 int engi = chan->base.fifo->func->engine_id(chan->base.fifo, engine); in nv40_fifo_dma_engn()
72 struct nv04_fifo *fifo = chan->fifo; in nv40_fifo_dma_engine_fini() local
73 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv40_fifo_dma_engine_fini()
82 spin_lock_irqsave(&fifo->base.lock, flags); in nv40_fifo_dma_engine_fini()
85 chid = nvkm_rd32(device, 0x003204) & (fifo->base.nr - 1); in nv40_fifo_dma_engine_fini()
93 spin_unlock_irqrestore(&fifo->base.lock, flags); in nv40_fifo_dma_engine_fini()
102 struct nv04_fifo *fifo = chan->fifo; in nv40_fifo_dma_engine_init() local
103 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv40_fifo_dma_engine_init()
113 spin_lock_irqsave(&fifo->base.lock, flags); in nv40_fifo_dma_engine_init()
116 chid = nvkm_rd32(device, 0x003204) & (fifo->base.nr - 1); in nv40_fifo_dma_engine_init()
[all …]
/Linux-v6.1/include/linux/
Dkfifo.h102 #define __is_kfifo_ptr(fifo) \ argument
103 (sizeof(*fifo) == sizeof(STRUCT_KFIFO_PTR(typeof(*(fifo)->type))))
110 #define DECLARE_KFIFO_PTR(fifo, type) STRUCT_KFIFO_PTR(type) fifo argument
118 #define DECLARE_KFIFO(fifo, type, size) STRUCT_KFIFO(type, size) fifo argument
124 #define INIT_KFIFO(fifo) \ argument
126 typeof(&(fifo)) __tmp = &(fifo); \
143 #define DEFINE_KFIFO(fifo, type, size) \ argument
144 DECLARE_KFIFO(fifo, type, size) = \
145 (typeof(fifo)) { \
150 .mask = __is_kfifo_ptr(&(fifo)) ? \
[all …]
/Linux-v6.1/drivers/staging/axis-fifo/
Daxis-fifo.c152 struct axis_fifo *fifo = dev_get_drvdata(dev); in sysfs_write() local
160 iowrite32(tmp, fifo->base_addr + addr_offset); in sysfs_write()
168 struct axis_fifo *fifo = dev_get_drvdata(dev); in sysfs_read() local
173 read_val = ioread32(fifo->base_addr + addr_offset); in sysfs_read()
328 static void reset_ip_core(struct axis_fifo *fifo) in reset_ip_core() argument
330 iowrite32(XLLF_SRR_RESET_MASK, fifo->base_addr + XLLF_SRR_OFFSET); in reset_ip_core()
331 iowrite32(XLLF_TDFR_RESET_MASK, fifo->base_addr + XLLF_TDFR_OFFSET); in reset_ip_core()
332 iowrite32(XLLF_RDFR_RESET_MASK, fifo->base_addr + XLLF_RDFR_OFFSET); in reset_ip_core()
336 fifo->base_addr + XLLF_IER_OFFSET); in reset_ip_core()
337 iowrite32(XLLF_INT_ALL_MASK, fifo->base_addr + XLLF_ISR_OFFSET); in reset_ip_core()
[all …]
/Linux-v6.1/sound/soc/meson/
Daxg-fifo.c67 static void __dma_enable(struct axg_fifo *fifo, bool enable) in __dma_enable() argument
69 regmap_update_bits(fifo->map, FIFO_CTRL0, CTRL0_DMA_EN, in __dma_enable()
76 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_trigger() local
82 __dma_enable(fifo, true); in axg_fifo_pcm_trigger()
87 __dma_enable(fifo, false); in axg_fifo_pcm_trigger()
100 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_pointer() local
104 regmap_read(fifo->map, FIFO_STATUS2, &addr); in axg_fifo_pcm_pointer()
115 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_hw_params() local
123 regmap_write(fifo->map, FIFO_START_ADDR, runtime->dma_addr); in axg_fifo_pcm_hw_params()
124 regmap_write(fifo->map, FIFO_FINISH_ADDR, end_ptr); in axg_fifo_pcm_hw_params()
[all …]
Daiu-fifo.c37 struct aiu_fifo *fifo = dai->playback_dma_data; 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 = dai->playback_dma_data; in aiu_fifo_enable() local
54 fifo->mem_offset + AIU_MEM_CONTROL, in aiu_fifo_enable()
83 struct aiu_fifo *fifo = dai->playback_dma_data; 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 = dai->playback_dma_data; 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-v6.1/drivers/usb/gadget/udc/
Dfotg210.h49 #define DCFESR_FIFO_EMPTY(fifo) (1 << 8 << (fifo)) argument
76 #define DMISGR1_MF_IN_INT(fifo) (1 << (16 + (fifo))) argument
85 #define DMISGR1_MF_OUTSPK_INT(fifo) (0x3 << (fifo) * 2) argument
109 #define DISGR1_OUT_INT(fifo) (1 << ((fifo) * 2)) argument
110 #define DISGR1_SPK_INT(fifo) (1 << 1 << ((fifo) * 2)) argument
111 #define DISGR1_IN_INT(fifo) (1 << 16 << (fifo)) argument
165 #define FIFOMAP_DIROUT(fifo) (0x0 << 4 << (fifo) * 8) argument
166 #define FIFOMAP_DIRIN(fifo) (0x1 << 4 << (fifo) * 8) argument
167 #define FIFOMAP_BIDIR(fifo) (0x2 << 4 << (fifo) * 8) argument
168 #define FIFOMAP_NA(fifo) (0x3 << 4 << (fifo) * 8) argument
[all …]
/Linux-v6.1/drivers/usb/renesas_usbhs/
Dfifo.c98 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-v6.1/drivers/md/bcache/
Dutil.h120 #define fifo_for_each(c, fifo, iter) \ argument
121 for (iter = (fifo)->front; \
122 c = (fifo)->data[iter], iter != (fifo)->back; \
123 iter = (iter + 1) & (fifo)->mask)
125 #define __init_fifo(fifo, gfp) \ argument
128 BUG_ON(!(fifo)->size); \
130 _allocated_size = roundup_pow_of_two((fifo)->size + 1); \
131 _bytes = _allocated_size * sizeof(*(fifo)->data); \
133 (fifo)->mask = _allocated_size - 1; \
134 (fifo)->front = (fifo)->back = 0; \
[all …]
/Linux-v6.1/drivers/platform/mellanox/
Dmlxbf-tmfifo.c83 struct mlxbf_tmfifo *fifo; member
134 struct mlxbf_tmfifo *fifo; member
208 static void mlxbf_tmfifo_free_vrings(struct mlxbf_tmfifo *fifo, in mlxbf_tmfifo_free_vrings() argument
230 static int mlxbf_tmfifo_alloc_vrings(struct mlxbf_tmfifo *fifo, in mlxbf_tmfifo_alloc_vrings() argument
241 vring->fifo = fifo; in mlxbf_tmfifo_alloc_vrings()
251 mlxbf_tmfifo_free_vrings(fifo, tm_vdev); in mlxbf_tmfifo_alloc_vrings()
264 static void mlxbf_tmfifo_disable_irqs(struct mlxbf_tmfifo *fifo) in mlxbf_tmfifo_disable_irqs() argument
269 irq = fifo->irq_info[i].irq; in mlxbf_tmfifo_disable_irqs()
270 fifo->irq_info[i].irq = 0; in mlxbf_tmfifo_disable_irqs()
280 if (!test_and_set_bit(irq_info->index, &irq_info->fifo->pend_events)) in mlxbf_tmfifo_irq_handler()
[all …]
/Linux-v6.1/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_buffer.c104 if (st->fifo.en & INV_ICM42600_SENSOR_GYRO) in inv_icm42600_buffer_update_fifo_period()
109 if (st->fifo.en & INV_ICM42600_SENSOR_ACCEL) in inv_icm42600_buffer_update_fifo_period()
119 st->fifo.period = period; in inv_icm42600_buffer_update_fifo_period()
146 st->fifo.en = fifo_en; in inv_icm42600_buffer_set_fifo_en()
212 packet_size = inv_icm42600_get_packet_size(st->fifo.en); in inv_icm42600_buffer_update_watermark()
215 wm_gyro = inv_icm42600_wm_truncate(st->fifo.watermark.gyro, packet_size); in inv_icm42600_buffer_update_watermark()
216 wm_accel = inv_icm42600_wm_truncate(st->fifo.watermark.accel, packet_size); in inv_icm42600_buffer_update_watermark()
296 if (st->fifo.on) { in inv_icm42600_buffer_postenable()
327 st->fifo.on++; in inv_icm42600_buffer_postenable()
341 if (st->fifo.on > 1) { in inv_icm42600_buffer_predisable()
[all …]
/Linux-v6.1/drivers/isdn/hardware/mISDN/
Dhfcsusb.c799 hfcsusb_rx_frame(struct usb_fifo *fifo, __u8 *data, unsigned int len, in hfcsusb_rx_frame() argument
802 struct hfcsusb *hw = fifo->hw; in hfcsusb_rx_frame()
805 int fifon = fifo->fifonum; in hfcsusb_rx_frame()
814 fifo->dch, fifo->bch, fifo->ech); in hfcsusb_rx_frame()
819 if ((!!fifo->dch + !!fifo->bch + !!fifo->ech) != 1) { in hfcsusb_rx_frame()
826 if (fifo->dch) { in hfcsusb_rx_frame()
827 rx_skb = fifo->dch->rx_skb; in hfcsusb_rx_frame()
828 maxlen = fifo->dch->maxlen; in hfcsusb_rx_frame()
831 if (fifo->bch) { in hfcsusb_rx_frame()
832 if (test_bit(FLG_RX_OFF, &fifo->bch->Flags)) { in hfcsusb_rx_frame()
[all …]
/Linux-v6.1/samples/kfifo/
Ddma-example.c19 static struct kfifo fifo; variable
30 if (kfifo_alloc(&fifo, FIFO_SIZE, GFP_KERNEL)) { in example_init()
35 printk(KERN_INFO "queue size: %u\n", kfifo_size(&fifo)); in example_init()
37 kfifo_in(&fifo, "test", 4); in example_init()
40 kfifo_put(&fifo, i); in example_init()
43 kfifo_skip(&fifo); in example_init()
45 printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); in example_init()
63 nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); in example_init()
90 kfifo_dma_in_finish(&fifo, ret); in example_init()
93 nents = kfifo_dma_out_prepare(&fifo, sg, ARRAY_SIZE(sg), 8); in example_init()
[all …]
/Linux-v6.1/drivers/char/xillybus/
Dxillyusb.c106 struct xillyfifo fifo; member
215 static int fifo_write(struct xillyfifo *fifo, in fifo_write() argument
222 unsigned int writepos = fifo->writepos; in fifo_write()
223 unsigned int writebuf = fifo->writebuf; in fifo_write()
227 nmax = fifo->size - READ_ONCE(fifo->fill); in fifo_write()
230 unsigned int nrail = fifo->bufsize - writepos; in fifo_write()
234 spin_lock_irqsave(&fifo->lock, flags); in fifo_write()
235 fifo->fill += done; in fifo_write()
236 spin_unlock_irqrestore(&fifo->lock, flags); in fifo_write()
238 fifo->writepos = writepos; in fifo_write()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/fm10k/
Dfm10k_mbx.c12 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 …]

12345678910>>...22