Searched refs:ctx_ptr (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/arch/arm/kernel/
H A Dsuspend.c91 void *ctx_ptr; cpu_suspend_alloc_sp() local
92 /* ctx_ptr is an array of physical addresses */ cpu_suspend_alloc_sp()
93 ctx_ptr = kcalloc(mpidr_hash_size(), sizeof(u32), GFP_KERNEL); cpu_suspend_alloc_sp()
95 if (WARN_ON(!ctx_ptr)) cpu_suspend_alloc_sp()
97 sleep_save_sp.save_ptr_stash = ctx_ptr; cpu_suspend_alloc_sp()
98 sleep_save_sp.save_ptr_stash_phys = virt_to_phys(ctx_ptr); cpu_suspend_alloc_sp()
/linux-4.4.14/drivers/staging/skein/
H A Dskein_base.h237 #define skein_get_tweak(ctx_ptr, TWK_NUM) ((ctx_ptr)->h.tweak[TWK_NUM])
238 #define skein_set_tweak(ctx_ptr, TWK_NUM, t_val) { \
239 (ctx_ptr)->h.tweak[TWK_NUM] = (t_val); \
242 #define skein_get_T0(ctx_ptr) skein_get_tweak(ctx_ptr, 0)
243 #define skein_get_T1(ctx_ptr) skein_get_tweak(ctx_ptr, 1)
244 #define skein_set_T0(ctx_ptr, T0) skein_set_tweak(ctx_ptr, 0, T0)
245 #define skein_set_T1(ctx_ptr, T1) skein_set_tweak(ctx_ptr, 1, T1)
248 #define skein_set_T0_T1(ctx_ptr, T0, T1) \
250 skein_set_T0(ctx_ptr, (T0)); \
251 skein_set_T1(ctx_ptr, (T1)); \
254 #define skein_set_type(ctx_ptr, BLK_TYPE) \
255 skein_set_T1(ctx_ptr, SKEIN_T1_BLK_TYPE_##BLK_TYPE)
261 #define skein_start_new_type(ctx_ptr, BLK_TYPE) { \
262 skein_set_T0_T1(ctx_ptr, 0, SKEIN_T1_FLAG_FIRST | \
264 (ctx_ptr)->h.b_cnt = 0; \
/linux-4.4.14/arch/arm64/kernel/
H A Dsuspend.c138 void *ctx_ptr; cpu_suspend_init() local
140 /* ctx_ptr is an array of physical addresses */ cpu_suspend_init()
141 ctx_ptr = kcalloc(mpidr_hash_size(), sizeof(phys_addr_t), GFP_KERNEL); cpu_suspend_init()
143 if (WARN_ON(!ctx_ptr)) cpu_suspend_init()
146 sleep_save_sp.save_ptr_stash = ctx_ptr; cpu_suspend_init()
147 sleep_save_sp.save_ptr_stash_phys = virt_to_phys(ctx_ptr); cpu_suspend_init()

Completed in 162 milliseconds