Lines Matching refs:cch
541 struct gru_context_configuration_handle *cch; in gru_unload_context() local
546 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_unload_context()
550 lock_cch_handle(cch); in gru_unload_context()
551 if (cch_interrupt_sync(cch)) in gru_unload_context()
563 if (cch_deallocate(cch)) in gru_unload_context()
565 unlock_cch_handle(cch); in gru_unload_context()
577 struct gru_context_configuration_handle *cch; in gru_load_context() local
580 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_load_context()
581 lock_cch_handle(cch); in gru_load_context()
582 cch->tfm_fault_bit_enable = in gru_load_context()
585 cch->tlb_int_enable = (gts->ts_user_options == GRU_OPT_MISS_FMM_INTR); in gru_load_context()
586 if (cch->tlb_int_enable) { in gru_load_context()
588 cch->tlb_int_select = gts->ts_tlb_int_select; in gru_load_context()
591 cch->req_slice_set_enable = 1; in gru_load_context()
592 cch->req_slice = gts->ts_cch_req_slice; in gru_load_context()
594 cch->req_slice_set_enable =0; in gru_load_context()
596 cch->tfm_done_bit_enable = 0; in gru_load_context()
597 cch->dsr_allocation_map = gts->ts_dsr_map; in gru_load_context()
598 cch->cbr_allocation_map = gts->ts_cbr_map; in gru_load_context()
601 cch->unmap_enable = 1; in gru_load_context()
602 cch->tfm_done_bit_enable = 1; in gru_load_context()
603 cch->cb_int_enable = 1; in gru_load_context()
604 cch->tlb_int_select = 0; /* For now, ints go to cpu 0 */ in gru_load_context()
606 cch->unmap_enable = 0; in gru_load_context()
607 cch->tfm_done_bit_enable = 0; in gru_load_context()
608 cch->cb_int_enable = 0; in gru_load_context()
611 cch->asid[i] = asid + i; in gru_load_context()
612 cch->sizeavail[i] = gts->ts_sizeavail; in gru_load_context()
616 err = cch_allocate(cch); in gru_load_context()
620 err, cch, gts, gts->ts_cbr_map, gts->ts_dsr_map); in gru_load_context()
627 if (cch_start(cch)) in gru_load_context()
629 unlock_cch_handle(cch); in gru_load_context()
643 struct gru_context_configuration_handle *cch; in gru_update_cch() local
647 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_update_cch()
649 lock_cch_handle(cch); in gru_update_cch()
650 if (cch->state == CCHSTATE_ACTIVE) { in gru_update_cch()
653 if (cch_interrupt(cch)) in gru_update_cch()
656 cch->sizeavail[i] = gts->ts_sizeavail; in gru_update_cch()
658 cch->tlb_int_select = gru_cpu_fault_map_id(); in gru_update_cch()
659 cch->tfm_fault_bit_enable = in gru_update_cch()
662 if (cch_start(cch)) in gru_update_cch()
667 unlock_cch_handle(cch); in gru_update_cch()