Lines Matching refs:cch
558 struct gru_context_configuration_handle *cch; in gru_unload_context() local
563 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_unload_context()
567 lock_cch_handle(cch); in gru_unload_context()
568 if (cch_interrupt_sync(cch)) in gru_unload_context()
580 if (cch_deallocate(cch)) in gru_unload_context()
582 unlock_cch_handle(cch); in gru_unload_context()
594 struct gru_context_configuration_handle *cch; in gru_load_context() local
597 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_load_context()
598 lock_cch_handle(cch); in gru_load_context()
599 cch->tfm_fault_bit_enable = in gru_load_context()
602 cch->tlb_int_enable = (gts->ts_user_options == GRU_OPT_MISS_FMM_INTR); in gru_load_context()
603 if (cch->tlb_int_enable) { in gru_load_context()
605 cch->tlb_int_select = gts->ts_tlb_int_select; in gru_load_context()
608 cch->req_slice_set_enable = 1; in gru_load_context()
609 cch->req_slice = gts->ts_cch_req_slice; in gru_load_context()
611 cch->req_slice_set_enable =0; in gru_load_context()
613 cch->tfm_done_bit_enable = 0; in gru_load_context()
614 cch->dsr_allocation_map = gts->ts_dsr_map; in gru_load_context()
615 cch->cbr_allocation_map = gts->ts_cbr_map; in gru_load_context()
618 cch->unmap_enable = 1; in gru_load_context()
619 cch->tfm_done_bit_enable = 1; in gru_load_context()
620 cch->cb_int_enable = 1; in gru_load_context()
621 cch->tlb_int_select = 0; /* For now, ints go to cpu 0 */ in gru_load_context()
623 cch->unmap_enable = 0; in gru_load_context()
624 cch->tfm_done_bit_enable = 0; in gru_load_context()
625 cch->cb_int_enable = 0; in gru_load_context()
628 cch->asid[i] = asid + i; in gru_load_context()
629 cch->sizeavail[i] = gts->ts_sizeavail; in gru_load_context()
633 err = cch_allocate(cch); in gru_load_context()
637 err, cch, gts, gts->ts_cbr_map, gts->ts_dsr_map); in gru_load_context()
644 if (cch_start(cch)) in gru_load_context()
646 unlock_cch_handle(cch); in gru_load_context()
660 struct gru_context_configuration_handle *cch; in gru_update_cch() local
664 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_update_cch()
666 lock_cch_handle(cch); in gru_update_cch()
667 if (cch->state == CCHSTATE_ACTIVE) { in gru_update_cch()
670 if (cch_interrupt(cch)) in gru_update_cch()
673 cch->sizeavail[i] = gts->ts_sizeavail; in gru_update_cch()
675 cch->tlb_int_select = gru_cpu_fault_map_id(); in gru_update_cch()
676 cch->tfm_fault_bit_enable = in gru_update_cch()
679 if (cch_start(cch)) in gru_update_cch()
684 unlock_cch_handle(cch); in gru_update_cch()