/Linux-v5.4/drivers/misc/vmw_vmci/ |
D | vmci_context.c | 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() 69 void vmci_ctx_check_signal_notify(struct vmci_ctx *context) in vmci_ctx_check_signal_notify() argument 71 spin_lock(&context->lock); in vmci_ctx_check_signal_notify() [all …]
|
D | vmci_route.c | 42 if (VMCI_INVALID_ID == dst->context) in vmci_route() 46 if (VMCI_HYPERVISOR_CONTEXT_ID == dst->context) { in vmci_route() 64 if (VMCI_HOST_CONTEXT_ID == src->context) in vmci_route() 75 if (VMCI_INVALID_ID == src->context && in vmci_route() 77 src->context = vmci_get_context_id(); in vmci_route() 85 if (VMCI_HOST_CONTEXT_ID == dst->context) { in vmci_route() 94 if (src->context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_route() 113 if (VMCI_INVALID_ID == src->context) in vmci_route() 114 src->context = vmci_get_context_id(); in vmci_route() 130 if (VMCI_INVALID_ID == src->context) { in vmci_route() [all …]
|
/Linux-v5.4/security/selinux/ss/ |
D | mls.h | 28 int mls_compute_context_len(struct policydb *p, struct context *context); 29 void mls_sid_to_context(struct policydb *p, struct context *context, 31 int mls_context_isvalid(struct policydb *p, struct context *c); 38 struct context *context, 42 int mls_from_string(struct policydb *p, char *str, struct context *context, 45 int mls_range_set(struct context *context, struct mls_range *range); 49 struct context *oldc, 50 struct context *newc); 53 struct context *scontext, 54 struct context *tcontext, [all …]
|
D | mls.c | 36 int mls_compute_context_len(struct policydb *p, struct context *context) in mls_compute_context_len() argument 48 int 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() 90 struct context *context, in mls_sid_to_context() argument 108 context->range.level[l].sens - 1)); in mls_sid_to_context() 114 e = &context->range.level[l].cat; in mls_sid_to_context() 150 if (mls_level_eq(&context->range.level[0], in mls_sid_to_context() 151 &context->range.level[1])) in mls_sid_to_context() [all …]
|
D | sidtab.c | 40 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context) in sidtab_set_initial() argument 50 rc = context_cpy(&entry->context, context); in sidtab_set_initial() 91 static struct context *sidtab_do_lookup(struct sidtab *s, u32 index, int alloc) in sidtab_do_lookup() 128 return &entry->ptr_leaf->entries[index % SIDTAB_LEAF_ENTRIES].context; in sidtab_do_lookup() 131 static struct context *sidtab_lookup(struct sidtab *s, u32 index) in sidtab_lookup() 142 static struct context *sidtab_lookup_initial(struct sidtab *s, u32 sid) in sidtab_lookup_initial() 144 return s->isids[sid - 1].set ? &s->isids[sid - 1].context : NULL; in sidtab_lookup_initial() 147 static struct context *sidtab_search_core(struct sidtab *s, u32 sid, int force) in sidtab_search_core() 149 struct context *context; in sidtab_search_core() local 153 context = sidtab_lookup(s, sid - (SECINITSID_NUM + 1)); in sidtab_search_core() [all …]
|
/Linux-v5.4/fs/xfs/ |
D | xfs_attr_list.c | 52 xfs_attr_shortform_list(xfs_attr_list_context_t *context) in xfs_attr_shortform_list() argument 61 ASSERT(context != NULL); in xfs_attr_shortform_list() 62 dp = context->dp; in xfs_attr_shortform_list() 69 cursor = context->cursor; in xfs_attr_shortform_list() 72 trace_xfs_attr_list_sf(context); in xfs_attr_shortform_list() 83 if (context->bufsize == 0 || in xfs_attr_shortform_list() 85 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list() 87 context->put_listent(context, in xfs_attr_shortform_list() 96 if (context->seen_enough) in xfs_attr_shortform_list() 100 trace_xfs_attr_list_sf_all(context); in xfs_attr_shortform_list() [all …]
|
D | xfs_xattr.c | 120 struct xfs_attr_list_context *context, in __xfs_xattr_put_listent() argument 129 if (context->count < 0 || context->seen_enough) in __xfs_xattr_put_listent() 132 if (!context->alist) in __xfs_xattr_put_listent() 135 arraytop = context->count + prefix_len + namelen + 1; in __xfs_xattr_put_listent() 136 if (arraytop > context->firstu) { in __xfs_xattr_put_listent() 137 context->count = -1; /* insufficient space */ in __xfs_xattr_put_listent() 138 context->seen_enough = 1; in __xfs_xattr_put_listent() 141 offset = (char *)context->alist + context->count; in __xfs_xattr_put_listent() 149 context->count += prefix_len + namelen + 1; in __xfs_xattr_put_listent() 155 struct xfs_attr_list_context *context, in xfs_xattr_put_listent() argument [all …]
|
/Linux-v5.4/kernel/ |
D | auditsc.c | 847 static inline void audit_proctitle_free(struct audit_context *context) in audit_proctitle_free() argument 849 kfree(context->proctitle.value); in audit_proctitle_free() 850 context->proctitle.value = NULL; in audit_proctitle_free() 851 context->proctitle.len = 0; in audit_proctitle_free() 854 static inline void audit_free_module(struct audit_context *context) in audit_free_module() argument 856 if (context->type == AUDIT_KERN_MODULE) { in audit_free_module() 857 kfree(context->module.name); in audit_free_module() 858 context->module.name = NULL; in audit_free_module() 861 static inline void audit_free_names(struct audit_context *context) in audit_free_names() argument 865 list_for_each_entry_safe(n, next, &context->names_list, list) { in audit_free_names() [all …]
|
/Linux-v5.4/drivers/gpu/drm/etnaviv/ |
D | etnaviv_mmu.c | 16 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() 103 etnaviv_context_unmap(context, da, bytes); in etnaviv_iommu_map() 109 static void etnaviv_iommu_unmap(struct etnaviv_iommu_context *context, u32 iova, in etnaviv_iommu_unmap() argument [all …]
|
D | etnaviv_iommu.c | 28 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 …]
|
D | etnaviv_iommu_v2.c | 42 to_v2_context(struct etnaviv_iommu_context *context) in to_v2_context() argument 44 return container_of(context, struct etnaviv_iommuv2_context, base); in to_v2_context() 47 static void etnaviv_iommuv2_free(struct etnaviv_iommu_context *context) in etnaviv_iommuv2_free() argument 49 struct etnaviv_iommuv2_context *v2_context = to_v2_context(context); in etnaviv_iommuv2_free() 52 drm_mm_takedown(&context->mm); in etnaviv_iommuv2_free() 56 dma_free_wc(context->global->dev, SZ_4K, in etnaviv_iommuv2_free() 61 dma_free_wc(context->global->dev, SZ_4K, v2_context->mtlb_cpu, in etnaviv_iommuv2_free() 64 clear_bit(v2_context->id, context->global->v2.pta_alloc); in etnaviv_iommuv2_free() 92 static int etnaviv_iommuv2_map(struct etnaviv_iommu_context *context, in etnaviv_iommuv2_map() argument 96 struct etnaviv_iommuv2_context *v2_context = to_v2_context(context); in etnaviv_iommuv2_map() [all …]
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
D | en_resources.c | 42 int user_prio, struct mlx4_qp_context *context) in mlx4_en_fill_qp_context() argument 47 memset(context, 0, sizeof(*context)); in mlx4_en_fill_qp_context() 48 context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET); 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() 52 context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context() 54 context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context() 56 context->params2 |= cpu_to_be32(MLX4_QP_BIT_FPP); in mlx4_en_fill_qp_context() 59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; in mlx4_en_fill_qp_context() 61 context->usr_page = cpu_to_be32(mlx4_to_hw_uar_index(mdev->dev, in mlx4_en_fill_qp_context() [all …]
|
/Linux-v5.4/arch/s390/include/asm/ |
D | mmu_context.h | 21 spin_lock_init(&mm->context.lock); in init_new_context() 22 INIT_LIST_HEAD(&mm->context.pgtable_list); in init_new_context() 23 INIT_LIST_HEAD(&mm->context.gmap_list); in init_new_context() 24 cpumask_clear(&mm->context.cpu_attach_mask); in init_new_context() 25 atomic_set(&mm->context.flush_count, 0); in init_new_context() 26 mm->context.gmap_asce = 0; in init_new_context() 27 mm->context.flush_mm = 0; in init_new_context() 28 mm->context.compat_mm = test_thread_flag(TIF_31BIT); in init_new_context() 30 mm->context.alloc_pgste = page_table_allocate_pgste || in init_new_context() 32 (current->mm && current->mm->context.alloc_pgste); in init_new_context() [all …]
|
/Linux-v5.4/arch/powerpc/mm/book3s64/ |
D | mmu_context.c | 95 mm->context.hash_context = kmalloc(sizeof(struct hash_mm_context), in hash__init_new_context() 97 if (!mm->context.hash_context) in hash__init_new_context() 114 if (mm->context.id == 0) { in hash__init_new_context() 115 memset(mm->context.hash_context, 0, sizeof(struct hash_mm_context)); in hash__init_new_context() 119 …memcpy(mm->context.hash_context, current->mm->context.hash_context, sizeof(struct hash_mm_context)… in hash__init_new_context() 122 if (current->mm->context.hash_context->spt) { in hash__init_new_context() 123 mm->context.hash_context->spt = kmalloc(sizeof(struct subpage_prot_table), in hash__init_new_context() 125 if (!mm->context.hash_context->spt) { in hash__init_new_context() 126 kfree(mm->context.hash_context); in hash__init_new_context() 133 index = realloc_context_ids(&mm->context); in hash__init_new_context() [all …]
|
/Linux-v5.4/arch/sparc/mm/ |
D | tsb.c | 124 spin_lock_irqsave(&mm->context.lock, flags); in flush_tsb_user() 127 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user() 128 nentries = mm->context.tsb_block[MM_TSB_BASE].tsb_nentries; in flush_tsb_user() 140 else if (mm->context.tsb_block[MM_TSB_HUGE].tsb) { in flush_tsb_user() 141 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; in flush_tsb_user() 142 nentries = mm->context.tsb_block[MM_TSB_HUGE].tsb_nentries; in flush_tsb_user() 149 spin_unlock_irqrestore(&mm->context.lock, flags); in flush_tsb_user() 157 spin_lock_irqsave(&mm->context.lock, flags); in flush_tsb_user_page() 160 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user_page() 161 nentries = mm->context.tsb_block[MM_TSB_BASE].tsb_nentries; in flush_tsb_user_page() [all …]
|
/Linux-v5.4/drivers/usb/image/ |
D | microtek.c | 187 MTS_DEBUG("transfer = 0x%x context = 0x%x\n",(int)transfer,(int)context ); \ 188 …MTS_DEBUG("status = 0x%x data-length = 0x%x sent = 0x%x\n",transfer->status,(int)context->data_len… 189 mts_debug_dump(context->instance);\ 204 struct mts_transfer_context* context = (struct mts_transfer_context*)transfer->context; \ 381 context->instance->usb_dev, in mts_int_submit_urb() 386 context in mts_int_submit_urb() 392 context->srb->result = DID_ERROR << 16; in mts_int_submit_urb() 403 if ( likely(context->final_callback != NULL) ) in mts_transfer_cleanup() 404 context->final_callback(context->srb); in mts_transfer_cleanup() 411 context->srb->result &= MTS_SCSI_ERR_MASK; in mts_transfer_done() [all …]
|
/Linux-v5.4/drivers/infiniband/hw/hns/ |
D | hns_roce_restrack.c | 13 struct hns_roce_v2_cq_context *context) in hns_roce_fill_cq() argument 16 roce_get_field(context->byte_4_pg_ceqn, in hns_roce_fill_cq() 22 roce_get_field(context->byte_4_pg_ceqn, in hns_roce_fill_cq() 28 roce_get_field(context->byte_8_cqn, in hns_roce_fill_cq() 34 roce_get_field(context->byte_16_hop_addr, in hns_roce_fill_cq() 41 roce_get_field(context->byte_28_cq_pi, in hns_roce_fill_cq() 48 roce_get_field(context->byte_32_cq_ci, in hns_roce_fill_cq() 55 roce_get_field(context->byte_56_cqe_period_maxcnt, in hns_roce_fill_cq() 62 roce_get_field(context->byte_56_cqe_period_maxcnt, in hns_roce_fill_cq() 68 roce_get_field(context->byte_52_cqe_cnt, in hns_roce_fill_cq() [all …]
|
/Linux-v5.4/fs/ocfs2/ |
D | move_extents.c | 52 struct ocfs2_move_extents_context *context, in __ocfs2_move_extent() argument 57 struct inode *inode = context->inode; in __ocfs2_move_extent() 62 u64 ino = ocfs2_metadata_cache_owner(context->et.et_ci); in __ocfs2_move_extent() 78 path = ocfs2_new_path_from_et(&context->et); in __ocfs2_move_extent() 111 context->et.et_root_bh, in __ocfs2_move_extent() 118 ret = ocfs2_split_extent(handle, &context->et, path, index, in __ocfs2_move_extent() 119 &replace_rec, context->meta_ac, in __ocfs2_move_extent() 120 &context->dealloc); in __ocfs2_move_extent() 126 ocfs2_journal_dirty(handle, context->et.et_root_bh); in __ocfs2_move_extent() 128 context->new_phys_cpos = new_p_cpos; in __ocfs2_move_extent() [all …]
|
/Linux-v5.4/arch/ia64/include/asm/ |
D | mmu_context.h | 83 nv_mm_context_t context = mm->context; in get_mmu_context() local 85 if (likely(context)) in get_mmu_context() 90 context = mm->context; in get_mmu_context() 91 if (context == 0) { in get_mmu_context() 101 mm->context = context = ia64_ctx.next++; in get_mmu_context() 102 __set_bit(context, ia64_ctx.bitmap); in get_mmu_context() 112 return context; in get_mmu_context() 122 mm->context = 0; in init_new_context() 133 reload_context (nv_mm_context_t context) in reload_context() argument 140 rid = context << 3; /* make space for encoding the region number */ in reload_context() [all …]
|
/Linux-v5.4/drivers/gpu/drm/i915/selftests/ |
D | i915_syncmap.c | 163 static int check_one(struct i915_syncmap **sync, u64 context, u32 seqno) in check_one() argument 167 err = i915_syncmap_set(sync, context, seqno); in check_one() 173 context, (*sync)->height, (*sync)->prefix); in check_one() 179 context); in check_one() 193 if (!i915_syncmap_is_later(sync, context, seqno)) { in check_one() 195 context, seqno); in check_one() 217 u64 context = i915_prandom_u64_state(&prng); in igt_syncmap_one() local 225 err = check_one(&sync, context, in igt_syncmap_one() 238 static int check_leaf(struct i915_syncmap **sync, u64 context, u32 seqno) in check_leaf() argument 242 err = i915_syncmap_set(sync, context, seqno); in check_leaf() [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
D | dce110_clk_mgr.c | 92 uint32_t dce110_get_min_vblank_time_us(const struct dc_state *context) in dce110_get_min_vblank_time_us() argument 97 for (j = 0; j < context->stream_count; j++) { in dce110_get_min_vblank_time_us() 98 struct dc_stream_state *stream = context->streams[j]; in dce110_get_min_vblank_time_us() 120 const struct dc_state *context, in dce110_fill_display_configs() argument 126 for (j = 0; j < context->stream_count; j++) { in dce110_fill_display_configs() 129 const struct dc_stream_state *stream = context->streams[j]; in dce110_fill_display_configs() 135 if (stream == context->res_ctx.pipe_ctx[k].stream) { in dce110_fill_display_configs() 136 pipe_ctx = &context->res_ctx.pipe_ctx[k]; in dce110_fill_display_configs() 174 struct dc_state *context) in dce11_pplib_apply_display_requirements() argument 176 struct dm_pp_display_configuration *pp_display_cfg = &context->pp_display_cfg; in dce11_pplib_apply_display_requirements() [all …]
|
/Linux-v5.4/drivers/pci/hotplug/ |
D | acpiphp_glue.c | 50 static void hotplug_event(u32 type, struct acpiphp_context *context); 61 struct acpiphp_context *context; in acpiphp_init_context() local 63 context = kzalloc(sizeof(*context), GFP_KERNEL); in acpiphp_init_context() 64 if (!context) in acpiphp_init_context() 67 context->refcount = 1; in acpiphp_init_context() 68 context->hp.notify = acpiphp_hotplug_notify; in acpiphp_init_context() 69 context->hp.fixup = acpiphp_post_dock_fixup; in acpiphp_init_context() 70 acpi_set_hp_context(adev, &context->hp); in acpiphp_init_context() 71 return context; in acpiphp_init_context() 82 struct acpiphp_context *context; in acpiphp_get_context() local [all …]
|
/Linux-v5.4/arch/parisc/include/asm/ |
D | mmu_context.h | 27 mm->context = alloc_sid(); in init_new_context() 34 free_sid(mm->context); in destroy_context() 35 mm->context = 0; in destroy_context() 38 static inline unsigned long __space_to_prot(mm_context_t context) in __space_to_prot() argument 41 return context << 1; in __space_to_prot() 43 return context >> (SPACEID_SHIFT - 1); in __space_to_prot() 47 static inline void load_context(mm_context_t context) in load_context() argument 49 mtsp(context, 3); in load_context() 50 mtctl(__space_to_prot(context), 8); in load_context() 58 load_context(next->context); in switch_mm_irqs_off() [all …]
|
/Linux-v5.4/arch/m68k/include/asm/ |
D | mmu_context.h | 36 if (mm->context != NO_CONTEXT) in get_mmu_context() 49 mm->context = ctx; in get_mmu_context() 56 #define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) 63 if (mm->context != NO_CONTEXT) { in destroy_context() 64 clear_bit(mm->context, context_map); in destroy_context() 65 mm->context = NO_CONTEXT; in destroy_context() 70 static inline void set_context(mm_context_t context, pgd_t *pgd) in set_context() argument 72 __asm__ __volatile__ ("movec %0,%%asid" : : "d" (context)); in set_context() 79 set_context(tsk->mm->context, next->pgd); in switch_mm() 90 set_context(mm->context, mm->pgd); in activate_mm() [all …]
|
/Linux-v5.4/crypto/ |
D | rsa_helper.c | 16 int rsa_get_n(void *context, size_t hdrlen, unsigned char tag, in rsa_get_n() argument 19 struct rsa_key *key = context; in rsa_get_n() 46 int rsa_get_e(void *context, size_t hdrlen, unsigned char tag, in rsa_get_e() argument 49 struct rsa_key *key = context; in rsa_get_e() 61 int rsa_get_d(void *context, size_t hdrlen, unsigned char tag, in rsa_get_d() argument 64 struct rsa_key *key = context; in rsa_get_d() 76 int rsa_get_p(void *context, size_t hdrlen, unsigned char tag, in rsa_get_p() argument 79 struct rsa_key *key = context; in rsa_get_p() 91 int rsa_get_q(void *context, size_t hdrlen, unsigned char tag, in rsa_get_q() argument 94 struct rsa_key *key = context; in rsa_get_q() [all …]
|