Lines Matching refs:result

118 	status_t result = StartDevice();
119 if (result != B_OK) {
120 return result;
124 result = gUSBModule->queue_interrupt(fNotifyEndpoint, fNotifyBuffer,
126 if (result != B_OK) {
127 TRACE_ALWAYS("Error of requesting notify interrupt:%#010x\n", result);
128 return result;
133 return result;
188 status_t result = gUSBModule->queue_bulk_v(fReadEndpoint,
191 if (result != B_OK) {
192 TRACE_ALWAYS("Error of queue_bulk_v request:%#010x\n", result);
193 return result;
197 result = acquire_sem_etc(fNotifyReadSem, 1, flags, 0);
198 if (result < B_OK) {
199 TRACE_ALWAYS("Error of acquiring notify semaphore:%#010x.\n", result);
200 return result;
205 result = gUSBModule->clear_feature(fReadEndpoint,
207 if (result != B_OK) {
209 result);
210 return result;
272 status_t result = gUSBModule->queue_bulk_v(fWriteEndpoint,
275 if (result != B_OK) {
276 TRACE_ALWAYS("Error of queue_bulk_v request:%#010x\n", result);
277 return result;
280 result = acquire_sem_etc(fNotifyWriteSem, 1, B_CAN_INTERRUPT, 0);
282 if (result < B_OK) {
283 TRACE_ALWAYS("Error of acquiring notify semaphore:%#010x.\n", result);
284 return result;
289 result = gUSBModule->clear_feature(fWriteEndpoint,
291 if (result != B_OK) {
292 TRACE_ALWAYS("Error during clearing of HALT state:%#010x\n", result);
293 return result;
383 status_t result = ReadMACAddress(&address);
384 if (result != B_OK) {
385 TRACE_ALWAYS("Error of reading MAC address:%#010x\n", result);
386 return result;
433 status_t result = _SetupEndpoints();
434 if (result != B_OK) {
436 return result;
440 result = SetupDevice(true);
441 if (result != B_OK) {
442 return result;
447 result = Open(fNonBlocking ? O_NONBLOCK : 0);
450 return result;
530 status_t result = gUSBModule->send_request(fDevice,
534 if (result != B_OK) {
535 TRACE_ALWAYS("Error of reading MAC address:%#010x\n", result);
536 return result;
555 status_t result = gUSBModule->send_request(fDevice,
565 return result;
572 status_t result = gUSBModule->send_request(fDevice,
575 return result;
582 status_t result = WriteRXControlRegister(0);
584 if (result != B_OK)
585 TRACE_ALWAYS("Error of writing %#04x RX Control:%#010x\n", 0, result);
587 TRACE_RET(result);
588 return result;
597 status_t result = ReadRXControlRegister(&rxcontrol);
598 if (result != B_OK) {
599 TRACE_ALWAYS("Error of reading RX Control:%#010x\n", result);
600 return result;
608 result = WriteRXControlRegister(rxcontrol);
610 if (result != B_OK ) {
612 rxcontrol, result);
615 TRACE_RET(result);
616 return result;
623 uint32 result = 0xffffffff;
627 uint32 carry = ((result & 0x80000000) ? 1 : 0) ^ (data & 0x01);
628 result <<= 1;
630 result = (result ^ 0x04c11db6) | carry;
633 return result;
672 status_t result = ReadRXControlRegister(&rxcontrol);
673 if (result != B_OK) {
674 TRACE_ALWAYS("Error of reading RX Control:%#010x\n", result);
675 return result;
685 result = gUSBModule->send_request(fDevice,
689 if (result != B_OK) {
690 TRACE_ALWAYS("Error writing hash table in MAR: %#010x.\n", result);
691 return result;
698 result = WriteRXControlRegister(rxcontrol);
699 if (result != B_OK)
700 TRACE_ALWAYS("Error writing %#02X to RXC:%#010x.\n", rxcontrol, result);
702 return result;
743 status_t result = gUSBModule->clear_feature(device->fNotifyEndpoint,
745 if (result != B_OK)
747 result);