Lines Matching +full:15 +full:db
49 #define FDMA_DCB_INFO_DATAL(x) ((x) & GENMASK(15, 0))
54 #define FDMA_DCB_STATUS_BLOCKL(x) ((x) & GENMASK(15, 0))
62 #define FDMA_DB_MAX 15 /* Max number of DB's on Sparx5 */
74 struct fdma_db db[FDMA_DB_MAX]; member
94 /* Size of DCB + DB memory */
97 /* Indexes used to access the next-to-be-used DCB or DB */
101 /* Number of DCB's and DB's */
105 /* Size of DB's */
122 /* Advance the DB index. */
128 /* Reset the db index to zero. */
134 /* Check if a DCB can be reused in case of multiple DB's per DCB. */
140 /* Check if the FDMA has marked this DB as done. */
141 static inline bool fdma_db_is_done(struct fdma_db *db) in fdma_db_is_done() argument
143 return db->status & FDMA_DCB_STATUS_DONE; in fdma_db_is_done()
146 /* Get the length of a DB. */
147 static inline int fdma_db_len_get(struct fdma_db *db) in fdma_db_len_get() argument
149 return FDMA_DCB_STATUS_BLOCKL(db->status); in fdma_db_len_get()
152 /* Set the length of a DB. */
158 /* Get a DB by index. */
162 return &fdma->dcbs[dcb_idx].db[db_idx]; in fdma_db_get()
165 /* Get the next DB. */