Home
last modified time | relevance | path

Searched refs:oflag (Results 1 – 25 of 39) sorted by relevance

12

/components/libc/posix/ipc/
A Dmqueue.c103 mqd_t mq_open(const char *name, int oflag, ...) in mq_open() argument
109 va_start(arg, oflag); in mq_open()
131 if (oflag & O_CREAT && oflag & O_EXCL) in mq_open()
137 else if (oflag & O_CREAT) in mq_open()
167 mq_fd = open(mq_name, oflag); in mq_open()
A Dsemaphore.c327 sem_t *sem_open(const char *name, int oflag, ...) in sem_open() argument
338 if (oflag & O_CREAT) in sem_open()
340 va_start(arg, oflag); in sem_open()
345 if (oflag & O_EXCL) in sem_open()
A Dsemaphore.h36 sem_t *sem_open(const char *name, int oflag, ...);
A Dmqueue.h33 mqd_t mq_open(const char *name, int oflag, ...);
/components/utilities/ymodem/
A Dymodem.h140 rt_err_t rym_recv_on_device(struct rym_ctx *ctx, rt_device_t dev, rt_uint16_t oflag,
163 rt_err_t rym_send_on_device(struct rym_ctx *ctx, rt_device_t dev, rt_uint16_t oflag,
A Dymodem.c654 rt_uint16_t oflag, in rym_recv_on_device() argument
685 res = rt_device_open(dev, oflag); in rym_recv_on_device()
711 rt_uint16_t oflag, in rym_send_on_device() argument
742 res = rt_device_open(dev, oflag); in rym_send_on_device()
/components/drivers/audio/
A Ddev_audio.c373 static rt_err_t _audio_dev_open(struct rt_device *dev, rt_uint16_t oflag) in _audio_dev_open() argument
381 if ((oflag & RT_DEVICE_OFLAG_RDONLY) && !(dev->flag & RT_DEVICE_FLAG_RDONLY)) in _audio_dev_open()
383 if ((oflag & RT_DEVICE_OFLAG_WRONLY) && !(dev->flag & RT_DEVICE_FLAG_WRONLY)) in _audio_dev_open()
387 dev->open_flag = oflag & 0xff; in _audio_dev_open()
390 if (oflag & RT_DEVICE_OFLAG_WRONLY) in _audio_dev_open()
394 LOG_D("open audio replay device, oflag = %x\n", oflag); in _audio_dev_open()
403 if (oflag & RT_DEVICE_OFLAG_RDONLY) in _audio_dev_open()
408 LOG_D("open audio record device ,oflag = %x\n", oflag); in _audio_dev_open()
/components/drivers/serial/
A Ddev_serial.c640 static rt_err_t rt_serial_open(struct rt_device *dev, rt_uint16_t oflag) in rt_serial_open() argument
649 dev, oflag); in rt_serial_open()
665 dev->open_flag = oflag & 0xff; in rt_serial_open()
675 if (oflag & RT_DEVICE_FLAG_INT_RX) in rt_serial_open()
694 else if (oflag & RT_DEVICE_FLAG_DMA_RX) in rt_serial_open()
729 if (oflag & RT_DEVICE_FLAG_INT_RX) in rt_serial_open()
732 else if (oflag & RT_DEVICE_FLAG_DMA_RX) in rt_serial_open()
739 if (oflag & RT_DEVICE_FLAG_INT_TX) in rt_serial_open()
754 else if (oflag & RT_DEVICE_FLAG_DMA_TX) in rt_serial_open()
777 if (oflag & RT_DEVICE_FLAG_INT_TX) in rt_serial_open()
[all …]
/components/drivers/core/
A Ddevice.c222 rt_err_t rt_device_open(rt_device_t dev, rt_uint16_t oflag) in rt_device_open() argument
257 …((dev->open_flag & RT_DEVICE_OFLAG_MASK) != ((oflag & RT_DEVICE_OFLAG_MASK) | RT_DEVICE_OFLAG_OPEN… in rt_device_open()
261 result = device_open(dev, oflag); in rt_device_open()
266 dev->open_flag = (oflag & RT_DEVICE_OFLAG_MASK); in rt_device_open()
/components/drivers/sensor/v1/
A Dsensor.c150 static rt_err_t rt_sensor_open(rt_device_t dev, rt_uint16_t oflag) in rt_sensor_open() argument
179 if (oflag & RT_DEVICE_FLAG_RDONLY && dev->flag & RT_DEVICE_FLAG_RDONLY) in rt_sensor_open()
184 else if (oflag & RT_DEVICE_FLAG_INT_RX && dev->flag & RT_DEVICE_FLAG_INT_RX) in rt_sensor_open()
194 else if (oflag & RT_DEVICE_FLAG_FIFO_RX && dev->flag & RT_DEVICE_FLAG_FIFO_RX) in rt_sensor_open()
/components/drivers/include/ipc/
A Dpipe.h44 rt_err_t rt_pipe_open(rt_device_t device, rt_uint16_t oflag);
/components/drivers/sensor/v2/
A Dsensor.c145 static rt_err_t _sensor_open(rt_device_t dev, rt_uint16_t oflag) in _sensor_open() argument
173 if (oflag & RT_DEVICE_FLAG_RDONLY && dev->flag & RT_DEVICE_FLAG_RDONLY) in _sensor_open()
181 else if (oflag & RT_DEVICE_FLAG_INT_RX && dev->flag & RT_DEVICE_FLAG_INT_RX) in _sensor_open()
191 else if (oflag & RT_DEVICE_FLAG_FIFO_RX && dev->flag & RT_DEVICE_FLAG_FIFO_RX) in _sensor_open()
/components/drivers/include/drivers/core/
A Ddriver.h29 rt_err_t (*open) (rt_device_t dev, rt_uint16_t oflag);
/components/drivers/touch/
A Ddev_touch.c98 static rt_err_t rt_touch_open(rt_device_t dev, rt_uint16_t oflag) in rt_touch_open() argument
104 if (oflag & RT_DEVICE_FLAG_INT_RX && dev->flag & RT_DEVICE_FLAG_INT_RX) in rt_touch_open()
/components/drivers/block/
A Dblk_dev.c22 static rt_err_t blk_dev_open(rt_device_t dev, rt_uint16_t oflag) in blk_dev_open() argument
26 return rt_device_open(&blk->disk->parent, oflag); in blk_dev_open()
A Dblk.c29 static rt_err_t blk_open(rt_device_t dev, rt_uint16_t oflag) in blk_open() argument
33 if (disk->read_only && (oflag & RT_DEVICE_OFLAG_WRONLY)) in blk_open()
/components/drivers/watchdog/
A Ddev_watchdog.c33 static rt_err_t rt_watchdog_open(struct rt_device *dev, rt_uint16_t oflag) in rt_watchdog_open() argument
/components/drivers/mtd/
A Dmtd_nor.c23 static rt_err_t _mtd_open(rt_device_t dev, rt_uint16_t oflag) in _mtd_open() argument
/components/drivers/misc/
A Dpulse_encoder.c28 static rt_err_t rt_pulse_encoder_open(struct rt_device *dev, rt_uint16_t oflag) in rt_pulse_encoder_open() argument
A Drt_inputcapture.c35 static rt_err_t rt_inputcapture_open(struct rt_device *dev, rt_uint16_t oflag) in rt_inputcapture_open() argument
/components/drivers/usb/cherryusb/platform/rtthread/
A Dusbd_adb_shell.c39 static rt_err_t usbd_adb_shell_open(struct rt_device *dev, rt_uint16_t oflag) in usbd_adb_shell_open() argument
/components/utilities/rt-link/src/
A Drtlink_dev.c241 rt_err_t rt_link_dev_open(rt_device_t dev, rt_uint16_t oflag) in rt_link_dev_open() argument
249 dev->open_flag = oflag & RT_DEVICE_OFLAG_MASK; in rt_link_dev_open()
/components/drivers/can/
A Ddev_can.c277 static rt_err_t rt_can_open(struct rt_device *dev, rt_uint16_t oflag) in rt_can_open() argument
287 dev->open_flag = oflag & 0xff; in rt_can_open()
290 if (oflag & RT_DEVICE_FLAG_INT_RX) in rt_can_open()
322 if (oflag & RT_DEVICE_FLAG_INT_TX) in rt_can_open()
/components/vbus/
A Dvbus_chnx.c33 static rt_err_t _open(rt_device_t dev, rt_uint16_t oflag) in _open() argument
/components/drivers/rtc/
A Ddev_rtc.c42 static rt_err_t rt_rtc_open(struct rt_device *dev, rt_uint16_t oflag) in rt_rtc_open() argument

Completed in 39 milliseconds

12