queue_mode
device_param_cb(queue_mode, &null_queue_mode_param_ops, &g_queue_mode, 0444);
MODULE_PARM_DESC(queue_mode, "Block interface to use (0=bio,1=rq,2=multiqueue)");
if (dev->queue_mode == NULL_Q_RQ) {
if (dev->queue_mode == NULL_Q_BIO) {
dev->queue_mode = NULL_Q_MQ;
NULLB_DEVICE_ATTR(queue_mode, uint, NULL);
dev->queue_mode = g_queue_mode;
unsigned int queue_mode; /* block interface */
uint8_t queue_mode;
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
fw_shared->sq.queue_mode |= FW_QUEUE_DPG_HOLD_OFF;
fw_shared->sq.queue_mode &=
fw_shared->sq.queue_mode |= FW_QUEUE_DPG_HOLD_OFF;
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
fw_shared->sq.queue_mode &= cpu_to_le32(~FW_QUEUE_RING_RESET);
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
fw_shared->sq.queue_mode |= FW_QUEUE_DPG_HOLD_OFF;
fw_shared->sq.queue_mode |= FW_QUEUE_DPG_HOLD_OFF;
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
fw_shared->sq.queue_mode |= FW_QUEUE_DPG_HOLD_OFF;
fw_shared->sq.queue_mode |= FW_QUEUE_RING_RESET;
fw_shared->sq.queue_mode &= ~(FW_QUEUE_RING_RESET | FW_QUEUE_DPG_HOLD_OFF);
if (m->queue_mode == DM_TYPE_BIO_BASED) {
m->queue_mode = DM_TYPE_BIO_BASED;
m->queue_mode = DM_TYPE_REQUEST_BASED;
if (m->queue_mode == DM_TYPE_BIO_BASED)
if (m->queue_mode == DM_TYPE_BIO_BASED)
if (m->queue_mode == DM_TYPE_BIO_BASED || !dm_noflush_suspending(m->ti))
(m->queue_mode != DM_TYPE_REQUEST_BASED) * 2);
if (m->queue_mode != DM_TYPE_REQUEST_BASED) {
switch (m->queue_mode) {
return (m->queue_mode != DM_TYPE_REQUEST_BASED);
m->queue_mode = DM_TYPE_NONE;
if (m->queue_mode == DM_TYPE_NONE)
m->queue_mode = DM_TYPE_REQUEST_BASED;
else if (m->queue_mode == DM_TYPE_BIO_BASED)
dm_table_set_type(ti->table, m->queue_mode);
if (m->queue_mode == DM_TYPE_REQUEST_BASED)
else if (m->queue_mode == DM_TYPE_BIO_BASED)
enum dm_queue_mode queue_mode;
static void set_queue_mode(struct e1000_hw *hw, int queue, enum queue_mode mode)
if (priv->hw_version >= MVPP22 && queue_mode == MVPP2_QDIST_SINGLE_MODE)
return (queue_mode == MVPP2_QDIST_MULTI_MODE) &&
switch (queue_mode) {
if (queue_mode == MVPP2_QDIST_MULTI_MODE) {
} else if (queue_mode == MVPP2_QDIST_SINGLE_MODE &&
static int queue_mode = MVPP2_QDIST_MULTI_MODE;
if (!has_tx_irqs && queue_mode == MVPP2_QDIST_MULTI_MODE) {
module_param(queue_mode, int, 0444);
MODULE_PARM_DESC(queue_mode, "Set queue_mode (single=0, multi=1)");
queue_mode = MVPP2_QDIST_SINGLE_MODE;
if (queue_mode == MVPP2_QDIST_SINGLE_MODE)
else if (queue_mode == MVPP2_QDIST_MULTI_MODE)
.queue_mode = MLX4_NET_TRANS_Q_FIFO,
.queue_mode = MLX4_NET_TRANS_Q_LIFO,
.queue_mode = MLX4_NET_TRANS_Q_FIFO,
.queue_mode = MLX4_NET_TRANS_Q_FIFO,
.queue_mode = MLX4_NET_TRANS_Q_FIFO,
.queue_mode = MLX4_NET_TRANS_Q_FIFO,
flags = ctrl->queue_mode == MLX4_NET_TRANS_Q_LIFO ? 1 : 0;
enum mlx4_net_trans_hw_rule_queue queue_mode;