Lines Matching refs:func

167 static inline int crypt_s390_km(long func, void *param,  in crypt_s390_km()  argument
170 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_km()
187 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_km()
203 static inline int crypt_s390_kmc(long func, void *param, in crypt_s390_kmc() argument
206 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_kmc()
223 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_kmc()
239 static inline int crypt_s390_kimd(long func, void *param, in crypt_s390_kimd() argument
242 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_kimd()
258 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_kimd()
273 static inline int crypt_s390_klmd(long func, void *param, in crypt_s390_klmd() argument
276 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_klmd()
292 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_klmd()
308 static inline int crypt_s390_kmac(long func, void *param, in crypt_s390_kmac() argument
311 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_kmac()
327 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_kmac()
344 static inline int crypt_s390_kmctr(long func, void *param, u8 *dest, in crypt_s390_kmctr() argument
347 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_kmctr()
366 return (func & CRYPT_S390_FUNC_MASK) ? src_len - __src_len : __src_len; in crypt_s390_kmctr()
384 static inline int crypt_s390_ppno(long func, void *param, in crypt_s390_ppno() argument
388 register long __func asm("0") = func & CRYPT_S390_FUNC_MASK; in crypt_s390_ppno()
407 return (func & CRYPT_S390_FUNC_MASK) ? dest_len - __dest_len : 0; in crypt_s390_ppno()
418 static inline int crypt_s390_func_available(int func, in crypt_s390_func_available() argument
433 switch (func & CRYPT_S390_OP_MASK) { in crypt_s390_func_available()
462 func &= CRYPT_S390_FUNC_MASK; in crypt_s390_func_available()
463 func &= 0x7f; /* mask modifier bit */ in crypt_s390_func_available()
464 return (status[func >> 3] & (0x80 >> (func & 7))) != 0; in crypt_s390_func_available()
476 static inline int crypt_s390_pcc(long func, void *param) in crypt_s390_pcc() argument
478 register long __func asm("0") = func & 0x7f; /* encrypt or decrypt */ in crypt_s390_pcc()