Lines Matching refs:dcb_idx
79 int (*dataptr_cb)(struct fdma *fdma, int dcb_idx, int db_idx, u64 *ptr);
81 int (*nextptr_cb)(struct fdma *fdma, int dcb_idx, u64 *ptr);
159 static inline struct fdma_db *fdma_db_get(struct fdma *fdma, int dcb_idx, in fdma_db_get() argument
162 return &fdma->dcbs[dcb_idx].db[db_idx]; in fdma_db_get()
172 static inline struct fdma_dcb *fdma_dcb_get(struct fdma *fdma, int dcb_idx) in fdma_dcb_get() argument
174 return &fdma->dcbs[dcb_idx]; in fdma_dcb_get()
190 static inline int fdma_nextptr_cb(struct fdma *fdma, int dcb_idx, u64 *nextptr) in fdma_nextptr_cb() argument
192 *nextptr = fdma->dma + (sizeof(struct fdma_dcb) * dcb_idx); in fdma_nextptr_cb()
200 static inline u64 fdma_dataptr_get_contiguous(struct fdma *fdma, int dcb_idx, in fdma_dataptr_get_contiguous() argument
204 (dcb_idx * fdma->n_dbs + db_idx) * fdma->db_size + in fdma_dataptr_get_contiguous()
213 int dcb_idx, int db_idx) in fdma_dataptr_virt_get_contiguous() argument
216 (dcb_idx * fdma->n_dbs + db_idx) * fdma->db_size + in fdma_dataptr_virt_get_contiguous()
227 int fdma_db_add(struct fdma *fdma, int dcb_idx, int db_idx, u64 status);
228 int fdma_dcb_add(struct fdma *fdma, int dcb_idx, u64 info, u64 status);
229 int __fdma_dcb_add(struct fdma *fdma, int dcb_idx, u64 info, u64 status,
230 int (*dcb_cb)(struct fdma *fdma, int dcb_idx, u64 *nextptr),
231 int (*db_cb)(struct fdma *fdma, int dcb_idx, int db_idx,