/drivers/scsi/csiostor/ |
D | csio_mb.c | 84 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_HELLO_CMD) | in csio_mb_hello() 86 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_hello() 87 cmdp->err_to_clearinit = htonl( in csio_mb_hello() 147 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_BYE_CMD) | in csio_mb_bye() 149 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_bye() 170 cmdp->op_to_write = htonl(FW_CMD_OP_V(FW_RESET_CMD) | in csio_mb_reset() 172 cmdp->retval_len16 = htonl(FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); in csio_mb_reset() 173 cmdp->val = htonl(reset); in csio_mb_reset() 174 cmdp->halt_pkd = htonl(halt); in csio_mb_reset() 205 cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_PARAMS_CMD) | in csio_mb_params() [all …]
|
D | csio_lnode.c | 336 val = htonl(FC_PORTSPEED_1GBIT | FC_PORTSPEED_10GBIT); in csio_ln_fdmi_rhba_cbfn() 343 val = htonl(FC_PORTSPEED_1GBIT); in csio_ln_fdmi_rhba_cbfn() 345 val = htonl(FC_PORTSPEED_10GBIT); in csio_ln_fdmi_rhba_cbfn() 347 val = htonl(CSIO_HBA_PORTSPEED_UNKNOWN); in csio_ln_fdmi_rhba_cbfn() 368 attrib_blk->numattrs = htonl(numattrs); in csio_ln_fdmi_rhba_cbfn() 393 __be32 maxpayload = htonl(65536); in csio_ln_fdmi_dprt_cbfn() 429 reg_pl->numport = htonl(1); in csio_ln_fdmi_dprt_cbfn() 476 attrib_blk->numattrs = htonl(numattrs); in csio_ln_fdmi_dprt_cbfn() 1685 port_id = htonl(sid); in csio_ln_prep_ecwr() 1687 port_id = htonl(did); in csio_ln_prep_ecwr() [all …]
|
D | csio_hw_t5.c | 201 *data++ = htonl(csio_rd_reg32(hw, MC_DATA(i))); in csio_t5_mc_read() 257 *data++ = htonl(csio_rd_reg32(hw, EDC_DATA(i))); in csio_t5_edc_read()
|
/drivers/scsi/qla2xxx/ |
D | qla_dbg.c | 81 fw_dump->fw_major_version = htonl(ha->fw_major_version); in qla2xxx_prep_dump() 82 fw_dump->fw_minor_version = htonl(ha->fw_minor_version); in qla2xxx_prep_dump() 83 fw_dump->fw_subminor_version = htonl(ha->fw_subminor_version); in qla2xxx_prep_dump() 84 fw_dump->fw_attributes = htonl(ha->fw_attributes); in qla2xxx_prep_dump() 86 fw_dump->vendor = htonl(ha->pdev->vendor); in qla2xxx_prep_dump() 87 fw_dump->device = htonl(ha->pdev->device); in qla2xxx_prep_dump() 88 fw_dump->subsystem_vendor = htonl(ha->pdev->subsystem_vendor); in qla2xxx_prep_dump() 89 fw_dump->subsystem_device = htonl(ha->pdev->subsystem_device); in qla2xxx_prep_dump() 297 *buf++ = htonl(RD_REG_DWORD(dmp_reg)); in qla24xx_read_window() 484 fcec->type = htonl(DUMP_CHAIN_FCE); in qla25xx_copy_fce() [all …]
|
/drivers/crypto/chelsio/ |
D | chcr_algo.h | 128 htonl( \ 138 htonl( \ 145 htonl( \ 152 htonl( \ 164 #define FILL_SEC_CPL_IVGEN_HDRLEN(last, more, ctx_in, mac, ivdrop, len) htonl( \ 177 htonl(KEY_CONTEXT_VALID_V(1) | \ 186 htonl( \ 195 htonl( \ 202 htonl(ULPTX_CMD_V(ULP_TX_PKT) | \ 213 htonl(FW_CRYPTO_LOOKASIDE_WR_PLD_SIZE_V(payload_sgl_len ? \ [all …]
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_cm.c | 179 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in release_tid() 180 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, hwtid)); in release_tid() 194 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in iwch_quiesce_tid() 195 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); in iwch_quiesce_tid() 196 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, ep->hwtid)); in iwch_quiesce_tid() 215 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in iwch_resume_tid() 216 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); in iwch_resume_tid() 217 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, ep->hwtid)); in iwch_resume_tid() 401 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); in send_halfclose() 402 req->wr.wr_lo = htonl(V_WR_TID(ep->hwtid)); in send_halfclose() [all …]
|
/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 164 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in send_act_open_req() 165 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req() 171 req->opt0h = htonl(V_KEEP_ALIVE(1) | F_TCAM_BYPASS | in send_act_open_req() 174 req->opt0l = htonl(V_ULP_MODE(ULP2_MODE_ISCSI) | in send_act_open_req() 209 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); in send_close_req() 210 req->wr.wr_lo = htonl(V_WR_TID(tid)); in send_close_req() 211 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, tid)); in send_close_req() 212 req->rsvd = htonl(csk->write_seq); in send_close_req() 253 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ)); in send_abort_req() 254 req->wr.wr_lo = htonl(V_WR_TID(csk->tid)); in send_abort_req() [all …]
|
/drivers/target/iscsi/cxgbit/ |
D | cxgbit_ddp.c | 84 req->wr.wr_hi = htonl(FW_WR_OP_V(FW_ULPTX_WR) | in cxgbit_ppod_init_idata() 86 req->cmd = htonl(ULPTX_CMD_V(ULP_TX_MEM_WRITE) | in cxgbit_ppod_init_idata() 89 req->dlen = htonl(ULP_MEMIO_DATA_LEN_V(dlen >> 5)); in cxgbit_ppod_init_idata() 90 req->lock_addr = htonl(ULP_MEMIO_ADDR_V(pm_addr >> 5)); in cxgbit_ppod_init_idata() 91 req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); in cxgbit_ppod_init_idata() 94 idata->cmd_more = htonl(ULPTX_CMD_V(ULP_TX_SC_IMM)); in cxgbit_ppod_init_idata() 95 idata->len = htonl(dlen); in cxgbit_ppod_init_idata()
|
D | cxgbit_target.c | 138 cpl->op_to_scsi = htonl(CPL_TX_DATA_ISO_OP_V(CPL_TX_DATA_ISO) | in cxgbit_cpl_tx_data_iso() 149 cpl->burst_size = htonl(DIV_ROUND_UP(iso_info->burst_len, 4)); in cxgbit_cpl_tx_data_iso() 150 cpl->len = htonl(iso_info->len); in cxgbit_cpl_tx_data_iso() 151 cpl->reserved2_seglen_offset = htonl(0); in cxgbit_cpl_tx_data_iso() 152 cpl->datasn_offset = htonl(0); in cxgbit_cpl_tx_data_iso() 153 cpl->buffer_offset = htonl(0); in cxgbit_cpl_tx_data_iso() 188 req->plen = htonl(len); in cxgbit_tx_data_wr() 192 req->tunnel_to_proxy = htonl((wr_ulp_mode) | force | in cxgbit_tx_data_wr() 271 req->wr.wr_hi |= htonl(FW_WR_COMPL_F); in cxgbit_push_tx_frames()
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 40 vp->length = htonl(sizeof(vp->num_tlvs)); in vic_provinfo_alloc() 69 vp->num_tlvs = htonl(ntohl(vp->num_tlvs) + 1); in vic_provinfo_add_tlv() 70 vp->length = htonl(ntohl(vp->length) + in vic_provinfo_add_tlv()
|
/drivers/media/usb/ttusb-dec/ |
D | ttusbdecfe.c | 100 __be32 freq = htonl(p->frequency / 1000); in ttusbdecfe_dvbt_set_frontend() 137 freq = htonl(p->frequency + in ttusbdecfe_dvbs_set_frontend() 140 sym_rate = htonl(p->symbol_rate); in ttusbdecfe_dvbs_set_frontend() 142 band = htonl(state->hi_band ? LOF_HI : LOF_LO); in ttusbdecfe_dvbs_set_frontend() 144 lnb_voltage = htonl(state->voltage); in ttusbdecfe_dvbs_set_frontend()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 865 sgl->len0 = htonl(len); in write_sgl() 869 sgl->len0 = htonl(skb_frag_size(&si->frags[0])); in write_sgl() 873 sgl->cmd_nsge = htonl(ULPTX_CMD_V(ULP_TX_SC_DSGL) | in write_sgl() 1242 wr->equiq_to_len16 = htonl(wr_mid); in t4_eth_xmit() 1255 wr->op_immdlen = htonl(FW_WR_OP_V(FW_ETH_TX_PKT_WR) | in t4_eth_xmit() 1257 lso->c.lso_ctrl = htonl(LSO_OPCODE_V(CPL_TX_PKT_LSO) | in t4_eth_xmit() 1265 lso->c.seqno_offset = htonl(0); in t4_eth_xmit() 1267 lso->c.len = htonl(skb->len); in t4_eth_xmit() 1269 lso->c.len = htonl(LSO_T5_XFER_SIZE_V(skb->len)); in t4_eth_xmit() 1284 wr->op_immdlen = htonl(FW_WR_OP_V(FW_ETH_TX_PKT_WR) | in t4_eth_xmit() [all …]
|
D | cxgb4_uld.h | 58 (w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_TP_WR) | \ 60 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*w), 16)) | \ 67 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \ 71 (w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_ULPTX_WR) | \ 73 (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(wrlen, 16)) | \
|
D | clip_tbl.c | 51 c.op_to_write = htonl(FW_CMD_OP_V(FW_CLIP_CMD) | in clip6_get_mbox() 53 c.alloc_to_len16 = htonl(FW_CLIP_CMD_ALLOC_F | FW_LEN16(c)); in clip6_get_mbox() 66 c.op_to_write = htonl(FW_CMD_OP_V(FW_CLIP_CMD) | in clip6_release_mbox() 68 c.alloc_to_len16 = htonl(FW_CLIP_CMD_FREE_F | FW_LEN16(c)); in clip6_release_mbox()
|
D | cxgb4_filter.c | 245 fwr->op_pkd = htonl(FW_WR_OP_V(FW_FILTER_WR)); in set_filter_wr() 246 fwr->len16_pkd = htonl(FW_WR_LEN16_V(sizeof(*fwr) / 16)); in set_filter_wr() 248 htonl(FW_FILTER_WR_TID_V(f->tid) | in set_filter_wr() 253 htonl(FW_FILTER_WR_RPTTID_V(f->fs.rpttid) | in set_filter_wr() 283 htonl(FW_FILTER_WR_MACI_V(f->fs.val.macidx) | in set_filter_wr()
|
/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 418 req->rsvd0 = htonl(csk->snd_nxt); in send_abort_req() 541 htonl(FW_WR_OP_V(FW_FLOWC_WR) | FW_FLOWC_WR_NPARAMS_V(nparams)); in send_tx_flowc_wr() 543 htonl(FW_WR_LEN16_V(flowclen16) | FW_WR_FLOWID_V(csk->tid)); in send_tx_flowc_wr() 545 flowc->mnemval[0].val = htonl(csk->cdev->pfvf); in send_tx_flowc_wr() 547 flowc->mnemval[1].val = htonl(csk->tx_chan); in send_tx_flowc_wr() 549 flowc->mnemval[2].val = htonl(csk->tx_chan); in send_tx_flowc_wr() 551 flowc->mnemval[3].val = htonl(csk->rss_qid); in send_tx_flowc_wr() 553 flowc->mnemval[4].val = htonl(csk->snd_nxt); in send_tx_flowc_wr() 555 flowc->mnemval[5].val = htonl(csk->rcv_nxt); in send_tx_flowc_wr() 557 flowc->mnemval[6].val = htonl(csk->snd_win); in send_tx_flowc_wr() [all …]
|
/drivers/net/wireless/intersil/hostap/ |
D | hostap_80211_rx.c | 159 hdr->version = htonl(LWNG_CAPHDR_VERSION); in prism2_rx_80211() 160 hdr->length = htonl(phdrlen); in prism2_rx_80211() 163 hdr->phytype = htonl(4); /* dss_dot11_b */ in prism2_rx_80211() 164 hdr->channel = htonl(local->channel); in prism2_rx_80211() 165 hdr->datarate = htonl(rx_stats->rate); in prism2_rx_80211() 166 hdr->antenna = htonl(0); /* unknown */ in prism2_rx_80211() 167 hdr->priority = htonl(0); /* unknown */ in prism2_rx_80211() 168 hdr->ssi_type = htonl(3); /* raw */ in prism2_rx_80211() 169 hdr->ssi_signal = htonl(rx_stats->signal); in prism2_rx_80211() 170 hdr->ssi_noise = htonl(rx_stats->noise); in prism2_rx_80211() [all …]
|
/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 96 #define MYRI10GE_NO_CONFIRM_DATA htonl(0xffffffff) 406 buf->data0 = htonl(data->data0); in myri10ge_send_cmd() 407 buf->data1 = htonl(data->data1); in myri10ge_send_cmd() 408 buf->data2 = htonl(data->data2); in myri10ge_send_cmd() 409 buf->cmd = htonl(cmd); in myri10ge_send_cmd() 413 buf->response_addr.low = htonl(dma_low); in myri10ge_send_cmd() 414 buf->response_addr.high = htonl(dma_high); in myri10ge_send_cmd() 415 response->result = htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd() 430 response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd() 439 response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd() [all …]
|
/drivers/net/wan/ |
D | hdlc_cisco.c | 113 data->type = htonl(type); in cisco_keepalive_send() 118 data->time = htonl((jiffies - INITIAL_JIFFIES) * (1000 / HZ)); in cisco_keepalive_send() 274 cisco_keepalive_send(dev, CISCO_KEEPALIVE_REQ, htonl(++st->txseq), in cisco_timer() 275 htonl(st->rxseq)); in cisco_timer()
|
/drivers/net/slip/ |
D | slhc.c | 548 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); in slhc_uncompress() 549 thp->seq = htonl( ntohl(thp->seq) + i); in slhc_uncompress() 554 thp->seq = htonl( ntohl(thp->seq) + in slhc_uncompress() 577 thp->ack_seq = htonl( ntohl(thp->ack_seq) + x); in slhc_uncompress() 583 thp->seq = htonl( ntohl(thp->seq) + x); in slhc_uncompress()
|
/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_ppm.c | 298 hdr->vld_tid = htonl(PPOD_VALID_FLAG | PPOD_TID(tid)); in cxgbi_ppm_make_ppod_hdr() 301 hdr->pgsz_tag_clr = htonl(tag & ppm->tformat.idx_clr_mask); in cxgbi_ppm_make_ppod_hdr() 302 hdr->max_offset = htonl(length); in cxgbi_ppm_make_ppod_hdr() 303 hdr->page_offset = htonl(offset); in cxgbi_ppm_make_ppod_hdr()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 1069 wrp->wr_hi = htonl(F_WR_SOP | F_WR_EOP | V_WR_DATATYPE(1) | in write_wr_hdr_sgl() 1072 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | in write_wr_hdr_sgl() 1080 wrp->wr_hi = htonl(F_WR_SOP | V_WR_DATATYPE(1) | in write_wr_hdr_sgl() 1107 wrp->wr_hi = htonl(V_WR_DATATYPE(1) | in write_wr_hdr_sgl() 1109 wrp->wr_lo = htonl(V_WR_LEN(min(WR_FLITS, in write_wr_hdr_sgl() 1116 wrp->wr_hi |= htonl(F_WR_EOP); in write_wr_hdr_sgl() 1118 wp->wr_lo = htonl(V_WR_LEN(WR_FLITS) | V_WR_GEN(ogen)) | wr_lo; in write_wr_hdr_sgl() 1148 cpl->len = htonl(skb->len); in write_tx_pkt_wr() 1161 hdr->cntrl = htonl(cntrl); in write_tx_pkt_wr() 1167 hdr->lso_info = htonl(tso_info); in write_tx_pkt_wr() [all …]
|
D | l2t.c | 100 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in setup_l2e_send_pending() 101 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_L2T_WRITE_REQ, e->idx)); in setup_l2e_send_pending() 102 req->params = htonl(V_L2T_W_IDX(e->idx) | V_L2T_W_IFF(e->smt_idx) | in setup_l2e_send_pending()
|
/drivers/infiniband/hw/qedr/ |
D | qedr_cm.c | 332 udh->bth.destination_qpn = htonl(ud_wr(swr)->remote_qpn); in qedr_gsi_build_header() 333 udh->bth.psn = htonl((qp->sq_psn++) & ((1 << 24) - 1)); in qedr_gsi_build_header() 337 udh->deth.qkey = htonl(0x80010000); in qedr_gsi_build_header() 338 udh->deth.source_qpn = htonl(QEDR_GSI_QPN); in qedr_gsi_build_header() 353 udh->ip4.tos = htonl(ah_attr->grh.flow_label); in qedr_gsi_build_header()
|
/drivers/scsi/ |
D | osst.c | 561 aux->format_id = htonl(0); in osst_init_aux() 563 aux->hdwr = htonl(0); in osst_init_aux() 568 aux->update_frame_cntr = htonl(STp->update_frame_cntr); in osst_init_aux() 573 par->first_frame_ppos = htonl(0); in osst_init_aux() 574 par->last_frame_ppos = htonl(0xbb7); in osst_init_aux() 575 aux->frame_seq_num = htonl(0); in osst_init_aux() 576 aux->logical_blk_num_high = htonl(0); in osst_init_aux() 577 aux->logical_blk_num = htonl(0); in osst_init_aux() 578 aux->next_mark_ppos = htonl(STp->first_mark_ppos); in osst_init_aux() 586 dat->dat_list[0].blk_sz = htonl(blk_sz); in osst_init_aux() [all …]
|