Home
last modified time | relevance | path

Searched defs:fifo (Results 1 – 25 of 154) sorted by relevance

1234567

/linux/include/linux/
H A Dkfifo.h107 #define __is_kfifo_ptr(fifo) \ argument
115 #define DECLARE_KFIFO_PTR(fifo, type) STRUCT_KFIFO_PTR(type) fifo argument
123 #define DECLARE_KFIFO(fifo, type, size) STRUCT_KFIFO(type, size) fifo argument
129 #define INIT_KFIFO(fifo) \ argument
148 #define DEFINE_KFIFO(fifo, type, size) \ argument
186 #define kfifo_initialized(fifo) ((fifo)->kfifo.mask) argument
192 #define kfifo_esize(fifo) ((fifo)->kfifo.esize) argument
198 #define kfifo_recsize(fifo) (sizeof(*(fifo)->rectype)) argument
204 #define kfifo_size(fifo) ((fifo)->kfifo.mask + 1) argument
214 #define kfifo_reset(fifo) \ argument
[all …]
/linux/fs/bcachefs/
H A Dfifo.h15 #define fifo_buf_size(fifo) \ argument
20 #define init_fifo(fifo, _size, _gfp) \ argument
30 #define free_fifo(fifo) \ argument
53 #define fifo_used(fifo) (((fifo)->back - (fifo)->front)) argument
54 #define fifo_free(fifo) ((fifo)->size - fifo_used(fifo)) argument
56 #define fifo_empty(fifo) ((fifo)->front == (fifo)->back) argument
57 #define fifo_full(fifo) (fifo_used(fifo) == (fifo)->size) argument
59 #define fifo_peek_front(fifo) ((fifo)->data[(fifo)->front & (fifo)->mask]) argument
60 #define fifo_peek_back(fifo) ((fifo)->data[((fifo)->back - 1) & (fifo)->mask]) argument
62 #define fifo_entry_idx_abs(fifo, p) \ argument
[all …]
/linux/lib/
H A Dkfifo.c19 kfifo_unused(struct __kfifo * fifo) kfifo_unused() argument
24 __kfifo_alloc(struct __kfifo * fifo,unsigned int size,size_t esize,gfp_t gfp_mask) __kfifo_alloc() argument
55 __kfifo_free(struct __kfifo * fifo) __kfifo_free() argument
66 __kfifo_init(struct __kfifo * fifo,void * buffer,unsigned int size,size_t esize) __kfifo_init() argument
89 kfifo_copy_in(struct __kfifo * fifo,const void * src,unsigned int len,unsigned int off) kfifo_copy_in() argument
113 __kfifo_in(struct __kfifo * fifo,const void * buf,unsigned int len) __kfifo_in() argument
128 kfifo_copy_out(struct __kfifo * fifo,void * dst,unsigned int len,unsigned int off) kfifo_copy_out() argument
152 __kfifo_out_peek(struct __kfifo * fifo,void * buf,unsigned int len) __kfifo_out_peek() argument
166 __kfifo_out(struct __kfifo * fifo,void * buf,unsigned int len) __kfifo_out() argument
175 kfifo_copy_from_user(struct __kfifo * fifo,const void __user * from,unsigned int len,unsigned int off,unsigned int * copied) kfifo_copy_from_user() argument
210 __kfifo_from_user(struct __kfifo * fifo,const void __user * from,unsigned long len,unsigned int * copied) __kfifo_from_user() argument
236 kfifo_copy_to_user(struct __kfifo * fifo,void __user * to,unsigned int len,unsigned int off,unsigned int * copied) kfifo_copy_to_user() argument
270 __kfifo_to_user(struct __kfifo * fifo,void __user * to,unsigned long len,unsigned int * copied) __kfifo_to_user() argument
334 setup_sgl(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len,unsigned int off) setup_sgl() argument
356 __kfifo_dma_in_prepare(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len) __kfifo_dma_in_prepare() argument
369 __kfifo_dma_out_prepare(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len) __kfifo_dma_out_prepare() argument
398 __kfifo_peek_n(struct __kfifo * fifo,size_t recsize) __kfifo_peek_n() argument
421 __kfifo_poke_n(struct __kfifo * fifo,unsigned int n,size_t recsize) __kfifo_poke_n() argument
432 __kfifo_len_r(struct __kfifo * fifo,size_t recsize) __kfifo_len_r() argument
438 __kfifo_in_r(struct __kfifo * fifo,const void * buf,unsigned int len,size_t recsize) __kfifo_in_r() argument
452 kfifo_out_copy_r(struct __kfifo * fifo,void * buf,unsigned int len,size_t recsize,unsigned int * n) kfifo_out_copy_r() argument
464 __kfifo_out_peek_r(struct __kfifo * fifo,void * buf,unsigned int len,size_t recsize) __kfifo_out_peek_r() argument
476 __kfifo_out_r(struct __kfifo * fifo,void * buf,unsigned int len,size_t recsize) __kfifo_out_r() argument
490 __kfifo_skip_r(struct __kfifo * fifo,size_t recsize) __kfifo_skip_r() argument
499 __kfifo_from_user_r(struct __kfifo * fifo,const void __user * from,unsigned long len,unsigned int * copied,size_t recsize) __kfifo_from_user_r() argument
523 __kfifo_to_user_r(struct __kfifo * fifo,void __user * to,unsigned long len,unsigned int * copied,size_t recsize) __kfifo_to_user_r() argument
548 __kfifo_dma_in_prepare_r(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len,size_t recsize) __kfifo_dma_in_prepare_r() argument
562 __kfifo_dma_in_finish_r(struct __kfifo * fifo,unsigned int len,size_t recsize) __kfifo_dma_in_finish_r() argument
571 __kfifo_dma_out_prepare_r(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len,size_t recsize) __kfifo_dma_out_prepare_r() argument
585 __kfifo_dma_out_finish_r(struct __kfifo * fifo,size_t recsize) __kfifo_dma_out_finish_r() argument
[all...]
/linux/sound/soc/meson/
H A Daxg-fifo.c68 static void __dma_enable(struct axg_fifo *fifo, bool enable) in __dma_enable()
77 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_trigger() local
101 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_pointer() local
116 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_hw_params() local
160 struct axg_fifo *fifo = axg_fifo_data(ss); in g12a_fifo_pcm_hw_params() local
178 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_hw_free() local
188 static void axg_fifo_ack_irq(struct axg_fifo *fifo, u8 mask) in axg_fifo_ack_irq()
203 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_irq_block() local
225 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_open() local
292 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_close() local
[all …]
H A Daiu-fifo.c37 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_pointer() local
49 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_enable() local
83 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_prepare() local
101 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_hw_params() local
135 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_startup() local
171 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_shutdown() local
181 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_pcm_new() local
197 struct aiu_fifo *fifo; in aiu_fifo_dai_probe() local
210 struct aiu_fifo *fifo = snd_soc_dai_dma_data_get_playback(dai); in aiu_fifo_dai_remove() local
H A Daxg-toddr.c40 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in g12a_toddr_dai_prepare() local
57 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_hw_params() local
90 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_startup() local
114 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_toddr_dai_shutdown() local
197 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in g12a_toddr_dai_startup() local
H A Daxg-frddr.c38 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in g12a_frddr_dai_prepare() local
55 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_frddr_dai_hw_params() local
72 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_frddr_dai_startup() local
89 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_frddr_dai_shutdown() local
/linux/drivers/usb/renesas_usbhs/
H A Dfifo.c109 struct usbhs_fifo *fifo = usbhs_pipe_to_fifo(pipe); in usbhs_pkt_pop() local
258 struct usbhs_fifo *fifo) in usbhsf_send_terminator()
266 struct usbhs_fifo *fifo) in usbhsf_fifo_barrier()
276 struct usbhs_fifo *fifo) in usbhsf_fifo_clear()
302 struct usbhs_fifo *fifo) in usbhsf_fifo_rcv_len()
308 struct usbhs_fifo *fifo) in usbhsf_fifo_unselect()
317 struct usbhs_fifo *fifo, in usbhsf_fifo_select()
361 struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); /* CFIFO */ in usbhs_dcp_dir_switch_to_write() local
390 struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); /* CFIFO */ in usbhs_dcp_dir_switch_to_read() local
468 struct usbhs_fifo *fifo = usbhsf_get_cfifo(priv); in usbhsf_dcp_data_stage_prepare_pop() local
[all …]
/linux/drivers/usb/fotg210/
H A Dfotg210-udc.h49 #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/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_mbx.c12 static void fm10k_fifo_init(struct fm10k_mbx_fifo *fifo, u32 *buffer, u16 size) in fm10k_fifo_init()
26 static u16 fm10k_fifo_used(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_used()
37 static u16 fm10k_fifo_unused(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_unused()
48 static bool fm10k_fifo_empty(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_empty()
60 static u16 fm10k_fifo_head_offset(struct fm10k_mbx_fifo *fifo, u16 offset) in fm10k_fifo_head_offset()
72 static u16 fm10k_fifo_tail_offset(struct fm10k_mbx_fifo *fifo, u16 offset) in fm10k_fifo_tail_offset()
83 static u16 fm10k_fifo_head_len(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_head_len()
101 static u16 fm10k_fifo_head_drop(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_head_drop()
118 static void fm10k_fifo_drop_all(struct fm10k_mbx_fifo *fifo) in fm10k_fifo_drop_all()
236 static void fm10k_fifo_write_copy(struct fm10k_mbx_fifo *fifo, in fm10k_fifo_write_copy()
[all …]
/linux/drivers/md/bcache/
H A Dutil.h119 #define fifo_for_each(c, fifo, iter) \ argument
124 #define __init_fifo(fifo, gfp) \ argument
139 #define init_fifo_exact(fifo, _size, gfp) \ argument
145 #define init_fifo(fifo, _size, gfp) \ argument
153 #define free_fifo(fifo) \ argument
159 #define fifo_used(fifo) (((fifo)->back - (fifo)->front) & (fifo)->mask) argument
160 #define fifo_free(fifo) ((fifo)->size - fifo_used(fifo)) argument
162 #define fifo_empty(fifo) (!fifo_used(fifo)) argument
163 #define fifo_full(fifo) (!fifo_free(fifo)) argument
165 #define fifo_front(fifo) ((fifo)->data[(fifo)->front]) argument
[all …]
/linux/drivers/misc/
H A Dhpilo.h165 struct fifo { struct
166 u64 nrents; /* user requested number of fifo entries */ argument
167 u64 imask; /* mask to extract valid fifo index */ argument
178 u64 fifobar[]; argument
181 /* convert between struct fifo, and the fifobar, which is saved in the ccb */ argument
/linux/drivers/platform/mellanox/
H A Dmlxbf-tmfifo.c95 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()
268 static int mlxbf_tmfifo_alloc_vrings(struct mlxbf_tmfifo *fifo, in mlxbf_tmfifo_alloc_vrings()
304 static void mlxbf_tmfifo_disable_irqs(struct mlxbf_tmfifo *fifo) in mlxbf_tmfifo_disable_irqs()
441 struct mlxbf_tmfifo *fifo = container_of(t, struct mlxbf_tmfifo, timer); in mlxbf_tmfifo_timer() local
511 static int mlxbf_tmfifo_get_rx_avail(struct mlxbf_tmfifo *fifo) in mlxbf_tmfifo_get_rx_avail()
520 static int mlxbf_tmfifo_get_tx_avail(struct mlxbf_tmfifo *fifo, int vdev_id) in mlxbf_tmfifo_get_tx_avail()
538 static void mlxbf_tmfifo_console_tx(struct mlxbf_tmfifo *fifo, int avail) in mlxbf_tmfifo_console_tx()
607 struct mlxbf_tmfifo *fifo = vring->fifo; in mlxbf_tmfifo_rxtx_word() local
[all …]
/linux/drivers/dma/bestcomm/
H A Dgen_bd.c36 u32 fifo; /* (u32*) address of gen_bd's fifo */ member
53 u32 fifo; /* (u32*) address of gen_bd's fifo */ member
73 phys_addr_t fifo; member
85 bcom_gen_bd_rx_init(int queue_len, phys_addr_t fifo, in bcom_gen_bd_rx_init()
170 bcom_gen_bd_tx_init(int queue_len, phys_addr_t fifo, in bcom_gen_bd_tx_init()
316 phys_addr_t fifo, int maxbufsize) in bcom_psc_gen_bd_rx_init()
337 bcom_psc_gen_bd_tx_init(unsigned psc_num, int queue_len, phys_addr_t fifo) in bcom_psc_gen_bd_tx_init()
H A Dfec.c31 u32 fifo; /* (u32*) address of fec's fifo */ member
51 u32 fifo; /* (u32*) address of fec's fifo */ member
71 phys_addr_t fifo; member
81 bcom_fec_rx_init(int queue_len, phys_addr_t fifo, int maxbufsize) in bcom_fec_rx_init()
183 bcom_fec_tx_init(int queue_len, phys_addr_t fifo) in bcom_fec_tx_init()
/linux/drivers/staging/axis-fifo/
H A Daxis-fifo.c150 struct axis_fifo *fifo = dev_get_drvdata(dev); in sysfs_write() local
166 struct axis_fifo *fifo = dev_get_drvdata(dev); in sysfs_read() local
321 static void reset_ip_core(struct axis_fifo *fifo) in reset_ip_core()
351 struct axis_fifo *fifo = (struct axis_fifo *)f->private_data; in axis_fifo_read() local
467 struct axis_fifo *fifo = (struct axis_fifo *)f->private_data; in axis_fifo_write() local
566 struct axis_fifo *fifo = (struct axis_fifo *)dw; in axis_fifo_irq() local
672 struct axis_fifo *fifo = container_of(f->private_data, in axis_fifo_open() local
715 static int get_dts_property(struct axis_fifo *fifo, in get_dts_property()
732 static int axis_fifo_parse_dt(struct axis_fifo *fifo) in axis_fifo_parse_dt()
795 struct axis_fifo *fifo = NULL; in axis_fifo_probe() local
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Drunl.c60 struct nvkm_fifo *fifo = runl->fifo; in nvkm_runl_rc() local
283 struct nvkm_fifo *fifo = runl->fifo; in nvkm_runl_allow() local
297 struct nvkm_fifo *fifo = runl->fifo; in nvkm_runl_block() local
341 struct nvkm_fifo *fifo = runl->fifo; in nvkm_runl_add() local
382 nvkm_runl_get(struct nvkm_fifo *fifo, int runi, u32 addr) in nvkm_runl_get()
395 nvkm_runl_new(struct nvkm_fifo *fifo, int runi, u32 addr, int id_nr) in nvkm_runl_new()
H A Drunq.h15 struct nvkm_fifo *fifo; member
24 #define nvkm_runq_foreach(runq,fifo) list_for_each_entry((runq), &(fifo)->runqs, head) argument
25 #define nvkm_runq_foreach_cond(runq,fifo,cond) nvkm_list_foreach(runq, &(fifo)->runqs, head, (cond)) argument
H A Dga100.c395 struct nvkm_fifo *fifo = runl->fifo; in ga100_runl_init() local
440 ga100_runl_new(struct nvkm_fifo *fifo, int id, u32 addr, struct nvkm_runl **prunl) in ga100_runl_new()
520 struct nvkm_fifo *fifo = container_of(event, typeof(*fifo), nonstall.event); in ga100_fifo_nonstall_block() local
529 struct nvkm_fifo *fifo = container_of(event, typeof(*fifo), nonstall.event); in ga100_fifo_nonstall_allow() local
542 ga100_fifo_nonstall_ctor(struct nvkm_fifo *fifo) in ga100_fifo_nonstall_ctor()
574 ga100_fifo_runl_ctor(struct nvkm_fifo *fifo) in ga100_fifo_runl_ctor()
H A Dgm200.c29 gm200_fifo_runq_nr(struct nvkm_fifo *fifo) in gm200_fifo_runq_nr()
35 gm200_fifo_chid_nr(struct nvkm_fifo *fifo) in gm200_fifo_chid_nr()
H A Dg84.c164 struct nvkm_fifo *fifo = container_of(event, typeof(*fifo), nonstall.event); in g84_fifo_nonstall_block() local
175 struct nvkm_fifo *fifo = container_of(event, typeof(*fifo), nonstall.event); in g84_fifo_nonstall_allow() local
190 g84_fifo_runl_ctor(struct nvkm_fifo *fifo) in g84_fifo_runl_ctor()
/linux/drivers/mailbox/
H A Domap-mailbox.c109 struct omap_mbox_fifo *fifo = &mbox->rx_fifo; in mbox_fifo_read() local
116 struct omap_mbox_fifo *fifo = &mbox->tx_fifo; in mbox_fifo_write() local
123 struct omap_mbox_fifo *fifo = &mbox->rx_fifo; in mbox_fifo_empty() local
130 struct omap_mbox_fifo *fifo = &mbox->tx_fifo; in mbox_fifo_full() local
138 struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? in ack_mbox_irq() local
151 struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? in is_mbox_irq() local
166 struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? in omap_mbox_enable_irq() local
178 struct omap_mbox_fifo *fifo = (irq == IRQ_TX) ? in omap_mbox_disable_irq() local
339 u32 usr, fifo, reg; in omap_mbox_suspend() local
449 struct omap_mbox_fifo *fifo; in omap_mbox_probe() local
/linux/drivers/spi/
H A Dspi-mpc512x-psc.c55 struct mpc512x_psc_fifo __iomem *fifo; member
147 struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; in mpc512x_psc_spi_transfer_rxtx() local
346 struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; in mpc512x_psc_spi_unprep_xfer_hw() local
386 struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; in mpc512x_psc_spi_port_config() local
445 struct mpc512x_psc_fifo __iomem *fifo = mps->fifo; in mpc512x_psc_spi_isr() local
/linux/drivers/isdn/hardware/mISDN/
H A Dhfcsusb.c804 hfcsusb_rx_frame(struct usb_fifo *fifo, __u8 *data, unsigned int len, in hfcsusb_rx_frame()
967 struct usb_fifo *fifo = context_iso_urb->owner_fifo; in rx_iso_complete() local
1089 struct usb_fifo *fifo = (struct usb_fifo *) urb->context; in rx_int_complete() local
1161 struct usb_fifo *fifo = context_iso_urb->owner_fifo; in tx_iso_complete() local
1381 start_isoc_chain(struct usb_fifo *fifo, int num_packets_per_urb, in start_isoc_chain()
1448 stop_iso_gracefull(struct usb_fifo *fifo) in stop_iso_gracefull()
1474 stop_int_gracefull(struct usb_fifo *fifo) in stop_int_gracefull()
1497 start_int_fifo(struct usb_fifo *fifo) in start_int_fifo()
1549 struct usb_fifo *fifo; in reset_hfcsusb() local
/linux/drivers/net/ethernet/tehuti/
H A Dtehuti.h142 struct fifo { struct
143 dma_addr_t da; /* physical address of fifo (used by HW) */ argument
144 char *va; /* virtual address of fifo (used by SW) */ argument
149 u16 memsz; /* memory size allocated for fifo */ argument
156 struct fifo m; /* minimal set of variables used by all fifos */ argument

1234567