__be32
static __be32* tobe(u32 *x)
return (__be32 *) x; // should warn, explicit cast
static __be32* tobf(u32 *x)
return (__force __be32 *) x; // should not warn, forced cast
return (__be32 __force *) x; // should not warn, forced cast
static __be32* tobi(u32 *x)
static __be32 bar(void)
return (__be32)0;
static __be32 baz(void)
__be32 x = 0x2a;
static __be32 quux(void)
return (__be32)1729;
static __be32 quuy(void)
return (__attribute__((force)) __be32) 1730;
static __be32 foo(void)
__be32 x = 0;
const __be32 *p = (const __be32 *)fw_data;
phy_fw_size, (__be32*)phy_fw_data,
c.param[0].val = (__force __be32)op;
__be32 *qp = &cmd.iq0_to_iq2;
__be32 raw_tcb[TCB_SIZE/4];
__be32 *p = &c.param[0].mnem;
__be32 *p = &c.param[0].mnem;
offset += sizeof(__be32);
len -= sizeof(__be32);
__be32 hdrbuflen_pidx;
__be32 pldbuflen_qid;
__be32 qid;
__be32 rsvd0;
__be32 rsvd0;
__be32 rcv_nxt;
__be32 rsvd;
__be32 wr_hi;
__be32 wr_lo;
__be32 len;
__be32 flags;
__be32 sndseq;
__be32 param;
__be32 len;
__be32 rsvd;
__be32 flags;
__be32 snd_una;
__be32 snd_nxt;
__be32 snd_una;
__be32 ctrl0;
__be32 lso_ctrl;
__be32 seqno_offset;
__be32 len;
__be32 len;
__be32 r1;
__be32 fso_ctrl;
__be32 param_offset;
__be32 len;
__be32 seq;
__be32 op_to_scsi;
__be32 burst_size;
__be32 len;
__be32 reserved2_seglen_offset;
__be32 datasn_offset;
__be32 buffer_offset;
__be32 reserved3;
__be32 seq;
__be32 seq;
__be32 seq;
__be32 rctl_fctl;
__be32 param;
__be32 seq;
__be32 seq;
__be32 credit_dack;
__be32 ddp_report;
__be32 rcv_nxt;
__be32 rsvd;
__be32 seq;
__be32 nxt_seq;
__be32 ddp_report;
__be32 ulp_crc;
__be32 ddpvld;
__be32 seq;
__be32 ddp_report;
__be32 ulp_crc;
__be32 ddpvld;
__be32 seq;
__be32 nxt_seq;
__be32 ddp_report;
__be32 err_vec;
__be32 ddpvld;
__be32 seq;
__be32 nxt_seq;
__be32 ddp_report;
__be32 ulp_crc;
__be32 ddpvld;
__be32 err_vec;
__be32 seq;
__be32 ulp_crc;
__be32 ddpvld;
__be32 seq;
__be32 ddp_report;
__be32 err_vec;
__be32 ddpvld;
__be32 l2info;
__be32 params;
__be32 lut_params;
__be32 l2t_idx;
__be32 netmask;
__be32 faddr;
__be32 params;
__be32 addr;
__be32 l2t_idx;
__be32 qlen_qbase;
__be32 qlen_qbase;
__be32 params;
__be32 params;
__be32 local_ip;
__be32 rsvd;
__be32 params;
__be32 params;
__be32 params;
__be32 rsvd1;
__be32 error;
__be32 rsvd;
__be32 info;
__be32 reason;
__be32 info;
__be32 reason;
__be32 opcode_qid;
__be32 rsvd1;
__be32 snd_nxt;
__be32 snd_una;
__be32 rsvd1;
__be32 tid; /* or atid in case of active failure */
__be32 len[2];
__be32 cmd_nsge;
__be32 len0;
__be32 stag;
__be32 len;
__be32 cmd_nisge;
__be32 rsvd;
__be32 cmd_more;
__be32 len;
__be32 cmd_to_len;
__be32 addr;
__be32 cmd;
__be32 len16; /* command length */
__be32 dlen; /* data length in 32-byte units */
__be32 lock_addr;
__be32 cmd_dest;
__be32 len;
__be32 opcode_tid;
__be32 op_to_IpIdSplitOut;
__be32 Flow_to_TcpHdrLen;
__be32 TCPSeqOffset;
__be32 EthLenOffset_Size;
__be32 op_to_r1_hi;
__be32 r1_lo_length;
__be32 op_to_seg_len;
__be32 pld_len;
__be32 type_protover;
__be32 r1_lo;
__be32 seqno_numivs;
__be32 ivgen_hdrlen;
__be32 op_tid;
__be32 length_pkd;
__be32 seq;
__be32 r1;
__be32 op_tid;
__be32 pdulength_length;
__be32 seq;
__be32 ddp_report;
__be32 r;
__be32 ddp_valid;
__be32 op_ivinsrtofst;
__be32 pldlen;
__be32 aadstart_cipherstop_hi;
__be32 cipherstop_lo_authinsert;
__be32 seqno_numivs;
__be32 ivgen_hdrlen;
__be32 op_to_tid;
__be32 pcirlxorder_to_noofsgentr;
__be32 hash_val;
__be32 op_to_Rsvd2;
__be32 PldLen;
__be32 wr_hi;
__be32 wr_mid;
__be32 local_ip;
__be32 peer_ip;
__be32 rsvd;
__be32 tos_stid;
__be32 snd_isn;
__be32 rcv_isn;
__be32 hdr_len;
__be32 tos_stid;
__be32 opt2;
__be32 opt2;
__be32 iss;
__be32 rsvd; /* T5 */
__be32 opt3; /* T6 */
__be32 local_ip;
__be32 peer_ip;
__be32 params;
__be32 opt2;
__be32 local_ip;
__be32 peer_ip;
__be32 rsvd;
__be32 opt2;
__be32 local_ip;
__be32 peer_ip;
__be32 rsvd;
__be32 opt2;
__be32 rsvd2;
__be32 opt3;
__be32 params;
__be32 opt2;
__be32 rsvd;
__be32 opt2;
__be32 rsvd;
__be32 opt2;
__be32 rsvd2;
__be32 opt3;
__be32 atid_status;
__be32 rsvd;
__be32 tos_atid;
__be32 snd_isn;
__be32 rcv_isn;
__be32 rsvd;
__be32 snd_nxt;
__be32 rcv_nxt;
__be32 val;
__be32 op_to_nparams;
__be32 flowid_len16;
__be32 op_to_immdlen;
__be32 flowid_len16;
__be32 plen;
__be32 lsodisable_to_flags;
__be32 op_dma;
__be32 len16_pkd;
__be32 op_immdlen;
__be32 equiq_to_len16;
__be32 r3[2];
__be32 op_pkd;
__be32 equiq_to_len16;
__be32 r3;
__be32 len[2];
__be32 len0;
__be32 stag;
__be32 len;
__be32 r2;
__be32 immdlen;
__be32 valid_to_pdid;
__be32 locread_to_qpid;
__be32 nosnoop_pbladdr;
__be32 len_lo;
__be32 va_hi;
__be32 va_lo_fbo;
__be32 dca_mwbcnt_pstag;
__be32 len_hi;
__be32 qpid_n_stat_rxtx_type;
__be32 plen;
__be32 stag;
__be32 wrid;
__be32 qpid_n_stat_rxtx_type;
__be32 plen;
__be32 stag;
__be32 hi;
__be32 msn;
__be32 qpid_n_stat_rxtx_type;
__be32 plen;
__be32 mo;
__be32 msn;
__be32 lo;
__be32 eqid;
__be32 r4[2];
__be32 fetchszm_to_iqid;
__be32 dcaen_to_eqsize;
__be32 iqid;
__be32 r4[2];
__be32 iqandst_to_iqandstindex;
__be32 iqns_iqro;
__be32 r6_lo;
__be32 eqid;
__be32 r4[2];
__be32 fetchszm_to_iqid;
__be32 dcaen_to_eqsize;
__be32 srqid;
__be32 pdid;
__be32 hwsrqsize;
__be32 hwsrqaddr;
__be32 op_nres;
__be32 len16_pkd;
__be32 plen;
__be32 stag_sink;
__be32 sendop_pkd;
__be32 stag_inv;
__be32 plen;
__be32 r3;
__be32 stag_inv;
__be32 plen;
__be32 stag_sink;
__be32 stag_sink;
__be32 to_sink_hi;
__be32 to_sink_lo;
__be32 plen;
__be32 stag_src;
__be32 to_src_hi;
__be32 to_src_lo;
__be32 r5;
__be32 stag_mr;
__be32 stag_mw;
__be32 r3;
__be32 stag;
__be32 len_hi;
__be32 len_lo;
__be32 va_hi;
__be32 va_lo_fbo;
__be32 r2;
__be32 stag;
__be32 r2;
__be32 stag_inv;
__be32 sendimmop_pkd;
__be32 r3;
__be32 plen;
__be32 r4;
__be32 atomicop_pkd;
__be32 aopcode_pkd;
__be32 reqid;
__be32 stag;
__be32 to_hi;
__be32 to_lo;
__be32 addswap_data_hi;
__be32 addswap_data_lo;
__be32 addswap_mask_hi;
__be32 addswap_mask_lo;
__be32 compare_data_hi;
__be32 compare_data_lo;
__be32 compare_mask_hi;
__be32 compare_mask_lo;
__be32 r5;
__be32 op_compl;
__be32 flowid_len16;
__be32 pdid;
__be32 qpid;
__be32 sq_eqid;
__be32 rq_eqid;
__be32 scqid;
__be32 rcqid;
__be32 ord_max;
__be32 ird_max;
__be32 iss;
__be32 irs;
__be32 hwrqsize;
__be32 hwrqaddr;
__be32 immdlen;
__be32 op_compl;
__be32 flowid_len16;
__be32 if_flowid;
__be32 r0;
__be32 addr;
__be32 mask;
__be32 router;
__be32 r0;
__be32 r2;
__be32 op_to_fragoff16;
__be32 op_to_immdlen;
__be32 alloc_to_len16;
__be32 flowid_len16;
__be32 flags_to_assoc_flowid;
__be32 flowid;
__be32 flowid;
__be32 op_to_immdlen;
__be32 flowid_len16;
__be32 node_flowid;
__be32 op_compl;
__be32 flowid_len16;
__be32 node_id;
__be32 ctrl_id;
__be32 io_id;
__be32 sess_type_to_erl;
__be32 max_burst;
__be32 first_burst;
__be32 r1;
__be32 hdigest_to_ddp_pgsz;
__be32 max_rcv_dsl;
__be32 ping_tmo;
__be32 dst_addr;
__be32 src_addr;
__be32 op_compl;
__be32 flowid_len16;
__be32 op_compl;
__be32 flowid_len16;
__be32 flags;
__be32 in_tid;
__be32 addr;
__be32 r7;
__be32 r8[2];
__be32 op_to_immdlen;
__be32 flowid_len16;
__be32 datasn;
__be32 t_xfer_len;
__be32 flags;
__be32 tag;
__be32 tidx;
__be32 r5[2];
__be32 op_compl;
__be32 flowid_len16;
__be32 r4;
__be32 in_tid;
__be32 addr;
__be32 r7;
__be32 r8[2];
__be32 op_to_immdlen;
__be32 flowid_len16;
__be32 xfer_len;
__be32 op_immdlen;
__be32 flowid_len16;
__be32 rsp_dmalen;
__be32 r6;
__be32 op_immdlen;
__be32 flowid_len16;
__be32 xfer_cnt;
__be32 ini_xfer_cnt;
__be32 rsp_dmalen;
__be32 r4;
__be32 op_immdlen;
__be32 flowid_len16;
__be32 xfer_cnt;
__be32 ini_xfer_cnt;
__be32 rsp_dmalen;
__be32 r4;
__be32 op_immdlen;
__be32 flowid_len16;
__be32 op_pkd;
__be32 rsp_dmalen;
__be32 r6;
__be32 len16_pkd;
__be32 tid_to_iq;
__be32 del_filter_to_l2tix;
__be32 op_immdlen;
__be32 flowid_len16;
__be32 maci_to_matchtypem;
__be32 op_immdlen;
__be32 flowid_len16;
__be32 burst_len;
__be32 rel_off;
__be32 r6;
__be32 tot_xfer_len;
__be32 op_immdlen;
__be32 flowid_len16;
__be32 xfer_cnt;
__be32 r4;
__be32 r6;
__be32 tot_xfer_len;
__be32 op_immdlen;
__be32 flowid_len16;
__be32 op_compl;
__be32 equiq_to_len16;
__be32 r4;
__be32 xfer_len;
__be32 tid_to_port;
__be32 s_id;
__be32 d_id;
__be32 tag;
__be32 op_pkd;
__be32 op_pkd;
__be32 equiq_to_len16;
__be32 len16_pkd;
__be32 pi_start4_pi_end4;
__be32 ref_tag;
__be32 tid_to_iq;
__be32 del_filter_to_l2tix;
__be32 maci_to_matchtypem;
__be32 err_type_pkd;
__be32 flowid_len16;
__be32 ref_tag;
__be32 pisc[4];
__be32 op_to_immdlen;
__be32 flowid_len16;
__be32 plen;
__be32 lsodisable_to_flags;
__be32 r5;
__be32 ctxloc_to_exp;
__be32 op_to_compl;
__be32 flowid_len16;
__be32 tx_key;
__be32 rx_key;
__be32 ftid;
__be32 natseqcheck;
__be32 r9;
__be32 op_to_cctx_size;
__be32 len16_pkd;
__be32 session_id;
__be32 rx_chid_to_rx_q_id;
__be32 key_addr;
__be32 pld_size_hash_size;
__be32 hi;
__be32 lo;
__be32 op_to_addrspace;
__be32 cycles_to_len16;
__be32 addr;
__be32 val;
__be32 physid;
__be32 msg_ctxtflush;
__be32 ctxt_data7;
__be32 ctxt_data6;
__be32 ctxt_data5;
__be32 ctxt_data4;
__be32 ctxt_data3;
__be32 ctxt_data2;
__be32 ctxt_data1;
__be32 ctxt_data0;
__be32 r3[2];
__be32 rplc255_224;
__be32 rplc223_192;
__be32 rplc191_160;
__be32 rplc159_128;
__be32 rplc127_96;
__be32 rplc95_64;
__be32 rplc63_32;
__be32 rplc31_0;
__be32 r3[2];
__be32 r4;
__be32 atrb;
__be32 offset;
__be32 data[12];
__be32 r9;
__be32 r9;
__be32 index;
__be32 r9;
__be32 op_to_write;
__be32 retval_len16;
__be32 val;
__be32 halt_pkd;
__be32 op_to_write;
__be32 retval_len16;
__be32 err_to_clearinit;
__be32 fwrev;
__be32 op_to_write;
__be32 retval_len16;
__be32 op_to_write;
__be32 retval_len16;
__be32 op_to_write;
__be32 cfvalid_to_len16;
__be32 r2;
__be32 hwmbitmap;
__be32 cfcsum;
__be32 finiver;
__be32 finicsum;
__be32 op_to_vfn;
__be32 retval_len16;
__be32 mnem;
__be32 val;
__be32 op_to_vfn;
__be32 retval_len16;
__be32 niqflint_niq;
__be32 type_to_neq;
__be32 tc_to_nexactf;
__be32 r_caps_to_nethctrl;
__be32 r4;
__be32 op_to_vfn;
__be32 alloc_to_len16;
__be32 type_to_iqandstindex;
__be32 iqns_to_fl0congen;
__be32 fl1cngchmap_to_fl1congen;
__be32 op_to_vfn;
__be32 alloc_to_len16;
__be32 cmpliqid_eqid;
__be32 physeqid_pkd;
__be32 fetchszm_to_iqid;
__be32 dcaen_to_eqsize;
__be32 op_to_vfn;
__be32 alloc_to_len16;
__be32 eqid_pkd;
__be32 physeqid_pkd;
__be32 fetchszm_to_iqid;
__be32 dcaen_to_eqsize;
__be32 autoequiqe_to_viid;
__be32 timeren_timerix;
__be32 op_to_vfn;
__be32 alloc_to_len16;
__be32 cmpliqid_eqid;
__be32 physeqid_pkd;
__be32 fetchszm_to_iqid;
__be32 dcaen_to_eqsize;
__be32 op_to_vfn;
__be32 alloc_to_len16;
__be32 eqid_pkd;
__be32 physeqid_pkd;
__be32 fetchszm_to_iqid;
__be32 dcaen_to_eqsize;
__be32 op_to_vfn;
__be32 alloc_to_len16;
__be32 op_to_compl;
__be32 flowid_len16;
__be32 op_to_viid;
__be32 freemacs_to_len16;
__be32 raw_idx_pkd;
__be32 data0_pkd;
__be32 data1[2];
__be32 data1m[2];
__be32 lookup_type_to_vni;
__be32 vni_mask_pkd;
__be32 op_to_immdlen;
__be32 op_to_viid;
__be32 retval_len16;
__be32 flowid_len16;
__be32 mtu_to_vlanexen;
__be32 r4_lo;
__be32 op_to_viid;
__be32 ien_to_len16;
__be32 r4;
__be32 op_immdlen;
__be32 equiq_to_len16;
__be32 op_to_viid;
__be32 retval_len16;
__be32 r7;
__be32 op_immdlen;
__be32 equiq_to_len16;
__be32 r3;
__be32 L4ChkDisable_to_IpHdrLen;
__be32 op_to_vfn;
__be32 en_to_len16;
__be32 op_to_vfn;
__be32 en_to_len16;
__be32 op_to_portid;
__be32 action_to_len16;
__be32 rcap;
__be32 r;
__be32 lstatus_to_modtype;
__be32 diagval;
__be32 pgid;
__be32 r11;
__be32 rcap32;
__be32 r;
__be32 lstatus32_to_cbllen32;
__be32 auxlinfo32_mtu32;
__be32 linkattr32;
__be32 pcaps32;
__be32 acaps32;
__be32 lpacaps32;
__be32 op_pkd;
__be32 equiq_to_len16;
__be32 r3;
__be32 op_immdlen;
__be32 equiq_to_len16;
__be32 op_immdlen;
__be32 equiq_to_len16;
__be32 op_to_portid;
__be32 retval_len16;
__be32 r7;
__be32 plen;
__be32 op_to_lbport;
__be32 retval_len16;
__be32 r7;
__be32 op_to_portid;
__be32 retval_len16;
__be32 r5;
__be32 plen;
__be32 op_to_portid;
__be32 retval_len16;
__be32 fid_to_skipoffset;
__be32 minpktsize_capturemax;
__be32 plen;
__be32 op_to_portid;
__be32 retval_len16;
__be32 ppb;
__be32 op_to_viid;
__be32 retval_len16;
__be32 r3;
__be32 iq0_to_iq2;
__be32 iq3_to_iq5;
__be32 iq6_to_iq8;
__be32 iq9_to_iq11;
__be32 iq12_to_iq14;
__be32 iq15_to_iq17;
__be32 iq18_to_iq20;
__be32 iq21_to_iq23;
__be32 iq24_to_iq26;
__be32 iq27_to_iq29;
__be32 iq30_iq31;
__be32 r15_lo;
__be32 plen;
__be32 plen;
__be32 op_to_write;
__be32 retval_len16;
__be32 mode_pkd;
__be32 r3;
__be32 mode_keymode;
__be32 synmapen_to_hashtoeplitz;
__be32 op_to_viid;
__be32 retval_len16;
__be32 r6;
__be32 defaultq_to_udpen;
__be32 secretkeyidx_pkd;
__be32 secretkeyxor;
__be32 equiq_to_len16;
__be32 op_compl;
__be32 len16_pkd;
__be32 op_to_write;
__be32 retval_len16;
__be32 r4;
__be32 min;
__be32 max;
__be32 version_cpl;
__be32 filter;
__be32 r1;
__be32 seqno;
__be32 params[FW_DEVLOG_FMT_PARAMS_NUM];
__be32 reserved3[4];
__be32 op_to_write;
__be32 retval_len16;
__be32 memtype_devlog_memaddr16_devlog;
__be32 memsize_devlog;
__be32 r3[2];
__be32 pip;
__be32 lip;
__be32 op_to_vfn;
__be32 retval_len16;
__be32 timeout;
__be32 action;
__be32 op_to_write;
__be32 alloc_to_len16;
__be32 r4[2];
__be32 op_to_portid;
__be32 retval_len16;
__be32 ifid_ifstate;
__be32 r3;
__be32 op_to_read;
__be32 retval_len16;
__be32 max_xchgs;
__be32 max_ssns;
__be32 used_xchgs;
__be32 used_ssns;
__be32 max_fcfs;
__be32 max_vnps;
__be32 used_fcfs;
__be32 used_vnps;
__be32 op_to_portid;
__be32 retval_len16;
__be32 sub_opcode_fcfi;
__be32 vnpi_pkd;
__be32 t_state_to_astid;
__be32 op_to_fcfi;
__be32 alloc_to_len16;
__be32 rcv_nxt;
__be32 gen_wwn_to_vnpi;
__be32 vf_id;
__be32 tx_max;
__be32 opt2;
__be32 r1;
__be32 op_to_portid;
__be32 retval_len16;
__be32 op_to_flowid;
__be32 free_to_len16;
__be32 r7;
__be32 fip_tx_bytes;
__be32 fip_tx_fr;
__be32 vnp_ka;
__be32 unsol_els_rcvd;
__be32 host_abrt_req;
__be32 adap_auto_abrt;
__be32 adap_abrt_rsp;
__be32 host_ios_req;
__be32 abort_req;
__be32 host_cls_req;
__be32 plogi_req_rcvd;
__be32 prli_req_rcvd;
__be32 adisc_req_rcvd;
__be32 rscn_rcvd;
__be32 rrq_req_rcvd;
__be32 unsol_els_rcvd;
__be32 ba_rjt_rcvd;
__be32 op_to_fcfi;
__be32 retval_len16;
__be32 fka_adv;
__be32 r6;
__be32 op_to_location;
__be32 changed_to_len16;
__be32 pfc_mbc_pkd;
__be32 pfc_willing_to_pfc_en;
__be32 cbs_to_ets_max_tc;
__be32 pg_table;
__be32 num_apps_pkd;
__be32 r6;
__be32 app[4];
__be32 multi_peer_invalidated;
__be32 op_to_type;
__be32 len16_pkd;
__be32 info[6];
__be32 regaddr;
__be32 regval;
__be32 eqid;
__be32 eqid;
__be32 op_type;
__be32 len16_pkd;
__be32 fcid;
__be32 line;
__be32 x;
__be32 y;
__be32 dprtstrparam0;
__be32 dprtstrparam1;
__be32 dprtstrparam2;
__be32 dprtstrparam3;
__be32 op_type;
__be32 len16_pkd;
__be32 duration;
__be32 op_pkd;
__be32 retval_len16;
__be32 mode_to_pcie_params;
__be32 naddr_size;
__be32 addr_size_pkd;
__be32 r6;
__be32 fw_ver; /* firmware version */
__be32 tp_microcode_ver; /* tcp processor microcode version */
__be32 magic; /* runtime or bootstrap fw */
__be32 flags;
__be32 reserved6[23];
__be32 magic;
__be32 version;
__be32 reserved1[4];
__be32 addr;
__be32 mask;
__be32 gw;
(__be32 *)((char *)scratch_buff.data +
bytes, (__be32 *)(scratch_buff.data), 1);
__be32 ouisubtype;
__be32 seqno;
__be32 ackno;
__be32 write_data;
__be32 read_data;
__be32 data[FW_PHY_ACT_DATA_COUNT];
__be32 data[FW_PHY_ACT_DATA_COUNT];
__be32 dst_ip[4];
__be32 src_ip[4];
__be32 tni_vni;
__be32 dword_stream[14];
__be32 ip;
__be32 dword;