| /components/drivers/pm/ |
| A D | pm.c | 238 return mode; in _pm_select_sleep_mode() 301 switch (mode) in pm_timer_next_timeout_tick() 883 int mode; in _rt_pm_device_read() local 1051 int mode = 0; in rt_pm_release_mode() local 1063 int mode = 0; in rt_pm_release_mode_all() local 1075 int mode = 0; in rt_pm_request_mode() local 1088 int mode = 0; in rt_module_release_mode() local 1103 int mode = 0; in rt_module_release_mode_all() local 1118 int mode = 0; in rt_module_request_mode() local 1147 int mode = 0; in rt_pm_run_mode_switch() local [all …]
|
| A D | Kconfig | 19 bool "PM Device suspend change sleep mode" 23 bool "PM using threshold time change sleep mode" 28 int "PM light mode threashold time" 32 int "PM deep mode threashold time" 36 int "PM standby mode threashold time"
|
| /components/drivers/sensor/v2/ |
| A D | sensor.c | 341 rt_uint8_t mode; in _sensor_control() local 363 … if (!(mode == RT_SENSOR_MODE_ACCURACY_HIGHEST || mode == RT_SENSOR_MODE_ACCURACY_HIGH ||\ in _sensor_control() 364 … mode == RT_SENSOR_MODE_ACCURACY_MEDIUM || mode == RT_SENSOR_MODE_ACCURACY_LOW ||\ in _sensor_control() 365 … mode == RT_SENSOR_MODE_ACCURACY_LOWEST || mode == RT_SENSOR_MODE_ACCURACY_NOTRUST)) in _sensor_control() 373 RT_SENSOR_MODE_SET_ACCURACY(sensor->info.mode, mode); in _sensor_control() 380 if (!(mode == RT_SENSOR_MODE_POWER_HIGHEST || mode == RT_SENSOR_MODE_POWER_HIGH ||\ in _sensor_control() 381 mode == RT_SENSOR_MODE_POWER_MEDIUM || mode == RT_SENSOR_MODE_POWER_LOW ||\ in _sensor_control() 382 mode == RT_SENSOR_MODE_POWER_LOWEST || mode == RT_SENSOR_MODE_POWER_DOWN)) in _sensor_control() 390 RT_SENSOR_MODE_SET_POWER(sensor->info.mode, mode); in _sensor_control() 397 if (!(mode == RT_SENSOR_MODE_FETCH_POLLING || mode == RT_SENSOR_MODE_FETCH_INT ||\ in _sensor_control() [all …]
|
| A D | sensor_cmd.c | 193 switch(RT_SENSOR_MODE_GET_ACCURACY(info->mode)) in sensor_get_accuracy_mode_name() 215 switch(RT_SENSOR_MODE_GET_POWER(info->mode)) in sensor_get_power_mode_name() 237 switch(RT_SENSOR_MODE_GET_FETCH(info->mode)) in sensor_get_fetch_mode_name() 425 MSH_CMD_EXPORT(sensor_fifo, Sensor fifo mode test function); 648 …CCURACY(sensor_dev->info.mode), RT_SENSOR_MODE_GET_POWER(sensor_dev->info.mode), RT_SENSOR_MODE_GE… in sensor() 700 rt_uint32_t mode; in sensor() local 715 mode = atoi(argv[2]); in sensor() 732 rt_uint32_t mode; in sensor() local 747 mode = atoi(argv[2]); in sensor() 764 rt_uint32_t mode; in sensor() local [all …]
|
| /components/drivers/include/drivers/ |
| A D | sensor_v2.h | 206 #define RT_SENSOR_MODE_GET_ACCURACY(mode) (rt_uint8_t)((mode >> RT_SENSOR_MODE_ACCURACY_BIT_OFF… argument 207 #define RT_SENSOR_MODE_GET_POWER(mode) (rt_uint8_t)((mode >> RT_SENSOR_MODE_POWER_BIT_OFFSET… argument 208 #define RT_SENSOR_MODE_GET_FETCH(mode) (rt_uint8_t)((mode >> RT_SENSOR_MODE_FETCH_BIT_OFFSET… argument 210 #define RT_SENSOR_MODE_CLEAR_ACCURACY(mode) (mode &= ((rt_uint16_t)~((rt_uint16_t)0x0F << RT_SENS… argument 211 #define RT_SENSOR_MODE_CLEAR_POWER(mode) (mode &= ((rt_uint16_t)~((rt_uint16_t)0x0F << RT_SENS… argument 212 #define RT_SENSOR_MODE_CLEAR_FETCH(mode) (mode &= ((rt_uint16_t)~((rt_uint16_t)0x0F << RT_SENS… argument 214 #define RT_SENSOR_MODE_SET_ACCURACY(mode, accuracy_mode) RT_SENSOR_MODE_CLEAR_ACCURACY(mode); (mode… argument 215 #define RT_SENSOR_MODE_SET_POWER(mode, power_mode) RT_SENSOR_MODE_CLEAR_POWER(mode); (mode |=… argument 216 #define RT_SENSOR_MODE_SET_FETCH(mode, fetch_mode) RT_SENSOR_MODE_CLEAR_FETCH(mode); (mode |=… argument 290 rt_uint16_t mode; /* sensor work mode */ member
|
| A D | pm.h | 129 void (*sleep)(struct rt_pm *pm, rt_uint8_t mode); 130 void (*run)(struct rt_pm *pm, rt_uint8_t mode); 138 rt_err_t (*suspend)(const struct rt_device *device, rt_uint8_t mode); 139 void (*resume)(const struct rt_device *device, rt_uint8_t mode); 140 rt_err_t (*frequency_change)(const struct rt_device *device, rt_uint8_t mode); 195 void (*notify)(rt_uint8_t event, rt_uint8_t mode, void *data); 207 void rt_pm_notify_set(void (*notify)(rt_uint8_t event, rt_uint8_t mode, void *data), void *data); 222 rt_err_t rt_pm_sleep_request(rt_uint16_t module_id, rt_uint8_t mode); 223 rt_err_t rt_pm_sleep_release(rt_uint16_t module_id, rt_uint8_t mode);
|
| A D | dev_pin.h | 172 rt_uint8_t mode; /* e.g. PIN_MODE_OUTPUT */ member 190 rt_uint8_t mode; /* e.g. PIN_IRQ_MODE_RISING */ member 212 void (*pin_mode)(struct rt_device *device, rt_base_t pin, rt_uint8_t mode); 216 rt_uint8_t mode, void (*hdr)(void *args), void *args); 222 rt_err_t (*pin_irq_mode)(struct rt_device *device, rt_base_t pin, rt_uint8_t mode); 244 void rt_pin_mode(rt_base_t pin, rt_uint8_t mode); 275 rt_err_t rt_pin_attach_irq(rt_base_t pin, rt_uint8_t mode,
|
| A D | phye.h | 68 rt_err_t (*set_mode)(struct rt_phye *phye, enum rt_phye_mode mode, int submode); 80 rt_err_t rt_phye_set_mode(struct rt_phye *phye, enum rt_phye_mode mode, int submode); 82 rt_inline rt_err_t rt_phye_set_mode_simple(struct rt_phye *phye, enum rt_phye_mode mode) in rt_phye_set_mode_simple() argument 84 return rt_phye_set_mode(phye, mode, RT_PHYE_MODE_INVALID); in rt_phye_set_mode_simple()
|
| /components/dfs/dfs_v2/filesystems/procfs/ |
| A D | proc.c | 215 dentry->mode = mode; in proc_create() 306 if (mode == 0) in proc_mkdir_data() 353 if ((mode & S_IFMT) == 0) in proc_create_reg() 354 mode |= S_IFREG; in proc_create_reg() 358 if (!S_ISREG(mode)) in proc_create_reg() 478 if (S_ISDIR(dentry->mode)) in remove_proc_subtree() 502 if (S_ISDIR(dentry->mode)) in proc_remove() 570 if (S_ISDIR(iter->mode)) in dump_proc_subtree() 575 else if (S_ISLNK(iter->mode)) in dump_proc_subtree() 590 if (S_ISDIR(dentry->mode)) in proc_dump() [all …]
|
| A D | proc.h | 32 rt_uint32_t mode; member 51 struct proc_dentry *proc_mkdir_data(const char *name, mode_t mode, struct proc_dentry *parent, 53 struct proc_dentry *proc_mkdir_mode(const char *name, mode_t mode, struct proc_dentry *parent); 56 struct proc_dentry *proc_create_data(const char *name, mode_t mode, struct proc_dentry *parent, 58 struct proc_dentry *proc_create_single_data(const char *name, mode_t mode, struct proc_dentry *pare…
|
| A D | procfs.c | 148 if (S_ISDIR(entry->mode)) in dfs_procfs_getdents() 152 else if (S_ISLNK(entry->mode)) in dfs_procfs_getdents() 259 if (S_ISLNK(entry->mode) && entry->data) in dfs_procfs_readlink() 301 st->st_mode = vnode->mode; in dfs_procfs_stat() 344 if (S_ISDIR(entry->mode)) in dfs_procfs_lookup() 346 vnode->mode = entry->mode; in dfs_procfs_lookup() 349 else if (S_ISLNK(entry->mode)) in dfs_procfs_lookup() 351 vnode->mode = entry->mode; in dfs_procfs_lookup() 356 vnode->mode = entry->mode; in dfs_procfs_lookup() 372 static struct dfs_vnode *dfs_procfs_create_vnode(struct dfs_dentry *dentry, int type, mode_t mode) in dfs_procfs_create_vnode() argument
|
| /components/libc/compilers/dlib/ |
| A D | syscall_open.c | 26 int __open(const char *filename, int mode) in __open() argument 32 if (mode & _LLIO_CREAT) in __open() 37 if (mode & _LLIO_APPEND) in __open() 43 if (mode & _LLIO_TRUNC) in __open() 50 if (mode & _LLIO_TEXT) in __open() 55 switch (mode & _LLIO_RDWRMASK) in __open()
|
| /components/drivers/spi/ |
| A D | dev_spi_bit_ops.c | 90 if (config->mode & RT_SPI_MSB) in spi_xfer_4line_data8() 165 if (config->mode & RT_SPI_MSB) in spi_xfer_4line_data16() 271 if (config->mode & RT_SPI_MSB) in spi_xfer_3line_data8() 384 if (config->mode & RT_SPI_MSB) in spi_xfer_3line_data16() 440 if (configuration->mode & RT_SPI_SLAVE) in spi_bit_configure() 445 if (configuration->mode & RT_SPI_CPOL) in spi_bit_configure() 498 if (device->config.mode & RT_SPI_CS_HIGH) in spi_bit_xfer() 510 if ((config->mode & RT_SPI_CPHA)) in spi_bit_xfer() 515 if (config->mode & RT_SPI_3WIRE) in spi_bit_xfer() 541 if ((config->mode & RT_SPI_CPOL) && !GET_SCLK(ops)) in spi_bit_xfer() [all …]
|
| A D | dev_spi_dm.c | 48 conf->mode |= RT_SPI_CPHA; in spi_device_ofw_parse() 52 conf->mode |= RT_SPI_CPOL; in spi_device_ofw_parse() 56 conf->mode |= RT_SPI_3WIRE; in spi_device_ofw_parse() 60 conf->mode |= RT_SPI_LSB; in spi_device_ofw_parse() 64 conf->mode |= RT_SPI_CS_HIGH; in spi_device_ofw_parse()
|
| /components/drivers/pin/ |
| A D | dev_pin.c | 51 struct rt_device_pin_mode *mode; in _pin_control() local 57 mode = (struct rt_device_pin_mode *)args; in _pin_control() 58 if (mode == RT_NULL) in _pin_control() 61 pin->ops->pin_mode(dev, (rt_base_t)mode->pin, (rt_base_t)mode->mode); in _pin_control() 229 rt_base_t mode; in _pin_cmd_mode() local 251 mode = PIN_MODE_OUTPUT; in _pin_cmd_mode() 255 mode = PIN_MODE_INPUT; in _pin_cmd_mode() 259 mode = PIN_MODE_INPUT_PULLUP; in _pin_cmd_mode() 263 mode = PIN_MODE_INPUT_PULLDOWN; in _pin_cmd_mode() 267 mode = PIN_MODE_OUTPUT_OD; in _pin_cmd_mode() [all …]
|
| A D | dev_pin_ofw.c | 24 rt_uint8_t mode; in rt_ofw_get_named_pin() local 78 mode = PIN_MODE_OUTPUT; in rt_ofw_get_named_pin() 99 mode = PIN_MODE_OUTPUT_OD; in rt_ofw_get_named_pin() 105 mode = PIN_MODE_INPUT_PULLUP; in rt_ofw_get_named_pin() 109 mode = PIN_MODE_INPUT_PULLDOWN; in rt_ofw_get_named_pin() 113 mode = PIN_MODE_INPUT; in rt_ofw_get_named_pin() 140 *out_mode = mode; in rt_ofw_get_named_pin()
|
| A D | dev_pin_dm.c | 38 static void pin_api_mode(struct rt_device *device, rt_base_t pin, rt_uint8_t mode) in pin_api_mode() argument 44 gpio->ops->pin_mode(&gpio->parent, pin - gpio->pin_start, mode); in pin_api_mode() 71 rt_uint8_t mode, void (*hdr)(void *args), void *args) in pin_api_attach_irq() argument 84 if ((err = gpio->ops->pin_irq_mode(&gpio->parent, pin_index, mode))) in pin_api_attach_irq() 91 legacy_isr->mode = mode; in pin_api_attach_irq() 179 rt_uint8_t mode) in pin_api_irq_mode() argument 185 return gpio->ops->pin_irq_mode(&gpio->parent, pin - gpio->pin_start, mode); in pin_api_irq_mode() 253 switch (mode) in pin_dm_irq_set_triger_mode() 282 static int pin_dm_irq_map(struct rt_pic *pic, int hwirq, rt_uint32_t mode) in pin_dm_irq_map() argument 295 rt_pic_irq_set_triger_mode(irq, mode); in pin_dm_irq_map() [all …]
|
| /components/drivers/hwcrypto/ |
| A D | Kconfig | 28 bool "Using Hardware AES ECB mode" 32 bool "Using Hardware AES CBC mode" 36 bool "Using Hardware AES CFB mode" 40 bool "Using Hardware AES CTR mode" 44 bool "Using Hardware AES OFB mode" 54 bool "Using Hardware DES ECB mode" 58 bool "Using Hardware DES CBC mode" 68 bool "Using Hardware 3DES ECB mode" 72 bool "Using Hardware 3DES CBC mode" 94 bool "Using Hardware SHA2_224 mode" [all …]
|
| /components/drivers/pci/ |
| A D | host-bridge.c | 19 rt_uint8_t mode; member 37 rt_pci_enable_wake(pdev, system_pci_pm_mode[status->mode], status->enable); in pci_device_pm_ops() 43 static rt_err_t host_bridge_pm_suspend(const struct rt_device *device, rt_uint8_t mode) in host_bridge_pm_suspend() argument 48 status.mode = mode; in host_bridge_pm_suspend() 55 static void host_bridge_pm_resume(const struct rt_device *device, rt_uint8_t mode) in host_bridge_pm_resume() argument 60 status.mode = mode; in host_bridge_pm_resume()
|
| /components/libc/posix/io/stdio/ |
| A D | stdio.c | 53 int rt_posix_stdio_set_console(const char* device_name, int mode) in rt_posix_stdio_set_console() argument 62 if (mode == O_RDWR) in rt_posix_stdio_set_console() 66 else if (mode == O_WRONLY) in rt_posix_stdio_set_console() 87 if (mode == O_RDWR) in rt_posix_stdio_set_console() 96 if (mode == O_RDONLY) in rt_posix_stdio_set_console() 130 int rt_posix_stdio_set_console(const char* device_name, int mode) in rt_posix_stdio_set_console() argument 139 if (mode == O_RDWR) file_mode = "r+"; in rt_posix_stdio_set_console() 140 else if (mode == O_WRONLY) file_mode = "wb"; in rt_posix_stdio_set_console() 180 int rt_posix_stdio_set_console(const char* device_name, int mode) in rt_posix_stdio_set_console() argument 188 fd = open(name, mode, 0); in rt_posix_stdio_set_console()
|
| /components/libc/compilers/armlibc/ |
| A D | syscalls.c | 62 int mode = O_RDONLY; in _sys_open() local 82 mode |= (O_RDWR | O_TRUNC | O_CREAT); in _sys_open() 86 mode |= (O_RDWR | O_APPEND | O_CREAT); in _sys_open() 89 mode |= O_RDWR; in _sys_open() 95 mode |= (O_WRONLY | O_TRUNC | O_CREAT); in _sys_open() 99 mode |= (O_WRONLY | O_APPEND | O_CREAT); in _sys_open() 103 fd = open(name, mode, 0); in _sys_open() 149 int _sys_read(FILEHANDLE fh, unsigned char *buf, unsigned len, int mode) in _sys_read() argument 200 int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode) in _sys_write() argument
|
| /components/dfs/dfs_v2/filesystems/devfs/ |
| A D | devtmpfs.c | 42 rt_uint32_t mode; member 273 st->st_mode = vnode->mode; in devtmpfs_stat() 372 l_file->mode = p_file->mode; in devtmpfs_symlink() 373 l_file->mode &= ~S_IFMT; in devtmpfs_symlink() 374 l_file->mode |= S_IFLNK; in devtmpfs_symlink() 473 d_file->mode &= ~0xFFF; in devtmpfs_setattr() 532 vnode->mode = mode; in devtmpfs_create_vnode() 540 vnode->mode &= ~S_IFMT; in devtmpfs_create_vnode() 541 vnode->mode |= S_IFDIR; in devtmpfs_create_vnode() 549 d_file->mode = vnode->mode; in devtmpfs_create_vnode() [all …]
|
| A D | devfs.c | 41 if (!S_ISDIR(file->vnode->mode)) in dfs_devfs_open() 441 mode_t mode = 0; in dfs_devfs_device_to_mode() local 446 mode = S_IFCHR | 0666; in dfs_devfs_device_to_mode() 449 mode = S_IFBLK | 0666; in dfs_devfs_device_to_mode() 452 mode = S_IFIFO | 0666; in dfs_devfs_device_to_mode() 455 mode = S_IFCHR | 0666; in dfs_devfs_device_to_mode() 459 return mode; in dfs_devfs_device_to_mode() 500 mkdir(path, mode); in dfs_devfs_mkdir() 507 mkdir(path, mode); in dfs_devfs_mkdir() 525 dfs_devfs_mkdir(path, mode); in dfs_devfs_device_add() [all …]
|
| /components/dfs/dfs_v2/filesystems/ptyfs/ |
| A D | ptyfs.c | 61 rt_uint32_t mode; /* file modes allowed */ member 114 rt_uint32_t mode, rt_device_t device) in ptyfile_init() argument 120 file->mode = mode; in ptyfile_init() 402 pty_file->mode &= ~0xFFF; in ptyfs_ops_setattr() 403 pty_file->mode |= attr->st_mode & 0xFFF; in ptyfs_ops_setattr() 444 st->st_mode = vnode->mode; in ptyfs_ops_stat() 483 vnode->mode = pty_file->mode; in ptyfs_ops_lookup() 514 if (!pty_file || (~pty_file->mode & mode)) in ptyfs_ops_create_vnode() 525 vnode->mode &= pty_file->mode; in ptyfs_ops_create_vnode() 529 vnode->mode |= S_IFDIR; in ptyfs_ops_create_vnode() [all …]
|
| /components/drivers/touch/ |
| A D | dev_touch.c | 51 rt_pin_mode(touch->config.irq_pin.pin, touch->config.irq_pin.mode); in rt_touch_irq_init() 53 if (touch->config.irq_pin.mode == PIN_MODE_INPUT_PULLDOWN) in rt_touch_irq_init() 57 else if (touch->config.irq_pin.mode == PIN_MODE_INPUT_PULLUP) in rt_touch_irq_init() 61 else if (touch->config.irq_pin.mode == PIN_MODE_INPUT) in rt_touch_irq_init() 156 rt_uint16_t mode; in rt_touch_control() local 157 mode = *(rt_uint16_t*)args; in rt_touch_control() 158 if (mode == RT_DEVICE_FLAG_INT_RX) in rt_touch_control()
|