Home
last modified time | relevance | path

Searched refs:sizeof (Results 1 – 25 of 42) sorted by relevance

12

/Zephyr-latest/scripts/coccinelle/
Darray_size.cocci1 /// 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 …]
Dnoderef.cocci1 /// 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 …]
Dderef_null.cocci38 sizeof(<+...E->f@p2...+>)
234 sizeof(<+...E->f@p2...+>)
/Zephyr-latest/doc/develop/tools/
Dcoccinelle.rst317 /// 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/
D8021Qav.rst55 memset(&params, 0, sizeof(params));
64 sizeof(struct ethernet_req_params));
80 memset(&params, 0, sizeof(params));
88 sizeof(struct ethernet_req_params));
100 sizeof(struct ethernet_req_params));
Dcoap_server.rst94 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)) {
Dsocket_service.rst71 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));
Dsockets.rst107 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));
Dmqtt.rst82 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);
Dmqtt_sn.rst83 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…
Dhttp_client.rst40 req.recv_buf_len = sizeof(recv_buf);
Dhttp_server.rst128 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),
Dcoap.rst122 coap_packet_init(&request, data, sizeof(data),
135 sizeof(payload) - 1);
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_senml_cbor.patch29 …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/
DKconfig.plic73 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)).
DCMakeLists.txt55 This can use quite a bit of RAM (PLICs * IRQs * sizeof(uint16_t))"
/Zephyr-latest/doc/kernel/services/data_passing/
Dpipes.rst62 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…
Dmessage_queues.rst87 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/
Dindex.rst100 .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/
DKconfig74 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/
Dipc_service.rst99 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/
Dindex.rst209 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/
Dsemihost.rst42 bytes_read = semihost_read(fd, buffer, MIN(file_len, sizeof(buffer)));
/Zephyr-latest/doc/kernel/usermode/
Dsyscalls.rst402 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);
Dmemory_domain.rst225 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),

12