Lines Matching full:cd

45 	struct genwqe_dev *cd = s->private;  in curr_dbg_uidn_show()  local
49 entries = genwqe_ffdc_buff_size(cd, uid); in curr_dbg_uidn_show()
60 genwqe_stop_traps(cd); /* halt the traps while dumping data */ in curr_dbg_uidn_show()
61 genwqe_ffdc_buff_read(cd, uid, regs, entries); in curr_dbg_uidn_show()
62 genwqe_start_traps(cd); in curr_dbg_uidn_show()
92 struct genwqe_dev *cd = s->private; in prev_dbg_uidn_show() local
94 dbg_uidn_show(s, cd->ffdc[uid].regs, cd->ffdc[uid].entries); in prev_dbg_uidn_show()
121 struct genwqe_dev *cd = s->private; in curr_regs_show() local
129 genwqe_stop_traps(cd); in curr_regs_show()
130 genwqe_read_ffdc_regs(cd, regs, GENWQE_FFDC_REGS, 1); in curr_regs_show()
131 genwqe_start_traps(cd); in curr_regs_show()
150 struct genwqe_dev *cd = s->private; in prev_regs_show() local
152 struct genwqe_reg *regs = cd->ffdc[GENWQE_DBG_REGS].regs; in prev_regs_show()
174 struct genwqe_dev *cd = s->private; in jtimer_show() local
178 jtimer = genwqe_read_vreg(cd, IO_SLC_VF_APPJOB_TIMEOUT, 0); in jtimer_show()
182 for (vf_num = 0; vf_num < cd->num_vfs; vf_num++) { in jtimer_show()
183 jtimer = genwqe_read_vreg(cd, IO_SLC_VF_APPJOB_TIMEOUT, in jtimer_show()
186 cd->vf_jobtimeout_msec[vf_num]); in jtimer_show()
195 struct genwqe_dev *cd = s->private; in queue_working_time_show() local
199 t = genwqe_read_vreg(cd, IO_SLC_VF_QUEUE_WTIME, 0); in queue_working_time_show()
202 for (vf_num = 0; vf_num < cd->num_vfs; vf_num++) { in queue_working_time_show()
203 t = genwqe_read_vreg(cd, IO_SLC_VF_QUEUE_WTIME, vf_num + 1); in queue_working_time_show()
213 struct genwqe_dev *cd = s->private; in ddcb_info_show() local
218 queue = &cd->queue; in ddcb_info_show()
235 cd->irqs_processed); in ddcb_info_show()
248 __genwqe_readq(cd, queue->IO_QUEUE_CONFIG), in ddcb_info_show()
250 __genwqe_readq(cd, queue->IO_QUEUE_STATUS), in ddcb_info_show()
252 __genwqe_readq(cd, queue->IO_QUEUE_SEGMENT), in ddcb_info_show()
254 __genwqe_readq(cd, queue->IO_QUEUE_INITSQN), in ddcb_info_show()
256 __genwqe_readq(cd, queue->IO_QUEUE_WRAP), in ddcb_info_show()
258 __genwqe_readq(cd, queue->IO_QUEUE_OFFSET), in ddcb_info_show()
260 __genwqe_readq(cd, queue->IO_QUEUE_WTIME), in ddcb_info_show()
262 __genwqe_readq(cd, queue->IO_QUEUE_ERRCNTS), in ddcb_info_show()
264 __genwqe_readq(cd, queue->IO_QUEUE_LRW)); in ddcb_info_show()
286 struct genwqe_dev *cd = s->private; in info_show() local
288 struct pci_dev *pci_dev = cd->pci_dev; in info_show()
290 slu_id = __genwqe_readq(cd, IO_SLU_UNITCFG); in info_show()
291 app_id = __genwqe_readq(cd, IO_APP_UNITCFG); in info_show()
293 if (genwqe_is_privileged(cd)) in info_show()
294 bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM); in info_show()
304 genwqe_is_privileged(cd) ? in info_show()
306 cd->card_idx, slu_id, app_id, in info_show()
310 genwqe_base_clock_frequency(cd), in info_show()
319 void genwqe_init_debugfs(struct genwqe_dev *cd) in genwqe_init_debugfs() argument
326 sprintf(card_name, "%s%d_card", GENWQE_DEVNAME, cd->card_idx); in genwqe_init_debugfs()
328 root = debugfs_create_dir(card_name, cd->debugfs_genwqe); in genwqe_init_debugfs()
331 debugfs_create_file("ddcb_info", S_IRUGO, root, cd, &ddcb_info_fops); in genwqe_init_debugfs()
332 debugfs_create_file("info", S_IRUGO, root, cd, &info_fops); in genwqe_init_debugfs()
333 debugfs_create_x64("err_inject", 0666, root, &cd->err_inject); in genwqe_init_debugfs()
335 &cd->ddcb_software_timeout); in genwqe_init_debugfs()
336 debugfs_create_u32("kill_timeout", 0666, root, &cd->kill_timeout); in genwqe_init_debugfs()
339 if (!genwqe_is_privileged(cd)) { in genwqe_init_debugfs()
340 cd->debugfs_root = root; in genwqe_init_debugfs()
344 debugfs_create_file("curr_regs", S_IRUGO, root, cd, &curr_regs_fops); in genwqe_init_debugfs()
345 debugfs_create_file("curr_dbg_uid0", S_IRUGO, root, cd, in genwqe_init_debugfs()
347 debugfs_create_file("curr_dbg_uid1", S_IRUGO, root, cd, in genwqe_init_debugfs()
349 debugfs_create_file("curr_dbg_uid2", S_IRUGO, root, cd, in genwqe_init_debugfs()
351 debugfs_create_file("prev_regs", S_IRUGO, root, cd, &prev_regs_fops); in genwqe_init_debugfs()
352 debugfs_create_file("prev_dbg_uid0", S_IRUGO, root, cd, in genwqe_init_debugfs()
354 debugfs_create_file("prev_dbg_uid1", S_IRUGO, root, cd, in genwqe_init_debugfs()
356 debugfs_create_file("prev_dbg_uid2", S_IRUGO, root, cd, in genwqe_init_debugfs()
362 &cd->vf_jobtimeout_msec[i]); in genwqe_init_debugfs()
365 debugfs_create_file("jobtimer", S_IRUGO, root, cd, &jtimer_fops); in genwqe_init_debugfs()
366 debugfs_create_file("queue_working_time", S_IRUGO, root, cd, in genwqe_init_debugfs()
368 debugfs_create_u32("skip_recovery", 0666, root, &cd->skip_recovery); in genwqe_init_debugfs()
370 &cd->use_platform_recovery); in genwqe_init_debugfs()
372 cd->debugfs_root = root; in genwqe_init_debugfs()
375 void genqwe_exit_debugfs(struct genwqe_dev *cd) in genqwe_exit_debugfs() argument
377 debugfs_remove_recursive(cd->debugfs_root); in genqwe_exit_debugfs()