Lines Matching refs:members_count

154 	u32 members_count;  in new_steering_entry()  local
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()
211 if (members_count == dev->caps.num_qp_per_mgm) { 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()
332 u32 *members_count) in promisc_steering_entry() argument
350 m_count = be32_to_cpu(mgm->members_count) & 0xffffff; in promisc_steering_entry()
351 if (members_count) in promisc_steering_entry()
352 *members_count = m_count; in promisc_steering_entry()
374 u32 members_count; in can_remove_steering_entry() local
383 tqpn, &members_count)) in can_remove_steering_entry()
392 members_count == 1) { in can_remove_steering_entry()
427 u32 members_count; in add_promisc_qp() local
472 members_count = be32_to_cpu(mgm->members_count) & in add_promisc_qp()
474 prot = be32_to_cpu(mgm->members_count) >> 30; in add_promisc_qp()
476 for (i = 0; i < members_count; i++) { in add_promisc_qp()
495 if (members_count == in add_promisc_qp()
501 mgm->qp[members_count++] = in add_promisc_qp()
503 mgm->members_count = in add_promisc_qp()
504 cpu_to_be32(members_count | in add_promisc_qp()
518 members_count = 0; in add_promisc_qp()
520 if (members_count == dev->caps.num_qp_per_mgm) { in add_promisc_qp()
525 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in add_promisc_qp()
527 mgm->members_count = cpu_to_be32(members_count | MLX4_PROT_ETH << 30); in add_promisc_qp()
558 u32 members_count; in remove_promisc_qp() local
589 members_count = 0; in remove_promisc_qp()
591 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in remove_promisc_qp()
592 mgm->members_count = cpu_to_be32(members_count | MLX4_PROT_ETH << 30); in remove_promisc_qp()
624 members_count = in remove_promisc_qp()
625 be32_to_cpu(mgm->members_count) & in remove_promisc_qp()
627 if (!members_count) { in remove_promisc_qp()
635 for (i = 0; i < members_count; ++i) in remove_promisc_qp()
652 mgm->qp[loc] = mgm->qp[members_count - 1]; in remove_promisc_qp()
653 mgm->qp[members_count - 1] = 0; in remove_promisc_qp()
654 mgm->members_count = in remove_promisc_qp()
655 cpu_to_be32(--members_count | in remove_promisc_qp()
730 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) { in find_entry()
739 be32_to_cpu(mgm->members_count) >> 30 == prot) in find_entry()
1111 u32 members_count; in mlx4_qp_attach_common() local
1131 if (!(be32_to_cpu(mgm->members_count) & 0xffffff)) { in mlx4_qp_attach_common()
1151 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in mlx4_qp_attach_common()
1152 if (members_count == dev->caps.num_qp_per_mgm) { in mlx4_qp_attach_common()
1158 for (i = 0; i < members_count; ++i) in mlx4_qp_attach_common()
1166 mgm->qp[members_count++] = cpu_to_be32((qp->qpn & MGM_QPN_MASK) | in mlx4_qp_attach_common()
1169 mgm->qp[members_count++] = cpu_to_be32(qp->qpn & MGM_QPN_MASK); in mlx4_qp_attach_common()
1171 mgm->members_count = cpu_to_be32(members_count | (u32) prot << 30); in mlx4_qp_attach_common()
1220 u32 members_count; in mlx4_qp_detach_common() local
1253 members_count = be32_to_cpu(mgm->members_count) & 0xffffff; in mlx4_qp_detach_common()
1254 for (i = 0; i < members_count; ++i) in mlx4_qp_detach_common()
1267 mgm->qp[loc] = mgm->qp[members_count - 1]; in mlx4_qp_detach_common()
1268 mgm->qp[members_count - 1] = 0; in mlx4_qp_detach_common()
1269 mgm->members_count = cpu_to_be32(--members_count | (u32) prot << 30); in mlx4_qp_detach_common()
1274 if (members_count && (prot != MLX4_PROT_ETH || !removed_entry)) { in mlx4_qp_detach_common()
1280 mgm->members_count = cpu_to_be32((u32) prot << 30); in mlx4_qp_detach_common()