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