Home
last modified time | relevance | path

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

12345678910>>...19

/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/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/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/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/gpu/drm/amd/display/modules/power/
H A Dpower_helpers.c34 ((big_endian) ? cpu_to_be16(value) : cpu_to_le16(value))
279 table->backlight_thresholds[i] = cpu_to_be16((uint16_t)threshold_val); in fill_backlight_transform_table()
280 table->backlight_offsets[i] = cpu_to_be16((uint16_t)offset_val); in fill_backlight_transform_table()
318 cpu_to_be16((uint16_t)threshold_val) : cpu_to_le16((uint16_t)threshold_val); in fill_backlight_transform_table_v_2_2()
320 cpu_to_be16((uint16_t)offset_val) : cpu_to_le16((uint16_t)offset_val); in fill_backlight_transform_table_v_2_2()
329 cpu_to_be16(params.min_abm_backlight); in fill_iram_v_2()
333 cpu_to_be16(params.backlight_ramping_reduction); in fill_iram_v_2()
335 cpu_to_be16(params.backlight_ramping_start); in fill_iram_v_2()
469 ram_table->crgb_thresh[0] = cpu_to_be16(0x13b6); in fill_iram_v_2()
470 ram_table->crgb_thresh[1] = cpu_to_be16(0x1648); in fill_iram_v_2()
[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/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()
H A Dxfs_inode_item_recover.c162 to->di_nrext64_pad = cpu_to_be16(from->di_nrext64_pad); in xfs_log_dinode_to_disk_iext_counters()
165 to->di_anextents = cpu_to_be16(from->di_anextents); in xfs_log_dinode_to_disk_iext_counters()
176 to->di_magic = cpu_to_be16(from->di_magic); in xfs_log_dinode_to_disk()
177 to->di_mode = cpu_to_be16(from->di_mode); in xfs_log_dinode_to_disk()
180 to->di_metatype = cpu_to_be16(from->di_metatype); in xfs_log_dinode_to_disk()
184 to->di_projid_lo = cpu_to_be16(from->di_projid_lo); in xfs_log_dinode_to_disk()
185 to->di_projid_hi = cpu_to_be16(from->di_projid_hi); in xfs_log_dinode_to_disk()
197 to->di_dmstate = cpu_to_be16(from->di_dmstate); in xfs_log_dinode_to_disk()
198 to->di_flags = cpu_to_be16(from->di_flags); in xfs_log_dinode_to_disk()
214 to->di_flushiter = cpu_to_be16(from->di_flushiter); in xfs_log_dinode_to_disk()
/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/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/crypto/marvell/octeontx/
H A Dotx_cptvf_reqmgr.c127 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components()
128 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components()
129 sg_ptr->u.s.len2 = cpu_to_be16(list[i * 4 + 2].size); in setup_sgio_components()
130 sg_ptr->u.s.len3 = cpu_to_be16(list[i * 4 + 3].size); in setup_sgio_components()
141 sg_ptr->u.s.len2 = cpu_to_be16(list[i * 4 + 2].size); in setup_sgio_components()
145 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components()
149 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components()
205 ((__be16 *)info->in_buffer)[0] = cpu_to_be16(req->outcnt); in setup_sgio_list()
206 ((__be16 *)info->in_buffer)[1] = cpu_to_be16(req->incnt); in setup_sgio_list()
364 iq_cmd.cmd.s.opcode = cpu_to_be16(cpt_req->opcode.flags); in process_request()
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_inode_buf.c110 .magic16 = { cpu_to_be16(XFS_DINODE_MAGIC),
111 cpu_to_be16(XFS_DINODE_MAGIC) },
118 .magic16 = { cpu_to_be16(XFS_DINODE_MAGIC),
119 cpu_to_be16(XFS_DINODE_MAGIC) },
313 to->di_nrext64_pad = cpu_to_be16(0); in xfs_inode_to_disk_iext_counters()
316 to->di_anextents = cpu_to_be16(xfs_ifork_nextents(&ip->i_af)); in xfs_inode_to_disk_iext_counters()
328 to->di_magic = cpu_to_be16(XFS_DINODE_MAGIC); in xfs_inode_to_disk()
330 to->di_metatype = cpu_to_be16(ip->i_metatype); in xfs_inode_to_disk()
337 to->di_projid_lo = cpu_to_be16(ip->i_projid & 0xffff); in xfs_inode_to_disk()
338 to->di_projid_hi = cpu_to_be16(ip->i_projid >> 16); in xfs_inode_to_disk()
[all …]
/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/crypto/cavium/cpt/
H A Dcptvf_reqmanager.c76 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components()
77 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components()
78 sg_ptr->u.s.len2 = cpu_to_be16(list[i * 4 + 2].size); in setup_sgio_components()
79 sg_ptr->u.s.len3 = cpu_to_be16(list[i * 4 + 3].size); in setup_sgio_components()
91 sg_ptr->u.s.len2 = cpu_to_be16(list[i * 4 + 2].size); in setup_sgio_components()
95 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components()
99 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components()
177 ((__be16 *)info->in_buffer)[0] = cpu_to_be16(req->outcnt); in setup_sgio_list()
178 ((__be16 *)info->in_buffer)[1] = cpu_to_be16(req->incnt); in setup_sgio_list()
464 vq_cmd.cmd.s.opcode = cpu_to_be16(cpt_req->opcode.flags); in process_request()
[all …]
/linux/drivers/staging/iio/frequency/
H A Dad9834.c121 st->freq_data[0] = cpu_to_be16(addr | (regval & in ad9834_write_frequency()
123 st->freq_data[1] = cpu_to_be16(addr | ((regval >> in ad9834_write_frequency()
135 st->data = cpu_to_be16(addr | phase); in ad9834_write_phase()
176 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
184 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
198 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
207 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
269 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_store_wavetype()
442 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_probe()
/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/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/iio/dac/
H A Dad5592r.c37 st->spi_msg = cpu_to_be16(BIT(15) | (chan << 12) | value); in ad5592r_write_dac()
47 st->spi_msg = cpu_to_be16((AD5592R_REG_ADC_SEQ << 11) | BIT(chan)); in ad5592r_read_adc()
74 st->spi_msg = cpu_to_be16((reg << 11) | value); in ad5592r_reg_write()
84 st->spi_msg = cpu_to_be16((AD5592R_REG_LDAC << 11) | in ad5592r_reg_read()
/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()

12345678910>>...19