Home
last modified time | relevance | path

Searched refs:control (Results 1 – 25 of 102) sorted by relevance

12345

/components/libc/posix/tls/
A Demutls.c88 static __inline void *emutls_allocate_object(__emutls_control *control) in emutls_allocate_object() argument
90 size_t size = control->size; in emutls_allocate_object()
91 size_t align = control->align; in emutls_allocate_object()
99 if (control->value) in emutls_allocate_object()
100 memcpy(base, control->value, size); in emutls_allocate_object()
146 static __inline uintptr_t emutls_get_index(__emutls_control *control) in emutls_get_index() argument
148 uintptr_t index = __atomic_load_n(&control->object.index, __ATOMIC_ACQUIRE); in emutls_get_index()
154 index = control->object.index; in emutls_get_index()
158 __atomic_store_n(&control->object.index, index, __ATOMIC_RELEASE); in emutls_get_index()
214 void *__emutls_get_address(void *control) in __emutls_get_address() argument
[all …]
/components/drivers/include/drivers/
A Dscsi.h29 rt_uint8_t control;
40 rt_uint8_t control;
64 rt_uint8_t control;
89 rt_uint8_t control;
106 rt_uint8_t control;
134 rt_uint8_t control;
144 rt_uint8_t control;
165 rt_uint8_t control;
175 rt_uint8_t control;
185 rt_uint8_t control;
[all …]
A Ddev_watchdog.h34 rt_err_t (*control)(rt_watchdog_t *wdt, int cmd, void *arg); member
A Dpulse_encoder.h41 rt_err_t (*control)(struct rt_pulse_encoder_device *pulse_encoder, rt_uint32_t cmd, void *args); member
A Dhwtimer.h52 rt_err_t (*control)(struct rt_hwtimer_device *timer, rt_uint32_t cmd, void *args); member
/components/drivers/usb/cherryusb/class/msc/
A Dusb_scsi.h605 uint8_t control; /* 5: Control */ member
632 uint8_t control; /* 5: Control */ member
676 uint8_t control; /* 5: Control */ member
687 uint8_t control; /* 5: Control */ member
749 uint8_t control; /* 5: Control */ member
759 uint8_t control; /* 5: Control */ member
770 uint8_t control; /* 5: Control */ member
779 uint8_t control; /* 5: Control */ member
788 uint8_t control; /* 9: Control */ member
823 uint8_t control; /* 9: Control */ member
[all …]
/components/drivers/misc/
A Dpulse_encoder.c33 if (pulse_encoder->ops->control) in rt_pulse_encoder_open()
35 return pulse_encoder->ops->control(pulse_encoder, PULSE_ENCODER_CMD_ENABLE, RT_NULL); in rt_pulse_encoder_open()
48 if (pulse_encoder->ops->control) in rt_pulse_encoder_close()
50 return pulse_encoder->ops->control(pulse_encoder, PULSE_ENCODER_CMD_DISABLE, RT_NULL); in rt_pulse_encoder_close()
87 result = pulse_encoder->ops->control(pulse_encoder, cmd, args); in rt_pulse_encoder_control()
130 device->control = rt_pulse_encoder_control; in rt_device_pulse_encoder_register()
A Drt_drv_pwm.c33 if (pwm->ops->control) in _pwm_control()
34 result = pwm->ops->control(pwm, cmd, args); in _pwm_control()
55 if (pwm->ops->control) in _pwm_read()
57 result = pwm->ops->control(pwm, PWM_CMD_GET, &configuration); in _pwm_read()
83 if (pwm->ops->control) in _pwm_write()
85 result = pwm->ops->control(pwm, PWM_CMD_GET, &configuration); in _pwm_write()
93 result = pwm->ops->control(pwm, PWM_CMD_SET, &configuration); in _pwm_write()
129 device->parent.control = _pwm_control; in rt_device_pwm_register()
454 MSH_CMD_EXPORT_ALIAS(pwm_list, pwm, control pwm device, optenable);
A Drt_random.c90 random_dev.control = random_control; in random_device_init()
181 urandom_dev.control = random_ucontrol; in urandom_device_init()
A Drt_null.c61 null_dev.control = null_control; in null_device_init()
A Drt_zero.c62 zero_dev.control = zero_control; in zero_device_init()
/components/drivers/scsi/
A Dscsi.c205 cmd.op.request_sense.control = 0; in rt_scsi_request_sense()
243 cmd.op.inquiry.control = 0; in rt_scsi_inquiry()
356 cmd.op.read12.control = 0; in rt_scsi_read12()
374 cmd.op.read16.control = 0; in rt_scsi_read16()
409 cmd.op.write12.control = 0; in rt_scsi_write12()
427 cmd.op.write16.control = 0; in rt_scsi_write16()
477 cmd.op.write_same10.control = 0; in rt_scsi_write_same10()
493 cmd.op.write_same16.control = 0; in rt_scsi_write_same16()
526 cmd.op.mode_select6.control = 0; in rt_scsi_mode_select6()
624 cmd.op.mode_sense6.control = 0; in rt_scsi_mode_sense6()
[all …]
/components/drivers/watchdog/
A Ddev_watchdog.c45 if (wtd->ops->control(wtd, RT_DEVICE_CTRL_WDT_STOP, RT_NULL) != RT_EOK) in rt_watchdog_close()
64 return (wtd->ops->control(wtd, cmd, args)); in rt_watchdog_control()
104 device->control = rt_watchdog_control; in rt_hw_watchdog_register()
/components/drivers/hwtimer/
A Dhwtimer.c131 if (timer->ops->control != RT_NULL) in rt_hwtimer_open()
133 timer->ops->control(timer, HWTIMER_CTRL_FREQ_SET, &timer->freq); in rt_hwtimer_open()
272 if (timer->ops->control != RT_NULL) in rt_hwtimer_control()
274 result = timer->ops->control(timer, cmd, args); in rt_hwtimer_control()
323 if (timer->ops->control != RT_NULL) in rt_hwtimer_control()
325 result = timer->ops->control(timer, cmd, args); in rt_hwtimer_control()
412 device->control = rt_hwtimer_control; in rt_device_hwtimer_register()
/components/drivers/sensor/v1/
A Dsensor.c146 .control = local_control
173 if (sensor->ops->control != RT_NULL) in rt_sensor_open()
175 local_ctrl = sensor->ops->control; in rt_sensor_open()
238 if (sensor->ops->control != RT_NULL) in rt_sensor_close()
240 local_ctrl = sensor->ops->control; in rt_sensor_close()
343 if (sensor->ops->control != RT_NULL) in rt_sensor_control()
345 local_ctrl = sensor->ops->control; in rt_sensor_control()
480 device->control = rt_sensor_control; in rt_hw_sensor_register()
/components/drivers/sensor/v2/
A Dsensor.c141 .control = _local_control
168 if (sensor->ops->control != RT_NULL) in _sensor_open()
170 local_ctrl = sensor->ops->control; in _sensor_open()
241 if (sensor->ops->control != RT_NULL) in _sensor_close()
243 local_ctrl = sensor->ops->control; in _sensor_close()
347 if (sensor->ops->control != RT_NULL) in _sensor_control()
349 local_ctrl = sensor->ops->control; in _sensor_control()
503 device->control = _sensor_control; in rt_hw_sensor_register()
/components/drivers/block/
A Dblk_dev.c131 if (disk->ops->control) in blk_dev_control()
133 err = disk->ops->control(disk, blk, cmd, args); in blk_dev_control()
148 .control = blk_dev_control,
170 dev->control = blk_dev_control; in blk_dev_initialize()
A Dblk.c194 if (disk->ops->control) in blk_control()
196 err = disk->ops->control(disk, RT_NULL, cmd, args); in blk_control()
215 .control = blk_control,
224 .control = blk_control,
308 disk->parent.control = blk_control; in rt_hw_blk_disk_register()
/components/drivers/usb/cherryusb/platform/rtthread/
A Dusbh_lwip.c145 g_cdc_ecm_dev.parent.control = rt_usbh_cdc_ecm_control; in usbh_cdc_ecm_run()
234 g_rndis_dev.parent.control = rt_usbh_rndis_control; in usbh_rndis_run()
306 g_cdc_ncm_dev.parent.control = rt_usbh_cdc_ncm_control; in usbh_cdc_ncm_run()
375 g_asix_dev.parent.control = rt_usbh_asix_control; in usbh_asix_run()
444 g_rtl8152_dev.parent.control = rt_usbh_rtl8152_control; in usbh_rtl8152_run()
/components/drivers/can/
A Ddev_can.c316 can->ops->control(can, RT_DEVICE_CTRL_SET_INT, (void *)RT_DEVICE_FLAG_INT_RX); in rt_can_open()
352 can->ops->control(can, RT_DEVICE_CTRL_SET_INT, (void *)RT_DEVICE_CAN_INT_ERR); in rt_can_open()
423 can->ops->control(can, RT_DEVICE_CTRL_CLR_INT, (void *)RT_DEVICE_FLAG_INT_RX); in rt_can_close()
438 can->ops->control(can, RT_DEVICE_CTRL_CLR_INT, (void *)RT_DEVICE_FLAG_INT_TX); in rt_can_close()
449 can->ops->control(can, RT_DEVICE_CTRL_CLR_INT, (void *)RT_DEVICE_CAN_INT_ERR); in rt_can_close()
450 can->ops->control(can, RT_CAN_CMD_START, RT_FALSE); in rt_can_close()
538 res = can->ops->control(can, cmd, args); in rt_can_control()
580 res = can->ops->control(can, cmd, args); in rt_can_control()
664 if (can->ops->control != RT_NULL) in rt_can_control()
666 res = can->ops->control(can, cmd, args); in rt_can_control()
[all …]
/components/drivers/serial/
A Ddev_serial.c691 serial->ops->control(serial, RT_DEVICE_CTRL_SET_INT, (void *)RT_DEVICE_FLAG_INT_RX); in rt_serial_open()
717 serial->ops->control(serial, RT_DEVICE_CTRL_CONFIG, (void *) RT_DEVICE_FLAG_DMA_RX); in rt_serial_open()
751 serial->ops->control(serial, RT_DEVICE_CTRL_SET_INT, (void *)RT_DEVICE_FLAG_INT_TX); in rt_serial_open()
767 serial->ops->control(serial, RT_DEVICE_CTRL_CONFIG, (void *)RT_DEVICE_FLAG_DMA_TX); in rt_serial_open()
806 serial->ops->control(serial, RT_DEVICE_CTRL_CLR_INT, (void*)RT_DEVICE_FLAG_INT_RX); in rt_serial_close()
820 serial->ops->control(serial, RT_DEVICE_CTRL_CLR_INT, (void *) RT_DEVICE_FLAG_DMA_RX); in rt_serial_close()
850 serial->ops->control(serial, RT_DEVICE_CTRL_CLR_INT, (void*)RT_DEVICE_FLAG_INT_TX); in rt_serial_close()
867 serial->ops->control(serial, RT_DEVICE_CTRL_CLR_INT, (void *) RT_DEVICE_FLAG_DMA_TX); in rt_serial_close()
881 serial->ops->control(serial, RT_DEVICE_CTRL_CLOSE, RT_NULL); in rt_serial_close()
1348 ret = serial->ops->control(serial, cmd, args); in rt_serial_control()
[all …]
A Ddev_serial_v2.c849 control_result = serial->ops->control(serial, in rt_serial_tx_enable()
889 control_result = serial->ops->control(serial, in rt_serial_tx_enable()
934 control_result = serial->ops->control(serial, in rt_serial_tx_enable()
1022 return serial->ops->control(serial, RT_DEVICE_CTRL_CONFIG, (void *)RT_SERIAL_RX_BLOCKING); in rt_serial_rx_enable()
1053 serial->ops->control(serial, in rt_serial_rx_disable()
1062 serial->ops->control(serial, in rt_serial_rx_disable()
1101 serial->ops->control(serial, in rt_serial_tx_disable()
1110 serial->ops->control(serial, in rt_serial_tx_disable()
1170 serial->ops->control(serial, RT_DEVICE_CTRL_CLOSE, RT_NULL); in rt_serial_close()
1774 ret = serial->ops->control(serial, cmd, args); in rt_serial_control()
[all …]
/components/drivers/spi/
A Ddev_spi.c80 device->control = RT_NULL; in rt_spi_bus_device_init()
160 device->control = _spidev_device_control; in rt_spidev_device_init()
/components/drivers/rtc/
A DREADME.md9 …存在直接调用的 API ,如果使用到 C 标准库中的时间 API (目前主要是获取当前时间的 `time_t time(time_t *t)`),则会间接通过设备的 control 接口完成交互。
/components/drivers/include/drivers/core/
A Ddriver.h33 rt_err_t (*control)(rt_device_t dev, int cmd, void *args); member

Completed in 794 milliseconds

12345