Lines Matching refs:cd

66 	struct genwqe_dev *cd = s->private;  in curr_dbg_uidn_show()  local
70 entries = genwqe_ffdc_buff_size(cd, uid); in curr_dbg_uidn_show()
81 genwqe_stop_traps(cd); /* halt the traps while dumping data */ in curr_dbg_uidn_show()
82 genwqe_ffdc_buff_read(cd, uid, regs, entries); in curr_dbg_uidn_show()
83 genwqe_start_traps(cd); in curr_dbg_uidn_show()
113 struct genwqe_dev *cd = s->private; in prev_dbg_uidn_show() local
115 dbg_uidn_show(s, cd->ffdc[uid].regs, cd->ffdc[uid].entries); in prev_dbg_uidn_show()
142 struct genwqe_dev *cd = s->private; in genwqe_curr_regs_show() local
150 genwqe_stop_traps(cd); in genwqe_curr_regs_show()
151 genwqe_read_ffdc_regs(cd, regs, GENWQE_FFDC_REGS, 1); in genwqe_curr_regs_show()
152 genwqe_start_traps(cd); in genwqe_curr_regs_show()
171 struct genwqe_dev *cd = s->private; in genwqe_prev_regs_show() local
173 struct genwqe_reg *regs = cd->ffdc[GENWQE_DBG_REGS].regs; in genwqe_prev_regs_show()
195 struct genwqe_dev *cd = s->private; in genwqe_jtimer_show() local
199 jtimer = genwqe_read_vreg(cd, IO_SLC_VF_APPJOB_TIMEOUT, 0); in genwqe_jtimer_show()
203 for (vf_num = 0; vf_num < cd->num_vfs; vf_num++) { in genwqe_jtimer_show()
204 jtimer = genwqe_read_vreg(cd, IO_SLC_VF_APPJOB_TIMEOUT, in genwqe_jtimer_show()
207 cd->vf_jobtimeout_msec[vf_num]); in genwqe_jtimer_show()
216 struct genwqe_dev *cd = s->private; in genwqe_queue_working_time_show() local
220 t = genwqe_read_vreg(cd, IO_SLC_VF_QUEUE_WTIME, 0); in genwqe_queue_working_time_show()
223 for (vf_num = 0; vf_num < cd->num_vfs; vf_num++) { in genwqe_queue_working_time_show()
224 t = genwqe_read_vreg(cd, IO_SLC_VF_QUEUE_WTIME, vf_num + 1); in genwqe_queue_working_time_show()
234 struct genwqe_dev *cd = s->private; in genwqe_ddcb_info_show() local
239 queue = &cd->queue; in genwqe_ddcb_info_show()
256 cd->irqs_processed); in genwqe_ddcb_info_show()
269 __genwqe_readq(cd, queue->IO_QUEUE_CONFIG), in genwqe_ddcb_info_show()
271 __genwqe_readq(cd, queue->IO_QUEUE_STATUS), in genwqe_ddcb_info_show()
273 __genwqe_readq(cd, queue->IO_QUEUE_SEGMENT), in genwqe_ddcb_info_show()
275 __genwqe_readq(cd, queue->IO_QUEUE_INITSQN), in genwqe_ddcb_info_show()
277 __genwqe_readq(cd, queue->IO_QUEUE_WRAP), in genwqe_ddcb_info_show()
279 __genwqe_readq(cd, queue->IO_QUEUE_OFFSET), in genwqe_ddcb_info_show()
281 __genwqe_readq(cd, queue->IO_QUEUE_WTIME), in genwqe_ddcb_info_show()
283 __genwqe_readq(cd, queue->IO_QUEUE_ERRCNTS), in genwqe_ddcb_info_show()
285 __genwqe_readq(cd, queue->IO_QUEUE_LRW)); in genwqe_ddcb_info_show()
307 struct genwqe_dev *cd = s->private; in genwqe_info_show() local
310 struct pci_dev *pci_dev = cd->pci_dev; in genwqe_info_show()
312 slu_id = __genwqe_readq(cd, IO_SLU_UNITCFG); in genwqe_info_show()
313 app_id = __genwqe_readq(cd, IO_APP_UNITCFG); in genwqe_info_show()
315 if (genwqe_is_privileged(cd)) in genwqe_info_show()
316 bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM); in genwqe_info_show()
329 genwqe_is_privileged(cd) ? in genwqe_info_show()
331 cd->card_idx, slu_id, app_id, in genwqe_info_show()
335 genwqe_base_clock_frequency(cd), in genwqe_info_show()
344 int genwqe_init_debugfs(struct genwqe_dev *cd) in genwqe_init_debugfs() argument
353 sprintf(card_name, "%s%d_card", GENWQE_DEVNAME, cd->card_idx); in genwqe_init_debugfs()
355 root = debugfs_create_dir(card_name, cd->debugfs_genwqe); in genwqe_init_debugfs()
362 file = debugfs_create_file("ddcb_info", S_IRUGO, root, cd, in genwqe_init_debugfs()
369 file = debugfs_create_file("info", S_IRUGO, root, cd, in genwqe_init_debugfs()
376 file = debugfs_create_x64("err_inject", 0666, root, &cd->err_inject); in genwqe_init_debugfs()
383 &cd->ddcb_software_timeout); in genwqe_init_debugfs()
390 &cd->kill_timeout); in genwqe_init_debugfs()
397 if (!genwqe_is_privileged(cd)) { in genwqe_init_debugfs()
398 cd->debugfs_root = root; in genwqe_init_debugfs()
402 file = debugfs_create_file("curr_regs", S_IRUGO, root, cd, in genwqe_init_debugfs()
409 file = debugfs_create_file("curr_dbg_uid0", S_IRUGO, root, cd, in genwqe_init_debugfs()
416 file = debugfs_create_file("curr_dbg_uid1", S_IRUGO, root, cd, in genwqe_init_debugfs()
423 file = debugfs_create_file("curr_dbg_uid2", S_IRUGO, root, cd, in genwqe_init_debugfs()
430 file = debugfs_create_file("prev_regs", S_IRUGO, root, cd, in genwqe_init_debugfs()
437 file = debugfs_create_file("prev_dbg_uid0", S_IRUGO, root, cd, in genwqe_init_debugfs()
444 file = debugfs_create_file("prev_dbg_uid1", S_IRUGO, root, cd, in genwqe_init_debugfs()
451 file = debugfs_create_file("prev_dbg_uid2", S_IRUGO, root, cd, in genwqe_init_debugfs()
462 &cd->vf_jobtimeout_msec[i]); in genwqe_init_debugfs()
469 file = debugfs_create_file("jobtimer", S_IRUGO, root, cd, in genwqe_init_debugfs()
476 file = debugfs_create_file("queue_working_time", S_IRUGO, root, cd, in genwqe_init_debugfs()
484 &cd->skip_recovery); in genwqe_init_debugfs()
491 &cd->use_platform_recovery); in genwqe_init_debugfs()
497 cd->debugfs_root = root; in genwqe_init_debugfs()
505 void genqwe_exit_debugfs(struct genwqe_dev *cd) in genqwe_exit_debugfs() argument
507 debugfs_remove_recursive(cd->debugfs_root); in genqwe_exit_debugfs()