Lines Matching refs:rcd
23 void hfi1_exp_tid_group_init(struct hfi1_ctxtdata *rcd) in hfi1_exp_tid_group_init() argument
25 hfi1_exp_tid_set_init(&rcd->tid_group_list); in hfi1_exp_tid_group_init()
26 hfi1_exp_tid_set_init(&rcd->tid_used_list); in hfi1_exp_tid_group_init()
27 hfi1_exp_tid_set_init(&rcd->tid_full_list); in hfi1_exp_tid_group_init()
34 int hfi1_alloc_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd) in hfi1_alloc_ctxt_rcv_groups() argument
36 struct hfi1_devdata *dd = rcd->dd; in hfi1_alloc_ctxt_rcv_groups()
42 ngroups = rcd->expected_count / dd->rcv_entries.group_size; in hfi1_alloc_ctxt_rcv_groups()
43 rcd->groups = in hfi1_alloc_ctxt_rcv_groups()
44 kcalloc_node(ngroups, sizeof(*rcd->groups), in hfi1_alloc_ctxt_rcv_groups()
45 GFP_KERNEL, rcd->numa_id); in hfi1_alloc_ctxt_rcv_groups()
46 if (!rcd->groups) in hfi1_alloc_ctxt_rcv_groups()
48 tidbase = rcd->expected_base; in hfi1_alloc_ctxt_rcv_groups()
50 grp = &rcd->groups[i]; in hfi1_alloc_ctxt_rcv_groups()
53 tid_group_add_tail(grp, &rcd->tid_group_list); in hfi1_alloc_ctxt_rcv_groups()
71 void hfi1_free_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd) in hfi1_free_ctxt_rcv_groups() argument
73 kfree(rcd->groups); in hfi1_free_ctxt_rcv_groups()
74 rcd->groups = NULL; in hfi1_free_ctxt_rcv_groups()
75 hfi1_exp_tid_group_init(rcd); in hfi1_free_ctxt_rcv_groups()
77 hfi1_clear_tids(rcd); in hfi1_free_ctxt_rcv_groups()