Home
last modified time | relevance | path

Searched refs:be16_to_cpu (Results 1 – 25 of 64) sorted by relevance

123

/freebsd/sys/ofed/drivers/infiniband/util/
H A Dmadeye.c242 printk("Status.........0x%02x\n", be16_to_cpu(mad_hdr->status)); in print_mad_hdr()
244 print_status_details(be16_to_cpu(mad_hdr->status)); in print_mad_hdr()
245 printk("Class specific.0x%02x\n", be16_to_cpu(mad_hdr->class_specific)); in print_mad_hdr()
250 be16_to_cpu(mad_hdr->attr_id), in print_mad_hdr()
251 get_sa_attr(be16_to_cpu(mad_hdr->attr_id))); in print_mad_hdr()
254 be16_to_cpu(mad_hdr->attr_id)); in print_mad_hdr()
365 printk("Status.........0x%02x\n", be16_to_cpu(smp->status)); in print_smp()
367 print_status_details(be16_to_cpu(smp->status)); in print_smp()
372 printk("Attr ID........0x%02x (%s)\n", be16_to_cpu(smp->attr_id), in print_smp()
378 printk("DR SLID........0x%02x\n", be16_to_cpu(smp->dr_slid)); in print_smp()
[all …]
/freebsd/sys/dev/mlxfw/
H A Dmlxfw_mfa2_tlv.h61 tlv_top = (const u8 *) tlv + be16_to_cpu(tlv->len) - 1; in mlxfw_mfa2_tlv_payload_get()
67 if (varsize && (be16_to_cpu(tlv->len) < payload_size)) in mlxfw_mfa2_tlv_payload_get()
69 if (!varsize && (be16_to_cpu(tlv->len) != payload_size)) in mlxfw_mfa2_tlv_payload_get()
H A Dmlxfw_mfa2.c178 psid->psid, be16_to_cpu(tlv->len), true); in mlxfw_mfa2_file_dev_validate()
207 be16_to_cpu(cptr->component_index)); in mlxfw_mfa2_file_dev_validate()
245 pr_debug(" -- Component type %d\n", be16_to_cpu(cdesc->identifier)); in mlxfw_mfa2_file_comp_validate()
332 mfa2_file->dev_count = be16_to_cpu(pd->num_devices); in mlxfw_mfa2_file_init()
336 mfa2_file->component_count = be16_to_cpu(pd->num_components); in mlxfw_mfa2_file_init()
382 if (be16_to_cpu(tlv->len) != psid_size) in mlxfw_mfa2_tlv_dev_get()
554 comp_idx = be16_to_cpu(cptr->component_index); in mlxfw_mfa2_file_component_find()
584 comp_data->comp.index = be16_to_cpu(comp->identifier); in mlxfw_mfa2_file_component_get()
H A Dmlxfw_mfa2_tlv_multi.c37 NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len))
63 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); in mlxfw_mfa2_tlv_next()
H A Dmlxfw_mfa2_tlv_multi.h68 be16_to_cpu(multi->num_extensions) + 1)
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_cq.c505 be32_to_cpu(cqe->my_qpn), be16_to_cpu(cqe->wqe_index), in mlx4_ib_handle_error_cqe()
583 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data()
590 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data()
595 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data()
596 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
727 wqe_ctr = be16_to_cpu(cqe->wqe_index); in mlx4_ib_poll_one()
734 wqe_ctr = be16_to_cpu(cqe->wqe_index); in mlx4_ib_poll_one()
739 wqe_ctr = be16_to_cpu(cqe->wqe_index); in mlx4_ib_poll_one()
847 wc->sl = be16_to_cpu(cqe->sl_vid) >> 13; in mlx4_ib_poll_one()
850 wc->vlan_id = be16_to_cpu(cqe->sl_vid) & in mlx4_ib_poll_one()
[all …]
H A Dmlx4_ib_sysfs.c127 be16_to_cpu(((__be16 *) gid.raw)[0]), in show_port_gid()
128 be16_to_cpu(((__be16 *) gid.raw)[1]), in show_port_gid()
129 be16_to_cpu(((__be16 *) gid.raw)[2]), in show_port_gid()
130 be16_to_cpu(((__be16 *) gid.raw)[3]), in show_port_gid()
131 be16_to_cpu(((__be16 *) gid.raw)[4]), in show_port_gid()
132 be16_to_cpu(((__be16 *) gid.raw)[5]), in show_port_gid()
133 be16_to_cpu(((__be16 *) gid.raw)[6]), in show_port_gid()
134 be16_to_cpu(((__be16 *) gid.raw)[7])); in show_port_gid()
H A Dmlx4_ib_mad.c236 lid = be16_to_cpu(pinfo->lid); in smp_snoop()
239 be16_to_cpu(pinfo->sm_lid), in smp_snoop()
266 i + bn*32, be16_to_cpu(base[i])); in smp_snoop()
267 if (be16_to_cpu(base[i]) != in smp_snoop()
271 be16_to_cpu(base[i]); in smp_snoop()
418 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler()
780 be16_to_cpu(in_mad->mad_hdr.attr_id)); in ib_process_mad()
791 slid = in_wc ? in_wc->slid : be16_to_cpu(IB_LID_PERMISSIVE); in ib_process_mad()
1166 u16 lid = be16_to_cpu(eqe->event.port_mgmt_change.params.port_info.mstr_sm_lid); in handle_port_mgmt_change_event()
1305 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_multiplex_sa_handler()
[all …]
H A Dmlx4_ib_ah.c191 ah_attr->dlid = ll == IB_LINK_LAYER_INFINIBAND ? be16_to_cpu(ah->av.ib.dlid) : 0; in mlx4_ib_query_ah()
/freebsd/sys/dev/mthca/
H A Dmthca_mad.c118 u16 lid = be16_to_cpu(pinfo->lid); in smp_snoop()
122 be16_to_cpu(pinfo->sm_lid), in smp_snoop()
207 u16 slid = in_wc ? in_wc->slid : be16_to_cpu(IB_LID_PERMISSIVE); in mthca_process_mad()
H A Dmthca_srq.c409 srq_attr->srq_limit = be16_to_cpu(arbel_ctx->limit_watermark); in mthca_query_srq()
412 srq_attr->srq_limit = be16_to_cpu(tavor_ctx->limit_watermark); in mthca_query_srq()
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_fs.c53 be16_to_cpu(((__be16 *) gid->raw)[i])); in format_gid()
223 be16_to_cpu(path.pathrec.dlid), in ipoib_path_seq_show()
H A Dipoib_multicast.c186 ret = ipoib_mcast_attach(priv, be16_to_cpu(mcast->mcmember.mlid), in ipoib_mcast_join_finish()
199 .dlid = be16_to_cpu(mcast->mcmember.mlid), in ipoib_mcast_join_finish()
224 be16_to_cpu(mcast->mcmember.mlid), in ipoib_mcast_join_finish()
619 be16_to_cpu(mcast->mcmember.mlid)); in ipoib_mcast_leave()
/freebsd/sys/compat/linuxkpi/common/include/asm/
H A Dbyteorder.h65 #define be16_to_cpu(x) __be16_to_cpu(x) macro
137 *var = cpu_to_be16(be16_to_cpu(*var) + val); in be16_add_cpu()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_cq.c187 wqe_ctr = be16_to_cpu(cqe->wqe_counter); in handle_responder()
238 wc->slid = be16_to_cpu(cqe->slid); in handle_responder()
247 wc->vlan_id = (be16_to_cpu(cqe->vlan_info)) & 0xfff; in handle_responder()
248 wc->sl = (be16_to_cpu(cqe->vlan_info) >> 13) & 0x7; in handle_responder()
408 u16 syndrome = be16_to_cpu(cqe->syndrome); in get_sig_err_item()
574 wqe_ctr = be16_to_cpu(cqe64->wqe_counter); in mlx5_poll_one()
602 wqe_ctr = be16_to_cpu(cqe64->wqe_counter); in mlx5_poll_one()
611 wqe_ctr = be16_to_cpu(cqe64->wqe_counter); in mlx5_poll_one()
1063 mlx5_ib_free_srq_wqe(srq, be16_to_cpu(cqe64->wqe_counter)); in __mlx5_ib_cq_clean()
H A Dmlx5_ib_mad.c64 slid = in_wc ? in_wc->slid : be16_to_cpu(IB_LID_PERMISSIVE); in process_mad()
277 packet_error = be16_to_cpu(out_mad->status); in mlx5_query_ext_port_caps()
445 *pkey = be16_to_cpu(((__be16 *)out_mad->data)[index % 32]); in mlx5_query_mad_ifc_pkey()
H A Dmlx5_ib_ah.c115 ah_attr->dlid = be16_to_cpu(ah->av.rlid); in mlx5_ib_query_ah()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c1220 be16_to_cpu(((__be16 *) &dev->attrs.sys_image_guid)[0]), in show_sys_image_guid()
1221 be16_to_cpu(((__be16 *) &dev->attrs.sys_image_guid)[1]), in show_sys_image_guid()
1222 be16_to_cpu(((__be16 *) &dev->attrs.sys_image_guid)[2]), in show_sys_image_guid()
1223 be16_to_cpu(((__be16 *) &dev->attrs.sys_image_guid)[3])); in show_sys_image_guid()
1232 be16_to_cpu(((__be16 *) &dev->node_guid)[0]), in show_node_guid()
1233 be16_to_cpu(((__be16 *) &dev->node_guid)[1]), in show_node_guid()
1234 be16_to_cpu(((__be16 *) &dev->node_guid)[2]), in show_node_guid()
1235 be16_to_cpu(((__be16 *) &dev->node_guid)[3])); in show_node_guid()
H A Dib_multicast.c399 be16_to_cpu(group->rec.pkey), &pkey_index); in process_group_error()
527 be16_to_cpu(rec->pkey), &pkey_index)) in join_handler()
747 ah_attr->dlid = be16_to_cpu(rec->mlid); in ib_init_ah_from_mcmember()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c122 mlx5_wq_ll_push(&rq->wq, be16_to_cpu(wqe->next.next_wqe_index)); in mlx5e_post_rx_wqes()
392 mb->m_pkthdr.ether_vtag = be16_to_cpu(cqe->vlan_info); in mlx5e_build_rx_mbuf()
478 title_wqe_counter = be16_to_cpu(title.wqe_counter); in mlx5e_decompress_cqes()
527 wqe_counter = be16_to_cpu(wqe_counter_be); in mlx5e_poll_rx_cq()
/freebsd/contrib/ofed/include/
H A Dbyteorder.h51 #define be16_to_cpu be16toh macro
/freebsd/sys/dev/axgbe/
H A Dxgbe_osdep.h52 #define be16_to_cpu(x) htobe16(x) macro
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_eq.c339 u16 func_id = be16_to_cpu(eqe->data.req_pages.func_id); in mlx5_eq_int()
356 u16 vport_num = be16_to_cpu(vc_eqe->vport_num); in mlx5_eq_int()
/freebsd/sys/dev/mlx5/
H A Ddevice.h116 #define MLX5_GET16(typ, p, fld) ((be16_to_cpu(*((__be16 *)(p) +\
124 cpu_to_be16((be16_to_cpu(*((__be16 *)(p) + __mlx5_16_off(typ, fld))) & \
755 return be16_to_cpu(cqe->vlan_info) & 0xfff; in get_cqe_vlan()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_srq.c264 *limit_watermark = be16_to_cpu(srq_context->limit_watermark); in mlx4_srq_query()

123