Lines Matching refs:htonl

381 		*data++ = htonl(t4_read_reg(adap, MC_DATA(i)));  in t4_mc_read()
438 *data++ = htonl(t4_read_reg(adap, EDC_DATA(i))); in t4_edc_read()
1621 *data = (__force __u32) (htonl(*data)); in t4_read_flash()
2015 ((struct fw_hdr *)first_page)->fw_ver = htonl(0xffffffff); in t4_load_fw()
2110 c.op_to_portid = htonl(FW_CMD_OP_V(FW_PORT_CMD) | FW_CMD_REQUEST_F | in t4_link_start()
2112 c.action_to_len16 = htonl(FW_PORT_CMD_ACTION_V(FW_PORT_ACTION_L1_CFG) | in t4_link_start()
2116 c.u.l1cfg.rcap = htonl((lc->supported & ADVERT_MASK) | fc); in t4_link_start()
2119 c.u.l1cfg.rcap = htonl(lc->requested_speed | fc | mdi); in t4_link_start()
2122 c.u.l1cfg.rcap = htonl(lc->advertising | fc | mdi); in t4_link_start()
2140 c.op_to_portid = htonl(FW_CMD_OP_V(FW_PORT_CMD) | FW_CMD_REQUEST_F | in t4_restart_aneg()
2142 c.action_to_len16 = htonl(FW_PORT_CMD_ACTION_V(FW_PORT_ACTION_L1_CFG) | in t4_restart_aneg()
2144 c.u.l1cfg.rcap = htonl(FW_PORT_CAP_ANEG); in t4_restart_aneg()
2948 cmd.op_to_viid = htonl(FW_CMD_OP_V(FW_RSS_IND_TBL_CMD) | in t4_config_rss_range()
2951 cmd.retval_len16 = htonl(FW_LEN16(cmd)); in t4_config_rss_range()
2977 *qp++ = htonl(v); in t4_config_rss_range()
3003 c.op_to_write = htonl(FW_CMD_OP_V(FW_RSS_GLB_CONFIG_CMD) | in t4_config_glbl_rss()
3005 c.retval_len16 = htonl(FW_LEN16(c)); in t4_config_glbl_rss()
3007 c.u.manual.mode_pkd = htonl(FW_RSS_GLB_CONFIG_CMD_MODE_V(mode)); in t4_config_glbl_rss()
3010 htonl(FW_RSS_GLB_CONFIG_CMD_MODE_V(mode)); in t4_config_glbl_rss()
3011 c.u.basicvirtual.synmapen_to_hashtoeplitz = htonl(flags); in t4_config_glbl_rss()
3647 wr->op_pkd = htonl(FW_WR_OP_V(FW_FILTER_WR)); in t4_mk_filtdelwr()
3648 wr->len16_pkd = htonl(FW_WR_LEN16_V(sizeof(*wr) / 16)); in t4_mk_filtdelwr()
3649 wr->tid_to_iq = htonl(FW_FILTER_WR_TID_V(ftid) | in t4_mk_filtdelwr()
3651 wr->del_filter_to_l2tix = htonl(FW_FILTER_WR_DEL_FILTER_F); in t4_mk_filtdelwr()
3657 (var).op_to_write = htonl(FW_CMD_OP_V(FW_##cmd##_CMD) | \
3659 (var).retval_len16 = htonl(FW_LEN16(var)); \
3668 c.op_to_addrspace = htonl(FW_CMD_OP_V(FW_LDST_CMD) | FW_CMD_REQUEST_F | in t4_fwaddrspace_write()
3671 c.cycles_to_len16 = htonl(FW_LEN16(c)); in t4_fwaddrspace_write()
3672 c.u.addrval.addr = htonl(addr); in t4_fwaddrspace_write()
3673 c.u.addrval.val = htonl(val); in t4_fwaddrspace_write()
3696 c.op_to_addrspace = htonl(FW_CMD_OP_V(FW_LDST_CMD) | FW_CMD_REQUEST_F | in t4_mdio_rd()
3698 c.cycles_to_len16 = htonl(FW_LEN16(c)); in t4_mdio_rd()
3726 c.op_to_addrspace = htonl(FW_CMD_OP_V(FW_LDST_CMD) | FW_CMD_REQUEST_F | in t4_mdio_wr()
3728 c.cycles_to_len16 = htonl(FW_LEN16(c)); in t4_mdio_wr()
3866 c.err_to_clearinit = htonl( in t4_fw_hello()
4020 c.val = htonl(reset); in t4_fw_reset()
4053 c.val = htonl(PIORST_F | PIORSTMODE_F); in t4_fw_halt()
4054 c.halt_pkd = htonl(FW_RESET_CMD_HALT_F); in t4_fw_halt()
4348 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | FW_CMD_REQUEST_F | in t4_query_params()
4351 c.retval_len16 = htonl(FW_LEN16(c)); in t4_query_params()
4353 *p = htonl(*params++); in t4_query_params()
4426 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | FW_CMD_REQUEST_F | in t4_set_params()
4429 c.retval_len16 = htonl(FW_LEN16(c)); in t4_set_params()
4431 *p++ = htonl(*params++); in t4_set_params()
4432 *p++ = htonl(*val++); in t4_set_params()
4468 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_PFVF_CMD) | FW_CMD_REQUEST_F | in t4_cfg_pfvf()
4471 c.retval_len16 = htonl(FW_LEN16(c)); in t4_cfg_pfvf()
4472 c.niqflint_niq = htonl(FW_PFVF_CMD_NIQFLINT_V(rxqi) | in t4_cfg_pfvf()
4474 c.type_to_neq = htonl(FW_PFVF_CMD_CMASK_V(cmask) | in t4_cfg_pfvf()
4477 c.tc_to_nexactf = htonl(FW_PFVF_CMD_TC_V(tc) | FW_PFVF_CMD_NVI_V(vi) | in t4_cfg_pfvf()
4479 c.r_caps_to_nethctrl = htonl(FW_PFVF_CMD_R_CAPS_V(rcaps) | in t4_cfg_pfvf()
4510 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_VI_CMD) | FW_CMD_REQUEST_F | in t4_alloc_vi()
4513 c.alloc_to_len16 = htonl(FW_VI_CMD_ALLOC_F | FW_LEN16(c)); in t4_alloc_vi()
4572 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_RXMODE_CMD) | FW_CMD_REQUEST_F | in t4_set_rxmode()
4574 c.retval_len16 = htonl(FW_LEN16(c)); in t4_set_rxmode()
4575 c.mtu_to_vlanexen = htonl(FW_VI_RXMODE_CMD_MTU_V(mtu) | in t4_set_rxmode()
4620 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_MAC_CMD) | FW_CMD_REQUEST_F | in t4_alloc_mac_filt()
4623 c.freemacs_to_len16 = htonl(FW_VI_MAC_CMD_FREEMACS_V(free) | in t4_alloc_mac_filt()
4683 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_MAC_CMD) | FW_CMD_REQUEST_F | in t4_change_mac()
4685 c.freemacs_to_len16 = htonl(FW_CMD_LEN16_V(1)); in t4_change_mac()
4717 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_MAC_CMD) | FW_CMD_REQUEST_F | in t4_set_addr_hash()
4719 c.freemacs_to_len16 = htonl(FW_VI_MAC_CMD_HASHVECEN_F | in t4_set_addr_hash()
4744 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_ENABLE_CMD) | FW_CMD_REQUEST_F | in t4_enable_vi_params()
4747 c.ien_to_len16 = htonl(FW_VI_ENABLE_CMD_IEN_V(rx_en) | in t4_enable_vi_params()
4784 c.op_to_viid = htonl(FW_CMD_OP_V(FW_VI_ENABLE_CMD) | FW_CMD_REQUEST_F | in t4_identify_port()
4786 c.ien_to_len16 = htonl(FW_VI_ENABLE_CMD_LED_F | FW_LEN16(c)); in t4_identify_port()
4811 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | FW_CMD_REQUEST_F | in t4_iq_free()
4814 c.alloc_to_len16 = htonl(FW_IQ_CMD_FREE_F | FW_LEN16(c)); in t4_iq_free()
4815 c.type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(iqtype)); in t4_iq_free()
4838 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_ETH_CMD) | FW_CMD_REQUEST_F | in t4_eth_eq_free()
4841 c.alloc_to_len16 = htonl(FW_EQ_ETH_CMD_FREE_F | FW_LEN16(c)); in t4_eth_eq_free()
4842 c.eqid_pkd = htonl(FW_EQ_ETH_CMD_EQID_V(eqid)); in t4_eth_eq_free()
4862 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_CTRL_CMD) | FW_CMD_REQUEST_F | in t4_ctrl_eq_free()
4865 c.alloc_to_len16 = htonl(FW_EQ_CTRL_CMD_FREE_F | FW_LEN16(c)); in t4_ctrl_eq_free()
4866 c.cmpliqid_eqid = htonl(FW_EQ_CTRL_CMD_EQID_V(eqid)); in t4_ctrl_eq_free()
4886 c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | FW_CMD_REQUEST_F | in t4_ofld_eq_free()
4889 c.alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_FREE_F | FW_LEN16(c)); in t4_ofld_eq_free()
4890 c.eqid_pkd = htonl(FW_EQ_OFLD_CMD_EQID_V(eqid)); in t4_ofld_eq_free()
5226 devlog_cmd.op_to_write = htonl(FW_CMD_OP_V(FW_DEVLOG_CMD) | in t4_init_devlog_params()
5228 devlog_cmd.retval_len16 = htonl(FW_LEN16(devlog_cmd)); in t4_init_devlog_params()
5393 c.op_to_portid = htonl(FW_CMD_OP_V(FW_PORT_CMD) | in t4_port_init()
5396 c.action_to_len16 = htonl( in t4_port_init()
5420 rvc.op_to_viid = htonl(FW_CMD_OP_V(FW_RSS_VI_CONFIG_CMD) | in t4_port_init()
5423 rvc.retval_len16 = htonl(FW_LEN16(rvc)); in t4_port_init()