Lines Matching refs:qedf

21 qedf_dbg_host_init(struct qedf_dbg_ctx *qedf,  in qedf_dbg_host_init()  argument
27 QEDF_INFO(qedf, QEDF_LOG_DEBUGFS, "Creating debugfs host node\n"); in qedf_dbg_host_init()
29 sprintf(host_dirname, "host%u", qedf->host_no); in qedf_dbg_host_init()
30 qedf->bdf_dentry = debugfs_create_dir(host_dirname, qedf_dbg_root); in qedf_dbg_host_init()
37 debugfs_create_file(dops->name, 0600, qedf->bdf_dentry, qedf, in qedf_dbg_host_init()
106 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_fp_int_cmd_read() local
113 for (id = 0; id < qedf->num_queues; id++) { in qedf_dbg_fp_int_cmd_read()
114 fp = &(qedf->fp_array[id]); in qedf_dbg_fp_int_cmd_read()
190 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_stop_io_on_error_cmd_read() local
195 qedf->stop_io_on_error ? "true" : "false"); in qedf_dbg_stop_io_on_error_cmd_read()
210 struct qedf_ctx *qedf = container_of(qedf_dbg, struct qedf_ctx, in qedf_dbg_stop_io_on_error_cmd_write() local
223 qedf->stop_io_on_error = false; in qedf_dbg_stop_io_on_error_cmd_write()
225 qedf->stop_io_on_error = true; in qedf_dbg_stop_io_on_error_cmd_write()
228 set_bit(QEDF_DBG_STOP_IO, &qedf->flags); in qedf_dbg_stop_io_on_error_cmd_write()
238 struct qedf_ctx *qedf = s->private; in qedf_io_trace_show() local
239 struct qedf_dbg_ctx *qedf_dbg = &qedf->dbg_ctx; in qedf_io_trace_show()
250 spin_lock_irqsave(&qedf->io_trace_lock, flags); in qedf_io_trace_show()
251 idx = qedf->io_trace_idx; in qedf_io_trace_show()
253 io_log = &qedf->io_trace_buf[idx]; in qedf_io_trace_show()
275 spin_unlock_irqrestore(&qedf->io_trace_lock, flags); in qedf_io_trace_show()
285 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_io_trace_open() local
288 return single_open(file, qedf_io_trace_show, qedf); in qedf_dbg_io_trace_open()
321 struct qedf_ctx *qedf = s->private; in qedf_driver_stats_show() local
326 qedf->wwnn, qedf->wwpn); in qedf_driver_stats_show()
327 seq_printf(s, "Host NPortID: %06x\n", qedf->lport->port_id); in qedf_driver_stats_show()
328 seq_printf(s, "Link State: %s\n", atomic_read(&qedf->link_state) ? in qedf_driver_stats_show()
330 seq_printf(s, "Logical Link State: %s\n", qedf->lport->link_up ? in qedf_driver_stats_show()
332 seq_printf(s, "FIP state: %s\n", fip_state_names[qedf->ctlr.state]); in qedf_driver_stats_show()
333 seq_printf(s, "FIP VLAN ID: %d\n", qedf->vlan_id & 0xfff); in qedf_driver_stats_show()
334 seq_printf(s, "FIP 802.1Q Priority: %d\n", qedf->prio); in qedf_driver_stats_show()
335 if (qedf->ctlr.sel_fcf) { in qedf_driver_stats_show()
337 qedf->ctlr.sel_fcf->switch_name); in qedf_driver_stats_show()
338 seq_printf(s, "FCF MAC: %pM\n", qedf->ctlr.sel_fcf->fcf_mac); in qedf_driver_stats_show()
345 atomic_read(&qedf->cmd_mgr->free_list_cnt)); in qedf_driver_stats_show()
346 seq_printf(s, "slow SGEs: %d\n", qedf->slow_sge_ios); in qedf_driver_stats_show()
347 seq_printf(s, "fast SGEs: %d\n\n", qedf->fast_sge_ios); in qedf_driver_stats_show()
352 list_for_each_entry_rcu(fcport, &qedf->fcports, peers) { in qedf_driver_stats_show()
372 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_driver_stats_open() local
375 return single_open(file, qedf_driver_stats_show, qedf); in qedf_dbg_driver_stats_open()
397 struct qedf_ctx *qedf = container_of(qedf_dbg, struct qedf_ctx, in qedf_dbg_clear_stats_cmd_write() local
406 qedf->slow_sge_ios = 0; in qedf_dbg_clear_stats_cmd_write()
407 qedf->fast_sge_ios = 0; in qedf_dbg_clear_stats_cmd_write()
415 struct qedf_ctx *qedf = s->private; in qedf_offload_stats_show() local
420 QEDF_ERR(&(qedf->dbg_ctx), "Could not allocate memory for " in qedf_offload_stats_show()
426 qed_ops->get_stats(qedf->cdev, fw_fcoe_stats); in qedf_offload_stats_show()
464 struct qedf_ctx *qedf = container_of(qedf_dbg, in qedf_dbg_offload_stats_open() local
467 return single_open(file, qedf_offload_stats_show, qedf); in qedf_dbg_offload_stats_open()
471 qedf_dbg_fileops(qedf, fp_int),
472 qedf_dbg_fileops_seq(qedf, io_trace),
473 qedf_dbg_fileops(qedf, debug),
474 qedf_dbg_fileops(qedf, stop_io_on_error),
475 qedf_dbg_fileops_seq(qedf, driver_stats),
476 qedf_dbg_fileops(qedf, clear_stats),
477 qedf_dbg_fileops_seq(qedf, offload_stats),