cmd_length
static uint8_t cmd_length[32] = {
len = cmd_length[op];
int cmd_len = cmd_length(s);
int cmd_len = cmd_length(s);
int cmd_len = cmd_length(s);
int cmd_len = cmd_length(s);
return ip_gma_advance(s, cmd_length(s));
int len = cmd_length(s);
ret = gvt_check_valid_cmd_length(cmd_length(s),
for (i = 0; i < cmd_length(s); i++) {
int op_size = (cmd_length(s) - 3) * sizeof(u32);
ret = gvt_check_valid_cmd_length(cmd_length(s),
ret = gvt_check_valid_cmd_length(cmd_length(s),
ret = gvt_check_valid_cmd_length(cmd_length(s),
ret = gvt_check_valid_cmd_length(cmd_length(s),
s->ret_ip_gma_ring = s->ip_gma + cmd_length(s) * sizeof(u32);
s->ret_ip_gma_bb = s->ip_gma + cmd_length(s) * sizeof(u32);
s->ret_bb_va = s->ip_va + cmd_length(s) * sizeof(u32);
cmd_length(s), s->buf_type, s->buf_addr_type,
ret = gvt_check_valid_cmd_length(cmd_length(s),
static int rog_ryujin_write_expanded(struct rog_ryujin_data *priv, const u8 *cmd, int cmd_length)
memcpy_and_pad(priv->buffer, MAX_REPORT_LENGTH, cmd, cmd_length, 0x00);
static int rog_ryujin_execute_cmd(struct rog_ryujin_data *priv, const u8 *cmd, int cmd_length,
ret = rog_ryujin_write_expanded(priv, cmd, cmd_length);
static int waterforce_write_expanded(struct waterforce_data *priv, const u8 *cmd, int cmd_length)
memcpy_and_pad(priv->buffer, MAX_REPORT_LENGTH, cmd, cmd_length, 0x00);
static int kraken3_write_expanded(struct kraken3_data *priv, const u8 *cmd, int cmd_length)
memcpy_and_pad(priv->buffer, MAX_REPORT_LENGTH, cmd, cmd_length, 0x00);
u32 cmd_length = 0;
cmd_length = E1000_TXD_CMD_IP;
cmd_length |= (E1000_TXD_CMD_DEXT | E1000_TXD_CMD_TSE |
context_desc->cmd_and_length = cpu_to_le32(cmd_length);
u32 cmd_length = 0;
cmd_length = E1000_TXD_CMD_IP;
cmd_length |= (E1000_TXD_CMD_DEXT | E1000_TXD_CMD_TSE |
context_desc->cmd_and_length = cpu_to_le32(cmd_length);
struct qeth_cmd_buffer *iob, u16 cmd_length)
memcpy(QETH_IPA_PDU_LEN_PDU1(iob->data), &cmd_length, 2);
memcpy(QETH_IPA_PDU_LEN_PDU2(iob->data), &cmd_length, 2);
memcpy(QETH_IPA_PDU_LEN_PDU3(iob->data), &cmd_length, 2);
unsigned cmd_length;
while (n && st->cmd_length) {
m = min(n, st->cmd_length);
st->cmd_length -= m;
return st->cmd_length != 0;
st->cmd_length = p->length;
TEST_F(iommufd, cmd_length)