Lines Matching refs:result

215 	TRACE("Initialization result: %s\n", strerror(status));
263 status_t result = gUSBModule->queue_bulk(fReadEndpoint, fReadBuffer, sizeof(fReadBuffer),
265 if (result != B_OK) {
267 return result;
270 result = acquire_sem_etc(fNotifyReadSem, 1, B_CAN_INTERRUPT, 0);
271 if (result < B_OK) {
273 return result;
278 result = gUSBModule->clear_feature(fReadEndpoint,
280 if (result != B_OK) {
283 return result;
383 status_t result = mutex.fStatus;
384 if (result < B_OK) {
386 return result;
389 result = gUSBModule->queue_bulk_v(fWriteEndpoint, vec, 2, _WriteCallback, this);
390 if (result != B_OK) {
392 return result;
396 result = acquire_sem_etc(fNotifyWriteSem, 1, B_CAN_INTERRUPT, 0);
397 } while (result == B_INTERRUPTED);
399 if (result < B_OK) {
401 return result;
406 result = gUSBModule->clear_feature(fWriteEndpoint,
408 if (result != B_OK) {
411 return result;
516 status_t result = _SetupDevice();
517 if (result != B_OK) {
519 return result;
524 // the case as the open will not result in a corresponding notification
529 result = Open();
530 if (result == B_OK && noNotifications && fLinkStateChangeSem >= B_OK)
567 status_t result = _SendCommand(request, sizeof(request));
568 TRACE("Send init command results in %s\n", strerror(result));
576 result = _ReadResponse(response, sizeof(response));
577 TRACE("Read init command results in %s\n", strerror(result));
578 if (result != B_OK)
579 return result;
729 status_t result = _SendCommand(request, sizeof(request));
730 if (result != B_OK)
731 return result;
736 result = _ReadResponse(response, length + 24);
738 return result;
745 status_t result = _GetOID(OID_802_3_PERMANENT_ADDRESS, buffer, 6);
746 if (result != B_OK)
747 return result;
758 status_t result = _GetOID(OID_GEN_MAXIMUM_FRAME_SIZE, &fMaxSegmentSize,
760 if (result != B_OK)
761 return result;
771 status_t result = _GetOID(OID_GEN_MEDIA_CONNECT_STATUS, &fMediaConnectState,
773 if (result != B_OK)
774 return result;
784 status_t result = _GetOID(OID_GEN_LINK_SPEED, &fDownstreamSpeed,
786 if (result != B_OK)
787 return result;
809 status_t result = _SendCommand(request, sizeof(request));
810 if (result != B_OK) {
811 TRACE_ALWAYS("Failed to start traffic (set oid: %s)\n", strerror(result));
812 return result;
818 result = _ReadResponse(response, 4 * sizeof(uint32));
819 if (result != B_OK) {
820 TRACE_ALWAYS("Failed to start traffic (response: %s)\n", strerror(result));
821 return result;