Lines Matching defs:ret
166 int ret = 0;
179 ret = wait_for_completion_timeout(&nwip->complete,
181 if (!ret) {
212 uint32_t ret;
215 ret = nss_core_register_handler(if_num, nss_virt_if_msg_handler, NULL);
216 if (ret != NSS_CORE_STATUS_SUCCESS) {
330 int ret;
350 ret = nss_virt_if_register_handler(handle);
351 if (ret != NSS_VIRT_IF_SUCCESS) {
352 nss_warning("%p: Registration handler failed reason: %d\n", handle->nss_ctx, ret);
367 ret = nss_virt_if_tx_msg(handle->nss_ctx, &nvim);
368 if (ret != NSS_TX_SUCCESS) {
369 nss_warning("%p: nss_virt_if_tx_msg failed %u\n", handle->nss_ctx, ret);
488 uint32_t ret;
492 ret = nss_core_register_handler(if_num, nss_virt_if_msg_handler, NULL);
493 if (ret != NSS_CORE_STATUS_SUCCESS) {
517 int ret;
528 handle = nss_virt_if_handle_create(nss_ctx, netdev, cb, app_data, &ret);
530 nss_warning("%p:virt_if handle create failed ret %d\n", nss_ctx, ret);
531 return ret;
543 ret = nss_dynamic_interface_tx(nss_ctx, &ndim);
544 if (ret != NSS_TX_SUCCESS) {
546 ret = NSS_VIRT_IF_DYNAMIC_IF_FAILURE;
548 return ret;
551 return ret;
564 uint32_t ret;
579 handle = nss_virt_if_handle_create_sync(nss_ctx, if_num, &ret);
581 nss_warning("%p:virt_if handle creation failed ret %d\n", nss_ctx, ret);
587 ret = nss_virt_if_register_handler_sync(handle);
588 if (ret != NSS_VIRT_IF_SUCCESS) {
589 nss_warning("%p: Registration handler failed reason: %d\n", nss_ctx, ret);
600 ret = nss_virt_if_tx_msg_sync(handle, &nvim);
601 if (ret != NSS_TX_SUCCESS) {
602 nss_warning("%p: nss_virt_if_tx_msg_sync failed %u\n", nss_ctx, ret);
641 uint32_t ret;
676 ret = nss_core_unregister_handler(if_num);
677 if (ret != NSS_CORE_STATUS_SUCCESS) {
696 uint32_t ret;
729 ret = nss_core_unregister_handler(if_num);
730 if (ret != NSS_CORE_STATUS_SUCCESS) {