Home
last modified time | relevance | path

Searched refs:irqRecord (Results 1 – 3 of 3) sorted by relevance

/drivers/hdf_core/framework/support/platform/src/gpio/
Dgpio_core.c119 struct GpioIrqRecord *irqRecord = NULL; in GpioCntlrIrqCallback() local
132 irqRecord = ginfo->irqRecord; in GpioCntlrIrqCallback()
134 if (irqRecord == NULL) { in GpioCntlrIrqCallback()
139 GpioIrqRecordTrigger(irqRecord); in GpioCntlrIrqCallback()
147 struct GpioIrqRecord *irqRecord = (struct GpioIrqRecord *)data; in GpioCntlrIrqThreadHandler() local
149 if (irqRecord == NULL) { in GpioCntlrIrqThreadHandler()
154 ret = OsalSemWait(&irqRecord->sem, HDF_WAIT_FOREVER); in GpioCntlrIrqThreadHandler()
155 if (irqRecord->removed) { in GpioCntlrIrqThreadHandler()
161 if (irqRecord->btmFunc != NULL) { in GpioCntlrIrqThreadHandler()
162 (void)irqRecord->btmFunc(irqRecord->global, irqRecord->irqData); in GpioCntlrIrqThreadHandler()
[all …]
Dgpio_manager.c153 struct GpioIrqRecord *irqRecord = NULL; in GpioCntlrDestroyGpioInfos() local
156 irqRecord = cntlr->ginfos[i].irqRecord; in GpioCntlrDestroyGpioInfos()
157 if (irqRecord != NULL) { in GpioCntlrDestroyGpioInfos()
158 GpioIrqRecordDestroy(irqRecord); in GpioCntlrDestroyGpioInfos()
/drivers/hdf_core/framework/support/platform/include/gpio/
Dgpio_core.h59 struct GpioIrqRecord *irqRecord; member
89 static inline void GpioIrqRecordTrigger(struct GpioIrqRecord *irqRecord) in GpioIrqRecordTrigger() argument
91 if (irqRecord->irqFunc != NULL) { in GpioIrqRecordTrigger()
92 (void)irqRecord->irqFunc(irqRecord->global, irqRecord->irqData); in GpioIrqRecordTrigger()
94 if (irqRecord->btmFunc != NULL) { in GpioIrqRecordTrigger()
95 (void)OsalSemPost(&irqRecord->sem); in GpioIrqRecordTrigger()
99 static inline void GpioIrqRecordDestroy(struct GpioIrqRecord *irqRecord) in GpioIrqRecordDestroy() argument
103 if (irqRecord->btmFunc == NULL) { in GpioIrqRecordDestroy()
104 OsalMemFree(irqRecord); // the last access to this record in GpioIrqRecordDestroy()
106 (void)OsalSpinLockIrqSave(&irqRecord->spin, &irqSave); in GpioIrqRecordDestroy()
[all …]