Lines Matching defs:set_pin
797 if (provider_ops->set_pin != NULL)
3600 set_pin(dev_t dev, caddr_t arg, int mode, int *rval)
3602 STRUCT_DECL(crypto_set_pin, set_pin);
3614 STRUCT_INIT(set_pin, mode);
3617 cmn_err(CE_WARN, "set_pin: failed holding minor");
3621 if (copyin(arg, STRUCT_BUF(set_pin),
3622 STRUCT_SIZE(set_pin)) != 0) {
3627 old_pin_len = STRUCT_FGET(set_pin, sp_old_len);
3629 if (get_pin_and_session_ptr(STRUCT_FGETP(set_pin, sp_old_pin),
3630 &old_pin, old_pin_len, cm, STRUCT_FGET(set_pin, sp_session),
3634 new_pin_len = STRUCT_FGET(set_pin, sp_new_len);
3641 if (new_pin_len != 0 && copyin(STRUCT_FGETP(set_pin, sp_new_pin),
3648 CRYPTO_OPS_OFFSET(provider_ops), CRYPTO_PROVIDER_OFFSET(set_pin),
3679 STRUCT_FSET(set_pin, sp_return_value, rv);
3680 if (copyout(STRUCT_BUF(set_pin), arg, STRUCT_SIZE(set_pin)) != 0) {
6667 return (set_pin(dev, ARG, mode, rval));