/kernel/linux/linux-6.6/drivers/scsi/qedf/ |
H A D | qedf_main.c | 23 #include "qedf.h" 72 "by the qedf driver. Default is 0 (use OS default)."); 122 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 in qedf_initiate_fipvlan_req() 170 struct qedf_ctx *qedf = qedf_handle_link_update() local 226 qedf_set_data_src_addr(struct qedf_ctx *qedf, struct fc_frame *fp) qedf_set_data_src_addr() argument 272 struct qedf_ctx *qedf = lport_priv(lport); qedf_flogi_resp() local 313 struct qedf_ctx *qedf = lport_priv(lport); qedf_elsct_send() local 333 qedf_send_flogi(struct qedf_ctx *qedf) qedf_send_flogi() argument 368 struct qedf_ctx *qedf = qedf_link_recovery() local 448 qedf_update_link_speed(struct qedf_ctx *qedf, struct qed_link_output *link) qedf_update_link_speed() argument 547 struct qedf_ctx *qedf = (struct qedf_ctx *)dev; qedf_bw_update() local 573 struct qedf_ctx *qedf = (struct qedf_ctx *)dev; qedf_link_update() local 637 struct qedf_ctx *qedf = (struct qedf_ctx *)dev; qedf_dcbx_handler() local 688 struct qedf_ctx *qedf; qedf_get_login_failures() local 720 struct qedf_ctx *qedf; qedf_eh_abort() local 875 qedf_wait_for_upload(struct qedf_ctx *qedf) qedf_wait_for_upload() argument 911 struct qedf_ctx *qedf; qedf_ctx_soft_reset() local 958 struct qedf_ctx *qedf; qedf_eh_host_reset() local 1014 qedf_fcport_lookup(struct qedf_ctx *qedf, u32 port_id) qedf_fcport_lookup() argument 1061 struct qedf_ctx *qedf; qedf_xmit() local 1243 qedf_alloc_sq(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_alloc_sq() argument 1296 qedf_free_sq(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_free_sq() argument 1306 qedf_offload_connection(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_offload_connection() argument 1405 qedf_upload_connection(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_upload_connection() argument 1430 qedf_cleanup_fcport(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_cleanup_fcport() argument 1458 struct qedf_ctx *qedf = lport_priv(lport); qedf_rport_event_handler() local 1646 qedf_fcoe_ctlr_setup(struct qedf_ctx *qedf) qedf_fcoe_ctlr_setup() argument 1655 qedf_setup_fdmi(struct qedf_ctx *qedf) qedf_setup_fdmi() argument 1726 qedf_lport_setup(struct qedf_ctx *qedf) qedf_lport_setup() argument 1965 struct qedf_ctx *qedf = lport_priv(vn_port); qedf_vport_destroy() local 2024 qedf_wait_for_vport_destroy(struct qedf_ctx *qedf) qedf_wait_for_vport_destroy() argument 2064 struct qedf_ctx *qedf = lport_priv(lport); qedf_fc_get_host_stats() local 2193 struct qedf_ctx *qedf = fp->qedf; qedf_fp_has_work() local 2221 struct qedf_ctx *qedf = fp->qedf; qedf_process_completions() local 2362 struct qedf_ctx *qedf = (struct qedf_ctx *)cookie; qedf_simd_int_handler() local 2368 qedf_sync_free_irqs(struct qedf_ctx *qedf) qedf_sync_free_irqs() argument 2395 qedf_request_msix_irq(struct qedf_ctx *qedf) qedf_request_msix_irq() argument 2426 qedf_setup_int(struct qedf_ctx *qedf) qedf_setup_int() argument 2458 qedf_recv_frame(struct qedf_ctx *qedf, struct sk_buff *skb) qedf_recv_frame() argument 2612 struct qedf_ctx *qedf = skb_work->qedf; qedf_ll2_process_skb() local 2655 struct qedf_ctx *qedf = (struct qedf_ctx *)cookie; qedf_ll2_rx() local 2709 qedf_alloc_and_init_sb(struct qedf_ctx *qedf, struct qed_sb_info *sb_info, u16 sb_id) qedf_alloc_and_init_sb() argument 2739 qedf_free_sb(struct qedf_ctx *qedf, struct qed_sb_info *sb_info) qedf_free_sb() argument 2746 qedf_destroy_sb(struct qedf_ctx *qedf) qedf_destroy_sb() argument 2761 qedf_prepare_sb(struct qedf_ctx *qedf) qedf_prepare_sb() argument 2802 qedf_process_cqe(struct qedf_ctx *qedf, struct fcoe_cqe *cqe) qedf_process_cqe() argument 2911 qedf_free_bdq(struct qedf_ctx *qedf) qedf_free_bdq() argument 2931 qedf_free_global_queues(struct qedf_ctx *qedf) qedf_free_global_queues() argument 2953 qedf_alloc_bdq(struct qedf_ctx *qedf) qedf_alloc_bdq() argument 3026 qedf_alloc_global_queues(struct qedf_ctx *qedf) qedf_alloc_global_queues() argument 3160 qedf_set_fcoe_pf_param(struct qedf_ctx *qedf) qedf_set_fcoe_pf_param() argument 3248 qedf_free_fcoe_pf_param(struct qedf_ctx *qedf) qedf_free_fcoe_pf_param() argument 3287 struct qedf_ctx *qedf = NULL; __qedf_probe() local 3721 struct qedf_ctx *qedf; __qedf_remove() local 3851 struct qedf_ctx *qedf = qedf_wq_grcdump() local 3860 struct qedf_ctx *qedf = dev; qedf_schedule_hw_err_handler() local 3902 struct qedf_ctx *qedf = dev; qedf_get_protocol_tlv_data() local 3996 struct qedf_ctx *qedf = qedf_stag_change_work() local 4012 struct qedf_ctx *qedf; qedf_suspend() local 4031 struct qedf_ctx *qedf = dev; qedf_schedule_recovery_handler() local 4039 struct qedf_ctx *qedf = qedf_recovery_handler() local 4068 struct qedf_ctx *qedf; qedf_get_generic_tlv_data() local [all...] |
H A D | qedf_fip.c | 8 #include "qedf.h" 15 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 in qedf_fcoe_send_vlan_req() 79 qedf_fcoe_process_vlan_resp(struct qedf_ctx *qedf, struct sk_buff *skb) qedf_fcoe_process_vlan_resp() argument 123 struct qedf_ctx *qedf = container_of(fip, struct qedf_ctx, ctlr); qedf_fip_send() local 168 qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb) qedf_fip_recv() argument 298 struct qedf_ctx *qedf = lport_priv(lport); qedf_get_src_mac() local [all...] |
H A D | qedf_attr.c | 6 #include "qedf.h" 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() 13 /* Get base qedf for physical port from 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 in fka_period_show() 80 qedf_capture_grc_dump(struct qedf_ctx *qedf) qedf_capture_grc_dump() argument 113 struct qedf_ctx *qedf = lport_priv(lport); qedf_sysfs_read_grcdump() local 131 struct qedf_ctx *qedf = NULL; qedf_sysfs_write_grcdump() local 178 qedf_create_sysfs_ctx_attr(struct qedf_ctx *qedf) qedf_create_sysfs_ctx_attr() argument 183 qedf_remove_sysfs_ctx_attr(struct qedf_ctx *qedf) qedf_remove_sysfs_ctx_attr() argument [all...] |
H A D | qedf_io.c | 8 #include "qedf.h" 11 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() 38 "qedf is NULL for ABTS xid=0x%x.\n", 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() 109 struct qedf_ctx *qedf = cmgr->qedf; qedf_cmd_mgr_free() local 172 qedf_cmd_mgr_alloc(struct qedf_ctx *qedf) qedf_cmd_mgr_alloc() argument 300 struct qedf_ctx *qedf = fcport->qedf; qedf_alloc_cmd() local 406 struct qedf_ctx *qedf = io_req->fcport->qedf; qedf_free_mp_resc() local 476 struct qedf_ctx *qedf = lport_priv(lport); qedf_map_sg() local 596 struct qedf_ctx *qedf = fcport->qedf; qedf_init_task() local 681 struct qedf_ctx *qedf = io_req->fcport->qedf; qedf_init_mp_task() local 803 struct qedf_ctx *qedf = fcport->qedf; qedf_trace_io() local 851 struct qedf_ctx *qedf = lport_priv(lport); qedf_post_io_req() local 933 struct qedf_ctx *qedf = lport_priv(lport); qedf_queuecommand() local 1054 struct qedf_ctx *qedf = io_req->fcport->qedf; qedf_parse_fcp_rsp() local 1106 qedf_unmap_sg_list(struct qedf_ctx *qedf, struct qedf_ioreq *io_req) qedf_unmap_sg_list() argument 1117 qedf_scsi_completion(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_scsi_completion() argument 1319 qedf_scsi_done(struct qedf_ctx *qedf, struct qedf_ioreq *io_req, int result) qedf_scsi_done() argument 1428 qedf_process_warning_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_warning_compl() argument 1498 qedf_process_error_detect(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_error_detect() argument 1552 qedf_flush_els_req(struct qedf_ctx *qedf, struct qedf_ioreq *els_req) qedf_flush_els_req() argument 1586 struct qedf_ctx *qedf; qedf_flush_active_ios() local 1856 struct qedf_ctx *qedf; qedf_initiate_abts() local 1957 qedf_process_abts_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_abts_compl() argument 2050 struct qedf_ctx *qedf = io_req->fcport->qedf; qedf_init_mp_req() local 2125 qedf_drain_request(struct qedf_ctx *qedf) qedf_drain_request() argument 2153 struct qedf_ctx *qedf; qedf_initiate_cleanup() local 2278 qedf_process_cleanup_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_cleanup_compl() argument 2295 struct qedf_ctx *qedf = fcport->qedf; qedf_execute_tmf() local 2418 struct qedf_ctx *qedf; qedf_initiate_tmf() local 2510 qedf_process_tmf_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_tmf_compl() argument 2524 qedf_process_unsol_compl(struct qedf_ctx *qedf, uint16_t que_idx, struct fcoe_cqe *cqe) qedf_process_unsol_compl() argument [all...] |
H A D | qedf_els.c | 6 #include "qedf.h" 14 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 in qedf_initiate_els() 142 qedf_process_els_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *els_req) qedf_process_els_compl() argument 195 struct qedf_ctx *qedf; qedf_rrq_compl() local 244 struct qedf_ctx *qedf; qedf_send_rrq() local 506 struct qedf_ctx *qedf; qedf_send_adisc() local 548 struct qedf_ctx *qedf; qedf_srr_compl() local 626 struct qedf_ctx *qedf; qedf_send_srr() local 743 qedf_process_seq_cleanup_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_seq_cleanup_compl() argument 843 struct qedf_ctx *qedf; qedf_rec_compl() local 1003 struct qedf_ctx *qedf; qedf_send_rec() local [all...] |
H A D | qedf_debugfs.c | 13 #include "qedf.h" 22 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 in qedf_dbg_fp_int_cmd_read() 199 struct qedf_ctx *qedf = container_of(qedf_dbg, qedf_dbg_stop_io_on_error_cmd_read() local 217 struct qedf_ctx *qedf = container_of(qedf_dbg, struct qedf_ctx, qedf_dbg_stop_io_on_error_cmd_write() local 245 struct qedf_ctx *qedf = s->private; qedf_io_trace_show() local 292 struct qedf_ctx *qedf = container_of(qedf_dbg, qedf_dbg_io_trace_open() local 328 struct qedf_ctx *qedf = s->private; qedf_driver_stats_show() local 379 struct qedf_ctx *qedf = container_of(qedf_dbg, qedf_dbg_driver_stats_open() local 404 struct qedf_ctx *qedf = container_of(qedf_dbg, struct qedf_ctx, qedf_dbg_clear_stats_cmd_write() local 422 struct qedf_ctx *qedf = s->private; qedf_offload_stats_show() local 471 struct qedf_ctx *qedf = container_of(qedf_dbg, qedf_dbg_offload_stats_open() local [all...] |
H A D | qedf_dbg.c | 10 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 in qedf_dbg_warn() 56 qedf_dbg_notice(struct qedf_dbg_ctx *qedf, const char *func, u32 line, const char *fmt, ...) qedf_dbg_notice() argument 82 qedf_dbg_info(struct qedf_dbg_ctx *qedf, const char *func, u32 line, u32 level, const char *fmt, ...) qedf_dbg_info() argument [all...] |
H A D | qedf.h | 30 #define QEDF_MODULE_NAME "qedf" 214 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 454 * ptr = qedf_get_task_mem(&qedf->tasks, 128); 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); [all...] |
H A D | qedf_dbg.h | 83 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);
|
H A D | Makefile | 2 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
|
/kernel/linux/linux-5.10/drivers/scsi/qedf/ |
H A D | qedf_main.c | 23 #include "qedf.h" 72 "by the qedf driver. Default is 0 (use OS default)."); 122 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 in qedf_initiate_fipvlan_req() 170 struct qedf_ctx *qedf = qedf_handle_link_update() local 226 qedf_set_data_src_addr(struct qedf_ctx *qedf, struct fc_frame *fp) qedf_set_data_src_addr() argument 272 struct qedf_ctx *qedf = lport_priv(lport); qedf_flogi_resp() local 313 struct qedf_ctx *qedf = lport_priv(lport); qedf_elsct_send() local 333 qedf_send_flogi(struct qedf_ctx *qedf) qedf_send_flogi() argument 368 struct qedf_ctx *qedf = qedf_link_recovery() local 448 qedf_update_link_speed(struct qedf_ctx *qedf, struct qed_link_output *link) qedf_update_link_speed() argument 547 struct qedf_ctx *qedf = (struct qedf_ctx *)dev; qedf_bw_update() local 573 struct qedf_ctx *qedf = (struct qedf_ctx *)dev; qedf_link_update() local 637 struct qedf_ctx *qedf = (struct qedf_ctx *)dev; qedf_dcbx_handler() local 688 struct qedf_ctx *qedf; qedf_get_login_failures() local 720 struct qedf_ctx *qedf; qedf_eh_abort() local 875 qedf_wait_for_upload(struct qedf_ctx *qedf) qedf_wait_for_upload() argument 911 struct qedf_ctx *qedf; qedf_ctx_soft_reset() local 958 struct qedf_ctx *qedf; qedf_eh_host_reset() local 1013 qedf_fcport_lookup(struct qedf_ctx *qedf, u32 port_id) qedf_fcport_lookup() argument 1060 struct qedf_ctx *qedf; qedf_xmit() local 1245 qedf_alloc_sq(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_alloc_sq() argument 1298 qedf_free_sq(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_free_sq() argument 1308 qedf_offload_connection(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_offload_connection() argument 1407 qedf_upload_connection(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_upload_connection() argument 1430 qedf_cleanup_fcport(struct qedf_ctx *qedf, struct qedf_rport *fcport) qedf_cleanup_fcport() argument 1458 struct qedf_ctx *qedf = lport_priv(lport); qedf_rport_event_handler() local 1646 qedf_fcoe_ctlr_setup(struct qedf_ctx *qedf) qedf_fcoe_ctlr_setup() argument 1655 qedf_setup_fdmi(struct qedf_ctx *qedf) qedf_setup_fdmi() argument 1723 qedf_lport_setup(struct qedf_ctx *qedf) qedf_lport_setup() argument 1961 struct qedf_ctx *qedf = lport_priv(vn_port); qedf_vport_destroy() local 2020 qedf_wait_for_vport_destroy(struct qedf_ctx *qedf) qedf_wait_for_vport_destroy() argument 2060 struct qedf_ctx *qedf = lport_priv(lport); qedf_fc_get_host_stats() local 2189 struct qedf_ctx *qedf = fp->qedf; qedf_fp_has_work() local 2217 struct qedf_ctx *qedf = fp->qedf; qedf_process_completions() local 2360 struct qedf_ctx *qedf = (struct qedf_ctx *)cookie; qedf_simd_int_handler() local 2366 qedf_sync_free_irqs(struct qedf_ctx *qedf) qedf_sync_free_irqs() argument 2393 qedf_request_msix_irq(struct qedf_ctx *qedf) qedf_request_msix_irq() argument 2424 qedf_setup_int(struct qedf_ctx *qedf) qedf_setup_int() argument 2456 qedf_recv_frame(struct qedf_ctx *qedf, struct sk_buff *skb) qedf_recv_frame() argument 2610 struct qedf_ctx *qedf = skb_work->qedf; qedf_ll2_process_skb() local 2653 struct qedf_ctx *qedf = (struct qedf_ctx *)cookie; qedf_ll2_rx() local 2707 qedf_alloc_and_init_sb(struct qedf_ctx *qedf, struct qed_sb_info *sb_info, u16 sb_id) qedf_alloc_and_init_sb() argument 2737 qedf_free_sb(struct qedf_ctx *qedf, struct qed_sb_info *sb_info) qedf_free_sb() argument 2744 qedf_destroy_sb(struct qedf_ctx *qedf) qedf_destroy_sb() argument 2759 qedf_prepare_sb(struct qedf_ctx *qedf) qedf_prepare_sb() argument 2800 qedf_process_cqe(struct qedf_ctx *qedf, struct fcoe_cqe *cqe) qedf_process_cqe() argument 2909 qedf_free_bdq(struct qedf_ctx *qedf) qedf_free_bdq() argument 2929 qedf_free_global_queues(struct qedf_ctx *qedf) qedf_free_global_queues() argument 2951 qedf_alloc_bdq(struct qedf_ctx *qedf) qedf_alloc_bdq() argument 3027 qedf_alloc_global_queues(struct qedf_ctx *qedf) qedf_alloc_global_queues() argument 3161 qedf_set_fcoe_pf_param(struct qedf_ctx *qedf) qedf_set_fcoe_pf_param() argument 3249 qedf_free_fcoe_pf_param(struct qedf_ctx *qedf) qedf_free_fcoe_pf_param() argument 3288 struct qedf_ctx *qedf = NULL; __qedf_probe() local 3711 struct qedf_ctx *qedf; __qedf_remove() local 3836 struct qedf_ctx *qedf = qedf_wq_grcdump() local 3845 struct qedf_ctx *qedf = dev; qedf_schedule_hw_err_handler() local 3886 struct qedf_ctx *qedf = dev; qedf_get_protocol_tlv_data() local 3980 struct qedf_ctx *qedf = qedf_stag_change_work() local 3998 struct qedf_ctx *qedf; qedf_suspend() local 4017 struct qedf_ctx *qedf = dev; qedf_schedule_recovery_handler() local 4025 struct qedf_ctx *qedf = qedf_recovery_handler() local 4054 struct qedf_ctx *qedf; qedf_get_generic_tlv_data() local [all...] |
H A D | qedf_fip.c | 8 #include "qedf.h" 15 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 in qedf_fcoe_send_vlan_req() 79 qedf_fcoe_process_vlan_resp(struct qedf_ctx *qedf, struct sk_buff *skb) qedf_fcoe_process_vlan_resp() argument 123 struct qedf_ctx *qedf = container_of(fip, struct qedf_ctx, ctlr); qedf_fip_send() local 168 qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb) qedf_fip_recv() argument 298 struct qedf_ctx *qedf = lport_priv(lport); qedf_get_src_mac() local [all...] |
H A D | qedf_attr.c | 6 #include "qedf.h" 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() 13 /* Get base qedf for physical port from 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() 50 struct qedf_ctx *qedf = lport_priv(lport); in qedf_fka_period_show() local 53 if (qedf_is_vport(qedf)) in qedf_fka_period_show() 54 qedf in qedf_fka_period_show() 73 qedf_capture_grc_dump(struct qedf_ctx *qedf) qedf_capture_grc_dump() argument 106 struct qedf_ctx *qedf = lport_priv(lport); qedf_sysfs_read_grcdump() local 124 struct qedf_ctx *qedf = NULL; qedf_sysfs_write_grcdump() local 173 qedf_create_sysfs_ctx_attr(struct qedf_ctx *qedf) qedf_create_sysfs_ctx_attr() argument 178 qedf_remove_sysfs_ctx_attr(struct qedf_ctx *qedf) qedf_remove_sysfs_ctx_attr() argument [all...] |
H A D | qedf_io.c | 8 #include "qedf.h" 11 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 37 qedf = fcport->qedf; in qedf_cmd_timeout() 41 if (qedf == NULL) { in qedf_cmd_timeout() 43 "qedf is NULL for ABTS xid=0x%x.\n", in qedf_cmd_timeout() 48 QEDF_ERR((&qedf->dbg_ctx), "ABTS timeout, xid=0x%x.\n", in qedf_cmd_timeout() 71 if (!qedf) { in qedf_cmd_timeout() 114 struct qedf_ctx *qedf = cmgr->qedf; qedf_cmd_mgr_free() local 177 qedf_cmd_mgr_alloc(struct qedf_ctx *qedf) qedf_cmd_mgr_alloc() argument 305 struct qedf_ctx *qedf = fcport->qedf; qedf_alloc_cmd() local 411 struct qedf_ctx *qedf = io_req->fcport->qedf; qedf_free_mp_resc() local 481 struct qedf_ctx *qedf = lport_priv(lport); qedf_map_sg() local 601 struct qedf_ctx *qedf = fcport->qedf; qedf_init_task() local 686 struct qedf_ctx *qedf = io_req->fcport->qedf; qedf_init_mp_task() local 808 struct qedf_ctx *qedf = fcport->qedf; qedf_trace_io() local 857 struct qedf_ctx *qedf = lport_priv(lport); qedf_post_io_req() local 939 struct qedf_ctx *qedf = lport_priv(lport); qedf_queuecommand() local 1060 struct qedf_ctx *qedf = io_req->fcport->qedf; qedf_parse_fcp_rsp() local 1113 qedf_unmap_sg_list(struct qedf_ctx *qedf, struct qedf_ioreq *io_req) qedf_unmap_sg_list() argument 1124 qedf_scsi_completion(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_scsi_completion() argument 1332 qedf_scsi_done(struct qedf_ctx *qedf, struct qedf_ioreq *io_req, int result) qedf_scsi_done() argument 1448 qedf_process_warning_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_warning_compl() argument 1518 qedf_process_error_detect(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_error_detect() argument 1572 qedf_flush_els_req(struct qedf_ctx *qedf, struct qedf_ioreq *els_req) qedf_flush_els_req() argument 1606 struct qedf_ctx *qedf; qedf_flush_active_ios() local 1876 struct qedf_ctx *qedf; qedf_initiate_abts() local 1977 qedf_process_abts_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_abts_compl() argument 2070 struct qedf_ctx *qedf = io_req->fcport->qedf; qedf_init_mp_req() local 2145 qedf_drain_request(struct qedf_ctx *qedf) qedf_drain_request() argument 2173 struct qedf_ctx *qedf; qedf_initiate_cleanup() local 2298 qedf_process_cleanup_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_cleanup_compl() argument 2315 struct qedf_ctx *qedf = fcport->qedf; qedf_execute_tmf() local 2438 struct qedf_ctx *qedf; qedf_initiate_tmf() local 2530 qedf_process_tmf_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_tmf_compl() argument 2544 qedf_process_unsol_compl(struct qedf_ctx *qedf, uint16_t que_idx, struct fcoe_cqe *cqe) qedf_process_unsol_compl() argument [all...] |
H A D | qedf_els.c | 6 #include "qedf.h" 14 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 in qedf_initiate_els() 142 qedf_process_els_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *els_req) qedf_process_els_compl() argument 195 struct qedf_ctx *qedf; qedf_rrq_compl() local 244 struct qedf_ctx *qedf; qedf_send_rrq() local 506 struct qedf_ctx *qedf; qedf_send_adisc() local 548 struct qedf_ctx *qedf; qedf_srr_compl() local 626 struct qedf_ctx *qedf; qedf_send_srr() local 743 qedf_process_seq_cleanup_compl(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) qedf_process_seq_cleanup_compl() argument 843 struct qedf_ctx *qedf; qedf_rec_compl() local 1003 struct qedf_ctx *qedf; qedf_send_rec() local [all...] |
H A D | qedf_debugfs.c | 13 #include "qedf.h" 22 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 in qedf_dbg_fp_int_cmd_read() 199 struct qedf_ctx *qedf = container_of(qedf_dbg, qedf_dbg_stop_io_on_error_cmd_read() local 217 struct qedf_ctx *qedf = container_of(qedf_dbg, struct qedf_ctx, qedf_dbg_stop_io_on_error_cmd_write() local 245 struct qedf_ctx *qedf = s->private; qedf_io_trace_show() local 292 struct qedf_ctx *qedf = container_of(qedf_dbg, qedf_dbg_io_trace_open() local 328 struct qedf_ctx *qedf = s->private; qedf_driver_stats_show() local 379 struct qedf_ctx *qedf = container_of(qedf_dbg, qedf_dbg_driver_stats_open() local 404 struct qedf_ctx *qedf = container_of(qedf_dbg, struct qedf_ctx, qedf_dbg_clear_stats_cmd_write() local 422 struct qedf_ctx *qedf = s->private; qedf_offload_stats_show() local 471 struct qedf_ctx *qedf = container_of(qedf_dbg, qedf_dbg_offload_stats_open() local [all...] |
H A D | qedf_dbg.c | 10 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 in qedf_dbg_warn() 56 qedf_dbg_notice(struct qedf_dbg_ctx *qedf, const char *func, u32 line, const char *fmt, ...) qedf_dbg_notice() argument 82 qedf_dbg_info(struct qedf_dbg_ctx *qedf, const char *func, u32 line, u32 level, const char *fmt, ...) qedf_dbg_info() argument [all...] |
H A D | qedf.h | 33 #define QEDF_MODULE_NAME "qedf" 209 struct qedf_ctx *qedf; member 237 struct qedf_ctx *qedf; member 244 struct qedf_ctx *qedf; member 254 struct qedf_ctx *qedf; member 435 struct qedf_ctx *qedf; member 448 * ptr = qedf_get_task_mem(&qedf->tasks, 128); 456 static inline void qedf_stop_all_io(struct qedf_ctx *qedf) in qedf_stop_all_io() argument 458 set_bit(QEDF_DBG_STOP_IO, &qedf->flags); in qedf_stop_all_io() 480 extern struct qedf_cmd_mgr *qedf_cmd_mgr_alloc(struct qedf_ctx *qedf); [all...] |
H A D | qedf_dbg.h | 84 void qedf_dbg_err(struct qedf_dbg_ctx *qedf, const char *func, u32 line, 87 void qedf_dbg_warn(struct qedf_dbg_ctx *qedf, const char *func, u32 line, 90 void qedf_dbg_notice(struct qedf_dbg_ctx *qedf, const char *func, 93 void qedf_dbg_info(struct qedf_dbg_ctx *qedf, const char *func, u32 line, 130 ssize_t (*oper_func)(struct qedf_dbg_ctx *qedf); 151 extern void qedf_dbg_host_init(struct qedf_dbg_ctx *qedf, 154 extern void qedf_dbg_host_exit(struct qedf_dbg_ctx *qedf);
|
H A D | Makefile | 2 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
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | Makefile | 46 obj-$(CONFIG_QEDF) += qedf/
|
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | Makefile | 45 obj-$(CONFIG_QEDF) += qedf/
|