Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 26) sorted by relevance

12

/lib/posix/shell/
A Denv.c22 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 Deventfd.c15 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 Dkey.c168 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 Dsemaphore.c107 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 Dtimer.c242 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 DKconfig.semaphore13 int "Maximum semaphore value"
34 The max value of 255 corresponds to {NAME_MAX}.
A Dposix_internal.h95 void (*destructor)(void *value);
A DKconfig.pthread117 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 Dhash_map_sc.c21 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 Dhash_map_oa_lp.c26 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 Dhash_map_cxx.cpp29 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 DKconfig.hash_map13 lookup of key-value pairs must be done in O(1) time (on average).
/lib/utils/
A Ddec.c9 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 Djson.c24 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 Dring_buffer.c141 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 Dcbprintf_complete.c806 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 Dsem.c103 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 DKconfig.cbprintf56 With CBPRINTF_COMPLETE conversions that may result in value-specific
81 The %a hexadecimal format for floating point value conversion was
A DKconfig88 this value should be set to the data cache line size of the remote core.
/lib/os/zvfs/
A Dzvfs_eventfd.c29 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 DKconfig59 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 Dbuf.c668 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 DKconfig21 memory used will be the minimum of this value and the amount of
32 smaller than this value.
/lib/acpi/
A Dacpi.c45 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 DKconfig65 To enable the feature, assign a value greater than zero.

Completed in 70 milliseconds

12