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