Home
last modified time | relevance | path

Searched refs:contexts (Results 1 - 25 of 83) sorted by relevance

1234

/kernel/linux/linux-6.6/mm/damon/
H A Dsysfs.c810 * contexts directory
824 static void damon_sysfs_contexts_rm_dirs(struct damon_sysfs_contexts *contexts) in damon_sysfs_contexts_rm_dirs() argument
826 struct damon_sysfs_context **contexts_arr = contexts->contexts_arr; in damon_sysfs_contexts_rm_dirs()
829 for (i = 0; i < contexts->nr; i++) { in damon_sysfs_contexts_rm_dirs()
833 contexts->nr = 0; in damon_sysfs_contexts_rm_dirs()
835 contexts->contexts_arr = NULL; in damon_sysfs_contexts_rm_dirs()
838 static int damon_sysfs_contexts_add_dirs(struct damon_sysfs_contexts *contexts, in damon_sysfs_contexts_add_dirs() argument
844 damon_sysfs_contexts_rm_dirs(contexts); in damon_sysfs_contexts_add_dirs()
852 contexts->contexts_arr = contexts_arr; in damon_sysfs_contexts_add_dirs()
857 damon_sysfs_contexts_rm_dirs(contexts); in damon_sysfs_contexts_add_dirs()
885 struct damon_sysfs_contexts *contexts = container_of(kobj, nr_contexts_show() local
894 struct damon_sysfs_contexts *contexts; nr_contexts_store() local
941 struct damon_sysfs_contexts *contexts; global() member
952 struct damon_sysfs_contexts *contexts; damon_sysfs_kdamond_add_dirs() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
H A 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_BS in iwl_init_context()
[all...]
H A Drxon.c306 priv->contexts[IWL_RXON_CTX_BSS].vif && in iwl_send_rxon_timing()
307 priv->contexts[IWL_RXON_CTX_BSS].vif->bss_conf.beacon_int) { in iwl_send_rxon_timing()
309 priv->contexts[IWL_RXON_CTX_BSS].timing.beacon_interval; in iwl_send_rxon_timing()
313 priv->contexts[IWL_RXON_CTX_PAN].vif && in iwl_send_rxon_timing()
314 priv->contexts[IWL_RXON_CTX_PAN].vif->bss_conf.beacon_int && in iwl_send_rxon_timing()
318 priv->contexts[IWL_RXON_CTX_PAN].timing.beacon_interval; in iwl_send_rxon_timing()
392 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; in iwl_set_tx_power()
528 ctx_bss = &priv->contexts[IWL_RXON_CTX_BSS]; in iwlagn_set_pan_params()
529 ctx_pan = &priv->contexts[IWL_RXON_CTX_PAN]; in iwlagn_set_pan_params()
896 struct iwl_rxon_context *ctx = &priv->contexts[ctxi in iwl_print_rx_config_cmd()
[all...]
H A Ddev.h722 struct iwl_rxon_context contexts[NUM_IWL_RXON_CTX]; member
904 for (ctx = &priv->contexts[IWL_RXON_CTX_BSS]; \
905 ctx < &priv->contexts[NUM_IWL_RXON_CTX]; ctx++) \
916 return iwl_is_associated_ctx(&priv->contexts[ctxid]); in iwl_is_associated()
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dmain.c608 priv->contexts[i].ctxid = i; in iwl_init_context()
610 priv->contexts[IWL_RXON_CTX_BSS].always_active = true; in iwl_init_context()
611 priv->contexts[IWL_RXON_CTX_BSS].is_active = true; in iwl_init_context()
612 priv->contexts[IWL_RXON_CTX_BSS].rxon_cmd = REPLY_RXON; in iwl_init_context()
613 priv->contexts[IWL_RXON_CTX_BSS].rxon_timing_cmd = REPLY_RXON_TIMING; in iwl_init_context()
614 priv->contexts[IWL_RXON_CTX_BSS].rxon_assoc_cmd = REPLY_RXON_ASSOC; in iwl_init_context()
615 priv->contexts[IWL_RXON_CTX_BSS].qos_cmd = REPLY_QOS_PARAM; in iwl_init_context()
616 priv->contexts[IWL_RXON_CTX_BSS].ap_sta_id = IWL_AP_ID; in iwl_init_context()
617 priv->contexts[IWL_RXON_CTX_BSS].wep_key_cmd = REPLY_WEPKEY; in iwl_init_context()
618 priv->contexts[IWL_RXON_CTX_BS in iwl_init_context()
[all...]
H A Drxon.c301 priv->contexts[IWL_RXON_CTX_BSS].vif && in iwl_send_rxon_timing()
302 priv->contexts[IWL_RXON_CTX_BSS].vif->bss_conf.beacon_int) { in iwl_send_rxon_timing()
304 priv->contexts[IWL_RXON_CTX_BSS].timing.beacon_interval; in iwl_send_rxon_timing()
308 priv->contexts[IWL_RXON_CTX_PAN].vif && in iwl_send_rxon_timing()
309 priv->contexts[IWL_RXON_CTX_PAN].vif->bss_conf.beacon_int && in iwl_send_rxon_timing()
313 priv->contexts[IWL_RXON_CTX_PAN].timing.beacon_interval; in iwl_send_rxon_timing()
387 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; in iwl_set_tx_power()
523 ctx_bss = &priv->contexts[IWL_RXON_CTX_BSS]; in iwlagn_set_pan_params()
524 ctx_pan = &priv->contexts[IWL_RXON_CTX_PAN]; in iwlagn_set_pan_params()
891 struct iwl_rxon_context *ctx = &priv->contexts[ctxi in iwl_print_rx_config_cmd()
[all...]
H A Ddev.h718 struct iwl_rxon_context contexts[NUM_IWL_RXON_CTX]; member
900 for (ctx = &priv->contexts[IWL_RXON_CTX_BSS]; \
901 ctx < &priv->contexts[NUM_IWL_RXON_CTX]; ctx++) \
912 return iwl_is_associated_ctx(&priv->contexts[ctxid]); in iwl_is_associated()
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/
H A Duapi.c55 xa_for_each(&file->contexts, id, context) in tegra_drm_uapi_close_file()
61 xa_destroy(&file->contexts); in tegra_drm_uapi_close_file()
127 * OK, HW does not support contexts or contexts 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()
170 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_close()
176 xa_erase(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_close()
200 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_map()
281 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_unmap()
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/
H A 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-6.6/arch/powerpc/platforms/cell/spufs/
H A 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-6.6/drivers/gpu/drm/i915/
H A Di915_sysfs.c79 spin_lock(&i915->gem.contexts.lock); in i915_l3_read()
84 spin_unlock(&i915->gem.contexts.lock); in i915_l3_read()
112 spin_lock(&i915->gem.contexts.lock); in i915_l3_write()
125 list_for_each_entry(ctx, &i915->gem.contexts.list, link) in i915_l3_write()
128 spin_unlock(&i915->gem.contexts.lock); in i915_l3_write()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/pxp/
H A Dintel_pxp.c41 * session are marked as invalid and all contexts marked as using protected
457 /* ban all contexts marked as protected */ in intel_pxp_invalidate()
458 spin_lock_irq(&i915->gem.contexts.lock); in intel_pxp_invalidate()
459 list_for_each_entry_safe(ctx, cn, &i915->gem.contexts.list, link) { in intel_pxp_invalidate()
471 spin_unlock_irq(&i915->gem.contexts.lock); in intel_pxp_invalidate()
497 spin_lock_irq(&i915->gem.contexts.lock); in intel_pxp_invalidate()
501 spin_unlock_irq(&i915->gem.contexts.lock); in intel_pxp_invalidate()
/kernel/linux/linux-5.10/net/6lowpan/
H A Ddebugfs.c248 struct dentry *contexts; in lowpan_dev_debugfs_init() local
254 contexts = debugfs_create_dir("contexts", ldev->iface_debugfs); in lowpan_dev_debugfs_init()
256 debugfs_create_file("show", 0644, contexts, &lowpan_dev(dev)->ctx, in lowpan_dev_debugfs_init()
260 lowpan_dev_debugfs_ctx_init(dev, contexts, i); in lowpan_dev_debugfs_init()
/kernel/linux/linux-6.6/net/6lowpan/
H A Ddebugfs.c248 struct dentry *contexts; in lowpan_dev_debugfs_init() local
254 contexts = debugfs_create_dir("contexts", ldev->iface_debugfs); in lowpan_dev_debugfs_init()
256 debugfs_create_file("show", 0644, contexts, &lowpan_dev(dev)->ctx, in lowpan_dev_debugfs_init()
260 lowpan_dev_debugfs_ctx_init(dev, contexts, i); in lowpan_dev_debugfs_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
H A Di915_vma.c108 struct list_head *contexts) in create_vmas()
116 list_for_each_entry(ctx, contexts, link) { in create_vmas()
157 LIST_HEAD(contexts); in igt_vma_create()
182 list_move(&ctx->link, &contexts); in igt_vma_create()
185 err = create_vmas(i915, &objects, &contexts); in igt_vma_create()
190 "%s timed out: after %lu objects in %lu contexts\n", in igt_vma_create()
195 list_for_each_entry_safe(ctx, cn, &contexts, link) { in igt_vma_create()
204 /* Final pass to lookup all created contexts */ in igt_vma_create()
205 err = create_vmas(i915, &objects, &contexts); in igt_vma_create()
207 list_for_each_entry_safe(ctx, cn, &contexts, lin in igt_vma_create()
106 create_vmas(struct drm_i915_private *i915, struct list_head *objects, struct list_head *contexts) create_vmas() argument
[all...]
H A Di915_request.c272 struct i915_gem_context **contexts; member
343 t->contexts[order[n] % t->ncontexts]; in __igt_breadcrumbs_smoketest()
455 t.contexts = kcalloc(t.ncontexts, sizeof(*t.contexts), GFP_KERNEL); in mock_breadcrumbs_smoketest()
456 if (!t.contexts) { in mock_breadcrumbs_smoketest()
462 t.contexts[n] = mock_context(t.engine->i915, "mock"); in mock_breadcrumbs_smoketest()
463 if (!t.contexts[n]) { in mock_breadcrumbs_smoketest()
500 if (!t.contexts[n]) in mock_breadcrumbs_smoketest()
502 mock_context_close(t.contexts[n]); in mock_breadcrumbs_smoketest()
504 kfree(t.contexts); in mock_breadcrumbs_smoketest()
[all...]
H A Di915_mock_selftests.h35 selftest(contexts, i915_gem_context_mock_selftests)
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/
H A Dispcsi2.c220 struct isp_csi2_ctx_cfg *ctx = &csi2->contexts[0]; in csi2_set_outaddr()
250 struct isp_csi2_ctx_cfg *ctx = &csi2->contexts[ctxnum]; in csi2_ctx_enable()
561 if (csi2->contexts[0].enabled || csi2->ctrl.if_enable) in csi2_configure()
597 csi2->contexts[0].format_id = csi2_ctx_map_format(csi2); in csi2_configure()
600 csi2->contexts[0].data_offset = 0; in csi2_configure()
602 csi2->contexts[0].data_offset = csi2->video_out.bpl_value; in csi2_configure()
611 csi2->contexts[0].eof_enabled = 1; in csi2_configure()
612 csi2->contexts[0].eol_enabled = 1; in csi2_configure()
621 csi2_ctx_config(isp, csi2, &csi2->contexts[0]); in csi2_configure()
783 csi2_isr_ctx(csi2, &csi2->contexts[ in omap3isp_csi2_isr()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
H A Ddrm.c37 struct idr contexts; member
93 idr_init_base(&fpriv->contexts, 1); in tegra_drm_open()
431 err = idr_alloc(&fpriv->contexts, context, 1, 0, GFP_KERNEL); in tegra_client_open()
486 context = idr_find(&fpriv->contexts, args->context); in tegra_close_channel()
492 idr_remove(&fpriv->contexts, context->id); in tegra_close_channel()
511 context = idr_find(&fpriv->contexts, args->context); in tegra_get_syncpt()
540 context = idr_find(&fpriv->contexts, args->context); in tegra_submit()
565 context = idr_find(&fpriv->contexts, args->context); in tegra_get_syncpt_base()
791 idr_for_each(&fpriv->contexts, tegra_drm_context_cleanup, NULL); in tegra_drm_postclose()
794 idr_destroy(&fpriv->contexts); in tegra_drm_postclose()
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/omap4iss/
H A Diss_csi2.c254 struct iss_csi2_ctx_cfg *ctx = &csi2->contexts[0]; in csi2_set_outaddr()
283 struct iss_csi2_ctx_cfg *ctx = &csi2->contexts[ctxnum]; in csi2_ctx_enable()
538 if (csi2->contexts[0].enabled || csi2->ctrl.if_enable) in csi2_configure()
568 csi2->contexts[0].format_id = csi2_ctx_map_format(csi2); in csi2_configure()
571 csi2->contexts[0].data_offset = 0; in csi2_configure()
573 csi2->contexts[0].data_offset = csi2->video_out.bpl_value; in csi2_configure()
582 csi2->contexts[0].eof_enabled = 1; in csi2_configure()
583 csi2->contexts[0].eol_enabled = 1; in csi2_configure()
592 csi2_ctx_config(csi2, &csi2->contexts[0]); in csi2_configure()
780 csi2_isr_ctx(csi2, &csi2->contexts[ in omap4iss_csi2_isr()
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/ti/omap3isp/
H A Dispcsi2.c220 struct isp_csi2_ctx_cfg *ctx = &csi2->contexts[0]; in csi2_set_outaddr()
250 struct isp_csi2_ctx_cfg *ctx = &csi2->contexts[ctxnum]; in csi2_ctx_enable()
561 if (csi2->contexts[0].enabled || csi2->ctrl.if_enable) in csi2_configure()
599 csi2->contexts[0].format_id = csi2_ctx_map_format(csi2); in csi2_configure()
602 csi2->contexts[0].data_offset = 0; in csi2_configure()
604 csi2->contexts[0].data_offset = csi2->video_out.bpl_value; in csi2_configure()
613 csi2->contexts[0].eof_enabled = 1; in csi2_configure()
614 csi2->contexts[0].eol_enabled = 1; in csi2_configure()
623 csi2_ctx_config(isp, csi2, &csi2->contexts[0]); in csi2_configure()
785 csi2_isr_ctx(csi2, &csi2->contexts[ in omap3isp_csi2_isr()
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/omap4iss/
H A Diss_csi2.c254 struct iss_csi2_ctx_cfg *ctx = &csi2->contexts[0]; in csi2_set_outaddr()
283 struct iss_csi2_ctx_cfg *ctx = &csi2->contexts[ctxnum]; in csi2_ctx_enable()
538 if (csi2->contexts[0].enabled || csi2->ctrl.if_enable) in csi2_configure()
568 csi2->contexts[0].format_id = csi2_ctx_map_format(csi2); in csi2_configure()
571 csi2->contexts[0].data_offset = 0; in csi2_configure()
573 csi2->contexts[0].data_offset = csi2->video_out.bpl_value; in csi2_configure()
582 csi2->contexts[0].eof_enabled = 1; in csi2_configure()
583 csi2->contexts[0].eol_enabled = 1; in csi2_configure()
592 csi2_ctx_config(csi2, &csi2->contexts[0]); in csi2_configure()
780 csi2_isr_ctx(csi2, &csi2->contexts[ in omap4iss_csi2_isr()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/
H A Di915_request.c284 struct i915_gem_context **contexts; member
366 t->contexts[order[n] % t->ncontexts]; in __igt_breadcrumbs_smoketest()
478 t.contexts = kcalloc(t.ncontexts, sizeof(*t.contexts), GFP_KERNEL); in mock_breadcrumbs_smoketest()
479 if (!t.contexts) { in mock_breadcrumbs_smoketest()
485 t.contexts[n] = mock_context(t.engine->i915, "mock"); in mock_breadcrumbs_smoketest()
486 if (!t.contexts[n]) { in mock_breadcrumbs_smoketest()
532 if (!t.contexts[n]) in mock_breadcrumbs_smoketest()
534 mock_context_close(t.contexts[n]); in mock_breadcrumbs_smoketest()
536 kfree(t.contexts); in mock_breadcrumbs_smoketest()
[all...]
H A Di915_vma.c109 struct list_head *contexts) in create_vmas()
117 list_for_each_entry(ctx, contexts, link) { in create_vmas()
158 LIST_HEAD(contexts); in igt_vma_create()
183 list_move(&ctx->link, &contexts); in igt_vma_create()
186 err = create_vmas(i915, &objects, &contexts); in igt_vma_create()
191 "%s timed out: after %lu objects in %lu contexts\n", in igt_vma_create()
196 list_for_each_entry_safe(ctx, cn, &contexts, link) { in igt_vma_create()
205 /* Final pass to lookup all created contexts */ in igt_vma_create()
206 err = create_vmas(i915, &objects, &contexts); in igt_vma_create()
208 list_for_each_entry_safe(ctx, cn, &contexts, lin in igt_vma_create()
107 create_vmas(struct drm_i915_private *i915, struct list_head *objects, struct list_head *contexts) create_vmas() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_sysfs.c181 spin_lock(&i915->gem.contexts.lock); in i915_l3_read()
186 spin_unlock(&i915->gem.contexts.lock); in i915_l3_read()
214 spin_lock(&i915->gem.contexts.lock); in i915_l3_write()
227 list_for_each_entry(ctx, &i915->gem.contexts.list, link) in i915_l3_write()
230 spin_unlock(&i915->gem.contexts.lock); in i915_l3_write()

Completed in 25 milliseconds

1234