UBLK_F_SUPPORT_ZERO_COPY
if (!(ub->dev_info.flags & UBLK_F_SUPPORT_ZERO_COPY))
return ubq->flags & UBLK_F_SUPPORT_ZERO_COPY;
return ub->dev_info.flags & UBLK_F_SUPPORT_ZERO_COPY;
if (info.flags & (UBLK_F_USER_COPY | UBLK_F_SUPPORT_ZERO_COPY |
if (ub->dev_info.flags & (UBLK_F_USER_COPY | UBLK_F_SUPPORT_ZERO_COPY |
(UBLK_F_USER_COPY | UBLK_F_SUPPORT_ZERO_COPY)))) {
#define UBLK_F_ALL (UBLK_F_SUPPORT_ZERO_COPY \
if (dev->dev_info.flags & (UBLK_F_SUPPORT_ZERO_COPY | UBLK_F_USER_COPY |
FEAT_NAME(UBLK_F_SUPPORT_ZERO_COPY),
ctx.flags |= UBLK_F_SUPPORT_ZERO_COPY;
(ctx.flags & UBLK_F_SUPPORT_ZERO_COPY))) {
(ctx.flags & UBLK_F_SUPPORT_ZERO_COPY && !ctx.auto_zc_fallback) +
if (dev->dev_info.flags & (UBLK_F_SUPPORT_ZERO_COPY | UBLK_F_AUTO_BUF_REG)) {
return !!(q->flags & UBLK_F_SUPPORT_ZERO_COPY);
if (info->flags & UBLK_F_SUPPORT_ZERO_COPY)
if (dev->dev_info.flags & UBLK_F_SUPPORT_ZERO_COPY)