Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 1827) sorted by relevance

12345678910>>...74

/openbmc/linux/tools/tracing/rtla/src/
H A Dosnoise.c93 if (!strcmp(context->orig_cpus, context->curr_cpus)) in osnoise_restore_cpus()
475 if (context->orig_stop_us == context->stop_us) in osnoise_restore_stop_us()
554 if (context->orig_stop_total_us == context->stop_total_us) in osnoise_restore_stop_total_us()
634 if (context->orig_print_stack == context->print_stack) in osnoise_restore_print_stack()
713 if (context->orig_tracing_thresh == context->tracing_thresh) in osnoise_restore_tracing_thresh()
823 if (context->orig_opt_irq_disable == context->opt_irq_disable) in osnoise_restore_irq_disable()
884 if (context->orig_opt_workload == context->opt_workload) in osnoise_restore_workload()
953 context = calloc(1, sizeof(*context)); in osnoise_context_alloc()
954 if (!context) in osnoise_context_alloc()
977 return context; in osnoise_context_alloc()
[all …]
/openbmc/hiomapd/
H A Dprotocol.c112 return context->protocol->get_info(context, io); in protocol_v1_get_info()
154 mem_offset = context->current->mem - context->mem; in get_lpc_addr_shifted()
292 rc = context->protocol->flush(context, NULL); in protocol_v1_create_window()
306 context->current = windows_search(context, offset, in protocol_v1_create_window()
311 rc = windows_create_map(context, &context->current, in protocol_v1_create_window()
325 context->current->mem, context->current->size, in protocol_v1_create_window()
340 if (!(context->current && context->current_is_write)) { in protocol_v1_mark_dirty()
383 context->current->mem, context->current->size, in generic_flush()
431 return window_set_bytemap(context, context->current, 0, in generic_flush()
530 return context->protocol->get_info(context, io); in protocol_v2_get_info()
[all …]
H A Dwindows.c77 if (mem_location > (context->mem + context->mem_size)) { in init_window_mem()
104 if (!context->windows.num) { in windows_init()
106 context->windows.num = context->mem_size / in windows_init()
111 context->windows.window = calloc(context->windows.num, in windows_init()
135 if (context->windows.window) { in windows_free()
204 (context->current->flash_offset + context->current->size)) { in window_flush_v1()
400 context->current->age = 0; in windows_close_current()
403 context->current = NULL; in windows_close_current()
441 if (context->current) { in windows_reset_all()
446 window_reset(context, &context->windows.window[i]); in windows_reset_all()
[all …]
H A Dmboxd.c346 if (!context->source) { in mboxd_backend_init()
391 context = calloc(1, sizeof(*context)); in main()
392 if (!context) { in main()
399 free(context); in main()
454 rc = poll_loop(context); in main()
466 dbus_free(context); in main()
468 windows_free(context); in main()
470 lpc_dev_free(context); in main()
472 protocol_free(context); in main()
476 if (context->blktracefd) in main()
[all …]
H A Dcontrol.c27 if ((context->state & MAPS_MEM) && !(context->state & MAPS_FLASH)) { in control_lpc_state()
30 (context->state & MAPS_FLASH)) { in control_lpc_state()
50 return protocol_reset(context); in control_reset()
55 context->terminate = 1; in control_kill()
65 backend_set_bytemap(&context->backend, 0, context->backend.flash_size, in control_modified()
69 if (windows_reset_all(context)) { in control_modified()
91 context->state |= STATE_SUSPENDED; in control_suspend()
107 control_modified(context); in control_resume()
137 backend_free(&context->backend); in control_set_backend()
139 context->backend = successor; in control_set_backend()
[all …]
H A Dlpc.c56 context->fds[LPC_CTRL_FD].fd = fd; in __lpc_dev_init()
66 context->mem_size = map.size; in __lpc_dev_init()
68 context->lpc_base = 0x0FFFFFFF & -context->mem_size; in __lpc_dev_init()
72 context->mem = mmap(NULL, context->mem_size, PROT_READ | PROT_WRITE, in __lpc_dev_init()
74 if (context->mem == MAP_FAILED) { in __lpc_dev_init()
89 if (context->mem) { in lpc_dev_free()
90 munmap(context->mem, context->mem_size); in lpc_dev_free()
157 .addr = context->lpc_base, in lpc_map_memory()
159 .size = context->mem_size in lpc_map_memory()
167 context->mem, context->mem_size); in lpc_map_memory()
[all …]
H A Dtransport_mbox.c157 return context->protocol->reset(context); in mbox_handle_reset()
191 rc = context->protocol->get_info(context, &io); in mbox_handle_mbox_info()
232 rc = context->protocol->get_flash_info(context, &io); in mbox_handle_flash_info()
267 mem_offset = context->current->mem - context->mem; in get_lpc_addr_shifted()
285 rc = context->protocol->create_window(context, &io); in mbox_handle_create_window()
379 return context->protocol->mark_dirty(context, &io); in mbox_handle_dirty_window()
409 return context->protocol->erase(context, &io); in mbox_handle_erase_window()
440 return context->protocol->flush(context, &io); in mbox_handle_flush_window()
464 return context->protocol->close(context, &io); in mbox_handle_close_window()
480 return context->protocol->ack(context, &io); in mbox_handle_ack()
[all …]
H A Dtransport_dbus.c80 if (!context) { in transport_dbus_reset()
85 rc = context->protocol->reset(context); in transport_dbus_reset()
109 if (!context) { in transport_dbus_get_info()
120 rc = context->protocol->get_info(context, &io); in transport_dbus_get_info()
128 protocol_events_set(context, context->bmc_events); in transport_dbus_get_info()
169 rc = context->protocol->get_flash_info(context, &io); in transport_dbus_get_flash_info()
214 rc = context->protocol->create_window(context, &io); in transport_dbus_create_window()
274 rc = context->protocol->close(context, &io); in transport_dbus_close_window()
310 rc = context->protocol->mark_dirty(context, &io); in transport_dbus_mark_dirty()
373 rc = context->protocol->ack(context, &io); in transport_dbus_ack()
[all …]
/openbmc/qemu/libdecnumber/
H A DdecContext.c75 context->status&=~mask; in decContextClearStatus()
76 return context; in decContextClearStatus()
167 return context->round; in decContextGetRounding()
179 return context->status; in decContextGetStatus()
198 return context; in decContextRestoreStatus()
226 context->round=newround; in decContextSetRounding()
227 return context; in decContextSetRounding()
292 return context; in decContextSetStatusFromString()
343 return context; in decContextSetStatusFromStringQuiet()
431 context->status=0; in decContextZeroStatus()
[all …]
/openbmc/phosphor-mboxd/
H A Dmboxd_msg.c52 rc = write(context->fds[MBOX_FD].fd, &context->bmc_events, 1); in write_bmc_event_reg()
208 1 << context->block_size_shift, context->block_size_shift); in mbox_handle_mbox_info()
262 context->flash_size >> context->block_size_shift); in mbox_handle_flash_info()
286 mem_offset = context->current->mem - context->mem; in get_lpc_addr_shifted()
337 context->current = search_windows(context, flash_offset, in mbox_handle_read_window()
352 context->current->mem, context->current->size, in mbox_handle_read_window()
426 if (!(context->current && context->current_is_write)) { in mbox_handle_dirty_window()
491 if (!(context->current && context->current_is_write)) { in mbox_handle_erase_window()
539 if (!(context->current && context->current_is_write)) { in mbox_handle_flush_window()
564 context->current->mem, context->current->size, in mbox_handle_flush_window()
[all …]
H A Dmboxd_windows.c74 if (mem_location > (context->mem + context->mem_size)) { in init_window_mem()
101 if (!context->windows.num) { in init_windows()
103 context->windows.num = context->mem_size / in init_windows()
108 context->windows.window = calloc(context->windows.num, in init_windows()
110 if (!context->windows.window) { in init_windows()
132 if (context->windows.window) { in free_windows()
201 (context->current->flash_offset + context->current->size)) { in write_from_window_v1()
401 context->current->age = 0; in close_current_window()
404 context->current = NULL; in close_current_window()
436 if (context->current) { in reset_all_windows()
[all …]
H A Dmboxd.c129 rc = reset_lpc(context); in poll_loop()
281 context = calloc(1, sizeof(*context)); in main()
282 if (!context) { in main()
289 free(context); in main()
331 init_vpnor(context); in main()
335 rc = reset_lpc(context); in main()
356 free_lpc_dev(context); in main()
357 free_mbox_dev(context); in main()
358 free_windows(context); in main()
360 destroy_vpnor(context); in main()
[all …]
H A Dmboxd_lpc.c66 context->mem_size = map.size; in __init_lpc_dev()
68 context->lpc_base = 0x0FFFFFFF & -context->mem_size; in __init_lpc_dev()
72 context->mem = mmap(NULL, context->mem_size, PROT_READ | PROT_WRITE, in __init_lpc_dev()
89 if (context->mem) { in free_lpc_dev()
90 munmap(context->mem, context->mem_size); in free_lpc_dev()
113 .size = context->flash_size in point_to_flash()
141 return set_flash_bytemap(context, 0, context->flash_size, FLASH_DIRTY); in point_to_flash()
156 .addr = context->lpc_base, in point_to_memory()
158 .size = context->mem_size in point_to_memory()
166 context->mem, context->mem_size); in point_to_memory()
[all …]
H A Dmboxd_flash.c53 context->fds[MTD_FD].fd = fd; in init_flash_dev()
63 if (context->flash_size == 0) { in init_flash_dev()
84 context->mtd_info.size); in init_flash_dev()
85 context->flash_size = context->mtd_info.size; in init_flash_dev()
89 context->erase_size_shift = log_2(context->mtd_info.erasesize); in init_flash_dev()
90 context->flash_bmap = calloc(context->flash_size >> in init_flash_dev()
91 context->erase_size_shift, in init_flash_dev()
102 free(context->flash_bmap); in free_flash_dev()
103 close(context->fds[MTD_FD].fd); in free_flash_dev()
118 return context->flash_bmap[offset >> context->erase_size_shift] in flash_is_erased()
[all …]
H A Dmboxd_dbus.c88 if ((context->state & MAPS_MEM) && !(context->state & MAPS_FLASH)) { in dbus_handle_lpc_state()
125 rc = reset_lpc(context); in dbus_handle_reset()
144 context->terminate = 1; in dbus_handle_kill()
166 set_flash_bytemap(context, 0, context->flash_size, FLASH_DIRTY); in dbus_handle_modified()
200 context->state |= STATE_SUSPENDED; in dbus_handle_suspend()
258 struct mbox_context *context; in method_cmd() local
263 if (!context) { in method_cmd()
355 mboxd_vtable, context); in init_mboxd_dbus()
369 rc = sd_bus_get_fd(context->bus); in init_mboxd_dbus()
375 context->fds[DBUS_FD].fd = rc; in init_mboxd_dbus()
[all …]
/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_context.c107 context = kzalloc(sizeof(*context), GFP_KERNEL); in vmci_ctx_create()
108 if (!context) { in vmci_ctx_create()
173 return context; in vmci_ctx_create()
180 kfree(context); in vmci_ctx_create()
311 if (!context) { in vmci_ctx_enqueue_datagram()
409 context = c; in vmci_ctx_get()
416 return context; in vmci_ctx_get()
435 ctx_fire_notification(context->cid, context->priv_flags); in ctx_free_ctx()
606 if (!context) in vmci_ctx_add_notification()
672 if (!context) in vmci_ctx_remove_notification()
[all …]
/openbmc/linux/security/selinux/ss/
H A Dmls.h32 void mls_sid_to_context(struct policydb *p, struct context *context,
41 struct context *context,
48 int mls_range_set(struct context *context, struct mls_range *range);
69 struct context *context,
72 struct context *context,
75 struct context *context,
78 struct context *context,
82 struct context *context, in mls_export_netlbl_lvl() argument
88 struct context *context, in mls_import_netlbl_lvl() argument
94 struct context *context, in mls_export_netlbl_cat() argument
[all …]
/openbmc/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_mmu.c29 unmapped_page = context->global->ops->unmap(context, iova, in etnaviv_context_unmap()
55 ret = context->global->ops->map(context, iova, paddr, pgsize, in etnaviv_context_map()
79 if (!context || !sgt) in etnaviv_iommu_map()
140 struct etnaviv_iommu_context *context = mapping->context; in etnaviv_iommu_reap_mapping() local
298 mapping->context = etnaviv_iommu_context_get(context); in etnaviv_iommu_map_gem()
325 mapping->context = etnaviv_iommu_context_get(context); in etnaviv_iommu_map_gem()
360 etnaviv_cmdbuf_suballoc_unmap(context, &context->cmdbuf_mapping); in etnaviv_iommu_context_free()
362 context->global->ops->free(context); in etnaviv_iommu_context_free()
408 context->global->ops->restore(gpu, context); in etnaviv_iommu_restore()
482 return context->global->ops->dump_size(context); in etnaviv_iommu_dump_size()
[all …]
H A Detnaviv_iommu.c37 drm_mm_takedown(&context->mm); in etnaviv_iommuv1_free()
140 context = global->v1.shared_context; in etnaviv_iommuv1_context_alloc()
141 etnaviv_iommu_context_get(context); in etnaviv_iommuv1_context_alloc()
143 return context; in etnaviv_iommuv1_context_alloc()
160 context = &v1_context->base; in etnaviv_iommuv1_context_alloc()
161 context->global = global; in etnaviv_iommuv1_context_alloc()
162 kref_init(&context->refcount); in etnaviv_iommuv1_context_alloc()
163 mutex_init(&context->lock); in etnaviv_iommuv1_context_alloc()
164 INIT_LIST_HEAD(&context->mappings); in etnaviv_iommuv1_context_alloc()
166 context->global->v1.shared_context = context; in etnaviv_iommuv1_context_alloc()
[all …]
/openbmc/linux/kernel/
H A Dauditsc.c1036 context->context = AUDIT_CTX_UNUSED; in audit_alloc_context()
1688 switch (context->context) { in audit_log_exit()
1694 context->arch, context->major); in audit_log_exit()
1760 context->fds[0], context->fds[1]); in audit_log_exit()
1810 if (context->context == AUDIT_CTX_SYSCALL) in audit_log_exit()
2022 if (context->context != AUDIT_CTX_UNUSED || context->name_count) { in __audit_syscall_entry()
2044 context->context = AUDIT_CTX_SYSCALL; in __audit_syscall_entry()
2064 if (!context || context->dummy || in __audit_syscall_exit()
2234 if (context->context == AUDIT_CTX_UNUSED) in __audit_getname()
2306 if (context->context == AUDIT_CTX_UNUSED) in __audit_inode()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_attr_list.c89 context->put_listent(context, in xfs_attr_shortform_list()
98 if (context->seen_enough) in xfs_attr_shortform_list()
107 if (context->bufsize == 0) in xfs_attr_shortform_list()
184 context->put_listent(context, in xfs_attr_shortform_list()
412 if (context->resynch) { in xfs_attr3_leaf_list_int()
417 context->dupcnt = 0; in xfs_attr3_leaf_list_int()
420 context->dupcnt++; in xfs_attr3_leaf_list_int()
423 context->dupcnt = 0; in xfs_attr3_leaf_list_int()
435 context->resynch = 0; in xfs_attr3_leaf_list_int()
473 context->put_listent(context, entry->flags, in xfs_attr3_leaf_list_int()
[all …]
/openbmc/phosphor-mboxd/vpnor/
H A Dmboxd_pnor_partition_table.cpp15 int init_vpnor(struct mbox_context *context) in init_vpnor() argument
17 if (context && !context->vpnor) in init_vpnor()
30 rc = init_vpnor_from_paths(context); in init_vpnor()
46 if (context && !context->vpnor) in init_vpnor_from_paths()
48 context->handlers = vpnor_mbox_handlers; in init_vpnor_from_paths()
53 context->vpnor->table = in init_vpnor_from_paths()
91 struct mbox_context local = *context; in vpnor_copy_bootloader_partition()
129 if (context && context->vpnor) in destroy_vpnor()
131 delete context->vpnor->table; in destroy_vpnor()
132 delete context->vpnor; in destroy_vpnor()
[all …]
/openbmc/linux/drivers/gpu/drm/tegra/
H A Duapi.c46 kfree(context); in tegra_drm_channel_context_close()
89 context = kzalloc(sizeof(*context), GFP_KERNEL); in tegra_drm_ioctl_channel_open()
90 if (!context) in tegra_drm_ioctl_channel_open()
135 err = xa_alloc(&fpriv->contexts, &args->context, context, XA_LIMIT(1, U32_MAX), in tegra_drm_ioctl_channel_open()
157 kfree(context); in tegra_drm_ioctl_channel_open()
170 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_close()
171 if (!context) { in tegra_drm_ioctl_channel_close()
200 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_map()
201 if (!context) { in tegra_drm_ioctl_channel_map()
281 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_unmap()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_resources.c47 memset(context, 0, sizeof(*context)); in mlx4_en_fill_qp_context()
49 context->pd = cpu_to_be32(mdev->priv_pdn); in mlx4_en_fill_qp_context()
50 context->mtu_msgmax = 0xff; in mlx4_en_fill_qp_context()
59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; in mlx4_en_fill_qp_context()
63 context->local_qpn = cpu_to_be32(qpn); in mlx4_en_fill_qp_context()
64 context->pri_path.ackto = 1 & 0x07; in mlx4_en_fill_qp_context()
68 context->pri_path.sched_queue |= user_prio << 3; in mlx4_en_fill_qp_context()
72 context->cqn_send = cpu_to_be32(cqn); in mlx4_en_fill_qp_context()
73 context->cqn_recv = cpu_to_be32(cqn); in mlx4_en_fill_qp_context()
76 context->pri_path.counter_index != in mlx4_en_fill_qp_context()
[all …]
/openbmc/btbridge/
H A Dbtbridged.c115 return context ? context->bt_q : NULL; in bt_q_get_head()
122 assert(context); in bt_q_get_seq()
136 assert(context); in bt_q_get_msg()
217 assert(context); in bt_q_drop()
219 if (!element || !context || !context->bt_q) in bt_q_drop()
223 context->bt_q = context->bt_q->next; in bt_q_drop()
246 assert(context); in bt_q_dequeue()
295 if (!context) { in method_send_message()
642 context = calloc(1, sizeof(*context)); in main()
698 context->fds[SD_BUS_FD].fd = sd_bus_get_fd(context->bus); in main()
[all …]

12345678910>>...74