Home
last modified time | relevance | path

Searched refs:qedf (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/drivers/scsi/qedf/
Dqedf_main.c114 void qedf_set_vlan_id(struct qedf_ctx *qedf, int vlan_id) in qedf_set_vlan_id() argument
116 qedf->vlan_id = vlan_id; in qedf_set_vlan_id()
117 qedf->vlan_id |= qedf->prio << VLAN_PRIO_SHIFT; in qedf_set_vlan_id()
118 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, "Setting vlan_id=%04x " in qedf_set_vlan_id()
119 "prio=%d.\n", vlan_id, qedf->prio); in qedf_set_vlan_id()
123 static bool qedf_initiate_fipvlan_req(struct qedf_ctx *qedf) in qedf_initiate_fipvlan_req() argument
127 if (atomic_read(&qedf->link_state) != QEDF_LINK_UP) { in qedf_initiate_fipvlan_req()
128 QEDF_ERR(&(qedf->dbg_ctx), "Link not up.\n"); in qedf_initiate_fipvlan_req()
132 while (qedf->fipvlan_retries--) { in qedf_initiate_fipvlan_req()
133 if (qedf->vlan_id > 0) in qedf_initiate_fipvlan_req()
[all …]
Dqedf_debugfs.c25 qedf_dbg_host_init(struct qedf_dbg_ctx *qedf, in qedf_dbg_host_init() argument
32 QEDF_INFO(qedf, QEDF_LOG_DEBUGFS, "Creating debugfs host node\n"); in qedf_dbg_host_init()
34 sprintf(host_dirname, "host%u", qedf->host_no); in qedf_dbg_host_init()
35 qedf->bdf_dentry = debugfs_create_dir(host_dirname, qedf_dbg_root); in qedf_dbg_host_init()
36 if (!qedf->bdf_dentry) in qedf_dbg_host_init()
45 qedf->bdf_dentry, qedf, in qedf_dbg_host_init()
48 QEDF_INFO(qedf, QEDF_LOG_DEBUGFS, in qedf_dbg_host_init()
51 debugfs_remove_recursive(qedf->bdf_dentry); in qedf_dbg_host_init()
64 qedf_dbg_host_exit(struct qedf_dbg_ctx *qedf) in qedf_dbg_host_exit() argument
66 QEDF_INFO(qedf, QEDF_LOG_DEBUGFS, "Destroying debugfs host " in qedf_dbg_host_exit()
[all …]
Dqedf_attr.c11 inline bool qedf_is_vport(struct qedf_ctx *qedf) in qedf_is_vport() argument
13 return qedf->lport->vport != NULL; in qedf_is_vport()
17 static struct qedf_ctx *qedf_get_base_qedf(struct qedf_ctx *qedf) in qedf_get_base_qedf() argument
22 if (!(qedf_is_vport(qedf))) in qedf_get_base_qedf()
25 lport = qedf->lport; in qedf_get_base_qedf()
53 struct qedf_ctx *qedf = lport_priv(lport); in qedf_fka_period_show() local
56 if (qedf_is_vport(qedf)) in qedf_fka_period_show()
57 qedf = qedf_get_base_qedf(qedf); in qedf_fka_period_show()
59 if (qedf->ctlr.sel_fcf) in qedf_fka_period_show()
60 fka_period = qedf->ctlr.sel_fcf->fka_period; in qedf_fka_period_show()
[all …]
Dqedf_io.c14 void qedf_cmd_timer_set(struct qedf_ctx *qedf, struct qedf_ioreq *io_req, in qedf_cmd_timer_set() argument
17 queue_delayed_work(qedf->timer_work_queue, &io_req->timeout_work, in qedf_cmd_timer_set()
26 struct qedf_ctx *qedf; in qedf_cmd_timeout() local
41 qedf = fcport->qedf; in qedf_cmd_timeout()
45 if (qedf == NULL) { in qedf_cmd_timeout()
51 QEDF_ERR((&qedf->dbg_ctx), "ABTS timeout, xid=0x%x.\n", in qedf_cmd_timeout()
77 QEDF_ERR(&(qedf->dbg_ctx), "ELS timeout, xid=0x%x.\n", in qedf_cmd_timeout()
90 QEDF_ERR(&(qedf->dbg_ctx), "Sequence cleanup timeout, " in qedf_cmd_timeout()
94 qedf_process_seq_cleanup_compl(qedf, NULL, io_req); in qedf_cmd_timeout()
104 struct qedf_ctx *qedf = cmgr->qedf; in qedf_cmd_mgr_free() local
[all …]
Dqedf_fip.c18 void qedf_fcoe_send_vlan_req(struct qedf_ctx *qedf) in qedf_fcoe_send_vlan_req() argument
37 ether_addr_copy(vlan->eth.h_source, qedf->mac); in qedf_fcoe_send_vlan_req()
48 ether_addr_copy(vlan->desc.mac.fd_mac, qedf->mac); in qedf_fcoe_send_vlan_req()
52 put_unaligned_be64(qedf->lport->wwnn, &vlan->desc.wwnn.fd_wwn); in qedf_fcoe_send_vlan_req()
59 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, "Sending FIP VLAN " in qedf_fcoe_send_vlan_req()
62 if (atomic_read(&qedf->link_state) != QEDF_LINK_UP) { in qedf_fcoe_send_vlan_req()
63 QEDF_WARN(&(qedf->dbg_ctx), "Cannot send vlan request " in qedf_fcoe_send_vlan_req()
71 qed_ops->ll2->start_xmit(qedf->cdev, skb, flags); in qedf_fcoe_send_vlan_req()
74 static void qedf_fcoe_process_vlan_resp(struct qedf_ctx *qedf, in qedf_fcoe_process_vlan_resp() argument
98 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, "VLAN response, " in qedf_fcoe_process_vlan_resp()
[all …]
Dqedf_els.c17 struct qedf_ctx *qedf; in qedf_initiate_els() local
38 qedf = fcport->qedf; in qedf_initiate_els()
39 lport = qedf->lport; in qedf_initiate_els()
41 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, "Sending ELS\n"); in qedf_initiate_els()
45 QEDF_ERR(&(qedf->dbg_ctx), "els 0x%x: rport not ready\n", op); in qedf_initiate_els()
50 QEDF_ERR(&(qedf->dbg_ctx), "els 0x%x: link is not ready\n", in qedf_initiate_els()
57 QEDF_ERR(&(qedf->dbg_ctx), "els 0x%x: fcport not ready\n", op); in qedf_initiate_els()
67 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, in qedf_initiate_els()
76 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, "initiate_els els_req = " in qedf_initiate_els()
94 QEDF_ERR(&(qedf->dbg_ctx), "ELS MP request init failed\n"); in qedf_initiate_els()
[all …]
Dqedf_dbg.c13 qedf_dbg_err(struct qedf_dbg_ctx *qedf, const char *func, u32 line, in qedf_dbg_err() argument
28 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_err()
29 pr_err("[%s]:[%s:%d]:%d: %pV", dev_name(&(qedf->pdev->dev)), in qedf_dbg_err()
30 nfunc, line, qedf->host_no, &vaf); in qedf_dbg_err()
38 qedf_dbg_warn(struct qedf_dbg_ctx *qedf, const char *func, u32 line, in qedf_dbg_warn() argument
56 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_warn()
57 pr_warn("[%s]:[%s:%d]:%d: %pV", dev_name(&(qedf->pdev->dev)), in qedf_dbg_warn()
58 nfunc, line, qedf->host_no, &vaf); in qedf_dbg_warn()
67 qedf_dbg_notice(struct qedf_dbg_ctx *qedf, const char *func, u32 line, in qedf_dbg_notice() argument
85 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_notice()
[all …]
Dqedf.h188 struct qedf_ctx *qedf; member
215 struct qedf_ctx *qedf; member
222 struct qedf_ctx *qedf; member
232 struct qedf_ctx *qedf; member
409 struct qedf_ctx *qedf; member
430 static inline void qedf_stop_all_io(struct qedf_ctx *qedf) in qedf_stop_all_io() argument
432 set_bit(QEDF_DBG_STOP_IO, &qedf->flags); in qedf_stop_all_io()
448 extern struct qedf_cmd_mgr *qedf_cmd_mgr_alloc(struct qedf_ctx *qedf);
454 extern void qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb);
455 extern void qedf_fcoe_send_vlan_req(struct qedf_ctx *qedf);
[all …]
Dqedf_dbg.h85 void qedf_dbg_err(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
88 void qedf_dbg_warn(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
91 void qedf_dbg_notice(struct qedf_dbg_ctx *qedf, const char *func,
94 void qedf_dbg_info(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
131 ssize_t (*oper_func)(struct qedf_dbg_ctx *qedf);
152 extern void qedf_dbg_host_init(struct qedf_dbg_ctx *qedf,
155 extern void qedf_dbg_host_exit(struct qedf_dbg_ctx *qedf);
DMakefile1 obj-$(CONFIG_QEDF) := qedf.o
2 qedf-y = qedf_dbg.o qedf_main.o qedf_io.o qedf_fip.o \
5 qedf-$(CONFIG_DEBUG_FS) += qedf_debugfs.o
/Linux-v4.19/drivers/scsi/
DMakefile46 obj-$(CONFIG_QEDF) += qedf/
DKconfig1123 source "drivers/scsi/qedf/Kconfig"
/Linux-v4.19/
DMAINTAINERS11942 F: drivers/scsi/qedf/