Lines Matching defs:func
167 * @func: the function code to test for
170 * and checks if @func is available
172 * Returns 1 if @func is available for @opcode, 0 otherwise
224 static inline int cpacf_test_func(cpacf_mask_t *mask, unsigned int func)
226 return (mask->bytes[func >> 3] & (0x80 >> (func & 7))) != 0;
229 static __always_inline int cpacf_query_func(unsigned int opcode, unsigned int func)
234 return cpacf_test_func(&mask, func);
240 * @func: the function code passed to KM; see CPACF_KM_xxx defines
241 * @param: address of parameter block; see POP for details on each func
246 * Returns 0 for the query func, number of processed bytes for
249 static inline int cpacf_km(unsigned long func, void *param,
252 register unsigned long r0 asm("0") = (unsigned long) func;
270 * @func: the function code passed to KM; see CPACF_KMC_xxx defines
271 * @param: address of parameter block; see POP for details on each func
276 * Returns 0 for the query func, number of processed bytes for
279 static inline int cpacf_kmc(unsigned long func, void *param,
282 register unsigned long r0 asm("0") = (unsigned long) func;
301 * @func: the function code passed to KM; see CPACF_KIMD_xxx defines
302 * @param: address of parameter block; see POP for details on each func
306 static inline void cpacf_kimd(unsigned long func, void *param,
309 register unsigned long r0 asm("0") = (unsigned long) func;
324 * @func: the function code passed to KM; see CPACF_KLMD_xxx defines
325 * @param: address of parameter block; see POP for details on each func
329 static inline void cpacf_klmd(unsigned long func, void *param,
332 register unsigned long r0 asm("0") = (unsigned long) func;
348 * @func: the function code passed to KM; see CPACF_KMAC_xxx defines
349 * @param: address of parameter block; see POP for details on each func
353 * Returns 0 for the query func, number of processed bytes for digest funcs
355 static inline int cpacf_kmac(unsigned long func, void *param,
358 register unsigned long r0 asm("0") = (unsigned long) func;
375 * @func: the function code passed to KMCTR; see CPACF_KMCTR_xxx defines
376 * @param: address of parameter block; see POP for details on each func
382 * Returns 0 for the query func, number of processed bytes for
385 static inline int cpacf_kmctr(unsigned long func, void *param, u8 *dest,
388 register unsigned long r0 asm("0") = (unsigned long) func;
409 * @func: the function code passed to PRNO; see CPACF_PRNO_xxx defines
410 * @param: address of parameter block; see POP for details on each func
416 static inline void cpacf_prno(unsigned long func, void *param,
420 register unsigned long r0 asm("0") = (unsigned long) func;
464 * @func: the function code passed to PCC; see CPACF_KM_xxx defines
465 * @param: address of parameter block; see POP for details on each func
467 static inline void cpacf_pcc(unsigned long func, void *param)
469 register unsigned long r0 asm("0") = (unsigned long) func;
483 * @func: the function code passed to PCKMO; see CPACF_PCKMO_xxx defines
484 * @param: address of parameter block; see POP for details on each func
488 static inline void cpacf_pckmo(long func, void *param)
490 register unsigned long r0 asm("0") = (unsigned long) func;
503 * @func: the function code passed to KMA; see CPACF_KMA_xxx defines
504 * @param: address of parameter block; see POP for details on each func
511 static inline void cpacf_kma(unsigned long func, void *param, u8 *dest,
515 register unsigned long r0 asm("0") = (unsigned long) func;