Home
last modified time | relevance | path

Searched full:context (Results 1 – 25 of 5096) sorted by relevance

12345678910>>...204

/openbmc/linux/tools/tracing/rtla/src/
H A Dosnoise.c24 char *osnoise_get_cpus(struct osnoise_context *context) in osnoise_get_cpus() argument
26 if (context->curr_cpus) in osnoise_get_cpus()
27 return context->curr_cpus; in osnoise_get_cpus()
29 if (context->orig_cpus) in osnoise_get_cpus()
30 return context->orig_cpus; in osnoise_get_cpus()
32 context->orig_cpus = tracefs_instance_file_read(NULL, "osnoise/cpus", NULL); in osnoise_get_cpus()
38 return context->orig_cpus; in osnoise_get_cpus()
48 int osnoise_set_cpus(struct osnoise_context *context, char *cpus) in osnoise_set_cpus() argument
50 char *orig_cpus = osnoise_get_cpus(context); in osnoise_set_cpus()
57 context->curr_cpus = strdup(cpus); in osnoise_set_cpus()
[all …]
/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_context.c30 * These, along with context lookup, are protected by the
35 spinlock_t lock; /* Spinlock for context list operations */
44 static void ctx_signal_notify(struct vmci_ctx *context) in ctx_signal_notify() argument
46 *context->notify = true; in ctx_signal_notify()
49 static void ctx_clear_notify(struct vmci_ctx *context) in ctx_clear_notify() argument
51 *context->notify = false; in ctx_clear_notify()
58 static void ctx_clear_notify_call(struct vmci_ctx *context) in ctx_clear_notify_call() argument
60 if (context->pending_datagrams == 0 && in ctx_clear_notify_call()
61 vmci_handle_arr_get_size(context->pending_doorbell_array) == 0) in ctx_clear_notify_call()
62 ctx_clear_notify(context); in ctx_clear_notify_call()
[all …]
/openbmc/hiomapd/
H A Dprotocol.c23 static inline uint8_t protocol_get_bmc_event_mask(struct mbox_context *context) in protocol_get_bmc_event_mask() argument
25 if (context->version == API_VERSION_1) { in protocol_get_bmc_event_mask()
35 * @context: The mbox context pointer
40 int protocol_events_put(struct mbox_context *context, in protocol_events_put() argument
43 const uint8_t mask = protocol_get_bmc_event_mask(context); in protocol_events_put()
45 return ops->put_events(context, mask); in protocol_events_put()
50 * @context: The mbox context pointer
55 int protocol_events_set(struct mbox_context *context, uint8_t bmc_event) in protocol_events_set() argument
57 const uint8_t mask = protocol_get_bmc_event_mask(context); in protocol_events_set()
64 context->bmc_events |= bmc_event; in protocol_events_set()
[all …]
H A Dwindows.c55 * @context: The mbox context pointer
59 static int init_window_mem(struct mbox_context *context) in init_window_mem() argument
61 void *mem_location = context->mem; in init_window_mem()
71 for (i = 0; i < context->windows.num; i++) { in init_window_mem()
72 uint32_t size = context->windows.window[i].size; in init_window_mem()
75 context->windows.window[i].mem = mem_location; in init_window_mem()
77 if (mem_location > (context->mem + context->mem_size)) { in init_window_mem()
81 MSG_ERR("Mem size: 0x%.8x\n", context->mem_size); in init_window_mem()
90 * @context: The mbox context pointer
94 int windows_init(struct mbox_context *context) in windows_init() argument
[all …]
H A Dcontrol.c14 int control_ping(struct mbox_context *context __attribute__((unused))) in control_ping() argument
19 int control_daemon_state(struct mbox_context *context) in control_daemon_state() argument
21 return (context->state & STATE_SUSPENDED) ? in control_daemon_state()
25 int control_lpc_state(struct mbox_context *context) in control_lpc_state() argument
27 if ((context->state & MAPS_MEM) && !(context->state & MAPS_FLASH)) { in control_lpc_state()
29 } else if (!(context->state & MAPS_MEM) && in control_lpc_state()
30 (context->state & MAPS_FLASH)) { in control_lpc_state()
37 int control_reset(struct mbox_context *context) in control_reset() argument
40 if (context->state & STATE_SUSPENDED) { in control_reset()
50 return protocol_reset(context); in control_reset()
[all …]
H A Dmboxd.c59 static int dbus_init(struct mbox_context *context, in dbus_init() argument
64 rc = sd_bus_default_system(&context->bus); in dbus_init()
71 rc = control_legacy_init(context); in dbus_init()
78 rc = control_dbus_init(context); in dbus_init()
85 rc = transport_dbus_init(context, ops); in dbus_init()
92 rc = sd_bus_request_name(context->bus, MBOX_DBUS_NAME, in dbus_init()
100 rc = sd_bus_get_fd(context->bus); in dbus_init()
106 context->fds[DBUS_FD].fd = rc; in dbus_init()
111 static void dbus_free(struct mbox_context *context) in dbus_free() argument
113 transport_dbus_free(context); in dbus_free()
[all …]
H A Dtransport_mbox.c73 static inline int mbox_xlate_errno(struct mbox_context *context, in mbox_xlate_errno() argument
80 for(entry = errno_maps[context->version]; entry->rc != -1; entry++) { in mbox_xlate_errno()
92 * @context: The mbox context pointer
96 static int transport_mbox_flush_events(struct mbox_context *context, uint8_t events) in transport_mbox_flush_events() argument
101 rc = lseek(context->fds[MBOX_FD].fd, MBOX_BMC_EVENT, SEEK_SET); in transport_mbox_flush_events()
109 rc = write(context->fds[MBOX_FD].fd, &events, 1); in transport_mbox_flush_events()
117 rc = lseek(context->fds[MBOX_FD].fd, 0, SEEK_SET); in transport_mbox_flush_events()
127 static int transport_mbox_put_events(struct mbox_context *context, in transport_mbox_put_events() argument
130 return transport_mbox_flush_events(context, context->bmc_events & mask); in transport_mbox_put_events()
133 static int transport_mbox_update_events(struct mbox_context *context, in transport_mbox_update_events() argument
[all …]
H A Dlpc.c35 int __lpc_dev_init(struct mbox_context *context, const char *path) in __lpc_dev_init() argument
56 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()
71 MSG_DBG("Mapping in 0x%.8x bytes of %s\n", context->mem_size, path); 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()
82 int lpc_dev_init(struct mbox_context *context) in lpc_dev_init() argument
84 return __lpc_dev_init(context, LPC_CTRL_PATH); in lpc_dev_init()
87 void lpc_dev_free(struct mbox_context *context) in lpc_dev_free() argument
[all …]
H A Dtransport_dbus.c16 static int transport_dbus_property_update(struct mbox_context *context, in transport_dbus_property_update() argument
40 rc = sd_bus_emit_properties_changed_strv(context->bus, in transport_dbus_property_update()
50 static int transport_dbus_put_events(struct mbox_context *context, uint8_t mask) in transport_dbus_put_events() argument
52 return transport_dbus_property_update(context, mask); in transport_dbus_put_events()
55 static int transport_dbus_set_events(struct mbox_context *context, in transport_dbus_set_events() argument
58 return transport_dbus_property_update(context, events & mask); in transport_dbus_set_events()
61 static int transport_dbus_clear_events(struct mbox_context *context, in transport_dbus_clear_events() argument
64 return transport_dbus_property_update(context, events & mask); in transport_dbus_clear_events()
76 struct mbox_context *context = userdata; in transport_dbus_reset() local
80 if (!context) { in transport_dbus_reset()
[all …]
/openbmc/phosphor-mboxd/
H A Dmboxd_msg.c35 * @context: The mbox context pointer
39 static int write_bmc_event_reg(struct mbox_context *context) in write_bmc_event_reg() argument
44 rc = lseek(context->fds[MBOX_FD].fd, MBOX_BMC_EVENT, SEEK_SET); in write_bmc_event_reg()
52 rc = write(context->fds[MBOX_FD].fd, &context->bmc_events, 1); in write_bmc_event_reg()
60 rc = lseek(context->fds[MBOX_FD].fd, 0, SEEK_SET); in write_bmc_event_reg()
72 * @context: The mbox context pointer
78 int set_bmc_events(struct mbox_context *context, uint8_t bmc_event, in set_bmc_events() argument
83 switch (context->version) { in set_bmc_events()
92 context->bmc_events |= (bmc_event & mask); in set_bmc_events()
93 MSG_DBG("BMC Events set to: 0x%.2x\n", context->bmc_events); in set_bmc_events()
[all …]
H A Dmboxd_windows.c52 * @context: The mbox context pointer
56 static int init_window_mem(struct mbox_context *context) in init_window_mem() argument
58 void *mem_location = context->mem; in init_window_mem()
68 for (i = 0; i < context->windows.num; i++) { in init_window_mem()
69 uint32_t size = context->windows.window[i].size; in init_window_mem()
72 context->windows.window[i].mem = mem_location; in init_window_mem()
74 if (mem_location > (context->mem + context->mem_size)) { in init_window_mem()
78 MSG_ERR("Mem size: 0x%.8x\n", context->mem_size); in init_window_mem()
87 * @context: The mbox context pointer
91 int init_windows(struct mbox_context *context) in init_windows() argument
[all …]
H A Dmboxd_lpc.c35 int __init_lpc_dev(struct mbox_context *context, const char *path) in __init_lpc_dev() argument
56 context->fds[LPC_CTRL_FD].fd = fd; in __init_lpc_dev()
66 context->mem_size = map.size; in __init_lpc_dev()
68 context->lpc_base = 0x0FFFFFFF & -context->mem_size; in __init_lpc_dev()
71 MSG_DBG("Mapping in 0x%.8x bytes of %s\n", context->mem_size, path); in __init_lpc_dev()
72 context->mem = mmap(NULL, context->mem_size, PROT_READ | PROT_WRITE, in __init_lpc_dev()
74 if (context->mem == MAP_FAILED) { in __init_lpc_dev()
82 int init_lpc_dev(struct mbox_context *context) in init_lpc_dev() argument
84 return __init_lpc_dev(context, LPC_CTRL_PATH); in init_lpc_dev()
87 void free_lpc_dev(struct mbox_context *context) in free_lpc_dev() argument
[all …]
H A Dmboxd.c53 static int poll_loop(struct mbox_context *context) in poll_loop() argument
59 context->fds[i].events = POLLIN; in poll_loop()
63 rc = poll(context->fds, POLL_FDS, -1); in poll_loop()
71 if (context->fds[SIG_FD].revents & POLLIN) { /* Signal */ in poll_loop()
74 rc = read(context->fds[SIG_FD].fd, (void *) &info, in poll_loop()
86 context->terminate = true; in poll_loop()
90 reset_all_windows(context, SET_BMC_EVENT); in poll_loop()
91 rc = reset_lpc(context); in poll_loop()
105 if (context->fds[DBUS_FD].revents & POLLIN) { /* DBUS */ in poll_loop()
106 while ((rc = sd_bus_process(context->bus, NULL)) > 0) { in poll_loop()
[all …]
H A Dmboxd_flash.c33 int init_flash_dev(struct mbox_context *context) in init_flash_dev() argument
53 context->fds[MTD_FD].fd = fd; in init_flash_dev()
56 if (ioctl(fd, MEMGETINFO, &context->mtd_info) == -1) { in init_flash_dev()
63 if (context->flash_size == 0) { in init_flash_dev()
70 * context->flash_size, and not the size of the flash device. in init_flash_dev()
74 * access to the mbox context. Rather than requiring in init_flash_dev()
76 * on context->flash_size being set to the size reported by the 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()
[all …]
/openbmc/qemu/target/hexagon/idef-parser/
H A Dparser-helpers.h47 Context *c,
51 #define yyassert(context, locp, condition, msg) \ argument
53 yyerror(locp, (context)->scanner, (context), (msg)); \
59 bool is_inside_ternary(Context *c);
65 void str_print(Context *c, YYLTYPE *locp, const char *string);
67 void uint8_print(Context *c, YYLTYPE *locp, uint8_t *num);
69 void uint64_print(Context *c, YYLTYPE *locp, uint64_t *num);
71 void int_print(Context *c, YYLTYPE *locp, int *num);
73 void uint_print(Context *c, YYLTYPE *locp, unsigned *num);
75 void tmp_print(Context *c, YYLTYPE *locp, HexTmp *tmp);
[all …]
/openbmc/linux/security/selinux/ss/
H A Dmls.h27 #include "context.h"
31 int mls_compute_context_len(struct policydb *p, struct context *context);
32 void mls_sid_to_context(struct policydb *p, struct context *context,
34 int mls_context_isvalid(struct policydb *p, struct context *c);
41 struct context *context,
45 int mls_from_string(struct policydb *p, char *str, struct context *context,
48 int mls_range_set(struct context *context, struct mls_range *range);
52 struct context *oldc,
53 struct context *newc);
56 struct context *scontext,
[all …]
H A Dmls.c34 * security context string representation of `context'.
36 int mls_compute_context_len(struct policydb *p, struct context *context) in mls_compute_context_len() argument
48 u32 index_sens = context->range.level[l].sens; in mls_compute_context_len()
54 e = &context->range.level[l].cat; in mls_compute_context_len()
73 if (mls_level_eq(&context->range.level[0], in mls_compute_context_len()
74 &context->range.level[1])) in mls_compute_context_len()
85 * Write the security context string representation of
86 * the MLS fields of `context' into the string `*scontext'.
90 struct context *context, in mls_sid_to_context() argument
108 context->range.level[l].sens - 1)); in mls_sid_to_context()
[all …]
/openbmc/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_mmu.c16 static void etnaviv_context_unmap(struct etnaviv_iommu_context *context, in etnaviv_context_unmap() argument
29 unmapped_page = context->global->ops->unmap(context, iova, in etnaviv_context_unmap()
39 static int etnaviv_context_map(struct etnaviv_iommu_context *context, in etnaviv_context_map() argument
55 ret = context->global->ops->map(context, iova, paddr, pgsize, in etnaviv_context_map()
67 etnaviv_context_unmap(context, orig_iova, orig_size - size); in etnaviv_context_map()
72 static int etnaviv_iommu_map(struct etnaviv_iommu_context *context, u32 iova, in etnaviv_iommu_map() argument
79 if (!context || !sgt) in etnaviv_iommu_map()
88 ret = etnaviv_context_map(context, da, pa, bytes, prot); in etnaviv_iommu_map()
95 context->flush_seq++; in etnaviv_iommu_map()
100 etnaviv_context_unmap(context, iova, da - iova); in etnaviv_iommu_map()
[all …]
H A Detnaviv_iommu.c28 to_v1_context(struct etnaviv_iommu_context *context) in to_v1_context() argument
30 return container_of(context, struct etnaviv_iommuv1_context, base); in to_v1_context()
33 static void etnaviv_iommuv1_free(struct etnaviv_iommu_context *context) in etnaviv_iommuv1_free() argument
35 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_free()
37 drm_mm_takedown(&context->mm); in etnaviv_iommuv1_free()
39 dma_free_wc(context->global->dev, PT_SIZE, v1_context->pgtable_cpu, in etnaviv_iommuv1_free()
42 context->global->v1.shared_context = NULL; in etnaviv_iommuv1_free()
47 static int etnaviv_iommuv1_map(struct etnaviv_iommu_context *context, in etnaviv_iommuv1_map() argument
51 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_map()
62 static size_t etnaviv_iommuv1_unmap(struct etnaviv_iommu_context *context, in etnaviv_iommuv1_unmap() argument
[all …]
/openbmc/qemu/libdecnumber/
H A DdecContext.c1 /* Decimal context module for the decNumber C Library.
32 /* Decimal Context module */
35 /* context structures. */
67 /* context is the context structure to be queried */
70 /* returns context */
74 decContext *decContextClearStatus(decContext *context, uInt mask) { in decContextClearStatus() argument
75 context->status&=~mask; in decContextClearStatus()
76 return context; in decContextClearStatus()
80 /* decContextDefault -- initialize a context structure */
82 /* context is the structure to be initialized */
[all …]
/openbmc/linux/kernel/
H A Dauditsc.c28 * Subject and object context labeling support added by <danjones@us.ibm.com>
220 * it's going to remain 1-element for almost any setup) until we free context itself.
456 /* Determine if any context name data matches a rule's watch data */
814 * @ctx: audit context
848 * @ctx: audit context
914 static inline void audit_proctitle_free(struct audit_context *context) in audit_proctitle_free() argument
916 kfree(context->proctitle.value); in audit_proctitle_free()
917 context->proctitle.value = NULL; in audit_proctitle_free()
918 context->proctitle.len = 0; in audit_proctitle_free()
921 static inline void audit_free_module(struct audit_context *context) in audit_free_module() argument
[all …]
/openbmc/linux/drivers/gpu/drm/tegra/
H A Duapi.c31 static void tegra_drm_channel_context_close(struct tegra_drm_context *context) in tegra_drm_channel_context_close() argument
36 if (context->memory_context) in tegra_drm_channel_context_close()
37 host1x_memory_context_put(context->memory_context); in tegra_drm_channel_context_close()
39 xa_for_each(&context->mappings, id, mapping) in tegra_drm_channel_context_close()
42 xa_destroy(&context->mappings); in tegra_drm_channel_context_close()
44 host1x_channel_put(context->channel); in tegra_drm_channel_context_close()
46 kfree(context); in tegra_drm_channel_context_close()
51 struct tegra_drm_context *context; in tegra_drm_uapi_close_file() local
55 xa_for_each(&file->contexts, id, context) in tegra_drm_uapi_close_file()
56 tegra_drm_channel_context_close(context); in tegra_drm_uapi_close_file()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_attr_list.c54 struct xfs_attr_list_context *context) in xfs_attr_shortform_list() argument
56 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr_shortform_list()
57 struct xfs_inode *dp = context->dp; in xfs_attr_shortform_list()
69 trace_xfs_attr_list_sf(context); in xfs_attr_shortform_list()
80 if (context->bufsize == 0 || in xfs_attr_shortform_list()
82 (dp->i_af.if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
84 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr_shortform_list()
89 context->put_listent(context, in xfs_attr_shortform_list()
98 if (context->seen_enough) in xfs_attr_shortform_list()
102 trace_xfs_attr_list_sf_all(context); in xfs_attr_shortform_list()
[all …]
/openbmc/linux/drivers/platform/x86/intel/int1092/
H A Dintel_sar.c33 * @context: pointer to driver context structure
36 * context->reg_value will never exceed MAX_REGULATORY
38 static void update_sar_data(struct wwan_sar_context *context) in update_sar_data() argument
41 &context->config_data[context->reg_value]; in update_sar_data()
44 context->sar_data.device_mode < config->total_dev_mode) { in update_sar_data()
48 if (context->sar_data.device_mode == in update_sar_data()
53 context->sar_data.antennatable_index = dev_mode->antennatable_index; in update_sar_data()
54 context->sar_data.bandtable_index = dev_mode->bandtable_index; in update_sar_data()
55 context->sar_data.sartable_index = dev_mode->sartable_index; in update_sar_data()
64 * @context: pointer to driver context structure
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_nvmetcp_fw_funcs.c129 init_nvmetcp_task_params(struct e5_nvmetcp_task_context *context, in init_nvmetcp_task_params() argument
133 context->ystorm_st_context.state.cccid = task_params->host_cccid; in init_nvmetcp_task_params()
134 SET_FIELD(context->ustorm_st_context.error_flags, USTORM_NVMETCP_TASK_ST_CTX_NVME_TCP, 1); in init_nvmetcp_task_params()
135 context->ustorm_st_context.nvme_tcp_opaque_lo = cpu_to_le32(task_params->opq.lo); in init_nvmetcp_task_params()
136 context->ustorm_st_context.nvme_tcp_opaque_hi = cpu_to_le32(task_params->opq.hi); in init_nvmetcp_task_params()
145 struct e5_nvmetcp_task_context *context = task_params->context; in init_default_nvmetcp_task() local
146 const u8 val_byte = context->mstorm_ag_context.cdu_validation; in init_default_nvmetcp_task()
149 memset(context, 0, sizeof(*context)); in init_default_nvmetcp_task()
150 init_nvmetcp_task_params(context, task_params, in init_default_nvmetcp_task()
159 context->ystorm_st_context.pdu_hdr.task_hdr.reg[dw_index] = in init_default_nvmetcp_task()
[all …]

12345678910>>...204