Lines Matching defs:mode
418 * Hashes a command based upon the hardware queue mode.
1834 /* Set up master's own CTX_CAP to allow real mode, host translation */
2359 * @mode: Type of sync to issue (lightweight, heavyweight, global).
2370 int cxlflash_afu_sync(struct afu *afu, ctx_hndl_t ctx, res_hndl_t res, u8 mode)
2376 dev_dbg(dev, "%s: afu=%p ctx=%u res=%u mode=%u\n",
2377 __func__, afu, ctx, res, mode);
2384 rcb.cdb[1] = mode;
2655 * lun_mode_show() - presents the current LUN mode of the host
2657 * @attr: Device attribute representing the LUN mode.
2658 * @buf: Buffer of length PAGE_SIZE to report back the LUN mode in ASCII.
2672 * lun_mode_store() - sets the LUN mode of the host
2674 * @attr: Device attribute representing the LUN mode.
2675 * @buf: Buffer of length PAGE_SIZE containing the LUN mode in ASCII.
2678 * The CXL Flash AFU supports a dummy LUN mode where the external
3013 * hwq_mode_show() - presents the HWQ steering mode for the host
3015 * @attr: Device attribute representing the HWQ steering mode.
3016 * @buf: Buffer of length PAGE_SIZE to report back the HWQ steering mode
3031 * hwq_mode_store() - sets the HWQ steering mode for the host
3033 * @attr: Device attribute representing the HWQ steering mode.
3034 * @buf: Buffer of length PAGE_SIZE containing the HWQ steering mode
3053 u32 mode = MAX_HWQ_MODE;
3057 mode = i;
3062 if (mode >= MAX_HWQ_MODE) {
3063 dev_info(cfgdev, "Invalid HWQ steering mode.\n");
3067 afu->hwq_mode = mode;
3073 * mode_show() - presents the current mode of the device
3075 * @attr: Device attribute representing the device mode.
3076 * @buf: Buffer of length PAGE_SIZE to report back the dev mode in ASCII.
3128 static DEVICE_ATTR_RO(mode);
3856 * @mode: Mode that can be used to verify access.
3860 static char *cxlflash_devnode(const struct device *dev, umode_t *mode)