/linux-4.1.27/include/rdma/ |
D | ib_pma.h | 43 #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 …]
|
D | ib_smi.h | 66 #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 …]
|
D | ib_cm.h | 266 #define CM_REQ_ATTR_ID cpu_to_be16(0x0010) 267 #define CM_MRA_ATTR_ID cpu_to_be16(0x0011) 268 #define CM_REJ_ATTR_ID cpu_to_be16(0x0012) 269 #define CM_REP_ATTR_ID cpu_to_be16(0x0013) 270 #define CM_RTU_ATTR_ID cpu_to_be16(0x0014) 271 #define CM_DREQ_ATTR_ID cpu_to_be16(0x0015) 272 #define CM_DREP_ATTR_ID cpu_to_be16(0x0016) 273 #define CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017) 274 #define CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018) 275 #define CM_LAP_ATTR_ID cpu_to_be16(0x0019) [all …]
|
/linux-4.1.27/include/linux/ |
D | sctp.h | 172 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 …]
|
D | etherdevice.h | 75 static const __be16 m = cpu_to_be16(0xfff0); in is_link_local_ether_addr()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_mad.h | 39 #define IB_SMP_UNSUP_VERSION cpu_to_be16(0x0004) 40 #define IB_SMP_UNSUP_METHOD cpu_to_be16(0x0008) 41 #define IB_SMP_UNSUP_METH_ATTR cpu_to_be16(0x000C) 42 #define IB_SMP_INVALID_FIELD cpu_to_be16(0x001C) 135 #define IB_NOTICE_PROD_CA cpu_to_be16(1) 136 #define IB_NOTICE_PROD_SWITCH cpu_to_be16(2) 137 #define IB_NOTICE_PROD_ROUTER cpu_to_be16(3) 138 #define IB_NOTICE_PROD_CLASS_MGR cpu_to_be16(4) 143 #define IB_NOTICE_TRAP_LLI_THRESH cpu_to_be16(129) 144 #define IB_NOTICE_TRAP_EBO_THRESH cpu_to_be16(130) [all …]
|
D | qib_mad.c | 153 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_pqkey() 177 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_mkey() 215 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_cap_mask_chg() 235 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_sys_guid_chg() 255 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_node_desc_chg() 298 nip->partition_cap = cpu_to_be16(qib_get_npkeys(dd)); in subn_get_nodeinfo() 299 nip->device_id = cpu_to_be16(dd->deviceid); in subn_get_nodeinfo() 495 pip->lid = cpu_to_be16(ppd->lid); in subn_get_portinfo() 496 pip->sm_lid = cpu_to_be16(ibp->sm_lid); in subn_get_portinfo() 499 pip->mkey_lease_period = cpu_to_be16(ibp->mkey_lease_period); in subn_get_portinfo() [all …]
|
D | qib_ud.c | 95 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()
|
D | qib_verbs.h | 99 #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)
|
D | qib_ruc.c | 660 hdr->paylen = cpu_to_be16((hwords - 2 + nwords + SIZE_OF_CRC) << 2); in qib_make_grh() 694 qp->s_hdr->lrh[0] = cpu_to_be16(lrh0); in qib_make_ruc_header() 695 qp->s_hdr->lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in qib_make_ruc_header() 696 qp->s_hdr->lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in qib_make_ruc_header() 697 qp->s_hdr->lrh[3] = cpu_to_be16(ppd_from_ibp(ibp)->lid | in qib_make_ruc_header()
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
D | qla_gs.c | 114 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() 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() 1310 eiter->len = cpu_to_be16(4 + alen); in qla2x00_fdmi_rhba() 1330 eiter->len = cpu_to_be16(4 + alen); in qla2x00_fdmi_rhba() 1343 eiter->len = cpu_to_be16(4 + alen); in qla2x00_fdmi_rhba() 1356 eiter->len = cpu_to_be16(4 + alen); in qla2x00_fdmi_rhba() 1380 eiter->len = cpu_to_be16(4 + alen); in qla2x00_fdmi_rhba() 1393 eiter->len = cpu_to_be16(4 + alen); in qla2x00_fdmi_rhba() [all …]
|
/linux-4.1.27/fs/hfs/ |
D | mdb.c | 91 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 …]
|
D | extent.c | 26 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()
|
D | part_tbl.c | 108 if (pm->pmSig != cpu_to_be16(HFS_NEW_PMAP_MAGIC)) in hfs_part_find()
|
D | brec.c | 319 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()
|
D | super.c | 120 if (!(HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) { in hfs_remount() 124 } else if (HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_SLOCK)) { in hfs_remount()
|
D | btree.c | 180 head->depth = cpu_to_be16(tree->depth); in hfs_btree_write() 212 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
D | lpfc_ct.c | 644 cpu_to_be16(SLI_CT_RESPONSE_FS_ACC)) { in lpfc_cmpl_ct_cmd_gid_ft() 1217 cpu_to_be16(SLI_CTNS_GID_FT); in lpfc_ns_cmd() 1228 cpu_to_be16(SLI_CTNS_GFF_ID); in lpfc_ns_cmd() 1236 cpu_to_be16(SLI_CTNS_RFT_ID); in lpfc_ns_cmd() 1245 cpu_to_be16(SLI_CTNS_RNN_ID); in lpfc_ns_cmd() 1255 cpu_to_be16(SLI_CTNS_RSPN_ID); in lpfc_ns_cmd() 1266 cpu_to_be16(SLI_CTNS_RSNN_NN); in lpfc_ns_cmd() 1278 cpu_to_be16(SLI_CTNS_DA_ID); in lpfc_ns_cmd() 1285 cpu_to_be16(SLI_CTNS_RFF_ID); in lpfc_ns_cmd() 1356 if (fdmi_rsp == cpu_to_be16(SLI_CT_RESPONSE_FS_RJT)) { in lpfc_cmpl_ct_cmd_fdmi() [all …]
|
/linux-4.1.27/drivers/staging/iio/frequency/ |
D | ad9832.c | 43 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 …]
|
D | ad9834.c | 46 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.1.27/drivers/char/tpm/ |
D | tpm2-cmd.c | 229 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS), 255 cmd.params.pcrread_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); in tpm2_pcr_read() 277 .tag = cpu_to_be16(TPM2_ST_SESSIONS), 307 cmd.params.pcrextend_in.hash_alg = cpu_to_be16(TPM2_ALG_SHA1); in tpm2_pcr_extend() 321 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS), 354 cmd.params.getrandom_in.size = cpu_to_be16(num_bytes); in tpm2_get_random() 378 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS), 417 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS), 438 cmd.params.startup_in.startup_type = cpu_to_be16(startup_type); in tpm2_startup() 449 .tag = cpu_to_be16(TPM2_ST_NO_SESSIONS), [all …]
|
D | tpm-interface.c | 477 #define TPM_ST_CLEAR cpu_to_be16(1) 478 #define TPM_ST_STATE cpu_to_be16(2) 479 #define TPM_ST_DEACTIVATED cpu_to_be16(3)
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
D | srq.c | 92 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_SRQ); in mlx5_core_create_srq() 119 din.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_SRQ); in mlx5_core_create_srq() 147 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_SRQ); in mlx5_core_destroy_srq() 173 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_SRQ); in mlx5_core_query_srq() 196 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ARM_RQ); in mlx5_core_arm_srq() 197 in.hdr.opmod = cpu_to_be16(!!is_srq); in mlx5_core_arm_srq() 199 in.lwm = cpu_to_be16(lwm); in mlx5_core_arm_srq()
|
D | pagealloc.c | 174 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() 311 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MANAGE_PAGES); in give_pages() 312 in->hdr.opmod = cpu_to_be16(MLX5_PAGES_GIVE); in give_pages() 313 in->func_id = cpu_to_be16(func_id); in give_pages() 344 nin->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MANAGE_PAGES); in give_pages() 345 nin->hdr.opmod = cpu_to_be16(MLX5_PAGES_CANT_GIVE); in give_pages() 379 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_MANAGE_PAGES); in reclaim_pages() 380 in.hdr.opmod = cpu_to_be16(MLX5_PAGES_TAKE); in reclaim_pages() 381 in.func_id = cpu_to_be16(func_id); in reclaim_pages()
|
D | mr.c | 66 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_MKEY); in mlx5_core_create_mkey() 128 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_MKEY); in mlx5_core_destroy_mkey() 150 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_MKEY); in mlx5_core_query_mkey() 173 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS); in mlx5_core_dump_fill_mkey() 200 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_PSV); in mlx5_core_create_psv() 231 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_PSV); in mlx5_core_destroy_psv()
|
D | port.c | 55 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()
|
D | cq.c | 100 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()
|
D | qp.c | 192 in->hdr.opcode = cpu_to_be16(MLX5_CMD_OP_CREATE_QP); in mlx5_core_create_qp() 233 din.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_QP); in mlx5_core_create_qp() 261 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DESTROY_QP); in mlx5_core_destroy_qp() 327 in->hdr.opcode = cpu_to_be16(op); in mlx5_core_qp_modify() 359 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_QP); in mlx5_core_qp_query() 380 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ALLOC_XRCD); in mlx5_core_xrcd_alloc() 402 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DEALLOC_XRCD); in mlx5_core_xrcd_dealloc() 425 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_PAGE_FAULT_RESUME); in mlx5_core_page_fault_resume()
|
D | fw.c | 49 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_QUERY_ADAPTER); in mlx5_cmd_query_adapter() 120 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_INIT_HCA); in mlx5_cmd_init_hca() 139 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_TEARDOWN_HCA); in mlx5_cmd_teardown_hca()
|
D | mad.c | 56 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()
|
D | pd.c | 69 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()
|
D | mcg.c | 72 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_DETACH_FROM_MCG); in mlx5_core_detach_mcg()
|
D | uar.c | 75 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_ALLOC_UAR); in mlx5_cmd_alloc_uar() 100 in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DEALLOC_UAR); in mlx5_cmd_free_uar()
|
D | eq.c | 92 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()
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_dir2_data.c | 432 new.offset = cpu_to_be16((char *)dup - (char *)hdr); in xfs_dir2_data_freeinsert() 614 bf[0].offset = cpu_to_be16(dp->d_ops->data_entry_offset); in xfs_dir3_data_init() 624 dup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir3_data_init() 627 bf[0].length = cpu_to_be16(t); in xfs_dir3_data_init() 628 dup->length = cpu_to_be16(t); in xfs_dir3_data_init() 629 *xfs_dir2_data_unused_tag_p(dup) = cpu_to_be16((char *)dup - (char *)hdr); in xfs_dir3_data_init() 801 cpu_to_be16((char *)prevdup - (char *)hdr); in xfs_dir2_data_make_free() 836 cpu_to_be16((char *)prevdup - (char *)hdr); in xfs_dir2_data_make_free() 861 newdup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_data_make_free() 862 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length)); in xfs_dir2_data_make_free() [all …]
|
D | xfs_inode_buf.c | 94 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 …]
|
D | xfs_da_format.c | 477 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 …]
|
D | xfs_dir2_leaf.c | 161 if (leaf3->info.hdr.magic != cpu_to_be16(magic3)) in xfs_dir3_leaf_verify() 168 if (leaf->hdr.info.magic != cpu_to_be16(magic)) in xfs_dir3_leaf_verify() 309 ? cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) in xfs_dir3_leaf_init() 310 : cpu_to_be16(XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_init() 316 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init() 671 ASSERT(bestsp[i] != cpu_to_be16(NULLDATAOFF)); in xfs_dir2_leaf_addname() 685 if (bestsp[i] == cpu_to_be16(NULLDATAOFF) && in xfs_dir2_leaf_addname() 707 if (use_block != -1 && bestsp[use_block] == cpu_to_be16(NULLDATAOFF)) in xfs_dir2_leaf_addname() 860 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_leaf_addname() 1063 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_bests() [all …]
|
D | xfs_sb.c | 402 to->sb_qflags = cpu_to_be16(from->sb_qflags); in xfs_sb_quota_to_disk() 422 to->sb_qflags = cpu_to_be16(qflags); in xfs_sb_quota_to_disk() 474 to->sb_versionnum = cpu_to_be16(from->sb_versionnum); in xfs_sb_to_disk() 475 to->sb_sectsize = cpu_to_be16(from->sb_sectsize); in xfs_sb_to_disk() 476 to->sb_inodesize = cpu_to_be16(from->sb_inodesize); in xfs_sb_to_disk() 477 to->sb_inopblock = cpu_to_be16(from->sb_inopblock); in xfs_sb_to_disk() 499 to->sb_logsectsize = cpu_to_be16(from->sb_logsectsize); in xfs_sb_to_disk()
|
D | xfs_da_btree.c | 539 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_root_split() 540 oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) { in xfs_da3_root_split() 580 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_root_split() 581 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split() 613 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_root_split() 614 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split() 1019 ASSERT(magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate() 1020 magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate() 1021 magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da_blkinfo_onlychild_validate() 1022 magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da_blkinfo_onlychild_validate() [all …]
|
D | xfs_attr_leaf.c | 113 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk() 157 hdr3->firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk() 159 to->hdr.firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk() 171 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk() 172 from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_attr3_leaf_hdr_from_disk() 174 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_hdr_from_disk() 221 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_attr3_leaf_hdr_to_disk() 222 hdr3->count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk() 223 hdr3->usedbytes = cpu_to_be16(from->usedbytes); in xfs_attr3_leaf_hdr_to_disk() 229 hdr3->freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk() [all …]
|
D | xfs_dquot_buf.c | 77 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()
|
D | xfs_dir2_block.c | 550 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_block_addname() 1160 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block() 1174 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block() 1205 dup->freetag = cpu_to_be16(XFS_DIR2_DATA_FREE_TAG); in xfs_dir2_sf_to_block() 1206 dup->length = cpu_to_be16(newoffset - offset); in xfs_dir2_sf_to_block() 1207 *xfs_dir2_data_unused_tag_p(dup) = cpu_to_be16( in xfs_dir2_sf_to_block() 1225 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_sf_to_block()
|
D | xfs_dir2_node.c | 338 *to = cpu_to_be16(off); in xfs_dir2_leaf_to_node() 357 if (leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC)) in xfs_dir2_leaf_to_node() 358 leaf->hdr.info.magic = cpu_to_be16(XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_to_node() 360 leaf->hdr.info.magic = cpu_to_be16(XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_to_node() 619 if (unlikely(bests[fi] == cpu_to_be16(NULLDATAOFF))) { in xfs_dir2_leafn_lookup_for_addname() 1086 bests[findex] = cpu_to_be16(longest); in xfs_dir3_data_block_free() 1103 if (bests[i] != cpu_to_be16(NULLDATAOFF)) in xfs_dir3_data_block_free() 1110 bests[findex] = cpu_to_be16(NULLDATAOFF); in xfs_dir3_data_block_free() 1907 bests[findex] = cpu_to_be16(NULLDATAOFF); in xfs_dir2_node_addname_int() 1913 if (bests[findex] == cpu_to_be16(NULLDATAOFF)) { in xfs_dir2_node_addname_int() [all …]
|
D | xfs_da_format.h | 791 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.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_mad.c | 41 #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 …]
|
D | ipath_verbs.h | 89 #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)
|
D | ipath_ruc.c | 587 hdr->paylen = cpu_to_be16((hwords - 2 + nwords + SIZE_OF_CRC) << 2); in ipath_make_grh() 619 qp->s_hdr.lrh[0] = cpu_to_be16(lrh0); in ipath_make_ruc_header() 620 qp->s_hdr.lrh[1] = cpu_to_be16(qp->remote_ah_attr.dlid); in ipath_make_ruc_header() 621 qp->s_hdr.lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + SIZE_OF_CRC); in ipath_make_ruc_header() 622 qp->s_hdr.lrh[3] = cpu_to_be16(dev->dd->ipath_lid | in ipath_make_ruc_header()
|
D | ipath_ud.c | 352 qp->s_hdr.lrh[0] = cpu_to_be16(lrh0); in ipath_make_ud_req() 353 qp->s_hdr.lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ in ipath_make_ud_req() 354 qp->s_hdr.lrh[2] = cpu_to_be16(qp->s_hdrwords + nwords + in ipath_make_ud_req() 360 qp->s_hdr.lrh[3] = cpu_to_be16(lid); in ipath_make_ud_req()
|
/linux-4.1.27/fs/xfs/ |
D | xfs_attr_inactive.c | 267 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()
|
D | xfs_qm_syscalls.c | 506 ddq->d_bwarns = cpu_to_be16(newlim->d_spc_warns); in xfs_qm_scall_setqlim() 508 ddq->d_iwarns = cpu_to_be16(newlim->d_ino_warns); in xfs_qm_scall_setqlim() 510 ddq->d_rtbwarns = cpu_to_be16(newlim->d_rt_spc_warns); in xfs_qm_scall_setqlim()
|
D | xfs_acl.c | 117 ace->ae_perm = cpu_to_be16(acl_e->e_perm); in xfs_acl_to_disk()
|
/linux-4.1.27/fs/hfsplus/ |
D | catalog.c | 54 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 …]
|
D | wrapper.c | 99 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()
|
D | xattr.c | 80 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()
|
D | unicode.c | 318 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()
|
D | brec.c | 168 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()
|
D | inode.c | 502 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()
|
D | attributes.c | 76 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()
|
D | part_tbl.c | 119 } while (pm->pmSig == cpu_to_be16(HFS_NEW_PMAP_MAGIC)); in hfs_parse_new_pmap()
|
D | btree.c | 303 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.1.27/drivers/net/ethernet/qualcomm/ |
D | qca_7k.c | 54 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.1.27/drivers/scsi/bfa/ |
D | bfa_fcbuild.c | 100 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 …]
|
D | bfa_fcs_lport.c | 1930 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 …]
|
D | bfa_core.c | 997 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.1.27/drivers/staging/fbtft/ |
D | fb_watterott.c | 90 pos[2] = cpu_to_be16(par->info->var.xres); in write_vmem() 91 pos[3] = cpu_to_be16(1); in write_vmem() 95 pos[1] = cpu_to_be16(i); in write_vmem() 97 buf16[j] = cpu_to_be16(*vmem16++); in write_vmem() 129 pos[2] = cpu_to_be16(par->info->var.xres); in write_vmem_8bit() 130 pos[3] = cpu_to_be16(1); in write_vmem_8bit() 134 pos[1] = cpu_to_be16(i); in write_vmem_8bit()
|
D | fbtft-bus.c | 74 define_fbtft_write_reg(fbtft_write_reg16_bus8, u16, cpu_to_be16) in define_fbtft_write_reg() argument 170 txbuf16[i] = cpu_to_be16(vmem16[i]); in fbtft_write_vmem16_bus8()
|
/linux-4.1.27/drivers/s390/crypto/ |
D | zcrypt_cca_key.h | 166 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.1.27/drivers/net/wan/ |
D | hdlc_cisco.c | 116 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()
|
D | hdlc_fr.c | 282 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()
|
D | hdlc_raw.c | 29 return cpu_to_be16(ETH_P_IP); in raw_type_trans()
|
D | hdlc.c | 354 .type = cpu_to_be16(ETH_P_HDLC),
|
/linux-4.1.27/drivers/staging/gdm72xx/ |
D | gdm_wimax.c | 74 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.1.27/drivers/input/misc/ |
D | ad714x-i2c.c | 34 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()
|
D | ad714x-spi.c | 43 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()
|
D | yealink.c | 319 p->offset = cpu_to_be16(ix); in yealink_set_ringtone() 384 yld->ctl_data->offset = cpu_to_be16(val); in yealink_do_idle_tasks() 396 yld->ctl_data->offset = cpu_to_be16(ix); in yealink_do_idle_tasks()
|
/linux-4.1.27/fs/gfs2/ |
D | dir.h | 76 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()
|
D | dir.c | 677 prev->de_rec_len = cpu_to_be16(prev_rec_len); in dirent_del() 699 dent->de_rec_len = cpu_to_be16(offset); in gfs2_init_dirent() 842 leaf->lf_depth = cpu_to_be16(depth); in new_leaf() 890 leaf->lf_entries = cpu_to_be16(dip->i_entries); in dir_make_exhash() 919 dent->de_rec_len = cpu_to_be16(be16_to_cpu(dent->de_rec_len) + in dir_make_exhash() 1713 dent->de_type = cpu_to_be16(IF2DT(nip->i_inode.i_mode)); in gfs2_dir_add() 1714 dent->de_rahead = cpu_to_be16(gfs2_inode_ra_len(nip)); in gfs2_dir_add() 1802 leaf->lf_entries = cpu_to_be16(--entries); in gfs2_dir_del() 1849 dent->de_type = cpu_to_be16(new_type); in gfs2_dir_mvino()
|
/linux-4.1.27/drivers/infiniband/hw/ehca/ |
D | ehca_sqp.c | 49 #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.1.27/drivers/tty/hvc/ |
D | hvsi_lib.c | 11 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()
|
/linux-4.1.27/arch/powerpc/boot/ |
D | of.h | 27 #define cpu_to_be16(x) swab16(x) macro 34 #define cpu_to_be16(x) (x) macro
|
D | libfdt_env.h | 14 #define cpu_to_fdt16(x) cpu_to_be16(x)
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
D | c2.c | 134 __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 …]
|
D | c2_mq.c | 67 __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()
|
D | c2_mm.c | 227 wr->flags = cpu_to_be16(flags); in c2_nsmr_register_phys_kern()
|
D | c2_rnic.c | 352 wr.rnic_open.req.flags = cpu_to_be16(RNIC_PRIV_MODE); in c2_rnic_open() 353 wr.rnic_open.req.port_num = cpu_to_be16(0); in c2_rnic_open()
|
/linux-4.1.27/net/mpls/ |
D | mpls_gso.c | 64 .type = cpu_to_be16(ETH_P_MPLS_MC), 71 .type = cpu_to_be16(ETH_P_MPLS_UC),
|
/linux-4.1.27/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 66 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr() 67 eth.roce_eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr() 69 eth.vlan_tag = cpu_to_be16(vlan_tag); in set_av_attr() 73 eth.eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr()
|
/linux-4.1.27/fs/befs/ |
D | endian.h | 65 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.1.27/drivers/net/wireless/ath/ath9k/ |
D | htc_hst.c | 33 hdr->payload_len = cpu_to_be16(len); in htc_issue_send() 161 cp_msg->message_id = cpu_to_be16(HTC_MSG_CONFIG_PIPE_ID); in htc_config_pipe_credits() 198 comp_msg->msg_id = cpu_to_be16(HTC_MSG_SETUP_COMPLETE_ID); in htc_setup_complete() 267 conn_msg->service_id = cpu_to_be16(service_connreq->service_id); in htc_connect_service() 268 conn_msg->msg_id = cpu_to_be16(HTC_MSG_CONNECT_SERVICE_ID); in htc_connect_service() 269 conn_msg->con_flags = cpu_to_be16(service_connreq->con_flags); in htc_connect_service()
|
D | wmi.c | 281 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()
|
D | htc_drv_main.c | 225 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() 941 htc_mode = cpu_to_be16(mode); in ath9k_htc_start() 1068 hvif.rtsthreshold = cpu_to_be16(2304); in ath9k_htc_add_interface()
|
/linux-4.1.27/include/scsi/ |
D | osd_protocol.h | 266 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.1.27/net/llc/ |
D | llc_core.c | 136 .type = cpu_to_be16(ETH_P_802_2), 141 .type = cpu_to_be16(ETH_P_TR_802_2),
|
/linux-4.1.27/net/caif/ |
D | caif_usb.c | 110 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.1.27/include/net/ |
D | mrp.h | 18 #define MRP_VECATTR_HDR_LEN_MASK cpu_to_be16(0x1FFF) 19 #define MRP_VECATTR_HDR_FLAG_LA cpu_to_be16(0x2000)
|
D | inet_ecn.h | 149 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()
|
D | ipx.h | 31 #define IPX_NO_CHECKSUM cpu_to_be16(0xFFFF)
|
D | bond_3ad.h | 32 #define PKT_TYPE_LACPDU cpu_to_be16(ETH_P_SLOW)
|
/linux-4.1.27/include/linux/byteorder/ |
D | generic.h | 95 #define cpu_to_be16 __cpu_to_be16 macro 160 *var = cpu_to_be16(be16_to_cpu(*var) + val); in be16_add_cpu()
|
/linux-4.1.27/drivers/iio/adc/ |
D | ad7298.c | 122 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()
|
D | ad7923.c | 144 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.1.27/drivers/infiniband/hw/mlx4/ |
D | ah.c | 60 ah->av.ib.dlid = cpu_to_be16(ah_attr->dlid); in create_ib_ah() 93 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah() 105 ah->av.ib.dlid = cpu_to_be16(0xc000); in create_iboe_ah()
|
D | mcg.c | 286 mad.mad_hdr.status = cpu_to_be16(0); in send_leave_to_wire() 287 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_leave_to_wire() 290 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_leave_to_wire() 293 mad.sa_hdr.attr_offset = cpu_to_be16(7); in send_leave_to_wire() 327 mad.mad_hdr.status = cpu_to_be16(status); in send_reply_to_slave() 328 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_reply_to_slave() 331 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_reply_to_slave() 334 mad.sa_hdr.attr_offset = cpu_to_be16(7); in send_reply_to_slave()
|
D | srq.c | 156 cpu_to_be16((i + 1) & (srq->msrq.max - 1)); in mlx4_ib_create_srq() 303 next->next_wqe_index = cpu_to_be16(wqe_index); in mlx4_ib_free_srq_wqe()
|
D | cq.c | 558 return ((status & cpu_to_be16(MLX4_CQE_STATUS_IPV4 | in mlx4_ib_ipoib_csum_ok() 563 cpu_to_be16(MLX4_CQE_STATUS_IPV4 | in mlx4_ib_ipoib_csum_ok() 565 (status & cpu_to_be16(MLX4_CQE_STATUS_UDP | in mlx4_ib_ipoib_csum_ok() 567 checksum == cpu_to_be16(0xffff); in mlx4_ib_ipoib_csum_ok()
|
D | qp.c | 1285 path->rlid = cpu_to_be16(ah->dlid); in _mlx4_set_path() 2068 cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_sriov_qp0_header() 2070 cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_sriov_qp0_header() 2082 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_sriov_qp0_header() 2200 if (ah->av.eth.vlan != cpu_to_be16(0xffff)) { in build_mlx_header() 2211 sqp->ud_header.lrh.source_lid = cpu_to_be16(ah->av.ib.g_slid & 0x7f); in build_mlx_header() 2274 mlx->sched_prio = cpu_to_be16(pcp); in build_mlx_header() 2296 sqp->ud_header.eth.type = cpu_to_be16(MLX4_IB_IBOE_ETHERTYPE); in build_mlx_header() 2298 sqp->ud_header.vlan.type = cpu_to_be16(MLX4_IB_IBOE_ETHERTYPE); in build_mlx_header() 2299 sqp->ud_header.vlan.tag = cpu_to_be16(vlan | pcp); in build_mlx_header() [all …]
|
/linux-4.1.27/drivers/zorro/ |
D | proc.c | 46 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()
|
D | zorro-sysfs.c | 75 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.1.27/fs/dlm/ |
D | dir.c | 278 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.1.27/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_hw.c | 298 vi_cmd.type_viid = cpu_to_be16(FW_VI_CMD_VIID_V(pi->viid)); in t4vf_port_init() 963 cmd.niqid = cpu_to_be16(nq); in t4vf_config_rss_range() 964 cmd.startidx = cpu_to_be16(start); in t4vf_config_rss_range() 1066 cmd.type_viid = cpu_to_be16(FW_VI_CMD_VIID_V(viid)); in t4vf_free_vi() 1115 cmd.blinkdur = cpu_to_be16(nblinks); in t4vf_identify_port() 1221 p->valid_to_idx = cpu_to_be16( in t4vf_alloc_mac_filt() 1305 p->valid_to_idx = cpu_to_be16(FW_VI_MAC_CMD_VALID_F | in t4vf_change_mac() 1385 cpu_to_be16(FW_VI_STATS_CMD_IX_V(ix) | in t4vf_get_port_stats() 1446 cmd.iqid = cpu_to_be16(iqid); in t4vf_iq_free() 1447 cmd.fl0id = cpu_to_be16(fl0id); in t4vf_iq_free() [all …]
|
D | sge.c | 1291 lso->ipid_ofst = cpu_to_be16(0); in t4vf_eth_xmit() 1292 lso->mss = cpu_to_be16(ssi->gso_size); in t4vf_eth_xmit() 1344 cpl->pack = cpu_to_be16(0); in t4vf_eth_xmit() 1345 cpl->len = cpu_to_be16(skb->len); in t4vf_eth_xmit() 1574 __vlan_hwaccel_put_tag(skb, cpu_to_be16(ETH_P_8021Q), in do_gro() 2234 cpu_to_be16(FW_IQ_CMD_IQPCIECH_V(pi->port_id) | in t4vf_sge_alloc_rxq() 2238 cmd.iqsize = cpu_to_be16(rspq->size); in t4vf_sge_alloc_rxq() 2275 cpu_to_be16( in t4vf_sge_alloc_rxq() 2278 cmd.fl0size = cpu_to_be16(flsz); in t4vf_sge_alloc_rxq()
|
/linux-4.1.27/drivers/i2c/busses/ |
D | i2c-opal.c | 102 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.1.27/drivers/iio/imu/ |
D | adis_buffer.c | 68 *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.1.27/arch/powerpc/kernel/ |
D | paca.c | 38 .size = cpu_to_be16(sizeof(struct lppaca)), 40 .slb_count = cpu_to_be16(64),
|
D | nvram_64.c | 377 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()
|
D | fadump.c | 151 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.1.27/drivers/iio/dac/ |
D | ad5449.c | 92 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()
|
D | ad5504.c | 72 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()
|
D | ad5446.c | 297 __be16 data = cpu_to_be16(val); in ad5446_write() 513 __be16 data = cpu_to_be16(val); in ad5622_write()
|
D | ad7303.c | 55 st->data = cpu_to_be16(AD7303_CMD_UPDATE_DAC | in ad7303_write()
|
/linux-4.1.27/arch/arm/boot/compressed/ |
D | libfdt_env.h | 9 #define cpu_to_fdt16(x) cpu_to_be16(x)
|
/linux-4.1.27/drivers/infiniband/core/ |
D | ud_header.c | 249 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()
|
D | packer.c | 131 case 16: *(__be16 *) (structure + offset) = cpu_to_be16(val); break; in value_write()
|
D | sa_query.c | 762 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); in ib_sa_path_rec_get() 884 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC); in ib_sa_service_rec_query() 976 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in ib_sa_mcmember_rec_query() 1074 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_GUID_INFO_REC); in ib_sa_guid_info_rec_query()
|
/linux-4.1.27/drivers/gpio/ |
D | gpio-viperboard.c | 271 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.1.27/drivers/scsi/ibmvscsi/ |
D | ibmvscsi.c | 478 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 …]
|
D | ibmvfc.c | 810 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.1.27/drivers/gpu/drm/radeon/ |
D | ci_dpm.c | 336 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 …]
|
D | cypress_dpm.c | 412 voltage->value = cpu_to_be16(table->entries[i].value); in cypress_populate_voltage_value() 660 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); in cypress_populate_mvdd_value() 666 voltage->value = cpu_to_be16(MVDD_LOW_VALUE); in cypress_populate_mvdd_value() 669 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); in cypress_populate_mvdd_value() 956 cpu_to_be16(eg_pi->mc_reg_table.mc_reg_address[j].s0); in cypress_populate_mc_reg_addresses() 958 cpu_to_be16(eg_pi->mc_reg_table.mc_reg_address[j].s1); in cypress_populate_mc_reg_addresses() 1229 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); in cypress_populate_initial_mvdd_value()
|
D | si_dpm.c | 2372 smc_state->levels[i].dpm2.PwrEfficiencyRatio = cpu_to_be16(pwr_efficiency_ratio); in si_populate_power_containment_values() 2609 cpu_to_be16((u16)smc_leakage); in si_init_dte_leakage_table() 2645 cpu_to_be16((u16)smc_leakage); in si_init_simplified_leakage_table() 4058 voltage->value = cpu_to_be16(table->entries[i].value); in si_populate_voltage_value() 4081 voltage->value = cpu_to_be16(si_pi->mvdd_voltage_table.entries[voltage->index].value); in si_populate_mvdd_value() 4142 voltage->value = cpu_to_be16(value); in si_populate_std_voltage_value() 5532 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s0); in si_populate_mc_reg_addresses() 5534 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s1); in si_populate_mc_reg_addresses() 5987 fan_table.temp_min = cpu_to_be16((50 + rdev->pm.dpm.fan.t_min) / 100); in si_thermal_setup_fan_table() 5988 fan_table.temp_med = cpu_to_be16((50 + rdev->pm.dpm.fan.t_med) / 100); in si_thermal_setup_fan_table() [all …]
|
/linux-4.1.27/net/netfilter/ |
D | nf_conntrack_netbios_ns.c | 52 .tuple.src.u.udp.port = cpu_to_be16(NMBD_PORT),
|
D | nf_conntrack_amanda.c | 181 .tuple.src.u.udp.port = cpu_to_be16(10080), 190 .tuple.src.u.udp.port = cpu_to_be16(10080),
|
D | nf_conntrack_snmp.c | 59 .tuple.src.u.udp.port = cpu_to_be16(SNMP_PORT),
|
/linux-4.1.27/include/linux/unaligned/ |
D | access_ok.h | 54 *((__be16 *)p) = cpu_to_be16(val); in put_unaligned_be16()
|
/linux-4.1.27/drivers/net/arcnet/ |
D | capmode.c | 89 skb->protocol = cpu_to_be16(ETH_P_ARCNET); in rx() 220 ackskb->protocol = cpu_to_be16(ETH_P_ARCNET); in ack_tx()
|
D | arc-rawmode.c | 126 skb->protocol = cpu_to_be16(ETH_P_ARCNET); in rx()
|
/linux-4.1.27/net/irda/ |
D | irmod.c | 49 .type = cpu_to_be16(ETH_P_IRDA),
|
/linux-4.1.27/drivers/staging/iio/impedance-analyzer/ |
D | ad5933.c | 261 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.1.27/drivers/usb/wusbcore/ |
D | crypto.c | 242 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.1.27/fs/logfs/ |
D | journal.c | 275 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.1.27/drivers/infiniband/hw/mlx5/ |
D | ah.c | 47 ah->av.rlid = cpu_to_be16(ah_attr->dlid); in create_ib_ah()
|
D | qp.c | 789 (*in)->ctx.sq_crq_size |= cpu_to_be16(1 << 4); in create_kernel_qp() 994 in->ctx.sq_crq_size |= cpu_to_be16(ilog2(qp->sq.wqe_cnt) << 11); in create_qp_common() 996 in->ctx.sq_crq_size |= cpu_to_be16(0x8000); in create_qp_common() 1391 path->rlid = cpu_to_be16(ah->dlid); in mlx5_set_path() 1708 context->sq_crq_size |= cpu_to_be16(1 << 4); in __mlx5_ib_modify_qp() 1867 return cpu_to_be16(ALIGN(npages, 8) / 2); in get_klm_octo() 2158 inl->vld_refresh = cpu_to_be16(MLX5_BSF_INL_VALID | in mlx5_fill_inl_bsf() 2160 inl->dif_apptag = cpu_to_be16(domain->sig.dif.app_tag); in mlx5_fill_inl_bsf() 2178 cpu_to_be16(domain->sig.dif.apptag_check_mask); in mlx5_fill_inl_bsf() 2306 sblock_ctrl->num_entries = cpu_to_be16(2); in set_sig_data_segment() [all …]
|
D | mad.c | 103 out_mad->mad_hdr.status |= cpu_to_be16(1 << 15); in mlx5_ib_process_mad()
|
D | srq.c | 182 cpu_to_be16((i + 1) & (srq->msrq.max - 1)); in create_srq_kernel() 420 next->next_wqe_index = cpu_to_be16(wqe_index); in mlx5_ib_free_srq_wqe()
|
D | cq.c | 791 cqb->ctx.c_eqn = cpu_to_be16(eqn); in mlx5_ib_create_cq() 933 in->ctx.cq_period = cpu_to_be16(cq_period); in mlx5_ib_modify_cq() 934 in->ctx.cq_max_count = cpu_to_be16(cq_count); in mlx5_ib_modify_cq() 1130 in->hdr.opmod = cpu_to_be16(MLX5_CQ_OPMOD_RESIZE); in mlx5_ib_resize_cq()
|
/linux-4.1.27/arch/arm64/crypto/ |
D | aes-ce-ccm-glue.c | 117 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.1.27/drivers/block/drbd/ |
D | drbd_actlog.c | 508 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.1.27/net/802/ |
D | psnap.c | 55 .type = cpu_to_be16(ETH_P_SNAP), in snap_rcv()
|
/linux-4.1.27/drivers/crypto/ |
D | talitos.c | 75 talitos_ptr->len = cpu_to_be16(len); in map_single_talitos_ptr() 912 link_tbl_ptr->len = cpu_to_be16(sg_dma_len(sg)); in sg_to_link_tbl() 928 link_tbl_ptr->len = cpu_to_be16(be16_to_cpu(link_tbl_ptr->len) in sg_to_link_tbl() 960 desc->ptr[1].len = cpu_to_be16(areq->assoclen + ivsize); in ipsec_esp() 978 tbl_ptr->len = cpu_to_be16(ivsize); in ipsec_esp() 994 desc->ptr[2].len = cpu_to_be16(ivsize); in ipsec_esp() 1010 desc->ptr[4].len = cpu_to_be16(cryptlen); in ipsec_esp() 1042 desc->ptr[5].len = cpu_to_be16(cryptlen); in ipsec_esp() 1066 tbl_ptr->len = cpu_to_be16(authsize); in ipsec_esp() 1383 desc->ptr[1].len = cpu_to_be16(ivsize); in common_nonsnoop() [all …]
|
/linux-4.1.27/drivers/net/usb/ |
D | sierra_net.c | 197 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.1.27/arch/powerpc/perf/ |
D | hv-24x7.c | 1090 req->data_size = cpu_to_be16(8); in add_event_to_24x7_request() 1092 req->starting_lpar_ix = cpu_to_be16(event_get_lpar(event)), in add_event_to_24x7_request() 1093 req->max_num_lpars = cpu_to_be16(1); in add_event_to_24x7_request() 1094 req->starting_ix = cpu_to_be16(idx); in add_event_to_24x7_request() 1095 req->max_ix = cpu_to_be16(1); in add_event_to_24x7_request()
|
D | hv-gpci.c | 148 .secondary_index = cpu_to_be16(secondary_index), in single_gpci_request()
|
/linux-4.1.27/drivers/nfc/ |
D | port100.c | 525 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.1.27/fs/ufs/ |
D | swab.h | 94 return (__force __fs16)cpu_to_be16(n); in cpu_to_fs16()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | port.c | 520 *(__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()
|
D | en_rx.c | 740 if (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPV4)) in check_csum() 743 else if (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPV6)) in check_csum() 851 if (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_TCP | in mlx4_en_process_rx_cq() 853 if ((cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPOK)) && in mlx4_en_process_rx_cq() 854 cqe->checksum == cpu_to_be16(0xffff)) { in mlx4_en_process_rx_cq() 863 (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPV4 | in mlx4_en_process_rx_cq()
|
D | cq.c | 175 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()
|
D | en_ethtool.c | 47 #define EN_ETHTOOL_SHORT_MASK cpu_to_be16(0xffff) 1266 !((cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow() 1268 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow() 1269 cpu_to_be16(VLAN_VID_MASK))) in mlx4_en_validate_flow() 1295 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) { in mlx4_en_ethtool_add_mac_rule() 1297 spec_l2->eth.vlan_id_msk = cpu_to_be16(VLAN_VID_MASK); in mlx4_en_ethtool_add_mac_rule()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
D | mthca_av.c | 203 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.1.27/drivers/staging/fwserial/ |
D | fwserial.c | 1651 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.1.27/drivers/media/rc/ |
D | redrat3.c | 783 irdata->header.length = cpu_to_be16(sendbuf_len - in redrat3_transmit_ir() 785 irdata->header.transfer_type = cpu_to_be16(RR3_MOD_SIGNAL_OUT); in redrat3_transmit_ir() 787 irdata->mod_freq_count = cpu_to_be16(mod_freq_to_val(rr3->carrier)); in redrat3_transmit_ir() 789 irdata->sig_size = cpu_to_be16(count + RR3_TX_TRAILER_LEN); in redrat3_transmit_ir()
|
/linux-4.1.27/arch/sh/kernel/ |
D | iomap.c | 58 __raw_writew(cpu_to_be16(val), addr); in iowrite16be()
|
/linux-4.1.27/fs/qnx6/ |
D | qnx6.h | 122 return (__force __fs16)cpu_to_be16(n); in cpu_to_fs16()
|
/linux-4.1.27/fs/jbd2/ |
D | recovery.c | 218 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()
|
D | commit.c | 362 tag->t_checksum = cpu_to_be16(csum32); in jbd2_block_tag_csum_set() 697 tag->t_flags = cpu_to_be16(tag_flag); in jbd2_journal_commit_transaction() 724 tag->t_flags |= cpu_to_be16(JBD2_FLAG_LAST_TAG); in jbd2_journal_commit_transaction()
|
/linux-4.1.27/drivers/scsi/aic94xx/ |
D | aic94xx_tmf.c | 460 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.1.27/block/ |
D | t10-pi.c | 36 return cpu_to_be16(crc_t10dif(data, len)); in t10_pi_crc_fn()
|
/linux-4.1.27/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_wireless.c | 1800 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.1.27/net/rds/ |
D | bind.c | 129 if (!rds_bind_lookup(addr, cpu_to_be16(rover), rs)) { in rds_add_bound()
|
/linux-4.1.27/arch/mips/lib/ |
D | iomap.c | 79 __raw_writew(cpu_to_be16(val), addr); in iowrite16be()
|
/linux-4.1.27/drivers/iio/gyro/ |
D | adis16080.c | 66 st->buf = cpu_to_be16(addr | ADIS16080_DIN_WRITE); in adis16080_read_sample()
|
/linux-4.1.27/arch/arm/include/asm/ |
D | kvm_emulate.h | 230 return cpu_to_be16(data & 0xffff); in vcpu_data_host_to_guest()
|
/linux-4.1.27/drivers/net/wimax/i2400m/ |
D | netdev.c | 514 cpu_to_be16(ETH_P_IP)); in i2400m_net_rx() 567 cpu_to_be16(ETH_P_IP)); in i2400m_net_erx()
|
/linux-4.1.27/drivers/net/ppp/ |
D | pppoe.c | 534 .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.1.27/drivers/mtd/maps/ |
D | ixp4xx.c | 66 __raw_writew(cpu_to_be16(d), (void __iomem *)((unsigned long)addr ^ 0x2)); in flash_write16()
|
/linux-4.1.27/drivers/ide/ |
D | ide-floppy.c | 186 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.1.27/drivers/iio/accel/ |
D | mma9551_core.c | 333 __be16 v = cpu_to_be16(val); in mma9551_write_config_word() 480 be_buf[i] = cpu_to_be16(buf[i]); in mma9551_write_config_words()
|
/linux-4.1.27/drivers/hid/ |
D | hid-cp2112.c | 362 report.length = cpu_to_be16(size); in cp2112_read() 396 report->length = cpu_to_be16(length); in cp2112_read_req() 411 report->length = cpu_to_be16(length); in cp2112_write_read_req() 1007 config.retry_time = cpu_to_be16(1); in cp2112_probe()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
D | d3.c | 409 pkt->eth.h_proto = cpu_to_be16(ETH_P_IP), in iwl_mvm_build_tcp_packet() 423 pkt->tcp.source = cpu_to_be16(tcp->src_port); in iwl_mvm_build_tcp_packet() 424 pkt->tcp.dest = cpu_to_be16(tcp->dst_port); in iwl_mvm_build_tcp_packet() 427 pkt->tcp.window = cpu_to_be16(65000); in iwl_mvm_build_tcp_packet() 436 pkt->tcp.source = cpu_to_be16(tcp->dst_port); in iwl_mvm_build_tcp_packet() 437 pkt->tcp.dest = cpu_to_be16(tcp->src_port); in iwl_mvm_build_tcp_packet() 481 pkt->ip.tot_len = cpu_to_be16(ip_tot_len); in iwl_mvm_build_tcp_packet()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
D | fweh.h | 265 if (skb->protocol != cpu_to_be16(ETH_P_LINK_CTL)) in brcmf_fweh_process_skb()
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | kvm_emulate.h | 273 return cpu_to_be16(data & 0xffff); in vcpu_data_host_to_guest()
|
D | io.h | 181 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); })
|
/linux-4.1.27/drivers/gpu/drm/udl/ |
D | udl_transfer.c | 166 *(uint16_t *)cmd = cpu_to_be16(pixel_val16); in udl_compress_hline16()
|
/linux-4.1.27/net/sched/ |
D | act_csum.c | 513 case cpu_to_be16(ETH_P_IP): in tcf_csum() 517 case cpu_to_be16(ETH_P_IPV6): in tcf_csum()
|
/linux-4.1.27/fs/affs/ |
D | inode.c | 201 tail->uid = cpu_to_be16(uid); in affs_write_inode() 203 tail->gid = cpu_to_be16(gid); in affs_write_inode()
|
/linux-4.1.27/drivers/usb/atm/ |
D | ueagle-atm.c | 1025 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.1.27/fs/sysv/ |
D | sysv.h | 235 return (__force __fs16)cpu_to_be16(n); in cpu_to_fs16()
|
/linux-4.1.27/drivers/net/ethernet/ |
D | dnet.c | 92 *((__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.1.27/drivers/regulator/ |
D | ad5398.c | 59 val = cpu_to_be16(data); in ad5398_write_reg()
|
/linux-4.1.27/drivers/usb/gadget/legacy/ |
D | tcm_usb_gadget.c | 563 iu->tag = cpu_to_be16(cmd->tag); in uasp_prepare_status() 568 iu->len = cpu_to_be16(se_cmd->scsi_sense_length); in uasp_prepare_status() 633 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_status_response() 650 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_read_response() 666 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_read_response() 695 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_write_request() 709 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_write_request()
|
/linux-4.1.27/fs/ocfs2/cluster/ |
D | tcp.c | 978 msg->magic = cpu_to_be16(O2NET_MSG_MAGIC); in o2net_init_msg() 979 msg->data_len = cpu_to_be16(data_len); in o2net_init_msg() 980 msg->msg_type = cpu_to_be16(msg_type); in o2net_init_msg() 1173 hdr->magic = cpu_to_be16(O2NET_MSG_STATUS_MAGIC); // twiddle the magic in o2net_send_status_magic() 2182 o2net_keep_req->magic = cpu_to_be16(O2NET_MSG_KEEP_REQ_MAGIC); in o2net_init() 2183 o2net_keep_resp->magic = cpu_to_be16(O2NET_MSG_KEEP_RESP_MAGIC); in o2net_init()
|
/linux-4.1.27/arch/x86/platform/olpc/ |
D | olpc.c | 235 __be16 ec_word = cpu_to_be16(bits); in olpc_ec_mask_write()
|
/linux-4.1.27/net/can/ |
D | af_can.c | 877 .type = cpu_to_be16(ETH_P_CAN), 882 .type = cpu_to_be16(ETH_P_CANFD),
|
/linux-4.1.27/drivers/misc/genwqe/ |
D | card_ddcb.c | 605 pddcb->seqnum_16 = cpu_to_be16(queue->ddcb_seq++); in get_next_ddcb() 824 pddcb->cmdopts_16 = cpu_to_be16(req->cmd.cmdopts); in __genwqe_enqueue_ddcb() 1070 pddcb->retc_16 = cpu_to_be16(0xfff); in setup_ddcb_queue()
|
/linux-4.1.27/drivers/net/wireless/ath/wil6210/ |
D | txrx.c | 852 (skb->protocol != cpu_to_be16(ETH_P_PAE))) in wil_find_tx_ucast() 898 (skb->protocol != cpu_to_be16(ETH_P_PAE))) in wil_find_tx_vring_sta() 1066 case cpu_to_be16(ETH_P_IP): in wil_tx_desc_offload_cksum_set() 1070 case cpu_to_be16(ETH_P_IPV6): in wil_tx_desc_offload_cksum_set()
|
/linux-4.1.27/drivers/memstick/core/ |
D | ms_block.c | 796 msb->regs.param.block_address = cpu_to_be16(pba); in msb_set_overwrite_flag() 834 msb->regs.param.block_address = cpu_to_be16(pba); in msb_erase_block() 907 msb->regs.param.block_address = cpu_to_be16(pba); in msb_read_page() 954 msb->regs.param.block_address = cpu_to_be16(pba); in msb_read_oob() 1039 msb->regs.param.block_address = cpu_to_be16(pba); in msb_write_block() 1043 msb->regs.extra_data.logical_address = cpu_to_be16(lba); in msb_write_block()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/ |
D | rc.c | 216 !(skb->protocol == cpu_to_be16(ETH_P_PAE))) { in rtl_tx_status()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
D | opal-lpc.c | 330 data = cpu_to_be16(data); in lpc_debug_write()
|
/linux-4.1.27/arch/mn10300/include/asm/ |
D | io.h | 202 #define iowrite16be(v, addr) writew(cpu_to_be16(v), (addr))
|