Searched refs:cch (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/misc/sgi-gru/
H A Dgruhandles.c97 int cch_allocate(struct gru_context_configuration_handle *cch) cch_allocate() argument
101 cch->opc = CCHOP_ALLOCATE; cch_allocate()
102 start_instruction(cch); cch_allocate()
103 ret = wait_instruction_complete(cch, cchop_allocate); cch_allocate()
113 int cch_start(struct gru_context_configuration_handle *cch) cch_start() argument
115 cch->opc = CCHOP_START; cch_start()
116 start_instruction(cch); cch_start()
117 return wait_instruction_complete(cch, cchop_start); cch_start()
120 int cch_interrupt(struct gru_context_configuration_handle *cch) cch_interrupt() argument
122 cch->opc = CCHOP_INTERRUPT; cch_interrupt()
123 start_instruction(cch); cch_interrupt()
124 return wait_instruction_complete(cch, cchop_interrupt); cch_interrupt()
127 int cch_deallocate(struct gru_context_configuration_handle *cch) cch_deallocate() argument
131 cch->opc = CCHOP_DEALLOCATE; cch_deallocate()
132 start_instruction(cch); cch_deallocate()
133 ret = wait_instruction_complete(cch, cchop_deallocate); cch_deallocate()
144 *cch) cch_interrupt_sync()
146 cch->opc = CCHOP_INTERRUPT_SYNC; cch_interrupt_sync()
147 start_instruction(cch); cch_interrupt_sync()
148 return wait_instruction_complete(cch, cchop_interrupt_sync); cch_interrupt_sync()
143 cch_interrupt_sync(struct gru_context_configuration_handle *cch) cch_interrupt_sync() argument
H A Dgrukdump.c46 struct gru_context_configuration_handle *cch, gru_dump_context_data()
58 for_each_cbr_in_allocation_map(i, &cch->cbr_allocation_map, scr) { gru_dump_context_data()
123 struct gru_context_configuration_handle *cch, *ubufcch; gru_dump_context() local
130 cch = get_cch(grubase, ctxnum); gru_dump_context()
132 cch_locked = trylock_cch_handle(cch); gru_dump_context()
140 if (gru_user_copy_handle(&ubuf, cch)) { gru_dump_context()
142 unlock_cch_handle(cch); gru_dump_context()
155 if (cch->state != CCHSTATE_INACTIVE) { gru_dump_context()
156 cbrcnt = hweight64(cch->cbr_allocation_map) * gru_dump_context()
158 dsrcnt = data_opt ? hweight32(cch->dsr_allocation_map) * gru_dump_context()
165 ret = gru_dump_context_data(grubase, cch, ubuf, ctxnum, gru_dump_context()
169 unlock_cch_handle(cch); gru_dump_context()
45 gru_dump_context_data(void *grubase, struct gru_context_configuration_handle *cch, void __user *ubuf, int ctxnum, int dsrcnt, int flush_cbrs) gru_dump_context_data() argument
H A Dgrumain.c558 struct gru_context_configuration_handle *cch; gru_unload_context() local
563 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); gru_unload_context()
567 lock_cch_handle(cch); gru_unload_context()
568 if (cch_interrupt_sync(cch)) gru_unload_context()
580 if (cch_deallocate(cch)) gru_unload_context()
582 unlock_cch_handle(cch); gru_unload_context()
594 struct gru_context_configuration_handle *cch; gru_load_context() local
597 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); gru_load_context()
598 lock_cch_handle(cch); gru_load_context()
599 cch->tfm_fault_bit_enable = gru_load_context()
602 cch->tlb_int_enable = (gts->ts_user_options == GRU_OPT_MISS_FMM_INTR); gru_load_context()
603 if (cch->tlb_int_enable) { gru_load_context()
605 cch->tlb_int_select = gts->ts_tlb_int_select; gru_load_context()
608 cch->req_slice_set_enable = 1; gru_load_context()
609 cch->req_slice = gts->ts_cch_req_slice; gru_load_context()
611 cch->req_slice_set_enable =0; gru_load_context()
613 cch->tfm_done_bit_enable = 0; gru_load_context()
614 cch->dsr_allocation_map = gts->ts_dsr_map; gru_load_context()
615 cch->cbr_allocation_map = gts->ts_cbr_map; gru_load_context()
618 cch->unmap_enable = 1; gru_load_context()
619 cch->tfm_done_bit_enable = 1; gru_load_context()
620 cch->cb_int_enable = 1; gru_load_context()
621 cch->tlb_int_select = 0; /* For now, ints go to cpu 0 */ gru_load_context()
623 cch->unmap_enable = 0; gru_load_context()
624 cch->tfm_done_bit_enable = 0; gru_load_context()
625 cch->cb_int_enable = 0; gru_load_context()
628 cch->asid[i] = asid + i; gru_load_context()
629 cch->sizeavail[i] = gts->ts_sizeavail; gru_load_context()
633 err = cch_allocate(cch); gru_load_context()
636 "err %d: cch %p, gts %p, cbr 0x%lx, dsr 0x%lx\n", gru_load_context()
637 err, cch, gts, gts->ts_cbr_map, gts->ts_dsr_map); gru_load_context()
644 if (cch_start(cch)) gru_load_context()
646 unlock_cch_handle(cch); gru_load_context()
660 struct gru_context_configuration_handle *cch; gru_update_cch() local
664 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); gru_update_cch()
666 lock_cch_handle(cch); gru_update_cch()
667 if (cch->state == CCHSTATE_ACTIVE) { gru_update_cch()
670 if (cch_interrupt(cch)) gru_update_cch()
673 cch->sizeavail[i] = gts->ts_sizeavail; gru_update_cch()
675 cch->tlb_int_select = gru_cpu_fault_map_id(); gru_update_cch()
676 cch->tfm_fault_bit_enable = gru_update_cch()
679 if (cch_start(cch)) gru_update_cch()
684 unlock_cch_handle(cch); gru_update_cch()
H A Dgruhandles.h515 int cch_allocate(struct gru_context_configuration_handle *cch);
516 int cch_start(struct gru_context_configuration_handle *cch);
517 int cch_interrupt(struct gru_context_configuration_handle *cch);
518 int cch_deallocate(struct gru_context_configuration_handle *cch);
519 int cch_interrupt_sync(struct gru_context_configuration_handle *cch);
H A Dgrutables.h581 static inline int trylock_cch_handle(struct gru_context_configuration_handle *cch) trylock_cch_handle() argument
583 return __trylock_handle(cch); trylock_cch_handle()
586 static inline void lock_cch_handle(struct gru_context_configuration_handle *cch) lock_cch_handle() argument
588 __lock_handle(cch); lock_cch_handle()
592 *cch) unlock_cch_handle()
594 __unlock_handle(cch); unlock_cch_handle()
591 unlock_cch_handle(struct gru_context_configuration_handle *cch) unlock_cch_handle() argument
/linux-4.4.14/drivers/scsi/aacraid/
H A Daacraid.h681 __le32 ROM_Control_Addr;/* cch | Rom Control and Address */
832 __le32 reserved1[130789]; /* cch - 7fc5fh */
836 __le32 reserved1[973]; /* cch - fffh */

Completed in 205 milliseconds