Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_mcg.c68 struct mthca_mgm *mgm = mgm_mailbox->buf; in find_mgm() local
98 if (!memcmp(mgm->gid, zero_gid, 16)) { in find_mgm()
106 if (!memcmp(mgm->gid, gid, 16)) in find_mgm()
110 *index = be32_to_cpu(mgm->next_gid_index) >> 6; in find_mgm()
124 struct mthca_mgm *mgm; in mthca_multicast_attach() local
134 mgm = mailbox->buf; in mthca_multicast_attach()
143 if (!memcmp(mgm->gid, zero_gid, 16)) in mthca_multicast_attach()
144 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach()
160 memset(mgm, 0, sizeof *mgm); in mthca_multicast_attach()
161 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c153 struct mlx4_mgm *mgm; in new_steering_entry() local
199 mgm = mailbox->buf; in new_steering_entry()
205 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in new_steering_entry()
206 prot = be32_to_cpu(mgm->members_count) >> 30; in new_steering_entry()
218 mgm->qp[members_count++] = cpu_to_be32(pqp->qpn & MGM_QPN_MASK); in new_steering_entry()
221 mgm->members_count = cpu_to_be32(members_count | (prot << 30)); in new_steering_entry()
335 struct mlx4_mgm *mgm; in promisc_steering_entry() local
346 mgm = mailbox->buf; in promisc_steering_entry()
350 m_count = be32_to_cpu(mgm->members_count) & 0xffffff; in promisc_steering_entry()
355 u32 qpn = be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK; in promisc_steering_entry()
[all …]
Dfw.c2709 struct mlx4_mgm *mgm; in mlx4_opreq_action() local
2755 mgm = (struct mlx4_mgm *)((u8 *)(outbox) + in mlx4_opreq_action()
2757 num_qps = be32_to_cpu(mgm->members_count) & in mlx4_opreq_action()
2759 rem_mcg = ((u8 *)(&mgm->members_count))[0] & 1; in mlx4_opreq_action()
2760 prot = ((u8 *)(&mgm->members_count))[0] >> 6; in mlx4_opreq_action()
2763 qp.qpn = be32_to_cpu(mgm->qp[i]); in mlx4_opreq_action()
2766 mgm->gid, in mlx4_opreq_action()
2770 mgm->gid, in mlx4_opreq_action()
2771 mgm->gid[5] in mlx4_opreq_action()