| /components/drivers/sensor/v1/ |
| A D | sensor_cmd.c | 148 if (rt_device_open(dev, RT_DEVICE_FLAG_FIFO_RX) != RT_EOK) in sensor_fifo() 233 if (rt_device_open(dev, RT_DEVICE_FLAG_INT_RX) != RT_EOK) in sensor_int() 266 result = rt_device_open(dev, RT_DEVICE_FLAG_RDONLY); in sensor_polling() 492 if (rt_device_open(dev, RT_DEVICE_FLAG_RDWR) != RT_EOK) in sensor()
|
| /components/drivers/audio/utest/ |
| A D | tc_audio_main.c | 76 res = rt_device_open(dev_obj, RT_DEVICE_OFLAG_WRONLY); in player_test() 220 res = rt_device_open(dev_obj, RT_DEVICE_OFLAG_RDONLY); in mic_test()
|
| /components/net/at/src/ |
| A D | at_server.c | 595 …open_result = rt_device_open(at_server_local->device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_DMA_RX… in at_server_init() 599 …open_result = rt_device_open(at_server_local->device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX… in at_server_init() 603 …open_result = rt_device_open(at_server_local->device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_RX_BLO… in at_server_init()
|
| A D | at_client.c | 1032 open_result = rt_device_open(client->device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_DMA_RX); in at_client_init() 1036 … open_result = rt_device_open(client->device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX); in at_client_init() 1040 …open_result = rt_device_open(client->device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_RX_BLOCKING | R… in at_client_init()
|
| /components/drivers/core/ |
| A D | device.c | 222 rt_err_t rt_device_open(rt_device_t dev, rt_uint16_t oflag) in rt_device_open() function 283 RTM_EXPORT(rt_device_open);
|
| /components/drivers/sensor/v2/ |
| A D | sensor_cmd.c | 399 if (rt_device_open(dev, RT_DEVICE_FLAG_FIFO_RX) != RT_EOK) in sensor_fifo() 480 if (rt_device_open(dev, RT_DEVICE_FLAG_INT_RX) != RT_EOK) in sensor_int() 510 result = rt_device_open(dev, RT_DEVICE_FLAG_RDONLY); in sensor_polling() 683 if (rt_device_open(new_dev, RT_DEVICE_FLAG_RDWR) != RT_EOK) in sensor()
|
| /components/dfs/dfs_v1/src/ |
| A D | dfs_fs.c | 325 if (rt_device_open(fs->dev_id, RT_DEVICE_OFLAG_RDWR) != RT_EOK && in dfs_mount() 326 rt_device_open(fs->dev_id, RT_DEVICE_OFLAG_RDONLY) != RT_EOK) in dfs_mount()
|
| /components/drivers/usb/cherryusb/demo/ |
| A D | msc_ram_template.c | 267 res = rt_device_open(blk_dev, RT_DEVICE_OFLAG_RDWR); in msc_ram_init()
|
| /components/drivers/block/ |
| A D | blk_dev.c | 26 return rt_device_open(&blk->disk->parent, oflag); in blk_dev_open()
|
| /components/utilities/ymodem/ |
| A D | ymodem.c | 685 res = rt_device_open(dev, oflag); in rym_recv_on_device() 742 res = rt_device_open(dev, oflag); in rym_send_on_device()
|
| /components/drivers/serial/ |
| A D | serial_tty.c | 213 error = rt_device_open(&serial->parent, oflags); in serial_tty_open()
|
| /components/dfs/dfs_v1/filesystems/devfs/ |
| A D | devfs.c | 254 result = rt_device_open(device, RT_DEVICE_OFLAG_RDWR); in dfs_device_fs_open()
|
| /components/legacy/usb/usbdevice/class/ |
| A D | audio_speaker.c | 317 rt_device_open(speaker.dev, RT_DEVICE_OFLAG_WRONLY); in speaker_entry()
|
| A D | audio_mic.c | 317 rt_device_open(mic.dev, RT_DEVICE_OFLAG_RDONLY); in mic_entry()
|
| /components/utilities/rt-link/src/ |
| A D | rtlink_dev.c | 58 return rt_device_open(device, flags); in rtlink_fops_open()
|
| /components/net/lwip/port/ |
| A D | ethernetif.c | 501 if (rt_device_open(device, RT_DEVICE_FLAG_RDWR) != RT_EOK) in eth_netif_device_init() 689 if (rt_device_open(device, RT_DEVICE_FLAG_RDWR) != RT_EOK) in af_unix_eth_netif_device_init()
|
| /components/drivers/virtio/ |
| A D | virtio.c | 428 if(_gpu_dev != RT_NULL && rt_device_open(_gpu_dev, 0) == RT_EOK) in fb_init()
|
| /components/dfs/dfs_v2/filesystems/devfs/ |
| A D | devfs.c | 73 ret = rt_device_open(device, RT_DEVICE_OFLAG_RDWR); in dfs_devfs_open()
|
| /components/drivers/wlan/ |
| A D | dev_wlan_lwip.c | 446 if (rt_device_open((rt_device_t)wlan, RT_DEVICE_OFLAG_RDWR) != RT_EOK) in rt_wlan_lwip_protocol_register()
|
| /components/dfs/dfs_v2/filesystems/elmfat/ |
| A D | dfs_elm.c | 139 || rt_device_open(mnt->dev_id, RT_DEVICE_OFLAG_RDWR) != RT_EOK) in dfs_elm_mount() 293 rt_device_open(dev_id, RT_DEVICE_OFLAG_RDWR); in dfs_elm_mkfs()
|
| /components/drivers/audio/ |
| A D | dev_audio.c | 232 rt_device_open(RT_DEVICE(&audio->record->pipe), RT_DEVICE_OFLAG_RDONLY); in _audio_record_start()
|
| /components/finsh/ |
| A D | shell.c | 234 if (rt_device_open(dev, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX | \ in finsh_set_device()
|
| /components/dfs/dfs_v1/filesystems/elmfat/ |
| A D | dfs_elm.c | 254 rt_device_open(dev_id, RT_DEVICE_OFLAG_RDWR); in dfs_elm_mkfs()
|
| /components/drivers/usb/cherryusb/platform/rtthread/ |
| A D | usbh_serial.c | 446 ret = rt_device_open(device, flags); in usbh_serial_fops_open()
|
| /components/libc/compilers/common/ |
| A D | ctime.c | 106 if (rt_device_open(device, 0) == RT_EOK) in _control_rtc()
|