Lines Matching refs:qedf

22 qedf_dbg_host_init(struct qedf_dbg_ctx *qedf,  in qedf_dbg_host_init()  argument
28 QEDF_INFO(qedf, QEDF_LOG_DEBUGFS, "Creating debugfs host node\n"); in qedf_dbg_host_init()
30 sprintf(host_dirname, "host%u", qedf->host_no); in qedf_dbg_host_init()
31 qedf->bdf_dentry = debugfs_create_dir(host_dirname, qedf_dbg_root); in qedf_dbg_host_init()
38 debugfs_create_file(dops->name, 0600, qedf->bdf_dentry, qedf, in qedf_dbg_host_init()
109 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_fp_int_cmd_read() local
120 for (id = 0; id < qedf->num_queues; id++) { in qedf_dbg_fp_int_cmd_read()
121 fp = &(qedf->fp_array[id]); in qedf_dbg_fp_int_cmd_read()
199 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_stop_io_on_error_cmd_read() local
204 qedf->stop_io_on_error ? "true" : "false"); in qedf_dbg_stop_io_on_error_cmd_read()
217 struct qedf_ctx *qedf = container_of(qedf_dbg, struct qedf_ctx, in qedf_dbg_stop_io_on_error_cmd_write() local
230 qedf->stop_io_on_error = false; in qedf_dbg_stop_io_on_error_cmd_write()
232 qedf->stop_io_on_error = true; in qedf_dbg_stop_io_on_error_cmd_write()
235 set_bit(QEDF_DBG_STOP_IO, &qedf->flags); in qedf_dbg_stop_io_on_error_cmd_write()
245 struct qedf_ctx *qedf = s->private; in qedf_io_trace_show() local
246 struct qedf_dbg_ctx *qedf_dbg = &qedf->dbg_ctx; in qedf_io_trace_show()
257 spin_lock_irqsave(&qedf->io_trace_lock, flags); in qedf_io_trace_show()
258 idx = qedf->io_trace_idx; in qedf_io_trace_show()
260 io_log = &qedf->io_trace_buf[idx]; in qedf_io_trace_show()
282 spin_unlock_irqrestore(&qedf->io_trace_lock, flags); in qedf_io_trace_show()
292 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_io_trace_open() local
295 return single_open(file, qedf_io_trace_show, qedf); in qedf_dbg_io_trace_open()
328 struct qedf_ctx *qedf = s->private; in qedf_driver_stats_show() local
333 qedf->wwnn, qedf->wwpn); in qedf_driver_stats_show()
334 seq_printf(s, "Host NPortID: %06x\n", qedf->lport->port_id); in qedf_driver_stats_show()
335 seq_printf(s, "Link State: %s\n", atomic_read(&qedf->link_state) ? in qedf_driver_stats_show()
337 seq_printf(s, "Logical Link State: %s\n", qedf->lport->link_up ? in qedf_driver_stats_show()
339 seq_printf(s, "FIP state: %s\n", fip_state_names[qedf->ctlr.state]); in qedf_driver_stats_show()
340 seq_printf(s, "FIP VLAN ID: %d\n", qedf->vlan_id & 0xfff); in qedf_driver_stats_show()
341 seq_printf(s, "FIP 802.1Q Priority: %d\n", qedf->prio); in qedf_driver_stats_show()
342 if (qedf->ctlr.sel_fcf) { in qedf_driver_stats_show()
344 qedf->ctlr.sel_fcf->switch_name); in qedf_driver_stats_show()
345 seq_printf(s, "FCF MAC: %pM\n", qedf->ctlr.sel_fcf->fcf_mac); in qedf_driver_stats_show()
352 atomic_read(&qedf->cmd_mgr->free_list_cnt)); in qedf_driver_stats_show()
353 seq_printf(s, "slow SGEs: %d\n", qedf->slow_sge_ios); in qedf_driver_stats_show()
354 seq_printf(s, "fast SGEs: %d\n\n", qedf->fast_sge_ios); in qedf_driver_stats_show()
359 list_for_each_entry_rcu(fcport, &qedf->fcports, peers) { in qedf_driver_stats_show()
379 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_driver_stats_open() local
382 return single_open(file, qedf_driver_stats_show, qedf); in qedf_dbg_driver_stats_open()
404 struct qedf_ctx *qedf = container_of(qedf_dbg, struct qedf_ctx, in qedf_dbg_clear_stats_cmd_write() local
413 qedf->slow_sge_ios = 0; in qedf_dbg_clear_stats_cmd_write()
414 qedf->fast_sge_ios = 0; in qedf_dbg_clear_stats_cmd_write()
422 struct qedf_ctx *qedf = s->private; in qedf_offload_stats_show() local
427 QEDF_ERR(&(qedf->dbg_ctx), "Could not allocate memory for " in qedf_offload_stats_show()
433 qed_ops->get_stats(qedf->cdev, fw_fcoe_stats); in qedf_offload_stats_show()
471 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_offload_stats_open() local
474 return single_open(file, qedf_offload_stats_show, qedf); in qedf_dbg_offload_stats_open()
478 qedf_dbg_fileops(qedf, fp_int),
479 qedf_dbg_fileops_seq(qedf, io_trace),
480 qedf_dbg_fileops(qedf, debug),
481 qedf_dbg_fileops(qedf, stop_io_on_error),
482 qedf_dbg_fileops_seq(qedf, driver_stats),
483 qedf_dbg_fileops(qedf, clear_stats),
484 qedf_dbg_fileops_seq(qedf, offload_stats),