Lines Matching refs:func

172  * @func: the function code to test for
175 * and checks if @func is available
177 * Returns 1 if @func is available for @opcode, 0 otherwise
228 static inline int cpacf_test_func(cpacf_mask_t *mask, unsigned int func)
230 return (mask->bytes[func >> 3] & (0x80 >> (func & 7))) != 0;
233 static __always_inline int cpacf_query_func(unsigned int opcode, unsigned int func)
238 return cpacf_test_func(&mask, func);
244 * @func: the function code passed to KM; see CPACF_KM_xxx defines
245 * @param: address of parameter block; see POP for details on each func
250 * Returns 0 for the query func, number of processed bytes for
253 static inline int cpacf_km(unsigned long func, void *param,
267 : [fc] "d" (func), [pba] "d" ((unsigned long)param),
276 * @func: the function code passed to KM; see CPACF_KMC_xxx defines
277 * @param: address of parameter block; see POP for details on each func
282 * Returns 0 for the query func, number of processed bytes for
285 static inline int cpacf_kmc(unsigned long func, void *param,
299 : [fc] "d" (func), [pba] "d" ((unsigned long)param),
309 * @func: the function code passed to KM; see CPACF_KIMD_xxx defines
310 * @param: address of parameter block; see POP for details on each func
314 static inline void cpacf_kimd(unsigned long func, void *param,
327 : [fc] "d" (func), [pba] "d" ((unsigned long)(param)),
334 * @func: the function code passed to KM; see CPACF_KLMD_xxx defines
335 * @param: address of parameter block; see POP for details on each func
339 static inline void cpacf_klmd(unsigned long func, void *param,
352 : [fc] "d" (func), [pba] "d" ((unsigned long)param),
360 * @func: the function code passed to KM; see CPACF_KMAC_xxx defines
361 * @param: address of parameter block; see POP for details on each func
365 * Returns 0 for the query func, number of processed bytes for digest funcs
367 static inline int cpacf_kmac(unsigned long func, void *param,
380 : [fc] "d" (func), [pba] "d" ((unsigned long)param),
389 * @func: the function code passed to KMCTR; see CPACF_KMCTR_xxx defines
390 * @param: address of parameter block; see POP for details on each func
396 * Returns 0 for the query func, number of processed bytes for
399 static inline int cpacf_kmctr(unsigned long func, void *param, u8 *dest,
415 : [fc] "d" (func), [pba] "d" ((unsigned long)param),
425 * @func: the function code passed to PRNO; see CPACF_PRNO_xxx defines
426 * @param: address of parameter block; see POP for details on each func
432 static inline void cpacf_prno(unsigned long func, void *param,
448 : [fc] "d" (func), [pba] "d" ((unsigned long)param),
481 * @func: the function code passed to PCC; see CPACF_KM_xxx defines
482 * @param: address of parameter block; see POP for details on each func
484 static inline void cpacf_pcc(unsigned long func, void *param)
492 : [fc] "d" (func), [pba] "d" ((unsigned long)param),
500 * @func: the function code passed to PCKMO; see CPACF_PCKMO_xxx defines
501 * @param: address of parameter block; see POP for details on each func
505 static inline void cpacf_pckmo(long func, void *param)
512 : [fc] "d" (func), [pba] "d" ((unsigned long)param),
520 * @func: the function code passed to KMA; see CPACF_KMA_xxx defines
521 * @param: address of parameter block; see POP for details on each func
528 static inline void cpacf_kma(unsigned long func, void *param, u8 *dest,
546 : [fc] "d" (func), [pba] "d" ((unsigned long)param),