Lines Matching refs:qedf
8 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()
80 void qedf_capture_grc_dump(struct qedf_ctx *qedf) in qedf_capture_grc_dump() argument
85 if (qedf_is_vport(qedf)) in qedf_capture_grc_dump()
86 base_qedf = qedf_get_base_qedf(qedf); in qedf_capture_grc_dump()
88 base_qedf = qedf; in qedf_capture_grc_dump()
113 struct qedf_ctx *qedf = lport_priv(lport); in qedf_sysfs_read_grcdump() local
115 if (test_bit(QEDF_GRCDUMP_CAPTURE, &qedf->flags)) { in qedf_sysfs_read_grcdump()
117 qedf->grcdump, qedf->grcdump_size); in qedf_sysfs_read_grcdump()
119 QEDF_ERR(&(qedf->dbg_ctx), "GRC Dump not captured!\n"); in qedf_sysfs_read_grcdump()
131 struct qedf_ctx *qedf = NULL; in qedf_sysfs_write_grcdump() local
141 qedf = lport_priv(lport); in qedf_sysfs_write_grcdump()
146 QEDF_ERR(&(qedf->dbg_ctx), "Invalid input, err(%d)\n", ret); in qedf_sysfs_write_grcdump()
152 memset(qedf->grcdump, 0, qedf->grcdump_size); in qedf_sysfs_write_grcdump()
153 clear_bit(QEDF_GRCDUMP_CAPTURE, &qedf->flags); in qedf_sysfs_write_grcdump()
156 qedf_capture_grc_dump(qedf); in qedf_sysfs_write_grcdump()
178 void qedf_create_sysfs_ctx_attr(struct qedf_ctx *qedf) in qedf_create_sysfs_ctx_attr() argument
180 qedf_create_sysfs_attr(qedf->lport->host, bin_file_entries); in qedf_create_sysfs_ctx_attr()
183 void qedf_remove_sysfs_ctx_attr(struct qedf_ctx *qedf) in qedf_remove_sysfs_ctx_attr() argument
185 qedf_remove_sysfs_attr(qedf->lport->host, bin_file_entries); in qedf_remove_sysfs_ctx_attr()