Lines Matching refs:nent
109 /* (entry & (eq->nent - 1)) gives us a cyclic array */
110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size;
124 return !!(eqe->owner & 0x80) ^ !!(eq->cons_index & eq->nent) ? NULL : eqe;
781 mlx4_warn(dev, "Unhandled event FATAL WARNING (%02x), subtype %02x on EQ %d at index %u. owner=%x, nent=0x%x, slave=%x, ownership=%s\n",
783 eq->cons_index, eqe->owner, eq->nent,
786 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
806 "Unhandled recoverable error event detected: %02x(%02x) on EQ %d at index %u. owner=%x, nent=0x%x, ownership=%s\n",
808 eq->cons_index, eqe->owner, eq->nent,
810 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
818 mlx4_warn(dev, "Unhandled event %02x(%02x) on EQ %d at index %u. owner=%x, nent=0x%x, slave=%x, ownership=%s\n",
820 eq->cons_index, eqe->owner, eq->nent,
823 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
970 static int mlx4_create_eq(struct mlx4_dev *dev, int nent,
984 eq->nent = roundup_pow_of_two(max(nent, 2));
988 npages = PAGE_ALIGN(eq->nent * dev->caps.eqe_size) / PAGE_SIZE;
1039 eq_context->log_eq_size = ilog2(eq->nent);
1097 int npages = PAGE_ALIGN(dev->caps.eqe_size * eq->nent) / PAGE_SIZE;