Lines Matching refs:afu
28 #define MAX_CONTEXT CXLFLASH_MAX_CONTEXT /* num contexts per afu */
113 struct afu *afu;
158 struct afu *parent;
204 struct afu *afu;
230 struct afu {
232 int (*send_cmd)(struct afu *afu, struct afu_cmd *cmd);
255 static inline struct hwq *get_hwq(struct afu *afu, u32 index)
259 return &afu->hwqs[index];
262 static inline bool afu_is_irqpoll_enabled(struct afu *afu)
264 return !!afu->irqpoll_weight;
267 static inline bool afu_has_cap(struct afu *afu, u64 cap)
269 u64 afu_cap = afu->interface_version >> SISL_INTVER_CAP_SHIFT;
274 static inline bool afu_is_ocxl_lisn(struct afu *afu)
276 return afu_has_cap(afu, SISL_INTVER_CAP_OCXL_LISN);
279 static inline bool afu_is_afu_debug(struct afu *afu)
281 return afu_has_cap(afu, SISL_INTVER_CAP_AFU_DEBUG);
284 static inline bool afu_is_lun_provision(struct afu *afu)
286 return afu_has_cap(afu, SISL_INTVER_CAP_LUN_PROVISION);
289 static inline bool afu_is_sq_cmd_mode(struct afu *afu)
291 return afu_has_cap(afu, SISL_INTVER_CAP_SQ_CMD_MODE);
294 static inline bool afu_is_ioarrin_cmd_mode(struct afu *afu)
296 return afu_has_cap(afu, SISL_INTVER_CAP_IOARRIN_CMD_MODE);
310 struct afu *afu = cfg->afu;
312 return &afu->afu_map->global.bank[CHAN2PORTBANK(i)];
329 int cxlflash_afu_sync(struct afu *afu, ctx_hndl_t c, res_hndl_t r, u8 mode);