Home
last modified time | relevance | path

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

12345678910>>...76

/Linux-v4.19/drivers/misc/vmw_vmci/
Dvmci_context.c49 static void ctx_signal_notify(struct vmci_ctx *context) in ctx_signal_notify() argument
51 *context->notify = true; in ctx_signal_notify()
54 static void ctx_clear_notify(struct vmci_ctx *context) in ctx_clear_notify() argument
56 *context->notify = false; in ctx_clear_notify()
63 static void ctx_clear_notify_call(struct vmci_ctx *context) in ctx_clear_notify_call() argument
65 if (context->pending_datagrams == 0 && in ctx_clear_notify_call()
66 vmci_handle_arr_get_size(context->pending_doorbell_array) == 0) in ctx_clear_notify_call()
67 ctx_clear_notify(context); in ctx_clear_notify_call()
74 void vmci_ctx_check_signal_notify(struct vmci_ctx *context) in vmci_ctx_check_signal_notify() argument
76 spin_lock(&context->lock); in vmci_ctx_check_signal_notify()
[all …]
Dvmci_route.c50 if (VMCI_INVALID_ID == dst->context) in vmci_route()
54 if (VMCI_HYPERVISOR_CONTEXT_ID == dst->context) { in vmci_route()
72 if (VMCI_HOST_CONTEXT_ID == src->context) in vmci_route()
83 if (VMCI_INVALID_ID == src->context && in vmci_route()
85 src->context = vmci_get_context_id(); in vmci_route()
93 if (VMCI_HOST_CONTEXT_ID == dst->context) { in vmci_route()
102 if (src->context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_route()
121 if (VMCI_INVALID_ID == src->context) in vmci_route()
122 src->context = vmci_get_context_id(); in vmci_route()
138 if (VMCI_INVALID_ID == src->context) { in vmci_route()
[all …]
/Linux-v4.19/security/selinux/ss/
Dmls.h28 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 *context);
52 struct context *scontext,
53 struct context *tcontext,
56 struct context *newcontext,
[all …]
Dmls.c36 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 …]
Dsidtab.c34 int sidtab_insert(struct sidtab *s, u32 sid, struct context *context) in sidtab_insert() argument
58 if (context_cpy(&newnode->context, context)) { in sidtab_insert()
79 static struct context *sidtab_search_core(struct sidtab *s, u32 sid, int force) in sidtab_search_core()
92 if (force && cur && sid == cur->sid && cur->context.len) in sidtab_search_core()
93 return &cur->context; in sidtab_search_core()
95 if (!cur || sid != cur->sid || cur->context.len) { in sidtab_search_core()
106 return &cur->context; in sidtab_search_core()
109 struct context *sidtab_search(struct sidtab *s, u32 sid) in sidtab_search()
114 struct context *sidtab_search_force(struct sidtab *s, u32 sid) in sidtab_search_force()
121 struct context *context, in sidtab_map() argument
[all …]
Dsidtab.h15 struct context context; /* security context structure */ member
36 int sidtab_insert(struct sidtab *s, u32 sid, struct context *context);
37 struct context *sidtab_search(struct sidtab *s, u32 sid);
38 struct context *sidtab_search_force(struct sidtab *s, u32 sid);
42 struct context *context,
47 struct context *context,
/Linux-v4.19/fs/xfs/
Dxfs_attr_list.c57 xfs_attr_shortform_list(xfs_attr_list_context_t *context) in xfs_attr_shortform_list() argument
66 ASSERT(context != NULL); in xfs_attr_shortform_list()
67 dp = context->dp; in xfs_attr_shortform_list()
74 cursor = context->cursor; in xfs_attr_shortform_list()
77 trace_xfs_attr_list_sf(context); in xfs_attr_shortform_list()
88 if (context->bufsize == 0 || in xfs_attr_shortform_list()
90 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
92 context->put_listent(context, in xfs_attr_shortform_list()
101 if (context->seen_enough) in xfs_attr_shortform_list()
105 trace_xfs_attr_list_sf_all(context); in xfs_attr_shortform_list()
[all …]
Dxfs_xattr.c123 struct xfs_attr_list_context *context, in __xfs_xattr_put_listent() argument
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
164 ASSERT(context->count >= 0); in xfs_xattr_put_listent()
[all …]
/Linux-v4.19/kernel/
Dauditsc.c844 struct audit_context *context = tsk->audit_context; in audit_take_context() local
846 if (!context) in audit_take_context()
848 context->return_valid = return_valid; in audit_take_context()
864 context->return_code = -EINTR; in audit_take_context()
866 context->return_code = return_code; in audit_take_context()
868 if (context->in_syscall && !context->dummy) { in audit_take_context()
869 audit_filter_syscall(tsk, context, &audit_filter_list[AUDIT_FILTER_EXIT]); in audit_take_context()
870 audit_filter_inodes(tsk, context); in audit_take_context()
874 return context; in audit_take_context()
877 static inline void audit_proctitle_free(struct audit_context *context) in audit_proctitle_free() argument
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_resources.c42 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-v4.19/arch/s390/include/asm/
Dmmu_context.h21 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()
29 mm->context.alloc_pgste = page_table_allocate_pgste || in init_new_context()
31 (current->mm && current->mm->context.alloc_pgste); in init_new_context()
32 mm->context.has_pgste = 0; in init_new_context()
[all …]
/Linux-v4.19/drivers/infiniband/core/
Dumem_odp.c118 static void ib_ucontext_notifier_start_account(struct ib_ucontext *context) in ib_ucontext_notifier_start_account() argument
120 atomic_inc(&context->notifier_count); in ib_ucontext_notifier_start_account()
127 static void ib_ucontext_notifier_end_account(struct ib_ucontext *context) in ib_ucontext_notifier_end_account() argument
129 int zero_notifiers = atomic_dec_and_test(&context->notifier_count); in ib_ucontext_notifier_end_account()
132 !list_empty(&context->no_private_counters)) { in ib_ucontext_notifier_end_account()
139 down_write(&context->umem_rwsem); in ib_ucontext_notifier_end_account()
143 if (!atomic_read(&context->notifier_count)) { in ib_ucontext_notifier_end_account()
145 &context->no_private_counters, in ib_ucontext_notifier_end_account()
155 up_write(&context->umem_rwsem); in ib_ucontext_notifier_end_account()
171 item->context->invalidate_range(item, ib_umem_start(item), in ib_umem_notifier_release_trampoline()
[all …]
/Linux-v4.19/arch/sparc/mm/
Dtsb.c124 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-v4.19/drivers/usb/image/
Dmicrotek.c187 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-v4.19/fs/ocfs2/
Dmove_extents.c59 struct ocfs2_move_extents_context *context, in __ocfs2_move_extent() argument
64 struct inode *inode = context->inode; in __ocfs2_move_extent()
69 u64 ino = ocfs2_metadata_cache_owner(context->et.et_ci); in __ocfs2_move_extent()
85 path = ocfs2_new_path_from_et(&context->et); in __ocfs2_move_extent()
118 context->et.et_root_bh, in __ocfs2_move_extent()
125 ret = ocfs2_split_extent(handle, &context->et, path, index, in __ocfs2_move_extent()
126 &replace_rec, context->meta_ac, in __ocfs2_move_extent()
127 &context->dealloc); in __ocfs2_move_extent()
133 ocfs2_journal_dirty(handle, context->et.et_root_bh); in __ocfs2_move_extent()
135 context->new_phys_cpos = new_p_cpos; in __ocfs2_move_extent()
[all …]
/Linux-v4.19/arch/ia64/include/asm/
Dmmu_context.h83 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-v4.19/drivers/gpu/drm/i915/selftests/
Di915_syncmap.c163 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-v4.19/drivers/pci/hotplug/
Dacpiphp_glue.c50 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-v4.19/arch/parisc/include/asm/
Dmmu_context.h27 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-v4.19/crypto/
Drsa_helper.c21 int rsa_get_n(void *context, size_t hdrlen, unsigned char tag, in rsa_get_n() argument
24 struct rsa_key *key = context; in rsa_get_n()
51 int rsa_get_e(void *context, size_t hdrlen, unsigned char tag, in rsa_get_e() argument
54 struct rsa_key *key = context; in rsa_get_e()
66 int rsa_get_d(void *context, size_t hdrlen, unsigned char tag, in rsa_get_d() argument
69 struct rsa_key *key = context; in rsa_get_d()
81 int rsa_get_p(void *context, size_t hdrlen, unsigned char tag, in rsa_get_p() argument
84 struct rsa_key *key = context; in rsa_get_p()
96 int rsa_get_q(void *context, size_t hdrlen, unsigned char tag, in rsa_get_q() argument
99 struct rsa_key *key = context; in rsa_get_q()
[all …]
/Linux-v4.19/arch/m68k/include/asm/
Dmmu_context.h36 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-v4.19/drivers/gpu/drm/
Ddrm_lock.c43 static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context);
56 unsigned int context) in drm_lock_take() argument
67 new = context | _DRM_LOCK_HELD | in drm_lock_take()
75 if (_DRM_LOCKING_CONTEXT(old) == context) { in drm_lock_take()
77 if (context != DRM_KERNEL_CONTEXT) { in drm_lock_take()
79 context); in drm_lock_take()
85 if ((_DRM_LOCKING_CONTEXT(new)) == context && (new & _DRM_LOCK_HELD)) { in drm_lock_take()
105 unsigned int context) in drm_lock_transfer() argument
113 new = context | _DRM_LOCK_HELD; in drm_lock_transfer()
120 unsigned int context) in drm_legacy_lock_free() argument
[all …]
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_cmd.c97 *context = &hr_dev->cmd.context[token & hr_dev->cmd.token_mask]; in hns_roce_cmd_event() local
99 if (token != context->token) in hns_roce_cmd_event()
102 context->result = (status == HNS_ROCE_CMD_SUCCESS) ? 0 : (-EIO); in hns_roce_cmd_event()
103 context->out_param = out_param; in hns_roce_cmd_event()
104 complete(&context->done); in hns_roce_cmd_event()
115 struct hns_roce_cmd_context *context; in __hns_roce_cmd_mbox_wait() local
121 context = &cmd->context[cmd->free_head]; in __hns_roce_cmd_mbox_wait()
122 context->token += cmd->token_mask + 1; in __hns_roce_cmd_mbox_wait()
123 cmd->free_head = context->next; in __hns_roce_cmd_mbox_wait()
126 init_completion(&context->done); in __hns_roce_cmd_mbox_wait()
[all …]
/Linux-v4.19/drivers/base/regmap/
Dregmap-i2c.c19 static int regmap_smbus_byte_reg_read(void *context, unsigned int reg, in regmap_smbus_byte_reg_read() argument
22 struct device *dev = context; in regmap_smbus_byte_reg_read()
38 static int regmap_smbus_byte_reg_write(void *context, unsigned int reg, in regmap_smbus_byte_reg_write() argument
41 struct device *dev = context; in regmap_smbus_byte_reg_write()
55 static int regmap_smbus_word_reg_read(void *context, unsigned int reg, in regmap_smbus_word_reg_read() argument
58 struct device *dev = context; in regmap_smbus_word_reg_read()
74 static int regmap_smbus_word_reg_write(void *context, unsigned int reg, in regmap_smbus_word_reg_write() argument
77 struct device *dev = context; in regmap_smbus_word_reg_write()
91 static int regmap_smbus_word_read_swapped(void *context, unsigned int reg, in regmap_smbus_word_read_swapped() argument
94 struct device *dev = context; in regmap_smbus_word_read_swapped()
[all …]
/Linux-v4.19/drivers/media/usb/as102/
Das10x_cmd_cfg.c43 sizeof(pcmd->body.context.req)); in as10x_cmd_get_context()
46 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_get_context()
47 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_get_context()
48 pcmd->body.context.req.type = cpu_to_le16(GET_CONTEXT_DATA); in as10x_cmd_get_context()
54 sizeof(pcmd->body.context.req) in as10x_cmd_get_context()
57 sizeof(prsp->body.context.rsp) in as10x_cmd_get_context()
72 *pvalue = le32_to_cpu((__force __le32)prsp->body.context.rsp.reg_val.u.value32); in as10x_cmd_get_context()
99 sizeof(pcmd->body.context.req)); in as10x_cmd_set_context()
102 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_set_context()
104 pcmd->body.context.req.reg_val.u.value32 = (__force u32)cpu_to_le32(value); in as10x_cmd_set_context()
[all …]

12345678910>>...76