Home
last modified time | relevance | path

Searched refs:cpu_to_be16 (Results 1 – 200 of 468) sorted by relevance

123

/linux-4.4.14/include/rdma/
Dib_pma.h43 #define IB_PMA_CLASS_CAP_ALLPORTSELECT cpu_to_be16(1 << 8)
44 #define IB_PMA_CLASS_CAP_EXT_WIDTH cpu_to_be16(1 << 9)
45 #define IB_PMA_CLASS_CAP_XMIT_WAIT cpu_to_be16(1 << 12)
47 #define IB_PMA_CLASS_PORT_INFO cpu_to_be16(0x0001)
48 #define IB_PMA_PORT_SAMPLES_CONTROL cpu_to_be16(0x0010)
49 #define IB_PMA_PORT_SAMPLES_RESULT cpu_to_be16(0x0011)
50 #define IB_PMA_PORT_COUNTERS cpu_to_be16(0x0012)
51 #define IB_PMA_PORT_COUNTERS_EXT cpu_to_be16(0x001D)
52 #define IB_PMA_PORT_SAMPLES_RESULT_EXT cpu_to_be16(0x001E)
118 #define IB_PMA_SEL_SYMBOL_ERROR cpu_to_be16(0x0001)
[all …]
Dib_smi.h66 #define IB_SMP_DIRECTION cpu_to_be16(0x8000)
69 #define IB_SMP_ATTR_NOTICE cpu_to_be16(0x0002)
70 #define IB_SMP_ATTR_NODE_DESC cpu_to_be16(0x0010)
71 #define IB_SMP_ATTR_NODE_INFO cpu_to_be16(0x0011)
72 #define IB_SMP_ATTR_SWITCH_INFO cpu_to_be16(0x0012)
73 #define IB_SMP_ATTR_GUID_INFO cpu_to_be16(0x0014)
74 #define IB_SMP_ATTR_PORT_INFO cpu_to_be16(0x0015)
75 #define IB_SMP_ATTR_PKEY_TABLE cpu_to_be16(0x0016)
76 #define IB_SMP_ATTR_SL_TO_VL_TABLE cpu_to_be16(0x0017)
77 #define IB_SMP_ATTR_VL_ARB_TABLE cpu_to_be16(0x0018)
[all …]
Dopa_smi.h82 #define OPA_ATTRIB_ID_NODE_DESCRIPTION cpu_to_be16(0x0010)
83 #define OPA_ATTRIB_ID_NODE_INFO cpu_to_be16(0x0011)
84 #define OPA_ATTRIB_ID_PORT_INFO cpu_to_be16(0x0015)
85 #define OPA_ATTRIB_ID_PARTITION_TABLE cpu_to_be16(0x0016)
86 #define OPA_ATTRIB_ID_SL_TO_SC_MAP cpu_to_be16(0x0017)
87 #define OPA_ATTRIB_ID_VL_ARBITRATION cpu_to_be16(0x0018)
88 #define OPA_ATTRIB_ID_SM_INFO cpu_to_be16(0x0020)
89 #define OPA_ATTRIB_ID_CABLE_INFO cpu_to_be16(0x0032)
90 #define OPA_ATTRIB_ID_AGGREGATE cpu_to_be16(0x0080)
91 #define OPA_ATTRIB_ID_SC_TO_SL_MAP cpu_to_be16(0x0082)
[all …]
Dib_cm.h271 #define CM_REQ_ATTR_ID cpu_to_be16(0x0010)
272 #define CM_MRA_ATTR_ID cpu_to_be16(0x0011)
273 #define CM_REJ_ATTR_ID cpu_to_be16(0x0012)
274 #define CM_REP_ATTR_ID cpu_to_be16(0x0013)
275 #define CM_RTU_ATTR_ID cpu_to_be16(0x0014)
276 #define CM_DREQ_ATTR_ID cpu_to_be16(0x0015)
277 #define CM_DREP_ATTR_ID cpu_to_be16(0x0016)
278 #define CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017)
279 #define CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018)
280 #define CM_LAP_ATTR_ID cpu_to_be16(0x0019)
[all …]
Dib_mad.h142 #define IB_NOTICE_PROD_CA cpu_to_be16(1)
143 #define IB_NOTICE_PROD_SWITCH cpu_to_be16(2)
144 #define IB_NOTICE_PROD_ROUTER cpu_to_be16(3)
145 #define IB_NOTICE_PROD_CLASS_MGR cpu_to_be16(4)
240 #define IB_MGMT_CLASSPORTINFO_ATTR_ID cpu_to_be16(0x0001)
/linux-4.4.14/include/linux/
Dsctp.h172 SCTP_PARAM_HEARTBEAT_INFO = cpu_to_be16(1),
174 SCTP_PARAM_IPV4_ADDRESS = cpu_to_be16(5),
175 SCTP_PARAM_IPV6_ADDRESS = cpu_to_be16(6),
176 SCTP_PARAM_STATE_COOKIE = cpu_to_be16(7),
177 SCTP_PARAM_UNRECOGNIZED_PARAMETERS = cpu_to_be16(8),
178 SCTP_PARAM_COOKIE_PRESERVATIVE = cpu_to_be16(9),
179 SCTP_PARAM_HOST_NAME_ADDRESS = cpu_to_be16(11),
180 SCTP_PARAM_SUPPORTED_ADDRESS_TYPES = cpu_to_be16(12),
181 SCTP_PARAM_ECN_CAPABLE = cpu_to_be16(0x8000),
184 SCTP_PARAM_RANDOM = cpu_to_be16(0x8002),
[all …]
Dvirtio_byteorder.h28 return (__force __virtio16)cpu_to_be16(val); in __cpu_to_virtio16()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dopa_compat.h61 #define OPA_ATTRIB_ID_CONGESTION_INFO cpu_to_be16(0x008b)
62 #define OPA_ATTRIB_ID_HFI_CONGESTION_LOG cpu_to_be16(0x008f)
63 #define OPA_ATTRIB_ID_HFI_CONGESTION_SETTING cpu_to_be16(0x0090)
64 #define OPA_ATTRIB_ID_CONGESTION_CONTROL_TABLE cpu_to_be16(0x0091)
67 #define OPA_PM_ATTRIB_ID_PORT_STATUS cpu_to_be16(0x0040)
68 #define OPA_PM_ATTRIB_ID_CLEAR_PORT_STATUS cpu_to_be16(0x0041)
69 #define OPA_PM_ATTRIB_ID_DATA_PORT_COUNTERS cpu_to_be16(0x0042)
70 #define OPA_PM_ATTRIB_ID_ERROR_PORT_COUNTERS cpu_to_be16(0x0043)
71 #define OPA_PM_ATTRIB_ID_ERROR_INFO cpu_to_be16(0x0044)
74 #define OPA_PM_STATUS_REQUEST_TOO_LARGE cpu_to_be16(0x100)
Dmad.h76 #define IB_PMA_PORT_COUNTERS_CONG cpu_to_be16(0xFF00)
103 #define IB_SMP_UNSUP_VERSION cpu_to_be16(0x0004)
104 #define IB_SMP_UNSUP_METHOD cpu_to_be16(0x0008)
105 #define IB_SMP_UNSUP_METH_ATTR cpu_to_be16(0x000C)
106 #define IB_SMP_INVALID_FIELD cpu_to_be16(0x001C)
Dud.c117 cpu_to_be16(slid), in ud_loopback()
118 cpu_to_be16(ah_attr->dlid)); in ud_loopback()
141 cpu_to_be16(lid), in ud_loopback()
142 cpu_to_be16(ah_attr->dlid)); in ud_loopback()
386 qp->s_hdr->ibh.lrh[0] = cpu_to_be16(lrh0); in hfi1_make_ud_req()
387 qp->s_hdr->ibh.lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ in hfi1_make_ud_req()
389 cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in hfi1_make_ud_req()
396 qp->s_hdr->ibh.lrh[3] = cpu_to_be16(lid); in hfi1_make_ud_req()
497 grh->paylen = cpu_to_be16((hwords - 2 + SIZE_OF_CRC) << 2); in return_cnp()
517 hdr.lrh[0] = cpu_to_be16(lrh0); in return_cnp()
[all …]
Dmad.c182 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in hfi1_bad_pqkey()
207 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in bad_mkey()
243 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in hfi1_cap_mask_chg()
263 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in hfi1_sys_guid_chg()
283 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in hfi1_node_desc_chg()
339 ni->partition_cap = cpu_to_be16(hfi1_get_npkeys(dd)); in __subn_get_opa_nodeinfo()
340 ni->device_id = cpu_to_be16(dd->pcidev->device); in __subn_get_opa_nodeinfo()
375 nip->partition_cap = cpu_to_be16(hfi1_get_npkeys(dd)); in subn_get_nodeinfo()
376 nip->device_id = cpu_to_be16(dd->pcidev->device); in subn_get_nodeinfo()
557 pi->mkey_lease_period = cpu_to_be16(ibp->mkey_lease_period); in __subn_get_opa_portinfo()
[all …]
Druc.c682 hdr->paylen = cpu_to_be16((hwords - 2 + nwords + SIZE_OF_CRC) << 2); in hfi1_make_grh()
738 (__force u16)cpu_to_be16((u16)npsn), in build_ahg()
747 (__force u16)cpu_to_be16( in build_ahg()
804 qp->s_hdr->ibh.lrh[0] = cpu_to_be16(lrh0); in hfi1_make_ruc_header()
805 qp->s_hdr->ibh.lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in hfi1_make_ruc_header()
807 cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in hfi1_make_ruc_header()
808 qp->s_hdr->ibh.lrh[3] = cpu_to_be16(ppd_from_ibp(ibp)->lid | in hfi1_make_ruc_header()
Dverbs.h115 #define IB_PMA_PORT_XMIT_DATA cpu_to_be16(0x0001)
116 #define IB_PMA_PORT_RCV_DATA cpu_to_be16(0x0002)
117 #define IB_PMA_PORT_XMIT_PKTS cpu_to_be16(0x0003)
118 #define IB_PMA_PORT_RCV_PKTS cpu_to_be16(0x0004)
119 #define IB_PMA_PORT_XMIT_WAIT cpu_to_be16(0x0005)
121 #define HFI1_VENDOR_IPG cpu_to_be16(0xFFA0)
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_mad.h40 cpu_to_be16(IB_MGMT_MAD_STATUS_BAD_VERSION)
43 cpu_to_be16(IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD)
46 cpu_to_be16(IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB)
49 cpu_to_be16(IB_MGMT_MAD_STATUS_INVALID_ATTRIB_VALUE)
56 #define IB_PMA_PORT_COUNTERS_CONG cpu_to_be16(0xFF00)
99 #define IB_CC_ATTR_CLASSPORTINFO cpu_to_be16(0x0001)
100 #define IB_CC_ATTR_NOTICE cpu_to_be16(0x0002)
101 #define IB_CC_ATTR_CONGESTION_INFO cpu_to_be16(0x0011)
102 #define IB_CC_ATTR_CONGESTION_KEY_INFO cpu_to_be16(0x0012)
103 #define IB_CC_ATTR_CONGESTION_LOG cpu_to_be16(0x0013)
[all …]
Dqib_mad.c154 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_pqkey()
178 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_mkey()
216 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_cap_mask_chg()
236 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_sys_guid_chg()
256 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_node_desc_chg()
299 nip->partition_cap = cpu_to_be16(qib_get_npkeys(dd)); in subn_get_nodeinfo()
300 nip->device_id = cpu_to_be16(dd->deviceid); in subn_get_nodeinfo()
496 pip->lid = cpu_to_be16(ppd->lid); in subn_get_portinfo()
497 pip->sm_lid = cpu_to_be16(ibp->sm_lid); in subn_get_portinfo()
500 pip->mkey_lease_period = cpu_to_be16(ibp->mkey_lease_period); in subn_get_portinfo()
[all …]
Dqib_ud.c95 cpu_to_be16(lid), in qib_ud_loopback()
96 cpu_to_be16(ah_attr->dlid)); in qib_ud_loopback()
119 cpu_to_be16(lid), in qib_ud_loopback()
120 cpu_to_be16(ah_attr->dlid)); in qib_ud_loopback()
352 qp->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ud_req()
353 qp->s_hdr->lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ in qib_make_ud_req()
354 qp->s_hdr->lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ud_req()
358 qp->s_hdr->lrh[3] = cpu_to_be16(lid); in qib_make_ud_req()
Dqib_verbs.h99 #define IB_PMA_PORT_XMIT_DATA cpu_to_be16(0x0001)
100 #define IB_PMA_PORT_RCV_DATA cpu_to_be16(0x0002)
101 #define IB_PMA_PORT_XMIT_PKTS cpu_to_be16(0x0003)
102 #define IB_PMA_PORT_RCV_PKTS cpu_to_be16(0x0004)
103 #define IB_PMA_PORT_XMIT_WAIT cpu_to_be16(0x0005)
105 #define QIB_VENDOR_IPG cpu_to_be16(0xFFA0)
Dqib_ruc.c661 hdr->paylen = cpu_to_be16((hwords - 2 + nwords + SIZE_OF_CRC) << 2); in qib_make_grh()
695 qp->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ruc_header()
696 qp->s_hdr->lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in qib_make_ruc_header()
697 qp->s_hdr->lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ruc_header()
698 qp->s_hdr->lrh[3] = cpu_to_be16(ppd_from_ibp(ibp)->lid | in qib_make_ruc_header()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_gs.c114 p->p.req.command = cpu_to_be16(cmd); in qla2x00_prep_ct_req()
115 p->p.req.max_rsp_size = cpu_to_be16((rsp_size - 16) / 4); in qla2x00_prep_ct_req()
145 cpu_to_be16(CT_ACCEPT_RESPONSE)) { in qla2x00_chk_ms_status()
1248 p->p.req.command = cpu_to_be16(cmd); in qla2x00_prep_ct_fdmi_req()
1249 p->p.req.max_rsp_size = cpu_to_be16((rsp_size - 16) / 4); in qla2x00_prep_ct_fdmi_req()
1295 eiter->type = cpu_to_be16(FDMI_HBA_NODE_NAME); in qla2x00_fdmi_rhba()
1296 eiter->len = cpu_to_be16(4 + WWN_SIZE); in qla2x00_fdmi_rhba()
1305 eiter->type = cpu_to_be16(FDMI_HBA_MANUFACTURER); in qla2x00_fdmi_rhba()
1310 eiter->len = cpu_to_be16(4 + alen); in qla2x00_fdmi_rhba()
1318 eiter->type = cpu_to_be16(FDMI_HBA_SERIAL_NUMBER); in qla2x00_fdmi_rhba()
[all …]
/linux-4.4.14/fs/hfs/
Dmdb.c91 if (mdb->drSigWord == cpu_to_be16(HFS_SUPER_MAGIC)) in hfs_mdb_get()
128 if (mdb->drSigWord != cpu_to_be16(HFS_SUPER_MAGIC)) in hfs_mdb_get()
157 if (mdb2->drSigWord == cpu_to_be16(HFS_SUPER_MAGIC)) { in hfs_mdb_get()
205 if (!(attrib & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) { in hfs_mdb_get()
209 if ((attrib & cpu_to_be16(HFS_SB_ATTRIB_SLOCK))) { in hfs_mdb_get()
215 attrib &= cpu_to_be16(~HFS_SB_ATTRIB_UNMNT); in hfs_mdb_get()
216 attrib |= cpu_to_be16(HFS_SB_ATTRIB_INCNSTNT); in hfs_mdb_get()
269 mdb->drFreeBks = cpu_to_be16(HFS_SB(sb)->free_ablocks); in hfs_mdb_commit()
271 mdb->drNmFls = cpu_to_be16(HFS_SB(sb)->root_files); in hfs_mdb_commit()
272 mdb->drNmRtDirs = cpu_to_be16(HFS_SB(sb)->root_dirs); in hfs_mdb_commit()
[all …]
Dextent.c26 key->ext.FABN = cpu_to_be16(block); in hfs_ext_build_key()
231 extent->block = cpu_to_be16(alloc_block); in hfs_add_extent()
234 extent->count = cpu_to_be16(block_count); in hfs_add_extent()
272 extent->count = cpu_to_be16(count); in hfs_free_extents()
413 HFS_I(inode)->first_extents[0].block = cpu_to_be16(start); in hfs_extend_file()
414 HFS_I(inode)->first_extents[0].count = cpu_to_be16(len); in hfs_extend_file()
459 HFS_I(inode)->cached_extents[0].block = cpu_to_be16(start); in hfs_extend_file()
460 HFS_I(inode)->cached_extents[0].count = cpu_to_be16(len); in hfs_extend_file()
Dpart_tbl.c108 if (pm->pmSig != cpu_to_be16(HFS_NEW_PMAP_MAGIC)) in hfs_part_find()
Dbrec.c319 node_desc.num_recs = cpu_to_be16(new_node->num_recs); in hfs_bnode_split()
327 node_desc.num_recs = cpu_to_be16(node->num_recs); in hfs_bnode_split()
488 node_desc.num_recs = cpu_to_be16(new_node->num_recs); in hfs_btree_inc_height()
Dbtree.c180 head->depth = cpu_to_be16(tree->depth); in hfs_btree_write()
212 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
Dsuper.c121 if (!(HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) { in hfs_remount()
125 } else if (HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_SLOCK)) { in hfs_remount()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_ct.c643 cpu_to_be16(SLI_CT_RESPONSE_FS_ACC)) { in lpfc_cmpl_ct_cmd_gid_ft()
1216 cpu_to_be16(SLI_CTNS_GID_FT); in lpfc_ns_cmd()
1227 cpu_to_be16(SLI_CTNS_GFF_ID); in lpfc_ns_cmd()
1235 cpu_to_be16(SLI_CTNS_RFT_ID); in lpfc_ns_cmd()
1244 cpu_to_be16(SLI_CTNS_RNN_ID); in lpfc_ns_cmd()
1254 cpu_to_be16(SLI_CTNS_RSPN_ID); in lpfc_ns_cmd()
1265 cpu_to_be16(SLI_CTNS_RSNN_NN); in lpfc_ns_cmd()
1277 cpu_to_be16(SLI_CTNS_DA_ID); in lpfc_ns_cmd()
1284 cpu_to_be16(SLI_CTNS_RFF_ID); in lpfc_ns_cmd()
1355 if (fdmi_rsp == cpu_to_be16(SLI_CT_RESPONSE_FS_RJT)) { in lpfc_cmpl_ct_cmd_fdmi()
[all …]
/linux-4.4.14/drivers/staging/iio/frequency/
Dad9832.c43 st->freq_data[0] = cpu_to_be16((AD9832_CMD_FRE8BITSW << CMD_SHIFT) | in ad9832_write_frequency()
46 st->freq_data[1] = cpu_to_be16((AD9832_CMD_FRE16BITSW << CMD_SHIFT) | in ad9832_write_frequency()
49 st->freq_data[2] = cpu_to_be16((AD9832_CMD_FRE8BITSW << CMD_SHIFT) | in ad9832_write_frequency()
52 st->freq_data[3] = cpu_to_be16((AD9832_CMD_FRE16BITSW << CMD_SHIFT) | in ad9832_write_frequency()
65 st->phase_data[0] = cpu_to_be16((AD9832_CMD_PHA8BITSW << CMD_SHIFT) | in ad9832_write_phase()
68 st->phase_data[1] = cpu_to_be16((AD9832_CMD_PHA16BITSW << CMD_SHIFT) | in ad9832_write_phase()
105 st->data = cpu_to_be16((AD9832_CMD_SYNCSELSRC << CMD_SHIFT) | in ad9832_write()
118 st->data = cpu_to_be16((AD9832_CMD_FPSELECT << CMD_SHIFT) | in ad9832_write()
131 st->data = cpu_to_be16((AD9832_CMD_FPSELECT << CMD_SHIFT) | in ad9832_write()
142 st->data = cpu_to_be16((AD9832_CMD_SLEEPRESCLR << CMD_SHIFT) | in ad9832_write()
[all …]
Dad9834.c46 st->freq_data[0] = cpu_to_be16(addr | (regval & in ad9834_write_frequency()
48 st->freq_data[1] = cpu_to_be16(addr | ((regval >> in ad9834_write_frequency()
60 st->data = cpu_to_be16(addr | phase); in ad9834_write_phase()
101 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
109 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
123 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
132 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
195 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_store_wavetype()
389 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_probe()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_dir2_data.c437 new.offset = cpu_to_be16((char *)dup - (char *)hdr); in xfs_dir2_data_freeinsert()
619 bf[0].offset = cpu_to_be16(dp->d_ops->data_entry_offset); in xfs_dir3_data_init()
629 dup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir3_data_init()
632 bf[0].length = cpu_to_be16(t); in xfs_dir3_data_init()
633 dup->length = cpu_to_be16(t); in xfs_dir3_data_init()
634 *xfs_dir2_data_unused_tag_p(dup) = cpu_to_be16((char *)dup - (char *)hdr); in xfs_dir3_data_init()
806 cpu_to_be16((char *)prevdup - (char *)hdr); in xfs_dir2_data_make_free()
841 cpu_to_be16((char *)prevdup - (char *)hdr); in xfs_dir2_data_make_free()
866 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_data_make_free()
867 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length)); in xfs_dir2_data_make_free()
[all …]
Dxfs_inode_buf.c92 di_ok = dip->di_magic == cpu_to_be16(XFS_DINODE_MAGIC) && in xfs_inode_buf_verify()
249 to->di_magic = cpu_to_be16(from->di_magic); in xfs_dinode_to_disk()
250 to->di_mode = cpu_to_be16(from->di_mode); in xfs_dinode_to_disk()
253 to->di_onlink = cpu_to_be16(from->di_onlink); in xfs_dinode_to_disk()
257 to->di_projid_lo = cpu_to_be16(from->di_projid_lo); in xfs_dinode_to_disk()
258 to->di_projid_hi = cpu_to_be16(from->di_projid_hi); in xfs_dinode_to_disk()
270 to->di_anextents = cpu_to_be16(from->di_anextents); in xfs_dinode_to_disk()
274 to->di_dmstate = cpu_to_be16(from->di_dmstate); in xfs_dinode_to_disk()
275 to->di_flags = cpu_to_be16(from->di_flags); in xfs_dinode_to_disk()
289 to->di_flushiter = cpu_to_be16(from->di_flushiter); in xfs_dinode_to_disk()
[all …]
Dxfs_da_format.c477 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
478 to->hdr.count = cpu_to_be16(from->count); in xfs_dir2_leaf_hdr_to_disk()
479 to->hdr.stale = cpu_to_be16(from->stale); in xfs_dir2_leaf_hdr_to_disk()
511 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir3_leaf_hdr_to_disk()
512 hdr3->count = cpu_to_be16(from->count); in xfs_dir3_leaf_hdr_to_disk()
513 hdr3->stale = cpu_to_be16(from->stale); in xfs_dir3_leaf_hdr_to_disk()
537 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC)); in xfs_da2_node_hdr_from_disk()
553 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_da2_node_hdr_to_disk()
554 to->hdr.__count = cpu_to_be16(from->count); in xfs_da2_node_hdr_to_disk()
555 to->hdr.__level = cpu_to_be16(from->level); in xfs_da2_node_hdr_to_disk()
[all …]
Dxfs_dir2_leaf.c162 if (leaf3->info.hdr.magic != cpu_to_be16(magic3)) in xfs_dir3_leaf_verify()
171 if (leaf->hdr.info.magic != cpu_to_be16(magic)) in xfs_dir3_leaf_verify()
314 ? cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) in xfs_dir3_leaf_init()
315 : cpu_to_be16(XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_init()
321 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init()
676 ASSERT(bestsp[i] != cpu_to_be16(NULLDATAOFF)); in xfs_dir2_leaf_addname()
690 if (bestsp[i] == cpu_to_be16(NULLDATAOFF) && in xfs_dir2_leaf_addname()
712 if (use_block != -1 && bestsp[use_block] == cpu_to_be16(NULLDATAOFF)) in xfs_dir2_leaf_addname()
865 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_leaf_addname()
1068 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_bests()
[all …]
Dxfs_da_btree.c545 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_root_split()
546 oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) { in xfs_da3_root_split()
586 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_root_split()
587 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
619 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_root_split()
620 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
1025 ASSERT(magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1026 magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1027 magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1028 magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
[all …]
Dxfs_sb.c442 to->sb_qflags = cpu_to_be16(from->sb_qflags); in xfs_sb_quota_to_disk()
462 to->sb_qflags = cpu_to_be16(qflags); in xfs_sb_quota_to_disk()
514 to->sb_versionnum = cpu_to_be16(from->sb_versionnum); in xfs_sb_to_disk()
515 to->sb_sectsize = cpu_to_be16(from->sb_sectsize); in xfs_sb_to_disk()
516 to->sb_inodesize = cpu_to_be16(from->sb_inodesize); in xfs_sb_to_disk()
517 to->sb_inopblock = cpu_to_be16(from->sb_inopblock); in xfs_sb_to_disk()
539 to->sb_logsectsize = cpu_to_be16(from->sb_logsectsize); in xfs_sb_to_disk()
Dxfs_attr_leaf.c114 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk()
158 hdr3->firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk()
160 to->hdr.firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk()
172 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk()
173 from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_attr3_leaf_hdr_from_disk()
175 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_hdr_from_disk()
222 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_attr3_leaf_hdr_to_disk()
223 hdr3->count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk()
224 hdr3->usedbytes = cpu_to_be16(from->usedbytes); in xfs_attr3_leaf_hdr_to_disk()
230 hdr3->freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk()
[all …]
Dxfs_dquot_buf.c77 if (ddq->d_magic != cpu_to_be16(XFS_DQUOT_MAGIC)) { in xfs_dqcheck()
160 d->dd_diskdq.d_magic = cpu_to_be16(XFS_DQUOT_MAGIC); in xfs_dqcheck()
Dxfs_dir2_block.c554 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_block_addname()
1164 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block()
1178 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block()
1209 dup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_sf_to_block()
1210 dup->length = cpu_to_be16(newoffset - offset); in xfs_dir2_sf_to_block()
1211 *xfs_dir2_data_unused_tag_p(dup) = cpu_to_be16( in xfs_dir2_sf_to_block()
1229 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block()
Dxfs_dir2_node.c342 *to = cpu_to_be16(off); in xfs_dir2_leaf_to_node()
361 if (leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC)) in xfs_dir2_leaf_to_node()
362 leaf->hdr.info.magic = cpu_to_be16(XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_to_node()
364 leaf->hdr.info.magic = cpu_to_be16(XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_to_node()
623 if (unlikely(bests[fi] == cpu_to_be16(NULLDATAOFF))) { in xfs_dir2_leafn_lookup_for_addname()
1090 bests[findex] = cpu_to_be16(longest); in xfs_dir3_data_block_free()
1107 if (bests[i] != cpu_to_be16(NULLDATAOFF)) in xfs_dir3_data_block_free()
1114 bests[findex] = cpu_to_be16(NULLDATAOFF); in xfs_dir3_data_block_free()
1910 bests[findex] = cpu_to_be16(NULLDATAOFF); in xfs_dir2_node_addname_int()
1916 if (bests[findex] == cpu_to_be16(NULLDATAOFF)) { in xfs_dir2_node_addname_int()
[all …]
Dxfs_da_format.h791 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_hdr_size()
799 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_entryp()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dcq.c100 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_CQ); in mlx5_core_create_cq()
132 din.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_create_cq()
160 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_destroy_cq()
189 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_CQ); in mlx5_core_query_cq()
210 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MODIFY_CQ); in mlx5_core_modify_cq()
232 in.ctx.cq_period = cpu_to_be16(cq_period); in mlx5_core_modify_cq_moderation()
233 in.ctx.cq_max_count = cpu_to_be16(cq_max_count); in mlx5_core_modify_cq_moderation()
Dpagealloc.c174 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_PAGES); in mlx5_cmd_query_pages()
175 in.hdr.opmod = boot ? cpu_to_be16(MLX5_BOOT_PAGES) : cpu_to_be16(MLX5_INIT_PAGES); in mlx5_cmd_query_pages()
290 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MANAGE_PAGES); in page_notify_fail()
291 in->hdr.opmod = cpu_to_be16(MLX5_PAGES_CANT_GIVE); in page_notify_fail()
292 in->func_id = cpu_to_be16(func_id); in page_notify_fail()
336 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MANAGE_PAGES); in give_pages()
337 in->hdr.opmod = cpu_to_be16(MLX5_PAGES_GIVE); in give_pages()
338 in->func_id = cpu_to_be16(func_id); in give_pages()
390 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MANAGE_PAGES); in reclaim_pages()
391 in.hdr.opmod = cpu_to_be16(MLX5_PAGES_TAKE); in reclaim_pages()
[all …]
Dmr.c67 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_MKEY); in mlx5_core_create_mkey()
129 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_MKEY); in mlx5_core_destroy_mkey()
151 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_MKEY); in mlx5_core_query_mkey()
174 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS); in mlx5_core_dump_fill_mkey()
201 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_PSV); in mlx5_core_create_psv()
232 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_PSV); in mlx5_core_destroy_psv()
Dqp.c193 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_QP); in mlx5_core_create_qp()
240 din.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_QP); in mlx5_core_create_qp()
268 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_QP); in mlx5_core_destroy_qp()
334 in->hdr.opcode = cpu_to_be16(op); in mlx5_core_qp_modify()
367 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_QP); in mlx5_core_qp_query()
388 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ALLOC_XRCD); in mlx5_core_xrcd_alloc()
410 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DEALLOC_XRCD); in mlx5_core_xrcd_dealloc()
433 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_PAGE_FAULT_RESUME); in mlx5_core_page_fault_resume()
Dmad.c56 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MAD_IFC); in mlx5_core_mad_ifc()
57 in->hdr.opmod = cpu_to_be16(opmod); in mlx5_core_mad_ifc()
Dpd.c69 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ALLOC_PD); in mlx5_core_alloc_pd()
90 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DEALLOC_PD); in mlx5_core_dealloc_pd()
Dmcg.c72 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ATTACH_TO_MCG); in mlx5_core_attach_mcg()
94 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DETTACH_FROM_MCG); in mlx5_core_detach_mcg()
Dsrq.c159 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_SRQ); in create_srq_cmd()
177 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_SRQ); in destroy_srq_cmd()
193 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ARM_RQ); in arm_srq_cmd()
194 in.hdr.opmod = cpu_to_be16(!!is_srq); in arm_srq_cmd()
196 in.lwm = cpu_to_be16(lwm); in arm_srq_cmd()
210 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_SRQ); in query_srq_cmd()
Dfw.c174 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_INIT_HCA); in mlx5_cmd_init_hca()
193 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_TEARDOWN_HCA); in mlx5_cmd_teardown_hca()
Dport.c55 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ACCESS_REG); in mlx5_core_access_reg()
56 in->hdr.opmod = cpu_to_be16(!write); in mlx5_core_access_reg()
58 in->register_id = cpu_to_be16(reg_num); in mlx5_core_access_reg()
Den_tx.c151 vhdr->h_vlan_TCI = cpu_to_be16(skb_vlan_tag_get(skb)); in mlx5e_insert_vlan()
191 eseg->mss = cpu_to_be16(skb_shinfo(skb)->gso_size); in mlx5e_sq_xmit()
216 eseg->inline_hdr_sz = cpu_to_be16(ihs); in mlx5e_sq_xmit()
Deq.c92 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_EQ); in mlx5_cmd_destroy_eq()
366 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_EQ); in mlx5_create_map_eq()
528 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_EQ); in mlx5_core_eq_query()
Den_rx.c133 ipv4->tot_len = cpu_to_be16(tot_len); in mlx5e_lro_update_hdr()
139 ipv6->payload_len = cpu_to_be16(tot_len - in mlx5e_lro_update_hdr()
Duar.c76 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ALLOC_UAR); in mlx5_cmd_alloc_uar()
101 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DEALLOC_UAR); in mlx5_cmd_free_uar()
Dwq.c166 next_seg->next_wqe_index = cpu_to_be16(i + 1); in mlx5_wq_ll_create()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_mad.c41 #define IB_SMP_UNSUP_VERSION cpu_to_be16(0x0004)
42 #define IB_SMP_UNSUP_METHOD cpu_to_be16(0x0008)
43 #define IB_SMP_UNSUP_METH_ATTR cpu_to_be16(0x000C)
44 #define IB_SMP_INVALID_FIELD cpu_to_be16(0x001C)
108 nip->partition_cap = cpu_to_be16(ipath_get_npkeys(dd)); in recv_subn_get_nodeinfo()
109 nip->device_id = cpu_to_be16(dd->ipath_deviceid); in recv_subn_get_nodeinfo()
264 pip->lid = lid ? cpu_to_be16(lid) : IB_LID_PERMISSIVE; in recv_subn_get_portinfo()
265 pip->sm_lid = cpu_to_be16(dev->sm_lid); in recv_subn_get_portinfo()
268 pip->mkey_lease_period = cpu_to_be16(dev->mkey_lease_period); in recv_subn_get_portinfo()
315 pip->mkey_violations = cpu_to_be16(dev->mkey_violations); in recv_subn_get_portinfo()
[all …]
Dipath_ruc.c586 hdr->paylen = cpu_to_be16((hwords - 2 + nwords + SIZE_OF_CRC) << 2); in ipath_make_grh()
618 qp->s_hdr.lrh[0] = cpu_to_be16(lrh0); in ipath_make_ruc_header()
619 qp->s_hdr.lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in ipath_make_ruc_header()
620 qp->s_hdr.lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in ipath_make_ruc_header()
621 qp->s_hdr.lrh[3] = cpu_to_be16(dev->dd->ipath_lid | in ipath_make_ruc_header()
Dipath_verbs.h89 #define IB_PMA_PORT_XMIT_DATA cpu_to_be16(0x0001)
90 #define IB_PMA_PORT_RCV_DATA cpu_to_be16(0x0002)
91 #define IB_PMA_PORT_XMIT_PKTS cpu_to_be16(0x0003)
92 #define IB_PMA_PORT_RCV_PKTS cpu_to_be16(0x0004)
93 #define IB_PMA_PORT_XMIT_WAIT cpu_to_be16(0x0005)
Dipath_ud.c351 qp->s_hdr.lrh[0] = cpu_to_be16(lrh0); in ipath_make_ud_req()
352 qp->s_hdr.lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ in ipath_make_ud_req()
353 qp->s_hdr.lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + in ipath_make_ud_req()
359 qp->s_hdr.lrh[3] = cpu_to_be16(lid); in ipath_make_ud_req()
/linux-4.4.14/fs/xfs/
Dxfs_attr_inactive.c267 case cpu_to_be16(XFS_DA_NODE_MAGIC): in xfs_attr3_node_inactive()
268 case cpu_to_be16(XFS_DA3_NODE_MAGIC): in xfs_attr3_node_inactive()
272 case cpu_to_be16(XFS_ATTR_LEAF_MAGIC): in xfs_attr3_node_inactive()
273 case cpu_to_be16(XFS_ATTR3_LEAF_MAGIC): in xfs_attr3_node_inactive()
352 case cpu_to_be16(XFS_DA_NODE_MAGIC): in xfs_attr3_root_inactive()
353 case cpu_to_be16(XFS_DA3_NODE_MAGIC): in xfs_attr3_root_inactive()
356 case cpu_to_be16(XFS_ATTR_LEAF_MAGIC): in xfs_attr3_root_inactive()
357 case cpu_to_be16(XFS_ATTR3_LEAF_MAGIC): in xfs_attr3_root_inactive()
Dxfs_qm_syscalls.c505 ddq->d_bwarns = cpu_to_be16(newlim->d_spc_warns); in xfs_qm_scall_setqlim()
507 ddq->d_iwarns = cpu_to_be16(newlim->d_ino_warns); in xfs_qm_scall_setqlim()
509 ddq->d_rtbwarns = cpu_to_be16(newlim->d_rt_spc_warns); in xfs_qm_scall_setqlim()
/linux-4.4.14/fs/hfsplus/
Dcatalog.c54 key->key_len = cpu_to_be16(6 + 2 * len); in hfsplus_cat_build_key()
64 key->key_len = cpu_to_be16(6); in hfsplus_cat_build_key_with_cnid()
74 key->cat.name.length = cpu_to_be16(ustrlen); in hfsplus_cat_build_key_uni()
77 key->key_len = cpu_to_be16(6 + ustrlen); in hfsplus_cat_build_key_uni()
92 perms->mode = cpu_to_be16(inode->i_mode); in hfsplus_cat_set_perms()
114 folder->type = cpu_to_be16(HFSPLUS_FOLDER); in hfsplus_cat_build_record()
116 folder->flags |= cpu_to_be16(HFSPLUS_HAS_FOLDER_COUNT); in hfsplus_cat_build_record()
126 folder->user_info.frFlags = cpu_to_be16(0x5000); in hfsplus_cat_build_record()
133 file->type = cpu_to_be16(HFSPLUS_FILE); in hfsplus_cat_build_record()
134 file->flags = cpu_to_be16(HFSPLUS_FILE_THREAD_EXISTS); in hfsplus_cat_build_record()
[all …]
Dwrapper.c99 if (sig != cpu_to_be16(HFSPLUS_VOLHEAD_SIG) && in hfsplus_read_mdb()
100 sig != cpu_to_be16(HFSPLUS_VOLHEAD_SIGX)) in hfsplus_read_mdb()
190 case cpu_to_be16(HFSPLUS_VOLHEAD_SIGX): in hfsplus_read_wrapper()
193 case cpu_to_be16(HFSPLUS_VOLHEAD_SIG): in hfsplus_read_wrapper()
195 case cpu_to_be16(HFSP_WRAP_MAGIC): in hfsplus_read_wrapper()
Dxattr.c80 desc->num_recs = cpu_to_be16(HFSPLUS_BTREE_HDR_NODE_RECS_COUNT); in hfsplus_init_header_node()
82 *--rec_offsets = cpu_to_be16(offset); in hfsplus_init_header_node()
85 head->node_size = cpu_to_be16(node_size); in hfsplus_init_header_node()
92 head->max_key_len = cpu_to_be16(HFSPLUS_ATTR_KEYLEN - sizeof(u16)); in hfsplus_init_header_node()
94 *--rec_offsets = cpu_to_be16(offset); in hfsplus_init_header_node()
96 *--rec_offsets = cpu_to_be16(offset); in hfsplus_init_header_node()
123 *--rec_offsets = cpu_to_be16(offset); in hfsplus_init_header_node()
Dunicode.c318 ustr->unicode[outlen++] = cpu_to_be16(*dstr++); in hfsplus_asc2uni()
321 ustr->unicode[outlen++] = cpu_to_be16(c); in hfsplus_asc2uni()
326 ustr->length = cpu_to_be16(outlen); in hfsplus_asc2uni()
Dbrec.c168 cpu_to_be16(tree->max_key_len); in hfs_brec_insert()
323 node_desc.num_recs = cpu_to_be16(new_node->num_recs); in hfs_bnode_split()
331 node_desc.num_recs = cpu_to_be16(node->num_recs); in hfs_bnode_split()
492 node_desc.num_recs = cpu_to_be16(new_node->num_recs); in hfs_btree_inc_height()
Dinode.c502 if (folder->flags & cpu_to_be16(HFSPLUS_HAS_FOLDER_COUNT)) { in hfsplus_cat_read_inode()
578 if (folder->flags & cpu_to_be16(HFSPLUS_HAS_FOLDER_COUNT)) { in hfsplus_cat_write_inode()
603 file->flags |= cpu_to_be16(HFSPLUS_FILE_LOCKED); in hfsplus_cat_write_inode()
605 file->flags &= cpu_to_be16(~HFSPLUS_FILE_LOCKED); in hfsplus_cat_write_inode()
Dattributes.c76 cpu_to_be16(offsetof(struct hfsplus_attr_key, key_name) + in hfsplus_attr_build_key()
121 entry->inline_data.length = cpu_to_be16(len); in hfsplus_attr_build_record()
Dpart_tbl.c119 } while (pm->pmSig == cpu_to_be16(HFS_NEW_PMAP_MAGIC)); in hfs_parse_new_pmap()
Dbtree.c303 head->depth = cpu_to_be16(tree->depth); in hfs_btree_write()
334 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
/linux-4.4.14/drivers/staging/fbtft/
Dfb_watterott.c83 pos[2] = cpu_to_be16(par->info->var.xres); in write_vmem()
84 pos[3] = cpu_to_be16(1); in write_vmem()
88 pos[1] = cpu_to_be16(i); in write_vmem()
90 buf16[j] = cpu_to_be16(*vmem16++); in write_vmem()
120 pos[2] = cpu_to_be16(par->info->var.xres); in write_vmem_8bit()
121 pos[3] = cpu_to_be16(1); in write_vmem_8bit()
125 pos[1] = cpu_to_be16(i); in write_vmem_8bit()
Dfbtft-bus.c72 define_fbtft_write_reg(fbtft_write_reg16_bus8, u16, cpu_to_be16) in define_fbtft_write_reg() argument
165 txbuf16[i] = cpu_to_be16(vmem16[i]); in fbtft_write_vmem16_bus8()
/linux-4.4.14/drivers/net/ethernet/qualcomm/
Dqca_7k.c54 tx_data = cpu_to_be16(QCA7K_SPI_READ | QCA7K_SPI_INTERNAL | reg); in qcaspi_read_register()
95 tx_data[0] = cpu_to_be16(QCA7K_SPI_WRITE | QCA7K_SPI_INTERNAL | reg); in qcaspi_write_register()
96 tx_data[1] = cpu_to_be16(value); in qcaspi_write_register()
135 tx_data = cpu_to_be16(cmd); in qcaspi_tx_cmd()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_fcbuild.c100 plogi_tmpl.csp.conseq = cpu_to_be16(0x00FF); in fcbuild_init()
101 plogi_tmpl.csp.ro_bitmap = cpu_to_be16(0x0002); in fcbuild_init()
114 prli_tmpl.pagebytes = cpu_to_be16(0x0014); in fcbuild_init()
150 fchs->ox_id = cpu_to_be16(ox_id); in fc_gs_fchdr_build()
180 fchs->ox_id = cpu_to_be16(ox_id); in fc_els_req_build()
241 plogi->csp.rxsz = plogi->class3.rxsz = cpu_to_be16(pdu_size); in fc_plogi_x_build()
242 plogi->csp.bbcred = cpu_to_be16(bb_cr); in fc_plogi_x_build()
263 flogi->csp.rxsz = flogi->class3.rxsz = cpu_to_be16(pdu_size); in fc_flogi_build()
276 flogi->csp.bbcred = cpu_to_be16(local_bb_credits); in fc_flogi_build()
300 flogi->class3.rxsz = cpu_to_be16(pdu_size); in fc_flogi_acc_build()
[all …]
Dbfa_fcs_lport.c1930 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_NODENAME); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1936 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1943 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MANUFACTURER); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1950 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1957 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_SERIALNUM); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1964 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1971 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MODEL); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1978 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1985 attr->type = cpu_to_be16(FDMI_HBA_ATTRIB_MODEL_DESC); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1992 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
[all …]
Dbfa_core.c997 cfg_info->num_ioim_reqs = cpu_to_be16(bfa_fcpim_get_throttle_cfg(bfa, in bfa_iocfc_send_cfg()
999 cfg_info->num_fwtio_reqs = cpu_to_be16(cfg->fwcfg.num_fwtio_reqs); in bfa_iocfc_send_cfg()
1011 cpu_to_be16(cfg->drvcfg.num_reqq_elems); in bfa_iocfc_send_cfg()
1018 cpu_to_be16(cfg->drvcfg.num_rspq_elems); in bfa_iocfc_send_cfg()
1266 bfa_fcp_res_recfg(bfa, cpu_to_be16(cfg_info->num_ioim_reqs), in bfa_iocfc_res_recfg()
1628 iocfc->cfginfo->intr_attr.delay = cpu_to_be16(attr->delay); in bfa_iocfc_israttr_set()
1629 iocfc->cfginfo->intr_attr.latency = cpu_to_be16(attr->latency); in bfa_iocfc_israttr_set()
/linux-4.4.14/drivers/char/tpm/
Dtpm2-cmd.c234 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
260 cmd.params.pcrread_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); in tpm2_pcr_read()
282 .tag = cpu_to_be16(TPM2_ST_SESSIONS),
312 cmd.params.pcrextend_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); in tpm2_pcr_extend()
326 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
359 cmd.params.getrandom_in.size = cpu_to_be16(num_bytes); in tpm2_get_random()
383 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
670 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
691 cmd.params.startup_in.startup_type = cpu_to_be16(startup_type); in tpm2_startup()
702 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS),
[all …]
Dtpm.h232 #define TPM_TAG_RQU_COMMAND cpu_to_be16(193)
430 head->tag = cpu_to_be16(tag); in tpm_buf_init()
485 __be16 value2 = cpu_to_be16(value); in tpm_buf_append_u16()
/linux-4.4.14/drivers/s390/crypto/
Dzcrypt_cca_key.h166 key->t6_hdr.blen = cpu_to_be16(0x189); in zcrypt_type6_mex_key_de()
167 key->t6_hdr.ulen = cpu_to_be16(0x189 - 2); in zcrypt_type6_mex_key_de()
255 key->t6_hdr.ulen = cpu_to_be16(key->pubHdr.token_length + 4); in zcrypt_type6_mex_key_en()
256 key->t6_hdr.blen = cpu_to_be16(key->pubHdr.token_length + 6); in zcrypt_type6_mex_key_en()
302 key->t6_hdr.blen = cpu_to_be16(size); in zcrypt_type6_crt_key()
303 key->t6_hdr.ulen = cpu_to_be16(size - 2); in zcrypt_type6_crt_key()
/linux-4.4.14/drivers/net/wan/
Dhdlc_cisco.c116 data->rel = cpu_to_be16(0xFFFF); in cisco_keepalive_send()
135 return cpu_to_be16(ETH_P_HDLC); in cisco_type_trans()
139 return cpu_to_be16(ETH_P_HDLC); in cisco_type_trans()
142 case cpu_to_be16(ETH_P_IP): in cisco_type_trans()
143 case cpu_to_be16(ETH_P_IPX): in cisco_type_trans()
144 case cpu_to_be16(ETH_P_IPV6): in cisco_type_trans()
148 return cpu_to_be16(ETH_P_HDLC); in cisco_type_trans()
Dhdlc_fr.c282 case cpu_to_be16(NLPID_CCITT_ANSI_LMI): in fr_hard_header()
288 case cpu_to_be16(NLPID_CISCO_LMI): in fr_hard_header()
294 case cpu_to_be16(ETH_P_IP): in fr_hard_header()
300 case cpu_to_be16(ETH_P_IPV6): in fr_hard_header()
306 case cpu_to_be16(ETH_P_802_3): in fr_hard_header()
430 skb->protocol = cpu_to_be16(ETH_P_802_3); in pvc_xmit()
497 skb->protocol = cpu_to_be16(NLPID_CISCO_LMI); in fr_lmi_send()
500 skb->protocol = cpu_to_be16(NLPID_CCITT_ANSI_LMI); in fr_lmi_send()
Dhdlc_raw.c29 return cpu_to_be16(ETH_P_IP); in raw_type_trans()
/linux-4.4.14/drivers/input/misc/
Dad714x-i2c.c34 chip->xfer_buf[0] = cpu_to_be16(reg); in ad714x_i2c_write()
35 chip->xfer_buf[1] = cpu_to_be16(data); in ad714x_i2c_write()
54 chip->xfer_buf[0] = cpu_to_be16(reg); in ad714x_i2c_read()
Dad714x-spi.c43 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX | in ad714x_spi_read()
71 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX | reg); in ad714x_spi_write()
72 chip->xfer_buf[1] = cpu_to_be16(data); in ad714x_spi_write()
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_wimax.c74 hci->cmd_evt = cpu_to_be16(WIMAX_TX_SDU); in gdm_wimax_header()
75 hci->length = cpu_to_be16(skb->len - HCI_HEADER_SIZE); in gdm_wimax_header()
298 hci->cmd_evt = cpu_to_be16(WIMAX_SET_INFO); in __gdm_wimax_set_mac_addr()
299 hci->length = cpu_to_be16(8); in __gdm_wimax_set_mac_addr()
332 hci->cmd_evt = cpu_to_be16(WIMAX_IF_UPDOWN); in gdm_wimax_ind_if_updown()
333 hci->length = cpu_to_be16(sizeof(up_down)); in gdm_wimax_ind_if_updown()
427 hci->cmd_evt = cpu_to_be16(WIMAX_FSM_UPDATE); in gdm_wimax_ind_fsm_update()
428 hci->length = cpu_to_be16(sizeof(struct fsm_s)); in gdm_wimax_ind_fsm_update()
513 hci->cmd_evt = cpu_to_be16(WIMAX_GET_INFO); in gdm_wimax_prepare_device()
515 hci->length = cpu_to_be16(len); in gdm_wimax_prepare_device()
[all …]
/linux-4.4.14/fs/gfs2/
Ddir.h76 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent()
77 dent->de_name_len = cpu_to_be16(name->len); in gfs2_qstr2dirent()
78 dent->de_type = cpu_to_be16(0); in gfs2_qstr2dirent()
Ddir.c682 prev->de_rec_len = cpu_to_be16(prev_rec_len); in dirent_del()
704 dent->de_rec_len = cpu_to_be16(offset); in gfs2_init_dirent()
847 leaf->lf_depth = cpu_to_be16(depth); in new_leaf()
895 leaf->lf_entries = cpu_to_be16(dip->i_entries); in dir_make_exhash()
924 dent->de_rec_len = cpu_to_be16(be16_to_cpu(dent->de_rec_len) + in dir_make_exhash()
1718 dent->de_type = cpu_to_be16(IF2DT(nip->i_inode.i_mode)); in gfs2_dir_add()
1719 dent->de_rahead = cpu_to_be16(gfs2_inode_ra_len(nip)); in gfs2_dir_add()
1807 leaf->lf_entries = cpu_to_be16(--entries); in gfs2_dir_del()
1854 dent->de_type = cpu_to_be16(new_type); in gfs2_dir_mvino()
/linux-4.4.14/drivers/staging/rdma/ehca/
Dehca_sqp.c49 #define IB_MAD_STATUS_REDIRECT cpu_to_be16(0x0002)
50 #define IB_MAD_STATUS_UNSUP_VERSION cpu_to_be16(0x0004)
51 #define IB_MAD_STATUS_UNSUP_METHOD cpu_to_be16(0x0008)
53 #define IB_PMA_CLASS_PORT_INFO cpu_to_be16(0x0001)
/linux-4.4.14/drivers/tty/hvc/
Dhvsi_lib.c11 packet->seqno = cpu_to_be16(atomic_inc_return(&pv->seqno)); in hvsi_send_packet()
30 q.verb = cpu_to_be16(VSV_SEND_VERSION_NUMBER); in hvsi_start_handshake()
42 ctrl.verb = cpu_to_be16(VSV_CLOSE_PROTOCOL); in hvsi_send_close()
98 r.verb = cpu_to_be16(VSV_SEND_VERSION_NUMBER); in hvsi_got_query()
267 q.verb = cpu_to_be16(VSV_SEND_MODEM_CTL_STATUS); in hvsilib_read_mctrl()
305 ctrl.verb = cpu_to_be16(VSV_SET_MODEM_CTL); in hvsilib_write_mctrl()
Dhvsi.c300 packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); in hvsi_version_respond()
301 packet.verb = cpu_to_be16(VSV_SEND_VERSION_NUMBER); in hvsi_version_respond()
303 packet.query_seqno = cpu_to_be16(query_seqno+1); in hvsi_version_respond()
560 packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); in hvsi_query()
561 packet.verb = cpu_to_be16(verb); in hvsi_query()
602 packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); in hvsi_set_mctrl()
604 packet.verb = cpu_to_be16(VSV_SET_MODEM_CTL); in hvsi_set_mctrl()
685 packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); in hvsi_put_chars()
702 packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno)); in hvsi_close_protocol()
704 packet.verb = cpu_to_be16(VSV_CLOSE_PROTOCOL); in hvsi_close_protocol()
/linux-4.4.14/arch/powerpc/boot/
Dof.h29 #define cpu_to_be16(x) swab16(x) macro
36 #define cpu_to_be16(x) (x) macro
Dlibfdt_env.h18 #define cpu_to_fdt16(x) cpu_to_be16(x)
/linux-4.4.14/drivers/staging/rdma/amso1100/
Dc2.c134 __raw_writew((__force u16) cpu_to_be16(TXP_HTXD_UNINIT), in c2_tx_ring_alloc()
180 __raw_writew((__force u16) cpu_to_be16(RXP_HRXD_OK), in c2_rx_ring_alloc()
186 __raw_writew((__force u16) cpu_to_be16(RXP_HRXD_UNINIT), in c2_rx_ring_alloc()
240 __raw_writew((__force u16) cpu_to_be16((u16) maplen - sizeof(*rxp_hdr)), in c2_rx_alloc()
243 __raw_writew((__force u16) cpu_to_be16(RXP_HRXD_READY), in c2_rx_alloc()
294 __raw_writew((__force u16) cpu_to_be16(RXP_HRXD_UNINIT), in c2_rx_clean()
348 __raw_writew((__force u16) cpu_to_be16(TXP_HTXD_DONE), in c2_tx_clean()
357 __raw_writew((__force u16) cpu_to_be16(TXP_HTXD_UNINIT), in c2_tx_clean()
450 __raw_writew((__force u16) cpu_to_be16((u16) elem->maplen - sizeof(*rxp_hdr)), in c2_rx_error()
454 __raw_writew((__force u16) cpu_to_be16(RXP_HRXD_READY), in c2_rx_error()
[all …]
Dc2_mq.c67 __raw_writew((__force u16) cpu_to_be16(q->priv), &q->peer->shared); in c2_mq_produce()
108 __raw_writew((__force u16) cpu_to_be16(q->priv), &q->peer->shared); in c2_mq_free()
120 *q->shared = cpu_to_be16((be16_to_cpu(*q->shared)+1) % q->q_size); in c2_mq_lconsume()
/linux-4.4.14/net/mpls/
Dmpls_gso.c64 .type = cpu_to_be16(ETH_P_MPLS_MC),
72 .type = cpu_to_be16(ETH_P_MPLS_UC),
/linux-4.4.14/fs/befs/
Dendian.h65 return (__force fs16)cpu_to_be16(n); in cpu_to_fs16()
98 run.start = cpu_to_be16(n.start); in cpu_to_fsrun()
99 run.len = cpu_to_be16(n.len); in cpu_to_fsrun()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dhtc_hst.c33 hdr->payload_len = cpu_to_be16(len); in htc_issue_send()
162 cp_msg->message_id = cpu_to_be16(HTC_MSG_CONFIG_PIPE_ID); in htc_config_pipe_credits()
200 comp_msg->msg_id = cpu_to_be16(HTC_MSG_SETUP_COMPLETE_ID); in htc_setup_complete()
270 conn_msg->service_id = cpu_to_be16(service_connreq->service_id); in htc_connect_service()
271 conn_msg->msg_id = cpu_to_be16(HTC_MSG_CONNECT_SERVICE_ID); in htc_connect_service()
272 conn_msg->con_flags = cpu_to_be16(service_connreq->con_flags); in htc_connect_service()
Dwmi.c281 hdr->command_id = cpu_to_be16(cmd); in ath9k_wmi_cmd_issue()
282 hdr->seq_no = cpu_to_be16(++wmi->tx_seq_id); in ath9k_wmi_cmd_issue()
Dhtc_drv_main.c225 htc_mode = cpu_to_be16(mode); in ath9k_htc_reset()
299 htc_mode = cpu_to_be16(mode); in ath9k_htc_set_channel()
412 tsta.maxampdu = cpu_to_be16(0xffff); in ath9k_htc_add_monitor_interface()
498 tsta.maxampdu = cpu_to_be16(maxampdu); in ath9k_htc_add_station()
502 tsta.maxampdu = cpu_to_be16(0xffff); in ath9k_htc_add_station()
948 htc_mode = cpu_to_be16(mode); in ath9k_htc_start()
1075 hvif.rtsthreshold = cpu_to_be16(2304); in ath9k_htc_add_interface()
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c80 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr()
81 eth.roce_eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr()
83 eth.vlan_tag = cpu_to_be16(vlan_tag); in set_av_attr()
87 eth.eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr()
/linux-4.4.14/include/scsi/
Dosd_protocol.h266 OSD_ACT_##Name = cpu_to_be16(0x8880 + Num), \
267 OSDv1_ACT_##Name = cpu_to_be16(0x8800 + Num),
271 OSD_ACT_##Name = cpu_to_be16(0x8880 + Num),
274 OSD_ACT_##Name = cpu_to_be16(Num2), \
275 OSDv1_ACT_##Name = cpu_to_be16(Num1),
/linux-4.4.14/net/llc/
Dllc_core.c136 .type = cpu_to_be16(ETH_P_802_2),
141 .type = cpu_to_be16(ETH_P_TR_802_2),
/linux-4.4.14/net/caif/
Dcaif_usb.c110 this->tx_eth_hdr[12] = cpu_to_be16(ETH_P_802_EX1) & 0xff; in cfusbl_create()
111 this->tx_eth_hdr[13] = (cpu_to_be16(ETH_P_802_EX1) >> 8) & 0xff; in cfusbl_create()
120 .type = cpu_to_be16(ETH_P_802_EX1),
/linux-4.4.14/include/linux/byteorder/
Dgeneric.h95 #define cpu_to_be16 __cpu_to_be16 macro
160 *var = cpu_to_be16(be16_to_cpu(*var) + val); in be16_add_cpu()
/linux-4.4.14/include/net/
Dmrp.h18 #define MRP_VECATTR_HDR_LEN_MASK cpu_to_be16(0x1FFF)
19 #define MRP_VECATTR_HDR_FLAG_LA cpu_to_be16(0x2000)
Dinet_ecn.h149 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ce()
155 case cpu_to_be16(ETH_P_IPV6): in INET_ECN_set_ce()
Dipx.h31 #define IPX_NO_CHECKSUM cpu_to_be16(0xFFFF)
Dbond_3ad.h32 #define PKT_TYPE_LACPDU cpu_to_be16(ETH_P_SLOW)
/linux-4.4.14/drivers/iio/adc/
Dad7298.c122 st->tx_buf[0] = cpu_to_be16(command); in ad7298_update_scan_mode()
177 st->tx_buf[0] = cpu_to_be16(AD7298_WRITE | st->ext_ref | in ad7298_scan_direct()
192 buf = cpu_to_be16(AD7298_WRITE | AD7298_TSENSE | in ad7298_scan_temp()
199 buf = cpu_to_be16(0); in ad7298_scan_temp()
Dad7923.c144 st->tx_buf[len++] = cpu_to_be16(cmd); in ad7923_update_scan_mode()
200 st->tx_buf[0] = cpu_to_be16(cmd); in ad7923_scan_direct()
/linux-4.4.14/drivers/zorro/
Dproc.c46 cd.cd_SlotAddr = cpu_to_be16(z->slotaddr); in proc_bus_zorro_read()
47 cd.cd_SlotSize = cpu_to_be16(z->slotsize); in proc_bus_zorro_read()
Dzorro-sysfs.c75 cd.cd_SlotAddr = cpu_to_be16(z->slotaddr); in zorro_read_config()
76 cd.cd_SlotSize = cpu_to_be16(z->slotsize); in zorro_read_config()
/linux-4.4.14/fs/dlm/
Ddir.c278 be_namelen = cpu_to_be16(0); in dlm_copy_master_names()
285 be_namelen = cpu_to_be16(r->res_length); in dlm_copy_master_names()
300 be_namelen = cpu_to_be16(0xFFFF); in dlm_copy_master_names()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c298 vi_cmd.type_viid = cpu_to_be16(FW_VI_CMD_VIID_V(pi->viid)); in t4vf_port_init()
964 cmd.niqid = cpu_to_be16(nq); in t4vf_config_rss_range()
965 cmd.startidx = cpu_to_be16(start); in t4vf_config_rss_range()
1067 cmd.type_viid = cpu_to_be16(FW_VI_CMD_VIID_V(viid)); in t4vf_free_vi()
1116 cmd.blinkdur = cpu_to_be16(nblinks); in t4vf_identify_port()
1220 p->valid_to_idx = cpu_to_be16( in t4vf_alloc_mac_filt()
1302 p->valid_to_idx = cpu_to_be16(FW_VI_MAC_CMD_VALID_F | in t4vf_change_mac()
1382 cpu_to_be16(FW_VI_STATS_CMD_IX_V(ix) | in t4vf_get_port_stats()
1443 cmd.iqid = cpu_to_be16(iqid); in t4vf_iq_free()
1444 cmd.fl0id = cpu_to_be16(fl0id); in t4vf_iq_free()
[all …]
Dsge.c1301 lso->ipid_ofst = cpu_to_be16(0); in t4vf_eth_xmit()
1302 lso->mss = cpu_to_be16(ssi->gso_size); in t4vf_eth_xmit()
1361 cpl->pack = cpu_to_be16(0); in t4vf_eth_xmit()
1362 cpl->len = cpu_to_be16(skb->len); in t4vf_eth_xmit()
1591 __vlan_hwaccel_put_tag(skb, cpu_to_be16(ETH_P_8021Q), in do_gro()
2257 cpu_to_be16(FW_IQ_CMD_IQPCIECH_V(pi->port_id) | in t4vf_sge_alloc_rxq()
2261 cmd.iqsize = cpu_to_be16(rspq->size); in t4vf_sge_alloc_rxq()
2304 cpu_to_be16( in t4vf_sge_alloc_rxq()
2309 cmd.fl0size = cpu_to_be16(flsz); in t4vf_sge_alloc_rxq()
/linux-4.4.14/drivers/i2c/busses/
Di2c-opal.c102 req.addr = cpu_to_be16(msgs[0].addr); in i2c_opal_master_xfer()
109 req.addr = cpu_to_be16(msgs[0].addr); in i2c_opal_master_xfer()
139 req.addr = cpu_to_be16(addr); in i2c_opal_smbus_xfer()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dah.c60 ah->av.ib.dlid = cpu_to_be16(ah_attr->dlid); in create_ib_ah()
106 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah()
118 ah->av.ib.dlid = cpu_to_be16(0xc000); in create_iboe_ah()
Dmcg.c290 mad.mad_hdr.status = cpu_to_be16(0); in send_leave_to_wire()
291 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_leave_to_wire()
294 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_leave_to_wire()
297 mad.sa_hdr.attr_offset = cpu_to_be16(7); in send_leave_to_wire()
331 mad.mad_hdr.status = cpu_to_be16(status); in send_reply_to_slave()
332 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_reply_to_slave()
335 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_reply_to_slave()
338 mad.sa_hdr.attr_offset = cpu_to_be16(7); in send_reply_to_slave()
Dsrq.c157 cpu_to_be16((i + 1) & (srq->msrq.max - 1)); in mlx4_ib_create_srq()
308 next->next_wqe_index = cpu_to_be16(wqe_index); in mlx4_ib_free_srq_wqe()
Dcq.c567 return ((status & cpu_to_be16(MLX4_CQE_STATUS_IPV4 | in mlx4_ib_ipoib_csum_ok()
572 cpu_to_be16(MLX4_CQE_STATUS_IPV4 | in mlx4_ib_ipoib_csum_ok()
574 (status & cpu_to_be16(MLX4_CQE_STATUS_UDP | in mlx4_ib_ipoib_csum_ok()
576 checksum == cpu_to_be16(0xffff); in mlx4_ib_ipoib_csum_ok()
Dqp.c1310 path->rlid = cpu_to_be16(ah->dlid); in _mlx4_set_path()
2177 cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_sriov_qp0_header()
2179 cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_sriov_qp0_header()
2191 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_sriov_qp0_header()
2312 if (ah->av.eth.vlan != cpu_to_be16(0xffff)) { in build_mlx_header()
2323 sqp->ud_header.lrh.source_lid = cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_mlx_header()
2386 mlx->sched_prio = cpu_to_be16(pcp); in build_mlx_header()
2408 sqp->ud_header.eth.type = cpu_to_be16(MLX4_IB_IBOE_ETHERTYPE); in build_mlx_header()
2410 sqp->ud_header.vlan.type = cpu_to_be16(MLX4_IB_IBOE_ETHERTYPE); in build_mlx_header()
2411 sqp->ud_header.vlan.tag = cpu_to_be16(vlan | pcp); in build_mlx_header()
[all …]
/linux-4.4.14/drivers/iio/imu/
Dadis_buffer.c68 *tx++ = cpu_to_be16((chan->address + 2) << 8); in adis_update_scan_mode()
69 *tx++ = cpu_to_be16(chan->address << 8); in adis_update_scan_mode()
/linux-4.4.14/net/rds/
Dbind.c94 key = ((u64)addr << 32) | cpu_to_be16(rover); in rds_add_bound()
100 rs->rs_bound_port = cpu_to_be16(rover); in rds_add_bound()
/linux-4.4.14/arch/powerpc/kernel/
Dpaca.c38 .size = cpu_to_be16(sizeof(struct lppaca)),
40 .slb_count = cpu_to_be16(64),
Dnvram_64.c377 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in zip_oops()
378 oops_hdr->report_length = cpu_to_be16(zipped_len); in zip_oops()
424 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in nvram_pstore_write()
425 oops_hdr->report_length = cpu_to_be16(size); in nvram_pstore_write()
722 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in oops_to_nvram()
723 oops_hdr->report_length = cpu_to_be16(text_len); in oops_to_nvram()
906 phead.length = cpu_to_be16(phead.length); in nvram_write_header()
Dfadump.c151 fdm->header.dump_num_sections = cpu_to_be16(3); in init_fadump_mem_struct()
171 fdm->cpu_state_data.source_data_type = cpu_to_be16(FADUMP_CPU_STATE_DATA); in init_fadump_mem_struct()
179 fdm->hpte_region.source_data_type = cpu_to_be16(FADUMP_HPTE_REGION); in init_fadump_mem_struct()
187 fdm->rmr_region.source_data_type = cpu_to_be16(FADUMP_REAL_MODE_REGION); in init_fadump_mem_struct()
/linux-4.4.14/drivers/iio/dac/
Dad5449.c92 st->data[0] = cpu_to_be16((addr << 12) | val); in ad5449_write()
117 st->data[0] = cpu_to_be16(addr << 12); in ad5449_read()
118 st->data[1] = cpu_to_be16(AD5449_CMD_NOOP); in ad5449_read()
Dad5504.c72 st->data[0] = cpu_to_be16(AD5504_CMD_WRITE | AD5504_ADDR(addr) | in ad5504_spi_write()
87 st->data[0] = cpu_to_be16(AD5504_CMD_READ | AD5504_ADDR(addr)); in ad5504_spi_read()
Dad5446.c297 __be16 data = cpu_to_be16(val); in ad5446_write()
512 __be16 data = cpu_to_be16(val); in ad5622_write()
/linux-4.4.14/arch/arm/boot/compressed/
Dlibfdt_env.h13 #define cpu_to_fdt16(x) cpu_to_be16(x)
/linux-4.4.14/drivers/infiniband/core/
Dud_header.c249 header->lrh.packet_length = cpu_to_be16(packet_length); in ib_ud_header_init()
253 header->eth.type = cpu_to_be16(ETH_P_8021Q); in ib_ud_header_init()
258 cpu_to_be16((IB_BTH_BYTES + in ib_ud_header_init()
Dpacker.c131 case 16: *(__be16 *) (structure + offset) = cpu_to_be16(val); break; in value_write()
/linux-4.4.14/drivers/gpio/
Dgpio-viperboard.c271 gbmsg->val = cpu_to_be16(dir << offset); in vprbrd_gpiob_setdir()
272 gbmsg->mask = cpu_to_be16(0x0001 << offset); in vprbrd_gpiob_setdir()
336 gbmsg->val = cpu_to_be16(value << offset); in vprbrd_gpiob_set()
337 gbmsg->mask = cpu_to_be16(0x0001 << offset); in vprbrd_gpiob_set()
/linux-4.4.14/drivers/scsi/ibmvscsi/
Dibmvscsi.c478 evt->crq.IU_length = cpu_to_be16(sizeof(*evt->xfer_iu)); in initialize_event_pool()
602 evt_struct->crq.timeout = cpu_to_be16(timeout); in init_event_struct()
1205 login->req_buf_fmt = cpu_to_be16(SRP_BUF_FORMAT_DIRECT | in send_srp_login()
1236 cpu_to_be16(SERVER_SUPPORTS_CAP)) in capabilities_rsp()
1241 cpu_to_be16(SERVER_SUPPORTS_CAP)) in capabilities_rsp()
1292 cpu_to_be16(sizeof(hostdata->caps.migration)); in send_mad_capabilities()
1294 cpu_to_be16(SERVER_SUPPORTS_CAP); in send_mad_capabilities()
1301 cpu_to_be16(sizeof(hostdata->caps.reserve)); in send_mad_capabilities()
1303 cpu_to_be16(SERVER_SUPPORTS_CAP); in send_mad_capabilities()
1307 cpu_to_be16(sizeof(hostdata->caps)); in send_mad_capabilities()
[all …]
Dibmvfc.c810 evt->xfer_iu->mad_common.status = cpu_to_be16(IBMVFC_MAD_DRIVER_FAILED); in ibmvfc_fail_request()
1180 login_info->fcp_version = cpu_to_be16(3); in ibmvfc_set_login_info()
1181 login_info->flags = cpu_to_be16(IBMVFC_FLUSH_ON_HALT); in ibmvfc_set_login_info()
1183 login_info->flags |= cpu_to_be16(IBMVFC_CLIENT_MIGRATED); in ibmvfc_set_login_info()
1340 vfc_cmd->flags |= cpu_to_be16(IBMVFC_NO_MEM_DESC); in ibmvfc_map_sg_data()
1349 vfc_cmd->flags |= cpu_to_be16(IBMVFC_WRITE); in ibmvfc_map_sg_data()
1352 vfc_cmd->flags |= cpu_to_be16(IBMVFC_READ); in ibmvfc_map_sg_data()
1361 vfc_cmd->flags |= cpu_to_be16(IBMVFC_SCATTERLIST); in ibmvfc_map_sg_data()
1455 evt->xfer_iu->mad_common.status = cpu_to_be16(IBMVFC_MAD_CRQ_ERROR); in ibmvfc_send_event()
1728 tmf->common.length = cpu_to_be16(sizeof(*tmf)); in ibmvfc_bsg_timeout()
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dci_dpm.c336 pi->smc_powertune_table.TDC_VDDC_PkgLimit = cpu_to_be16(tdc_limit); in ci_populate_tdc_limit()
374 cpu_to_be16(rdev->pm.dpm.fan.fan_output_sensitivity); in ci_populate_fuzzy_fan()
422 pi->smc_powertune_table.BapmVddCBaseLeakageHiSidd = cpu_to_be16(hi_sidd); in ci_populate_bapm_vddc_base_leakage_sidd()
423 pi->smc_powertune_table.BapmVddCBaseLeakageLoSidd = cpu_to_be16(lo_sidd); in ci_populate_bapm_vddc_base_leakage_sidd()
451 dpm_table->PPM_PkgPwrLimit = cpu_to_be16((u16)ppm->dgpu_tdp * 256 / 1000); in ci_populate_bapm_parameters_in_dpm_table()
452 dpm_table->PPM_TemperatureLimit = cpu_to_be16((u16)ppm->tj_max * 256); in ci_populate_bapm_parameters_in_dpm_table()
454 dpm_table->PPM_PkgPwrLimit = cpu_to_be16(0); in ci_populate_bapm_parameters_in_dpm_table()
455 dpm_table->PPM_TemperatureLimit = cpu_to_be16(0); in ci_populate_bapm_parameters_in_dpm_table()
465 dpm_table->BAPMTI_R[i][j][k] = cpu_to_be16(*def1); in ci_populate_bapm_parameters_in_dpm_table()
466 dpm_table->BAPMTI_RC[i][j][k] = cpu_to_be16(*def2); in ci_populate_bapm_parameters_in_dpm_table()
[all …]
/linux-4.4.14/drivers/staging/gdm724x/
Dgdm_endian.c30 return cpu_to_be16(x); in gdm_cpu_to_dev16()
/linux-4.4.14/net/netfilter/
Dnf_conntrack_netbios_ns.c52 .tuple.src.u.udp.port = cpu_to_be16(NMBD_PORT),
Dnf_conntrack_amanda.c181 .tuple.src.u.udp.port = cpu_to_be16(10080),
190 .tuple.src.u.udp.port = cpu_to_be16(10080),
Dnf_conntrack_snmp.c59 .tuple.src.u.udp.port = cpu_to_be16(SNMP_PORT),
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Dci_dpm.c454 pi->smc_powertune_table.TDC_VDDC_PkgLimit = cpu_to_be16(tdc_limit); in ci_populate_tdc_limit()
492 cpu_to_be16(adev->pm.dpm.fan.fan_output_sensitivity); in ci_populate_fuzzy_fan()
540 pi->smc_powertune_table.BapmVddCBaseLeakageHiSidd = cpu_to_be16(hi_sidd); in ci_populate_bapm_vddc_base_leakage_sidd()
541 pi->smc_powertune_table.BapmVddCBaseLeakageLoSidd = cpu_to_be16(lo_sidd); in ci_populate_bapm_vddc_base_leakage_sidd()
569 dpm_table->PPM_PkgPwrLimit = cpu_to_be16((u16)ppm->dgpu_tdp * 256 / 1000); in ci_populate_bapm_parameters_in_dpm_table()
570 dpm_table->PPM_TemperatureLimit = cpu_to_be16((u16)ppm->tj_max * 256); in ci_populate_bapm_parameters_in_dpm_table()
572 dpm_table->PPM_PkgPwrLimit = cpu_to_be16(0); in ci_populate_bapm_parameters_in_dpm_table()
573 dpm_table->PPM_TemperatureLimit = cpu_to_be16(0); in ci_populate_bapm_parameters_in_dpm_table()
583 dpm_table->BAPMTI_R[i][j][k] = cpu_to_be16(*def1); in ci_populate_bapm_parameters_in_dpm_table()
584 dpm_table->BAPMTI_RC[i][j][k] = cpu_to_be16(*def2); in ci_populate_bapm_parameters_in_dpm_table()
[all …]
/linux-4.4.14/include/linux/unaligned/
Daccess_ok.h54 *((__be16 *)p) = cpu_to_be16(val); in put_unaligned_be16()
/linux-4.4.14/drivers/net/arcnet/
Dcapmode.c91 skb->protocol = cpu_to_be16(ETH_P_ARCNET); in rx()
218 ackskb->protocol = cpu_to_be16(ETH_P_ARCNET); in ack_tx()
Darc-rawmode.c77 skb->protocol = cpu_to_be16(ETH_P_ARCNET); in rx()
/linux-4.4.14/net/irda/
Dirmod.c49 .type = cpu_to_be16(ETH_P_IRDA),
/linux-4.4.14/drivers/staging/iio/impedance-analyzer/
Dad5933.c261 dat = cpu_to_be16(st->settling_cycles); in ad5933_setup()
269 dat = cpu_to_be16(st->freq_points); in ad5933_setup()
444 dat = cpu_to_be16(val); in ad5933_store()
452 dat = cpu_to_be16(val); in ad5933_store()
/linux-4.4.14/drivers/usb/wusbcore/
Dcrypto.c242 b0.lm = cpu_to_be16(0); /* WUSB1.0[6.5] sez l(m) is 0 */ in wusb_ccm_mac()
251 b1.la = cpu_to_be16(blen + 14); in wusb_ccm_mac()
/linux-4.4.14/fs/logfs/
Djournal.c275 if (jh->h_type != cpu_to_be16(JE_COMMIT)) in logfs_read_segment()
424 jh->h_len = cpu_to_be16(len); in __logfs_write_header()
425 jh->h_type = cpu_to_be16(type); in __logfs_write_header()
426 jh->h_datalen = cpu_to_be16(datalen); in __logfs_write_header()
661 if (jh->h_type == cpu_to_be16(JE_COMMIT)) in logfs_write_je_buf()
698 oa[fill].child_no = cpu_to_be16(child_no); in write_alias_journal()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dah.c47 ah->av.rlid = cpu_to_be16(ah_attr->dlid); in create_ib_ah()
Dqp.c781 (*in)->ctx.sq_crq_size |= cpu_to_be16(1 << 4); in create_kernel_qp()
985 in->ctx.sq_crq_size |= cpu_to_be16(ilog2(qp->sq.wqe_cnt) << 11); in create_qp_common()
987 in->ctx.sq_crq_size |= cpu_to_be16(0x8000); in create_qp_common()
1376 path->rlid = cpu_to_be16(ah->dlid); in mlx5_set_path()
1694 context->sq_crq_size |= cpu_to_be16(1 << 4); in __mlx5_ib_modify_qp()
1855 return cpu_to_be16(ALIGN(npages, 8) / 2); in get_klm_octo()
2143 inl->vld_refresh = cpu_to_be16(MLX5_BSF_INL_VALID | in mlx5_fill_inl_bsf()
2145 inl->dif_apptag = cpu_to_be16(domain->sig.dif.app_tag); in mlx5_fill_inl_bsf()
2163 cpu_to_be16(domain->sig.dif.apptag_check_mask); in mlx5_fill_inl_bsf()
2291 sblock_ctrl->num_entries = cpu_to_be16(2); in set_sig_data_segment()
[all …]
Dsrq.c182 cpu_to_be16((i + 1) & (srq->msrq.max - 1)); in create_srq_kernel()
419 next->next_wqe_index = cpu_to_be16(wqe_index); in mlx5_ib_free_srq_wqe()
Dcq.c804 cqb->ctx.c_eqn = cpu_to_be16(eqn); in mlx5_ib_create_cq()
946 in->ctx.cq_period = cpu_to_be16(cq_period); in mlx5_ib_modify_cq()
947 in->ctx.cq_max_count = cpu_to_be16(cq_count); in mlx5_ib_modify_cq()
1143 in->hdr.opmod = cpu_to_be16(MLX5_CQ_OPMOD_RESIZE); in mlx5_ib_resize_cq()
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dopal-power.c37 epow_classes = cpu_to_be16(OPAL_SYSEPOW_MAX); in detect_epow()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_actlog.c508 buffer->update_slot_nr[i] = cpu_to_be16(e->lc_index); in al_write_transaction()
518 buffer->n_updates = cpu_to_be16(i); in al_write_transaction()
520 buffer->update_slot_nr[i] = cpu_to_be16(-1); in al_write_transaction()
524 buffer->context_size = cpu_to_be16(device->act_log->nr_elements); in al_write_transaction()
525 buffer->context_start_slot_nr = cpu_to_be16(device->al_tr_cycle); in al_write_transaction()
619 al->transaction_type = cpu_to_be16(AL_TR_INITIALIZED); in drbd_initialize_al()
/linux-4.4.14/drivers/infiniband/ulp/srpt/
Dib_srpt.c303 ioui->change_id = cpu_to_be16(1); in srpt_get_iou()
331 = cpu_to_be16(DM_MAD_STATUS_INVALID_FIELD); in srpt_get_ioc()
337 = cpu_to_be16(DM_MAD_STATUS_NO_IOC); in srpt_get_ioc()
346 iocp->device_version = cpu_to_be16(sdev->dev_attr.hw_ver); in srpt_get_ioc()
349 iocp->io_class = cpu_to_be16(SRP_REV16A_IB_IO_CLASS); in srpt_get_ioc()
350 iocp->io_subclass = cpu_to_be16(SRP_IO_SUBCLASS); in srpt_get_ioc()
351 iocp->protocol = cpu_to_be16(SRP_PROTOCOL); in srpt_get_ioc()
352 iocp->protocol_version = cpu_to_be16(SRP_PROTOCOL_VERSION); in srpt_get_ioc()
353 iocp->send_queue_depth = cpu_to_be16(sdev->srq_size); in srpt_get_ioc()
380 = cpu_to_be16(DM_MAD_STATUS_INVALID_FIELD); in srpt_get_svc_entries()
[all …]
/linux-4.4.14/net/802/
Dpsnap.c55 .type = cpu_to_be16(ETH_P_SNAP), in snap_rcv()
/linux-4.4.14/arch/arm64/crypto/
Daes-ce-ccm-glue.c117 ltag.l = cpu_to_be16(len); in ccm_calculate_auth_mac()
120 ltag.l = cpu_to_be16(0xfffe); in ccm_calculate_auth_mac()
/linux-4.4.14/drivers/crypto/nx/
Dnx-842.c243 g->padding = cpu_to_be16(dskip); in compress()
297 hdr->magic = cpu_to_be16(NX842_CRYPTO_MAGIC); in nx842_crypto_compress()
325 hdr->ignore = cpu_to_be16(ignore); in nx842_crypto_compress()
/linux-4.4.14/drivers/net/usb/
Dsierra_net.c197 return skb->protocol == cpu_to_be16(ETH_P_IP); in is_ip()
342 cpu_to_be16(SIERRA_NET_HIP_EXT_IP_OUT_ID); in sierra_net_set_ctx_index()
361 if (lsi->length != cpu_to_be16(SIERRA_NET_LSI_UMTS_STATUS_LEN)) { in sierra_net_parse_lsi()
706 eth->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_bind()
/linux-4.4.14/drivers/nfc/
Dport100.c525 frame->start_frame = cpu_to_be16(PORT100_FRAME_SOF); in port100_tx_frame_init()
526 frame->extended_frame = cpu_to_be16(PORT100_FRAME_EXT); in port100_tx_frame_init()
556 if (frame->start_frame != cpu_to_be16(PORT100_FRAME_SOF) || in port100_rx_frame_is_valid()
557 frame->extended_frame != cpu_to_be16(PORT100_FRAME_EXT)) in port100_rx_frame_is_valid()
574 return (frame->start_frame == cpu_to_be16(PORT100_FRAME_SOF) && in port100_rx_frame_is_ack()
575 frame->ack_frame == cpu_to_be16(PORT100_FRAME_ACK)); in port100_rx_frame_is_ack()
/linux-4.4.14/fs/ufs/
Dswab.h94 return (__force __fs16)cpu_to_be16(n); in cpu_to_fs16()
/linux-4.4.14/fs/jbd2/
Drecovery.c218 if (!(tag->t_flags & cpu_to_be16(JBD2_FLAG_SAME_UUID))) in count_tags()
221 if (tag->t_flags & cpu_to_be16(JBD2_FLAG_LAST_TAG)) in count_tags()
417 return tag->t_checksum == cpu_to_be16(csum32); in jbd2_block_tag_csum_verify()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dport.c520 *(__be16 *) (&inbuf[16]) = cpu_to_be16(0x0015); in mlx4_get_port_ib_caps()
767 gen_context->mtu = cpu_to_be16(master->max_mtu[port]); in mlx4_common_set_port()
949 ((__be16 *) mailbox->buf)[20] = cpu_to_be16(pkey_tbl_sz); in mlx4_SET_PORT()
984 context->mtu = cpu_to_be16(mtu); in mlx4_SET_PORT_general()
1392 inmad->attr_id = cpu_to_be16(0xFF60); /* Module Info */ in mlx4_get_module_info()
1408 cable_info->dev_mem_address = cpu_to_be16(offset); in mlx4_get_module_info()
1411 cable_info->size = cpu_to_be16(size); in mlx4_get_module_info()
Den_rx.c734 if (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPV4)) in check_csum()
737 else if (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPV6)) in check_csum()
845 if (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_TCP | in mlx4_en_process_rx_cq()
847 if ((cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPOK)) && in mlx4_en_process_rx_cq()
848 cqe->checksum == cpu_to_be16(0xffff)) { in mlx4_en_process_rx_cq()
857 (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPV4 | in mlx4_en_process_rx_cq()
Dcq.c175 cq_context->cq_max_count = cpu_to_be16(count); in mlx4_cq_modify()
176 cq_context->cq_period = cpu_to_be16(period); in mlx4_cq_modify()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_av.c203 av->dlid = cpu_to_be16(ah_attr->dlid); in mthca_create_ah()
274 header->lrh.source_lid = cpu_to_be16(ah->av->g_slid & 0x7f); in mthca_read_ah()
/linux-4.4.14/drivers/staging/fwserial/
Dfwserial.c1651 pkt->hdr.code = cpu_to_be16(FWSC_VIRT_CABLE_PLUG); in fill_plug_req()
1652 pkt->hdr.len = cpu_to_be16(mgmt_pkt_expected_len(pkt->hdr.code)); in fill_plug_req()
1659 pkt->hdr.code = cpu_to_be16(FWSC_VIRT_CABLE_PLUG_RSP); in fill_plug_rsp_ok()
1660 pkt->hdr.len = cpu_to_be16(mgmt_pkt_expected_len(pkt->hdr.code)); in fill_plug_rsp_ok()
1666 pkt->hdr.code = cpu_to_be16(FWSC_VIRT_CABLE_PLUG_RSP | FWSC_RSP_NACK); in fill_plug_rsp_nack()
1667 pkt->hdr.len = cpu_to_be16(mgmt_pkt_expected_len(pkt->hdr.code)); in fill_plug_rsp_nack()
1672 pkt->hdr.code = cpu_to_be16(FWSC_VIRT_CABLE_UNPLUG); in fill_unplug_req()
1673 pkt->hdr.len = cpu_to_be16(mgmt_pkt_expected_len(pkt->hdr.code)); in fill_unplug_req()
1678 pkt->hdr.code = cpu_to_be16(FWSC_VIRT_CABLE_UNPLUG_RSP | FWSC_RSP_NACK); in fill_unplug_rsp_nack()
1679 pkt->hdr.len = cpu_to_be16(mgmt_pkt_expected_len(pkt->hdr.code)); in fill_unplug_rsp_nack()
[all …]
/linux-4.4.14/fs/qnx6/
Dqnx6.h122 return (__force __fs16)cpu_to_be16(n); in cpu_to_fs16()
/linux-4.4.14/arch/sh/kernel/
Diomap.c58 __raw_writew(cpu_to_be16(val), addr); in iowrite16be()
/linux-4.4.14/drivers/scsi/aic94xx/
Daic94xx_tmf.c460 scb->abort_task.ssp_frame.tptt = cpu_to_be16(0xFFFF); in asd_abort_task()
464 scb->abort_task.ssp_task.tag = cpu_to_be16(0xFFFF); in asd_abort_task()
609 scb->ssp_tmf.ssp_frame.tptt = cpu_to_be16(0xFFFF); in asd_initiate_ssp_tmf()
/linux-4.4.14/arch/powerpc/perf/
Dhv-24x7.c1101 req->data_size = cpu_to_be16(8); in add_event_to_24x7_request()
1103 req->starting_lpar_ix = cpu_to_be16(event_get_lpar(event)), in add_event_to_24x7_request()
1104 req->max_num_lpars = cpu_to_be16(1); in add_event_to_24x7_request()
1105 req->starting_ix = cpu_to_be16(idx); in add_event_to_24x7_request()
1106 req->max_ix = cpu_to_be16(1); in add_event_to_24x7_request()
/linux-4.4.14/drivers/hid/
Dhid-cp2112.c363 report.length = cpu_to_be16(size); in cp2112_read()
397 report->length = cpu_to_be16(length); in cp2112_read_req()
412 report->length = cpu_to_be16(length); in cp2112_write_read_req()
462 report->length = cpu_to_be16(read_length); in cp2112_i2c_write_read_req()
1059 config.retry_time = cpu_to_be16(1); in cp2112_probe()
/linux-4.4.14/block/
Dt10-pi.c36 return cpu_to_be16(crc_t10dif(data, len)); in t10_pi_crc_fn()
/linux-4.4.14/drivers/iio/common/ms_sensors/
Dms_sensors_i2c.c209 send_buf = cpu_to_be16(MS_SENSORS_SERIAL_READ_MSB); in ms_sensors_read_serial()
231 send_buf = cpu_to_be16(MS_SENSORS_SERIAL_READ_LSB); in ms_sensors_read_serial()
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c1800 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_104BIT); in gelic_wl_do_wep_setup()
1803 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_40BIT); in gelic_wl_do_wep_setup()
1807 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_NONE); in gelic_wl_do_wep_setup()
1891 wpa->security = cpu_to_be16(security); in gelic_wl_do_wpa_setup()
1894 wpa->psk_type = cpu_to_be16(wl->psk_type); in gelic_wl_do_wpa_setup()
1943 common->bss_type = cpu_to_be16(GELIC_EURUS_BSS_INFRA); in gelic_wl_associate_bss()
1944 common->op_mode = cpu_to_be16(GELIC_EURUS_OPMODE_11BG); in gelic_wl_associate_bss()
1946 common->scan_index = cpu_to_be16(bss->eurus_index); in gelic_wl_associate_bss()
1949 common->auth_method = cpu_to_be16(GELIC_EURUS_AUTH_OPEN); in gelic_wl_associate_bss()
1952 common->auth_method = cpu_to_be16(GELIC_EURUS_AUTH_SHARED); in gelic_wl_associate_bss()
/linux-4.4.14/drivers/media/rc/
Dredrat3.c784 irdata->header.length = cpu_to_be16(sendbuf_len - in redrat3_transmit_ir()
786 irdata->header.transfer_type = cpu_to_be16(RR3_MOD_SIGNAL_OUT); in redrat3_transmit_ir()
788 irdata->mod_freq_count = cpu_to_be16(mod_freq_to_val(rr3->carrier)); in redrat3_transmit_ir()
790 irdata->sig_size = cpu_to_be16(count + RR3_TX_TRAILER_LEN); in redrat3_transmit_ir()
/linux-4.4.14/arch/mips/lib/
Diomap.c79 __raw_writew(cpu_to_be16(val), addr); in iowrite16be()
/linux-4.4.14/drivers/iio/gyro/
Dadis16080.c66 st->buf = cpu_to_be16(addr | ADIS16080_DIN_WRITE); in adis16080_read_sample()
/linux-4.4.14/arch/arc/include/asm/
Dio.h40 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force u16)cpu_to_be16(v), p); })
/linux-4.4.14/drivers/net/wimax/i2400m/
Dnetdev.c514 cpu_to_be16(ETH_P_IP)); in i2400m_net_rx()
567 cpu_to_be16(ETH_P_IP)); in i2400m_net_erx()
/linux-4.4.14/drivers/iio/accel/
Dmma9551_core.c333 __be16 v = cpu_to_be16(val); in mma9551_write_config_word()
477 be_buf[i] = cpu_to_be16(buf[i]); in mma9551_write_config_words()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dtxrx.c907 (skb->protocol != cpu_to_be16(ETH_P_PAE))) in wil_find_tx_ucast()
950 (skb->protocol != cpu_to_be16(ETH_P_PAE))) in wil_find_tx_vring_sta()
986 (skb->protocol != cpu_to_be16(ETH_P_PAE))) in wil_find_tx_bcast_1()
1021 (skb->protocol != cpu_to_be16(ETH_P_PAE))) in wil_find_tx_bcast_2()
1048 (skb->protocol != cpu_to_be16(ETH_P_PAE))) in wil_find_tx_bcast_2()
1157 case cpu_to_be16(ETH_P_IP): in wil_tx_desc_offload_setup()
1161 case cpu_to_be16(ETH_P_IPV6): in wil_tx_desc_offload_setup()
/linux-4.4.14/drivers/net/ppp/
Dpppoe.c534 .type = cpu_to_be16(ETH_P_PPP_SES),
539 .type = cpu_to_be16(ETH_P_PPP_DISC),
896 skb->protocol = cpu_to_be16(ETH_P_PPP_SES); in pppoe_sendmsg()
964 skb->protocol = cpu_to_be16(ETH_P_PPP_SES); in __pppoe_xmit()
/linux-4.4.14/drivers/mtd/maps/
Dixp4xx.c66 __raw_writew(cpu_to_be16(d), (void __iomem *)((unsigned long)addr ^ 0x2)); in flash_write16()
/linux-4.4.14/arch/m32r/include/asm/
Dio.h188 #define iowrite16be(v, addr) writew(cpu_to_be16(v), (addr))
/linux-4.4.14/arch/arm/include/asm/
Dkvm_emulate.h242 return cpu_to_be16(data & 0xffff); in vcpu_data_host_to_guest()
/linux-4.4.14/drivers/ide/
Dide-floppy.c186 put_unaligned(cpu_to_be16(length), (u16 *) &pc->c[7]); in ide_floppy_create_mode_sense_cmd()
203 put_unaligned(cpu_to_be16(blocks), (unsigned short *)&pc->c[7]); in idefloppy_create_rw_cmd()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dd3.c403 pkt->eth.h_proto = cpu_to_be16(ETH_P_IP), in iwl_mvm_build_tcp_packet()
417 pkt->tcp.source = cpu_to_be16(tcp->src_port); in iwl_mvm_build_tcp_packet()
418 pkt->tcp.dest = cpu_to_be16(tcp->dst_port); in iwl_mvm_build_tcp_packet()
421 pkt->tcp.window = cpu_to_be16(65000); in iwl_mvm_build_tcp_packet()
430 pkt->tcp.source = cpu_to_be16(tcp->dst_port); in iwl_mvm_build_tcp_packet()
431 pkt->tcp.dest = cpu_to_be16(tcp->src_port); in iwl_mvm_build_tcp_packet()
475 pkt->ip.tot_len = cpu_to_be16(ip_tot_len); in iwl_mvm_build_tcp_packet()
/linux-4.4.14/arch/arm64/include/asm/
Dkvm_emulate.h281 return cpu_to_be16(data & 0xffff); in vcpu_data_host_to_guest()
Dio.h182 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); })
/linux-4.4.14/drivers/gpu/drm/panel/
Dpanel-lg-lg4573.c45 u16 temp = cpu_to_be16(data); in lg4573_spi_write_u16()
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_transfer.c166 *(uint16_t *)cmd = cpu_to_be16(pixel_val16); in udl_compress_hline16()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dfweh.h270 if (skb->protocol != cpu_to_be16(ETH_P_LINK_CTL)) in brcmf_fweh_process_skb()
/linux-4.4.14/net/sched/
Dact_csum.c514 case cpu_to_be16(ETH_P_IP): in tcf_csum()
518 case cpu_to_be16(ETH_P_IPV6): in tcf_csum()
/linux-4.4.14/fs/affs/
Dinode.c201 tail->uid = cpu_to_be16(uid); in affs_write_inode()
203 tail->gid = cpu_to_be16(gid); in affs_write_inode()
/linux-4.4.14/drivers/usb/atm/
Dueagle-atm.c1025 bi.wHdr = cpu_to_be16(UEA_BIHDR); in __uea_load_page_e4()
1028 bi.wReserved = cpu_to_be16(UEA_RESERVED); in __uea_load_page_e4()
1107 bi.wHdr = cpu_to_be16(UEA_BIHDR); in uea_load_page_e4()
1110 bi.wReserved = cpu_to_be16(UEA_RESERVED); in uea_load_page_e4()
1234 cmv.wFunction = cpu_to_be16(function); in uea_cmv_e4()
1235 cmv.wGroup = cpu_to_be16(group); in uea_cmv_e4()
1236 cmv.wAddress = cpu_to_be16(address); in uea_cmv_e4()
1237 cmv.wOffset = cpu_to_be16(offset); in uea_cmv_e4()
/linux-4.4.14/fs/sysv/
Dsysv.h234 return (__force __fs16)cpu_to_be16(n); in cpu_to_fs16()
/linux-4.4.14/drivers/net/ethernet/
Ddnet.c92 *((__be16 *)addr) = cpu_to_be16(tmp); in dnet_get_hwaddr()
94 *((__be16 *)(addr + 2)) = cpu_to_be16(tmp); in dnet_get_hwaddr()
96 *((__be16 *)(addr + 4)) = cpu_to_be16(tmp); in dnet_get_hwaddr()
/linux-4.4.14/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c557 iu->tag = cpu_to_be16(cmd->tag); in uasp_prepare_status()
562 iu->len = cpu_to_be16(se_cmd->scsi_sense_length); in uasp_prepare_status()
627 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_status_response()
644 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_read_response()
660 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_read_response()
689 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_write_request()
703 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_write_request()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c4482 cmd.niqid = cpu_to_be16(nq); in t4_config_rss_range()
4483 cmd.startidx = cpu_to_be16(start); in t4_config_rss_range()
5519 cpu_to_be16(FW_FILTER_WR_RX_RPL_IQ_V(qid)); in t4_mk_filtdelwr()
5572 c.u.mdio.paddr_mmd = cpu_to_be16(FW_LDST_CMD_PADDR_V(phy_addr) | in t4_mdio_rd()
5574 c.u.mdio.raddr = cpu_to_be16(reg); in t4_mdio_rd()
5605 c.u.mdio.paddr_mmd = cpu_to_be16(FW_LDST_CMD_PADDR_V(phy_addr) | in t4_mdio_wr()
5607 c.u.mdio.raddr = cpu_to_be16(reg); in t4_mdio_wr()
5608 c.u.mdio.rval = cpu_to_be16(val); in t4_mdio_wr()
6463 c.type_viid = cpu_to_be16(FW_VI_CMD_VIID_V(viid)); in t4_free_vi()
6569 cpu_to_be16(FW_VI_MAC_CMD_VALID_F | in t4_alloc_mac_filt()
[all …]
/linux-4.4.14/lib/
Dtest_printf.c243 sa.sin_port = cpu_to_be16(12345); in ip4()

123