Lines Matching refs:set_pin
809 if (provider_ops->set_pin != NULL) in crypto_build_function_list()
3674 set_pin(dev_t dev, caddr_t arg, int mode, int *rval) in set_pin() function
3676 STRUCT_DECL(crypto_set_pin, set_pin); in set_pin()
3688 STRUCT_INIT(set_pin, mode); in set_pin()
3695 if (copyin(arg, STRUCT_BUF(set_pin), in set_pin()
3696 STRUCT_SIZE(set_pin)) != 0) { in set_pin()
3701 old_pin_len = STRUCT_FGET(set_pin, sp_old_len); in set_pin()
3703 if (get_pin_and_session_ptr(STRUCT_FGETP(set_pin, sp_old_pin), in set_pin()
3704 &old_pin, old_pin_len, cm, STRUCT_FGET(set_pin, sp_session), in set_pin()
3708 new_pin_len = STRUCT_FGET(set_pin, sp_new_len); in set_pin()
3715 if (new_pin_len != 0 && copyin(STRUCT_FGETP(set_pin, sp_new_pin), in set_pin()
3722 CRYPTO_OPS_OFFSET(provider_ops), CRYPTO_PROVIDER_OFFSET(set_pin), in set_pin()
3753 STRUCT_FSET(set_pin, sp_return_value, rv); in set_pin()
3754 if (copyout(STRUCT_BUF(set_pin), arg, STRUCT_SIZE(set_pin)) != 0) { in set_pin()
6829 return (set_pin(dev, ARG, mode, rval)); in crypto_ioctl()