/drivers/scsi/csiostor/ |
D | csio_mb.c | 84 cmdp->op_to_write = htonl(FW_CMD_OP(FW_HELLO_CMD) | in csio_mb_hello() 86 cmdp->retval_len16 = htonl(FW_CMD_LEN16(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(FW_BYE_CMD) | in csio_mb_bye() 149 cmdp->retval_len16 = htonl(FW_CMD_LEN16(sizeof(*cmdp) / 16)); in csio_mb_bye() 170 cmdp->op_to_write = htonl(FW_CMD_OP(FW_RESET_CMD) | in csio_mb_reset() 172 cmdp->retval_len16 = htonl(FW_CMD_LEN16(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(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()
|
D | csio_hw_t4.c | 227 *data++ = htonl(csio_rd_reg32(hw, MC_DATA(i))); in csio_t4_mc_read() 268 *data++ = htonl(csio_rd_reg32(hw, EDC_DATA(i))); in csio_t4_edc_read()
|
/drivers/scsi/qla2xxx/ |
D | qla_dbg.c | 86 fw_dump->fw_major_version = htonl(ha->fw_major_version); in qla2xxx_prep_dump() 87 fw_dump->fw_minor_version = htonl(ha->fw_minor_version); in qla2xxx_prep_dump() 88 fw_dump->fw_subminor_version = htonl(ha->fw_subminor_version); in qla2xxx_prep_dump() 89 fw_dump->fw_attributes = htonl(ha->fw_attributes); in qla2xxx_prep_dump() 91 fw_dump->vendor = htonl(ha->pdev->vendor); in qla2xxx_prep_dump() 92 fw_dump->device = htonl(ha->pdev->device); in qla2xxx_prep_dump() 93 fw_dump->subsystem_vendor = htonl(ha->pdev->subsystem_vendor); in qla2xxx_prep_dump() 94 fw_dump->subsystem_device = htonl(ha->pdev->subsystem_device); in qla2xxx_prep_dump() 302 *buf++ = htonl(RD_REG_DWORD(dmp_reg++)); in qla24xx_read_window() 490 fcec->chain_size = htonl(sizeof(struct qla2xxx_fce_chain) + in qla25xx_copy_fce() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | t4_hw.c | 379 *data++ = htonl(t4_read_reg(adap, MC_DATA(i))); in t4_mc_read() 436 *data++ = htonl(t4_read_reg(adap, EDC_DATA(i))); in t4_edc_read() 860 *data = (__force __u32) (htonl(*data)); in t4_read_flash() 1194 ((struct fw_hdr *)first_page)->fw_ver = htonl(0xffffffff); in t4_load_fw() 1248 c.op_to_portid = htonl(FW_CMD_OP(FW_PORT_CMD) | FW_CMD_REQUEST | in t4_link_start() 1250 c.action_to_len16 = htonl(FW_PORT_CMD_ACTION(FW_PORT_ACTION_L1_CFG) | in t4_link_start() 1254 c.u.l1cfg.rcap = htonl((lc->supported & ADVERT_MASK) | fc); in t4_link_start() 1257 c.u.l1cfg.rcap = htonl(lc->requested_speed | fc | mdi); in t4_link_start() 1260 c.u.l1cfg.rcap = htonl(lc->advertising | fc | mdi); in t4_link_start() 1278 c.op_to_portid = htonl(FW_CMD_OP(FW_PORT_CMD) | FW_CMD_REQUEST | in t4_restart_aneg() [all …]
|
D | sge.c | 811 sgl->len0 = htonl(len); in write_sgl() 815 sgl->len0 = htonl(skb_frag_size(&si->frags[0])); in write_sgl() 819 sgl->cmd_nsge = htonl(ULPTX_CMD(ULP_TX_SC_DSGL) | ULPTX_NSGE(nfrags)); in write_sgl() 1102 wr->equiq_to_len16 = htonl(wr_mid); in t4_eth_xmit() 1115 wr->op_immdlen = htonl(FW_WR_OP(FW_ETH_TX_PKT_WR) | in t4_eth_xmit() 1117 lso->c.lso_ctrl = htonl(LSO_OPCODE(CPL_TX_PKT_LSO) | in t4_eth_xmit() 1125 lso->c.seqno_offset = htonl(0); in t4_eth_xmit() 1127 lso->c.len = htonl(skb->len); in t4_eth_xmit() 1129 lso->c.len = htonl(LSO_T5_XFER_SIZE(skb->len)); in t4_eth_xmit() 1138 wr->op_immdlen = htonl(FW_WR_OP(FW_ETH_TX_PKT_WR) | in t4_eth_xmit() [all …]
|
D | cxgb4_uld.h | 55 (w)->wr.wr_hi = htonl(FW_WR_OP(FW_TP_WR) | \ 57 (w)->wr.wr_mid = htonl(FW_WR_LEN16(DIV_ROUND_UP(sizeof(*w), 16)) | \ 64 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \ 68 (w)->wr.wr_hi = htonl(FW_WR_OP(FW_ULPTX_WR) | FW_WR_ATOMIC(atomic)); \ 69 (w)->wr.wr_mid = htonl(FW_WR_LEN16(DIV_ROUND_UP(wrlen, 16)) | \
|
D | cxgb4_main.c | 1342 fwr->op_pkd = htonl(FW_WR_OP(FW_FILTER_WR)); in set_filter_wr() 1343 fwr->len16_pkd = htonl(FW_WR_LEN16(sizeof(*fwr)/16)); in set_filter_wr() 1345 htonl(V_FW_FILTER_WR_TID(ftid) | in set_filter_wr() 1350 htonl(V_FW_FILTER_WR_RPTTID(f->fs.rpttid) | in set_filter_wr() 1380 htonl(V_FW_FILTER_WR_MACI(f->fs.val.macidx) | in set_filter_wr() 3374 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, tid)); in mk_tid_release() 3511 c.op_to_write = htonl(FW_CMD_OP(FW_CLIP_CMD) | in cxgb4_clip_get() 3513 c.alloc_to_len16 = htonl(F_FW_CLIP_CMD_ALLOC | FW_LEN16(c)); in cxgb4_clip_get() 3528 c.op_to_write = htonl(FW_CMD_OP(FW_CLIP_CMD) | in cxgb4_clip_release() 3530 c.alloc_to_len16 = htonl(F_FW_CLIP_CMD_FREE | FW_LEN16(c)); in cxgb4_clip_release() [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 | 163 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in send_act_open_req() 164 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req() 170 req->opt0h = htonl(V_KEEP_ALIVE(1) | F_TCAM_BYPASS | in send_act_open_req() 173 req->opt0l = htonl(V_ULP_MODE(ULP2_MODE_ISCSI) | in send_act_open_req() 208 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_CLOSE_CON)); in send_close_req() 209 req->wr.wr_lo = htonl(V_WR_TID(tid)); in send_close_req() 210 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, tid)); in send_close_req() 211 req->rsvd = htonl(csk->write_seq); in send_close_req() 252 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_REQ)); in send_abort_req() 253 req->wr.wr_lo = htonl(V_WR_TID(csk->tid)); in send_abort_req() [all …]
|
/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/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 401 req->rsvd0 = htonl(csk->snd_nxt); in send_abort_req() 502 htonl(FW_WR_OP(FW_FLOWC_WR) | FW_FLOWC_WR_NPARAMS(8)); in send_tx_flowc_wr() 504 htonl(FW_WR_LEN16(DIV_ROUND_UP(72, 16)) | in send_tx_flowc_wr() 507 flowc->mnemval[0].val = htonl(csk->cdev->pfvf); in send_tx_flowc_wr() 509 flowc->mnemval[1].val = htonl(csk->tx_chan); in send_tx_flowc_wr() 511 flowc->mnemval[2].val = htonl(csk->tx_chan); in send_tx_flowc_wr() 513 flowc->mnemval[3].val = htonl(csk->rss_qid); in send_tx_flowc_wr() 515 flowc->mnemval[4].val = htonl(csk->snd_nxt); in send_tx_flowc_wr() 517 flowc->mnemval[5].val = htonl(csk->rcv_nxt); in send_tx_flowc_wr() 519 flowc->mnemval[6].val = htonl(cxgb4i_snd_win); in send_tx_flowc_wr() [all …]
|
/drivers/net/wireless/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/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/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 100 #define MYRI10GE_NO_CONFIRM_DATA htonl(0xffffffff) 411 buf->data0 = htonl(data->data0); in myri10ge_send_cmd() 412 buf->data1 = htonl(data->data1); in myri10ge_send_cmd() 413 buf->data2 = htonl(data->data2); in myri10ge_send_cmd() 414 buf->cmd = htonl(cmd); in myri10ge_send_cmd() 418 buf->response_addr.low = htonl(dma_low); in myri10ge_send_cmd() 419 buf->response_addr.high = htonl(dma_high); in myri10ge_send_cmd() 420 response->result = htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd() 435 response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd() 444 response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); in myri10ge_send_cmd() [all …]
|
/drivers/net/slip/ |
D | slhc.c | 544 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); in slhc_uncompress() 545 thp->seq = htonl( ntohl(thp->seq) + i); in slhc_uncompress() 550 thp->seq = htonl( ntohl(thp->seq) + in slhc_uncompress() 573 thp->ack_seq = htonl( ntohl(thp->ack_seq) + x); in slhc_uncompress() 579 thp->seq = htonl( ntohl(thp->seq) + x); in slhc_uncompress()
|
/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()
|
D | cxgb3_offload.c | 556 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in mk_tid_release() 557 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, tid)); in mk_tid_release() 879 htonl(V_WR_OP(FW_WROPCODE_OFLD_HOST_ABORT_CON_RPL)); in do_abort_req_rss() 880 rpl->wr.wr_lo = htonl(V_WR_TID(tid)); in do_abort_req_rss() 881 OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_ABORT_RPL, tid)); in do_abort_req_rss() 1100 req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD)); in set_l2t_ix() 1101 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid)); in set_l2t_ix()
|
/drivers/scsi/ |
D | osst.c | 559 aux->format_id = htonl(0); in osst_init_aux() 561 aux->hdwr = htonl(0); in osst_init_aux() 566 aux->update_frame_cntr = htonl(STp->update_frame_cntr); in osst_init_aux() 571 par->first_frame_ppos = htonl(0); in osst_init_aux() 572 par->last_frame_ppos = htonl(0xbb7); in osst_init_aux() 573 aux->frame_seq_num = htonl(0); in osst_init_aux() 574 aux->logical_blk_num_high = htonl(0); in osst_init_aux() 575 aux->logical_blk_num = htonl(0); in osst_init_aux() 576 aux->next_mark_ppos = htonl(STp->first_mark_ppos); in osst_init_aux() 584 dat->dat_list[0].blk_sz = htonl(blk_sz); in osst_init_aux() [all …]
|
/drivers/staging/wlan-ng/ |
D | hfa384x_usb.c | 3601 caphdr->version = htonl(P80211CAPTURE_VERSION); in hfa384x_int_rxmonitor() 3602 caphdr->length = htonl(sizeof(struct p80211_caphdr)); in hfa384x_int_rxmonitor() 3605 caphdr->phytype = htonl(4); /* dss_dot11_b */ in hfa384x_int_rxmonitor() 3606 caphdr->channel = htonl(hw->sniff_channel); in hfa384x_int_rxmonitor() 3607 caphdr->datarate = htonl(rxdesc->rate); in hfa384x_int_rxmonitor() 3608 caphdr->antenna = htonl(0); /* unknown */ in hfa384x_int_rxmonitor() 3609 caphdr->priority = htonl(0); /* unknown */ in hfa384x_int_rxmonitor() 3610 caphdr->ssi_type = htonl(3); /* rssi_raw */ in hfa384x_int_rxmonitor() 3611 caphdr->ssi_signal = htonl(rxdesc->signal); in hfa384x_int_rxmonitor() 3612 caphdr->ssi_noise = htonl(rxdesc->silence); in hfa384x_int_rxmonitor() [all …]
|
/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 152 fcp->ext.fr_sns_len = htonl(len); in ft_queue_status() 223 txrdy->ft_burst_len = htonl(se_cmd->data_length); in ft_write_pending() 327 fcp->ext.fr_rsp_len = htonl(sizeof(*info)); in ft_send_resp_status()
|
/drivers/infiniband/hw/nes/ |
D | nes_cm.c | 485 iph->saddr = htonl(cm_node->mapped_loc_addr); in form_cm_frame() 486 iph->daddr = htonl(cm_node->mapped_rem_addr); in form_cm_frame() 490 tcph->seq = htonl(cm_node->tcp_cntxt.loc_seq_num); in form_cm_frame() 494 tcph->ack_seq = htonl(cm_node->tcp_cntxt.loc_ack_num); in form_cm_frame() 548 nes_create_sockaddr(htonl(cm_info->loc_addr), htons(cm_info->loc_port), in nes_create_mapinfo() 550 nes_create_sockaddr(htonl(cm_info->mapped_loc_addr), in nes_create_mapinfo() 568 nes_create_sockaddr(htonl(loc_addr), htons(loc_port), &local_sockaddr); in nes_remove_mapinfo() 569 nes_create_sockaddr(htonl(mapped_loc_addr), htons(mapped_loc_port), in nes_remove_mapinfo() 582 nes_create_sockaddr(htonl(cm_info->loc_addr), htons(cm_info->loc_port), in nes_form_pm_msg() 584 nes_create_sockaddr(htonl(cm_info->rem_addr), htons(cm_info->rem_port), in nes_form_pm_msg() [all …]
|