/Zephyr-latest/samples/subsys/settings/src/ |
D | main.c | 119 size_t name_len; in beta_handle_set() local 122 name_len = settings_name_next(name, &next); in beta_handle_set() 125 if (!strncmp(name, "voltage", name_len)) { in beta_handle_set() 131 if (!strncmp(name, "source", name_len)) { in beta_handle_set() 274 size_t name_len; in direct_loader() local 280 name_len = settings_name_next(name, &next); in direct_loader() 282 if (name_len == 0) { in direct_loader() 288 name_len = settings_name_next(name, &next); in direct_loader() 294 if (!strncmp(name, "1", name_len)) { in direct_loader() 300 if (!strncmp(name, "2", name_len)) { in direct_loader() [all …]
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_has.c | 56 int name_len = MIN(cp->length, BT_HAS_PRESET_NAME_MAX); in has_set_preset_name() local 58 memcpy(temp_name, cp->name, name_len); in has_set_preset_name() 59 temp_name[name_len] = '\0'; in has_set_preset_name() 107 int name_len = MIN(cp->length, BT_HAS_PRESET_NAME_MAX); in has_add_preset() local 109 memcpy(temp_name, cp->name, name_len); in has_add_preset() 110 temp_name[name_len] = '\0'; in has_add_preset()
|
/Zephyr-latest/lib/posix/options/ |
D | shm.c | 309 size_t name_len = (name == NULL) ? 0 : strnlen(name, PATH_MAX); in shm_open() local 327 if (!shm_obj_name_valid(name, name_len)) { in shm_open() 338 key = hash32(name, name_len); in shm_open() 379 size_t name_len = (name == NULL) ? 0 : strnlen(name, PATH_MAX); in shm_unlink() local 381 if (!shm_obj_name_valid(name, name_len)) { in shm_unlink() 386 key = hash32(name, name_len); in shm_unlink()
|
/Zephyr-latest/subsys/ipc/ipc_service/backends/ |
D | ipc_icmsg_me_initiator.c | 110 size_t name_len = strlen(cfg->name); in register_ept() local 112 if (name_len > EP_NAME_LEN) { in register_ept() 137 memcpy(&ep_disc_req[2], cfg->name, name_len); in register_ept() 142 2 * sizeof(icmsg_me_ept_id_t) + name_len); in register_ept()
|
D | ipc_icmsg_me_follower.c | 153 size_t name_len = len - 2 * sizeof(icmsg_me_ept_id_t); in received() local 158 get_ept_cached_loc(dev_data, name, name_len); in received() 160 cache_ept_rmt(dev_data, name, name_len, ept_id); in received() 169 name_len); in received()
|
/Zephyr-latest/tests/bluetooth/tester/src/btp/ |
D | btp_ots.h | 23 uint8_t name_len; member
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_hpack.c | 115 strlen(entry->name) == header->name_len && in http_hpack_find_index() 116 memcmp(entry->name, header->name, header->name_len) == 0) { in http_hpack_find_index() 227 header->name_len = ret; in hpack_huffman_decode() 277 header->name_len = str_len; in hpack_string_decode() 316 header->name_len = strlen(entry->name); in hpack_handle_indexed() 366 header->name_len = strlen(entry->name); in hpack_handle_literal() 499 str_len = header->name_len; in hpack_string_encode() 611 header->name == NULL || header->name_len == 0 || in http_hpack_encode_header()
|
D | http_server_http2.c | 115 client->header_field.name_len = strlen(name); in add_header_field() 1224 required_len = hdr_buf->name_len + hdr_buf->value_len + 2; in check_user_request_headers_http2() 1226 if (hdr_buf->name_len == strlen(header->name) && in check_user_request_headers_http2() 1227 (strncasecmp(hdr_buf->name, header->name, hdr_buf->name_len) == 0)) { in check_user_request_headers_http2() 1244 memcpy(dest, header->name, hdr_buf->name_len); in check_user_request_headers_http2() 1245 dest[hdr_buf->name_len] = '\0'; in check_user_request_headers_http2() 1247 ctx->cursor += (hdr_buf->name_len + 1); in check_user_request_headers_http2() 1248 dest += (hdr_buf->name_len + 1); in check_user_request_headers_http2() 1269 if (header->name_len == (sizeof(":method") - 1) && in process_header() 1270 memcmp(header->name, ":method", header->name_len) == 0) { in process_header() [all …]
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_fcb.c | 160 size_t name_len; in settings_fcb_load_priv() local 164 rc2 = settings_line_name_read(name, sizeof(name), &name_len, in settings_fcb_load_priv() 170 name[name_len] = '\0'; in settings_fcb_load_priv() 173 (!read_entry_len(&entry_ctx, name_len+1) || in settings_fcb_load_priv() 180 cb(name, &entry_ctx, name_len + 1, cb_arg); in settings_fcb_load_priv()
|
D | settings_file.c | 143 size_t name_len; in settings_file_load_priv() local 151 rc = settings_line_name_read(name, sizeof(name), &name_len, in settings_file_load_priv() 154 if (rc || name_len == 0) { in settings_file_load_priv() 157 name[name_len] = '\0'; in settings_file_load_priv() 160 (!read_entry_len(&entry_ctx, name_len+1) || in settings_file_load_priv() 167 cb(name, (void *)&entry_ctx, name_len + 1, cb_arg); in settings_file_load_priv()
|
/Zephyr-latest/include/zephyr/shell/ |
D | shell_types.h | 41 uint8_t name_len; /*!<console name length.*/ member
|
/Zephyr-latest/subsys/disk/ |
D | disk_access.c | 30 size_t name_len = strlen(name); in disk_access_get_di() local 42 if (strlen(itr->name) != name_len) { in disk_access_get_di() 47 if (strncmp(name, itr->name, name_len) == 0) { in disk_access_get_di()
|
/Zephyr-latest/subsys/shell/ |
D | shell_utils.c | 59 return ((buffer_pos + cons->name_len) / cons->terminal_wid); in line_num_with_buffer_offset_get() 67 return (1 + ((buffer_pos + cons->name_len) % cons->terminal_wid)); in col_num_with_buffer_offset_get() 92 cons->cur_x = (buff_pos + cons->name_len) % cons->terminal_wid + 1; in z_shell_multiline_data_calc() 93 cons->cur_y = (buff_pos + cons->name_len) / cons->terminal_wid + 1; in z_shell_multiline_data_calc() 96 cons->cur_y_end = (buff_len + cons->name_len) / cons->terminal_wid + 1; in z_shell_multiline_data_calc() 97 cons->cur_x_end = (buff_len + cons->name_len) % cons->terminal_wid + 1; in z_shell_multiline_data_calc()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_ots.c | 77 if ((cmd_len < sizeof(*cp)) || (cmd_len != sizeof(*cp) + cp->name_len)) { in register_object() 81 if (cp->name_len == 0 || cp->name_len > CONFIG_BT_OTS_OBJ_MAX_NAME_LEN) { in register_object() 103 memcpy(obj->name, cp->name, cp->name_len); in register_object()
|
/Zephyr-latest/tests/net/lib/http_server/hpack/src/ |
D | main.c | 255 .name_len = strlen(example[i].name), in test_hpack_verify_encode() 276 zassert_equal(hdr.name_len, strlen(example[i].name), in test_hpack_verify_decode() 280 zassert_mem_equal(hdr.name, example[i].name, hdr.name_len, in test_hpack_verify_decode()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/ |
D | btp_tbs.h | 33 uint8_t name_len; member
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | has_client.c | 71 size_t name_len; in handle_read_preset_rsp() local 90 name_len = buf->len + 1; /* + 1 byte for NULL terminator */ in handle_read_preset_rsp() 91 if (name_len > ARRAY_SIZE(name)) { in handle_read_preset_rsp() 94 name_len = ARRAY_SIZE(name); in handle_read_preset_rsp() 97 utf8_lcpy(name, pdu->name, name_len); in handle_read_preset_rsp() 108 size_t name_len; in handle_generic_update() local 121 name_len = buf->len + 1; /* + 1 byte for NULL terminator */ in handle_generic_update() 122 if (name_len > ARRAY_SIZE(name)) { in handle_generic_update() 125 name_len = ARRAY_SIZE(name); in handle_generic_update() 128 utf8_lcpy(name, pdu->name, name_len); in handle_generic_update()
|
D | mpl_internal.h | 39 uint8_t name_len; member
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/ |
D | peer.c | 380 static void start_adv(uint16_t interval, const char *name, size_t name_len) in start_adv() argument 387 __ASSERT(name_len < (31 - 2), "name_len should be < 30"); in start_adv() 390 data.len = name_len + 2; in start_adv() 391 data.data[0] = name_len + 1; in start_adv() 393 memcpy(&data.data[2], name, name_len); in start_adv()
|
/Zephyr-latest/include/zephyr/net/http/ |
D | hpack.h | 118 size_t name_len; member
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/ |
D | tester.c | 445 static void start_adv(uint16_t interval, const char *name, size_t name_len) in start_adv() argument 452 __ASSERT(name_len < (31 - 2), "name_len should be < 30"); in start_adv() 455 data.len = name_len + 2; in start_adv() 456 data.data[0] = name_len + 1; in start_adv() 458 memcpy(&data.data[2], name, name_len); in start_adv()
|
/Zephyr-latest/subsys/bluetooth/services/ots/ |
D | ots.c | 367 size_t name_len; in bt_ots_obj_add() local 375 name_len = strlen(obj->metadata.name); in bt_ots_obj_add() 376 if (name_len == 0 || name_len > CONFIG_BT_OTS_OBJ_MAX_NAME_LEN) { in bt_ots_obj_add() 377 LOG_ERR("Invalid name length %zu", name_len); in bt_ots_obj_add()
|
D | ots_client.c | 45 uint8_t name_len; member 1632 rec->name_len = net_buf_simple_pull_u8(buf); in decode_record() 1634 if (rec->name_len > 0) { in decode_record() 1637 if ((start_len - buf->len) + rec->name_len > rec->len) { in decode_record() 1641 rec->name_len); in decode_record() 1645 if (rec->name_len >= sizeof(rec->metadata.name_c)) { in decode_record() 1646 LOG_WRN("Name length %u too long, invalid record", rec->name_len); in decode_record() 1650 name = net_buf_simple_pull_mem(buf, rec->name_len); in decode_record() 1651 memcpy(rec->metadata.name_c, name, rec->name_len); in decode_record() 1654 rec->metadata.name_c[rec->name_len] = '\0'; in decode_record()
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_impl.h | 157 uint32_t name_len; /* (CR) length of name */ member
|
D | ext2_impl.c | 516 args->name_len = len; in ext2_lookup_inode() 1033 entry = ext2_create_direntry(args->path + args->name_pos, args->name_len, new_inode->i_id, in ext2_create_file() 1071 entry = ext2_create_direntry(args->path + args->name_pos, args->name_len, new_inode->i_id, in ext2_create_dir() 1394 if (reclen - sizeof(struct ext2_disk_direntry) >= args_to->name_len) { in ext2_move_file() 1396 ext2_set_disk_direntry_namelen(de, args_to->name_len); in ext2_move_file() 1398 args_to->name_len); in ext2_move_file() 1422 new_de = ext2_create_direntry(args_to->path + args_to->name_pos, args_to->name_len, inode, in ext2_move_file()
|