Home
last modified time | relevance | path

Searched refs:rt_device_open (Results 1 – 25 of 30) sorted by relevance

12

/components/drivers/sensor/v1/
A Dsensor_cmd.c148 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 Dtc_audio_main.c76 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 Dat_server.c595 …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 Dat_client.c1032 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 Ddevice.c222 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 Dsensor_cmd.c399 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 Ddfs_fs.c325 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 Dmsc_ram_template.c267 res = rt_device_open(blk_dev, RT_DEVICE_OFLAG_RDWR); in msc_ram_init()
/components/drivers/block/
A Dblk_dev.c26 return rt_device_open(&blk->disk->parent, oflag); in blk_dev_open()
/components/utilities/ymodem/
A Dymodem.c685 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 Dserial_tty.c213 error = rt_device_open(&serial->parent, oflags); in serial_tty_open()
/components/dfs/dfs_v1/filesystems/devfs/
A Ddevfs.c254 result = rt_device_open(device, RT_DEVICE_OFLAG_RDWR); in dfs_device_fs_open()
/components/legacy/usb/usbdevice/class/
A Daudio_speaker.c317 rt_device_open(speaker.dev, RT_DEVICE_OFLAG_WRONLY); in speaker_entry()
A Daudio_mic.c317 rt_device_open(mic.dev, RT_DEVICE_OFLAG_RDONLY); in mic_entry()
/components/utilities/rt-link/src/
A Drtlink_dev.c58 return rt_device_open(device, flags); in rtlink_fops_open()
/components/net/lwip/port/
A Dethernetif.c501 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 Dvirtio.c428 if(_gpu_dev != RT_NULL && rt_device_open(_gpu_dev, 0) == RT_EOK) in fb_init()
/components/dfs/dfs_v2/filesystems/devfs/
A Ddevfs.c73 ret = rt_device_open(device, RT_DEVICE_OFLAG_RDWR); in dfs_devfs_open()
/components/drivers/wlan/
A Ddev_wlan_lwip.c446 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 Ddfs_elm.c139 || 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 Ddev_audio.c232 rt_device_open(RT_DEVICE(&audio->record->pipe), RT_DEVICE_OFLAG_RDONLY); in _audio_record_start()
/components/finsh/
A Dshell.c234 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 Ddfs_elm.c254 rt_device_open(dev_id, RT_DEVICE_OFLAG_RDWR); in dfs_elm_mkfs()
/components/drivers/usb/cherryusb/platform/rtthread/
A Dusbh_serial.c446 ret = rt_device_open(device, flags); in usbh_serial_fops_open()
/components/libc/compilers/common/
A Dctime.c106 if (rt_device_open(device, 0) == RT_EOK) in _control_rtc()

Completed in 39 milliseconds

12