/lib/posix/shell/ |
A D | env.c | 22 const char *value; in cmd_env_get() local 37 value = getenv(name); in cmd_env_get() 38 if (value != NULL) { in cmd_env_get() 39 shell_print(sh, "%s", value); in cmd_env_get() 81 char *value; in cmd_env_set() local 87 value = strchr(argv[1], '='); in cmd_env_set() 88 if (value != NULL) { in cmd_env_set() 89 *value = '\0'; in cmd_env_set() 90 ++value; in cmd_env_set() 95 value = argv[2]; in cmd_env_set() [all …]
|
/lib/posix/options/ |
A D | eventfd.c | 15 int eventfd_read(int fd, eventfd_t *value) in eventfd_read() argument 17 return zvfs_eventfd_read(fd, value); in eventfd_read() 20 int eventfd_write(int fd, eventfd_t value) in eventfd_write() argument 22 return zvfs_eventfd_write(fd, value); in eventfd_write()
|
A D | key.c | 168 int pthread_setspecific(pthread_key_t key, const void *value) in pthread_setspecific() argument 197 thread_spec_data->spec_data = (void *)value; in pthread_setspecific() 198 LOG_DBG("Paired key %x to value %p for thread %x", key, value, in pthread_setspecific() 224 key_data->thread_data.spec_data = (void *)value; in pthread_setspecific() 232 LOG_DBG("Paired key %x to value %p for thread %x", key, value, pthread_self()); in pthread_setspecific() 248 void *value = NULL; in pthread_getspecific() local 259 value = NULL; in pthread_getspecific() 269 value = thread_spec_data->spec_data; in pthread_getspecific() 275 return value; in pthread_getspecific()
|
A D | semaphore.c | 107 int sem_getvalue(sem_t *semaphore, int *value) in sem_getvalue() argument 114 *value = (int) k_sem_count_get(semaphore); in sem_getvalue() 123 int sem_init(sem_t *semaphore, int pshared, unsigned int value) in sem_init() argument 125 if (value > CONFIG_POSIX_SEM_VALUE_MAX) { in sem_init() 136 k_sem_init(semaphore, value, CONFIG_POSIX_SEM_VALUE_MAX); in sem_init() 208 unsigned int value; in sem_open() local 215 value = va_arg(va, unsigned int); in sem_open() 218 if (value > CONFIG_POSIX_SEM_VALUE_MAX) { in sem_open() 277 (void)k_sem_init(&nsem->sem, value, CONFIG_POSIX_SEM_VALUE_MAX); in sem_open()
|
A D | timer.c | 242 int timer_settime(timer_t timerid, int flags, const struct itimerspec *value, in timer_settime() argument 248 if ((timer == NULL) || !timespec_is_valid(&value->it_interval) || in timer_settime() 249 !timespec_is_valid(&value->it_value)) { in timer_settime() 260 if ((value->it_value.tv_sec == 0) && (value->it_value.tv_nsec == 0)) { in timer_settime() 270 timer->reload = ts_to_ms(&value->it_interval); in timer_settime() 271 timer->interval.tv_sec = value->it_interval.tv_sec; in timer_settime() 272 timer->interval.tv_nsec = value->it_interval.tv_nsec; in timer_settime() 275 duration = ts_to_ms(&(value->it_value)); in timer_settime()
|
A D | Kconfig.semaphore | 13 int "Maximum semaphore value" 34 The max value of 255 corresponds to {NAME_MAX}.
|
A D | posix_internal.h | 95 void (*destructor)(void *value);
|
A D | Kconfig.pthread | 117 This value plays a part in determining the maximum supported 119 [1, N], where N = 1 << M, and M is this configuration value. 126 This value plays a part in determining the maximum supported 128 [0, N-1], where N = 1 << M, and M is this configuration value.
|
/lib/hash/ |
A D | hash_map_sc.c | 21 uint64_t value; member 26 uint64_t value) in sys_hashmap_sc_entry_init() argument 29 entry->value = value; in sys_hashmap_sc_entry_init() 166 it->value = entry->value; in sys_hashmap_sc_iter_next() 186 it->value = 0; in sys_hashmap_sc_iter() 229 *old_value = entry->value; in sys_hashmap_sc_insert() 232 entry->value = value; in sys_hashmap_sc_insert() 263 if (value != NULL) { in sys_hashmap_sc_remove() 264 *value = entry->value; in sys_hashmap_sc_remove() 289 if (value != NULL) { in sys_hashmap_sc_get() [all …]
|
A D | hash_map_oa_lp.c | 26 uint64_t value; member 103 *old_value = entry->value; in sys_hashmap_oa_lp_insert_no_rehash() 108 entry->value = value; in sys_hashmap_oa_lp_insert_no_rehash() 155 sys_hashmap_oa_lp_insert_no_rehash(map, entry->key, entry->value, NULL); in sys_hashmap_oa_lp_rehash() 188 it->value = entry->value; in sys_hashmap_oa_lp_iter_next() 219 cb(entry->key, entry->value, cookie); in sys_hashmap_oa_lp_clear() 244 return sys_hashmap_oa_lp_insert_no_rehash(map, key, value, old_value); in sys_hashmap_oa_lp_insert() 257 if (value != NULL) { in sys_hashmap_oa_lp_remove() 258 *value = entry->value; in sys_hashmap_oa_lp_remove() 280 if (value != NULL) { in sys_hashmap_oa_lp_get() [all …]
|
A D | hash_map_cxx.cpp | 29 it->value = it2->second; in sys_hashmap_cxx_iter_next() 43 it->value = 0; in sys_hashmap_cxx_iter() 69 static int sys_hashmap_cxx_insert(struct sys_hashmap *map, uint64_t key, uint64_t value, in sys_hashmap_cxx_insert() argument 83 it->second = value; in sys_hashmap_cxx_insert() 88 (*umap)[key] = value; in sys_hashmap_cxx_insert() 99 static bool sys_hashmap_cxx_remove(struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_cxx_remove() argument 112 if (value != nullptr) { in sys_hashmap_cxx_remove() 113 *value = it->second; in sys_hashmap_cxx_remove() 129 static bool sys_hashmap_cxx_get(const struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_cxx_get() argument 142 if (value != nullptr) { in sys_hashmap_cxx_get() [all …]
|
A D | Kconfig.hash_map | 13 lookup of key-value pairs must be done in O(1) time (on average).
|
/lib/utils/ |
A D | dec.c | 9 uint8_t u8_to_dec(char *buf, uint8_t buflen, uint8_t value) in u8_to_dec() argument 16 digit = value / divisor; in u8_to_dec() 24 value -= digit * divisor; in u8_to_dec()
|
A D | json.c | 24 struct json_token value; member 381 kv->value = tok; in obj_next() 913 obj_token->length = value->end - value->start; in decode_value() 919 *value->end = '\0'; in decode_value() 920 *str = value->start; in decode_value() 999 void *value = val; in arr_parse() local 1029 value = field; in arr_parse() 1615 if (*value) { in bool_encode() 1815 .value = *value in extract_raw_json_data() 1832 *value->end = '\0'; in extract_raw_json_data() [all …]
|
A D | ring_buffer.c | 141 uint32_t value :8; /**< Room for small integral values */ member 144 int ring_buf_item_put(struct ring_buf *buf, uint16_t type, uint8_t value, in ring_buf_item_put() argument 164 header->value = value; in ring_buf_item_put() 186 int ring_buf_item_get(struct ring_buf *buf, uint16_t *type, uint8_t *value, in ring_buf_item_get() argument 211 *value = header->value; in ring_buf_item_get()
|
/lib/os/ |
A D | cbprintf_complete.c | 806 value /= radix; in encode_uint() 881 .dbl = value, in encode_float() 1422 .value = { in z_cbvprintf_impl() 1427 union argument_value *const value = &state.value; in z_cbvprintf_impl() local 1532 value->sint = in z_cbvprintf_impl() 1536 value->sint = in z_cbvprintf_impl() 1553 value->sint = (signed char)value->sint; in z_cbvprintf_impl() 1555 value->sint = (short)value->sint; in z_cbvprintf_impl() 1591 value->uint = (unsigned char)value->uint; in z_cbvprintf_impl() 1593 value->uint = (unsigned short)value->uint; in z_cbvprintf_impl() [all …]
|
A D | sem.c | 103 int value = atomic_get(&sem->futex.val); in sys_sem_count_get() local 105 return (value > SYS_SEM_MINIMUM) ? value : SYS_SEM_MINIMUM; in sys_sem_count_get()
|
A D | Kconfig.cbprintf | 56 With CBPRINTF_COMPLETE conversions that may result in value-specific 81 The %a hexadecimal format for floating point value conversion was
|
A D | Kconfig | 88 this value should be set to the data cache line size of the remote core.
|
/lib/os/zvfs/ |
A D | zvfs_eventfd.c | 29 int (*op)(struct zvfs_eventfd *efd, zvfs_eventfd_t *value)); 101 static int zvfs_eventfd_read_locked(struct zvfs_eventfd *efd, zvfs_eventfd_t *value) in zvfs_eventfd_read_locked() argument 115 *value = 1; in zvfs_eventfd_read_locked() 118 *value = efd->cnt; in zvfs_eventfd_read_locked() 131 static int zvfs_eventfd_write_locked(struct zvfs_eventfd *efd, zvfs_eventfd_t *value) in zvfs_eventfd_write_locked() argument 140 if (*value == UINT64_MAX) { in zvfs_eventfd_write_locked() 145 if (u64_add_overflow(efd->cnt, *value, &result) || result == UINT64_MAX) { in zvfs_eventfd_write_locked() 301 int (*op)(struct zvfs_eventfd *efd, zvfs_eventfd_t *value)) in zvfs_eventfd_rw_op() argument 449 int zvfs_eventfd_read(int fd, zvfs_eventfd_t *value) in zvfs_eventfd_read() argument 459 ret = zvfs_eventfd_rw_op(obj, value, sizeof(zvfs_eventfd_t), zvfs_eventfd_read_locked); in zvfs_eventfd_read() [all …]
|
/lib/net_buf/ |
A D | Kconfig | 59 Default value of 0 means the alignment will be the size of a void pointer, 60 any other value will force the alignment of a net buffer in bytes.
|
A D | buf.c | 668 const void *value, k_timeout_t timeout, in net_buf_append_bytes() argument 673 const uint8_t *value8 = value; in net_buf_append_bytes()
|
/lib/libc/newlib/ |
A D | Kconfig | 21 memory used will be the minimum of this value and the amount of 32 smaller than this value.
|
/lib/acpi/ |
A D | acpi.c | 45 static void notify_handler(ACPI_HANDLE device, UINT32 value, void *ctx) in notify_handler() argument 47 ACPI_INFO(("Received a notify 0x%X", value)); in notify_handler()
|
/lib/heap/ |
A D | Kconfig | 65 To enable the feature, assign a value greater than zero.
|