Lines Matching refs:subctxt_cnt

106 	unsigned subctxt_cnt;  in qib_get_base_info()  local
110 subctxt_cnt = rcd->subctxt_cnt; in qib_get_base_info()
111 if (!subctxt_cnt) { in qib_get_base_info()
114 subctxt_cnt = 1; in qib_get_base_info()
151 kinfo->spi_tidcnt = dd->rcvtidcnt / subctxt_cnt; in qib_get_base_info()
153 kinfo->spi_tidcnt += dd->rcvtidcnt % subctxt_cnt; in qib_get_base_info()
199 kinfo->spi_piocnt = (rcd->piocnt / subctxt_cnt) + in qib_get_base_info()
200 (rcd->piocnt % subctxt_cnt); in qib_get_base_info()
208 kinfo->spi_piocnt = rcd->piocnt / subctxt_cnt; in qib_get_base_info()
309 if (!rcd->subctxt_cnt) { in qib_tid_update()
314 tidcnt = (dd->rcvtidcnt / rcd->subctxt_cnt) + in qib_tid_update()
315 (dd->rcvtidcnt % rcd->subctxt_cnt); in qib_tid_update()
320 tidcnt = dd->rcvtidcnt / rcd->subctxt_cnt; in qib_tid_update()
457 if (!rcd->subctxt_cnt) in qib_tid_update()
504 if (!rcd->subctxt_cnt) in qib_tid_free()
507 tidcnt = (dd->rcvtidcnt / rcd->subctxt_cnt) + in qib_tid_free()
508 (dd->rcvtidcnt % rcd->subctxt_cnt); in qib_tid_free()
511 tidcnt = dd->rcvtidcnt / rcd->subctxt_cnt; in qib_tid_free()
896 unsigned subctxt_cnt; in mmap_kvaddr() local
902 subctxt_cnt = rcd->subctxt_cnt; in mmap_kvaddr()
912 size = PAGE_SIZE * subctxt_cnt; in mmap_kvaddr()
915 size = rcd->rcvhdrq_size * subctxt_cnt; in mmap_kvaddr()
918 size *= subctxt_cnt; in mmap_kvaddr()
1022 if (!rcd->subctxt_cnt) { in qib_mmapf()
1028 piocnt = (rcd->piocnt / rcd->subctxt_cnt) + in qib_mmapf()
1029 (rcd->piocnt % rcd->subctxt_cnt); in qib_mmapf()
1036 piocnt = rcd->piocnt / rcd->subctxt_cnt; in qib_mmapf()
1267 rcd->subctxt_cnt = uinfo->spu_subctxt_cnt; in init_subctxts()
1498 if (rcd->subctxt_cnt != uinfo->spu_subctxt_cnt || in find_shared_ctxt()
1500 rcd->cnt >= rcd->subctxt_cnt) { in find_shared_ctxt()
1746 if (rcd->subctxt_cnt) { in qib_do_user_init()
1894 info.num_subctxts = rcd->subctxt_cnt; in qib_ctxt_info()
1959 for (i = 1; i < rcd->subctxt_cnt; i++) in disarm_req_delay()
1995 for (i = 1; i < rcd->subctxt_cnt; i++) in qib_set_uevent_bits()