Home
last modified time | relevance | path

Searched refs:flags (Results 1 - 25 of 130) sorted by relevance

123456

/drivers/hdf_core/framework/model/camera/buffer_manager/src/
H A Dcamera_buffer_manager.c22 uint32_t flags; in CameraBufferDone() local
36 OsalSpinLockIrqSave(&queue->doneLock, &flags); in CameraBufferDone()
43 OsalSpinUnlockIrqRestore(&queue->doneLock, &flags); in CameraBufferDone()
208 if ((queue->flags & QUEUE_STATE_ERROR) != 0) { in BufferQueueReturnBuffer()
217 if ((buffer->flags & BUFFER_PREPARED) == 0) { in BufferQueueReturnBuffer()
227 if ((queue->flags & QUEUE_STATE_STREAMING) != 0 && (queue->flags & QUEUE_STATE_STREAMING_CALLED) == 0 && in BufferQueueReturnBuffer()
241 if ((queue->flags & QUEUE_STATE_WAITING_DEQUEUE) != 0 || (queue->flags & QUEUE_STATE_STREAMING) == 0 || in WaitForDoneBuffer()
242 (queue->flags in WaitForDoneBuffer()
273 uint32_t flags; GetDoneBuffer() local
[all...]
H A Dbuffer_queue.c33 queue->flags &= ~QUEUE_STATE_STREAMING; in BufferQueueStop()
34 queue->flags &= ~QUEUE_STATE_STREAMING_CALLED; in BufferQueueStop()
36 queue->flags &= ~QUEUE_STATE_ERROR; in BufferQueueStop()
46 buffer->flags &= ~BUFFER_PREPARED; in BufferQueueStop()
137 if ((queue->flags & QUEUE_STATE_STREAMING) != 0) { in BufferQueueReleaseBuffers()
141 if (((queue->flags & QUEUE_STATE_WAITING_DEQUEUE) != 0) && userRequest->count != 0) { in BufferQueueReleaseBuffers()
177 buffer->flags |= BUFFER_NEED_USER_SYNC; in BufferQueueAllocBuffers()
178 buffer->flags |= BUFFER_NEED_DEVICE_SYNC; in BufferQueueAllocBuffers()
232 queue->flags |= QUEUE_STATE_WAITING_BUFFERS; in BufferQueueRequestBuffers()
247 queue->flags | in BufferQueueStart()
[all...]
H A Dcamera_buffer.c23 if ((buffer->flags & BUFFER_DEVICE_SYNCED) == 0) { in CameraBufferSyncForUser()
27 if ((buffer->flags & BUFFER_NEED_USER_SYNC) != 0) { in CameraBufferSyncForUser()
34 buffer->flags &= ~BUFFER_DEVICE_SYNCED; in CameraBufferSyncForUser()
218 userBuffer->flags |= USER_BUFFER_QUEUED; in CameraBufferToUserBuffer()
221 userBuffer->flags |= USER_BUFFER_ERROR; in CameraBufferToUserBuffer()
224 userBuffer->flags |= USER_BUFFER_DONE; in CameraBufferToUserBuffer()
249 queue->flags &= ~QUEUE_STATE_WAITING_BUFFERS; in CameraBufferQueueBuffer()
251 if ((queue->flags & QUEUE_STATE_STREAMING_CALLED) != 0) { in CameraBufferQueueBuffer()
260 buffer->flags &= ~BUFFER_NEED_DEVICE_SYNC; in CameraBufferSetCacheSync()
261 buffer->flags in CameraBufferSetCacheSync()
[all...]
/drivers/hdf_core/framework/support/platform/src/watchdog/
H A Dwatchdog_core.c92 uint32_t flags; in WatchdogCntlrGetStatus() local
107 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrGetStatus()
114 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrGetStatus()
117 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrGetStatus()
124 uint32_t flags; in WatchdogCntlrStart() local
135 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrStart()
147 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrStart()
154 uint32_t flags; in WatchdogCntlrStop() local
165 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrStop()
178 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrStop()
185 uint32_t flags; WatchdogCntlrSetTimeout() local
208 uint32_t flags; WatchdogCntlrGetTimeout() local
235 uint32_t flags; WatchdogCntlrFeed() local
[all...]
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
H A Dosal_spinlock.c97 int32_t OsalSpinLockIrqSave(OsalSpinlock *spinlock, uint32_t *flags) in OsalSpinLockIrqSave() argument
99 (void)flags; in OsalSpinLockIrqSave()
107 int32_t OsalSpinUnlockIrqRestore(OsalSpinlock *spinlock, uint32_t *flags) in OsalSpinUnlockIrqRestore() argument
109 (void)flags; in OsalSpinUnlockIrqRestore()
/drivers/hdf_core/adapter/khdf/linux/model/usb/host/src/
H A Dusb_net_adapter.c112 unsigned long flags = 0; in RxComplete() local
122 flags = u64_stats_update_begin_irqsave(&stats64->syncp); in RxComplete()
130 u64_stats_update_end_irqrestore(&stats64->syncp, flags); in RxComplete()
145 if (test_bit(EVENT_RX_PAUSED, &usbNet->flags)) { in UsbnetAdapterSkbReturn()
247 HARCH_NET_INFO_PRINT("usbNet->driver_info->flags = %d", usbNet->usbnetInfo.usbFlags); in UsbnetAdapterRxProcess()
298 clear_bit(EVENT_RX_KILL, &usbNet->flags); in UsbnetAdapterBh()
341 unsigned long flags = 0; in UsbnetAdapterDeferBh() local
345 spin_lock_irqsave(&list->lock, flags); in UsbnetAdapterDeferBh()
362 spin_unlock_irqrestore(&list->lock, flags); in UsbnetAdapterDeferBh()
379 set_bit(EVENT_DEV_OPEN, &usbNet->flags); in UsbnetAdapterOpen()
407 unsigned long flags = 0; WaitSkbQueueEmpty() local
499 RndisTxFixup(SkBuff *skb, gfp_t flags) RndisTxFixup() argument
546 unsigned long flags = 0; TxComplete() local
595 unsigned long flags = 0; UsbnetAdapterStartXmit() local
868 UsbnetAdapterSetSkb(struct UsbnetAdapter *usbNet, gfp_t flags, uint32_t infoSize, unsigned char *buff, SkBuff *skb) UsbnetAdapterSetSkb() argument
914 UsbnetAdapterRxComplete(struct HdfDeviceObject *device, struct HdfSBuf *data, gfp_t flags) UsbnetAdapterRxComplete() argument
[all...]
/drivers/hdf_core/adapter/khdf/liteos/platform/src/
H A Di2c_dev.c47 uint16_t flags; member
56 kMsgs->flags = uMsgs->flags; in I2cMsgInitFromUser()
57 if ((uMsgs->flags & I2C_M_RD) != 0) { in I2cMsgInitFromUser()
68 if ((kMsgs->flags & I2C_M_RD) == 0) { in I2cMsgBackToUser()
164 uint8_t *buf, int16_t len, uint16_t flags) in I2cCntlrRead()
172 msg.flags = flags | I2C_FLAG_READ; in I2cCntlrRead()
195 ret = I2cCntlrRead(client->handle, client->addr, kbuf, count, client->flags); in I2cFsRead()
209 const uint8_t *buf, int16_t len, uint16_t flags) in I2cCntlrWrite()
163 I2cCntlrRead(DevHandle handle, uint16_t addr, uint8_t *buf, int16_t len, uint16_t flags) I2cCntlrRead() argument
208 I2cCntlrWrite(DevHandle handle, uint16_t addr, const uint8_t *buf, int16_t len, uint16_t flags) I2cCntlrWrite() argument
[all...]
/drivers/hdf_core/adapter/khdf/linux/osal/src/
H A Dosal_spinlock.c115 int32_t OsalSpinLockIrqSave(OsalSpinlock *spinlock, uint32_t *flags) in OsalSpinLockIrqSave() argument
119 if (spinlock == NULL || spinlock->realSpinlock == NULL || flags == NULL) { in OsalSpinLockIrqSave()
125 *flags = temp; in OsalSpinLockIrqSave()
131 int32_t OsalSpinUnlockIrqRestore(OsalSpinlock *spinlock, uint32_t *flags) in OsalSpinUnlockIrqRestore() argument
133 if (spinlock == NULL || spinlock->realSpinlock == NULL || flags == NULL) { in OsalSpinUnlockIrqRestore()
138 spin_unlock_irqrestore((spinlock_t *)spinlock->realSpinlock, *flags); in OsalSpinUnlockIrqRestore()
H A Dosal_file.c26 int32_t OsalFileOpen(OsalFile *file, const char *path, int flags, uint32_t rights) in OsalFileOpen() argument
37 fp = filp_open(path, flags, rights); in OsalFileOpen()
39 HDF_LOGE("%s open file fail %d %u", __func__, flags, rights); in OsalFileOpen()
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_spinlock.c132 int32_t OsalSpinLockIrqSave(OsalSpinlock *spinlock, uint32_t *flags) in OsalSpinLockIrqSave() argument
135 if (spinlock == NULL || spinlock->realSpinlock == NULL || flags == NULL) { in OsalSpinLockIrqSave()
140 *flags = temp; in OsalSpinLockIrqSave()
145 int32_t OsalSpinUnlockIrqRestore(OsalSpinlock *spinlock, uint32_t *flags) in OsalSpinUnlockIrqRestore() argument
147 if (spinlock == NULL || spinlock->realSpinlock == NULL || flags == NULL) { in OsalSpinUnlockIrqRestore()
151 spin_unlock_irqrestore((spinlock_t *)spinlock->realSpinlock, *flags); in OsalSpinUnlockIrqRestore()
H A Dosal_file.c40 int32_t OsalFileOpen(OsalFile *file, const char *path, int flags, uint32_t rights) in OsalFileOpen() argument
57 fd = open(pathName, flags, rights); in OsalFileOpen()
59 HDF_LOGE("%s open file fail %d %u %d", __func__, flags, rights, errno); in OsalFileOpen()
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
H A Dosal_spinlock.c126 int32_t OsalSpinLockIrqSave(OsalSpinlock *spinlock, uint32_t *flags) in OsalSpinLockIrqSave() argument
128 (void)flags; in OsalSpinLockIrqSave()
132 int32_t OsalSpinUnlockIrqRestore(OsalSpinlock *spinlock, uint32_t *flags) in OsalSpinUnlockIrqRestore() argument
134 (void)flags; in OsalSpinUnlockIrqRestore()
/drivers/hdf_core/framework/support/platform/src/i2c/
H A Di2c_msg.c28 if ((msgs[i].flags & I2C_FLAG_READ) != 0) { in AssignReplayBuffer()
65 msgs[i].flags = userMsgs->flags; in RebuildMsgs()
66 if ((msgs[i].flags & I2C_FLAG_READ) != 0) { in RebuildMsgs()
113 if ((msgs[i].flags & I2C_FLAG_READ) == 0) { in I2cMsgsWriteToSbuf()
/drivers/hdf_core/framework/model/input/driver/input_bus_ops/
H A Dinput_i2c_ops.c23 msg[0].flags = 0; in InputI2cRead()
28 msg[1].flags = I2C_FLAG_READ; in InputI2cRead()
45 msg[0].flags = 0; in InputI2cWrite()
/drivers/hdf_core/framework/support/platform/test/fuzztest/i2c_fuzzer/
H A Di2c_fuzzer.cpp20 uint16_t flags; member
37 msg.flags = params->flags; in I2cFuzzTest()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/
H A Dbuild.py21 flags = os.O_RDWR | os.O_CREAT variable
23 with os.fdopen(os.open(r".\..\hcsVSCode\editor.html", flags, modes),
/drivers/hdf_core/interfaces/inner_api/osal/shared/
H A Dosal_spinlock.h164 * @param flags Indicates the pointer to the status of the IRQ register.
176 int32_t OsalSpinLockIrqSave(OsalSpinlock *spinlock, uint32_t *flags);
182 * @param flags Indicates the pointer to the value used to restore the IRQ register.
194 int32_t OsalSpinUnlockIrqRestore(OsalSpinlock *spinlock, uint32_t *flags);
/drivers/hdf_core/adapter/khdf/linux/platform/gpio/
H A Dgpio_adapter.c132 unsigned long flags = 0; in LinuxGpioSetIrq() local
146 flags |= (mode & GPIO_IRQ_TRIGGER_RISING) == 0 ? 0 : IRQF_TRIGGER_RISING; in LinuxGpioSetIrq()
147 flags |= (mode & GPIO_IRQ_TRIGGER_FALLING) == 0 ? 0 : IRQF_TRIGGER_FALLING; in LinuxGpioSetIrq()
148 flags |= (mode & GPIO_IRQ_TRIGGER_HIGH) == 0 ? 0 : IRQF_TRIGGER_HIGH; in LinuxGpioSetIrq()
149 flags |= (mode & GPIO_IRQ_TRIGGER_LOW) == 0 ? 0 : IRQF_TRIGGER_LOW; in LinuxGpioSetIrq()
151 ret = request_irq(irq, LinuxGpioIrqBridge, flags, in LinuxGpioSetIrq()
155 flags |= IRQF_ONESHOT; in LinuxGpioSetIrq()
156 ret = request_threaded_irq(irq, LinuxGpioIrqBridge, LinuxGpioIrqDummy, flags, in LinuxGpioSetIrq()
/drivers/hdf_core/framework/model/audio/usb/src/
H A Daudio_usb_endpoints.c136 unsigned long flags; in AudioUsbEndpointSlaveNextPacketSize() local
148 spin_lock_irqsave(&endpoint->lock, flags); in AudioUsbEndpointSlaveNextPacketSize()
151 spin_unlock_irqrestore(&endpoint->lock, flags); in AudioUsbEndpointSlaveNextPacketSize()
253 clear_bit(EP_FLAG_RUNNING, &endpoint->flags); in AudioUsbDeactivateUrbs()
276 set_bit(EP_FLAG_STOPPING, &endpoint->flags); in AudioUsbEndpointStop()
308 set_bit(EP_FLAG_RUNNING, &endpoint->flags); in AudioUsbEndpointStart()
329 clear_bit(EP_FLAG_RUNNING, &endpoint->flags); in AudioUsbEndpointStart()
341 unsigned long flags; in AudioUsbQueuePendingOutputUrbs() local
347 while (test_bit(EP_FLAG_RUNNING, &endpoint->flags)) { in AudioUsbQueuePendingOutputUrbs()
348 spin_lock_irqsave(&endpoint->lock, flags); in AudioUsbQueuePendingOutputUrbs()
386 unsigned long flags; AudioUsbUpdataOutPacket() local
423 unsigned long flags; AudioUsbHandleSyncUrb() local
500 unsigned long flags; AudioUsbOutboundUrb() local
[all...]
/drivers/peripheral/memorytracker/test/unittest/phone/
H A Dhdf_memorytracker_test.cpp70 printf("memtrack: \trecords[%d], flag=%d, size=%lld \n", i++, record.flags, (long long)record.size); in HWTEST_F()
90 printf("memtrack: \trecords[%d], flag=%d, size=%lld \n", i++, record.flags, (long long)record.size); in HWTEST_F()
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
H A Di2c_test.c49 msg[0].flags = 0; in I2cReadData()
54 msg[1].flags = I2C_FLAG_READ; in I2cReadData()
71 msg[0].flags = 0; in I2cWriteData()
/drivers/hdf_core/framework/model/sensor/driver/common/src/
H A Dsensor_platform_if.c40 msg[I2C_READ_MSG_ADDR_IDX].flags = 0; in ReadSensor()
55 msg[I2C_READ_MSG_VALUE_IDX].flags = I2C_FLAG_READ; in ReadSensor()
87 msg[0].flags = 0; in WriteSensor()
/drivers/peripheral/display/hal/default_standard/src/utils/
H A Ddisplay_adapter.cpp71 int32_t DisplayAdapter::OpenDevice(const std::string &pathName, int32_t flags, mode_t mode) in OpenDevice() argument
75 return funcs_->OpenDevice(pathName.c_str(), flags, mode); in OpenDevice()
77 return open(pathName.c_str(), flags, mode); in OpenDevice()
/drivers/hdf_core/framework/support/platform/include/i2c/
H A Di2c_service.h34 uint16_t flags; member
/drivers/hdf_core/framework/model/camera/buffer_manager/include/
H A Dbuffer_queue.h23 uint32_t flags; member
44 void *(*getDmaBuf)(void *bufPriv, uint32_t flags);
64 /* BufferQueue flags */

Completed in 10 milliseconds

123456