Home
last modified time | relevance | path

Searched refs:obj (Results 51 – 75 of 147) sorted by relevance

123456

/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c34 #define OBJ_TO_SD(obj) (((int)obj) - 1) argument
36 static int simplelink_socket_accept(void *obj, struct sockaddr *addr,
307 static int simplelink_close(void *obj) in simplelink_close() argument
309 int sd = OBJ_TO_SD(obj); in simplelink_close()
416 static int simplelink_accept(void *obj, struct sockaddr *addr, in simplelink_accept() argument
419 int sd = OBJ_TO_SD(obj); in simplelink_accept()
455 static int simplelink_bind(void *obj, const struct sockaddr *addr, in simplelink_bind() argument
458 int sd = OBJ_TO_SD(obj); in simplelink_bind()
489 static int simplelink_listen(void *obj, int backlog) in simplelink_listen() argument
491 int sd = OBJ_TO_SD(obj); in simplelink_listen()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_ifx_cat1.c40 cyhal_spi_t obj; /* SPI CYHAL object */ member
87 &data->obj, ctx->tx_buf, spi_context_tx_buf_on(ctx) ? chunk_len : 0, ctx->rx_buf, in transfer_chunk()
108 cyhal_spi_abort_async(&data->obj); in spi_interrupt_callback()
186 if (data->obj.base != NULL) { in spi_config()
187 cyhal_spi_free(&data->obj); in spi_config()
195 result = cyhal_spi_init_cfg(&data->obj, &spi_init_cfg); in spi_config()
203 result = _cyhal_utils_peri_pclk_assign_divider(clk_idx, &data->obj.clock); in spi_config()
210 Cy_SCB_SPI_SetActiveSlaveSelectPolarity(data->obj.base, CY_SCB_SPI_SLAVE_SELECT0, in spi_config()
215 result = cyhal_spi_set_frequency(&data->obj, spi_cfg->frequency); in spi_config()
221 data->obj.write_fill = 0; in spi_config()
[all …]
/Zephyr-latest/lib/utils/
Djson.c395 static int skip_field(struct json_obj *obj, struct json_obj_key_value *kv) in skip_field() argument
401 while (field_count > 0 && lexer_next(&obj->lex, &kv->value)) { in skip_field()
526 static int64_t obj_parse(struct json_obj *obj,
529 static int arr_parse(struct json_obj *obj,
533 static int arr_data_parse(struct json_obj *obj, struct json_obj_token *val);
535 static int64_t decode_value(struct json_obj *obj, in decode_value() argument
546 return obj_parse(obj, descr->object.sub_descr, in decode_value()
550 return arr_parse(obj, descr->array.element_descr, in decode_value()
556 return arr_data_parse(obj, obj_token); in decode_value()
652 static int arr_parse(struct json_obj *obj, in arr_parse() argument
[all …]
/Zephyr-latest/subsys/usb/usb_c/
Dusbc_pe_common.c747 static void pe_drs_evaluate_swap_entry(void *obj) in pe_drs_evaluate_swap_entry() argument
749 struct policy_engine *pe = (struct policy_engine *)obj; in pe_drs_evaluate_swap_entry()
774 static void pe_drs_evaluate_swap_run(void *obj) in pe_drs_evaluate_swap_run() argument
776 struct policy_engine *pe = (struct policy_engine *)obj; in pe_drs_evaluate_swap_run()
808 static void pe_drs_send_swap_entry(void *obj) in pe_drs_send_swap_entry() argument
810 struct policy_engine *pe = (struct policy_engine *)obj; in pe_drs_send_swap_entry()
821 static void pe_drs_send_swap_run(void *obj) in pe_drs_send_swap_run() argument
823 struct policy_engine *pe = (struct policy_engine *)obj; in pe_drs_send_swap_run()
883 void pe_get_sink_cap_entry(void *obj) in pe_get_sink_cap_entry() argument
885 struct policy_engine *pe = (struct policy_engine *)obj; in pe_get_sink_cap_entry()
[all …]
Dusbc_tc_common.c243 static void tc_cc_open_entry(void *obj) in tc_cc_open_entry() argument
245 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_cc_open_entry()
272 static void tc_disabled_entry(void *obj) in tc_disabled_entry() argument
280 static void tc_disabled_run(void *obj) in tc_disabled_run() argument
288 static void tc_error_recovery_entry(void *obj) in tc_error_recovery_entry() argument
290 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_error_recovery_entry()
301 static void tc_error_recovery_run(void *obj) in tc_error_recovery_run() argument
303 struct tc_sm_t *tc = (struct tc_sm_t *)obj; in tc_error_recovery_run()
/Zephyr-latest/include/zephyr/debug/
Dobject_tracing.h29 #define SYS_THREAD_MONITOR_NEXT(obj) (((struct k_thread *)obj)->next_thread) argument
/Zephyr-latest/include/zephyr/internal/
Dsyscall_handler.h106 void k_object_dump_error(int retval, const void *obj,
122 struct k_object *k_object_find(const void *obj);
194 void k_object_uninit(const void *obj);
215 void k_object_recycle(const void *obj);
523 const void *obj, in k_object_validation_check() argument
533 k_object_dump_error(ret, obj, ko, otype); in k_object_validation_check()
536 ARG_UNUSED(obj); in k_object_validation_check()
/Zephyr-latest/include/zephyr/pm/
Ddevice.h201 #define Z_PM_DEVICE_RUNTIME_INIT(obj) \ argument
202 .lock = Z_SEM_INITIALIZER(obj.lock, 1, 1), \
203 .event = Z_EVENT_INITIALIZER(obj.event),
205 #define Z_PM_DEVICE_RUNTIME_INIT(obj) argument
213 #define Z_PM_DEVICE_POWER_DOMAIN_INIT(obj) argument
243 #define Z_PM_DEVICE_BASE_INIT(obj, node_id, pm_action_cb, _flags) \ argument
261 #define Z_PM_DEVICE_INIT(obj, node_id, pm_action_cb, isr_safe) \ argument
263 .base = Z_PM_DEVICE_BASE_INIT(obj, node_id, pm_action_cb, \
265 COND_CODE_1(isr_safe, (), (Z_PM_DEVICE_RUNTIME_INIT(obj))) \
/Zephyr-latest/include/zephyr/sys/internal/
Dkobject_internal.h87 void k_object_init(const void *obj);
92 static inline void k_object_init(const void *obj)
94 ARG_UNUSED(obj);
/Zephyr-latest/subsys/tracing/
Dtracing_tracking.c47 #define SYS_TRACK_LIST_PREPEND(list, obj) \ argument
50 obj->_obj_track_next = list; \
51 list = obj; \
57 STRUCT_SECTION_FOREACH(type, obj) \
58 _SYS_PORT_TRACKING_OBJ_INIT(type)(obj, ##__VA_ARGS__); \
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_registry.h50 void lwm2m_register_obj(struct lwm2m_engine_obj *obj);
57 void lwm2m_unregister_obj(struct lwm2m_engine_obj *obj);
167 bool lwm2m_engine_shall_report_obj_version(const struct lwm2m_engine_obj *obj);
192 struct lwm2m_engine_obj_field *lwm2m_get_engine_obj_field(struct lwm2m_engine_obj *obj, int res_id);
Dlwm2m_obj_access_control.c103 if (inst[i].obj && ac_data[i].obj_id == obj_id && in obj_inst_to_index()
115 if (inst[index].obj && inst[index].obj_inst_id == obj_inst_id) { in available_obj_inst_id()
142 if (avail < 0 && !inst[index].obj) { in access_control_add()
286 if (inst[index].obj && inst[index].obj_inst_id == obj_inst_id) { in access_control_check_access()
324 struct lwm2m_engine_obj *obj; in add_existing_objects() local
326 SYS_SLIST_FOR_EACH_CONTAINER(lwm2m_engine_obj_list(), obj, node) { in add_existing_objects()
327 access_control_add_obj(obj->obj_id, -1); in add_existing_objects()
334 access_control_add(obj_inst->obj->obj_id, obj_inst->obj_inst_id, -1); in add_existing_objects()
358 if (inst[i].obj && inst[i].obj_inst_id == obj_inst_id) { in write_validate_cb()
385 if (inst[index].obj && inst[index].obj_inst_id == obj_inst_id) { in ac_create()
[all …]
Dlwm2m_rw_link_format.c102 const struct lwm2m_engine_obj *obj, in put_corelink_version() argument
107 len = snprintk(buf, buflen, ";ver=%u.%u", obj->version_major, in put_corelink_version()
108 obj->version_minor); in put_corelink_version()
242 struct lwm2m_engine_obj *obj = lwm2m_engine_get_obj(path); in put_corelink_attributes_resource() local
246 if (obj == NULL || obj_inst == NULL || res == NULL) { in put_corelink_attributes_resource()
250 get_attributes(obj, attrs); in put_corelink_attributes_resource()
325 struct lwm2m_engine_obj *obj; in put_obj_corelink() local
341 obj = lwm2m_engine_get_obj(path); in put_obj_corelink()
342 if (obj == NULL) { in put_obj_corelink()
346 if (lwm2m_engine_shall_report_obj_version(obj)) { in put_obj_corelink()
[all …]
Dlwm2m_shell.c718 struct lwm2m_engine_obj *obj; in print_object_instance() local
724 obj = oi->obj; in print_object_instance()
735 lwm2m_get_engine_obj_field(obj, re->res_id); in print_object_instance()
743 snprintf(path, sizeof(path), "%hu/%hu/%hu/%hu", obj->obj_id, in print_object_instance()
746 snprintf(path, sizeof(path), "%hu/%hu/%hu", obj->obj_id, in print_object_instance()
785 static int print_object(const struct shell *sh, struct lwm2m_engine_obj *obj) in print_object() argument
787 if (!obj) { in print_object()
790 struct lwm2m_engine_obj_inst *oi = next_engine_obj_inst(obj->obj_id, -1); in print_object()
792 for (int i = 0; i < obj->instance_count; i++) { in print_object()
794 oi = next_engine_obj_inst(obj->obj_id, oi->obj_inst_id); in print_object()
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_ifx_cat1.c21 cyhal_wdt_t obj; member
49 result = cyhal_wdt_init(&dev_data->obj, dev_data->timeout); in ifx_cat1_wdt_setup()
74 cyhal_wdt_free(&dev_data->obj); in ifx_cat1_wdt_disable()
119 cyhal_wdt_kick(&data->obj); in ifx_cat1_wdt_feed()
/Zephyr-latest/include/zephyr/net/
Dcanbus.h40 int (*setsockopt)(const struct device *dev, void *obj, int level,
45 int (*getsockopt)(const struct device *dev, void *obj, int level,
/Zephyr-latest/scripts/build/
Dgen_kobject_placeholders.py56 def generate_linker_headers(obj): argument
80 for one_sect in obj.iter_sections():
133 obj = ELFFile(obj_fp)
135 generate_linker_headers(obj)
/Zephyr-latest/lib/posix/options/
Dfs.c140 static int fs_close_vmeth(void *obj) in fs_close_vmeth() argument
142 struct posix_fs_desc *ptr = obj; in fs_close_vmeth()
151 static int fs_ioctl_vmeth(void *obj, unsigned int request, va_list args) in fs_ioctl_vmeth() argument
154 struct posix_fs_desc *ptr = obj; in fs_ioctl_vmeth()
204 static ssize_t fs_write_vmeth(void *obj, const void *buffer, size_t count) in fs_write_vmeth() argument
207 struct posix_fs_desc *ptr = obj; in fs_write_vmeth()
223 static ssize_t fs_read_vmeth(void *obj, void *buffer, size_t count) in fs_read_vmeth() argument
226 struct posix_fs_desc *ptr = obj; in fs_read_vmeth()
Dshm.c228 static ssize_t shm_read(void *obj, void *buf, size_t sz, size_t offset) in shm_read() argument
230 return shm_rw((struct shm_obj *)obj, buf, sz, false, offset); in shm_read()
233 static ssize_t shm_write(void *obj, const void *buf, size_t sz, size_t offset) in shm_write() argument
235 return shm_rw((struct shm_obj *)obj, (void *)buf, sz, true, offset); in shm_write()
238 static int shm_close(void *obj) in shm_close() argument
240 struct shm_obj *shm = obj; in shm_close()
250 static int shm_ioctl(void *obj, unsigned int request, va_list args) in shm_ioctl() argument
252 struct shm_obj *shm = obj; in shm_ioctl()
/Zephyr-latest/include/zephyr/
Dkernel.h63 #define Z_POLL_EVENT_OBJ_INIT(obj) \ argument
64 .poll_events = SYS_DLIST_STATIC_INIT(&obj.poll_events),
67 #define Z_POLL_EVENT_OBJ_INIT(obj) argument
1582 #define Z_TIMER_INITIALIZER(obj, expiry, stop) \ argument
1589 .wait_q = Z_WAIT_Q_INIT(&obj.wait_q), \
1970 #define Z_QUEUE_INITIALIZER(obj) \ argument
1972 .data_q = SYS_SFLIST_STATIC_INIT(&obj.data_q), \
1974 .wait_q = Z_WAIT_Q_INIT(&obj.wait_q), \
1975 Z_POLL_EVENT_OBJ_INIT(obj) \
2264 #define Z_FUTEX_DATA_INITIALIZER(obj) \ argument
[all …]
/Zephyr-latest/drivers/net/
Dnsos_sockets.c232 static ssize_t nsos_read(void *obj, void *buf, size_t sz) in nsos_read() argument
234 struct nsos_socket *sock = obj; in nsos_read()
245 static ssize_t nsos_write(void *obj, const void *buf, size_t sz) in nsos_write() argument
247 struct nsos_socket *sock = obj; in nsos_write()
258 static int nsos_close(void *obj) in nsos_close() argument
260 struct nsos_socket *sock = obj; in nsos_close()
354 static int nsos_ioctl(void *obj, unsigned int request, va_list args) in nsos_ioctl() argument
356 struct nsos_socket *sock = obj; in nsos_ioctl()
368 return nsos_poll_prepare(obj, pfd, pev, pev_end, &sock->poll); in nsos_ioctl()
378 return nsos_poll_update(obj, pfd, pev, &sock->poll); in nsos_ioctl()
[all …]
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_inet.c1522 (*pev)->obj = &ctx->recv_q; in zsock_poll_prepare_ctx()
1538 (*pev)->obj = net_tcp_conn_sem_get(ctx); in zsock_poll_prepare_ctx()
1540 (*pev)->obj = net_tcp_tx_sem_get(ctx); in zsock_poll_prepare_ctx()
2842 static ssize_t sock_read_vmeth(void *obj, void *buffer, size_t count) in sock_read_vmeth() argument
2844 return zsock_recvfrom_ctx(obj, buffer, count, 0, NULL, 0); in sock_read_vmeth()
2847 static ssize_t sock_write_vmeth(void *obj, const void *buffer, size_t count) in sock_write_vmeth() argument
2849 return zsock_sendto_ctx(obj, buffer, count, 0, NULL, 0); in sock_write_vmeth()
2857 static int sock_ioctl_vmeth(void *obj, unsigned int request, va_list args) in sock_ioctl_vmeth() argument
2863 if (sock_is_nonblock(obj)) { in sock_ioctl_vmeth()
2875 sock_set_flag(obj, SOCK_NONBLOCK, SOCK_NONBLOCK); in sock_ioctl_vmeth()
[all …]
Dsockets_tls.c276 bool net_socket_is_tls(void *obj) in net_socket_is_tls() argument
278 return PART_OF_ARRAY(tls_contexts, (struct tls_context *)obj); in net_socket_is_tls()
3001 void *obj; in ztls_poll_prepare_ctx() local
3011 (*pev)->obj = &ctx->tls_established; in ztls_poll_prepare_ctx()
3023 obj = zvfs_get_fd_obj_and_vtable( in ztls_poll_prepare_ctx()
3025 if (obj == NULL) { in ztls_poll_prepare_ctx()
3032 ret = zvfs_fdtable_call_ioctl(vtable, obj, ZFD_IOCTL_POLL_PREPARE, in ztls_poll_prepare_ctx()
3214 void *obj; in ztls_poll_update_ctx() local
3218 obj = zvfs_get_fd_obj_and_vtable( in ztls_poll_update_ctx()
3220 if (obj == NULL) { in ztls_poll_update_ctx()
[all …]
/Zephyr-latest/soc/cdns/dc233c/include/
Dxtensa-dc233c.ld145 *libarch__xtensa__core.a:xtensa_asm2_util.S.obj(.literal .text)
146 *libarch__xtensa__core.a:xtensa_asm2_util.S.obj(.iram.text .iram0.text)
148 *libarch__xtensa__core.a:window_vectors.S.obj(.iram.text)
150 *libarch__xtensa__core.a:crt1.S.obj(.literal .text)
152 LIB_OBJ_FUNC_IN_SECT(libarch__xtensa__core.a,xtensa_asm2.c.obj,*)
153 LIB_OBJ_FUNC_IN_SECT(libarch__xtensa__core.a,fatal.c.obj,*)
154 LIB_OBJ_FUNC_IN_SECT(libarch__xtensa__core.a,cpu_idle.c.obj,*)
159 LIB_OBJ_FUNC_IN_SECT(libarch__xtensa__core.a,xtensa_backtrace.c.obj,*)
161 *libarch__xtensa__core.a:debug_helpers_asm.S.obj(.iram1.literal .iram1)
164 LIB_OBJ_FUNC_IN_SECT(libarch__xtensa__core.a,userspace.S.obj,xtensa_do_syscall)
[all …]
/Zephyr-latest/boards/qemu/x86/
Dqemu_x86_tiny.ld141 *liblib__libc__newlib.a:libc-hooks.c.obj(.##lsect) \
142 *liblib__libc__newlib.a:libc-hooks.c.obj(.##lsect##.*)
160 *hpet.c.obj(.##lsect) \
161 *hpet.c.obj(.##lsect##.*) \
162 *intc_ioapic.c.obj(.##lsect) \
163 *intc_ioapic.c.obj(.##lsect##.*) \
164 *intc_loapic.c.obj(.##lsect) \
165 *intc_loapic.c.obj(.##lsect##.*) \
166 *intc_system_apic.c.obj(.##lsect) \
167 *intc_system_apic.c.obj(.##lsect##.*) \
[all …]

123456