Lines Matching defs:gpii
490 struct gpii *gpii; member
501 struct gpii { struct
502 u32 gpii_id; argument
503 struct gchan gchan[MAX_CHANNELS_PER_GPII];
504 struct gpi_dev *gpi_dev;
505 int irq;
506 void __iomem *regs; /* points to gpi top */
507 void __iomem *ev_cntxt_base_reg;
508 void __iomem *ev_cntxt_db_reg;
509 void __iomem *ev_ring_rp_lsb_reg;
510 void __iomem *ev_cmd_reg;
511 void __iomem *ieob_clr_reg;
512 struct mutex ctrl_lock;
513 enum gpi_ev_state ev_state;
514 bool configured_irq;
515 enum gpi_pm_state pm_state;
516 rwlock_t pm_lock;
517 struct gpi_ring ev_ring;
518 struct tasklet_struct ev_task; /* event processing tasklet */
519 struct completion cmd_completion;
543 static void gpi_process_events(struct gpii *gpii); argument
566 static inline u32 gpi_read_reg(struct gpii *gpii, void __iomem *addr) in gpi_read_reg()
571 static inline void gpi_write_reg(struct gpii *gpii, void __iomem *addr, u32 val) in gpi_write_reg()
577 static inline void gpi_write_reg_field(struct gpii *gpii, void __iomem *addr, in gpi_write_reg_field()
588 gpi_update_reg(struct gpii *gpii, u32 offset, u32 mask, u32 val) in gpi_update_reg()
599 static void gpi_disable_interrupts(struct gpii *gpii) in gpi_disable_interrupts()
622 static int gpi_config_interrupts(struct gpii *gpii, enum gpii_irq_settings settings, bool mask) in gpi_config_interrupts()
686 static int gpi_send_cmd(struct gpii *gpii, struct gchan *gchan, in gpi_send_cmd()
735 struct gpii *gpii = gchan->gpii; in gpi_write_ch_db() local
743 static inline void gpi_write_ev_db(struct gpii *gpii, in gpi_write_ev_db()
753 static void gpi_process_ieob(struct gpii *gpii) in gpi_process_ieob()
762 static void gpi_process_ch_ctrl_irq(struct gpii *gpii) in gpi_process_ch_ctrl_irq()
803 static void gpi_process_gen_err_irq(struct gpii *gpii) in gpi_process_gen_err_irq()
818 static void gpi_process_glob_err_irq(struct gpii *gpii) in gpi_process_glob_err_irq()
840 struct gpii *gpii = data; in gpi_handle_irq() local
932 struct gpii *gpii = gchan->gpii; in gpi_process_imed_data_event() local
1014 struct gpii *gpii = gchan->gpii; in gpi_process_xfer_compl_event() local
1090 static void gpi_process_events(struct gpii *gpii) in gpi_process_events()
1151 struct gpii *gpii = (struct gpii *)data; in gpi_ev_tasklet() local
1172 struct gpii *gpii = gchan->gpii; in gpi_mark_stale_events() local
1198 struct gpii *gpii = gchan->gpii; in gpi_reset_chan() local
1234 struct gpii *gpii = gchan->gpii; in gpi_start_chan() local
1254 struct gpii *gpii = gchan->gpii; in gpi_stop_chan() local
1270 struct gpii *gpii = chan->gpii; in gpi_alloc_chan() local
1307 static int gpi_alloc_ev_chan(struct gpii *gpii) in gpi_alloc_ev_chan()
1398 struct gpii *gpii) in gpi_free_ring()
1407 u32 el_size, struct gpii *gpii) in gpi_alloc_ring()
1455 static void gpi_queue_xfer(struct gpii *gpii, struct gchan *gchan, in gpi_queue_xfer()
1477 struct gpii *gpii = gchan->gpii; in gpi_terminate_all() local
1541 struct gpii *gpii = gchan->gpii; in gpi_pause() local
1582 struct gpii *gpii = gchan->gpii; in gpi_resume() local
1796 struct gpii *gpii = gchan->gpii; in gpi_prep_slave_sg() local
1856 struct gpii *gpii = gchan->gpii; in gpi_issue_pending() local
1892 struct gpii *gpii = gchan->gpii; in gpi_ch_init() local
1976 struct gpii *gpii = gchan->gpii; in gpi_free_chan_resources() local
2046 struct gpii *gpii = gchan->gpii; in gpi_alloc_chan_resources() local
2071 unsigned int gpii; in gpi_find_avail_gpii() local
2114 int gpii; in gpi_of_dma_xlate() local
2201 struct gpii *gpii = &gpi_dev->gpiis[i]; in gpi_probe() local