Home
last modified time | relevance | path

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

/drivers/scsi/qedf/
Dqedf_main.c122 void qedf_set_vlan_id(struct qedf_ctx *qedf, int vlan_id) in qedf_set_vlan_id() argument
126 vlan_id_tmp = vlan_id | (qedf->prio << VLAN_PRIO_SHIFT); in qedf_set_vlan_id()
127 qedf->vlan_id = vlan_id_tmp; in qedf_set_vlan_id()
128 QEDF_INFO(&qedf->dbg_ctx, QEDF_LOG_DISC, in qedf_set_vlan_id()
130 vlan_id_tmp, qedf->prio); in qedf_set_vlan_id()
134 static bool qedf_initiate_fipvlan_req(struct qedf_ctx *qedf) in qedf_initiate_fipvlan_req() argument
137 while (qedf->fipvlan_retries--) { in qedf_initiate_fipvlan_req()
139 if (atomic_read(&qedf->link_state) == QEDF_LINK_DOWN) { in qedf_initiate_fipvlan_req()
140 QEDF_ERR(&qedf->dbg_ctx, "Link not up.\n"); in qedf_initiate_fipvlan_req()
144 if (test_bit(QEDF_UNLOADING, &qedf->flags)) { in qedf_initiate_fipvlan_req()
[all …]
Dqedf_io.c11 void qedf_cmd_timer_set(struct qedf_ctx *qedf, struct qedf_ioreq *io_req, in qedf_cmd_timer_set() argument
14 queue_delayed_work(qedf->timer_work_queue, &io_req->timeout_work, in qedf_cmd_timer_set()
23 struct qedf_ctx *qedf; in qedf_cmd_timeout() local
32 qedf = fcport->qedf; in qedf_cmd_timeout()
36 if (qedf == NULL) { in qedf_cmd_timeout()
43 QEDF_ERR((&qedf->dbg_ctx), "ABTS timeout, xid=0x%x.\n", in qedf_cmd_timeout()
66 if (!qedf) { in qedf_cmd_timeout()
81 QEDF_ERR(&(qedf->dbg_ctx), "ELS timeout, xid=0x%x.\n", in qedf_cmd_timeout()
93 QEDF_ERR(&(qedf->dbg_ctx), "Sequence cleanup timeout, " in qedf_cmd_timeout()
97 qedf_process_seq_cleanup_compl(qedf, NULL, io_req); in qedf_cmd_timeout()
[all …]
Dqedf_fip.c15 void qedf_fcoe_send_vlan_req(struct qedf_ctx *qedf) in qedf_fcoe_send_vlan_req() argument
27 QEDF_ERR(&qedf->dbg_ctx, in qedf_fcoe_send_vlan_req()
36 ether_addr_copy(vlan->eth.h_source, qedf->mac); in qedf_fcoe_send_vlan_req()
47 ether_addr_copy(vlan->desc.mac.fd_mac, qedf->mac); in qedf_fcoe_send_vlan_req()
51 put_unaligned_be64(qedf->lport->wwnn, &vlan->desc.wwnn.fd_wwn); in qedf_fcoe_send_vlan_req()
58 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, "Sending FIP VLAN " in qedf_fcoe_send_vlan_req()
61 if (atomic_read(&qedf->link_state) != QEDF_LINK_UP) { in qedf_fcoe_send_vlan_req()
62 QEDF_WARN(&(qedf->dbg_ctx), "Cannot send vlan request " in qedf_fcoe_send_vlan_req()
70 rc = qed_ops->ll2->start_xmit(qedf->cdev, skb, flags); in qedf_fcoe_send_vlan_req()
72 QEDF_ERR(&qedf->dbg_ctx, "start_xmit failed rc = %d.\n", rc); in qedf_fcoe_send_vlan_req()
[all …]
Dqedf_debugfs.c22 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()
[all …]
Dqedf_attr.c8 inline bool qedf_is_vport(struct qedf_ctx *qedf) in qedf_is_vport() argument
10 return qedf->lport->vport != NULL; in qedf_is_vport()
14 static struct qedf_ctx *qedf_get_base_qedf(struct qedf_ctx *qedf) in qedf_get_base_qedf() argument
19 if (!(qedf_is_vport(qedf))) in qedf_get_base_qedf()
22 lport = qedf->lport; in qedf_get_base_qedf()
48 struct qedf_ctx *qedf = lport_priv(lport); in fka_period_show() local
51 if (qedf_is_vport(qedf)) in fka_period_show()
52 qedf = qedf_get_base_qedf(qedf); in fka_period_show()
54 if (qedf->ctlr.sel_fcf) in fka_period_show()
55 fka_period = qedf->ctlr.sel_fcf->fka_period; in fka_period_show()
[all …]
Dqedf_els.c14 struct qedf_ctx *qedf; in qedf_initiate_els() local
33 qedf = fcport->qedf; in qedf_initiate_els()
34 lport = qedf->lport; in qedf_initiate_els()
36 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, "Sending ELS\n"); in qedf_initiate_els()
40 QEDF_ERR(&(qedf->dbg_ctx), "els 0x%x: rport not ready\n", op); in qedf_initiate_els()
45 QEDF_ERR(&(qedf->dbg_ctx), "els 0x%x: link is not ready\n", in qedf_initiate_els()
52 QEDF_ERR(&(qedf->dbg_ctx), "els 0x%x: fcport not ready\n", op); in qedf_initiate_els()
59 QEDF_INFO(&qedf->dbg_ctx, QEDF_LOG_ELS, in qedf_initiate_els()
65 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, "initiate_els els_req = " in qedf_initiate_els()
83 QEDF_ERR(&(qedf->dbg_ctx), "ELS MP request init failed\n"); in qedf_initiate_els()
[all …]
Dqedf_dbg.c10 qedf_dbg_err(struct qedf_dbg_ctx *qedf, const char *func, u32 line, in qedf_dbg_err() argument
21 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_err()
22 pr_err("[%s]:[%s:%d]:%d: %pV", dev_name(&(qedf->pdev->dev)), in qedf_dbg_err()
23 func, line, qedf->host_no, &vaf); in qedf_dbg_err()
31 qedf_dbg_warn(struct qedf_dbg_ctx *qedf, const char *func, u32 line, in qedf_dbg_warn() argument
45 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_warn()
46 pr_warn("[%s]:[%s:%d]:%d: %pV", dev_name(&(qedf->pdev->dev)), in qedf_dbg_warn()
47 func, line, qedf->host_no, &vaf); in qedf_dbg_warn()
56 qedf_dbg_notice(struct qedf_dbg_ctx *qedf, const char *func, u32 line, in qedf_dbg_notice() argument
70 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_notice()
[all …]
Dqedf.h214 struct qedf_ctx *qedf; member
242 struct qedf_ctx *qedf; member
249 struct qedf_ctx *qedf; member
259 struct qedf_ctx *qedf; member
441 struct qedf_ctx *qedf; member
462 static inline void qedf_stop_all_io(struct qedf_ctx *qedf) in qedf_stop_all_io() argument
464 set_bit(QEDF_DBG_STOP_IO, &qedf->flags); in qedf_stop_all_io()
486 extern struct qedf_cmd_mgr *qedf_cmd_mgr_alloc(struct qedf_ctx *qedf);
492 extern void qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb);
493 extern void qedf_fcoe_send_vlan_req(struct qedf_ctx *qedf);
[all …]
Dqedf_dbg.h83 void qedf_dbg_err(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
86 void qedf_dbg_warn(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
89 void qedf_dbg_notice(struct qedf_dbg_ctx *qedf, const char *func,
92 void qedf_dbg_info(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
129 ssize_t (*oper_func)(struct qedf_dbg_ctx *qedf);
150 extern void qedf_dbg_host_init(struct qedf_dbg_ctx *qedf,
153 extern void qedf_dbg_host_exit(struct qedf_dbg_ctx *qedf);
DMakefile2 obj-$(CONFIG_QEDF) := qedf.o
3 qedf-y = qedf_dbg.o qedf_main.o qedf_io.o qedf_fip.o \
6 qedf-$(CONFIG_DEBUG_FS) += qedf_debugfs.o
/drivers/scsi/
DMakefile45 obj-$(CONFIG_QEDF) += qedf/
DKconfig1144 source "drivers/scsi/qedf/Kconfig"