/linux-4.4.14/drivers/mtd/ |
D | mtdoops.c | 72 static void mark_page_used(struct mtdoops_context *cxt, int page) in mark_page_used() argument 74 set_bit(page, cxt->oops_page_used); in mark_page_used() 77 static void mark_page_unused(struct mtdoops_context *cxt, int page) in mark_page_unused() argument 79 clear_bit(page, cxt->oops_page_used); in mark_page_unused() 82 static int page_is_used(struct mtdoops_context *cxt, int page) in page_is_used() argument 84 return test_bit(page, cxt->oops_page_used); in page_is_used() 93 static int mtdoops_erase_block(struct mtdoops_context *cxt, int offset) in mtdoops_erase_block() argument 95 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase_block() 130 mark_page_unused(cxt, page); in mtdoops_erase_block() 135 static void mtdoops_inc_counter(struct mtdoops_context *cxt) in mtdoops_inc_counter() argument [all …]
|
/linux-4.4.14/fs/pstore/ |
D | ram.c | 114 struct ramoops_context *cxt = psi->data; in ramoops_pstore_open() local 116 cxt->dump_read_cnt = 0; in ramoops_pstore_open() 117 cxt->console_read_cnt = 0; in ramoops_pstore_open() 118 cxt->ftrace_read_cnt = 0; in ramoops_pstore_open() 119 cxt->pmsg_read_cnt = 0; in ramoops_pstore_open() 188 struct ramoops_context *cxt = psi->data; in ramoops_pstore_read() local 201 while (cxt->dump_read_cnt < cxt->max_dump_cnt && !prz) { in ramoops_pstore_read() 202 prz = ramoops_get_next_prz(cxt->przs, &cxt->dump_read_cnt, in ramoops_pstore_read() 203 cxt->max_dump_cnt, id, type, in ramoops_pstore_read() 218 prz = ramoops_get_next_prz(&cxt->cprz, &cxt->console_read_cnt, in ramoops_pstore_read() [all …]
|
/linux-4.4.14/security/apparmor/ |
D | context.c | 47 void aa_free_task_context(struct aa_task_cxt *cxt) in aa_free_task_context() argument 49 if (cxt) { in aa_free_task_context() 50 aa_put_profile(cxt->profile); in aa_free_task_context() 51 aa_put_profile(cxt->previous); in aa_free_task_context() 52 aa_put_profile(cxt->onexec); in aa_free_task_context() 54 kzfree(cxt); in aa_free_task_context() 96 struct aa_task_cxt *cxt = current_cxt(); in aa_replace_current_profile() local 100 if (cxt->profile == profile) in aa_replace_current_profile() 107 cxt = cred_cxt(new); in aa_replace_current_profile() 108 if (unconfined(profile) || (cxt->profile->ns != profile->ns)) in aa_replace_current_profile() [all …]
|
D | lsm.c | 61 struct aa_task_cxt *cxt = aa_alloc_task_context(gfp); in apparmor_cred_alloc_blank() local 62 if (!cxt) in apparmor_cred_alloc_blank() 65 cred_cxt(cred) = cxt; in apparmor_cred_alloc_blank() 76 struct aa_task_cxt *cxt = aa_alloc_task_context(gfp); in apparmor_cred_prepare() local 77 if (!cxt) in apparmor_cred_prepare() 80 aa_dup_task_context(cxt, cred_cxt(old)); in apparmor_cred_prepare() 81 cred_cxt(new) = cxt; in apparmor_cred_prepare() 411 struct aa_file_cxt *cxt = file->f_security; in apparmor_file_free_security() local 413 aa_free_file_context(cxt); in apparmor_file_free_security() 500 struct aa_task_cxt *cxt = cred_cxt(cred); in apparmor_getprocattr() local [all …]
|
D | domain.c | 339 struct aa_task_cxt *cxt; in apparmor_bprm_set_creds() local 355 cxt = cred_cxt(bprm->cred); in apparmor_bprm_set_creds() 356 BUG_ON(!cxt); in apparmor_bprm_set_creds() 358 profile = aa_get_newest_profile(cxt->profile); in apparmor_bprm_set_creds() 382 if (cxt->onexec) in apparmor_bprm_set_creds() 384 new_profile = aa_get_profile(cxt->onexec); in apparmor_bprm_set_creds() 399 if (cxt->onexec) { in apparmor_bprm_set_creds() 410 cp = change_profile_perms(profile, cxt->onexec->ns, in apparmor_bprm_set_creds() 411 cxt->onexec->base.name, in apparmor_bprm_set_creds() 416 new_profile = aa_get_newest_profile(cxt->onexec); in apparmor_bprm_set_creds() [all …]
|
/linux-4.4.14/kernel/locking/ |
D | locktorture.c | 116 static struct lock_torture_cxt cxt = { 0, 0, false, variable 134 (cxt.nrealwriters_stress * 2000 * longdelay_ms))) in torture_lock_busted_write_delay() 137 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay() 180 (cxt.nrealwriters_stress * 2000 * longdelay_ms))) in torture_spin_lock_write_delay() 183 (cxt.nrealwriters_stress * 2 * shortdelay_us))) in torture_spin_lock_write_delay() 186 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay() 213 cxt.cur_ops->flags = flags; in torture_spin_lock_write_lock_irq() 220 spin_unlock_irqrestore(&torture_spinlock, cxt.cur_ops->flags); in torture_lock_spin_write_unlock_irq() 251 (cxt.nrealwriters_stress * 2000 * longdelay_ms))) in torture_rwlock_write_delay() 277 (cxt.nrealreaders_stress * 2000 * longdelay_ms))) in torture_rwlock_read_delay() [all …]
|
/linux-4.4.14/security/apparmor/include/ |
D | context.h | 53 static inline void aa_free_file_context(struct aa_file_cxt *cxt) in aa_free_file_context() argument 55 if (cxt) in aa_free_file_context() 56 kzfree(cxt); in aa_free_file_context() 79 void aa_free_task_context(struct aa_task_cxt *cxt); 99 struct aa_task_cxt *cxt = cred_cxt(cred); in aa_cred_profile() local 100 BUG_ON(!cxt || !cxt->profile); in aa_cred_profile() 101 return cxt->profile; in aa_cred_profile() 151 const struct aa_task_cxt *cxt = current_cxt(); in aa_current_profile() local 153 BUG_ON(!cxt || !cxt->profile); in aa_current_profile() 155 if (PROFILE_INVALID(cxt->profile)) { in aa_current_profile() [all …]
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.c | 191 init_p->cxts[0] = q->cxt; in bnx2x_vfop_qctor_prep() 306 if (bnx2x_vfq(vf, qid, cxt)) { in bnx2x_vf_queue_destroy() 307 bnx2x_vfq(vf, qid, cxt)->ustorm_ag_context.cdu_usage = 0; in bnx2x_vf_queue_destroy() 308 bnx2x_vfq(vf, qid, cxt)->xstorm_ag_context.cdu_reserved = 0; in bnx2x_vf_queue_destroy() 1336 struct hw_dma *cxt = &bp->vfdb->context[i]; in bnx2x_iov_free_mem() local 1337 BNX2X_PCI_FREE(cxt->addr, cxt->mapping, cxt->size); in bnx2x_iov_free_mem() 1366 struct hw_dma *cxt = BP_VF_CXT_PAGE(bp, i); in bnx2x_iov_alloc_mem() local 1367 cxt->size = min_t(size_t, tot_size, CDU_ILT_PAGE_SZ); in bnx2x_iov_alloc_mem() 1369 if (cxt->size) { in bnx2x_iov_alloc_mem() 1370 cxt->addr = BNX2X_PCI_ALLOC(&cxt->mapping, cxt->size); in bnx2x_iov_alloc_mem() [all …]
|
D | bnx2x_sriov.h | 73 struct eth_context *cxt; member
|
D | bnx2x_cmn.c | 5081 void bnx2x_set_ctx_validation(struct bnx2x *bp, struct eth_context *cxt, in bnx2x_set_ctx_validation() argument 5084 if (!cxt) { in bnx2x_set_ctx_validation() 5085 BNX2X_ERR("bad context pointer %p\n", cxt); in bnx2x_set_ctx_validation() 5090 cxt->ustorm_ag_context.cdu_usage = in bnx2x_set_ctx_validation() 5094 cxt->xstorm_ag_context.cdu_reserved = in bnx2x_set_ctx_validation()
|
D | bnx2x_cmn.h | 1270 void bnx2x_set_ctx_validation(struct bnx2x *bp, struct eth_context *cxt,
|