Lines Matching refs:rcd
65 void hfi1_exp_tid_group_init(struct hfi1_ctxtdata *rcd) in hfi1_exp_tid_group_init() argument
67 hfi1_exp_tid_set_init(&rcd->tid_group_list); in hfi1_exp_tid_group_init()
68 hfi1_exp_tid_set_init(&rcd->tid_used_list); in hfi1_exp_tid_group_init()
69 hfi1_exp_tid_set_init(&rcd->tid_full_list); in hfi1_exp_tid_group_init()
76 int hfi1_alloc_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd) in hfi1_alloc_ctxt_rcv_groups() argument
78 struct hfi1_devdata *dd = rcd->dd; in hfi1_alloc_ctxt_rcv_groups()
84 ngroups = rcd->expected_count / dd->rcv_entries.group_size; in hfi1_alloc_ctxt_rcv_groups()
85 rcd->groups = in hfi1_alloc_ctxt_rcv_groups()
86 kcalloc_node(ngroups, sizeof(*rcd->groups), in hfi1_alloc_ctxt_rcv_groups()
87 GFP_KERNEL, rcd->numa_id); in hfi1_alloc_ctxt_rcv_groups()
88 if (!rcd->groups) in hfi1_alloc_ctxt_rcv_groups()
90 tidbase = rcd->expected_base; in hfi1_alloc_ctxt_rcv_groups()
92 grp = &rcd->groups[i]; in hfi1_alloc_ctxt_rcv_groups()
95 tid_group_add_tail(grp, &rcd->tid_group_list); in hfi1_alloc_ctxt_rcv_groups()
113 void hfi1_free_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd) in hfi1_free_ctxt_rcv_groups() argument
115 kfree(rcd->groups); in hfi1_free_ctxt_rcv_groups()
116 rcd->groups = NULL; in hfi1_free_ctxt_rcv_groups()
117 hfi1_exp_tid_group_init(rcd); in hfi1_free_ctxt_rcv_groups()
119 hfi1_clear_tids(rcd); in hfi1_free_ctxt_rcv_groups()