Lines Matching refs:grp

19 			      u32 rcventry, struct tid_group *grp,
30 struct tid_group *grp, u16 count,
330 struct tid_group *grp = in hfi1_user_exp_rcv_setup() local
333 ret = program_rcvarray(fd, tidbuf, grp, in hfi1_user_exp_rcv_setup()
342 tid_group_add_tail(grp, &uctxt->tid_group_list); in hfi1_user_exp_rcv_setup()
348 tid_group_add_tail(grp, &uctxt->tid_full_list); in hfi1_user_exp_rcv_setup()
354 struct tid_group *grp, *ptr; in hfi1_user_exp_rcv_setup() local
364 grp = tid_group_pop(&uctxt->tid_group_list); in hfi1_user_exp_rcv_setup()
365 tid_group_add_tail(grp, &uctxt->tid_used_list); in hfi1_user_exp_rcv_setup()
373 list_for_each_entry_safe(grp, ptr, &uctxt->tid_used_list.list, in hfi1_user_exp_rcv_setup()
376 grp->size - grp->used); in hfi1_user_exp_rcv_setup()
378 ret = program_rcvarray(fd, tidbuf, grp, in hfi1_user_exp_rcv_setup()
387 if (grp->used == grp->size) in hfi1_user_exp_rcv_setup()
388 tid_group_move(grp, in hfi1_user_exp_rcv_setup()
657 struct tid_group *grp, u16 count, in program_rcvarray() argument
669 if (count > grp->size) in program_rcvarray()
673 for (idx = 0; idx < grp->size; idx++) { in program_rcvarray()
674 if (!(grp->map & (1 << idx))) { in program_rcvarray()
678 rcv_array_wc_fill(dd, grp->base + idx); in program_rcvarray()
690 if (useidx >= grp->size) { in program_rcvarray()
692 } else if (grp->map & (1 << useidx)) { in program_rcvarray()
693 rcv_array_wc_fill(dd, grp->base + useidx); in program_rcvarray()
698 rcventry = grp->base + useidx; in program_rcvarray()
703 rcventry, grp, pageidx, in program_rcvarray()
711 grp->used++; in program_rcvarray()
712 grp->map |= 1 << useidx++; in program_rcvarray()
717 for (; useidx < grp->size; useidx++) in program_rcvarray()
718 rcv_array_wc_fill(dd, grp->base + useidx); in program_rcvarray()
725 u32 rcventry, struct tid_group *grp, in set_rcvarray_entry() argument
758 node->grp = grp; in set_rcvarray_entry()
847 node->grp->used--; in clear_tid_node()
848 node->grp->map &= ~(1 << (node->rcventry - node->grp->base)); in clear_tid_node()
850 if (node->grp->used == node->grp->size - 1) in clear_tid_node()
851 tid_group_move(node->grp, &uctxt->tid_full_list, in clear_tid_node()
853 else if (!node->grp->used) in clear_tid_node()
854 tid_group_move(node->grp, &uctxt->tid_used_list, in clear_tid_node()
867 struct tid_group *grp, *ptr; in unlock_exp_tids() local
870 list_for_each_entry_safe(grp, ptr, &set->list, list) { in unlock_exp_tids()
871 list_del_init(&grp->list); in unlock_exp_tids()
873 for (i = 0; i < grp->size; i++) { in unlock_exp_tids()
874 if (grp->map & (1 << i)) { in unlock_exp_tids()
875 u16 rcventry = grp->base + i; in unlock_exp_tids()