Home
last modified time | relevance | path

Searched refs:rt_device_control (Results 1 – 25 of 38) sorted by relevance

12

/components/drivers/wlan/
A Ddev_wlan.c80 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_MODE, (void *)&mode); in rt_wlan_dev_init()
121 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_JOIN, &sta_info); in rt_wlan_dev_connect()
153 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_FAST_CONNECT, &buff); in rt_wlan_dev_fast_connect()
203 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_SOFTAP, &ap_info); in rt_wlan_dev_ap_start()
216 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_AP_STOP, RT_NULL); in rt_wlan_dev_ap_stop()
229 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_AP_DEAUTH, mac); in rt_wlan_dev_ap_deauth()
244 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_GET_RSSI, &rssi); in rt_wlan_dev_get_rssi()
263 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_GET_INFO, info); in rt_wlan_dev_get_info()
282 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_AP_GET_INFO, info); in rt_wlan_dev_ap_get_info()
301 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_GET_MAC, &mac[0]); in rt_wlan_dev_get_mac()
[all …]
/components/drivers/misc/
A Drt_drv_pwm.c158 result = rt_device_control(&device->parent, PWMN_CMD_DISABLE, &configuration); in rt_pwm_enable()
162 result = rt_device_control(&device->parent, PWMN_CMD_ENABLE, &configuration); in rt_pwm_enable()
165 result = rt_device_control(&device->parent, PWM_CMD_ENABLE, &configuration); in rt_pwm_enable()
187 result = rt_device_control(&device->parent, PWMN_CMD_DISABLE, &configuration); in rt_pwm_disable()
191 result = rt_device_control(&device->parent, PWMN_CMD_ENABLE, &configuration); in rt_pwm_disable()
194 result = rt_device_control(&device->parent, PWM_CMD_DISABLE, &configuration); in rt_pwm_disable()
212 result = rt_device_control(&device->parent, PWM_CMD_SET, &configuration); in rt_pwm_set()
229 result = rt_device_control(&device->parent, PWM_CMD_SET_PERIOD, &configuration); in rt_pwm_set_period()
246 result = rt_device_control(&device->parent, PWM_CMD_SET_PULSE, &configuration); in rt_pwm_set_pulse()
281 result = rt_device_control(&device->parent, PWM_CMD_SET_PHASE, &configuration); in rt_pwm_set_phase()
[all …]
/components/drivers/block/
A Dblk_dfs.c33 rt_device_control(dev, RT_DEVICE_CTRL_BLK_GETGEOME, &data->geometry); in blk_fops_open()
34 rt_device_control(dev, RT_DEVICE_CTRL_ALL_BLK_SSIZEGET, &file->vnode->size); in blk_fops_open()
53 return (int)rt_device_control(dev, cmd, arg); in blk_fops_ioctl()
220 return (int)rt_device_control(dev, RT_DEVICE_CTRL_BLK_SYNC, RT_NULL); in blk_fops_flush()
257 rt_device_control(dev, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in device_get_blk_ssize()
270 rt_device_control(dev, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in device_get_all_blk_ssize()
A Dblk_dev.c93 rt_device_control(&disk->parent, cmd, args); in blk_dev_control()
100 rt_device_control(&disk->parent, cmd, args); in blk_dev_control()
/components/drivers/sensor/v1/
A Dsensor_cmd.c114 rt_device_control(dev, RT_SENSOR_CTRL_GET_INFO, &info); in sensor_fifo_rx_entry()
174 rt_device_control(dev, RT_SENSOR_CTRL_SET_ODR, (void *)20); in sensor_fifo()
238 rt_device_control(dev, RT_SENSOR_CTRL_SET_ODR, (void *)20); in sensor_int()
272 rt_device_control(dev, RT_SENSOR_CTRL_SET_ODR, (void *)100); in sensor_polling()
324 rt_device_control(dev, RT_SENSOR_CTRL_GET_INFO, &info); in sensor()
497 rt_device_control(dev, RT_SENSOR_CTRL_GET_ID, &reg); in sensor()
508 rt_device_control(dev, RT_SENSOR_CTRL_SET_RANGE, (void *)atoi(argv[2])); in sensor()
512 rt_device_control(dev, RT_SENSOR_CTRL_SET_MODE, (void *)atoi(argv[2])); in sensor()
516 rt_device_control(dev, RT_SENSOR_CTRL_SET_POWER, (void *)atoi(argv[2])); in sensor()
520 rt_device_control(dev, RT_SENSOR_CTRL_SET_ODR, (void *)atoi(argv[2])); in sensor()
/components/drivers/rtc/
A Ddev_rtc.c162 ret = rt_device_control(_rtc_device, RT_DEVICE_CTRL_RTC_GET_TIME, &old_timestamp); in set_date()
180 ret = rt_device_control(_rtc_device, RT_DEVICE_CTRL_RTC_SET_TIME, &now); in set_date()
209 ret = rt_device_control(_rtc_device, RT_DEVICE_CTRL_RTC_GET_TIME, &old_timestamp); in set_time()
227 ret = rt_device_control(_rtc_device, RT_DEVICE_CTRL_RTC_SET_TIME, &now); in set_time()
250 return rt_device_control(_rtc_device, RT_DEVICE_CTRL_RTC_SET_TIME, &timestamp); in set_timestamp()
272 return rt_device_control(_rtc_device, RT_DEVICE_CTRL_RTC_GET_TIME, timestamp); in get_timestamp()
A Ddev_soft_rtc.c261 rt_device_control(&soft_rtc_dev, RT_DEVICE_CTRL_RTC_GET_TIME, &time); in rt_soft_rtc_sync()
A Ddev_alarm.c75 ret = rt_device_control(device, RT_DEVICE_CTRL_RTC_SET_ALARM, &wkalarm); in alarm_set()
78 ret = rt_device_control(device, RT_DEVICE_CTRL_RTC_GET_ALARM, &wkalarm); in alarm_set()
/components/drivers/serial/
A Dserial_tty.c140 rt_device_control(&serial->parent, RT_DEVICE_CTRL_NOTIFY_SET, &softc->backup_notify); in _restore_serial()
152 rt_device_control(&(serial->parent), TCGETS, &serial_hw_config); in _serial_tty_set_speed()
211 rt_device_control(&serial->parent, RT_DEVICE_CTRL_CONSOLE_OFLAG, &oflags); in serial_tty_open()
277 return rt_device_control(&(serial->parent), TCSETS, t); in serial_tty_param()
A Ddev_serial_v2.c139 return rt_device_control(device, cmd, args); in serial_fops_ioctl()
162 rt_device_control(device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void *)&rx_timout); in serial_fops_read()
173 rt_device_control(device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void *)&rx_timout); in serial_fops_read()
196 rt_device_control(device, RT_SERIAL_CTRL_SET_TX_TIMEOUT, (void *)&tx_timeout); in serial_fops_write()
207 rt_device_control(device, RT_SERIAL_CTRL_SET_TX_TIMEOUT, (void *)&tx_timeout); in serial_fops_write()
220 rt_device_control(device, RT_SERIAL_CTRL_TX_FLUSH, (void *)RT_NULL); in serial_fops_flush()
221 rt_device_control(device, RT_SERIAL_CTRL_RX_FLUSH, (void *)RT_NULL); in serial_fops_flush()
/components/drivers/virtio/
A Dvirtio.c357 rt_device_control(_gpu_dev, RTGRAPHIC_CTRL_RECT_UPDATE, &_rect_info); in fb_control()
432 rt_device_control(_gpu_dev, VIRTIO_DEVICE_CTRL_GPU_SET_PRIMARY, RT_NULL); in fb_init()
433rt_device_control(_gpu_dev, VIRTIO_DEVICE_CTRL_GPU_CREATE_2D, (void *)RTGRAPHIC_PIXEL_FORMAT_RGB88… in fb_init()
434 rt_device_control(_gpu_dev, RTGRAPHIC_CTRL_GET_INFO, &_graphic_info); in fb_init()
440 rt_device_control(_gpu_dev, RTGRAPHIC_CTRL_RECT_UPDATE, &_rect_info); in fb_init()
/components/net/at/src/
A Dat_server.c249 rt_device_control(server->device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void*)&rx_timout); in at_server_recv()
252 rt_device_control(server->device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void*)&rx_timeout); in at_server_recv()
435 rt_device_control(server->device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void*)&rx_timout); in at_server_getchar()
442 rt_device_control(server->device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void*)&rx_timeout); in at_server_getchar()
A Dat_base_cmd.c111 if(rt_device_control(at_get_server()->device, RT_DEVICE_CTRL_CONFIG, &config) != RT_EOK) in at_uart_setup()
A Dat_client.c582 rt_device_control(client->device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void *)&rx_timeout); in at_client_obj_recv()
585 rt_device_control(client->device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void *)&rx_timeout); in at_client_obj_recv()
1043 rt_device_control(client->device, RT_SERIAL_CTRL_SET_RX_TIMEOUT, (void *)&rx_timeout); in at_client_init()
/components/dfs/dfs_v1/filesystems/elmfat/
A Ddfs_elm.c122 if (rt_device_control(fs->dev_id, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry) == RT_EOK) in dfs_elm_mount()
946 rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in disk_ioctl()
957 rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in disk_ioctl()
966 rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in disk_ioctl()
972 rt_device_control(device, RT_DEVICE_CTRL_BLK_SYNC, RT_NULL); in disk_ioctl()
976 rt_device_control(device, RT_DEVICE_CTRL_BLK_ERASE, buff); in disk_ioctl()
/components/utilities/rt-link/src/
A Drtlink_dev.c55 rt_device_control(device, RT_LINK_TX_NONBLOCKING | RT_LINK_RX_NONBLOCKING, RT_NULL); in rtlink_fops_open()
77 return rt_device_control(device, RT_LINK_TX_NONBLOCKING | RT_LINK_RX_NONBLOCKING, RT_NULL); in rtlink_fops_ioctl()
81 return rt_device_control(device, cmd, args); in rtlink_fops_ioctl()
/components/drivers/sensor/v2/
A Dsensor_cmd.c661 if (rt_device_control(dev, RT_SENSOR_CTRL_SOFT_RESET, RT_NULL) != RT_EOK) in sensor()
688 if (rt_device_control(new_dev, RT_SENSOR_CTRL_GET_ID, &reg) == RT_EOK) in sensor()
716 if (rt_device_control(dev, RT_SENSOR_CTRL_SET_POWER_MODE, (void *)mode) == RT_EOK) in sensor()
748 if (rt_device_control(dev, RT_SENSOR_CTRL_SET_ACCURACY_MODE, (void *)mode) == RT_EOK) in sensor()
780 if (rt_device_control(dev, RT_SENSOR_CTRL_SET_FETCH_MODE, (void *)mode) == RT_EOK) in sensor()
/components/drivers/core/
A Ddevice.c419 rt_err_t rt_device_control(rt_device_t dev, int cmd, void *arg) in rt_device_control() function
433 RTM_EXPORT(rt_device_control);
/components/dfs/dfs_v2/filesystems/elmfat/
A Ddfs_elm.c156 if (rt_device_control(mnt->dev_id, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry) == RT_EOK) in dfs_elm_mount()
1172 rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in disk_ioctl()
1183 rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in disk_ioctl()
1192 rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in disk_ioctl()
1198 rt_device_control(device, RT_DEVICE_CTRL_BLK_SYNC, RT_NULL); in disk_ioctl()
1202 rt_device_control(device, RT_DEVICE_CTRL_BLK_ERASE, buff); in disk_ioctl()
/components/drivers/spi/
A Ddev_spi_wifi_rw009.c762 result = rt_device_control(wifi_device, in rw009_join()
784 result = rt_device_control(wifi_device, in rw009_softap()
805 result = rt_device_control((rt_device_t)wifi_device, in rw009_rssi()
828 result = rt_device_control((rt_device_t)wifi_device, in rw009_scan()
/components/drivers/usb/cherryusb/demo/
A Dmsc_ram_template.c238 rt_device_control(blk_dev, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in usbd_msc_get_cap()
/components/dfs/dfs_v2/filesystems/procfs/
A Dproc_partitions.c155 rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); in show_info()
/components/dfs/dfs_v2/filesystems/devfs/
A Ddevfs.c131 if (!rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry)) in _get_unit_shift()
239 ret = rt_device_control(device, cmd, args); in dfs_devfs_ioctl()
/components/dfs/dfs_v1/filesystems/devfs/
A Ddevfs.c57 result = rt_device_control(dev_id, cmd, args); in dfs_device_fs_ioctl()
/components/legacy/usb/usbdevice/class/
A Daudio_speaker.c324 rt_device_control(speaker.dev, AUDIO_CTL_CONFIGURE, &caps); in speaker_entry()

Completed in 51 milliseconds

12