Home
last modified time | relevance | path

Searched refs:cpu_to_be16 (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/linux/include/rdma/
H A Dib_pma.h16 #define IB_PMA_CLASS_CAP_ALLPORTSELECT cpu_to_be16(1 << 8)
17 #define IB_PMA_CLASS_CAP_EXT_WIDTH cpu_to_be16(1 << 9)
18 #define IB_PMA_CLASS_CAP_EXT_WIDTH_NOIETF cpu_to_be16(1 << 10)
19 #define IB_PMA_CLASS_CAP_XMIT_WAIT cpu_to_be16(1 << 12)
21 #define IB_PMA_CLASS_PORT_INFO cpu_to_be16(0x0001)
22 #define IB_PMA_PORT_SAMPLES_CONTROL cpu_to_be16(0x0010)
23 #define IB_PMA_PORT_SAMPLES_RESULT cpu_to_be16(0x0011)
24 #define IB_PMA_PORT_COUNTERS cpu_to_be16(0x0012)
25 #define IB_PMA_PORT_COUNTERS_EXT cpu_to_be16(0x001D)
26 #define IB_PMA_PORT_SAMPLES_RESULT_EXT cpu_to_be16(0x001E)
[all …]
H A Dib_smi.h39 #define IB_SMP_DIRECTION cpu_to_be16(0x8000)
42 #define IB_SMP_ATTR_NOTICE cpu_to_be16(0x0002)
43 #define IB_SMP_ATTR_NODE_DESC cpu_to_be16(0x0010)
44 #define IB_SMP_ATTR_NODE_INFO cpu_to_be16(0x0011)
45 #define IB_SMP_ATTR_SWITCH_INFO cpu_to_be16(0x0012)
46 #define IB_SMP_ATTR_GUID_INFO cpu_to_be16(0x0014)
47 #define IB_SMP_ATTR_PORT_INFO cpu_to_be16(0x0015)
48 #define IB_SMP_ATTR_PKEY_TABLE cpu_to_be16(0x0016)
49 #define IB_SMP_ATTR_SL_TO_VL_TABLE cpu_to_be16(0x0017)
50 #define IB_SMP_ATTR_VL_ARB_TABLE cpu_to_be16(0x0018)
[all …]
H A Dopa_smi.h53 #define OPA_ATTRIB_ID_NODE_DESCRIPTION cpu_to_be16(0x0010)
54 #define OPA_ATTRIB_ID_NODE_INFO cpu_to_be16(0x0011)
55 #define OPA_ATTRIB_ID_PORT_INFO cpu_to_be16(0x0015)
56 #define OPA_ATTRIB_ID_PARTITION_TABLE cpu_to_be16(0x0016)
57 #define OPA_ATTRIB_ID_SL_TO_SC_MAP cpu_to_be16(0x0017)
58 #define OPA_ATTRIB_ID_VL_ARBITRATION cpu_to_be16(0x0018)
59 #define OPA_ATTRIB_ID_SM_INFO cpu_to_be16(0x0020)
60 #define OPA_ATTRIB_ID_CABLE_INFO cpu_to_be16(0x0032)
61 #define OPA_ATTRIB_ID_AGGREGATE cpu_to_be16(0x0080)
62 #define OPA_ATTRIB_ID_SC_TO_SL_MAP cpu_to_be16(0x0082)
[all …]
H A Dib_cm.h261 #define CM_REQ_ATTR_ID cpu_to_be16(0x0010)
262 #define CM_MRA_ATTR_ID cpu_to_be16(0x0011)
263 #define CM_REJ_ATTR_ID cpu_to_be16(0x0012)
264 #define CM_REP_ATTR_ID cpu_to_be16(0x0013)
265 #define CM_RTU_ATTR_ID cpu_to_be16(0x0014)
266 #define CM_DREQ_ATTR_ID cpu_to_be16(0x0015)
267 #define CM_DREP_ATTR_ID cpu_to_be16(0x0016)
268 #define CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017)
269 #define CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018)
270 #define CM_LAP_ATTR_ID cpu_to_be16(0x0019)
[all …]
/linux/include/linux/
H A Dsctp.h163 SCTP_PARAM_HEARTBEAT_INFO = cpu_to_be16(1),
165 SCTP_PARAM_IPV4_ADDRESS = cpu_to_be16(5),
166 SCTP_PARAM_IPV6_ADDRESS = cpu_to_be16(6),
167 SCTP_PARAM_STATE_COOKIE = cpu_to_be16(7),
168 SCTP_PARAM_UNRECOGNIZED_PARAMETERS = cpu_to_be16(8),
169 SCTP_PARAM_COOKIE_PRESERVATIVE = cpu_to_be16(9),
170 SCTP_PARAM_HOST_NAME_ADDRESS = cpu_to_be16(11),
171 SCTP_PARAM_SUPPORTED_ADDRESS_TYPES = cpu_to_be16(12),
172 SCTP_PARAM_ECN_CAPABLE = cpu_to_be16(0x8000),
175 SCTP_PARAM_RANDOM = cpu_to_be16(0x8002),
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Dopa_compat.h16 #define OPA_ATTRIB_ID_CONGESTION_INFO cpu_to_be16(0x008b)
17 #define OPA_ATTRIB_ID_HFI_CONGESTION_LOG cpu_to_be16(0x008f)
18 #define OPA_ATTRIB_ID_HFI_CONGESTION_SETTING cpu_to_be16(0x0090)
19 #define OPA_ATTRIB_ID_CONGESTION_CONTROL_TABLE cpu_to_be16(0x0091)
22 #define OPA_PM_ATTRIB_ID_PORT_STATUS cpu_to_be16(0x0040)
23 #define OPA_PM_ATTRIB_ID_CLEAR_PORT_STATUS cpu_to_be16(0x0041)
24 #define OPA_PM_ATTRIB_ID_DATA_PORT_COUNTERS cpu_to_be16(0x0042)
25 #define OPA_PM_ATTRIB_ID_ERROR_PORT_COUNTERS cpu_to_be16(0x0043)
26 #define OPA_PM_ATTRIB_ID_ERROR_INFO cpu_to_be16(0x0044)
29 #define OPA_PM_STATUS_REQUEST_TOO_LARGE cpu_to_be16(0x100)
H A Dmad.h17 #define OPA_TRAP_GID_NOW_IN_SERVICE cpu_to_be16(64)
18 #define OPA_TRAP_GID_OUT_OF_SERVICE cpu_to_be16(65)
19 #define OPA_TRAP_ADD_MULTICAST_GROUP cpu_to_be16(66)
20 #define OPA_TRAL_DEL_MULTICAST_GROUP cpu_to_be16(67)
21 #define OPA_TRAP_UNPATH cpu_to_be16(68)
22 #define OPA_TRAP_REPATH cpu_to_be16(69)
23 #define OPA_TRAP_PORT_CHANGE_STATE cpu_to_be16(128)
24 #define OPA_TRAP_LINK_INTEGRITY cpu_to_be16(129)
25 #define OPA_TRAP_EXCESSIVE_BUFFER_OVERRUN cpu_to_be16(130)
26 #define OPA_TRAP_FLOW_WATCHDOG cpu_to_be16(131)
[all …]
/linux/drivers/infiniband/sw/siw/
H A Diwarp.h31 MPA_RR_FLAG_MARKERS = cpu_to_be16(0x8000),
32 MPA_RR_FLAG_CRC = cpu_to_be16(0x4000),
33 MPA_RR_FLAG_REJECT = cpu_to_be16(0x2000),
34 MPA_RR_FLAG_ENHANCED = cpu_to_be16(0x1000),
35 MPA_RR_FLAG_GSO_EXP = cpu_to_be16(0x0800),
36 MPA_RR_MASK_REVISION = cpu_to_be16(0x00ff)
50 (cpu_to_be16(rev) & MPA_RR_MASK_REVISION); in __mpa_rr_set_revision()
61 MPA_V2_PEER_TO_PEER = cpu_to_be16(0x8000),
62 MPA_V2_ZERO_LENGTH_RTR = cpu_to_be16(0x4000),
63 MPA_V2_RDMA_WRITE_RTR = cpu_to_be16(0x8000),
[all …]
H A Dsiw_qp.c38 cpu_to_be16(DDP_VERSION << 8) |
39 cpu_to_be16(RDMAP_VERSION << 6) |
40 cpu_to_be16(RDMAP_RDMA_WRITE),
45 .ctrl.ddp_rdmap_ctrl = DDP_FLAG_LAST | cpu_to_be16(DDP_VERSION << 8) |
46 cpu_to_be16(RDMAP_VERSION << 6) |
47 cpu_to_be16(RDMAP_RDMA_READ_REQ),
53 cpu_to_be16(DDP_VERSION << 8) |
54 cpu_to_be16(RDMAP_VERSION << 6) |
55 cpu_to_be16(RDMAP_RDMA_READ_RESP),
60 .ctrl.ddp_rdmap_ctrl = DDP_FLAG_LAST | cpu_to_be16(DDP_VERSION << 8) |
[all …]
/linux/drivers/net/ethernet/fungible/funcore/
H A Dfun_hci.h41 .op = (_op), .len8 = (_len8), .flags = cpu_to_be16(_flags), \
42 .suboff8 = (_suboff8), .cid = cpu_to_be16(_cid), \
159 .subop = (_subop), .flags = cpu_to_be16(_flags), \
259 .subop = (_subop), .flags = cpu_to_be16(_flags), \
262 .nentries = cpu_to_be16(_nentries), \
264 .tailroom = cpu_to_be16(_tailroom), .headroom = _headroom, \
268 .intid = cpu_to_be16(_intid), \
271 .tph_cpuid = cpu_to_be16(_tph_cpuid), \
276 .subop = (_subop), .flags = cpu_to_be16(_flags), \
277 .id = cpu_to_be32(_id), .headroom = cpu_to_be16(_headroom), \
[all …]
/linux/arch/um/drivers/
H A Dvector_user.h37 #define GRE_MODE_CHECKSUM cpu_to_be16(8 << 12) /* checksum */
38 #define GRE_MODE_RESERVED cpu_to_be16(4 << 12) /* unused */
39 #define GRE_MODE_KEY cpu_to_be16(2 << 12) /* KEY present */
40 #define GRE_MODE_SEQUENCE cpu_to_be16(1 << 12) /* sequence */
42 #define GRE_IRB cpu_to_be16(0x6558)
/linux/drivers/infiniband/hw/erdma/
H A Derdma_cm.h36 MPA_RR_FLAG_MARKERS = cpu_to_be16(0x8000),
37 MPA_RR_FLAG_CRC = cpu_to_be16(0x4000),
38 MPA_RR_FLAG_REJECT = cpu_to_be16(0x2000),
39 MPA_RR_RESERVED = cpu_to_be16(0x1f00),
40 MPA_RR_MASK_REVISION = cpu_to_be16(0x00ff)
/linux/fs/xfs/
H A Dxfs_attr_inactive.c190 case cpu_to_be16(XFS_DA_NODE_MAGIC): in xfs_attr3_node_inactive()
191 case cpu_to_be16(XFS_DA3_NODE_MAGIC): in xfs_attr3_node_inactive()
195 case cpu_to_be16(XFS_ATTR_LEAF_MAGIC): in xfs_attr3_node_inactive()
196 case cpu_to_be16(XFS_ATTR3_LEAF_MAGIC): in xfs_attr3_node_inactive()
283 case cpu_to_be16(XFS_DA_NODE_MAGIC): in xfs_attr3_root_inactive()
284 case cpu_to_be16(XFS_DA3_NODE_MAGIC): in xfs_attr3_root_inactive()
294 case cpu_to_be16(XFS_ATTR_LEAF_MAGIC): in xfs_attr3_root_inactive()
295 case cpu_to_be16(XFS_ATTR3_LEAF_MAGIC): in xfs_attr3_root_inactive()
/linux/fs/xfs/libxfs/
H A Dxfs_dir2_data.c600 new.offset = cpu_to_be16((char *)dup - (char *)hdr); in xfs_dir2_data_freeinsert()
768 bf[0].offset = cpu_to_be16(geo->data_entry_offset); in xfs_dir3_data_init()
769 bf[0].length = cpu_to_be16(geo->blksize - geo->data_entry_offset); in xfs_dir3_data_init()
775 dup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir3_data_init()
777 *xfs_dir2_data_unused_tag_p(dup) = cpu_to_be16((char *)dup - (char *)hdr); in xfs_dir3_data_init()
942 cpu_to_be16((char *)prevdup - (char *)hdr); in xfs_dir2_data_make_free()
977 cpu_to_be16((char *)prevdup - (char *)hdr); in xfs_dir2_data_make_free()
1002 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_data_make_free()
1003 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length)); in xfs_dir2_data_make_free()
1005 cpu_to_be16((char *)newdup - (char *)hdr); in xfs_dir2_data_make_free()
[all …]
H A Dxfs_dquot_buf.c62 if (ddq->d_magic != cpu_to_be16(XFS_DQUOT_MAGIC)) in xfs_dquot_verify()
135 dqb->dd_diskdq.d_magic = cpu_to_be16(XFS_DQUOT_MAGIC); in xfs_dqblk_repair()
285 .magic16 = { cpu_to_be16(XFS_DQUOT_MAGIC),
286 cpu_to_be16(XFS_DQUOT_MAGIC) },
294 .magic16 = { cpu_to_be16(XFS_DQUOT_MAGIC),
295 cpu_to_be16(XFS_DQUOT_MAGIC) },
/linux/drivers/media/test-drivers/vidtv/
H A Dvidtv_pes.c103 pts_dts.pts2 = cpu_to_be16(((args->pts & mask2) >> 14) | 0x1); in vidtv_pes_write_pts_dts()
104 pts_dts.pts3 = cpu_to_be16(((args->pts & mask3) << 1) | 0x1); in vidtv_pes_write_pts_dts()
107 pts_dts.dts2 = cpu_to_be16(((args->dts & mask2) >> 14) | 0x1); in vidtv_pes_write_pts_dts()
108 pts_dts.dts3 = cpu_to_be16(((args->dts & mask3) << 1) | 0x1); in vidtv_pes_write_pts_dts()
115 pts.pts2 = cpu_to_be16(((args->pts & mask2) >> 14) | 0x1); in vidtv_pes_write_pts_dts()
116 pts.pts3 = cpu_to_be16(((args->pts & mask3) << 1) | 0x1); in vidtv_pes_write_pts_dts()
144 pes_header.length = cpu_to_be16(vidtv_pes_op_get_len(args->send_pts, in vidtv_pes_write_h()
153 pes_optional.bitfield = cpu_to_be16(pes_opt_bitfield); in vidtv_pes_write_h()
281 ts_header.bitfield = cpu_to_be16((payload_start << 14) | args.pid); in vidtv_pes_write_ts_h()
/linux/drivers/scsi/bfa/
H A Dbfa_fcbuild.c93 plogi_tmpl.csp.conseq = cpu_to_be16(0x00FF); in fcbuild_init()
94 plogi_tmpl.csp.ro_bitmap = cpu_to_be16(0x0002); in fcbuild_init()
107 prli_tmpl.pagebytes = cpu_to_be16(0x0014); in fcbuild_init()
143 fchs->ox_id = cpu_to_be16(ox_id); in fc_gs_fchdr_build()
173 fchs->ox_id = cpu_to_be16(ox_id); in fc_els_req_build()
213 plogi->csp.rxsz = plogi->class3.rxsz = cpu_to_be16(pdu_size); in fc_plogi_x_build()
214 plogi->csp.bbcred = cpu_to_be16(bb_cr); in fc_plogi_x_build()
234 flogi->class3.rxsz = cpu_to_be16(pdu_size); in fc_flogi_acc_build()
235 flogi->csp.rxsz = cpu_to_be16(bbscn_rxsz); /* bb_scn/rxsz */ in fc_flogi_acc_build()
239 flogi->csp.bbcred = cpu_to_be16(local_bb_credits); in fc_flogi_acc_build()
[all …]
/linux/drivers/staging/iio/frequency/
H A Dad9834.c123 st->freq_data[0] = cpu_to_be16(addr | (regval & in ad9834_write_frequency()
125 st->freq_data[1] = cpu_to_be16(addr | ((regval >> in ad9834_write_frequency()
137 st->data = cpu_to_be16(addr | phase); in ad9834_write_phase()
178 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
186 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
200 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
209 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
271 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_store_wavetype()
441 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_probe()
H A Dad9832.c144 st->freq_data[i] = cpu_to_be16(FIELD_PREP(AD9832_CMD_MSK, freq_cmd) | in ad9832_write_frequency()
166 st->phase_data[i] = cpu_to_be16(FIELD_PREP(AD9832_CMD_MSK, phase_cmd) | in ad9832_write_phase()
203 st->data = cpu_to_be16(FIELD_PREP(AD9832_CMD_MSK, AD9832_CMD_SYNCSELSRC) | in ad9832_write()
215 st->data = cpu_to_be16(FIELD_PREP(AD9832_CMD_MSK, AD9832_CMD_FPSELECT) | in ad9832_write()
228 st->data = cpu_to_be16(FIELD_PREP(AD9832_CMD_MSK, AD9832_CMD_FPSELECT) | in ad9832_write()
238 st->data = cpu_to_be16(FIELD_PREP(AD9832_CMD_MSK, AD9832_CMD_SLEEPRESCLR) | in ad9832_write()
364 st->data = cpu_to_be16(FIELD_PREP(AD9832_CMD_MSK, AD9832_CMD_SLEEPRESCLR) | in ad9832_probe()
/linux/drivers/net/wan/
H A Dhdlc_cisco.c105 data->rel = cpu_to_be16(0xFFFF); in cisco_keepalive_send()
123 return cpu_to_be16(ETH_P_HDLC); in cisco_type_trans()
127 return cpu_to_be16(ETH_P_HDLC); in cisco_type_trans()
130 case cpu_to_be16(ETH_P_IP): in cisco_type_trans()
131 case cpu_to_be16(ETH_P_IPX): in cisco_type_trans()
132 case cpu_to_be16(ETH_P_IPV6): in cisco_type_trans()
136 return cpu_to_be16(ETH_P_HDLC); in cisco_type_trans()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c46 ext->tci |= cpu_to_be16((key_tci & msk_tci)); in nfp_flower_compile_tci()
47 msk->tci |= cpu_to_be16(msk_tci); in nfp_flower_compile_tci()
163 if (match.key->n_proto == cpu_to_be16(ETH_P_MPLS_UC) || in nfp_flower_compile_mpls()
164 match.key->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) { in nfp_flower_compile_mpls()
305 ext->outer_tci |= cpu_to_be16((key_tci & msk_tci)); in nfp_flower_fill_vlan()
307 msk->outer_tci |= cpu_to_be16(msk_tci); in nfp_flower_fill_vlan()
310 ext->inner_tci |= cpu_to_be16((key_tci & msk_tci)); in nfp_flower_fill_vlan()
312 msk->inner_tci |= cpu_to_be16(msk_tci); in nfp_flower_fill_vlan()
481 *flags = cpu_to_be16(NFP_FL_GRE_FLAG_KEY); in nfp_flower_compile_tun_gre_key()
482 *flags_msk = cpu_to_be16(NFP_FL_GRE_FLAG_KEY); in nfp_flower_compile_tun_gre_key()
[all …]
/linux/drivers/input/misc/
H A Dad714x-i2c.c21 chip->xfer_buf[0] = cpu_to_be16(reg); in ad714x_i2c_write()
22 chip->xfer_buf[1] = cpu_to_be16(data); in ad714x_i2c_write()
41 chip->xfer_buf[0] = cpu_to_be16(reg); in ad714x_i2c_read()
H A Dad714x-spi.c30 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX | in ad714x_spi_read()
58 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX | reg); in ad714x_spi_write()
59 chip->xfer_buf[1] = cpu_to_be16(data); in ad714x_spi_write()
/linux/drivers/iio/dac/
H A Dad5592r.c36 st->spi_msg = cpu_to_be16(BIT(15) | (chan << 12) | value); in ad5592r_write_dac()
46 st->spi_msg = cpu_to_be16((AD5592R_REG_ADC_SEQ << 11) | BIT(chan)); in ad5592r_read_adc()
73 st->spi_msg = cpu_to_be16((reg << 11) | value); in ad5592r_reg_write()
83 st->spi_msg = cpu_to_be16((AD5592R_REG_LDAC << 11) | in ad5592r_reg_read()
/linux/fs/gfs2/
H A Ddir.h72 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent()
73 dent->de_name_len = cpu_to_be16(name->len); in gfs2_qstr2dirent()
74 dent->de_type = cpu_to_be16(0); in gfs2_qstr2dirent()

12345678910>>...18