Searched refs:uuarn (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/drivers/infiniband/hw/mlx5/
H A Dqp.c489 int uuarn = -EINVAL; alloc_uuar() local
494 uuarn = 0; alloc_uuar()
495 uuari->count[uuarn]++; alloc_uuar()
500 uuarn = -ENOMEM; alloc_uuar()
502 uuarn = alloc_med_class_uuar(uuari); alloc_uuar()
507 uuarn = -ENOMEM; alloc_uuar()
509 uuarn = alloc_high_class_uuar(uuari); alloc_uuar()
513 uuarn = 2; alloc_uuar()
518 return uuarn; alloc_uuar()
521 static void free_med_class_uuar(struct mlx5_uuar_info *uuari, int uuarn) free_med_class_uuar() argument
523 clear_bit(uuarn, uuari->bitmap); free_med_class_uuar()
524 --uuari->count[uuarn]; free_med_class_uuar()
527 static void free_high_class_uuar(struct mlx5_uuar_info *uuari, int uuarn) free_high_class_uuar() argument
529 clear_bit(uuarn, uuari->bitmap); free_high_class_uuar()
530 --uuari->count[uuarn]; free_high_class_uuar()
533 static void free_uuar(struct mlx5_uuar_info *uuari, int uuarn) free_uuar() argument
539 if (uuarn == 0) { free_uuar()
540 --uuari->count[uuarn]; free_uuar()
544 if (uuarn < high_uuar) { free_uuar()
545 free_med_class_uuar(uuari, uuarn); free_uuar()
549 free_high_class_uuar(uuari, uuarn); free_uuar()
588 static int uuarn_to_uar_index(struct mlx5_uuar_info *uuari, int uuarn) uuarn_to_uar_index() argument
590 return uuari->uars[uuarn / MLX5_BF_REGS_PER_PAGE].index; uuarn_to_uar_index()
604 int uuarn; create_user_qp() local
618 uuarn = alloc_uuar(&context->uuari, MLX5_IB_LATENCY_CLASS_HIGH); create_user_qp()
619 if (uuarn < 0) { create_user_qp()
622 uuarn = alloc_uuar(&context->uuari, MLX5_IB_LATENCY_CLASS_MEDIUM); create_user_qp()
623 if (uuarn < 0) { create_user_qp()
626 uuarn = alloc_uuar(&context->uuari, MLX5_IB_LATENCY_CLASS_LOW); create_user_qp()
627 if (uuarn < 0) { create_user_qp()
629 return uuarn; create_user_qp()
634 uar_index = uuarn_to_uar_index(&context->uuari, uuarn); create_user_qp()
635 mlx5_ib_dbg(dev, "uuarn 0x%x, uar_index 0x%x\n", uuarn, uar_index); create_user_qp()
682 resp->uuar_index = uuarn; create_user_qp()
683 qp->uuarn = uuarn; create_user_qp()
711 free_uuar(&context->uuari, uuarn); create_user_qp()
723 free_uuar(&context->uuari, qp->uuarn); destroy_qp_user()
734 int uuarn; create_kernel_qp() local
744 uuarn = alloc_uuar(uuari, lc); create_kernel_qp()
745 if (uuarn < 0) { create_kernel_qp()
750 qp->bf = &uuari->bfs[uuarn]; create_kernel_qp()
821 free_uuar(&dev->mdev->priv.uuari, uuarn); create_kernel_qp()
834 free_uuar(&dev->mdev->priv.uuari, qp->bf->uuarn); destroy_qp_kernel()
2858 if (0 && nreq == 1 && bf->uuarn && inl && size > 1 && size <= bf->buf_size / 16) { mlx5_ib_post_send()
H A Dmain.c591 int uuarn; mlx5_ib_alloc_ucontext() local
660 uuarn = i & 3; mlx5_ib_alloc_ucontext()
661 if (uuarn == 2 || uuarn == 3) mlx5_ib_alloc_ucontext()
H A Dmlx5_ib.h212 int uuarn; member in struct:mlx5_ib_qp
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
H A Duar.c115 static int need_uuar_lock(int uuarn) need_uuar_lock() argument
119 if (uuarn == 0 || tot_uuars - NUM_LOW_LAT_UUARS) need_uuar_lock()
189 bf->uuarn = i; mlx5_alloc_uuars()
/linux-4.4.14/include/linux/mlx5/
H A Ddriver.h189 int uuarn; member in struct:mlx5_bf

Completed in 184 milliseconds