Lines Matching defs:fsi
300 static inline int fsi_stream_is_play(struct fsi_priv *fsi, in fsi_stream_is_play()
377 static struct fsi_master *fsi_get_master(struct fsi_priv *fsi) in fsi_get_master()
382 static int fsi_is_clk_master(struct fsi_priv *fsi) in fsi_is_clk_master()
387 static int fsi_is_port_a(struct fsi_priv *fsi) in fsi_is_port_a()
392 static int fsi_is_spdif(struct fsi_priv *fsi) in fsi_is_spdif()
397 static int fsi_is_enable_stream(struct fsi_priv *fsi) in fsi_is_enable_stream()
429 static u32 fsi_get_port_shift(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_get_port_shift()
443 static int fsi_frame2sample(struct fsi_priv *fsi, int frames) in fsi_frame2sample()
448 static int fsi_sample2frame(struct fsi_priv *fsi, int samples) in fsi_sample2frame()
453 static int fsi_get_current_fifo_samples(struct fsi_priv *fsi, in fsi_get_current_fifo_samples()
469 static void fsi_count_fifo_err(struct fsi_priv *fsi) in fsi_count_fifo_err()
493 static inline struct fsi_stream *fsi_stream_get(struct fsi_priv *fsi, in fsi_stream_get()
499 static int fsi_stream_is_working(struct fsi_priv *fsi, in fsi_stream_is_working()
518 static void fsi_stream_init(struct fsi_priv *fsi, in fsi_stream_init()
540 static void fsi_stream_quit(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_stream_quit()
569 struct fsi_priv *fsi = fsi_stream_to_priv(io); in fsi_stream_transfer() local
576 #define fsi_stream_start(fsi, io)\ argument
579 #define fsi_stream_stop(fsi, io)\ argument
582 static int fsi_stream_probe(struct fsi_priv *fsi, struct device *dev) in fsi_stream_probe()
601 static int fsi_stream_remove(struct fsi_priv *fsi) in fsi_stream_remove()
623 static void fsi_format_bus_setup(struct fsi_priv *fsi, struct fsi_stream *io, in fsi_format_bus_setup()
671 static void fsi_irq_enable(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_irq_enable()
680 static void fsi_irq_disable(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_irq_disable()
694 static void fsi_irq_clear_status(struct fsi_priv *fsi) in fsi_irq_clear_status()
711 static void fsi_spdif_clk_ctrl(struct fsi_priv *fsi, int enable) in fsi_spdif_clk_ctrl()
728 struct fsi_priv *fsi, in fsi_clk_init()
791 #define fsi_clk_invalid(fsi) fsi_clk_valid(fsi, 0) argument
792 static void fsi_clk_valid(struct fsi_priv *fsi, unsigned long rate) in fsi_clk_valid()
797 static int fsi_clk_is_valid(struct fsi_priv *fsi) in fsi_clk_is_valid()
804 struct fsi_priv *fsi) in fsi_clk_enable()
843 struct fsi_priv *fsi) in fsi_clk_disable()
860 struct fsi_priv *fsi, in fsi_clk_set_ackbpf()
927 struct fsi_priv *fsi) in fsi_clk_set_rate_external()
959 struct fsi_priv *fsi) in fsi_clk_set_rate_cpg()
1067 static void fsi_pio_push16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push16()
1090 static void fsi_pio_pop16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop16()
1099 static void fsi_pio_push32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push32()
1108 static void fsi_pio_pop32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop32()
1117 static u8 *fsi_pio_get_area(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_pio_get_area()
1125 static int fsi_pio_transfer(struct fsi_priv *fsi, struct fsi_stream *io, in fsi_pio_transfer()
1126 void (*run16)(struct fsi_priv *fsi, u8 *buf, int samples), in fsi_pio_transfer()
1127 void (*run32)(struct fsi_priv *fsi, u8 *buf, int samples), in fsi_pio_transfer()
1153 static int fsi_pio_pop(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_pio_pop()
1170 static int fsi_pio_push(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_pio_push()
1188 static int fsi_pio_start_stop(struct fsi_priv *fsi, struct fsi_stream *io, in fsi_pio_start_stop()
1205 static int fsi_pio_push_init(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_pio_push_init()
1223 static int fsi_pio_pop_init(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_pio_pop_init()
1275 static int fsi_dma_init(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_dma_init()
1290 struct fsi_priv *fsi = fsi_stream_to_priv(io); in fsi_dma_complete() local
1297 static int fsi_dma_transfer(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_dma_transfer()
1354 static int fsi_dma_push_start_stop(struct fsi_priv *fsi, struct fsi_stream *io, in fsi_dma_push_start_stop()
1371 static int fsi_dma_probe(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev) in fsi_dma_probe()
1423 static int fsi_dma_remove(struct fsi_priv *fsi, struct fsi_stream *io) in fsi_dma_remove()
1445 static void fsi_fifo_init(struct fsi_priv *fsi, in fsi_fifo_init()
1500 static int fsi_hw_startup(struct fsi_priv *fsi, in fsi_hw_startup()
1556 static int fsi_hw_shutdown(struct fsi_priv *fsi, in fsi_hw_shutdown()
1569 struct fsi_priv *fsi = fsi_get_priv(substream); in fsi_dai_startup() local
1579 struct fsi_priv *fsi = fsi_get_priv(substream); in fsi_dai_shutdown() local
1587 struct fsi_priv *fsi = fsi_get_priv(substream); in fsi_dai_trigger() local
1612 static int fsi_set_fmt_dai(struct fsi_priv *fsi, unsigned int fmt) in fsi_set_fmt_dai()
1630 static int fsi_set_fmt_spdif(struct fsi_priv *fsi) in fsi_set_fmt_spdif()
1645 struct fsi_priv *fsi = fsi_get_priv_frm_dai(dai); in fsi_dai_set_fmt() local
1702 struct fsi_priv *fsi = fsi_get_priv(substream); in fsi_dai_hw_params() local
1766 struct fsi_priv *fsi = fsi_get_priv(substream); in fsi_pointer() local
1866 static void fsi_port_info_init(struct fsi_priv *fsi, in fsi_port_info_init()
1879 static void fsi_handler_init(struct fsi_priv *fsi, in fsi_handler_init()
1932 struct fsi_priv *fsi; in fsi_probe() local
2045 static void __fsi_suspend(struct fsi_priv *fsi, in __fsi_suspend()
2056 static void __fsi_resume(struct fsi_priv *fsi, in __fsi_resume()