Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 2044) sorted by relevance

12345678910>>...82

/Zephyr-latest/cmake/modules/
Dversion.cmake47 foreach(type file IN ZIP_LISTS VERSION_TYPE VERSION_FILE)
55 set(${type}_VERSION_MAJOR ${CMAKE_MATCH_1})
58 set(${type}_VERSION_MINOR ${CMAKE_MATCH_1})
61 set(${type}_PATCHLEVEL ${CMAKE_MATCH_1})
64 set(${type}_VERSION_TWEAK ${CMAKE_MATCH_1})
67 set(${type}_VERSION_EXTRA ${CMAKE_MATCH_1})
70 if(${type}_VERSION_MAJOR GREATER 255)
71 … message(FATAL_ERROR "VERSION_MAJOR must be in the range 0-255 (Current ${${type}_VERSION_MAJOR})")
73 if(${type}_VERSION_MINOR GREATER 255)
74 … message(FATAL_ERROR "VERSION_MINOR must be in the range 0-255 (Current ${${type}_VERSION_MINOR})")
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Daddr.c21 addr->type = BT_ADDR_LE_RANDOM; in create_random_addr()
88 int bt_addr_le_from_str(const char *str, const char *type, bt_addr_le_t *addr) in bt_addr_le_from_str() argument
97 if (!strcmp(type, "public") || !strcmp(type, "(public)")) { in bt_addr_le_from_str()
98 addr->type = BT_ADDR_LE_PUBLIC; in bt_addr_le_from_str()
99 } else if (!strcmp(type, "random") || !strcmp(type, "(random)")) { in bt_addr_le_from_str()
100 addr->type = BT_ADDR_LE_RANDOM; in bt_addr_le_from_str()
101 } else if (!strcmp(type, "public-id") || !strcmp(type, "(public-id)")) { in bt_addr_le_from_str()
102 addr->type = BT_ADDR_LE_PUBLIC_ID; in bt_addr_le_from_str()
103 } else if (!strcmp(type, "random-id") || !strcmp(type, "(random-id)")) { in bt_addr_le_from_str()
104 addr->type = BT_ADDR_LE_RANDOM_ID; in bt_addr_le_from_str()
[all …]
/Zephyr-latest/tests/net/socket/register/src/
Dmain.c20 int type; member
32 .test_case.type = SOCK_DGRAM,
39 .test_case.type = SOCK_DGRAM,
47 .test_case.type = 0,
55 .test_case.type = SOCK_DGRAM,
62 .test_case.type = SOCK_DGRAM,
69 .test_case.type = SOCK_DGRAM,
76 .test_case.type = SOCK_DGRAM,
83 .test_case.type = SOCK_DGRAM,
90 .test_case.type = SOCK_DGRAM,
[all …]
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dtest.c26 uint8_t type; in piggyback_get() local
31 type = coap_header_get_type(request); in piggyback_get()
36 LOG_INF("type: %u code %u id %u", type, code, id); in piggyback_get()
39 if (type == COAP_TYPE_CON) { in piggyback_get()
40 type = COAP_TYPE_ACK; in piggyback_get()
42 type = COAP_TYPE_NON_CON; in piggyback_get()
46 COAP_VERSION_1, type, tkl, token, in piggyback_get()
65 "Type: %u\nCode: %u\nMID: %u\n", type, code, id); in piggyback_get()
90 uint8_t type; in test_del() local
95 type = coap_header_get_type(request); in test_del()
[all …]
Dseparate.c24 uint8_t type; in separate_get() local
29 type = coap_header_get_type(request); in separate_get()
34 LOG_INF("type: %u code %u id %u", type, code, id); in separate_get()
37 if (type == COAP_TYPE_ACK) { in separate_get()
51 if (type == COAP_TYPE_CON) { in separate_get()
52 type = COAP_TYPE_CON; in separate_get()
54 type = COAP_TYPE_NON_CON; in separate_get()
59 COAP_VERSION_1, type, tkl, token, in separate_get()
78 "Type: %u\nCode: %u\nMID: %u\n", type, code, id); in separate_get()
/Zephyr-latest/include/zephyr/tracing/
Dtracing_macros.h13 #define SYS_PORT_TRACING_FUNC(type, func, ...) do { } while (false) argument
14 #define SYS_PORT_TRACING_FUNC_ENTER(type, func, ...) do { } while (false) argument
15 #define SYS_PORT_TRACING_FUNC_BLOCKING(type, func, ...) do { } while (false) argument
16 #define SYS_PORT_TRACING_FUNC_EXIT(type, func, ...) do { } while (false) argument
23 #define SYS_PORT_TRACING_TRACKING_FIELD(type) argument
40 #define _SYS_PORT_TRACING_TYPE_MASK(type) \ argument
41 sys_port_trace_type_mask_ ## type
208 #define _SYS_PORT_TRACE_IS_DISABLED(type) sys_port_trace_##type##_is_disabled argument
210 #define _SYS_PORT_TRACE_IF_NOT_DISABLED(type, func, ...) \ argument
211 COND_CODE_1(_SYS_PORT_TRACE_IS_DISABLED(type), (), \
[all …]
/Zephyr-latest/kernel/
Dobj_core.c14 struct k_obj_type *z_obj_type_init(struct k_obj_type *type, in z_obj_type_init() argument
17 sys_slist_init(&type->list); in z_obj_type_init()
18 sys_slist_append(&z_obj_type_list, &type->node); in z_obj_type_init()
19 type->id = id; in z_obj_type_init()
20 type->obj_core_offset = off; in z_obj_type_init()
22 return type; in z_obj_type_init()
25 void k_obj_core_init(struct k_obj_core *obj_core, struct k_obj_type *type) in k_obj_core_init() argument
28 obj_core->type = type; in k_obj_core_init()
38 sys_slist_append(&obj_core->type->list, &obj_core->node); in k_obj_core_link()
44 struct k_obj_type *type) in k_obj_core_init_and_link() argument
[all …]
/Zephyr-latest/tests/net/lib/mqtt_sn_packet/src/
Dmqtt_sn_packet.c103 .type = MQTT_SN_MSG_TYPE_ADVERTISE,
113 .type = MQTT_SN_MSG_TYPE_GWINFO,
126 .type = MQTT_SN_MSG_TYPE_CONNACK,
135 .type = MQTT_SN_MSG_TYPE_CONNACK,
144 .type = MQTT_SN_MSG_TYPE_WILLTOPICREQ
150 .type = MQTT_SN_MSG_TYPE_WILLMSGREQ
156 .type = MQTT_SN_MSG_TYPE_REGISTER,
170 .type = MQTT_SN_MSG_TYPE_REGACK,
181 .type = MQTT_SN_MSG_TYPE_PUBLISH,
199 .type = MQTT_SN_MSG_TYPE_PUBACK,
[all …]
/Zephyr-latest/include/zephyr/sys/
Diterable_sections.h42 #define TYPE_SECTION_ITERABLE(type, varname, secname, section_postfix) \ argument
43 Z_DECL_ALIGN(type) varname \
78 #define TYPE_SECTION_START_EXTERN(type, secname) \ argument
79 extern type TYPE_SECTION_START(secname)[]
92 #define TYPE_SECTION_END_EXTERN(type, secname) \ argument
93 extern type TYPE_SECTION_END(secname)[]
105 #define TYPE_SECTION_FOREACH(type, secname, iterator) \ argument
106 TYPE_SECTION_START_EXTERN(type, secname); \
107 TYPE_SECTION_END_EXTERN(type, secname); \
108 for (type * iterator = TYPE_SECTION_START(secname); ({ \
[all …]
/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet_mgmt.c36 enum ethernet_config_type type; in ethernet_set_config() local
57 type = ETHERNET_CONFIG_TYPE_AUTO_NEG; in ethernet_set_config()
84 type = ETHERNET_CONFIG_TYPE_LINK; in ethernet_set_config()
91 type = ETHERNET_CONFIG_TYPE_DUPLEX; in ethernet_set_config()
116 type = ETHERNET_CONFIG_TYPE_MAC_ADDRESS; in ethernet_set_config()
123 switch (params->qav_param.type) { in ethernet_set_config()
140 type = ETHERNET_CONFIG_TYPE_QAV_PARAM; in ethernet_set_config()
152 if (params->qbv_param.type == ETHERNET_QBV_PARAM_TYPE_TIME && in ethernet_set_config()
160 type = ETHERNET_CONFIG_TYPE_QBV_PARAM; in ethernet_set_config()
166 if (params->qbu_param.type == in ethernet_set_config()
[all …]
/Zephyr-latest/arch/x86/core/
Dmultiboot.c33 x86_memmap[index].type = X86_MEMMAP_ENTRY_UNUSED; in clear_memmap()
75 uint32_t type; in z_multiboot_init() local
97 switch (mmap->type) { in z_multiboot_init()
99 type = X86_MEMMAP_ENTRY_RAM; in z_multiboot_init()
102 type = X86_MEMMAP_ENTRY_ACPI; in z_multiboot_init()
105 type = X86_MEMMAP_ENTRY_NVS; in z_multiboot_init()
108 type = X86_MEMMAP_ENTRY_DEFECTIVE; in z_multiboot_init()
111 type = X86_MEMMAP_ENTRY_UNKNOWN; in z_multiboot_init()
114 x86_memmap[index].type = type; in z_multiboot_init()
129 x86_memmap[0].type = X86_MEMMAP_ENTRY_RAM; in z_multiboot_init()
[all …]
/Zephyr-latest/drivers/sensor/ntc_thermistor/
Dntc_thermistor_calc.c38 static void ntc_lookup_comp(const struct ntc_type *type, unsigned int ohm, int *i_low, int *i_high) in ntc_lookup_comp() argument
41 int high = type->n_comp - 1; in ntc_lookup_comp()
43 if (ohm > type->comp[low].ohm) { in ntc_lookup_comp()
45 } else if (ohm < type->comp[high].ohm) { in ntc_lookup_comp()
52 if (ohm > type->comp[mid].ohm) { in ntc_lookup_comp()
85 int32_t ntc_get_temp_mc(const struct ntc_type *type, unsigned int ohm) in ntc_get_temp_mc() argument
90 ntc_lookup_comp(type, ohm, &low, &high); in ntc_get_temp_mc()
96 temp = ntc_fixp_linear_interpolate(type->comp[low].ohm, type->comp[low].temp_c * 1000, in ntc_get_temp_mc()
97 type->comp[high].ohm, type->comp[high].temp_c * 1000, in ntc_get_temp_mc()
/Zephyr-latest/drivers/mipi_dsi/
Dmipi_dsi.c24 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM; in mipi_dsi_generic_read()
28 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM; in mipi_dsi_generic_read()
32 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM; in mipi_dsi_generic_read()
52 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM; in mipi_dsi_generic_write()
56 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM; in mipi_dsi_generic_write()
60 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM; in mipi_dsi_generic_write()
64 msg.type = MIPI_DSI_GENERIC_LONG_WRITE; in mipi_dsi_generic_write()
75 .type = MIPI_DSI_DCS_READ, in mipi_dsi_dcs_read()
95 msg.type = MIPI_DSI_DCS_SHORT_WRITE; in mipi_dsi_dcs_write()
99 msg.type = MIPI_DSI_DCS_SHORT_WRITE_PARAM; in mipi_dsi_dcs_write()
[all …]
/Zephyr-latest/drivers/pinctrl/
Dpinctrl_emsdp.c107 static int pinctrl_emsdp_set(uint32_t pin, uint32_t type) in pinctrl_emsdp_set() argument
125 switch (type) { in pinctrl_emsdp_set()
153 switch (type) { in pinctrl_emsdp_set()
181 switch (type) { in pinctrl_emsdp_set()
210 if (type == ARDUINO_GPIO) { in pinctrl_emsdp_set()
212 } else if (type == ARDUINO_UART) { in pinctrl_emsdp_set()
219 if (type == ARDUINO_GPIO) { in pinctrl_emsdp_set()
221 } else if (type == ARDUINO_PWM) { in pinctrl_emsdp_set()
228 if (type == ARDUINO_GPIO) { in pinctrl_emsdp_set()
230 } else if (type == ARDUINO_PWM) { in pinctrl_emsdp_set()
[all …]
/Zephyr-latest/subsys/net/lib/tls_credentials/
Dtls_credentials.c40 if (credentials[i].type == TLS_CREDENTIAL_NONE) { in unused_credential_get()
49 enum tls_credential_type type) in credential_get() argument
54 if (credentials[i].type == type && credentials[i].tag == tag) { in credential_get()
74 if (credentials[i].type != TLS_CREDENTIAL_NONE && in credential_next_get()
91 if (credentials[i].type == TLS_CREDENTIAL_NONE) { in credential_next_tag_get()
124 int tls_credential_add(sec_tag_t tag, enum tls_credential_type type, in tls_credential_add() argument
132 credential = credential_get(tag, type); in tls_credential_add()
145 credential->type = type; in tls_credential_add()
155 int tls_credential_get(sec_tag_t tag, enum tls_credential_type type, in tls_credential_get() argument
163 credential = credential_get(tag, type); in tls_credential_get()
[all …]
/Zephyr-latest/samples/boards/st/bluetooth/interactive_gui/src/
Dmain.c167 static bool valid_type(uint8_t type) in valid_type() argument
169 return (type == BT_HCI_H4_CMD) | (type == H4_ST_EXT_CMD) | in valid_type()
170 (type == BT_HCI_H4_ACL) | (type == BT_HCI_H4_ISO) | (type == H4_ST_VND_CMD); in valid_type()
174 static uint32_t get_len(const uint8_t *hdr_buf, uint8_t type) in get_len() argument
176 switch (type) { in get_len()
189 LOG_ERR("Invalid type: %u", type); in get_len()
195 static int hdr_len(uint8_t type) in hdr_len() argument
197 switch (type) { in hdr_len()
209 LOG_ERR("Invalid type: %u", type); in hdr_len()
214 static struct net_buf *alloc_tx_buf(uint8_t type) in alloc_tx_buf() argument
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Daddr.h54 uint8_t type; member
172 if (addr->type != BT_ADDR_LE_RANDOM) { in bt_addr_le_is_rpa()
190 if (addr->type == BT_ADDR_LE_PUBLIC) { in bt_addr_le_is_identity()
245 char type[10]; in bt_addr_le_to_str() local
247 switch (addr->type) { in bt_addr_le_to_str()
249 strcpy(type, "public"); in bt_addr_le_to_str()
252 strcpy(type, "random"); in bt_addr_le_to_str()
255 strcpy(type, "public-id"); in bt_addr_le_to_str()
258 strcpy(type, "random-id"); in bt_addr_le_to_str()
261 snprintk(type, sizeof(type), "0x%02x", addr->type); in bt_addr_le_to_str()
[all …]
/Zephyr-latest/arch/arm64/core/
Dreboot.c15 void __weak sys_arch_reboot(int type) in sys_arch_reboot() argument
19 if (type == SYS_REBOOT_COLD) { in sys_arch_reboot()
21 } else if (type == SYS_REBOOT_WARM) { in sys_arch_reboot()
30 void __weak sys_arch_reboot(int type) in sys_arch_reboot() argument
33 ARG_UNUSED(type); in sys_arch_reboot()
/Zephyr-latest/tests/posix/threads_ext/src/
Dmain.c72 int type; in ZTEST() local
79 zassert_equal(EINVAL, pthread_mutexattr_gettype(&attr, &type)); in ZTEST()
82 zassert_equal(EINVAL, pthread_mutexattr_gettype(NULL, &type)); in ZTEST()
87 zassert_ok(pthread_mutexattr_gettype(&attr, &type)); in ZTEST()
88 zassert_equal(type, PTHREAD_MUTEX_DEFAULT); in ZTEST()
94 int type; in ZTEST() local
112 zassert_ok(pthread_mutexattr_gettype(&attr, &type)); in ZTEST()
113 zassert_equal(type, PTHREAD_MUTEX_DEFAULT); in ZTEST()
116 zassert_ok(pthread_mutexattr_gettype(&attr, &type)); in ZTEST()
117 zassert_equal(type, PTHREAD_MUTEX_NORMAL); in ZTEST()
[all …]
/Zephyr-latest/subsys/sensing/
Dsensing_sensor.c34 int sensing_sensor_get_reporters(const struct device *dev, int type, in sensing_sensor_get_reporters() argument
42 if (type == sensor->conns[i].source->info->type in sensing_sensor_get_reporters()
43 || type == SENSING_SENSOR_TYPE_ALL) { in sensing_sensor_get_reporters()
52 int sensing_sensor_get_reporters_count(const struct device *dev, int type) in sensing_sensor_get_reporters_count() argument
58 if (type == sensor->conns[i].source->info->type in sensing_sensor_get_reporters_count()
59 || type == SENSING_SENSOR_TYPE_ALL) { in sensing_sensor_get_reporters_count()
/Zephyr-latest/samples/bluetooth/hci_uart/src/
Dmain.c74 static bool valid_type(uint8_t type) in valid_type() argument
76 return (type == H4_CMD) | (type == H4_ACL) | (type == H4_ISO); in valid_type()
80 static uint32_t get_len(const uint8_t *hdr_buf, uint8_t type) in get_len() argument
82 switch (type) { in get_len()
91 LOG_ERR("Invalid type: %u", type); in get_len()
97 static int hdr_len(uint8_t type) in hdr_len() argument
99 switch (type) { in hdr_len()
107 LOG_ERR("Invalid type: %u", type); in hdr_len()
117 static uint8_t type; in rx_isr() local
126 read = h4_read(hci_uart_dev, &type, sizeof(type)); in rx_isr()
[all …]
/Zephyr-latest/subsys/net/l2/virtual/
Dvirtual_mgmt.c25 enum virtual_interface_config_type type; in virtual_interface_set_config() local
47 type = VIRTUAL_INTERFACE_CONFIG_TYPE_PEER_ADDRESS; in virtual_interface_set_config()
56 type = VIRTUAL_INTERFACE_CONFIG_TYPE_MTU; in virtual_interface_set_config()
63 type = VIRTUAL_INTERFACE_CONFIG_TYPE_LINK_TYPE; in virtual_interface_set_config()
68 return api->set_config(iface, type, &config); in virtual_interface_set_config()
89 enum virtual_interface_config_type type; in virtual_interface_get_config() local
105 type = VIRTUAL_INTERFACE_CONFIG_TYPE_PEER_ADDRESS; in virtual_interface_get_config()
107 ret = api->get_config(iface, type, &config); in virtual_interface_get_config()
117 type = VIRTUAL_INTERFACE_CONFIG_TYPE_MTU; in virtual_interface_get_config()
119 ret = api->get_config(iface, type, &config); in virtual_interface_get_config()
[all …]
/Zephyr-latest/include/zephyr/usb/
Dusbd_msg.h84 enum usbd_msg_type type; member
99 static inline const char *usbd_msg_type_string(const enum usbd_msg_type type) in usbd_msg_type_string() argument
101 if (type >= 0 && type < USBD_MSG_MAX_NUMBER) { in usbd_msg_type_string()
102 return usbd_msg_type_list[type]; in usbd_msg_type_string()
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_get_type/src/
Dmain.c77 int type; in ZTEST() local
85 type = params_vector->type; in ZTEST()
89 returned_key = bt_keys_get_type(type, id, addr); in ZTEST()
96 zassert_true(returned_key->keys == type, in ZTEST()
116 int type = BT_KEYS_IRK; in ZTEST() local
120 returned_key = bt_keys_get_type(type, id, addr); in ZTEST()
139 int type; in ZTEST() local
147 type = params_vector->type; in ZTEST()
151 returned_key = bt_keys_get_type(type, id, addr); in ZTEST()
/Zephyr-latest/tests/bluetooth/addr/src/
Dtest_bt_addr_le_eq.c12 bt_addr_le_t a = {.type = 0, .a = {{0, 0, 0, 0, 0, 0}}}; in ZTEST()
20 bt_addr_le_t a = {.type = 1, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST()
28 bt_addr_le_t a = {.type = 0, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST()
32 a.type = 1; in ZTEST()
38 bt_addr_le_t a = {.type = 0, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST()
48 bt_addr_le_t a = {.type = 0, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST()
64 a.type = 1; in ZTEST()
65 b.type = 1; in ZTEST()
74 bt_addr_le_t a = {.type = 0, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST()

12345678910>>...82