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;
780 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",
782 eq->cons_index, eqe->owner, eq->nent,
785 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
805 "Unhandled recoverable error event detected: %02x(%02x) on EQ %d at index %u. owner=%x, nent=0x%x, ownership=%s\n",
807 eq->cons_index, eqe->owner, eq->nent,
809 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
817 mlx4_warn(dev, "Unhandled event %02x(%02x) on EQ %d at index %u. owner=%x, nent=0x%x, slave=%x, ownership=%s\n",
819 eq->cons_index, eqe->owner, eq->nent,
822 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
969 static int mlx4_create_eq(struct mlx4_dev *dev, int nent,
983 eq->nent = roundup_pow_of_two(max(nent, 2));
987 npages = PAGE_ALIGN(eq->nent * dev->caps.eqe_size) / PAGE_SIZE;
1038 eq_context->log_eq_size = ilog2(eq->nent);
1096 int npages = PAGE_ALIGN(dev->caps.eqe_size * eq->nent) / PAGE_SIZE;