Home
last modified time | relevance | path

Searched refs:mad_size (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Dmad.c570 return sizeof(struct ib_mad_private) + mp->mad_size; in mad_priv_size()
573 static struct ib_mad_private *alloc_mad_private(size_t mad_size, gfp_t flags) in alloc_mad_private() argument
575 size_t size = sizeof(struct ib_mad_private) + mad_size; in alloc_mad_private()
579 ret->mad_size = mad_size; in alloc_mad_private()
591 return sizeof(struct ib_grh) + mp->mad_size; in mad_priv_dma_size()
614 size_t mad_size = port_mad_size(mad_agent_priv->qp_info->port_priv); in handle_outgoing_dr_smp() local
687 mad_priv = alloc_mad_private(mad_size, GFP_ATOMIC); in handle_outgoing_dr_smp()
708 (struct ib_mad *)mad_priv->mad, &mad_size, in handle_outgoing_dr_smp()
733 memcpy(mad_priv->mad, smp, mad_priv->mad_size); in handle_outgoing_dr_smp()
758 local->return_wc_byte_len = mad_size; in handle_outgoing_dr_smp()
[all …]
H A Dmad_priv.h80 size_t mad_size; member
H A Dsysfs.c478 size_t mad_size = sizeof(*out_mad); in get_perf_mad() local
502 in_mad, out_mad, &mad_size, in get_perf_mad()