Home
last modified time | relevance | path

Searched refs:ctxt (Results 1 – 68 of 68) sorted by relevance

/linux-4.1.27/arch/x86/kvm/
Demulate.c212 int (*execute)(struct x86_emulate_ctxt *ctxt);
221 int (*check_perm)(struct x86_emulate_ctxt *ctxt);
260 static ulong reg_read(struct x86_emulate_ctxt *ctxt, unsigned nr) in reg_read() argument
262 if (!(ctxt->regs_valid & (1 << nr))) { in reg_read()
263 ctxt->regs_valid |= 1 << nr; in reg_read()
264 ctxt->_regs[nr] = ctxt->ops->read_gpr(ctxt, nr); in reg_read()
266 return ctxt->_regs[nr]; in reg_read()
269 static ulong *reg_write(struct x86_emulate_ctxt *ctxt, unsigned nr) in reg_write() argument
271 ctxt->regs_valid |= 1 << nr; in reg_write()
272 ctxt->regs_dirty |= 1 << nr; in reg_write()
[all …]
Dx86.c72 #define emul_to_vcpu(ctxt) \ argument
73 container_of(ctxt, struct kvm_vcpu, arch.emulate_ctxt)
175 static int emulator_fix_hypercall(struct x86_emulate_ctxt *ctxt);
4274 static int kvm_fetch_guest_virt(struct x86_emulate_ctxt *ctxt, in kvm_fetch_guest_virt() argument
4278 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); in kvm_fetch_guest_virt()
4300 int kvm_read_guest_virt(struct x86_emulate_ctxt *ctxt, in kvm_read_guest_virt() argument
4304 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); in kvm_read_guest_virt()
4312 static int kvm_read_guest_virt_system(struct x86_emulate_ctxt *ctxt, in kvm_read_guest_virt_system() argument
4316 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); in kvm_read_guest_virt_system()
4320 int kvm_write_guest_virt_system(struct x86_emulate_ctxt *ctxt, in kvm_write_guest_virt_system() argument
[all …]
Dx86.h155 int kvm_read_guest_virt(struct x86_emulate_ctxt *ctxt,
159 int kvm_write_guest_virt_system(struct x86_emulate_ctxt *ctxt,
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dllog_obd.c47 struct llog_ctxt *ctxt; in llog_new_ctxt() local
49 OBD_ALLOC_PTR(ctxt); in llog_new_ctxt()
50 if (!ctxt) in llog_new_ctxt()
53 ctxt->loc_obd = obd; in llog_new_ctxt()
54 atomic_set(&ctxt->loc_refcount, 1); in llog_new_ctxt()
56 return ctxt; in llog_new_ctxt()
59 static void llog_ctxt_destroy(struct llog_ctxt *ctxt) in llog_ctxt_destroy() argument
61 if (ctxt->loc_exp) { in llog_ctxt_destroy()
62 class_export_put(ctxt->loc_exp); in llog_ctxt_destroy()
63 ctxt->loc_exp = NULL; in llog_ctxt_destroy()
[all …]
Dllog.c745 int llog_open_create(const struct lu_env *env, struct llog_ctxt *ctxt, in llog_open_create() argument
753 rc = llog_open(env, ctxt, res, logid, name, LLOG_OPEN_NEW); in llog_open_create()
787 int llog_erase(const struct lu_env *env, struct llog_ctxt *ctxt, in llog_erase() argument
797 rc = llog_open(env, ctxt, &handle, logid, name, LLOG_OPEN_EXISTS); in llog_erase()
853 int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt, in llog_open() argument
860 LASSERT(ctxt); in llog_open()
861 LASSERT(ctxt->loc_logops); in llog_open()
863 if (ctxt->loc_logops->lop_open == NULL) { in llog_open()
871 (*lgh)->lgh_ctxt = ctxt; in llog_open()
872 (*lgh)->lgh_logops = ctxt->loc_logops; in llog_open()
[all …]
Dllog_cat.c439 struct llog_ctxt *ctxt; in llog_cat_add() local
444 ctxt = cathandle->lgh_ctxt; in llog_cat_add()
445 LASSERT(ctxt); in llog_cat_add()
446 LASSERT(ctxt->loc_exp); in llog_cat_add()
449 dt = ctxt->loc_exp->exp_obd->obd_lvfs_ctxt.dt; in llog_cat_add()
Dobd_config.c1577 int class_config_parse_llog(const struct lu_env *env, struct llog_ctxt *ctxt, in class_config_parse_llog() argument
1586 rc = llog_open(env, ctxt, &llh, NULL, name, LLOG_OPEN_EXISTS); in class_config_parse_llog()
1690 int class_config_dump_llog(const struct lu_env *env, struct llog_ctxt *ctxt, in class_config_dump_llog() argument
1698 rc = llog_open(env, ctxt, &llh, NULL, name, LLOG_OPEN_EXISTS); in class_config_dump_llog()
/linux-4.1.27/arch/x86/power/
Dcpu.c51 static void __save_processor_state(struct saved_context *ctxt) in __save_processor_state() argument
62 store_idt(&ctxt->idt); in __save_processor_state()
65 store_idt((struct desc_ptr *)&ctxt->idt_limit); in __save_processor_state()
73 ctxt->gdt_desc.size = GDT_SIZE - 1; in __save_processor_state()
74 ctxt->gdt_desc.address = (unsigned long)get_cpu_gdt_table(smp_processor_id()); in __save_processor_state()
76 store_tr(ctxt->tr); in __save_processor_state()
83 savesegment(es, ctxt->es); in __save_processor_state()
84 savesegment(fs, ctxt->fs); in __save_processor_state()
85 savesegment(gs, ctxt->gs); in __save_processor_state()
86 savesegment(ss, ctxt->ss); in __save_processor_state()
[all …]
/linux-4.1.27/arch/x86/include/asm/
Dkvm_emulate.h94 ulong (*read_gpr)(struct x86_emulate_ctxt *ctxt, unsigned reg);
101 void (*write_gpr)(struct x86_emulate_ctxt *ctxt, unsigned reg, ulong val);
109 int (*read_std)(struct x86_emulate_ctxt *ctxt,
121 int (*write_std)(struct x86_emulate_ctxt *ctxt,
131 int (*fetch)(struct x86_emulate_ctxt *ctxt,
141 int (*read_emulated)(struct x86_emulate_ctxt *ctxt,
152 int (*write_emulated)(struct x86_emulate_ctxt *ctxt,
165 int (*cmpxchg_emulated)(struct x86_emulate_ctxt *ctxt,
171 void (*invlpg)(struct x86_emulate_ctxt *ctxt, ulong addr);
173 int (*pio_in_emulated)(struct x86_emulate_ctxt *ctxt,
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dllog_net.c55 int llog_initiator_connect(struct llog_ctxt *ctxt) in llog_initiator_connect() argument
59 LASSERT(ctxt); in llog_initiator_connect()
60 new_imp = ctxt->loc_obd->u.cli.cl_import; in llog_initiator_connect()
61 LASSERTF(ctxt->loc_imp == NULL || ctxt->loc_imp == new_imp, in llog_initiator_connect()
62 "%p - %p\n", ctxt->loc_imp, new_imp); in llog_initiator_connect()
63 mutex_lock(&ctxt->loc_mutex); in llog_initiator_connect()
64 if (ctxt->loc_imp != new_imp) { in llog_initiator_connect()
65 if (ctxt->loc_imp) in llog_initiator_connect()
66 class_import_put(ctxt->loc_imp); in llog_initiator_connect()
67 ctxt->loc_imp = class_import_get(new_imp); in llog_initiator_connect()
[all …]
Dllog_client.c52 #define LLOG_CLIENT_ENTRY(ctxt, imp) do { \ argument
53 mutex_lock(&ctxt->loc_mutex); \
54 if (ctxt->loc_imp) { \
55 imp = class_import_get(ctxt->loc_imp); \
60 ctxt->loc_idx); \
62 mutex_unlock(&ctxt->loc_mutex); \
65 mutex_unlock(&ctxt->loc_mutex); \
68 #define LLOG_CLIENT_EXIT(ctxt, imp) do { \ argument
69 mutex_lock(&ctxt->loc_mutex); \
70 if (ctxt->loc_imp != imp) \
[all …]
/linux-4.1.27/net/sunrpc/xprtrdma/
Dsvc_rdma_transport.c100 struct svc_rdma_op_ctxt *ctxt; in svc_rdma_get_context() local
103 ctxt = kmem_cache_alloc(svc_rdma_ctxt_cachep, GFP_KERNEL); in svc_rdma_get_context()
104 if (ctxt) in svc_rdma_get_context()
108 ctxt->xprt = xprt; in svc_rdma_get_context()
109 INIT_LIST_HEAD(&ctxt->dto_q); in svc_rdma_get_context()
110 ctxt->count = 0; in svc_rdma_get_context()
111 ctxt->frmr = NULL; in svc_rdma_get_context()
113 return ctxt; in svc_rdma_get_context()
116 void svc_rdma_unmap_dma(struct svc_rdma_op_ctxt *ctxt) in svc_rdma_unmap_dma() argument
118 struct svcxprt_rdma *xprt = ctxt->xprt; in svc_rdma_unmap_dma()
[all …]
Dsvc_rdma_recvfrom.c59 struct svc_rdma_op_ctxt *ctxt, in rdma_build_arg_xdr() argument
68 page = ctxt->pages[0]; in rdma_build_arg_xdr()
75 min_t(size_t, byte_count, ctxt->sge[0].length); in rdma_build_arg_xdr()
94 while (bc && sge_no < ctxt->count) { in rdma_build_arg_xdr()
95 page = ctxt->pages[sge_no]; in rdma_build_arg_xdr()
98 bc -= min_t(u32, bc, ctxt->sge[sge_no].length); in rdma_build_arg_xdr()
99 rqstp->rq_arg.buflen += ctxt->sge[sge_no].length; in rdma_build_arg_xdr()
107 while (sge_no < ctxt->count) { in rdma_build_arg_xdr()
108 page = ctxt->pages[sge_no++]; in rdma_build_arg_xdr()
111 ctxt->count = bc; in rdma_build_arg_xdr()
[all …]
Dsvc_rdma_sendto.c154 struct svc_rdma_op_ctxt *ctxt; in send_write() local
166 ctxt = svc_rdma_get_context(xprt); in send_write()
167 ctxt->direction = DMA_TO_DEVICE; in send_write()
168 sge = ctxt->sge; in send_write()
196 ctxt->count++; in send_write()
211 ctxt->wr_op = IB_WR_RDMA_WRITE; in send_write()
212 write_wr.wr_id = (unsigned long)ctxt; in send_write()
226 svc_rdma_unmap_dma(ctxt); in send_write()
227 svc_rdma_put_context(ctxt, 0); in send_write()
380 struct svc_rdma_op_ctxt *ctxt, in send_reply() argument
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dphy-ctxt.c127 static void iwl_mvm_phy_ctxt_cmd_hdr(struct iwl_mvm_phy_ctxt *ctxt, in iwl_mvm_phy_ctxt_cmd_hdr() argument
133 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(ctxt->id, in iwl_mvm_phy_ctxt_cmd_hdr()
134 ctxt->color)); in iwl_mvm_phy_ctxt_cmd_hdr()
193 struct iwl_mvm_phy_ctxt *ctxt, in iwl_mvm_phy_ctxt_apply() argument
202 iwl_mvm_phy_ctxt_cmd_hdr(ctxt, &cmd, action, apply_time); in iwl_mvm_phy_ctxt_apply()
219 int iwl_mvm_phy_ctxt_add(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, in iwl_mvm_phy_ctxt_add() argument
224 ctxt->ref); in iwl_mvm_phy_ctxt_add()
227 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_add()
229 return iwl_mvm_phy_ctxt_apply(mvm, ctxt, chandef, in iwl_mvm_phy_ctxt_add()
238 void iwl_mvm_phy_ctxt_ref(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt) in iwl_mvm_phy_ctxt_ref() argument
[all …]
DMakefile2 iwlmvm-y += fw.o mac80211.o nvm.o ops.o phy-ctxt.o mac-ctxt.o
Dmvm.h1111 int iwl_mvm_phy_ctxt_add(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt,
1114 int iwl_mvm_phy_ctxt_changed(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt,
1118 struct iwl_mvm_phy_ctxt *ctxt);
1120 struct iwl_mvm_phy_ctxt *ctxt);
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_log.h132 int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt,
136 int llog_is_empty(const struct lu_env *env, struct llog_ctxt *ctxt,
139 struct llog_ctxt *ctxt, struct llog_ctxt *bak_ctxt,
203 int __llog_ctxt_put(const struct lu_env *env, struct llog_ctxt *ctxt);
205 int llog_sync(struct llog_ctxt *ctxt, struct obd_export *exp, int flags);
206 int llog_cancel(const struct lu_env *env, struct llog_ctxt *ctxt,
210 int llog_initiator_connect(struct llog_ctxt *ctxt);
225 int (*lop_sync)(struct llog_ctxt *ctxt, struct obd_export *exp,
227 int (*lop_cleanup)(const struct lu_env *env, struct llog_ctxt *ctxt);
228 int (*lop_cancel)(const struct lu_env *env, struct llog_ctxt *ctxt,
[all …]
Dobd_class.h168 int class_config_parse_llog(const struct lu_env *env, struct llog_ctxt *ctxt,
170 int class_config_dump_llog(const struct lu_env *env, struct llog_ctxt *ctxt,
332 #define CTXTP(ctxt, op) (ctxt)->loc_logops->lop_##op argument
492 #define CTXT_CHECK_OP(ctxt, op, err) \ argument
494 if (!OBT(ctxt->loc_obd) || !CTXTP((ctxt), op)) { \
497 ctxt->loc_obd->obd_minor); \
/linux-4.1.27/arch/x86/xen/
Dsmp.c360 struct vcpu_guest_context *ctxt; in cpu_initialize_context() local
369 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL); in cpu_initialize_context()
370 if (ctxt == NULL) in cpu_initialize_context()
377 ctxt->user_regs.fs = __KERNEL_PERCPU; in cpu_initialize_context()
378 ctxt->user_regs.gs = __KERNEL_STACK_CANARY; in cpu_initialize_context()
380 memset(&ctxt->fpu_ctxt, 0, sizeof(ctxt->fpu_ctxt)); in cpu_initialize_context()
383 ctxt->user_regs.eip = (unsigned long)cpu_bringup_and_idle; in cpu_initialize_context()
384 ctxt->flags = VGCF_IN_KERNEL; in cpu_initialize_context()
385 ctxt->user_regs.eflags = 0x1000; /* IOPL_RING1 */ in cpu_initialize_context()
386 ctxt->user_regs.ds = __USER_DS; in cpu_initialize_context()
[all …]
/linux-4.1.27/fs/nilfs2/
Dbtnode.c171 struct nilfs_btnode_chkey_ctxt *ctxt) in nilfs_btnode_prepare_change_key() argument
175 __u64 oldkey = ctxt->oldkey, newkey = ctxt->newkey; in nilfs_btnode_prepare_change_key()
181 obh = ctxt->bh; in nilfs_btnode_prepare_change_key()
182 ctxt->newbh = NULL; in nilfs_btnode_prepare_change_key()
228 ctxt->newbh = nbh; in nilfs_btnode_prepare_change_key()
241 struct nilfs_btnode_chkey_ctxt *ctxt) in nilfs_btnode_commit_change_key() argument
243 struct buffer_head *obh = ctxt->bh, *nbh = ctxt->newbh; in nilfs_btnode_commit_change_key()
244 __u64 oldkey = ctxt->oldkey, newkey = ctxt->newkey; in nilfs_btnode_commit_change_key()
272 ctxt->bh = nbh; in nilfs_btnode_commit_change_key()
282 struct nilfs_btnode_chkey_ctxt *ctxt) in nilfs_btnode_abort_change_key() argument
[all …]
/linux-4.1.27/drivers/scsi/be2iscsi/
Dbe_cmds.c953 void *ctxt = &req->context; in beiscsi_cmd_cq_create() local
967 ctxt, coalesce_wm); in beiscsi_cmd_cq_create()
968 AMAP_SET_BITS(struct amap_cq_context, nodelay, ctxt, no_delay); in beiscsi_cmd_cq_create()
969 AMAP_SET_BITS(struct amap_cq_context, count, ctxt, in beiscsi_cmd_cq_create()
971 AMAP_SET_BITS(struct amap_cq_context, valid, ctxt, 1); in beiscsi_cmd_cq_create()
972 AMAP_SET_BITS(struct amap_cq_context, solevent, ctxt, sol_evts); in beiscsi_cmd_cq_create()
973 AMAP_SET_BITS(struct amap_cq_context, eventable, ctxt, 1); in beiscsi_cmd_cq_create()
974 AMAP_SET_BITS(struct amap_cq_context, eqid, ctxt, eq->id); in beiscsi_cmd_cq_create()
975 AMAP_SET_BITS(struct amap_cq_context, armed, ctxt, 1); in beiscsi_cmd_cq_create()
976 AMAP_SET_BITS(struct amap_cq_context, func, ctxt, in beiscsi_cmd_cq_create()
[all …]
/linux-4.1.27/fs/ocfs2/
Dxattr.c274 struct ocfs2_xattr_set_ctxt *ctxt);
279 struct ocfs2_xattr_set_ctxt *ctxt);
716 struct ocfs2_xattr_set_ctxt *ctxt) in ocfs2_xattr_extend_allocation() argument
719 handle_t *handle = ctxt->handle; in ocfs2_xattr_extend_allocation()
742 ctxt->data_ac, in ocfs2_xattr_extend_allocation()
743 ctxt->meta_ac, in ocfs2_xattr_extend_allocation()
781 struct ocfs2_xattr_set_ctxt *ctxt) in __ocfs2_remove_xattr_range() argument
785 handle_t *handle = ctxt->handle; in __ocfs2_remove_xattr_range()
797 ret = ocfs2_remove_extent(handle, &et, cpos, len, ctxt->meta_ac, in __ocfs2_remove_xattr_range()
798 &ctxt->dealloc); in __ocfs2_remove_xattr_range()
[all …]
Dalloc.h210 int ocfs2_cache_cluster_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt,
212 int ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt,
220 struct ocfs2_cached_dealloc_ctxt *ctxt);
Dalloc.c569 static int ocfs2_cache_extent_block_free(struct ocfs2_cached_dealloc_ctxt *ctxt,
3659 struct ocfs2_merge_ctxt *ctxt) in ocfs2_try_to_merge_extent() argument
3665 BUG_ON(ctxt->c_contig_type == CONTIG_NONE); in ocfs2_try_to_merge_extent()
3667 if (ctxt->c_split_covers_rec && ctxt->c_has_empty_extent) { in ocfs2_try_to_merge_extent()
3684 if (ctxt->c_contig_type == CONTIG_LEFTRIGHT) { in ocfs2_try_to_merge_extent()
3688 BUG_ON(!ctxt->c_split_covers_rec); in ocfs2_try_to_merge_extent()
3753 if (ctxt->c_contig_type == CONTIG_RIGHT) { in ocfs2_try_to_merge_extent()
3771 if (ctxt->c_split_covers_rec) { in ocfs2_try_to_merge_extent()
5031 struct ocfs2_merge_ctxt ctxt; in ocfs2_split_extent() local
5042 ctxt.c_contig_type = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
[all …]
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_file_ops.c193 kinfo->spi_uregbase = (u64) dd->uregbase + dd->ureg_align * rcd->ctxt; in qib_get_base_info()
242 kinfo->spi_ctxt = rcd->ctxt; in qib_get_base_info()
308 ctxttid = rcd->ctxt * dd->rcvtidcnt; in qib_tid_update()
499 ctxttid = rcd->ctxt * dd->rcvtidcnt; in qib_tid_free()
689 dd->f_rcvctrl(rcd->ppd, rcvctrl_op, rcd->ctxt); in qib_manage_rcvq()
766 what, rcd->ctxt, pfn, len, ret); in qib_mmap_mem()
1046 ureg = dd->uregbase + dd->ureg_align * rcd->ctxt; in qib_mmapf()
1139 dd->f_rcvctrl(rcd->ppd, QIB_RCVCTRL_INTRAVAIL_ENB, rcd->ctxt); in qib_poll_next()
1308 static int setup_ctxt(struct qib_pportdata *ppd, int ctxt, in setup_ctxt() argument
1324 rcd = qib_create_ctxtdata(ppd, ctxt, numa_id); in setup_ctxt()
[all …]
Dqib_tx.c135 unsigned ctxt; in find_ctxt() local
139 for (ctxt = dd->first_user_ctxt; ctxt < dd->cfgctxts; ctxt++) { in find_ctxt()
140 rcd = dd->rcd[ctxt]; in find_ctxt()
462 unsigned ctxt; in qib_cancel_sends() local
474 for (ctxt = dd->first_user_ctxt; ctxt < dd->cfgctxts; ctxt++) { in qib_cancel_sends()
476 rcd = dd->rcd[ctxt]; in qib_cancel_sends()
Dqib_init.c168 struct qib_ctxtdata *qib_create_ctxtdata(struct qib_pportdata *ppd, u32 ctxt, in qib_create_ctxtdata() argument
181 rcd->ctxt = ctxt; in qib_create_ctxtdata()
182 dd->rcd[ctxt] = rcd; in qib_create_ctxtdata()
184 if (ctxt < dd->first_user_ctxt) { /* N/A for PSM contexts */ in qib_create_ctxtdata()
1347 int ctxt; in cleanup_device_data() local
1385 for (ctxt = 0; ctxt < dd->cfgctxts; ctxt++) { in cleanup_device_data()
1386 int ctxt_tidbase = ctxt * dd->rcvtidcnt; in cleanup_device_data()
1416 for (ctxt = 0; tmp && ctxt < dd->ctxtcnt; ctxt++) { in cleanup_device_data()
1417 struct qib_ctxtdata *rcd = tmp[ctxt]; in cleanup_device_data()
1419 tmp[ctxt] = NULL; /* debugging paranoia */ in cleanup_device_data()
[all …]
Dqib_iba6120.c307 enum qib_ureg regno, int ctxt) in qib_read_ureg32() argument
315 dd->ureg_align * ctxt)); in qib_read_ureg32()
320 dd->ureg_align * ctxt)); in qib_read_ureg32()
333 enum qib_ureg regno, u64 value, int ctxt) in qib_write_ureg() argument
340 dd->ureg_align * ctxt); in qib_write_ureg()
345 dd->ureg_align * ctxt); in qib_write_ureg()
383 const u16 regno, unsigned ctxt, in qib_write_kreg_ctxt() argument
386 qib_write_kreg(dd, regno + ctxt, value); in qib_write_kreg_ctxt()
1985 u32 ctxt; in qib_6120_clear_tids() local
1991 ctxt = rcd->ctxt; in qib_6120_clear_tids()
[all …]
Dqib_iba7220.c230 enum qib_ureg regno, int ctxt) in qib_read_ureg32() argument
238 dd->ureg_align * ctxt)); in qib_read_ureg32()
243 dd->ureg_align * ctxt)); in qib_read_ureg32()
256 enum qib_ureg regno, u64 value, int ctxt) in qib_write_ureg() argument
263 dd->ureg_align * ctxt); in qib_write_ureg()
268 dd->ureg_align * ctxt); in qib_write_ureg()
282 const u16 regno, unsigned ctxt, in qib_write_kreg_ctxt() argument
285 qib_write_kreg(dd, regno + ctxt, value); in qib_write_kreg_ctxt()
2226 u32 ctxt; in qib_7220_clear_tids() local
2232 ctxt = rcd->ctxt; in qib_7220_clear_tids()
[all …]
Dqib_iba7322.c776 enum qib_ureg regno, int ctxt) in qib_read_ureg32() argument
781 (dd->ureg_align * ctxt) + (dd->userbase ? in qib_read_ureg32()
797 enum qib_ureg regno, int ctxt) in qib_read_ureg() argument
803 (dd->ureg_align * ctxt) + (dd->userbase ? in qib_read_ureg()
818 enum qib_ureg regno, u64 value, int ctxt) in qib_write_ureg() argument
825 dd->ureg_align * ctxt); in qib_write_ureg()
830 dd->ureg_align * ctxt); in qib_write_ureg()
887 const u16 regno, unsigned ctxt, in qib_write_kreg_ctxt() argument
890 qib_write_kreg(dd, regno + ctxt, value); in qib_write_kreg_ctxt()
2712 if (cspec->rhdr_cpu[rcd->ctxt] != cpu) { in qib_update_rhdrq_dca()
[all …]
Dqib_ud.c399 unsigned ctxt = ppd->hw_pidx; in qib_lookup_pkey() local
404 for (i = 0; i < ARRAY_SIZE(dd->rcd[ctxt]->pkeys); ++i) in qib_lookup_pkey()
405 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) in qib_lookup_pkey()
Dqib_intr.c206 rcd->ctxt); in qib_handle_urcv()
Dqib_driver.c297 u32 ctxt, u32 eflags, u32 l, u32 etail, in qib_rcv_hdrerr() argument
514 crcs += qib_rcv_hdrerr(rcd, ppd, rcd->ctxt, eflags, l, in qib_kreceive()
Dqib_common.h423 __u16 ctxt; /* ctxt on unit assigned to caller */ member
Dqib_user_sdma.c183 qib_user_sdma_queue_create(struct device *dev, int unit, int ctxt, int sctxt) in qib_user_sdma_queue_create() argument
204 "qib-user-sdma-pkts-%u-%02u.%02u", unit, ctxt, sctxt); in qib_user_sdma_queue_create()
213 "qib-user-sdma-headers-%u-%02u.%02u", unit, ctxt, sctxt); in qib_user_sdma_queue_create()
Dqib.h161 unsigned ctxt; member
822 int ctxt);
Dqib_verbs.c1940 unsigned ctxt = ppd->hw_pidx; in qib_get_pkey() local
1944 if (!dd->rcd || index >= ARRAY_SIZE(dd->rcd[ctxt]->pkeys)) in qib_get_pkey()
1947 ret = dd->rcd[ctxt]->pkeys[index]; in qib_get_pkey()
/linux-4.1.27/arch/arm64/include/asm/
Dkvm_host.h102 struct kvm_cpu_context ctxt; member
145 #define vcpu_gp_regs(v) (&(v)->arch.ctxt.gp_regs)
146 #define vcpu_sys_reg(v,r) ((v)->arch.ctxt.sys_regs[(r)])
151 #define vcpu_cp14(v,r) ((v)->arch.ctxt.copro[(r)])
152 #define vcpu_cp15(v,r) ((v)->arch.ctxt.copro[(r)])
/linux-4.1.27/arch/x86/kernel/cpu/mtrr/
Dmtrr.h48 void set_mtrr_done(struct set_mtrr_context *ctxt);
49 void set_mtrr_cache_disable(struct set_mtrr_context *ctxt);
50 void set_mtrr_prepare_save(struct set_mtrr_context *ctxt);
/linux-4.1.27/Documentation/prctl/
DMakefile2 hostprogs-$(CONFIG_X86) := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-t…
6 HOSTCFLAGS_disable-tsc-ctxt-sw-stress-test.o += -I$(objtree)/usr/include
D.gitignore1 disable-tsc-ctxt-sw-stress-test
/linux-4.1.27/tools/perf/scripts/python/
Dfutex-contention.py24 def syscalls__sys_enter_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument
34 def syscalls__sys_exit_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c1067 void *ctxt; in be_cmd_cq_create() local
1075 ctxt = &req->context; in be_cmd_cq_create()
1084 AMAP_SET_BITS(struct amap_cq_context_be, coalescwm, ctxt, in be_cmd_cq_create()
1087 ctxt, no_delay); in be_cmd_cq_create()
1088 AMAP_SET_BITS(struct amap_cq_context_be, count, ctxt, in be_cmd_cq_create()
1090 AMAP_SET_BITS(struct amap_cq_context_be, valid, ctxt, 1); in be_cmd_cq_create()
1091 AMAP_SET_BITS(struct amap_cq_context_be, eventable, ctxt, 1); in be_cmd_cq_create()
1092 AMAP_SET_BITS(struct amap_cq_context_be, eqid, ctxt, eq->id); in be_cmd_cq_create()
1102 ctxt, coalesce_wm); in be_cmd_cq_create()
1103 AMAP_SET_BITS(struct amap_cq_context_v2, nodelay, ctxt, in be_cmd_cq_create()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_main.c1486 struct i40e_vsi_context *ctxt, in i40e_vsi_setup_queue_map() argument
1491 struct i40e_vsi_context *ctxt, in i40e_vsi_setup_queue_map()
1586 ctxt->info.tc_mapping[i] = cpu_to_le16(qmap); in i40e_vsi_setup_queue_map()
1602 ctxt->info.up_enable_bits = enabled_tc; in i40e_vsi_setup_queue_map()
1605 ctxt->info.mapping_flags |= in i40e_vsi_setup_queue_map()
1608 ctxt->info.queue_mapping[i] = in i40e_vsi_setup_queue_map()
1611 ctxt->info.mapping_flags |= in i40e_vsi_setup_queue_map()
1613 ctxt->info.queue_mapping[0] = cpu_to_le16(vsi->base_queue); in i40e_vsi_setup_queue_map()
1615 ctxt->info.valid_sections |= cpu_to_le16(sections); in i40e_vsi_setup_queue_map()
1975 struct i40e_vsi_context ctxt; in i40e_vlan_stripping_enable() local
[all …]
Di40e_fcoe.c366 int i40e_fcoe_vsi_init(struct i40e_vsi *vsi, struct i40e_vsi_context *ctxt) in i40e_fcoe_vsi_init() argument
368 struct i40e_aqc_vsi_properties_data *info = &ctxt->info; in i40e_fcoe_vsi_init()
380 ctxt->pf_num = hw->pf_id; in i40e_fcoe_vsi_init()
381 ctxt->vf_num = 0; in i40e_fcoe_vsi_init()
382 ctxt->uplink_seid = vsi->uplink_seid; in i40e_fcoe_vsi_init()
383 ctxt->connection_type = I40E_AQ_VSI_CONN_TYPE_NORMAL; in i40e_fcoe_vsi_init()
384 ctxt->flags = I40E_AQ_VSI_TYPE_PF; in i40e_fcoe_vsi_init()
403 i40e_vsi_setup_queue_map(vsi, ctxt, enabled_tc, true); in i40e_fcoe_vsi_init()
Di40e_virtchnl_pf.c2369 struct i40e_vsi_context ctxt; in i40e_ndo_set_vf_spoofchk() local
2387 memset(&ctxt, 0, sizeof(ctxt)); in i40e_ndo_set_vf_spoofchk()
2388 ctxt.seid = pf->vsi[vf->lan_vsi_idx]->seid; in i40e_ndo_set_vf_spoofchk()
2389 ctxt.pf_num = pf->hw.pf_id; in i40e_ndo_set_vf_spoofchk()
2390 ctxt.info.valid_sections = cpu_to_le16(I40E_AQ_VSI_PROP_SECURITY_VALID); in i40e_ndo_set_vf_spoofchk()
2392 ctxt.info.sec_flags |= (I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK | in i40e_ndo_set_vf_spoofchk()
2394 ret = i40e_aq_update_vsi_params(hw, &ctxt, NULL); in i40e_ndo_set_vf_spoofchk()
Di40e.h663 struct i40e_vsi_context *ctxt,
723 int i40e_fcoe_vsi_init(struct i40e_vsi *vsi, struct i40e_vsi_context *ctxt);
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/
Ddma_defs.h332 unsigned int ctxt : 1; member
344 unsigned int ctxt : 1; member
356 unsigned int ctxt : 1; member
367 unsigned int ctxt : 1; member
/linux-4.1.27/fs/ocfs2/dlm/
Ddlmdomain.c1577 struct domain_join_ctxt *ctxt, in dlm_should_restart_join() argument
1590 ret = memcmp(ctxt->live_map, dlm->live_nodes_map, in dlm_should_restart_join()
1603 struct domain_join_ctxt *ctxt; in dlm_try_to_join_domain() local
1608 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL); in dlm_try_to_join_domain()
1609 if (!ctxt) { in dlm_try_to_join_domain()
1621 memcpy(ctxt->live_map, dlm->live_nodes_map, sizeof(ctxt->live_map)); in dlm_try_to_join_domain()
1628 while ((node = find_next_bit(ctxt->live_map, O2NM_MAX_NODES, in dlm_try_to_join_domain()
1642 set_bit(node, ctxt->yes_resp_map); in dlm_try_to_join_domain()
1644 if (dlm_should_restart_join(dlm, ctxt, response)) { in dlm_try_to_join_domain()
1657 memcpy(dlm->domain_map, ctxt->yes_resp_map, in dlm_try_to_join_domain()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c646 struct llog_ctxt *ctxt; in mgc_llog_init() local
656 ctxt = llog_get_context(obd, LLOG_CONFIG_REPL_CTXT); in mgc_llog_init()
657 LASSERT(ctxt); in mgc_llog_init()
659 llog_initiator_connect(ctxt); in mgc_llog_init()
660 llog_ctxt_put(ctxt); in mgc_llog_init()
667 struct llog_ctxt *ctxt; in mgc_llog_fini() local
669 ctxt = llog_get_context(obd, LLOG_CONFIG_REPL_CTXT); in mgc_llog_fini()
670 if (ctxt) in mgc_llog_fini()
671 llog_cleanup(env, ctxt); in mgc_llog_fini()
1478 struct llog_ctxt *ctxt; in mgc_process_cfg_log() local
[all …]
/linux-4.1.27/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c39 ucontext_t *ctxt = (ucontext_t *)ctxt_v; in segv() local
40 struct pt_regs *regs = ctxt->uc_mcontext.regs; in segv()
/linux-4.1.27/arch/m68k/include/asm/
Dopenprom.h176 void (*pv_setctxt)(int ctxt, char *va, int pmeg);
244 void (*pv_setctxt)(int ctxt, char *va, int pmeg);
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c1599 struct llog_ctxt *ctxt = NULL; in mdc_changelog_send_thread() local
1614 ctxt = llog_get_context(cs->cs_obd, LLOG_CHANGELOG_REPL_CTXT); in mdc_changelog_send_thread()
1615 if (ctxt == NULL) { in mdc_changelog_send_thread()
1619 rc = llog_open(NULL, ctxt, &llh, NULL, CHANGELOG_CATALOG, in mdc_changelog_send_thread()
1645 if (ctxt) in mdc_changelog_send_thread()
1646 llog_ctxt_put(ctxt); in mdc_changelog_send_thread()
2403 struct llog_ctxt *ctxt; in mdc_llog_init() local
2411 ctxt = llog_group_get_ctxt(olg, LLOG_CHANGELOG_REPL_CTXT); in mdc_llog_init()
2412 llog_initiator_connect(ctxt); in mdc_llog_init()
2413 llog_ctxt_put(ctxt); in mdc_llog_init()
[all …]
/linux-4.1.27/net/ipv4/
Dsysctl_net_ipv4.c208 struct tcp_fastopen_context *ctxt; in proc_tcp_fastopen_key() local
217 ctxt = rcu_dereference(tcp_fastopen_ctx); in proc_tcp_fastopen_key()
218 if (ctxt) in proc_tcp_fastopen_key()
219 memcpy(user_key, ctxt->key, TCP_FASTOPEN_KEY_LENGTH); in proc_tcp_fastopen_key()
/linux-4.1.27/drivers/xen/
Dxen-acpi-memhotplug.c376 u32 level, void *ctxt, void **retv) in acpi_memory_register_notify_handler() argument
392 u32 level, void *ctxt, void **retv) in acpi_memory_deregister_notify_handler() argument
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-encoder.c141 static int pvr2_encoder_cmd(void *ctxt, in pvr2_encoder_cmd() argument
155 struct pvr2_hdw *hdw = (struct pvr2_hdw *)ctxt; in pvr2_encoder_cmd()
/linux-4.1.27/arch/arm64/kvm/
Dregmap.c114 unsigned long *reg_array = (unsigned long *)&vcpu->arch.ctxt.gp_regs.regs; in vcpu_reg32()
Dsys_regs.c1510 memset(&vcpu->arch.ctxt.sys_regs, 0x42, sizeof(vcpu->arch.ctxt.sys_regs)); in kvm_reset_sys_regs()
/linux-4.1.27/security/selinux/ss/
Dservices.c2977 struct context *ctxt; in selinux_audit_rule_match() local
2994 ctxt = sidtab_search(&sidtab, sid); in selinux_audit_rule_match()
2995 if (unlikely(!ctxt)) { in selinux_audit_rule_match()
3009 match = (ctxt->user == rule->au_ctxt.user); in selinux_audit_rule_match()
3012 match = (ctxt->user != rule->au_ctxt.user); in selinux_audit_rule_match()
3020 match = (ctxt->role == rule->au_ctxt.role); in selinux_audit_rule_match()
3023 match = (ctxt->role != rule->au_ctxt.role); in selinux_audit_rule_match()
3031 match = (ctxt->type == rule->au_ctxt.type); in selinux_audit_rule_match()
3034 match = (ctxt->type != rule->au_ctxt.type); in selinux_audit_rule_match()
3044 &ctxt->range.level[0] : &ctxt->range.level[1]); in selinux_audit_rule_match()
/linux-4.1.27/arch/sparc/include/asm/
Dopenprom.h141 void (*pv_setctxt)(int ctxt, char *va, int pmeg);
/linux-4.1.27/fs/ocfs2/cluster/
Dnetdebug.c399 static int sc_common_open(struct file *file, int ctxt) in sc_common_open() argument
414 sd->dbg_ctxt = ctxt; in sc_common_open()
/linux-4.1.27/include/linux/sunrpc/
Dsvc_rdma.h220 extern void svc_rdma_unmap_dma(struct svc_rdma_op_ctxt *ctxt);
/linux-4.1.27/arch/arm64/kernel/
Dasm-offsets.c107 DEFINE(VCPU_CONTEXT, offsetof(struct kvm_vcpu, arch.ctxt)); in main()
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_hqvdp.c848 static void sti_hqvdp_start_xp70(const struct firmware *firmware, void *ctxt) in sti_hqvdp_start_xp70() argument
850 struct sti_hqvdp *hqvdp = ctxt; in sti_hqvdp_start_xp70()
/linux-4.1.27/drivers/scsi/aacraid/
Daacraid.h851 typedef void (*fib_callback)(void *ctxt, struct fib *fibctx);
2110 …context, unsigned long size, int priority, int wait, int reply, fib_callback callback, void *ctxt);
/linux-4.1.27/Documentation/
Dcoccinelle.txt68 'rep+ctxt' runs successively the report mode and the context mode.
/linux-4.1.27/Documentation/filesystems/
Dproc.txt1268 ctxt 1990473
1297 The "ctxt" line gives the total number of context switches across all CPUs.