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()
897 unsigned subctxt_cnt; in mmap_kvaddr() local
903 subctxt_cnt = rcd->subctxt_cnt; in mmap_kvaddr()
913 size = PAGE_SIZE * subctxt_cnt; in mmap_kvaddr()
916 size = rcd->rcvhdrq_size * subctxt_cnt; in mmap_kvaddr()
919 size *= subctxt_cnt; in mmap_kvaddr()
1023 if (!rcd->subctxt_cnt) { in qib_mmapf()
1029 piocnt = (rcd->piocnt / rcd->subctxt_cnt) + in qib_mmapf()
1030 (rcd->piocnt % rcd->subctxt_cnt); in qib_mmapf()
1037 piocnt = rcd->piocnt / rcd->subctxt_cnt; in qib_mmapf()
1268 rcd->subctxt_cnt = uinfo->spu_subctxt_cnt; in init_subctxts()
1499 if (rcd->subctxt_cnt != uinfo->spu_subctxt_cnt || in find_shared_ctxt()
1501 rcd->cnt >= rcd->subctxt_cnt) { in find_shared_ctxt()
1747 if (rcd->subctxt_cnt) { in qib_do_user_init()
1896 info.num_subctxts = rcd->subctxt_cnt; in qib_ctxt_info()
1961 for (i = 1; i < rcd->subctxt_cnt; i++) in disarm_req_delay()
1997 for (i = 1; i < rcd->subctxt_cnt; i++) in qib_set_uevent_bits()