Lines Matching refs:grp
19 u32 rcventry, struct tid_group *grp,
30 struct tid_group *grp,
331 struct tid_group *grp = in hfi1_user_exp_rcv_setup() local
334 ret = program_rcvarray(fd, tidbuf, grp, in hfi1_user_exp_rcv_setup()
343 tid_group_add_tail(grp, &uctxt->tid_group_list); in hfi1_user_exp_rcv_setup()
349 tid_group_add_tail(grp, &uctxt->tid_full_list); in hfi1_user_exp_rcv_setup()
356 struct tid_group *grp, *ptr; in hfi1_user_exp_rcv_setup() local
366 grp = tid_group_pop(&uctxt->tid_group_list); in hfi1_user_exp_rcv_setup()
367 tid_group_add_tail(grp, &uctxt->tid_used_list); in hfi1_user_exp_rcv_setup()
375 list_for_each_entry_safe(grp, ptr, &uctxt->tid_used_list.list, in hfi1_user_exp_rcv_setup()
378 grp->size - grp->used); in hfi1_user_exp_rcv_setup()
380 ret = program_rcvarray(fd, tidbuf, grp, in hfi1_user_exp_rcv_setup()
389 if (grp->used == grp->size) in hfi1_user_exp_rcv_setup()
390 tid_group_move(grp, in hfi1_user_exp_rcv_setup()
661 struct tid_group *grp, in program_rcvarray() argument
673 if (count > grp->size) in program_rcvarray()
677 for (idx = 0; idx < grp->size; idx++) { in program_rcvarray()
678 if (!(grp->map & (1 << idx))) { in program_rcvarray()
682 rcv_array_wc_fill(dd, grp->base + idx); in program_rcvarray()
694 if (useidx >= grp->size) { in program_rcvarray()
696 } else if (grp->map & (1 << useidx)) { in program_rcvarray()
697 rcv_array_wc_fill(dd, grp->base + useidx); in program_rcvarray()
702 rcventry = grp->base + useidx; in program_rcvarray()
707 rcventry, grp, pageidx, in program_rcvarray()
716 grp->used++; in program_rcvarray()
717 grp->map |= 1 << useidx++; in program_rcvarray()
722 for (; useidx < grp->size; useidx++) in program_rcvarray()
723 rcv_array_wc_fill(dd, grp->base + useidx); in program_rcvarray()
730 u32 rcventry, struct tid_group *grp, in set_rcvarray_entry() argument
764 node->grp = grp; in set_rcvarray_entry()
853 node->grp->used--; in clear_tid_node()
854 node->grp->map &= ~(1 << (node->rcventry - node->grp->base)); in clear_tid_node()
856 if (node->grp->used == node->grp->size - 1) in clear_tid_node()
857 tid_group_move(node->grp, &uctxt->tid_full_list, in clear_tid_node()
859 else if (!node->grp->used) in clear_tid_node()
860 tid_group_move(node->grp, &uctxt->tid_used_list, in clear_tid_node()
873 struct tid_group *grp, *ptr; in unlock_exp_tids() local
876 list_for_each_entry_safe(grp, ptr, &set->list, list) { in unlock_exp_tids()
877 list_del_init(&grp->list); in unlock_exp_tids()
879 for (i = 0; i < grp->size; i++) { in unlock_exp_tids()
880 if (grp->map & (1 << i)) { in unlock_exp_tids()
881 u16 rcventry = grp->base + i; in unlock_exp_tids()