cpu_to_be32
devlog_cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_DEVLOG_CMD) |
devlog_cmd.retval_len16 = cpu_to_be32(FW_LEN16(devlog_cmd));
cpu_to_be32(V_FW_CMD_OP(FW_RSS_VI_CONFIG_CMD) |
rvc.retval_len16 = cpu_to_be32(FW_LEN16(rvc));
cmd.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) |
cmd.action_to_len16 = cpu_to_be32(
cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
ldst_cmd.cycles_to_len16 = cpu_to_be32(FW_LEN16(ldst_cmd));
cmd.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_ACL_MAC_CMD) |
cmd.en_to_len16 = cpu_to_be32((unsigned int)FW_LEN16(cmd));
cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
ldst_cmd.cycles_to_len16 = cpu_to_be32(FW_LEN16(ldst_cmd));
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
c.u.idctxt.physid = cpu_to_be32(cid);
cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_SCHED_CMD) |
cmd.retval_len16 = cpu_to_be32(FW_LEN16(cmd));
cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_SCHED_CMD) |
cmd.retval_len16 = cpu_to_be32(FW_LEN16(cmd));
cmd.u.params.min = cpu_to_be32(minrate);
cmd.u.params.max = cpu_to_be32(maxrate);
cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_SCHED_CMD) |
cmd.retval_len16 = cpu_to_be32(FW_LEN16(cmd));
wdog.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_WATCHDOG_CMD) |
wdog.retval_len16 = cpu_to_be32(FW_LEN16(wdog));
wdog.timeout = cpu_to_be32(ticks);
wdog.action = cpu_to_be32(action);
devlog_cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_DEVLOG_CMD) |
devlog_cmd.retval_len16 = cpu_to_be32(FW_LEN16(devlog_cmd));
devlog_cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_DEVLOG_CMD) |
devlog_cmd.retval_len16 = cpu_to_be32(FW_LEN16(devlog_cmd));
vlan_cmd.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_ACL_VLAN_CMD) |
vlan_cmd.en_to_len16 = cpu_to_be32(enable | FW_LEN16(vlan_cmd));
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
c.freemacs_to_len16 = cpu_to_be32(
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
c.freemacs_to_len16 = cpu_to_be32(
cmd.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_PFVF_CMD) |
cmd.retval_len16 = cpu_to_be32(FW_LEN16(cmd));
*data = (__force __u32)(cpu_to_be32(*data));
val = cpu_to_be32(val);
((struct fw_hdr *)first_page)->fw_ver = cpu_to_be32(0xffffffff);
cpu_to_be32(V_FW_CMD_OP(FW_PARAMS_CMD) |
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
cpu_to_be32(V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DEV) |
cmd.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_RSS_IND_TBL_CMD) |
cmd.retval_len16 = cpu_to_be32(FW_LEN16(cmd));
*qp++ = cpu_to_be32(V_FW_RSS_IND_TBL_CMD_IQ0(qbuf[0]) |
c.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_RSS_GLB_CONFIG_CMD) |
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
cpu_to_be32(V_FW_RSS_GLB_CONFIG_CMD_MODE(mode));
cpu_to_be32(V_FW_RSS_GLB_CONFIG_CMD_MODE(mode));
c.u.basicvirtual.synmapen_to_hashtoeplitz = cpu_to_be32(flags);
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_RSS_VI_CONFIG_CMD) |
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
c.u.basicvirtual.defaultq_to_udpen = cpu_to_be32(flags |
c.u.basicvirtual.secretkeyidx_pkd = cpu_to_be32(
c.u.basicvirtual.secretkeyxor = cpu_to_be32(skey);
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
c.u.addrval.addr = cpu_to_be32(start_index + i);
c.u.addrval.val = rw ? 0 : cpu_to_be32(vals[i]);
wr->op_pkd = cpu_to_be32(V_FW_WR_OP(FW_FILTER_WR));
wr->len16_pkd = cpu_to_be32(V_FW_WR_LEN16(sizeof(*wr) / 16));
wr->tid_to_iq = cpu_to_be32(V_FW_FILTER_WR_TID(ftid) |
wr->del_filter_to_l2tix = cpu_to_be32(F_FW_FILTER_WR_DEL_FILTER);
(var).op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_##cmd##_CMD) | \
(var).retval_len16 = cpu_to_be32(FW_LEN16(var)); \
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
c.u.addrval.addr = cpu_to_be32(addr);
c.u.addrval.val = cpu_to_be32(val);
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
c.op_to_addrspace = cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) |
c.cycles_to_len16 = cpu_to_be32(FW_LEN16(c));
c.u.idctxt.msg_ctxtflush = cpu_to_be32(F_FW_LDST_CMD_CTXTFLUSH);
c.err_to_clearinit = cpu_to_be32(
c.val = cpu_to_be32(reset);
c.val = cpu_to_be32(F_PIORST | F_PIORSTMODE);
c.halt_pkd = cpu_to_be32(F_FW_RESET_CMD_HALT);
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_PARAMS_CMD) |
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
*p++ = cpu_to_be32(*params++);
*p = cpu_to_be32(*(val + i));
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_PARAMS_CMD) |
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
*p++ = cpu_to_be32(*params++);
*p++ = cpu_to_be32(*val++);
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_PFVF_CMD) | F_FW_CMD_REQUEST |
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
c.niqflint_niq = cpu_to_be32(V_FW_PFVF_CMD_NIQFLINT(rxqi) |
c.type_to_neq = cpu_to_be32(V_FW_PFVF_CMD_CMASK(cmask) |
c.tc_to_nexactf = cpu_to_be32(V_FW_PFVF_CMD_TC(tc) |
c.r_caps_to_nethctrl = cpu_to_be32(V_FW_PFVF_CMD_R_CAPS(rcaps) |
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_VI_CMD) | F_FW_CMD_REQUEST |
c.alloc_to_len16 = cpu_to_be32(F_FW_VI_CMD_ALLOC | FW_LEN16(c));
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_VI_CMD) |
c.alloc_to_len16 = cpu_to_be32(F_FW_VI_CMD_FREE | FW_LEN16(c));
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_RXMODE_CMD) |
c.retval_len16 = cpu_to_be32(FW_LEN16(c));
cpu_to_be32(V_FW_VI_RXMODE_CMD_MTU(mtu) |
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
c.freemacs_to_len16 = cpu_to_be32(val);
p->lookup_type_to_vni = cpu_to_be32(V_FW_VI_MAC_CMD_VNI(vni) |
p->vni_mask_pkd = cpu_to_be32(V_FW_VI_MAC_CMD_VNI_MASK(vni_mask));
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
c.freemacs_to_len16 = cpu_to_be32(val);
p->raw_idx_pkd = cpu_to_be32(V_FW_VI_MAC_CMD_RAW_IDX(idx));
p->data0_pkd = cpu_to_be32(V_DATALKPTYPE(lookup_type) |
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
c.freemacs_to_len16 = cpu_to_be32(V_FW_VI_MAC_CMD_FREEMACS(free) |
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
c.freemacs_to_len16 = cpu_to_be32(V_FW_VI_MAC_CMD_FREEMACS(0) |
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
c.freemacs_to_len16 = cpu_to_be32(V_FW_VI_MAC_CMD_FREEMACS(0) |
p->raw_idx_pkd = cpu_to_be32(V_FW_VI_MAC_CMD_RAW_IDX(idx) |
p->data0_pkd = cpu_to_be32(V_DATALKPTYPE(lookup_type) |
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
cpu_to_be32(V_FW_VI_MAC_CMD_FREEMACS(0) |
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_MAC_CMD) |
c.freemacs_to_len16 = cpu_to_be32(val);
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_ENABLE_CMD) |
c.ien_to_len16 = cpu_to_be32(V_FW_VI_ENABLE_CMD_IEN(rx_en) |
c.op_to_viid = cpu_to_be32(V_FW_CMD_OP(FW_VI_ENABLE_CMD) |
c.ien_to_len16 = cpu_to_be32(F_FW_VI_ENABLE_CMD_LED | FW_LEN16(c));
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_IQ_CMD) | F_FW_CMD_REQUEST |
c.alloc_to_len16 = cpu_to_be32(F_FW_IQ_CMD_IQSTOP | FW_LEN16(c));
c.type_to_iqandstindex = cpu_to_be32(V_FW_IQ_CMD_TYPE(iqtype));
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_IQ_CMD) | F_FW_CMD_REQUEST |
c.alloc_to_len16 = cpu_to_be32(F_FW_IQ_CMD_FREE | FW_LEN16(c));
c.type_to_iqandstindex = cpu_to_be32(V_FW_IQ_CMD_TYPE(iqtype));
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_EQ_ETH_CMD) |
c.alloc_to_len16 = cpu_to_be32(F_FW_EQ_ETH_CMD_FREE | FW_LEN16(c));
c.eqid_pkd = cpu_to_be32(V_FW_EQ_ETH_CMD_EQID(eqid));
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_EQ_CTRL_CMD) |
c.alloc_to_len16 = cpu_to_be32(F_FW_EQ_CTRL_CMD_FREE | FW_LEN16(c));
c.cmpliqid_eqid = cpu_to_be32(V_FW_EQ_CTRL_CMD_EQID(eqid));
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_EQ_OFLD_CMD) |
c.alloc_to_len16 = cpu_to_be32(F_FW_EQ_OFLD_CMD_FREE | FW_LEN16(c));
c.eqid_pkd = cpu_to_be32(V_FW_EQ_OFLD_CMD_EQID(eqid));
cmd.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) |
cpu_to_be32(V_FW_PORT_CMD_ACTION(fw_caps == FW_CAPS16
cmd.u.l1cfg.rcap = cpu_to_be32(fwcaps32_to_caps16(rcap));
cmd.u.l1cfg32.rcap32 = cpu_to_be32(rcap);
c.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) |
cpu_to_be32(V_FW_PORT_CMD_ACTION(fw_caps == FW_CAPS16
c.u.l1cfg.rcap = cpu_to_be32(FW_PORT_CAP_ANEG);
c.u.l1cfg32.rcap32 = cpu_to_be32(FW_PORT_CAP32_ANEG);
port_cmd.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) |
port_cmd.action_to_len16 = cpu_to_be32(
port_cmd.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) |
port_cmd.action_to_len16 = cpu_to_be32(
c.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_IQ_CMD) | F_FW_CMD_REQUEST |
c.alloc_to_len16 = cpu_to_be32(F_FW_IQ_CMD_ALLOC | F_FW_IQ_CMD_IQSTART |
c.type_to_iqandstindex = cpu_to_be32(v |
cpu_to_be32(V_FW_IQ_CMD_FL0HOSTFCMODE(X_HOSTFCMODE_NONE) |
txinfo->sgl.sge[n / 2].len[1] = cpu_to_be32(0);
txinfo->sgl.cmd_nsge = cpu_to_be32(V_ULPTX_CMD((u32)ULP_TX_SC_DSGL) |
txinfo->sgl.sge[idx / 2].len[idx & 1] = cpu_to_be32(len);
txinfo->sgl.len0 = cpu_to_be32(len);
wr->op_pkd = cpu_to_be32(V_FW_WR_OP(FW_ETH_TX_PKTS_WR) |
wr->equiq_to_len16 = cpu_to_be32(ctrl);
wr->op_immdlen = cpu_to_be32(V_FW_WR_OP(FW_ETH_TX_PKT_WR) |
wr->equiq_to_len16 = cpu_to_be32(ctrl);
lso->lso_ctrl = cpu_to_be32(ctrl);
lso->seqno_offset = cpu_to_be32(0);
lso->len = cpu_to_be32(txinfo->len);
lso->len = cpu_to_be32(V_LSO_T5_XFER_SIZE(txinfo->len));
cpl->ctrl0 = cpu_to_be32(V_TXPKT_OPCODE(CPL_TX_PKT_XT) |
ulpsc->cmd_more = cpu_to_be32(V_ULPTX_CMD((u32)ULP_TX_SC_IMM) |
ulpsc->len = cpu_to_be32(sizeof (struct cpl_tx_pkt_core));
cpl->ctrl0 = cpu_to_be32(V_TXPKT_OPCODE(CPL_TX_PKT_XT) |
scsi->hdr.sg_list_len_bytes = cpu_to_be32(sgd->byte_count);
scsi->hdr.sg_list_len_bytes = cpu_to_be32(SKD_N_INTERNAL_BYTES);
scsi->hdr.sg_list_len_bytes = cpu_to_be32(sgd->byte_count);
scsi->hdr.sg_list_len_bytes = cpu_to_be32(sgd->byte_count);
scsi_req->hdr.sg_list_len_bytes = cpu_to_be32(sg_byte_count);