Home
last modified time | relevance | path

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

/drivers/infiniband/core/
Dmad.c564 return sizeof(struct ib_mad_private) + mp->mad_size; in mad_priv_size()
567 static struct ib_mad_private *alloc_mad_private(size_t mad_size, gfp_t flags) in alloc_mad_private() argument
569 size_t size = sizeof(struct ib_mad_private) + mad_size; in alloc_mad_private()
573 ret->mad_size = mad_size; in alloc_mad_private()
585 return sizeof(struct ib_grh) + mp->mad_size; in mad_priv_dma_size()
608 size_t mad_size = port_mad_size(mad_agent_priv->qp_info->port_priv); in handle_outgoing_dr_smp() local
681 mad_priv = alloc_mad_private(mad_size, GFP_ATOMIC); in handle_outgoing_dr_smp()
702 (struct ib_mad *)mad_priv->mad, &mad_size, in handle_outgoing_dr_smp()
726 memcpy(mad_priv->mad, smp, mad_priv->mad_size); in handle_outgoing_dr_smp()
751 local->return_wc_byte_len = mad_size; in handle_outgoing_dr_smp()
[all …]
Dmad_priv.h80 size_t mad_size; member
Dsysfs.c559 size_t mad_size = sizeof(*out_mad); in get_perf_mad() local
583 in_mad, out_mad, &mad_size, in get_perf_mad()