Searched refs:dcb_idx (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/net/ethernet/microchip/fdma/ |
H A D | fdma_api.h | 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() [all …]
|
H A D | fdma_api.c | 10 static int __fdma_db_add(struct fdma *fdma, int dcb_idx, int db_idx, u64 status, in __fdma_db_add() argument 11 int (*cb)(struct fdma *fdma, int dcb_idx, in __fdma_db_add() 14 struct fdma_db *db = fdma_db_get(fdma, dcb_idx, db_idx); in __fdma_db_add() 18 return cb(fdma, dcb_idx, db_idx, &db->dataptr); in __fdma_db_add() 22 int fdma_db_add(struct fdma *fdma, int dcb_idx, int db_idx, u64 status) in fdma_db_add() argument 25 dcb_idx, in fdma_db_add() 32 int __fdma_dcb_add(struct fdma *fdma, int dcb_idx, u64 info, u64 status, in __fdma_dcb_add() argument 33 int (*dcb_cb)(struct fdma *fdma, int dcb_idx, u64 *nextptr), in __fdma_dcb_add() 34 int (*db_cb)(struct fdma *fdma, int dcb_idx, int db_idx, in __fdma_dcb_add() 37 struct fdma_dcb *dcb = fdma_dcb_get(fdma, dcb_idx); in __fdma_dcb_add() [all …]
|