Home
last modified time | relevance | path

Searched refs:cxt (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.10/drivers/mtd/
Dmtdoops.c58 static void mark_page_used(struct mtdoops_context *cxt, int page) in mark_page_used() argument
60 set_bit(page, cxt->oops_page_used); in mark_page_used()
63 static void mark_page_unused(struct mtdoops_context *cxt, int page) in mark_page_unused() argument
65 clear_bit(page, cxt->oops_page_used); in mark_page_unused()
68 static int page_is_used(struct mtdoops_context *cxt, int page) in page_is_used() argument
70 return test_bit(page, cxt->oops_page_used); in page_is_used()
73 static int mtdoops_erase_block(struct mtdoops_context *cxt, int offset) in mtdoops_erase_block() argument
75 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase_block()
96 mark_page_unused(cxt, page); in mtdoops_erase_block()
101 static void mtdoops_inc_counter(struct mtdoops_context *cxt) in mtdoops_inc_counter() argument
[all …]
Dmtdpstore.c27 static int mtdpstore_block_isbad(struct mtdpstore_context *cxt, loff_t off) in mtdpstore_block_isbad() argument
30 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_isbad()
36 if (test_bit(blknum, cxt->badmap)) in mtdpstore_block_isbad()
43 set_bit(blknum, cxt->badmap); in mtdpstore_block_isbad()
49 static inline int mtdpstore_panic_block_isbad(struct mtdpstore_context *cxt, in mtdpstore_panic_block_isbad() argument
52 struct mtd_info *mtd = cxt->mtd; in mtdpstore_panic_block_isbad()
57 return test_bit(blknum, cxt->badmap); in mtdpstore_panic_block_isbad()
60 static inline void mtdpstore_mark_used(struct mtdpstore_context *cxt, in mtdpstore_mark_used() argument
63 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_used()
64 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_used()
[all …]
/Linux-v5.10/fs/pstore/
Dram.c107 struct ramoops_context *cxt = psi->data; in ramoops_pstore_open() local
109 cxt->dump_read_cnt = 0; in ramoops_pstore_open()
110 cxt->console_read_cnt = 0; in ramoops_pstore_open()
111 cxt->ftrace_read_cnt = 0; in ramoops_pstore_open()
112 cxt->pmsg_read_cnt = 0; in ramoops_pstore_open()
179 struct ramoops_context *cxt = record->psi->data; in ramoops_pstore_read() local
194 while (cxt->dump_read_cnt < cxt->max_dump_cnt && !prz) { in ramoops_pstore_read()
195 prz = ramoops_get_next_prz(cxt->dprzs, cxt->dump_read_cnt++, in ramoops_pstore_read()
210 if (!prz_ok(prz) && !cxt->console_read_cnt++) in ramoops_pstore_read()
211 prz = ramoops_get_next_prz(&cxt->cprz, 0 /* single */, record); in ramoops_pstore_read()
[all …]
Dzone.c317 struct psz_context *cxt = &pstore_zone_cxt; in psz_flush_all_dirty_zones() local
320 if (cxt->ppsz) in psz_flush_all_dirty_zones()
321 ret |= psz_flush_dirty_zone(cxt->ppsz); in psz_flush_all_dirty_zones()
322 if (cxt->cpsz) in psz_flush_all_dirty_zones()
323 ret |= psz_flush_dirty_zone(cxt->cpsz); in psz_flush_all_dirty_zones()
324 if (cxt->kpszs) in psz_flush_all_dirty_zones()
325 ret |= psz_flush_dirty_zones(cxt->kpszs, cxt->kmsg_max_cnt); in psz_flush_all_dirty_zones()
326 if (cxt->fpszs) in psz_flush_all_dirty_zones()
327 ret |= psz_flush_dirty_zones(cxt->fpszs, cxt->ftrace_max_cnt); in psz_flush_all_dirty_zones()
328 if (ret && cxt->pstore_zone_info) in psz_flush_all_dirty_zones()
[all …]
/Linux-v5.10/kernel/locking/
Dlocktorture.c98 static struct lock_torture_cxt cxt = { 0, 0, false, variable
116 (cxt.nrealwriters_stress * 2000 * longdelay_ms))) in torture_lock_busted_write_delay()
118 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_lock_busted_write_delay()
160 (cxt.nrealwriters_stress * 2000 * longdelay_ms))) in torture_spin_lock_write_delay()
163 (cxt.nrealwriters_stress * 2 * shortdelay_us))) in torture_spin_lock_write_delay()
165 if (!(torture_random(trsp) % (cxt.nrealwriters_stress * 20000))) in torture_spin_lock_write_delay()
191 cxt.cur_ops->flags = flags; in torture_spin_lock_write_lock_irq()
198 spin_unlock_irqrestore(&torture_spinlock, cxt.cur_ops->flags); in torture_lock_spin_write_unlock_irq()
229 (cxt.nrealwriters_stress * 2000 * longdelay_ms))) in torture_rwlock_write_delay()
255 (cxt.nrealreaders_stress * 2000 * longdelay_ms))) in torture_rwlock_read_delay()
[all …]
/Linux-v5.10/arch/arm64/kvm/hyp/vhe/
Dtlb.c20 struct tlb_inv_context *cxt) in __tlb_switch_to_guest() argument
24 local_irq_save(cxt->flags); in __tlb_switch_to_guest()
36 val = cxt->tcr = read_sysreg_el1(SYS_TCR); in __tlb_switch_to_guest()
39 val = cxt->sctlr = read_sysreg_el1(SYS_SCTLR); in __tlb_switch_to_guest()
63 static void __tlb_switch_to_host(struct tlb_inv_context *cxt) in __tlb_switch_to_host() argument
75 write_sysreg_el1(cxt->tcr, SYS_TCR); in __tlb_switch_to_host()
76 write_sysreg_el1(cxt->sctlr, SYS_SCTLR); in __tlb_switch_to_host()
79 local_irq_restore(cxt->flags); in __tlb_switch_to_host()
85 struct tlb_inv_context cxt; in __kvm_tlb_flush_vmid_ipa() local
90 __tlb_switch_to_guest(mmu, &cxt); in __kvm_tlb_flush_vmid_ipa()
[all …]
/Linux-v5.10/arch/arm64/kvm/hyp/nvhe/
Dtlb.c16 struct tlb_inv_context *cxt) in __tlb_switch_to_guest() argument
28 val = cxt->tcr = read_sysreg_el1(SYS_TCR); in __tlb_switch_to_guest()
44 static void __tlb_switch_to_host(struct tlb_inv_context *cxt) in __tlb_switch_to_host() argument
52 write_sysreg_el1(cxt->tcr, SYS_TCR); in __tlb_switch_to_host()
59 struct tlb_inv_context cxt; in __kvm_tlb_flush_vmid_ipa() local
64 __tlb_switch_to_guest(mmu, &cxt); in __kvm_tlb_flush_vmid_ipa()
107 __tlb_switch_to_host(&cxt); in __kvm_tlb_flush_vmid_ipa()
112 struct tlb_inv_context cxt; in __kvm_tlb_flush_vmid() local
117 __tlb_switch_to_guest(mmu, &cxt); in __kvm_tlb_flush_vmid()
123 __tlb_switch_to_host(&cxt); in __kvm_tlb_flush_vmid()
[all …]
/Linux-v5.10/drivers/scsi/qedi/
Dqedi_fw_api.c490 struct e4_iscsi_task_context *cxt; in init_rw_iscsi_task() local
501 cxt = task_params->context; in init_rw_iscsi_task()
505 set_local_completion_context(cxt); in init_rw_iscsi_task()
509 cxt->ystorm_st_context.pdu_hdr.r2t.desired_data_trns_len = val; in init_rw_iscsi_task()
510 cxt->mstorm_st_context.expected_itt = in init_rw_iscsi_task()
514 cxt->ystorm_st_context.pdu_hdr.cmd.expected_transfer_length = in init_rw_iscsi_task()
516 init_initiator_rw_cdb_ystorm_context(&cxt->ystorm_st_context, in init_rw_iscsi_task()
519 cxt->mstorm_st_context.sense_db.lo = val; in init_rw_iscsi_task()
522 cxt->mstorm_st_context.sense_db.hi = val; in init_rw_iscsi_task()
526 init_dif_context_flags(&cxt->ystorm_st_context.state.dif_flags, in init_rw_iscsi_task()
[all …]
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.h131 int qed_ll2_acquire_connection(void *cxt, struct qed_ll2_acquire_data *data);
144 int qed_ll2_establish_connection(void *cxt, u8 connection_handle);
158 int qed_ll2_post_rx_buffer(void *cxt,
174 int qed_ll2_prepare_tx_packet(void *cxt,
187 void qed_ll2_release_connection(void *cxt, u8 connection_handle);
203 int qed_ll2_set_fragment_of_tx_packet(void *cxt,
218 int qed_ll2_terminate_connection(void *cxt, u8 connection_handle);
231 int qed_ll2_get_stats(void *cxt,
Dqed_ll2.c65 static void qed_ll2b_complete_tx_packet(void *cxt, in qed_ll2b_complete_tx_packet() argument
72 struct qed_hwfn *p_hwfn = cxt; in qed_ll2b_complete_tx_packet()
135 static void qed_ll2b_complete_rx_packet(void *cxt, in qed_ll2b_complete_rx_packet() argument
138 struct qed_hwfn *p_hwfn = cxt; in qed_ll2b_complete_rx_packet()
1331 int qed_ll2_acquire_connection(void *cxt, struct qed_ll2_acquire_data *data) in qed_ll2_acquire_connection() argument
1333 struct qed_hwfn *p_hwfn = cxt; in qed_ll2_acquire_connection()
1514 int qed_ll2_establish_connection(void *cxt, u8 connection_handle) in qed_ll2_establish_connection() argument
1519 struct qed_hwfn *p_hwfn = cxt; in qed_ll2_establish_connection()
1710 int qed_ll2_post_rx_buffer(void *cxt, in qed_ll2_post_rx_buffer() argument
1715 struct qed_hwfn *p_hwfn = cxt; in qed_ll2_post_rx_buffer()
[all …]
Dqed_iwarp.c2301 qed_iwarp_ll2_comp_mpa_pkt(void *cxt, struct qed_ll2_comp_rx_data *data) in qed_iwarp_ll2_comp_mpa_pkt() argument
2305 struct qed_hwfn *p_hwfn = cxt; in qed_iwarp_ll2_comp_mpa_pkt()
2347 qed_iwarp_ll2_comp_syn_pkt(void *cxt, struct qed_ll2_comp_rx_data *data) in qed_iwarp_ll2_comp_syn_pkt() argument
2353 struct qed_hwfn *p_hwfn = cxt; in qed_iwarp_ll2_comp_syn_pkt()
2459 static void qed_iwarp_ll2_rel_rx_pkt(void *cxt, u8 connection_handle, in qed_iwarp_ll2_rel_rx_pkt() argument
2464 struct qed_hwfn *p_hwfn = cxt; in qed_iwarp_ll2_rel_rx_pkt()
2471 static void qed_iwarp_ll2_comp_tx_pkt(void *cxt, u8 connection_handle, in qed_iwarp_ll2_comp_tx_pkt() argument
2477 struct qed_hwfn *p_hwfn = cxt; in qed_iwarp_ll2_comp_tx_pkt()
2497 static void qed_iwarp_ll2_rel_tx_pkt(void *cxt, u8 connection_handle, in qed_iwarp_ll2_rel_tx_pkt() argument
2502 struct qed_hwfn *p_hwfn = cxt; in qed_iwarp_ll2_rel_tx_pkt()
[all …]
/Linux-v5.10/include/linux/qed/
Dqed_ll2_if.h109 void (*qed_ll2_complete_rx_packet_cb)(void *cxt,
113 void (*qed_ll2_release_rx_packet_cb)(void *cxt,
120 void (*qed_ll2_complete_tx_packet_cb)(void *cxt,
128 void (*qed_ll2_release_tx_packet_cb)(void *cxt,
135 void (*qed_ll2_slowpath_cb)(void *cxt, u8 connection_handle,
/Linux-v5.10/tools/testing/selftests/gpio/
Dgpio-mockup-chardev.c32 struct libmnt_context *cxt; in get_debugfs() local
38 cxt = mnt_new_context(); in get_debugfs()
39 if (!cxt) in get_debugfs()
46 if (mnt_context_get_mtab(cxt, &tb)) in get_debugfs()
64 mnt_free_context(cxt); in get_debugfs()
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c189 init_p->cxts[0] = q->cxt; in bnx2x_vfop_qctor_prep()
307 if (bnx2x_vfq(vf, qid, cxt)) { in bnx2x_vf_queue_destroy()
308 bnx2x_vfq(vf, qid, cxt)->ustorm_ag_context.cdu_usage = 0; in bnx2x_vf_queue_destroy()
309 bnx2x_vfq(vf, qid, cxt)->xstorm_ag_context.cdu_reserved = 0; in bnx2x_vf_queue_destroy()
1324 struct hw_dma *cxt = &bp->vfdb->context[i]; in bnx2x_iov_free_mem() local
1325 BNX2X_PCI_FREE(cxt->addr, cxt->mapping, cxt->size); in bnx2x_iov_free_mem()
1354 struct hw_dma *cxt = BP_VF_CXT_PAGE(bp, i); in bnx2x_iov_alloc_mem() local
1355 cxt->size = min_t(size_t, tot_size, CDU_ILT_PAGE_SZ); in bnx2x_iov_alloc_mem()
1357 if (cxt->size) { in bnx2x_iov_alloc_mem()
1358 cxt->addr = BNX2X_PCI_ALLOC(&cxt->mapping, cxt->size); in bnx2x_iov_alloc_mem()
[all …]
Dbnx2x_sriov.h73 struct eth_context *cxt; member
Dbnx2x_cmn.c5057 void bnx2x_set_ctx_validation(struct bnx2x *bp, struct eth_context *cxt, in bnx2x_set_ctx_validation() argument
5060 if (!cxt) { in bnx2x_set_ctx_validation()
5061 BNX2X_ERR("bad context pointer %p\n", cxt); in bnx2x_set_ctx_validation()
5066 cxt->ustorm_ag_context.cdu_usage = in bnx2x_set_ctx_validation()
5070 cxt->xstorm_ag_context.cdu_reserved = in bnx2x_set_ctx_validation()
Dbnx2x_cmn.h1270 void bnx2x_set_ctx_validation(struct bnx2x *bp, struct eth_context *cxt,
/Linux-v5.10/drivers/infiniband/hw/qedr/
Dqedr_roce_cm.c67 static void qedr_ll2_complete_tx_packet(void *cxt, u8 connection_handle, in qedr_ll2_complete_tx_packet() argument
73 struct qedr_dev *dev = (struct qedr_dev *)cxt; in qedr_ll2_complete_tx_packet()
96 static void qedr_ll2_complete_rx_packet(void *cxt, in qedr_ll2_complete_rx_packet() argument
99 struct qedr_dev *dev = (struct qedr_dev *)cxt; in qedr_ll2_complete_rx_packet()
125 static void qedr_ll2_release_rx_packet(void *cxt, u8 connection_handle, in qedr_ll2_release_rx_packet() argument
/Linux-v5.10/drivers/staging/media/meson/vdec/
Dcodec_vp9.c1492 int cxt; in adapt_coef_probs_cxt() local
1494 for (cxt = 0; cxt < cxt_num; cxt++) { in adapt_coef_probs_cxt()