Lines Matching refs:dev_info
360 crypto_get_dev_info_t dev_info; in get_dev_info() local
368 if (copyin(arg, &dev_info, sizeof (dev_info)) != 0) in get_dev_info()
371 dev_name = dev_info.di_dev_name; in get_dev_info()
374 dev_info.di_return_value = CRYPTO_ARGUMENTS_BAD; in get_dev_info()
375 if (copyout(&dev_info, arg, sizeof (dev_info)) != 0) { in get_dev_info()
382 if ((rv = crypto_get_dev_info(dev_name, dev_info.di_dev_instance, in get_dev_info()
384 dev_info.di_return_value = rv; in get_dev_info()
385 if (copyout(&dev_info, arg, sizeof (dev_info)) != 0) { in get_dev_info()
392 if (count > dev_info.di_count) { in get_dev_info()
393 dev_info.di_count = count; in get_dev_info()
394 dev_info.di_return_value = CRYPTO_BUFFER_TOO_SMALL; in get_dev_info()
396 if (copyout(&dev_info, arg, sizeof (dev_info)) != 0) { in get_dev_info()
402 dev_info.di_count = count; in get_dev_info()
403 dev_info.di_return_value = CRYPTO_SUCCESS; in get_dev_info()
408 if (copyout(&dev_info, arg, sizeof (dev_info)) != 0) { in get_dev_info()