Home
last modified time | relevance | path

Searched refs:obj (Results 26 – 50 of 147) sorted by relevance

123456

/Zephyr-latest/lib/os/
Dfdtable.c31 void *obj; member
104 fdtable[fd].obj = NULL; in z_fd_unref()
180 return entry->obj; in zvfs_get_fd_obj()
183 static int z_get_fd_by_obj_and_vtable(void *obj, const struct fd_op_vtable *vtable) in z_get_fd_by_obj_and_vtable() argument
188 if (fdtable[fd].obj == obj && fdtable[fd].vtable == vtable) { in z_get_fd_by_obj_and_vtable()
197 bool zvfs_get_obj_lock_and_cond(void *obj, const struct fd_op_vtable *vtable, struct k_mutex **lock, in zvfs_get_obj_lock_and_cond() argument
203 fd = z_get_fd_by_obj_and_vtable(obj, vtable); in zvfs_get_obj_lock_and_cond()
237 return entry->obj; in zvfs_get_fd_obj_and_vtable()
250 fdtable[fd].obj = NULL; in zvfs_reserve_fd()
261 void zvfs_finalize_typed_fd(int fd, void *obj, const struct fd_op_vtable *vtable, uint32_t mode) in zvfs_finalize_typed_fd() argument
[all …]
Dmutex.c14 struct k_object *obj; in get_k_mutex() local
16 obj = k_object_find(mutex); in get_k_mutex()
17 if ((obj == NULL) || (obj->type != K_OBJ_SYS_MUTEX)) { in get_k_mutex()
21 return obj->data.mutex; in get_k_mutex()
/Zephyr-latest/include/zephyr/tracing/
Dtracing_macros.h17 #define SYS_PORT_TRACING_OBJ_INIT(obj_type, obj, ...) do { } while (false) argument
18 #define SYS_PORT_TRACING_OBJ_FUNC(obj_type, func, obj, ...) do { } while (false) argument
19 #define SYS_PORT_TRACING_OBJ_FUNC_ENTER(obj_type, func, obj, ...) do { } while (false) argument
20 #define SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(obj_type, func, obj, ...) do { } while (false) argument
21 #define SYS_PORT_TRACING_OBJ_FUNC_EXIT(obj_type, func, obj, ...) do { } while (false) argument
283 #define SYS_PORT_TRACING_OBJ_INIT(obj_type, obj, ...) \ argument
286 _SYS_PORT_TRACING_OBJ_INIT(obj_type)(obj, ##__VA_ARGS__)); \
288 _SYS_PORT_TRACKING_OBJ_INIT(obj_type)(obj, ##__VA_ARGS__)); \
301 #define SYS_PORT_TRACING_OBJ_FUNC(obj_type, func, obj, ...) \ argument
304 _SYS_PORT_TRACING_OBJ_FUNC(obj_type, func)(obj, ##__VA_ARGS__)); \
[all …]
/Zephyr-latest/tests/net/socket/offload_dispatcher/src/
Dmain.c46 static ssize_t offload_read(void *obj, void *buffer, size_t count) in offload_read() argument
48 ARG_UNUSED(obj); in offload_read()
55 static ssize_t offload_write(void *obj, const void *buffer, size_t count) in offload_write() argument
57 ARG_UNUSED(obj); in offload_write()
64 static int offload_close(void *obj) in offload_close() argument
66 struct test_socket_calls *ctx = obj; in offload_close()
73 static int offload_ioctl(void *obj, unsigned int request, va_list args) in offload_ioctl() argument
75 struct test_socket_calls *ctx = obj; in offload_ioctl()
85 static int offload_shutdown(void *obj, int how) in offload_shutdown() argument
87 struct test_socket_calls *ctx = obj; in offload_shutdown()
[all …]
/Zephyr-latest/lib/posix/options/
Dposix_internal.h92 static inline bool is_pthread_obj_initialized(uint32_t obj) in is_pthread_obj_initialized() argument
94 return (obj & PTHREAD_OBJ_MASK_INIT) != 0; in is_pthread_obj_initialized()
97 static inline uint32_t mark_pthread_obj_initialized(uint32_t obj) in mark_pthread_obj_initialized() argument
99 return obj | PTHREAD_OBJ_MASK_INIT; in mark_pthread_obj_initialized()
102 static inline uint32_t mark_pthread_obj_uninitialized(uint32_t obj) in mark_pthread_obj_uninitialized() argument
104 return obj & ~PTHREAD_OBJ_MASK_INIT; in mark_pthread_obj_uninitialized()
/Zephyr-latest/subsys/usb/usb_c/
Dusbc_prl.c572 static void prl_tx_phy_layer_reset_entry(void *obj) in prl_tx_phy_layer_reset_entry() argument
574 struct protocol_layer_tx_t *prl_tx = (struct protocol_layer_tx_t *)obj; in prl_tx_phy_layer_reset_entry()
591 static void prl_tx_wait_for_message_request_entry(void *obj) in prl_tx_wait_for_message_request_entry() argument
593 struct protocol_layer_tx_t *prl_tx = (struct protocol_layer_tx_t *)obj; in prl_tx_wait_for_message_request_entry()
604 static void prl_tx_wait_for_message_request_run(void *obj) in prl_tx_wait_for_message_request_run() argument
606 struct protocol_layer_tx_t *prl_tx = (struct protocol_layer_tx_t *)obj; in prl_tx_wait_for_message_request_run()
672 static void prl_tx_layer_reset_for_transmit_entry(void *obj) in prl_tx_layer_reset_for_transmit_entry() argument
674 struct protocol_layer_tx_t *prl_tx = (struct protocol_layer_tx_t *)obj; in prl_tx_layer_reset_for_transmit_entry()
708 static void prl_tx_wait_for_phy_response_entry(void *obj) in prl_tx_wait_for_phy_response_entry() argument
710 struct protocol_layer_tx_t *prl_tx = (struct protocol_layer_tx_t *)obj; in prl_tx_wait_for_phy_response_entry()
[all …]
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_net_mgmt.c298 static ssize_t net_mgmt_sock_read(void *obj, void *buffer, size_t count) in net_mgmt_sock_read() argument
300 return znet_mgmt_recvfrom(obj, buffer, count, 0, NULL, 0); in net_mgmt_sock_read()
303 static ssize_t net_mgmt_sock_write(void *obj, const void *buffer, in net_mgmt_sock_write() argument
306 return znet_mgmt_sendto(obj, buffer, count, 0, NULL, 0); in net_mgmt_sock_write()
309 static int net_mgmt_sock_ioctl(void *obj, unsigned int request, in net_mgmt_sock_ioctl() argument
316 static int net_mgmt_sock_bind(void *obj, const struct sockaddr *addr, in net_mgmt_sock_bind() argument
319 return znet_mgmt_bind(obj, addr, addrlen); in net_mgmt_sock_bind()
323 static int net_mgmt_sock_connect(void *obj, const struct sockaddr *addr, in net_mgmt_sock_connect() argument
332 static int net_mgmt_sock_listen(void *obj, int backlog) in net_mgmt_sock_listen() argument
337 static int net_mgmt_sock_accept(void *obj, struct sockaddr *addr, in net_mgmt_sock_accept() argument
[all …]
Dsockets_packet.c382 static ssize_t packet_sock_read_vmeth(void *obj, void *buffer, size_t count) in packet_sock_read_vmeth() argument
384 return zpacket_recvfrom_ctx(obj, buffer, count, 0, NULL, 0); in packet_sock_read_vmeth()
387 static ssize_t packet_sock_write_vmeth(void *obj, const void *buffer, in packet_sock_write_vmeth() argument
390 return zpacket_sendto_ctx(obj, buffer, count, 0, NULL, 0); in packet_sock_write_vmeth()
393 static int packet_sock_ioctl_vmeth(void *obj, unsigned int request, in packet_sock_ioctl_vmeth() argument
396 return sock_fd_op_vtable.fd_vtable.ioctl(obj, request, args); in packet_sock_ioctl_vmeth()
402 static int packet_sock_bind_vmeth(void *obj, const struct sockaddr *addr, in packet_sock_bind_vmeth() argument
405 return zpacket_bind_ctx(obj, addr, addrlen); in packet_sock_bind_vmeth()
409 static int packet_sock_connect_vmeth(void *obj, const struct sockaddr *addr, in packet_sock_connect_vmeth() argument
420 static int packet_sock_listen_vmeth(void *obj, int backlog) in packet_sock_listen_vmeth() argument
[all …]
Dsocketpair.c284 struct spair *obj[2] = {}; in z_impl_zsock_socketpair() local
314 obj[i] = spair_new(); in z_impl_zsock_socketpair()
315 if (!obj[i]) { in z_impl_zsock_socketpair()
322 swap32(&obj[0]->remote, &obj[1]->remote); in z_impl_zsock_socketpair()
325 sv[i] = obj[i]->remote; in z_impl_zsock_socketpair()
326 k_sem_give(&obj[0]->sem); in z_impl_zsock_socketpair()
335 spair_delete(obj[i]); in z_impl_zsock_socketpair()
402 static ssize_t spair_write(void *obj, const void *buffer, size_t count) in spair_write() argument
411 struct spair *const spair = (struct spair *)obj; in spair_write()
414 if (obj == NULL || buffer == NULL || count == 0) { in spair_write()
[all …]
Dsockets_can.c366 static ssize_t can_sock_read_vmeth(void *obj, void *buffer, size_t count) in can_sock_read_vmeth() argument
368 return zcan_recvfrom_ctx(obj, buffer, count, 0, NULL, 0); in can_sock_read_vmeth()
371 static ssize_t can_sock_write_vmeth(void *obj, const void *buffer, in can_sock_write_vmeth() argument
374 return zcan_sendto_ctx(obj, buffer, count, 0, NULL, 0); in can_sock_write_vmeth()
446 static int can_sock_close_vmeth(void *obj) in can_sock_close_vmeth() argument
450 ret = can_close_socket(obj); in can_sock_close_vmeth()
452 NET_DBG("Cannot detach net_context %p (%d)", obj, ret); in can_sock_close_vmeth()
461 static int can_sock_ioctl_vmeth(void *obj, unsigned int request, va_list args) in can_sock_ioctl_vmeth() argument
463 return sock_fd_op_vtable.fd_vtable.ioctl(obj, request, args); in can_sock_ioctl_vmeth()
469 static int can_sock_bind_vmeth(void *obj, const struct sockaddr *addr, in can_sock_bind_vmeth() argument
[all …]
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket_offload.c31 #define OBJ_TO_SD(obj) (((intptr_t)obj) - 1) argument
55 static int eswifi_socket_connect(void *obj, const struct sockaddr *addr, in eswifi_socket_connect() argument
58 intptr_t sock = OBJ_TO_SD(obj); in eswifi_socket_connect()
94 static int eswifi_socket_listen(void *obj, int backlog) in eswifi_socket_listen() argument
97 intptr_t sock = OBJ_TO_SD(obj); in eswifi_socket_listen()
117 static int __eswifi_socket_accept(void *obj, struct sockaddr *addr, in __eswifi_socket_accept() argument
120 intptr_t sock = OBJ_TO_SD(obj); in __eswifi_socket_accept()
145 static int eswifi_socket_accept(void *obj, struct sockaddr *addr, in eswifi_socket_accept() argument
155 sock = __eswifi_socket_accept(obj, addr, addrlen); in eswifi_socket_accept()
240 static int eswifi_socket_setsockopt(void *obj, int level, int optname, in eswifi_socket_setsockopt() argument
[all …]
/Zephyr-latest/drivers/serial/
Duart_ifx_cat1.c26 cyhal_uart_t obj; /* UART CYHAL object */ member
172 rec = cyhal_uart_getc(&data->obj, c, 0u); in ifx_cat1_uart_poll_in()
181 (void) cyhal_uart_putc(&data->obj, (uint32_t)c); in ifx_cat1_uart_poll_out()
187 uint32_t status = Cy_SCB_UART_GetRxFifoStatus(data->obj.base); in ifx_cat1_uart_err_check()
223 result = cyhal_uart_configure(&data->obj, &uart_cfg); in ifx_cat1_uart_configure()
227 result = cyhal_uart_set_baud(&data->obj, cfg->baudrate, NULL); in ifx_cat1_uart_configure()
231 data->obj.pin_cts = NC; in ifx_cat1_uart_configure()
232 data->obj.pin_rts = NC; in ifx_cat1_uart_configure()
236 Cy_SCB_UART_EnableCts(data->obj.base); in ifx_cat1_uart_configure()
279 (void)cyhal_uart_write(&data->obj, (uint8_t *) tx_data, &_size); in ifx_cat1_uart_fifo_fill()
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_ots.c73 struct object *obj; in register_object() local
96 obj = get_object(); in register_object()
97 if (!obj) { in register_object()
103 memcpy(obj->name, cp->name, cp->name_len); in register_object()
104 obj_data.object = obj; in register_object()
122 memset(obj, 0, sizeof(*obj)); in register_object()
151 struct object *obj; in ots_obj_created() local
171 obj = &objects[obj_index]; in ots_obj_created()
172 if (obj->in_use) { in ots_obj_created()
176 obj->in_use = false; in ots_obj_created()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_ifx_cat1.c46 cyhal_i2c_t obj; member
103 (void)cyhal_i2c_abort_async(&data->obj); in ifx_master_event_handler()
123 data->obj.context.slaveTxBufferIdx = 0; in ifx_master_event_handler()
124 data->obj.context.slaveTxBufferCnt = 0; in ifx_master_event_handler()
125 data->obj.context.slaveTxBufferSize = 1; in ifx_master_event_handler()
126 data->obj.context.slaveTxBuffer = &data->i2c_target_wr_byte; in ifx_master_event_handler()
134 data->obj.context.slaveTxBufferIdx = 0; in ifx_master_event_handler()
135 data->obj.context.slaveTxBufferCnt = 0; in ifx_master_event_handler()
136 data->obj.context.slaveTxBufferSize = 1; in ifx_master_event_handler()
137 data->obj.context.slaveTxBuffer = &data->i2c_target_wr_byte; in ifx_master_event_handler()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dkobject.h148 bool k_object_is_valid(const void *obj, enum k_objects otype);
187 static inline bool k_object_is_valid(const void *obj, enum k_objects otype) in k_object_is_valid() argument
189 ARG_UNUSED(obj); in k_object_is_valid()
252 void k_object_free(void *obj);
277 static inline void k_object_free(void *obj) in k_object_free() argument
279 ARG_UNUSED(obj); in k_object_free()
/Zephyr-latest/subsys/bluetooth/audio/
Dmpl.c314 static struct obj_t obj = { variable
331 net_buf_simple_reset(obj.content); in setup_icon_object()
338 net_buf_simple_add_u8(obj.content, k); in setup_icon_object()
341 return obj.content->len; in setup_icon_object()
349 net_buf_simple_reset(obj.content); in setup_segments_object()
362 if (tot_size + seg_size > obj.content->size) { in setup_segments_object()
366 net_buf_simple_add_u8(obj.content, seg->name_len); in setup_segments_object()
367 net_buf_simple_add_mem(obj.content, seg->name, in setup_segments_object()
369 net_buf_simple_add_le32(obj.content, seg->pos); in setup_segments_object()
375 LOG_HEXDUMP_DBG(obj.content->data, obj.content->len, "Segments Object"); in setup_segments_object()
[all …]
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots.c157 struct bt_gatt_ots_object *obj = NULL; in ots_obj_name_write() local
188 rc = bt_gatt_ots_obj_manager_first_obj_get(ots->obj_manager, &obj); in ots_obj_name_write()
190 if (obj != ots->cur_obj && strcmp(name, obj->metadata.name) == 0) { in ots_obj_name_write()
194 rc = bt_gatt_ots_obj_manager_next_obj_get(ots->obj_manager, obj, &obj); in ots_obj_name_write()
300 struct bt_gatt_ots_object **obj) in bt_ots_obj_add_internal() argument
357 if (obj) { in bt_ots_obj_add_internal()
358 *obj = new_obj; in bt_ots_obj_add_internal()
368 struct bt_gatt_ots_object *obj; in bt_ots_obj_add() local
370 err = bt_ots_obj_add_internal(ots, NULL, param, &obj); in bt_ots_obj_add()
375 name_len = strlen(obj->metadata.name); in bt_ots_obj_add()
[all …]
Dots_obj_manager.c62 struct bt_gatt_ots_object **obj) in bt_gatt_ots_obj_manager_first_obj_get() argument
74 *obj = &first_item->val; in bt_gatt_ots_obj_manager_first_obj_get()
81 struct bt_gatt_ots_object **obj) in bt_gatt_ots_obj_manager_last_obj_get() argument
93 *obj = &last_item->val; in bt_gatt_ots_obj_manager_last_obj_get()
202 int bt_gatt_ots_obj_manager_obj_delete(struct bt_gatt_ots_object *obj) in bt_gatt_ots_obj_manager_obj_delete() argument
206 item = CONTAINER_OF(obj, struct bt_gatt_ots_pool_item, val); in bt_gatt_ots_obj_manager_obj_delete()
213 obj->id == OTS_OBJ_ID_DIR_LIST) { in bt_gatt_ots_obj_manager_obj_delete()
225 struct bt_gatt_ots_object *obj) in bt_gatt_ots_obj_manager_obj_contains() argument
229 item = CONTAINER_OF(obj, struct bt_gatt_ots_pool_item, val); in bt_gatt_ots_obj_manager_obj_contains()
/Zephyr-latest/drivers/clock_control/
Dclock_control_ifx_cat1.c135 cyhal_clock_t obj; /* Hal Clock object */ member
322 ret_obj = &clock_info_table[i].obj; in _get_hal_obj_from_ord()
394 clock_obj = &clock_info_table[INFINEON_CAT1_CLOCK_IMO].obj; in clock_control_infineon_cat1_init()
400 clock_obj = &clock_info_table[INFINEON_CAT1_CLOCK_IHO].obj; in clock_control_infineon_cat1_init()
412 clock_obj = &clock_info_table[INFINEON_CAT1_CLOCK_PATHMUX0].obj; in clock_control_infineon_cat1_init()
422 clock_obj = &clock_info_table[INFINEON_CAT1_CLOCK_PATHMUX1].obj; in clock_control_infineon_cat1_init()
432 clock_obj = &clock_info_table[INFINEON_CAT1_CLOCK_PATHMUX2].obj; in clock_control_infineon_cat1_init()
442 clock_obj = &clock_info_table[INFINEON_CAT1_CLOCK_PATHMUX3].obj; in clock_control_infineon_cat1_init()
452 clock_obj = &clock_info_table[INFINEON_CAT1_CLOCK_PATHMUX4].obj; in clock_control_infineon_cat1_init()
462 clock_obj = &clock_info_table[INFINEON_CAT1_CLOCK_FLL0].obj; in clock_control_infineon_cat1_init()
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_senml_json.c115 } obj; member
514 obj_payload = &fd->json.obj.float_bn_t_obj; in json_float_object_write()
515 fd->json.obj.float_bn_t_obj.base_name = fd->bn_string; in json_float_object_write()
516 fd->json.obj.float_bn_t_obj.name = fd->name_string; in json_float_object_write()
517 fd->json.obj.float_bn_t_obj.val_float.start = pt_buffer; in json_float_object_write()
518 fd->json.obj.float_bn_t_obj.val_float.length = float_string_length; in json_float_object_write()
519 fd->json.obj.float_bn_t_obj.base_time.start = fd->timestamp_buffer; in json_float_object_write()
520 fd->json.obj.float_bn_t_obj.base_time.length = fd->timestamp_length; in json_float_object_write()
524 obj_payload = &fd->json.obj.float_bn_obj; in json_float_object_write()
525 fd->json.obj.float_bn_obj.base_name = fd->bn_string; in json_float_object_write()
[all …]
Dlwm2m_registry.c104 void lwm2m_register_obj(struct lwm2m_engine_obj *obj) in lwm2m_register_obj() argument
112 access_control_add_obj(obj->obj_id, server_obj_inst_id); in lwm2m_register_obj()
115 sys_slist_append(&engine_obj_list, &obj->node); in lwm2m_register_obj()
119 void lwm2m_unregister_obj(struct lwm2m_engine_obj *obj) in lwm2m_unregister_obj() argument
123 access_control_remove_obj(obj->obj_id); in lwm2m_unregister_obj()
125 engine_remove_observer_by_id(obj->obj_id, -1); in lwm2m_unregister_obj()
126 sys_slist_find_and_remove(&engine_obj_list, &obj->node); in lwm2m_unregister_obj()
132 struct lwm2m_engine_obj *obj; in get_engine_obj() local
134 SYS_SLIST_FOR_EACH_CONTAINER(&engine_obj_list, obj, node) { in get_engine_obj()
135 if (obj->obj_id == obj_id) { in get_engine_obj()
[all …]
/Zephyr-latest/include/zephyr/arch/x86/ia32/scripts/
Dish_aon.ld8 KEEP(*_intel_hal.a:objfile.c.obj(.##lsect)) \
9 KEEP(*_intel_hal.a:objfile.c.obj(.##lsect##.*))
12 KEEP(*_intel_hal.a:objfile.S.obj(.##lsect)) \
13 KEEP(*_intel_hal.a:objfile.S.obj(.##lsect##.*))
/Zephyr-latest/kernel/
Duserspace.c123 struct k_object *obj = k_object_find(stack); in z_priv_stack_find() local
125 __ASSERT(obj != NULL, "stack object not found"); in z_priv_stack_find()
126 __ASSERT(obj->type == K_OBJ_THREAD_STACK_ELEMENT, in z_priv_stack_find()
129 return obj->data.stack_data->priv; in z_priv_stack_find()
177 extern struct k_object *z_object_gperf_find(const void *obj);
225 static struct dyn_obj *dyn_object_find(const void *obj) in dyn_object_find() argument
238 if (node->kobj.name == obj) { in dyn_object_find()
387 struct k_object *obj = dynamic_object_create(K_OBJ_ANY, align, size); in k_object_create_dynamic_aligned() local
389 if (obj == NULL) { in k_object_create_dynamic_aligned()
393 return obj; in k_object_create_dynamic_aligned()
[all …]
Dfutex.c17 struct k_object *obj; in k_futex_find_data() local
19 obj = k_object_find(futex); in k_futex_find_data()
20 if ((obj == NULL) || (obj->type != K_OBJ_FUTEX)) { in k_futex_find_data()
24 return obj->data.futex_data; in k_futex_find_data()
/Zephyr-latest/scripts/build/
Dgen_offset_header.py21 def get_symbol_table(obj): argument
22 for section in obj.iter_sections():
41 obj = ELFFile(input_file)
42 for sym in get_symbol_table(obj).iter_symbols():

123456