/Zephyr-latest/scripts/coccinelle/ |
D | array_size.cocci | 1 /// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element 4 //# where there is a division of sizeof the array by the sizeof its first 32 * (sizeof(E)/sizeof(*E)) 34 * (sizeof(E)/sizeof(E[...])) 36 * (sizeof(E)/sizeof(T)) 48 - (sizeof(E)/sizeof(*E)) 51 - (sizeof(E)/sizeof(E[...])) 54 - (sizeof(E)/sizeof(T)) 68 (sizeof(E)@p /sizeof(*E)) 70 (sizeof(E)@p /sizeof(E[...])) [all …]
|
D | noderef.cocci | 1 /// sizeof when applied to a pointer typed expression gives the size of 24 x = <+... sizeof( 29 f(...,(T)(x),...,sizeof( 34 f(...,sizeof( 39 f(...,(T)(x),...,i*sizeof( 44 f(...,i*sizeof( 59 *x = <+... sizeof@p(x) ...+> 61 *f(...,(T)(x),...,sizeof@p(x),...) 63 *f(...,sizeof@p(x),...,(T)(x),...) 65 *f(...,(T)(x),...,i*sizeof@p(x),...) [all …]
|
D | deref_null.cocci | 38 sizeof(<+...E->f@p2...+>) 234 sizeof(<+...E->f@p2...+>)
|
/Zephyr-latest/doc/develop/tools/ |
D | coccinelle.rst | 317 /// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element 328 //# where there is a division of sizeof the array by the sizeof its first 359 * (sizeof(E)/sizeof(*E)) 361 * (sizeof(E)/sizeof(E[...])) 363 * (sizeof(E)/sizeof(T)) 396 (sizeof(E)@p /sizeof(*E)) 398 (sizeof(E)@p /sizeof(E[...])) 400 (sizeof(E)@p /sizeof(T)) 448 - (sizeof(E)/sizeof(*E)) 451 - (sizeof(E)/sizeof(E[...])) [all …]
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | 8021Qav.rst | 55 memset(¶ms, 0, sizeof(params)); 64 sizeof(struct ethernet_req_params)); 80 memset(¶ms, 0, sizeof(params)); 88 sizeof(struct ethernet_req_params)); 100 sizeof(struct ethernet_req_params));
|
D | coap_server.rst | 94 coap_packet_init(&response, data, sizeof(data), COAP_VERSION_1, type, tkl, token, 103 coap_packet_append_payload(&response, (uint8_t *)msg, sizeof(msg)); 165 coap_packet_init(&response, data, sizeof(data), COAP_VERSION_1, type, tkl, token, 181 snprintk(payload, sizeof(payload), "%0.2f°C", temp); 210 send_temperature(resource, &observer->addr, sizeof(observer->addr), resource->age, 0, 257 if (info != NULL && info_length == sizeof(struct net_event_coap_service)) { 266 if (info != NULL && info_length == sizeof(struct net_event_coap_service)) {
|
D | socket_service.rst | 71 socklen_t addrlen = sizeof(addr); 78 len = recvfrom(client, buf, sizeof(buf), 0, 115 if (bind(sock, (struct sockaddr *)addr, sizeof(*addr)) < 0) { 147 socklen_t client_addr_len = sizeof(client_addr); 158 if (bind(sock, (struct sockaddr *)addr, sizeof(*addr)) < 0) { 177 addr_str, sizeof(addr_str));
|
D | sockets.rst | 107 ca_certificate, sizeof(ca_certificate)); 131 sec_tag_opt, sizeof(sec_tag_opt)); 137 ret = setsockopt(sock, SOL_TLS, TLS_HOSTNAME, host, sizeof(host)); 260 setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, sizeof(ifreq)); 277 setsockopt(sock, SOL_TLS, TLS_NATIVE, &tls_native, sizeof(tls_native)); 286 setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, sizeof(ifreq));
|
D | mqtt.rst | 82 client_ctx.client_id.size = sizeof("zephyr_mqtt_client") - 1; 90 client_ctx.rx_buf_size = sizeof(rx_buffer); 92 client_ctx.tx_buf_size = sizeof(tx_buffer);
|
D | mqtt_sn.rst | 83 mqtt_sn_transport_udp_init(&tp, (struct sockaddr*)&gateway, sizeof((gateway))); 85 …mqtt_sn_client_init(&client, &client_id, &tp.tp, evt_cb, tx_buf, sizeof(tx_buf), rx_buf, sizeof(rx…
|
D | http_client.rst | 40 req.recv_buf_len = sizeof(recv_buf);
|
D | http_server.rst | 128 NULL, NULL, sec_tag_list, sizeof(sec_tag_list)); 147 response_ctx->body_len = sizeof(response_404) - 1; 213 .static_data_len = sizeof(index_html_gz), 295 snprintf(print_str, sizeof(print_str), "%s received (%zd bytes)", 402 .data_buffer_len = sizeof(ws_recv_buffer),
|
D | coap.rst | 122 coap_packet_init(&request, data, sizeof(data), 135 sizeof(payload) - 1);
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_senml_cbor.patch | 29 …d_record_key_value_pair_m, state, (*&(*result).record_key_value_pair_m), sizeof(struct record_key_… 30 …d_record_key_value_pair_m, state, (*&(*result).record_key_value_pair_m), sizeof(struct record_key_… 38 …or_decoder_t *)decode_record, state, (*&(*result).lwm2m_senml_record_m), sizeof(struct record))) |… 39 …or_decoder_t *)decode_record, state, (*&(*result).lwm2m_senml_record_m), sizeof(struct record))) |… 102 …ed_record_key_value_pair_m, state, (*&(*input).record_key_value_pair_m), sizeof(struct record_key_… 103 …ed_record_key_value_pair_m, state, (*&(*input).record_key_value_pair_m), sizeof(struct record_key_… 111 …bor_encoder_t *)encode_record, state, (*&(*input).lwm2m_senml_record_m), sizeof(struct record))) |… 112 …bor_encoder_t *)encode_record, state, (*&(*input).lwm2m_senml_record_m), sizeof(struct record))) |…
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | Kconfig.plic | 73 Caution: This can use quite a bit of RAM (PLICs * IRQs * sizeof(uint16_t)). 82 Caution: This can use quite a bit of RAM (PLICs * IRQs * sizeof(PLIC_IRQ_COUNT_TYPE)).
|
D | CMakeLists.txt | 55 This can use quite a bit of RAM (PLICs * IRQs * sizeof(uint16_t))"
|
/Zephyr-latest/doc/kernel/services/data_passing/ |
D | pipes.rst | 62 k_pipe_init(&my_pipe, my_ring_buffer, sizeof(my_ring_buffer)); 151 while (bytes_read < sizeof(*header)) { 152 …rc = k_pipe_read(&my_pipe, &buffer[bytes_read], sizeof(*header) - bytes_read, &bytes_read, K_NO_WA… 167 …rc = k_pipe_read(&my_pipe, &buffer[sizeof(*header) + bytes_read], header->num_data_bytes - bytes_r…
|
D | message_queues.rst | 87 char my_msgq_buffer[10 * sizeof(struct data_item_type)]; 90 k_msgq_init(&my_msgq, my_msgq_buffer, sizeof(struct data_item_type), 10); 100 K_MSGQ_DEFINE(my_msgq, sizeof(struct data_item_type), 10, 1);
|
/Zephyr-latest/doc/kernel/object_cores/ |
D | index.rst | 100 .raw_size = sizeof(struct my_obj_type_raw_stats), 101 .query_size = sizeof(struct my_obj_type_query_stats), 133 sizeof(struct my_obj_type_raw_info)); 194 &my_stats, sizeof(my_stats));
|
/Zephyr-latest/subsys/canbus/isotp/ |
D | Kconfig | 74 header (sizeof(struct net_buf)) amount of data. 92 Each buffer will occupy CAN_MAX_DLEN - 1 byte + header (sizeof(struct net_buf)) 108 header (sizeof(struct net_buf)) amount of data. If context buffers
|
/Zephyr-latest/doc/services/ipc/ipc_service/ |
D | ipc_service.rst | 99 ret = ipc_service_send(&ept0, &message, sizeof(message)); 152 uint32_t len = sizeof(message); 158 ret = ipc_service_send_nocopy(&ept0, data, sizeof(message));
|
/Zephyr-latest/doc/services/storage/settings/ |
D | index.rst | 209 if (len != sizeof(foo_val)) { 213 rc = read_cb(cb_arg, &foo_val, sizeof(foo_val)); 231 return storage_func("foo/bar", &foo_val, sizeof(foo_val)); 271 if (len != sizeof(foo_val)) { 275 rc = read_cb(cb_arg, &foo_val, sizeof(foo_val)); 299 settings_save_one("foo/bar", &foo_val, sizeof(foo_val));
|
/Zephyr-latest/doc/hardware/arch/ |
D | semihost.rst | 42 bytes_read = semihost_read(fd, buffer, MIN(file_len, sizeof(buffer)));
|
/Zephyr-latest/doc/kernel/usermode/ |
D | syscalls.rst | 402 K_OOPS(k_usermode_to_copy(out_param, &local_out_param, sizeof(*out_param))); 416 K_OOPS(K_SYSCALL_MEMORY_WRITE(out_param, sizeof(*out_param))); 438 K_OOPS(k_usermode_from_copy(&size, size_ptr, sizeof(size)); 440 K_OOPS(k_usermode_to_copy(size_ptr, &size, sizeof(size))); 466 K_OOPS(k_usermode_from_copy(&foo_copy, foo, sizeof(*foo))); 468 sizeof(struct bar))); 471 sizeof(struct bar))); 505 K_OOPS(k_usermode_from_copy(&foo_copy, foo, sizeof(*foo))); 514 bar_list_bytes = foo_copy.count * sizeof(struct_bar);
|
D | memory_domain.rst | 225 K_MEM_PARTITION_DEFINE(my_partition, buf, sizeof(buf), 361 K_MEM_PARTITION_DEFINE(app0_part0, app0_buf, sizeof(app0_buf), 364 K_MEM_PARTITION_DEFINE(app0_part1, app1_buf, sizeof(app1_buf), 383 K_MEM_PARTITION_DEFINE(app0_part0, app0_buf, sizeof(app0_buf), 386 K_MEM_PARTITION_DEFINE(app0_part1, app1_buf, sizeof(app1_buf),
|