Lines Matching refs:nStatus
133 SANE_Status nStatus = SANE_STATUS_GOOD; in ControlOption() local
136 nStatus = p_control_option( maHandle, (SANE_Int)nOption, in ControlOption()
138 DUMP_STATE( nStatus, "sane_control_option" ); in ControlOption()
140 if( nStatus != SANE_STATUS_GOOD ) in ControlOption()
160 return nStatus; in ControlOption()
239 SANE_Status nStatus = p_init( &nVersion, 0 ); in Init() local
240 FAIL_SHUTDOWN_STATE( nStatus, "sane_init", ); in Init()
241 nStatus = p_get_devices( (const SANE_Device***)&ppDevices, in Init()
243 FAIL_SHUTDOWN_STATE( nStatus, "sane_get_devices", ); in Init()
280 SANE_Status nStatus = p_control_option( maHandle, 0, SANE_ACTION_GET_VALUE, in ReloadOptions() local
282 if( nStatus != SANE_STATUS_GOOD ) in ReloadOptions()
283 …rr, "Error: sane driver returned %s while reading number of options !\n", p_strstatus( nStatus ) ); in ReloadOptions()
305 SANE_Status nStatus = p_open( (SANE_String_Const)name, &maHandle ); in Open() local
306 FAIL_STATE( nStatus, "sane_open", sal_False ); in Open()
365 SANE_Status nStatus = ControlOption( n, SANE_ACTION_GET_VALUE, &nRet ); in GetOptionValue() local
366 if( nStatus != SANE_STATUS_GOOD ) in GetOptionValue()
379 SANE_Status nStatus = ControlOption( n, SANE_ACTION_GET_VALUE, pRet ); in GetOptionValue() local
380 if( nStatus == SANE_STATUS_GOOD ) in GetOptionValue()
398 SANE_Status nStatus = ControlOption( n, SANE_ACTION_GET_VALUE, pRet ); in GetOptionValue() local
399 if( nStatus == SANE_STATUS_GOOD ) in GetOptionValue()
418 SANE_Status nStatus = ControlOption( n, SANE_ACTION_GET_VALUE, pFixedSet ); in GetOptionValue() local
419 if( nStatus != SANE_STATUS_GOOD ) in GetOptionValue()
440 SANE_Status nStatus = ControlOption( n, SANE_ACTION_SET_VALUE, &nRet ); in SetOptionValue() local
441 if( nStatus != SANE_STATUS_GOOD ) in SetOptionValue()
451 SANE_Status nStatus = ControlOption( n, SANE_ACTION_SET_VALUE, (void*)aSet.GetBuffer() ); in SetOptionValue() local
452 if( nStatus != SANE_STATUS_GOOD ) in SetOptionValue()
465 SANE_Status nStatus; in SetOptionValue() local
469 nStatus = ControlOption( n, SANE_ACTION_GET_VALUE, pSet ); in SetOptionValue()
470 if( nStatus == SANE_STATUS_GOOD ) in SetOptionValue()
474 nStatus = ControlOption( n, SANE_ACTION_SET_VALUE, pSet ); in SetOptionValue()
484 nStatus = ControlOption( n, SANE_ACTION_SET_VALUE, &nSetTo ); in SetOptionValue()
485 if( nStatus == SANE_STATUS_GOOD ) in SetOptionValue()
504 SANE_Status nStatus = ControlOption( n, SANE_ACTION_SET_VALUE, pFixedSet ); in SetOptionValue() local
506 if( nStatus != SANE_STATUS_GOOD ) in SetOptionValue()
603 SANE_Status nStatus = SANE_STATUS_GOOD; in Start() local
633 nStatus = p_start( maHandle ); in Start()
634 DUMP_STATE( nStatus, "sane_start" ); in Start()
636 if( nStatus == SANE_STATUS_GOOD ) in Start()
638 nStatus = p_get_parameters( maHandle, &aParams ); in Start()
639 DUMP_STATE( nStatus, "sane_get_parameters" ); in Start()
641 if (nStatus != SANE_STATUS_GOOD || aParams.bytes_per_line == 0) in Start()
689 nStatus = p_set_io_mode( maHandle, SANE_FALSE ); in Start()
691 if( nStatus != SANE_STATUS_GOOD ) in Start()
694 nStatus = p_set_io_mode( maHandle, SANE_TRUE ); in Start()
697 if( nStatus != SANE_STATUS_GOOD ) in Start()
708 nStatus = p_get_select_fd( maHandle, &fd ); in Start()
709 DUMP_STATE( nStatus, "sane_get_select_fd" ); in Start()
711 if( nStatus != SANE_STATUS_GOOD ) in Start()
734 nStatus = p_read( maHandle, pBuffer, BYTE_BUFFER_SIZE, &nLen ); in Start()
736 if( nLen && ( nStatus == SANE_STATUS_GOOD || in Start()
737 nStatus == SANE_STATUS_EOF ) ) in Start()
742 DUMP_STATE( nStatus, "sane_read" ); in Start()
743 } while( nStatus == SANE_STATUS_GOOD ); in Start()
744 if( nStatus != SANE_STATUS_EOF ) in Start()
996 SANE_Status nStatus = ControlOption( n, SANE_ACTION_SET_VALUE, NULL ); in ActivateButtonOption() local
997 if( nStatus != SANE_STATUS_GOOD ) in ActivateButtonOption()