Home
last modified time | relevance | path

Searched full:contexts (Results 1 – 25 of 1225) sorted by relevance

12345678910>>...49

/kernel/linux/linux-5.10/scripts/selinux/
Dinstall_policy.sh44 mkdir -p /etc/selinux/dummy/contexts/files
47 echo "base_r:base_t:s0" > /etc/selinux/dummy/contexts/failsafe_context
49 cat > /etc/selinux/dummy/contexts/x_contexts <<EOF
56 touch /etc/selinux/dummy/contexts/virtual_domain_context
57 touch /etc/selinux/dummy/contexts/virtual_image_context
59 cp file_contexts /etc/selinux/dummy/contexts/files
60 cp dbus_contexts /etc/selinux/dummy/contexts
62 FC_FILE=/etc/selinux/dummy/contexts/files/file_contexts
77 cd /etc/selinux/dummy/contexts/files
/kernel/linux/linux-5.10/arch/microblaze/include/asm/
Dmmu_context_mm.h21 * This function defines the mapping from contexts to VSIDs (virtual
30 MicroBlaze has 256 contexts, so we can just rotate through these
31 as a way of "switching" contexts. If the TID of the TLB is zero,
33 to represent all kernel pages as shared among all contexts.
57 * Bitmap of contexts in use.
70 * Since we don't have sufficient contexts to give one to every task
71 * that could be in the system, we need to be able to steal contexts.
/kernel/linux/linux-4.19/arch/microblaze/include/asm/
Dmmu_context_mm.h24 * This function defines the mapping from contexts to VSIDs (virtual
33 MicroBlaze has 256 contexts, so we can just rotate through these
34 as a way of "switching" contexts. If the TID of the TLB is zero,
36 to represent all kernel pages as shared among all contexts.
60 * Bitmap of contexts in use.
73 * Since we don't have sufficient contexts to give one to every task
74 * that could be in the system, we need to be able to steal contexts.
/kernel/linux/linux-4.19/drivers/gpu/drm/i915/
Di915_gem_context.c34 * supports contexts for the render ring.
36 * In software, there is a distinction between contexts created by the user,
45 * swap out, and/or destroy other contexts.
47 * All other contexts are created as a request by the GPU client. These contexts
141 ida_simple_remove(&ctx->i915->contexts.hw_ida, ctx->hw_id); in i915_gem_context_free()
147 struct llist_node *freed = llist_del_all(&i915->contexts.free_list); in contexts_free()
163 freed = llist_del_first(&i915->contexts.free_list); in contexts_free_first()
174 container_of(work, typeof(*i915), contexts.free_work); in contexts_free_worker()
187 if (llist_add(&ctx->free_link, &i915->contexts.free_list)) in i915_gem_context_release()
188 queue_work(i915->wq, &i915->contexts.free_work); in i915_gem_context_release()
[all …]
/kernel/linux/linux-4.19/scripts/selinux/
Dinstall_policy.sh26 mkdir -p /etc/selinux/dummy/contexts/files
28 cp file_contexts /etc/selinux/dummy/contexts/files
29 cp dbus_contexts /etc/selinux/dummy/contexts
31 FC_FILE=/etc/selinux/dummy/contexts/files/file_contexts
57 cd /etc/selinux/dummy/contexts/files
/kernel/linux/linux-4.19/Documentation/ABI/testing/
Dsysfs-class-ocxl8 What: /sys/class/ocxl/<afu name>/contexts
12 Number of contexts for the AFU, in the format <n>/<max>
14 n: number of currently active contexts, for debug
15 max: maximum number of contexts supported by the AFU
Dsysfs-class-cxl7 Slave contexts (eg. /sys/class/cxl/afu0.0s):
63 provided that no user contexts are attached.
87 contexts active on the AFU.
147 Master contexts (eg. /sys/class/cxl/afu0.0m)
154 by userspace. This includes all slave contexts space also.
226 contexts active on any one of the card AFUs. This may cause
229 contexts on the card AFUs.
/kernel/linux/linux-4.19/drivers/gpu/drm/i915/selftests/
Dmock_context.c53 ret = ida_simple_get(&i915->contexts.hw_ida, in mock_context()
88 INIT_LIST_HEAD(&i915->contexts.list); in mock_init_contexts()
89 ida_init(&i915->contexts.hw_ida); in mock_init_contexts()
91 INIT_WORK(&i915->contexts.free_work, contexts_free_worker); in mock_init_contexts()
92 init_llist_head(&i915->contexts.free_list); in mock_init_contexts()
/kernel/linux/linux-4.19/arch/powerpc/mm/
Dmmu_context_nohash.c58 * The MPC8xx has only 16 contexts. We rotate through them on each task switch.
59 * A better way would be to keep track of tasks that own contexts, and implement
65 * The IBM4xx has 256 contexts, so we can just rotate through these as a way of
66 * "switching" contexts. If the TID of the TLB is zero, the PID/TID comparison
68 * shared among all contexts. -- Dan
70 * The IBM 47x core supports 16-bit PIDs, thus 65535 contexts. We should
126 * we cannot steal active contexts in steal_context_smp()
155 /* This will happen if you have more CPUs than available contexts, in steal_context_smp()
195 /* Flush the TLB for all contexts (not to be used on SMP) */ in steal_all_contexts()
256 pr_err("MMU: More active contexts than CPUs ! (%d vs %d)\n", in context_check_map()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
Dmmu_context.c54 * The MPC8xx has only 16 contexts. We rotate through them on each task switch.
55 * A better way would be to keep track of tasks that own contexts, and implement
61 * The IBM4xx has 256 contexts, so we can just rotate through these as a way of
62 * "switching" contexts. If the TID of the TLB is zero, the PID/TID comparison
64 * shared among all contexts. -- Dan
66 * The IBM 47x core supports 16-bit PIDs, thus 65535 contexts. We should
122 * we cannot steal active contexts in steal_context_smp()
151 /* This will happen if you have more CPUs than available contexts, in steal_context_smp()
191 /* Flush the TLB for all contexts (not to be used on SMP) */ in steal_all_contexts()
252 pr_err("MMU: More active contexts than CPUs ! (%d vs %d)\n", in context_check_map()
[all …]
/kernel/linux/linux-4.19/Documentation/powerpc/
Dcxl.txt84 When using AFU directed mode, up to 16K simultaneous contexts can
135 context. Master contexts have access to the full MMIO space an
136 AFU provides. Slave contexts have access to only the per process
142 that the AFU provides (like master contexts in AFU directed).
162 An AFU directed mode AFU can have many contexts, the device can be
165 When all available contexts are allocated the open call will fail
169 the number of contexts that can be created, and therefore
173 contexts can be allocated. If 4 IRQs are needed per context,
174 then only 2037/4 = 509 contexts can be allocated.
245 In AFU directed mode, master contexts are allowed to map all of
[all …]
/kernel/linux/linux-5.10/Documentation/powerpc/
Dcxl.rst89 When using AFU directed mode, up to 16K simultaneous contexts can
141 context. Master contexts have access to the full MMIO space an
142 AFU provides. Slave contexts have access to only the per process
148 that the AFU provides (like master contexts in AFU directed).
170 An AFU directed mode AFU can have many contexts, the device can be
173 When all available contexts are allocated the open call will fail
178 the number of contexts that can be created, and therefore
182 contexts can be allocated. If 4 IRQs are needed per context,
183 then only 2037/4 = 509 contexts can be allocated.
256 In AFU directed mode, master contexts are allowed to map all of
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dnetdev_rx.c77 /* Netdev contexts are always NO_RDMA_RTAIL */ in hfi1_netdev_allocate_ctxt()
144 * hfi1_num_netdev_contexts - Count of netdev recv contexts to use.
145 * @dd: device on which to allocate netdev contexts
146 * @available_contexts: count of available receive contexts
147 * @cpu_mask: mask of possible cpus to include for contexts
150 * contexts for netdev recv context usage up to the maximum of
153 * a memory allocation error occurs or when there are no available contexts.
165 /* Always give user contexts priority over netdev contexts */ in hfi1_num_netdev_contexts()
167 dd_dev_info(dd, "No receive contexts available for netdevs.\n"); in hfi1_num_netdev_contexts()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-ocxl8 What: /sys/class/ocxl/<afu name>/contexts
12 Number of contexts for the AFU, in the format <n>/<max>
16 n number of currently active contexts, for debug
17 max maximum number of contexts supported by the AFU
Dsysfs-class-cxl7 Slave contexts (eg. /sys/class/cxl/afu0.0s):
63 provided that no user contexts are attached.
92 contexts active on the AFU.
152 Master contexts (eg. /sys/class/cxl/afu0.0m)
159 by userspace. This includes all slave contexts space also.
232 contexts active on any one of the card AFUs. This may cause
235 contexts on the card AFUs.
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dmain.c614 priv->contexts[i].ctxid = i; in iwl_init_context()
616 priv->contexts[IWL_RXON_CTX_BSS].always_active = true; in iwl_init_context()
617 priv->contexts[IWL_RXON_CTX_BSS].is_active = true; in iwl_init_context()
618 priv->contexts[IWL_RXON_CTX_BSS].rxon_cmd = REPLY_RXON; in iwl_init_context()
619 priv->contexts[IWL_RXON_CTX_BSS].rxon_timing_cmd = REPLY_RXON_TIMING; in iwl_init_context()
620 priv->contexts[IWL_RXON_CTX_BSS].rxon_assoc_cmd = REPLY_RXON_ASSOC; in iwl_init_context()
621 priv->contexts[IWL_RXON_CTX_BSS].qos_cmd = REPLY_QOS_PARAM; in iwl_init_context()
622 priv->contexts[IWL_RXON_CTX_BSS].ap_sta_id = IWL_AP_ID; in iwl_init_context()
623 priv->contexts[IWL_RXON_CTX_BSS].wep_key_cmd = REPLY_WEPKEY; in iwl_init_context()
624 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID; in iwl_init_context()
[all …]
/kernel/linux/linux-4.19/drivers/net/wireless/intel/iwlwifi/dvm/
Dmain.c629 priv->contexts[i].ctxid = i; in iwl_init_context()
631 priv->contexts[IWL_RXON_CTX_BSS].always_active = true; in iwl_init_context()
632 priv->contexts[IWL_RXON_CTX_BSS].is_active = true; in iwl_init_context()
633 priv->contexts[IWL_RXON_CTX_BSS].rxon_cmd = REPLY_RXON; in iwl_init_context()
634 priv->contexts[IWL_RXON_CTX_BSS].rxon_timing_cmd = REPLY_RXON_TIMING; in iwl_init_context()
635 priv->contexts[IWL_RXON_CTX_BSS].rxon_assoc_cmd = REPLY_RXON_ASSOC; in iwl_init_context()
636 priv->contexts[IWL_RXON_CTX_BSS].qos_cmd = REPLY_QOS_PARAM; in iwl_init_context()
637 priv->contexts[IWL_RXON_CTX_BSS].ap_sta_id = IWL_AP_ID; in iwl_init_context()
638 priv->contexts[IWL_RXON_CTX_BSS].wep_key_cmd = REPLY_WEPKEY; in iwl_init_context()
639 priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID; in iwl_init_context()
[all …]
/kernel/linux/linux-5.10/drivers/misc/vmw_vmci/
Dvmci_host.c102 * are VMX'en with active VMCI contexts using the host device.
147 * The number of active contexts is used to track whether any in vmci_host_close()
362 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_send_datagram()
418 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_receive_datagram()
449 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_alloc_queuepair()
518 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_queuepair_setva()
566 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_queuepair_setpf()
637 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_qp_detach()
664 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_ctx_add_notify()
687 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_ctx_remove_notify()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dasync.h50 * Note: This function may be called from atomic or non-atomic contexts.
66 * Note: This function may be called from atomic or non-atomic contexts.
85 * Note: This function may be called from atomic or non-atomic contexts.
106 * Note: This function may be called from atomic or non-atomic contexts.
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/
Dgang.c37 WARN_ON(gang->contexts || !list_empty(&gang->list)); in destroy_spu_gang()
57 gang->contexts++; in spu_gang_add_ctx()
70 gang->contexts--; in spu_gang_remove_ctx()
/kernel/linux/linux-4.19/drivers/misc/vmw_vmci/
Dvmci_host.c111 * are VMX'en with active VMCI contexts using the host device.
151 * The number of active contexts is used to track whether any in vmci_host_close()
366 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_send_datagram()
422 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_receive_datagram()
454 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_alloc_queuepair()
525 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_queuepair_setva()
573 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_queuepair_setpf()
644 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_qp_detach()
671 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_ctx_add_notify()
694 vmci_ioctl_err("only valid for contexts\n"); in vmci_host_do_ctx_remove_notify()
[all …]
/kernel/linux/linux-4.19/arch/powerpc/platforms/cell/spufs/
Dgang.c50 WARN_ON(gang->contexts || !list_empty(&gang->list)); in destroy_spu_gang()
70 gang->contexts++; in spu_gang_add_ctx()
83 gang->contexts--; in spu_gang_remove_ctx()
/kernel/linux/linux-4.19/net/6lowpan/
Ddebugfs.c286 struct dentry *contexts, *dentry; in lowpan_dev_debugfs_init() local
294 contexts = debugfs_create_dir("contexts", ldev->iface_debugfs); in lowpan_dev_debugfs_init()
295 if (!contexts) in lowpan_dev_debugfs_init()
298 dentry = debugfs_create_file("show", 0644, contexts, in lowpan_dev_debugfs_init()
305 ret = lowpan_dev_debugfs_ctx_init(dev, contexts, i); in lowpan_dev_debugfs_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_context.c2 * Legacy: Generic DRM Contexts
127 * drm_ctxbitmap_flush() - Flush all contexts owned by a file
129 * @file: Open file to flush contexts for
131 * This iterates over all contexts on @dev and drops them if they're owned by
132 * @file. Note that after this call returns, new contexts might be added if
322 * Reserve contexts.
345 if (copy_to_user(&res->contexts[i], &ctx, sizeof(ctx))) in drm_legacy_resctx()
383 DRM_DEBUG("Not enough free contexts.\n"); in drm_legacy_addctx()
/kernel/linux/linux-4.19/drivers/gpu/drm/
Ddrm_context.c2 * Legacy: Generic DRM Contexts
121 * drm_ctxbitmap_flush() - Flush all contexts owned by a file
123 * @file: Open file to flush contexts for
125 * This iterates over all contexts on @dev and drops them if they're owned by
126 * @file. Note that after this call returns, new contexts might be added if
316 * Reserve contexts.
339 if (copy_to_user(&res->contexts[i], &ctx, sizeof(ctx))) in drm_legacy_resctx()
377 DRM_DEBUG("Not enough free contexts.\n"); in drm_legacy_addctx()

12345678910>>...49