Lines Matching refs:nent
110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; in get_eqe()
124 return !!(eqe->owner & 0x80) ^ !!(eq->cons_index & eq->nent) ? NULL : eqe; in next_eqe_sw()
759 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
762 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
784 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
786 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
796 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
799 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
952 static int mlx4_create_eq(struct mlx4_dev *dev, int nent, in mlx4_create_eq() argument
966 eq->nent = roundup_pow_of_two(max(nent, 2)); in mlx4_create_eq()
970 npages = PAGE_ALIGN(eq->nent * dev->caps.eqe_size) / PAGE_SIZE; in mlx4_create_eq()
1023 eq_context->log_eq_size = ilog2(eq->nent); in mlx4_create_eq()
1082 int npages = PAGE_ALIGN(dev->caps.eqe_size * eq->nent) / PAGE_SIZE; in mlx4_free_eq()