Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 147) sorted by relevance

123456

/Zephyr-latest/subsys/usb/usb_c/
Dusbc_pe_src_states_internal.h23 void pe_src_startup_entry(void *obj);
24 void pe_src_startup_run(void *obj);
25 void pe_src_startup_exit(void *obj);
30 void pe_src_discovery_entry(void *obj);
31 void pe_src_discovery_run(void *obj);
32 void pe_src_discovery_exit(void *obj);
37 void pe_src_send_capabilities_entry(void *obj);
38 void pe_src_send_capabilities_run(void *obj);
39 void pe_src_send_capabilities_exit(void *obj);
44 void pe_src_negotiate_capability_entry(void *obj);
[all …]
Dusbc_pe_snk_states_internal.h23 void pe_snk_startup_entry(void *obj);
24 void pe_snk_startup_run(void *obj);
25 void pe_snk_discovery_entry(void *obj);
30 void pe_snk_discovery_run(void *obj);
35 void pe_snk_wait_for_capabilities_entry(void *obj);
36 void pe_snk_wait_for_capabilities_run(void *obj);
37 void pe_snk_wait_for_capabilities_exit(void *obj);
42 void pe_snk_evaluate_capability_entry(void *obj);
47 void pe_snk_select_capability_entry(void *obj);
48 void pe_snk_select_capability_run(void *obj);
[all …]
Dusbc_tc_src_states_internal.h13 void tc_unattached_src_entry(void *obj);
14 void tc_unattached_src_run(void *obj);
19 void tc_unattached_wait_src_entry(void *obj);
20 void tc_unattached_wait_src_run(void *obj);
21 void tc_unattached_wait_src_exit(void *obj);
26 void tc_attach_wait_src_entry(void *obj);
27 void tc_attach_wait_src_run(void *obj);
28 void tc_attach_wait_src_exit(void *obj);
33 void tc_attached_src_entry(void *obj);
34 void tc_attached_src_run(void *obj);
[all …]
Dusbc_tc_snk_states_internal.h13 void tc_unattached_snk_entry(void *obj);
14 void tc_unattached_snk_run(void *obj);
19 void tc_attach_wait_snk_entry(void *obj);
20 void tc_attach_wait_snk_run(void *obj);
21 void tc_attach_wait_snk_exit(void *obj);
26 void tc_attached_snk_entry(void *obj);
27 void tc_attached_snk_run(void *obj);
28 void tc_attached_snk_exit(void *obj);
33 void tc_cc_rd_entry(void *obj);
Dusbc_pe_src_states.c95 void pe_src_startup_entry(void *obj) in pe_src_startup_entry() argument
97 struct policy_engine *pe = (struct policy_engine *)obj; in pe_src_startup_entry()
117 void pe_src_startup_run(void *obj) in pe_src_startup_run() argument
119 struct policy_engine *pe = (struct policy_engine *)obj; in pe_src_startup_run()
134 void pe_src_discovery_entry(void *obj) in pe_src_discovery_entry() argument
136 struct policy_engine *pe = (struct policy_engine *)obj; in pe_src_discovery_entry()
147 void pe_src_discovery_run(void *obj) in pe_src_discovery_run() argument
149 struct policy_engine *pe = (struct policy_engine *)obj; in pe_src_discovery_run()
166 void pe_src_discovery_exit(void *obj) in pe_src_discovery_exit() argument
168 struct policy_engine *pe = (struct policy_engine *)obj; in pe_src_discovery_exit()
[all …]
Dusbc_tc_src_states.c30 void tc_unattached_src_entry(void *obj) in tc_unattached_src_entry() argument
35 void tc_unattached_src_run(void *obj) in tc_unattached_src_run() argument
37 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_src_run()
71 void tc_unattached_wait_src_entry(void *obj) in tc_unattached_wait_src_entry() argument
73 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_wait_src_entry()
87 void tc_unattached_wait_src_run(void *obj) in tc_unattached_wait_src_run() argument
89 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_wait_src_run()
98 void tc_unattached_wait_src_exit(void *obj) in tc_unattached_wait_src_exit() argument
100 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_wait_src_exit()
122 void tc_attach_wait_src_entry(void *obj) in tc_attach_wait_src_entry() argument
[all …]
Dusbc_pe_snk_states.c68 void pe_snk_startup_entry(void *obj) in pe_snk_startup_entry() argument
70 struct policy_engine *pe = (struct policy_engine *)obj; in pe_snk_startup_entry()
90 void pe_snk_startup_run(void *obj) in pe_snk_startup_run() argument
92 struct policy_engine *pe = (struct policy_engine *)obj; in pe_snk_startup_run()
107 void pe_snk_discovery_entry(void *obj) in pe_snk_discovery_entry() argument
115 void pe_snk_discovery_run(void *obj) in pe_snk_discovery_run() argument
117 struct policy_engine *pe = (struct policy_engine *)obj; in pe_snk_discovery_run()
134 void pe_snk_wait_for_capabilities_entry(void *obj) in pe_snk_wait_for_capabilities_entry() argument
136 struct policy_engine *pe = (struct policy_engine *)obj; in pe_snk_wait_for_capabilities_entry()
147 void pe_snk_wait_for_capabilities_run(void *obj) in pe_snk_wait_for_capabilities_run() argument
[all …]
Dusbc_tc_snk_states.c81 void tc_unattached_snk_entry(void *obj) in tc_unattached_snk_entry() argument
83 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_snk_entry()
97 void tc_unattached_snk_run(void *obj) in tc_unattached_snk_run() argument
99 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_unattached_snk_run()
114 void tc_attach_wait_snk_entry(void *obj) in tc_attach_wait_snk_entry() argument
116 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_attach_wait_snk_entry()
132 void tc_attach_wait_snk_run(void *obj) in tc_attach_wait_snk_run() argument
134 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_attach_wait_snk_run()
188 void tc_attach_wait_snk_exit(void *obj) in tc_attach_wait_snk_exit() argument
190 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_attach_wait_snk_exit()
[all …]
/Zephyr-latest/tests/lib/fdtable/src/
Dmain.c41 int *obj; in ZTEST() local
42 obj = zvfs_get_fd_obj_and_vtable(fd, &vtable, in ZTEST()
45 zassert_is_null(obj, "obj is not NULL"); in ZTEST()
59 int *obj = zvfs_get_fd_obj(fd, vtable, err); /* function being tested */ in ZTEST() local
62 zassert_is_null(obj, "obj not is NULL"); in ZTEST()
64 obj = (void *)1; in ZTEST()
68 zvfs_finalize_fd(fd, obj, vtable); in ZTEST()
70 obj = zvfs_get_fd_obj(-1, vtable, err); /* function being tested */ in ZTEST()
72 zassert_equal_ptr(obj, NULL, "obj is not NULL when fd < 0"); in ZTEST()
76 obj = zvfs_get_fd_obj(fd, vtable2, err); /* function being tested */ in ZTEST()
[all …]
/Zephyr-latest/tests/lib/smf/src/
Dtest_lib_hierarchical_5_ancestor_smf.c116 static void p05_entry(void *obj) in p05_entry() argument
118 struct test_object *o = TEST_OBJECT(obj); in p05_entry()
126 static void p05_run(void *obj) in p05_run() argument
128 struct test_object *o = TEST_OBJECT(obj); in p05_run()
137 smf_set_state(SMF_CTX(obj), &test_states[C]); in p05_run()
140 static void p05_exit(void *obj) in p05_exit() argument
142 struct test_object *o = TEST_OBJECT(obj); in p05_exit()
152 static void p04_entry(void *obj) in p04_entry() argument
154 struct test_object *o = TEST_OBJECT(obj); in p04_entry()
164 static void p04_run(void *obj) in p04_run() argument
[all …]
Dtest_lib_hierarchical_smf.c118 static void parent_ab_entry(void *obj) in parent_ab_entry() argument
120 struct test_object *o = TEST_OBJECT(obj); in parent_ab_entry()
127 smf_set_terminate(obj, -1); in parent_ab_entry()
134 static void parent_ab_run(void *obj) in parent_ab_run() argument
136 struct test_object *o = TEST_OBJECT(obj); in parent_ab_run()
144 smf_set_terminate(obj, -1); in parent_ab_run()
150 smf_set_state(SMF_CTX(obj), &test_states[STATE_B]); in parent_ab_run()
153 static void parent_ab_exit(void *obj) in parent_ab_exit() argument
155 struct test_object *o = TEST_OBJECT(obj); in parent_ab_exit()
163 smf_set_terminate(obj, -1); in parent_ab_exit()
[all …]
Dtest_lib_flat_smf.c81 static void state_a_entry(void *obj) in state_a_entry() argument
83 struct test_object *o = TEST_OBJECT(obj); in state_a_entry()
90 smf_set_terminate(obj, -1); in state_a_entry()
97 static void state_a_run(void *obj) in state_a_run() argument
99 struct test_object *o = TEST_OBJECT(obj); in state_a_run()
107 smf_set_state(SMF_CTX(obj), &test_states[STATE_B]); in state_a_run()
110 static void state_a_exit(void *obj) in state_a_exit() argument
112 struct test_object *o = TEST_OBJECT(obj); in state_a_exit()
121 static void state_b_entry(void *obj) in state_b_entry() argument
123 struct test_object *o = TEST_OBJECT(obj); in state_b_entry()
[all …]
Dtest_lib_self_transition_smf.c157 static void root_entry(void *obj) in root_entry() argument
159 struct test_object *o = TEST_OBJECT(obj); in root_entry()
168 static void root_run(void *obj) in root_run() argument
170 struct test_object *o = TEST_OBJECT(obj); in root_run()
181 static void root_exit(void *obj) in root_exit() argument
183 struct test_object *o = TEST_OBJECT(obj); in root_exit()
191 static void parent_ab_entry(void *obj) in parent_ab_entry() argument
193 struct test_object *o = TEST_OBJECT(obj); in parent_ab_entry()
200 smf_set_terminate(obj, -1); in parent_ab_entry()
207 static void parent_ab_run(void *obj) in parent_ab_run() argument
[all …]
/Zephyr-latest/samples/subsys/smf/hsm_psicc2/src/
Dhsm_psicc2_thread.c49 struct s_object *obj = (struct s_object *)o; in initial_entry() local
51 obj->foo = false; in initial_entry()
73 struct s_object *obj = (struct s_object *)o; in s_run() local
75 switch (obj->event.event_id) { in s_run()
78 smf_set_state(SMF_CTX(obj), &demo_states[STATE_S11]); in s_run()
81 if (obj->foo) { in s_run()
83 obj->foo = false; in s_run()
87 smf_set_handled(SMF_CTX(obj)); in s_run()
91 smf_set_terminate(SMF_CTX(obj), -1); in s_run()
109 struct s_object *obj = (struct s_object *)o; in s1_run() local
[all …]
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_dir_list.c25 static size_t dir_list_object_record_size(const struct bt_gatt_ots_object *obj) in dir_list_object_record_size() argument
40 obj_name_len = strlen(obj->metadata.name); in dir_list_object_record_size()
49 if (obj->metadata.type.uuid.type == BT_UUID_TYPE_16) { in dir_list_object_record_size()
56 len += sizeof(obj->metadata.size.cur); in dir_list_object_record_size()
59 len += sizeof(obj->metadata.props); in dir_list_object_record_size()
69 static void dir_list_object_encode(const struct bt_gatt_ots_object *obj, in dir_list_object_encode() argument
79 if (obj->metadata.type.uuid.type == BT_UUID_TYPE_128) { in dir_list_object_encode()
87 net_buf_simple_add_le48(net_buf, obj->id); in dir_list_object_encode()
90 obj_name_len = strlen(obj->metadata.name); in dir_list_object_encode()
96 net_buf_simple_add_mem(net_buf, obj->metadata.name, obj_name_len); in dir_list_object_encode()
[all …]
Dots_obj_manager_internal.h17 struct bt_gatt_ots_object **obj);
20 struct bt_gatt_ots_object **obj);
34 struct bt_gatt_ots_object **obj);
37 struct bt_gatt_ots_object **obj);
39 int bt_gatt_ots_obj_manager_obj_delete(struct bt_gatt_ots_object *obj);
41 bool bt_gatt_ots_obj_manager_obj_contains(void *obj_manager, struct bt_gatt_ots_object *obj);
/Zephyr-latest/subsys/net/lib/sockets/
Dsocket_dispatcher.c55 void *obj; in sock_dispatch_socket() local
63 obj = zvfs_get_fd_obj_and_vtable(new_fd, in sock_dispatch_socket()
66 if (obj == NULL) { in sock_dispatch_socket()
72 zvfs_finalize_typed_fd(fd, obj, (const struct fd_op_vtable *)vtable, ZVFS_MODE_IFSOCK); in sock_dispatch_socket()
140 static ssize_t sock_dispatch_read_vmeth(void *obj, void *buffer, size_t count) in sock_dispatch_read_vmeth() argument
146 fd = sock_dispatch_default(obj); in sock_dispatch_read_vmeth()
159 static ssize_t sock_dispatch_write_vmeth(void *obj, const void *buffer, in sock_dispatch_write_vmeth() argument
166 fd = sock_dispatch_default(obj); in sock_dispatch_write_vmeth()
179 static int sock_dispatch_ioctl_vmeth(void *obj, unsigned int request, in sock_dispatch_ioctl_vmeth() argument
191 fd = sock_dispatch_default(obj); in sock_dispatch_ioctl_vmeth()
[all …]
Dsockets_internal.h40 bool net_socket_is_tls(void *obj);
42 static inline bool net_socket_is_tls(void *obj) in net_socket_is_tls() argument
44 ARG_UNUSED(obj); in net_socket_is_tls()
58 int (*shutdown)(void *obj, int how);
59 int (*bind)(void *obj, const struct sockaddr *addr, socklen_t addrlen);
60 int (*connect)(void *obj, const struct sockaddr *addr,
62 int (*listen)(void *obj, int backlog);
63 int (*accept)(void *obj, struct sockaddr *addr, socklen_t *addrlen);
64 ssize_t (*sendto)(void *obj, const void *buf, size_t len, int flags,
66 ssize_t (*recvfrom)(void *obj, void *buf, size_t max_len, int flags,
[all …]
Dsocket_obj_core.c31 static int sock_obj_core_stats_reset(struct k_obj_core *obj);
44 static void set_fields(struct sock_obj *obj, int fd, in set_fields() argument
48 obj->fd = fd; in set_fields()
49 obj->socket_family = family; in set_fields()
50 obj->socket_type = type; in set_fields()
51 obj->socket_proto = proto; in set_fields()
52 obj->reg = reg; in set_fields()
53 obj->creator = k_current_get(); in set_fields()
54 obj->create_time = sys_clock_tick_get(); in set_fields()
122 struct sock_obj *obj = NULL; in sock_obj_core_alloc() local
[all …]
/Zephyr-latest/include/zephyr/sys/
Dfdtable.h60 ssize_t (*read)(void *obj, void *buf, size_t sz);
61 ssize_t (*read_offs)(void *obj, void *buf, size_t sz, size_t offset);
64 ssize_t (*write)(void *obj, const void *buf, size_t sz);
65 ssize_t (*write_offs)(void *obj, const void *buf, size_t sz, size_t offset);
68 int (*close)(void *obj);
69 int (*close2)(void *obj, int fd);
71 int (*ioctl)(void *obj, unsigned int request, va_list args);
102 void zvfs_finalize_typed_fd(int fd, void *obj, const struct fd_op_vtable *vtable, uint32_t mode);
114 static inline void zvfs_finalize_fd(int fd, void *obj, const struct fd_op_vtable *vtable) in zvfs_finalize_fd() argument
116 zvfs_finalize_typed_fd(fd, obj, vtable, ZVFS_MODE_UNSPEC); in zvfs_finalize_fd()
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dsockets.c33 struct sock_obj *obj; in walk_sockets() local
37 obj = CONTAINER_OF(obj_core, struct sock_obj, obj_core); in walk_sockets()
39 if (k_thread_name_copy(obj->creator, thread_name, in walk_sockets()
42 obj->creator); in walk_sockets()
47 ret = k_obj_core_stats_raw(K_OBJ_CORE(obj), in walk_sockets()
53 if (obj->fd < 0) { in walk_sockets()
57 lifetime = obj->create_time; in walk_sockets()
63 obj->create_time); in walk_sockets()
64 snprintk(fd, sizeof(fd), "%d", obj->fd); in walk_sockets()
69 thread_name, obj->reg->name, in walk_sockets()
[all …]
/Zephyr-latest/scripts/build/
Dcheck_init_priorities_test.py85 obj = check_init_priorities.ZephyrInitLevels("")
86 obj._elf = mock_elf
87 obj._load_objects()
89 self.assertDictEqual(obj._objects, {0xaa: ("a", 4, 1), 0xbb: ("b", 8, 2)})
129 obj = check_init_priorities.ZephyrInitLevels("")
130 obj._elf = mock_elf
131 obj._load_level_addr()
133 self.assertDictEqual(obj._init_level_addr, {
141 self.assertEqual(obj._init_level_end, 0x66)
145 obj = check_init_priorities.ZephyrInitLevels("")
[all …]
/Zephyr-latest/samples/subsys/smf/smf_calculator/src/
Dsmf_calculator_thread.c182 static void on_entry(void *obj) in on_entry() argument
184 struct s_object *s = (struct s_object *)obj; in on_entry()
194 static void on_run(void *obj) in on_run() argument
196 struct s_object *s = (struct s_object *)obj; in on_run()
210 static void ready_run(void *obj) in ready_run() argument
212 struct s_object *s = (struct s_object *)obj; in ready_run()
238 static void result_entry(void *obj) in result_entry() argument
244 static void result_run(void *obj) in result_run() argument
250 static void begin_entry(void *obj) in begin_entry() argument
256 static void begin_run(void *obj) in begin_run() argument
[all …]
/Zephyr-latest/kernel/
Duserspace_handler.c12 static struct k_object *validate_kernel_object(const void *obj, in validate_kernel_object() argument
19 ko = k_object_find(obj); in validate_kernel_object()
27 k_object_dump_error(ret, obj, ko, otype); in validate_kernel_object()
35 static ALWAYS_INLINE struct k_object *validate_any_object(const void *obj) in validate_any_object() argument
37 return validate_kernel_object(obj, K_OBJ_ANY, _OBJ_INIT_ANY); in validate_any_object()
40 bool k_object_is_valid(const void *obj, enum k_objects otype) in k_object_is_valid() argument
44 ko = validate_kernel_object(obj, otype, _OBJ_INIT_TRUE); in k_object_is_valid()
/Zephyr-latest/lib/os/zvfs/
Dzvfs_eventfd.c28 static ssize_t zvfs_eventfd_rw_op(void *obj, void *buf, size_t sz,
61 (*pev)->obj = &efd->read_sig; in zvfs_eventfd_poll_prepare()
74 (*pev)->obj = &efd->write_sig; in zvfs_eventfd_poll_prepare()
162 static ssize_t zvfs_eventfd_read_op(void *obj, void *buf, size_t sz) in zvfs_eventfd_read_op() argument
164 return zvfs_eventfd_rw_op(obj, buf, sz, zvfs_eventfd_read_locked); in zvfs_eventfd_read_op()
167 static ssize_t zvfs_eventfd_write_op(void *obj, const void *buf, size_t sz) in zvfs_eventfd_write_op() argument
169 return zvfs_eventfd_rw_op(obj, (zvfs_eventfd_t *)buf, sz, zvfs_eventfd_write_locked); in zvfs_eventfd_write_op()
172 static int zvfs_eventfd_close_op(void *obj) in zvfs_eventfd_close_op() argument
179 struct zvfs_eventfd *efd = (struct zvfs_eventfd *)obj; in zvfs_eventfd_close_op()
187 err = (int)zvfs_get_obj_lock_and_cond(obj, &zvfs_eventfd_fd_vtable, &lock, &cond); in zvfs_eventfd_close_op()
[all …]

123456