Home
last modified time | relevance | path

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

1234

/freebsd/sys/ofed/include/rdma/
H A Dib_pma.h45 #define IB_PMA_CLASS_CAP_ALLPORTSELECT cpu_to_be16(1 << 8)
46 #define IB_PMA_CLASS_CAP_EXT_WIDTH cpu_to_be16(1 << 9)
47 #define IB_PMA_CLASS_CAP_EXT_WIDTH_NOIETF cpu_to_be16(1 << 10)
48 #define IB_PMA_CLASS_CAP_XMIT_WAIT cpu_to_be16(1 << 12)
50 #define IB_PMA_CLASS_PORT_INFO cpu_to_be16(0x0001)
51 #define IB_PMA_PORT_SAMPLES_CONTROL cpu_to_be16(0x0010)
52 #define IB_PMA_PORT_SAMPLES_RESULT cpu_to_be16(0x0011)
53 #define IB_PMA_PORT_COUNTERS cpu_to_be16(0x0012)
54 #define IB_PMA_PORT_COUNTERS_EXT cpu_to_be16(0x001D)
55 #define IB_PMA_PORT_SAMPLES_RESULT_EXT cpu_to_be16(0x001E)
[all …]
H A Dib_smi.h68 #define IB_SMP_DIRECTION cpu_to_be16(0x8000)
71 #define IB_SMP_ATTR_NOTICE cpu_to_be16(0x0002)
72 #define IB_SMP_ATTR_NODE_DESC cpu_to_be16(0x0010)
73 #define IB_SMP_ATTR_NODE_INFO cpu_to_be16(0x0011)
74 #define IB_SMP_ATTR_SWITCH_INFO cpu_to_be16(0x0012)
75 #define IB_SMP_ATTR_GUID_INFO cpu_to_be16(0x0014)
76 #define IB_SMP_ATTR_PORT_INFO cpu_to_be16(0x0015)
77 #define IB_SMP_ATTR_PKEY_TABLE cpu_to_be16(0x0016)
78 #define IB_SMP_ATTR_SL_TO_VL_TABLE cpu_to_be16(0x0017)
79 #define IB_SMP_ATTR_VL_ARB_TABLE cpu_to_be16(0x0018)
[all …]
H A Dopa_smi.h84 #define OPA_ATTRIB_ID_NODE_DESCRIPTION cpu_to_be16(0x0010)
85 #define OPA_ATTRIB_ID_NODE_INFO cpu_to_be16(0x0011)
86 #define OPA_ATTRIB_ID_PORT_INFO cpu_to_be16(0x0015)
87 #define OPA_ATTRIB_ID_PARTITION_TABLE cpu_to_be16(0x0016)
88 #define OPA_ATTRIB_ID_SL_TO_SC_MAP cpu_to_be16(0x0017)
89 #define OPA_ATTRIB_ID_VL_ARBITRATION cpu_to_be16(0x0018)
90 #define OPA_ATTRIB_ID_SM_INFO cpu_to_be16(0x0020)
91 #define OPA_ATTRIB_ID_CABLE_INFO cpu_to_be16(0x0032)
92 #define OPA_ATTRIB_ID_AGGREGATE cpu_to_be16(0x0080)
93 #define OPA_ATTRIB_ID_SC_TO_SL_MAP cpu_to_be16(0x0082)
[all …]
H A Dib_cm.h288 #define CM_REQ_ATTR_ID cpu_to_be16(0x0010)
289 #define CM_MRA_ATTR_ID cpu_to_be16(0x0011)
290 #define CM_REJ_ATTR_ID cpu_to_be16(0x0012)
291 #define CM_REP_ATTR_ID cpu_to_be16(0x0013)
292 #define CM_RTU_ATTR_ID cpu_to_be16(0x0014)
293 #define CM_DREQ_ATTR_ID cpu_to_be16(0x0015)
294 #define CM_DREP_ATTR_ID cpu_to_be16(0x0016)
295 #define CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017)
296 #define CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018)
297 #define CM_LAP_ATTR_ID cpu_to_be16(0x0019)
[all …]
H A Dib_mad.h144 #define IB_NOTICE_PROD_CA cpu_to_be16(1)
145 #define IB_NOTICE_PROD_SWITCH cpu_to_be16(2)
146 #define IB_NOTICE_PROD_ROUTER cpu_to_be16(3)
147 #define IB_NOTICE_PROD_CLASS_MGR cpu_to_be16(4)
242 #define IB_MGMT_CLASSPORTINFO_ATTR_ID cpu_to_be16(0x0001)
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_ah.c64 ah->av.ib.dlid = cpu_to_be16(ah_attr->dlid); in create_ib_ah()
111 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah()
124 ah->av.ib.dlid = cpu_to_be16(0xc000); in create_iboe_ah()
173 mah->av.eth.vlan = cpu_to_be16(vlan_tag); in mlx4_ib_create_ah_slave()
H A Dmlx4_ib_mcg.c290 mad.mad_hdr.status = cpu_to_be16(0); in send_leave_to_wire()
291 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_leave_to_wire()
294 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_leave_to_wire()
297 mad.sa_hdr.attr_offset = cpu_to_be16(7); in send_leave_to_wire()
331 mad.mad_hdr.status = cpu_to_be16(status); in send_reply_to_slave()
332 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_reply_to_slave()
335 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_reply_to_slave()
338 mad.sa_hdr.attr_offset = cpu_to_be16(7); in send_reply_to_slave()
H A Dmlx4_ib_srq.c151 cpu_to_be16((i + 1) & (srq->msrq.max - 1)); in mlx4_ib_create_srq()
300 next->next_wqe_index = cpu_to_be16(wqe_index); in mlx4_ib_free_srq_wqe()
H A Dmlx4_ib_cq.c561 return ((status & cpu_to_be16(MLX4_CQE_STATUS_IPV4 | in mlx4_ib_ipoib_csum_ok()
566 cpu_to_be16(MLX4_CQE_STATUS_IPV4 | in mlx4_ib_ipoib_csum_ok()
568 (status & cpu_to_be16(MLX4_CQE_STATUS_UDP | in mlx4_ib_ipoib_csum_ok()
570 checksum == cpu_to_be16(0xffff); in mlx4_ib_ipoib_csum_ok()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_ud_header.c356 header->lrh.packet_length = cpu_to_be16(packet_length); in ib_ud_header_init()
360 header->eth.type = cpu_to_be16(ETH_P_8021Q); in ib_ud_header_init()
365 cpu_to_be16((udp_bytes + in ib_ud_header_init()
378 cpu_to_be16(IB_IP4_BYTES + in ib_ud_header_init()
388 cpu_to_be16(IB_UDP_BYTES + in ib_ud_header_init()
H A Dib_sa_query.c940 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); in ib_sa_path_rec_get()
1065 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC); in ib_sa_service_rec_query()
1157 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in ib_sa_mcmember_rec_query()
1255 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_GUID_INFO_REC); in ib_sa_guid_info_rec_query()
1374 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_CLASS_PORTINFO); in ib_sa_classport_info_rec_query()
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_rx.c689 status_all = cpu_to_be16( in mlx4_en_rss_hash()
695 status_ipv4_tcp = cpu_to_be16( in mlx4_en_rss_hash()
698 status_ipv6_tcp = cpu_to_be16( in mlx4_en_rss_hash()
701 status_ipv4_udp = cpu_to_be16( in mlx4_en_rss_hash()
704 status_ipv6_udp = cpu_to_be16( in mlx4_en_rss_hash()
707 status_ipv4 = cpu_to_be16(MLX4_CQE_STATUS_IPV4), in mlx4_en_rss_hash()
708 status_ipv6 = cpu_to_be16(MLX4_CQE_STATUS_IPV6) in mlx4_en_rss_hash()
811 (cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPOK)) && in mlx4_en_process_rx_cq()
812 (cqe->checksum == cpu_to_be16(0xffff))) { in mlx4_en_process_rx_cq()
H A Den.h368 const __be16 status_all = cpu_to_be16( in mlx4_en_can_lro()
376 const __be16 status_ipv4_ipok_tcp = cpu_to_be16( in mlx4_en_can_lro()
380 const __be16 status_ipv6_ipok_tcp = cpu_to_be16( in mlx4_en_can_lro()
/freebsd/sys/compat/linuxkpi/common/include/asm/
H A Dbyteorder.h63 #define cpu_to_be16(x) __cpu_to_be16(x) macro
137 *var = cpu_to_be16(be16_to_cpu(*var) + val); in be16_add_cpu()
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dbyteorder.h63 #define BE_16(x) cpu_to_be16(x)
/freebsd/contrib/ofed/include/
H A Dbyteorder.h50 #define cpu_to_be16 htobe16 macro
/freebsd/sys/dev/mthca/
H A Dmthca_av.c203 av->dlid = cpu_to_be16(ah_attr->dlid); in mthca_create_ah()
274 header->lrh.source_lid = cpu_to_be16(ah->av->g_slid & 0x7f); in mthca_read_ah()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_cq.c129 cq_context->cq_max_count = cpu_to_be16(count); in mlx4_cq_modify()
130 cq_context->cq_period = cpu_to_be16(period); in mlx4_cq_modify()
H A Dmlx4_port.c1078 *(__be16 *) (&inbuf[16]) = cpu_to_be16(0x0015); in mlx4_get_port_ib_caps()
1325 gen_context->mtu = cpu_to_be16(master->max_mtu[port]); in mlx4_common_set_port()
1520 ((__be16 *) mailbox->buf)[20] = cpu_to_be16(pkey_tbl_sz); in mlx4_SET_PORT()
1557 context->mtu = cpu_to_be16(mtu); in mlx4_SET_PORT_general()
1961 inmad->attr_id = cpu_to_be16(0xFF60); /* Module Info */ in mlx4_get_module_info()
1977 cable_info->dev_mem_address = cpu_to_be16(offset); in mlx4_get_module_info()
1980 cable_info->size = cpu_to_be16(size); in mlx4_get_module_info()
/freebsd/sys/dev/cxgbe/common/
H A Dt4_hw.c5520 cmd.niqid = cpu_to_be16(nq); in t4_config_rss_range()
5521 cmd.startidx = cpu_to_be16(start); in t4_config_rss_range()
7119 cpu_to_be16(V_FW_FILTER_WR_RX_RPL_IQ(qid)); in t4_mk_filtdelwr()
7172 c.u.mdio.paddr_mmd = cpu_to_be16(V_FW_LDST_CMD_PADDR(phy_addr) | in t4_mdio_rd()
7174 c.u.mdio.raddr = cpu_to_be16(reg); in t4_mdio_rd()
7205 c.u.mdio.paddr_mmd = cpu_to_be16(V_FW_LDST_CMD_PADDR(phy_addr) | in t4_mdio_wr()
7207 c.u.mdio.raddr = cpu_to_be16(reg); in t4_mdio_wr()
7208 c.u.mdio.rval = cpu_to_be16(val); in t4_mdio_wr()
7910 c.type_to_viid = cpu_to_be16(V_FW_VI_CMD_TYPE(idstype) | in t4_alloc_vi_func()
7996 c.type_to_viid = cpu_to_be16(V_FW_VI_CMD_VIID(viid)); in t4_free_vi()
[all …]
/freebsd/sys/dev/axgbe/
H A Dxgbe_osdep.h51 #define cpu_to_be16(x) be16toh(x) macro
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_ah.c55 ah->av.rlid = cpu_to_be16(ah_attr->dlid); in create_ib_ah()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_sp.c271 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid()
272 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid()
273 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid()
431 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid()
432 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid()
433 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c224 ip4->ip_len = cpu_to_be16(tot_len); in mlx5e_lro_update_hdr()
246 ip6->ip6_plen = cpu_to_be16(tot_len - in mlx5e_lro_update_hdr()
498 title->wqe_counter = cpu_to_be16((wqe_counter + i) & cq->wq.sz_m1); in mlx5e_decompress_cqe()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_wq.c166 next_seg->next_wqe_index = cpu_to_be16(i + 1); in mlx5_wq_ll_create()

1234