Lines Matching defs:rv
403 int rv;
405 rv = ddi_soft_state_init(&pshot_softstatep, sizeof (pshot_t), 0);
407 if (rv != DDI_SUCCESS)
408 return (rv);
414 if ((rv = mod_install(&modlinkage)) != 0) {
418 return (rv);
424 int rv;
426 if ((rv = mod_remove(&modlinkage)) != 0)
427 return (rv);
1325 int rv;
1348 rv = DDI_FAILURE;
1355 rv = DDI_SUCCESS;
1361 return (rv);
1877 int rv = 0;
1905 rv = ndi_devctl_ioctl(self, cmd, arg, mode, flags);
1906 if (pshot_debug && rv != 0) {
1908 " failed, rv = %d", instance, rv);
1911 return (rv);
1926 rv = pshot_event(pshot, PSHOT_EVENT_TAG_DEV_RESET,
1928 ASSERT(rv == NDI_SUCCESS);
1941 rv = pshot_event(pshot, PSHOT_EVENT_TAG_BUS_QUIESCE,
1943 ASSERT(rv == NDI_SUCCESS);
1961 rv = pshot_event(pshot, PSHOT_EVENT_TAG_BUS_UNQUIESCE,
1963 ASSERT(rv == NDI_SUCCESS);
1972 rv = pshot_event(pshot, PSHOT_EVENT_TAG_BUS_RESET,
1974 ASSERT(rv == NDI_SUCCESS);
2020 rv = EINVAL;
2069 rv = EINVAL;
2091 rv = EINVAL;
2115 rv = EINVAL;
2139 rv = EINVAL;
2166 rv = EINVAL;
2206 rv = EINVAL;
2234 rv = ENOTTY;
2238 return (rv);
2257 int rv = 0;
2283 rv = pshot_event(pshot, PSHOT_EVENT_TAG_DEV_RESET,
2285 ASSERT(rv == NDI_SUCCESS);
2298 rv = pshot_event(pshot, PSHOT_EVENT_TAG_BUS_QUIESCE,
2300 ASSERT(rv == NDI_SUCCESS);
2318 rv = pshot_event(pshot, PSHOT_EVENT_TAG_BUS_UNQUIESCE,
2320 ASSERT(rv == NDI_SUCCESS);
2329 rv = pshot_event(pshot, PSHOT_EVENT_TAG_BUS_RESET,
2331 ASSERT(rv == NDI_SUCCESS);
2335 rv = ENOTTY;
2340 return (rv);
3304 int rv = 0;
3313 rv = pshot_devices_grow(&newdevs, newdevs_len, pshot_stock_devices,
3315 if (rv != 0) {
3324 rv = 0;
3326 if (rv && newdevs)
3329 return (rv);
3384 int rv;
3386 rv = ndi_devi_alloc(devi, "pshot", DEVI_SID_NODEID, &l1child);
3387 if (rv == NDI_SUCCESS) {
3390 rv = ndi_devi_alloc(l1child, "port", DEVI_SID_NODEID,
3392 if (rv == NDI_SUCCESS)
3397 rv = ndi_devi_alloc(devi, "port", DEVI_SID_NODEID, &l1child);
3398 if (rv == NDI_SUCCESS)
3402 rv = ndi_devi_alloc(devi, "gen_drv", DEVI_SID_NODEID, &l1child);
3403 if (rv == NDI_SUCCESS)
3407 rv = ndi_devi_alloc(devi, "no_driver", DEVI_SID_NODEID, &l1child);
3408 if (rv == NDI_SUCCESS)
3426 int rv;
3441 rv = ndi_devi_offline(cdip,
3443 if (rv != NDI_SUCCESS)
3446 "err %d", rv);