Searched refs:mad_size (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/infiniband/core/ |
D | mad.c | 779 return sizeof(struct ib_mad_private) + mp->mad_size; in mad_priv_size() 782 static struct ib_mad_private *alloc_mad_private(size_t mad_size, gfp_t flags) in alloc_mad_private() argument 784 size_t size = sizeof(struct ib_mad_private) + mad_size; in alloc_mad_private() 788 ret->mad_size = mad_size; in alloc_mad_private() 800 return sizeof(struct ib_grh) + mp->mad_size; in mad_priv_dma_size() 823 size_t mad_size = port_mad_size(mad_agent_priv->qp_info->port_priv); in handle_outgoing_dr_smp() local 896 mad_priv = alloc_mad_private(mad_size, GFP_ATOMIC); in handle_outgoing_dr_smp() 916 (const struct ib_mad_hdr *)smp, mad_size, in handle_outgoing_dr_smp() 918 &mad_size, &out_mad_pkey_index); in handle_outgoing_dr_smp() 942 memcpy(mad_priv->mad, smp, mad_priv->mad_size); in handle_outgoing_dr_smp() [all …]
|
D | mad_priv.h | 80 size_t mad_size; member
|
D | sysfs.c | 477 size_t mad_size = sizeof(*out_mad); in get_perf_mad() local 502 (const struct ib_mad_hdr *)in_mad, mad_size, in get_perf_mad() 503 (struct ib_mad_hdr *)out_mad, &mad_size, in get_perf_mad()
|