Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/misc/sgi-gru/
H A Dgruhandles.c85 int cch_allocate(struct gru_context_configuration_handle *cch) in cch_allocate() argument
89 cch->opc = CCHOP_ALLOCATE; in cch_allocate()
90 start_instruction(cch); in cch_allocate()
91 ret = wait_instruction_complete(cch, cchop_allocate); in cch_allocate()
101 int cch_start(struct gru_context_configuration_handle *cch) in cch_start() argument
103 cch->opc = CCHOP_START; in cch_start()
104 start_instruction(cch); in cch_start()
105 return wait_instruction_complete(cch, cchop_start); in cch_start()
108 int cch_interrupt(struct gru_context_configuration_handle *cch) in cch_interrupt() argument
110 cch in cch_interrupt()
115 cch_deallocate(struct gru_context_configuration_handle *cch) cch_deallocate() argument
131 cch_interrupt_sync(struct gru_context_configuration_handle *cch) cch_interrupt_sync() argument
[all...]
H A Dgrumain.c545 struct gru_context_configuration_handle *cch; in gru_unload_context() local
550 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_unload_context()
554 lock_cch_handle(cch); in gru_unload_context()
555 if (cch_interrupt_sync(cch)) in gru_unload_context()
567 if (cch_deallocate(cch)) in gru_unload_context()
569 unlock_cch_handle(cch); in gru_unload_context()
581 struct gru_context_configuration_handle *cch; in gru_load_context() local
584 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_load_context()
585 lock_cch_handle(cch); in gru_load_context()
586 cch in gru_load_context()
647 struct gru_context_configuration_handle *cch; gru_update_cch() local
[all...]
H A Dgrukdump.c36 struct gru_context_configuration_handle *cch, in gru_dump_context_data()
48 for_each_cbr_in_allocation_map(i, &cch->cbr_allocation_map, scr) { in gru_dump_context_data()
113 struct gru_context_configuration_handle *cch, *ubufcch; in gru_dump_context() local
120 cch = get_cch(grubase, ctxnum); in gru_dump_context()
122 cch_locked = trylock_cch_handle(cch); in gru_dump_context()
130 if (gru_user_copy_handle(&ubuf, cch)) { in gru_dump_context()
132 unlock_cch_handle(cch); in gru_dump_context()
145 if (cch->state != CCHSTATE_INACTIVE) { in gru_dump_context()
146 cbrcnt = hweight64(cch->cbr_allocation_map) * in gru_dump_context()
148 dsrcnt = data_opt ? hweight32(cch in gru_dump_context()
35 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
[all...]
H A Dgruhandles.h502 int cch_allocate(struct gru_context_configuration_handle *cch);
503 int cch_start(struct gru_context_configuration_handle *cch);
504 int cch_interrupt(struct gru_context_configuration_handle *cch);
505 int cch_deallocate(struct gru_context_configuration_handle *cch);
506 int cch_interrupt_sync(struct gru_context_configuration_handle *cch);
H A Dgrutables.h567 static inline int trylock_cch_handle(struct gru_context_configuration_handle *cch) in trylock_cch_handle() argument
569 return __trylock_handle(cch); in trylock_cch_handle()
572 static inline void lock_cch_handle(struct gru_context_configuration_handle *cch) in lock_cch_handle() argument
574 __lock_handle(cch); in lock_cch_handle()
578 *cch) in unlock_cch_handle()
580 __unlock_handle(cch); in unlock_cch_handle()
577 unlock_cch_handle(struct gru_context_configuration_handle *cch) unlock_cch_handle() argument
/kernel/linux/linux-6.6/drivers/misc/sgi-gru/
H A Dgruhandles.c85 int cch_allocate(struct gru_context_configuration_handle *cch) in cch_allocate() argument
89 cch->opc = CCHOP_ALLOCATE; in cch_allocate()
90 start_instruction(cch); in cch_allocate()
91 ret = wait_instruction_complete(cch, cchop_allocate); in cch_allocate()
101 int cch_start(struct gru_context_configuration_handle *cch) in cch_start() argument
103 cch->opc = CCHOP_START; in cch_start()
104 start_instruction(cch); in cch_start()
105 return wait_instruction_complete(cch, cchop_start); in cch_start()
108 int cch_interrupt(struct gru_context_configuration_handle *cch) in cch_interrupt() argument
110 cch in cch_interrupt()
115 cch_deallocate(struct gru_context_configuration_handle *cch) cch_deallocate() argument
131 cch_interrupt_sync(struct gru_context_configuration_handle *cch) cch_interrupt_sync() argument
[all...]
H A Dgrumain.c545 struct gru_context_configuration_handle *cch; in gru_unload_context() local
550 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_unload_context()
554 lock_cch_handle(cch); in gru_unload_context()
555 if (cch_interrupt_sync(cch)) in gru_unload_context()
567 if (cch_deallocate(cch)) in gru_unload_context()
569 unlock_cch_handle(cch); in gru_unload_context()
581 struct gru_context_configuration_handle *cch; in gru_load_context() local
584 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_load_context()
585 lock_cch_handle(cch); in gru_load_context()
586 cch in gru_load_context()
647 struct gru_context_configuration_handle *cch; gru_update_cch() local
[all...]
H A Dgrukdump.c36 struct gru_context_configuration_handle *cch, in gru_dump_context_data()
48 for_each_cbr_in_allocation_map(i, &cch->cbr_allocation_map, scr) { in gru_dump_context_data()
113 struct gru_context_configuration_handle *cch, *ubufcch; in gru_dump_context() local
120 cch = get_cch(grubase, ctxnum); in gru_dump_context()
122 cch_locked = trylock_cch_handle(cch); in gru_dump_context()
130 if (gru_user_copy_handle(&ubuf, cch)) { in gru_dump_context()
132 unlock_cch_handle(cch); in gru_dump_context()
145 if (cch->state != CCHSTATE_INACTIVE) { in gru_dump_context()
146 cbrcnt = hweight64(cch->cbr_allocation_map) * in gru_dump_context()
148 dsrcnt = data_opt ? hweight32(cch in gru_dump_context()
35 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
[all...]
H A Dgruhandles.h502 int cch_allocate(struct gru_context_configuration_handle *cch);
503 int cch_start(struct gru_context_configuration_handle *cch);
504 int cch_interrupt(struct gru_context_configuration_handle *cch);
505 int cch_deallocate(struct gru_context_configuration_handle *cch);
506 int cch_interrupt_sync(struct gru_context_configuration_handle *cch);
H A Dgrutables.h562 static inline int trylock_cch_handle(struct gru_context_configuration_handle *cch) in trylock_cch_handle() argument
564 return __trylock_handle(cch); in trylock_cch_handle()
567 static inline void lock_cch_handle(struct gru_context_configuration_handle *cch) in lock_cch_handle() argument
569 __lock_handle(cch); in lock_cch_handle()
573 *cch) in unlock_cch_handle()
575 __unlock_handle(cch); in unlock_cch_handle()
572 unlock_cch_handle(struct gru_context_configuration_handle *cch) unlock_cch_handle() argument
/kernel/linux/linux-5.10/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c367 int ccl, cch, ret; in sc27xx_fgu_get_clbcnt() local
375 &cch); in sc27xx_fgu_get_clbcnt()
380 *clb_cnt |= (cch & SC27XX_FGU_CLBCNT_MASK) << SC27XX_FGU_CLBCNT_SHIFT; in sc27xx_fgu_get_clbcnt()
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c367 int ccl, cch, ret; in sc27xx_fgu_get_clbcnt() local
375 &cch); in sc27xx_fgu_get_clbcnt()
380 *clb_cnt |= (cch & SC27XX_FGU_CLBCNT_MASK) << SC27XX_FGU_CLBCNT_SHIFT; in sc27xx_fgu_get_clbcnt()

Completed in 12 milliseconds