Lines Matching refs:subctxt
67 static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt,
71 static int manage_rcvq(struct hfi1_ctxtdata *uctxt, u16 subctxt,
131 #define HFI1_MMAP_TOKEN(type, ctxt, subctxt, addr) \ argument
135 HFI1_MMAP_TOKEN_SET(SUBCTXT, subctxt) | \
225 ret = manage_rcvq(uctxt, fd->subctxt, arg); in hfi1_file_ioctl()
235 ret = user_event_ack(uctxt, fd->subctxt, arg); in hfi1_file_ioctl()
279 trace_hfi1_sdma_request(fd->dd, fd->uctxt->ctxt, fd->subctxt, dim); in hfi1_write_iter()
307 static inline void mmap_cdbg(u16 ctxt, u8 subctxt, u8 type, u8 mapio, u8 vmf, in mmap_cdbg() argument
313 ctxt, subctxt, type, mapio, vmf, !!memdma, in mmap_cdbg()
328 u8 subctxt, mapio = 0, vmf = 0, type; in hfi1_file_mmap() local
340 subctxt = HFI1_MMAP_TOKEN_GET(SUBCTXT, token); in hfi1_file_mmap()
342 if (ctxt != uctxt->ctxt || subctxt != fd->subctxt) { in hfi1_file_mmap()
441 mmap_cdbg(ctxt, subctxt, type, mapio, vmf, memaddr, in hfi1_file_mmap()
555 uctxt->ctxt, fd->subctxt, in hfi1_file_mmap()
562 mmap_cdbg(ctxt, subctxt, type, mapio, vmf, memaddr, memvirt, memdma, in hfi1_file_mmap()
641 hfi1_cdbg(PROC, "closing ctxt %u:%u", uctxt->ctxt, fdata->subctxt); in hfi1_file_close()
664 ev = dd->events + uctxt_offset(uctxt) + fdata->subctxt; in hfi1_file_close()
668 __clear_bit(fdata->subctxt, uctxt->in_use_ctxts); in hfi1_file_close()
766 __clear_bit(fd->subctxt, fd->uctxt->in_use_ctxts); in complete_subctxt()
850 u16 subctxt; in match_ctxt() local
875 subctxt = find_first_zero_bit(uctxt->in_use_ctxts, in match_ctxt()
877 if (subctxt >= uctxt->subctxt_cnt) { in match_ctxt()
882 fd->subctxt = subctxt; in match_ctxt()
883 __set_bit(fd->subctxt, uctxt->in_use_ctxts); in match_ctxt()
967 uctxt->ctxt, fd->subctxt, current->pid, fd->rec_cpu_num, in allocate_ctxt()
1147 cinfo.subctxt = fd->subctxt; in get_ctxt_info()
1162 trace_hfi1_ctxt_info(uctxt->dd, uctxt->ctxt, fd->subctxt, &cinfo); in get_ctxt_info()
1251 trace_hfi1_uctxtdata(uctxt->dd, uctxt, fd->subctxt); in get_base_info()
1270 fd->subctxt, offset); in get_base_info()
1272 fd->subctxt, in get_base_info()
1276 fd->subctxt, in get_base_info()
1279 fd->subctxt, in get_base_info()
1282 fd->subctxt, in get_base_info()
1285 fd->subctxt, 0); in get_base_info()
1291 fd->subctxt, 0); in get_base_info()
1292 offset = offset_in_page((uctxt_offset(uctxt) + fd->subctxt) * in get_base_info()
1295 fd->subctxt, in get_base_info()
1298 fd->subctxt, in get_base_info()
1302 fd->subctxt, 0); in get_base_info()
1306 fd->subctxt, 0); in get_base_info()
1309 fd->subctxt, 0); in get_base_info()
1312 fd->subctxt, 0); in get_base_info()
1528 static int manage_rcvq(struct hfi1_ctxtdata *uctxt, u16 subctxt, in manage_rcvq() argument
1535 if (subctxt) in manage_rcvq()
1568 static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, in user_event_ack() argument
1582 evs = dd->events + uctxt_offset(uctxt) + subctxt; in user_event_ack()