Lines Matching refs:sde
391 static inline int sdma_empty(struct sdma_engine *sde) in sdma_empty() argument
393 return sde->descq_tail == sde->descq_head; in sdma_empty()
396 static inline u16 sdma_descq_freecnt(struct sdma_engine *sde) in sdma_descq_freecnt() argument
398 return sde->descq_cnt - in sdma_descq_freecnt()
399 (sde->descq_tail - in sdma_descq_freecnt()
400 READ_ONCE(sde->descq_head)) - 1; in sdma_descq_freecnt()
403 static inline u16 sdma_descq_inprocess(struct sdma_engine *sde) in sdma_descq_inprocess() argument
405 return sde->descq_cnt - sdma_descq_freecnt(sde); in sdma_descq_inprocess()
804 int sdma_send_txreq(struct sdma_engine *sde,
808 int sdma_send_txlist(struct sdma_engine *sde,
813 int sdma_ahg_alloc(struct sdma_engine *sde);
814 void sdma_ahg_free(struct sdma_engine *sde, int ahg_index);
856 static inline unsigned sdma_progress(struct sdma_engine *sde, unsigned seq, in sdma_progress() argument
859 if (read_seqretry(&sde->head_lock, seq)) { in sdma_progress()
860 sde->desc_avail = sdma_descq_freecnt(sde); in sdma_progress()
861 if (tx->num_desc > sde->desc_avail) in sdma_progress()
869 void sdma_engine_error(struct sdma_engine *sde, u64 status);
870 void sdma_engine_interrupt(struct sdma_engine *sde, u64 status);
945 struct sdma_engine *sde[]; member
977 void _sdma_engine_progress_schedule(struct sdma_engine *sde);
987 struct sdma_engine *sde) in sdma_engine_progress_schedule() argument
989 if (!sde || sdma_descq_inprocess(sde) < (sde->descq_cnt / 8)) in sdma_engine_progress_schedule()
991 _sdma_engine_progress_schedule(sde); in sdma_engine_progress_schedule()
1006 ssize_t sdma_get_cpu_to_sde_map(struct sdma_engine *sde, char *buf);
1007 ssize_t sdma_set_cpu_to_sde_map(struct sdma_engine *sde, const char *buf,
1009 int sdma_engine_get_vl(struct sdma_engine *sde);