Lines Matching defs:ok
743 bool ok;
765 ok = true;
769 if (iter == 0) ok = false;
771 while (ok) {
781 ok = convertObjectToProp(tmpBuffer, &length, tmpSymbol, tmpObject);
782 if (ok) {
789 if (ok) {
795 if (!ok) return kIOReturnBadArgument;
810 ok = true;
812 while (ok) {
835 ok = false;
848 if (ok) {
861 if (!ok) return kIOReturnBadArgument;
1383 bool ok;
1386 ok = true;
1393 ok = false;
1402 if (ok) {
1429 bool ok = true;
1445 ok &= result->appendByte(0xff, 1);
1448 ok &= result->appendByte(byte, 1);
1450 ok &= result->appendByte(0, 1);
1452 if (!ok) {
1549 bool ok = true;
1583 ok &= data->appendBytes(wherePtr, endPtr - wherePtr);
1630 ok &= data->appendBytes("/@", 2);
1634 ok &= data->appendByte('/', 1);
1638 ok &= data->appendBytes(comp, strlen(comp));
1640 ok &= data->appendByte(0, 1);
1644 ok &= data->appendBytes(propName->getCStringNoCopy(), propName->getLength() + 1);
1648 ok &= (oldData != 0);
1649 if (ok)
1650 ok &= data->appendBytes(oldData);
1652 if (ok) {
1653 ok = _ofDict->setObject(_registryPropertiesKey, data);
1654 if (ok)
1659 return ok ? kIOReturnSuccess : kIOReturnNoMemory;