/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
H A D | fnic_isr.c | 28 #include "fnic.h" 32 struct fnic *fnic = data; in fnic_isr_legacy() local 36 pba = vnic_intr_legacy_pba(fnic->legacy_pba); in fnic_isr_legacy() 40 fnic->fnic_stats.misc_stats.last_isr_time = jiffies; in fnic_isr_legacy() 41 atomic64_inc(&fnic->fnic_stats.misc_stats.isr_count); in fnic_isr_legacy() 44 vnic_intr_return_all_credits(&fnic->intr[FNIC_INTX_NOTIFY]); in fnic_isr_legacy() 45 fnic_handle_link_event(fnic); in fnic_isr_legacy() 49 vnic_intr_return_all_credits(&fnic->intr[FNIC_INTX_ERR]); in fnic_isr_legacy() 50 fnic_log_q_error(fnic); in fnic_isr_legacy() 69 struct fnic *fnic = data; fnic_isr_msi() local 89 struct fnic *fnic = data; fnic_isr_msix_rq() local 106 struct fnic *fnic = data; fnic_isr_msix_wq() local 122 struct fnic *fnic = data; fnic_isr_msix_wq_copy() local 138 struct fnic *fnic = data; fnic_isr_msix_err_notify() local 150 fnic_free_intr(struct fnic *fnic) fnic_free_intr() argument 172 fnic_request_intr(struct fnic *fnic) fnic_request_intr() argument 235 fnic_set_intr_mode(struct fnic *fnic) fnic_set_intr_mode() argument 330 fnic_clear_intr_mode(struct fnic *fnic) fnic_clear_intr_mode() argument [all...] |
H A D | fnic_fcs.c | 33 #include "fnic.h" 42 static void fnic_set_eth_mode(struct fnic *); 43 static void fnic_fcoe_send_vlan_req(struct fnic *fnic); 44 static void fnic_fcoe_start_fcf_disc(struct fnic *fnic); 45 static void fnic_fcoe_process_vlan_resp(struct fnic *fnic, struct sk_buff *); 46 static int fnic_fcoe_vlan_check(struct fnic *fnic, u1 51 struct fnic *fnic = container_of(work, struct fnic, link_work); fnic_handle_link() local 193 struct fnic *fnic = container_of(work, struct fnic, frame_work); fnic_handle_frame() local 225 fnic_fcoe_evlist_free(struct fnic *fnic) fnic_fcoe_evlist_free() argument 246 struct fnic *fnic = container_of(work, struct fnic, event_work); fnic_handle_event() local 369 fnic_fcoe_send_vlan_req(struct fnic *fnic) fnic_fcoe_send_vlan_req() argument 422 fnic_fcoe_process_vlan_resp(struct fnic *fnic, struct sk_buff *skb) fnic_fcoe_process_vlan_resp() argument 496 fnic_fcoe_start_fcf_disc(struct fnic *fnic) fnic_fcoe_start_fcf_disc() argument 516 fnic_fcoe_vlan_check(struct fnic *fnic, u16 flag) fnic_fcoe_vlan_check() argument 542 fnic_event_enq(struct fnic *fnic, enum fnic_evt ev) fnic_event_enq() argument 561 fnic_fcoe_handle_fip_frame(struct fnic *fnic, struct sk_buff *skb) fnic_fcoe_handle_fip_frame() argument 605 struct fnic *fnic = container_of(work, struct fnic, fip_frame_work); fnic_handle_fip_frame() local 662 fnic_import_rq_eth_pkt(struct fnic *fnic, struct sk_buff *skb) fnic_import_rq_eth_pkt() argument 724 fnic_update_mac_locked(struct fnic *fnic, u8 *new) fnic_update_mac_locked() argument 748 struct fnic *fnic = lport_priv(lport); fnic_update_mac() local 771 struct fnic *fnic = lport_priv(lport); fnic_set_port_id() local 830 struct fnic *fnic = vnic_dev_priv(rq->vdev); fnic_rq_cmpl_frame_recv() local 932 struct fnic *fnic = vnic_dev_priv(vdev); fnic_rq_cmpl_handler_cont() local 940 fnic_rq_cmpl_handler(struct fnic *fnic, int rq_work_to_do) fnic_rq_cmpl_handler() argument 970 struct fnic *fnic = vnic_dev_priv(rq->vdev); fnic_alloc_rq_frame() local 1005 struct fnic *fnic = vnic_dev_priv(rq->vdev); fnic_free_rq_buf() local 1021 struct fnic *fnic = fnic_from_ctlr(fip); fnic_eth_send() local 1073 fnic_send_frame(struct fnic *fnic, struct fc_frame *fp) fnic_send_frame() argument 1162 struct fnic *fnic = lport_priv(lp); fnic_send() local 1195 fnic_flush_tx(struct fnic *fnic) fnic_flush_tx() argument 1212 fnic_set_eth_mode(struct fnic *fnic) fnic_set_eth_mode() argument 1250 struct fnic *fnic = vnic_dev_priv(wq->vdev); fnic_wq_complete_frame_send() local 1263 struct fnic *fnic = vnic_dev_priv(vdev); fnic_wq_cmpl_handler_cont() local 1274 fnic_wq_cmpl_handler(struct fnic *fnic, int work_to_do) fnic_wq_cmpl_handler() argument 1293 struct fnic *fnic = vnic_dev_priv(wq->vdev); fnic_free_wq_buf() local 1302 fnic_fcoe_reset_vlans(struct fnic *fnic) fnic_fcoe_reset_vlans() argument 1323 fnic_handle_fip_timer(struct fnic *fnic) fnic_handle_fip_timer() argument [all...] |
H A D | fnic_main.c | 43 #include "fnic.h" 55 /* Supported devices by fnic module */ 70 MODULE_PARM_DESC(fnic_log_level, "bit mask of fnic logging levels"); 80 "for fnic trace buffer"); 178 struct fnic *fnic = lport_priv(lp); in fnic_get_host_speed() local 179 u32 port_speed = vnic_dev_port_speed(fnic->vdev); in fnic_get_host_speed() 209 struct fnic *fnic = lport_priv(lp); in fnic_get_stats() local 214 if (time_before(jiffies, fnic in fnic_get_stats() 322 struct fnic *fnic = lport_priv(lp); fnic_reset_host_stats() local 346 fnic_log_q_error(struct fnic *fnic) fnic_log_q_error() argument 376 fnic_handle_link_event(struct fnic *fnic) fnic_handle_link_event() argument 391 fnic_notify_set(struct fnic *fnic) fnic_notify_set() argument 419 struct fnic *fnic = from_timer(fnic, t, notify_timer); fnic_notify_timer() local 428 struct fnic *fnic = from_timer(fnic, t, fip_timer); fnic_fip_notify_timer() local 433 fnic_notify_timer_start(struct fnic *fnic) fnic_notify_timer_start() argument 485 fnic_cleanup(struct fnic *fnic) fnic_cleanup() argument 536 fnic_iounmap(struct fnic *fnic) fnic_iounmap() argument 548 struct fnic *fnic = lport_priv(lport); fnic_get_mac() local 553 fnic_set_vlan(struct fnic *fnic, u16 vlan_id) fnic_set_vlan() argument 562 struct fnic *fnic; fnic_probe() local 945 struct fnic *fnic = pci_get_drvdata(pdev); fnic_remove() local [all...] |
H A D | fnic_res.c | 32 #include "fnic.h" 34 int fnic_get_vnic_config(struct fnic *fnic) in fnic_get_vnic_config() argument 36 struct vnic_fc_config *c = &fnic->config; in fnic_get_vnic_config() 41 err = vnic_dev_spec(fnic->vdev, \ in fnic_get_vnic_config() 45 shost_printk(KERN_ERR, fnic->lport->host, \ in fnic_get_vnic_config() 146 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 149 fnic->ctlr.ctl_src_addr, in fnic_get_vnic_config() 152 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 155 shost_printk(KERN_INFO, fnic in fnic_get_vnic_config() 180 fnic_set_nic_config(struct fnic *fnic, u8 rss_default_cpu, u8 rss_hash_type, u8 rss_hash_bits, u8 rss_base_cpu, u8 rss_enable, u8 tso_ipid_split_en, u8 ig_vlan_strip_en) fnic_set_nic_config() argument 199 fnic_get_res_counts(struct fnic *fnic) fnic_get_res_counts() argument 210 fnic_free_vnic_resources(struct fnic *fnic) fnic_free_vnic_resources() argument 230 fnic_alloc_vnic_resources(struct fnic *fnic) fnic_alloc_vnic_resources() argument [all...] |
H A D | fnic_scsi.c | 41 #include "fnic.h" 105 static void fnic_cleanup_io(struct fnic *fnic, int exclude_id); 107 static inline spinlock_t *fnic_io_lock_hash(struct fnic *fnic, in fnic_io_lock_hash() argument 112 return &fnic->io_req_lock[hash]; in fnic_io_lock_hash() 115 static inline spinlock_t *fnic_io_lock_tag(struct fnic *fnic, in fnic_io_lock_tag() argument 118 return &fnic->io_req_lock[tag & (FNIC_IO_LOCKS - 1)]; in fnic_io_lock_tag() 125 static void fnic_release_ioreq_buf(struct fnic *fni argument 144 free_wq_copy_descs(struct fnic *fnic, struct vnic_wq_copy *wq) free_wq_copy_descs() argument 181 __fnic_set_state_flags(struct fnic *fnic, unsigned long st_flags, unsigned long clearbits) __fnic_set_state_flags() argument 206 fnic_fw_reset_handler(struct fnic *fnic) fnic_fw_reset_handler() argument 259 fnic_flogi_reg_handler(struct fnic *fnic, u32 fc_id) fnic_flogi_reg_handler() argument 317 fnic_queue_wq_copy_desc(struct fnic *fnic, struct vnic_wq_copy *wq, struct fnic_io_req *io_req, struct scsi_cmnd *sc, int sg_count) fnic_queue_wq_copy_desc() argument 428 struct fnic *fnic = lport_priv(lp); fnic_queuecommand_lck() local 626 fnic_fcpio_fw_reset_cmpl_handler(struct fnic *fnic, struct fcpio_fw_req *desc) fnic_fcpio_fw_reset_cmpl_handler() argument 710 fnic_fcpio_flogi_reg_cmpl_handler(struct fnic *fnic, struct fcpio_fw_req *desc) fnic_fcpio_flogi_reg_cmpl_handler() argument 789 fnic_fcpio_ack_handler(struct fnic *fnic, unsigned int cq_index, struct fcpio_fw_req *desc) fnic_fcpio_ack_handler() argument 820 fnic_fcpio_icmnd_cmpl_handler(struct fnic *fnic, struct fcpio_fw_req *desc) fnic_fcpio_icmnd_cmpl_handler() argument 1061 fnic_fcpio_itmf_cmpl_handler(struct fnic *fnic, struct fcpio_fw_req *desc) fnic_fcpio_itmf_cmpl_handler() argument 1278 struct fnic *fnic = vnic_dev_priv(vdev); fnic_fcpio_cmpl_handler() local 1328 fnic_wq_copy_cmpl_handler(struct fnic *fnic, int copy_work_to_do) fnic_wq_copy_cmpl_handler() argument 1363 fnic_cleanup_io(struct fnic *fnic, int exclude_id) fnic_cleanup_io() argument 1456 struct fnic *fnic = vnic_dev_priv(wq->vdev); fnic_wq_copy_cleanup_handler() local 1513 fnic_queue_abort_io_req(struct fnic *fnic, int tag, u32 task_req, u8 *fc_lun, struct fnic_io_req *io_req) fnic_queue_abort_io_req() argument 1560 fnic_rport_exch_reset(struct fnic *fnic, u32 port_id) fnic_rport_exch_reset() argument 1692 struct fnic *fnic; fnic_terminate_rport_io() local 1837 struct fnic *fnic; fnic_abort_cmd() local 2067 fnic_queue_dr_io_req(struct fnic *fnic, struct scsi_cmnd *sc, struct fnic_io_req *io_req) fnic_queue_dr_io_req() argument 2127 fnic_clean_pending_aborts(struct fnic *fnic, struct scsi_cmnd *lr_sc, bool new_sc) fnic_clean_pending_aborts() argument 2295 fnic_scsi_host_start_tag(struct fnic *fnic, struct scsi_cmnd *sc) fnic_scsi_host_start_tag() argument 2315 fnic_scsi_host_end_tag(struct fnic *fnic, struct scsi_cmnd *sc) fnic_scsi_host_end_tag() argument 2330 struct fnic *fnic; fnic_device_reset() local 2576 struct fnic *fnic; fnic_reset() local 2623 struct fnic *fnic = lport_priv(lp); fnic_host_reset() local 2670 struct fnic *fnic = lport_priv(lp); fnic_scsi_abort_io() local 2720 struct fnic *fnic = lport_priv(lp); fnic_scsi_cleanup() local 2751 struct fnic *fnic = lport_priv(lp); fnic_exch_mgr_reset() local 2784 fnic_is_abts_pending(struct fnic *fnic, struct scsi_cmnd *lr_sc) fnic_is_abts_pending() argument [all...] |
H A D | fnic.h | 40 #define DRV_NAME "fnic" 113 * state_flags to identify host state along along with fnic's state 212 struct fnic *fnic; member 217 struct fnic { struct 246 u32 in_remove:1; /* fnic device in removal */ 288 void (*set_vlan)(struct fnic *, u16 vlan); 317 static inline struct fnic *fnic_from_ctlr(struct fcoe_ctlr *fip) in fnic_from_ctlr() 319 return container_of(fip, struct fnic, ctlr); in fnic_from_ctlr() 326 void fnic_clear_intr_mode(struct fnic *fni 375 fnic_chk_state_flags_locked(struct fnic *fnic, unsigned long st_flags) fnic_chk_state_flags_locked() argument [all...] |
H A D | fnic_debugfs.c | 22 #include "fnic.h" 45 * fnic_debugfs_init - Initialize debugfs for fnic debug logging 48 * When Debugfs is configured this routine sets up the fnic debugfs 50 * fnic directory and statistics directory for trace buffer and 55 fnic_trace_debugfs_root = debugfs_create_dir("fnic", NULL); in fnic_debugfs_init() 81 * elements that are specific to fnic. 130 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read() 181 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write() 196 * fnic_trace_debugfs_open - Open the fnic trace log 335 * fnic_trace_debugfs_init - Initialize debugfs for fnic trac 487 struct fnic *fnic = (struct fnic *)debug->i_private; fnic_reset_stats_read() local 515 struct fnic *fnic = (struct fnic *)debug->i_private; fnic_reset_stats_write() local 598 struct fnic *fnic = inode->i_private; fnic_stats_debugfs_open() local 696 fnic_stats_debugfs_init(struct fnic *fnic) fnic_stats_debugfs_init() argument 725 fnic_stats_debugfs_remove(struct fnic *fnic) fnic_stats_debugfs_remove() argument [all...] |
H A D | fnic_attrs.c | 21 #include "fnic.h" 27 struct fnic *fnic = lport_priv(lp); in fnic_show_state() local 29 return snprintf(buf, PAGE_SIZE, "%s\n", fnic_state_str[fnic->state]); in fnic_show_state()
|
H A D | fnic_res.h | 238 struct fnic; 240 int fnic_get_vnic_config(struct fnic *); 241 int fnic_alloc_vnic_resources(struct fnic *); 242 void fnic_free_vnic_resources(struct fnic *); 243 void fnic_get_res_counts(struct fnic *); 244 int fnic_set_nic_config(struct fnic *fnic, u8 rss_default_cpu,
|
H A D | Makefile | 2 obj-$(CONFIG_FCOE_FNIC) += fnic.o 4 fnic-y := \
|
H A D | fnic_stats.h | 141 void fnic_stats_debugfs_init(struct fnic *); 142 void fnic_stats_debugfs_remove(struct fnic *);
|
/kernel/linux/linux-6.6/drivers/scsi/fnic/ |
H A D | fnic_isr.c | 16 #include "fnic.h" 20 struct fnic *fnic = data; in fnic_isr_legacy() local 24 pba = vnic_intr_legacy_pba(fnic->legacy_pba); in fnic_isr_legacy() 28 fnic->fnic_stats.misc_stats.last_isr_time = jiffies; in fnic_isr_legacy() 29 atomic64_inc(&fnic->fnic_stats.misc_stats.isr_count); in fnic_isr_legacy() 32 vnic_intr_return_all_credits(&fnic->intr[FNIC_INTX_NOTIFY]); in fnic_isr_legacy() 33 fnic_handle_link_event(fnic); in fnic_isr_legacy() 37 vnic_intr_return_all_credits(&fnic->intr[FNIC_INTX_ERR]); in fnic_isr_legacy() 38 fnic_log_q_error(fnic); in fnic_isr_legacy() 57 struct fnic *fnic = data; fnic_isr_msi() local 77 struct fnic *fnic = data; fnic_isr_msix_rq() local 94 struct fnic *fnic = data; fnic_isr_msix_wq() local 110 struct fnic *fnic = data; fnic_isr_msix_wq_copy() local 126 struct fnic *fnic = data; fnic_isr_msix_err_notify() local 138 fnic_free_intr(struct fnic *fnic) fnic_free_intr() argument 160 fnic_request_intr(struct fnic *fnic) fnic_request_intr() argument 223 fnic_set_intr_mode(struct fnic *fnic) fnic_set_intr_mode() argument 318 fnic_clear_intr_mode(struct fnic *fnic) fnic_clear_intr_mode() argument [all...] |
H A D | fnic_main.c | 31 #include "fnic.h" 43 /* Supported devices by fnic module */ 58 MODULE_PARM_DESC(fnic_log_level, "bit mask of fnic logging levels"); 68 "for fnic trace buffer"); 167 struct fnic *fnic = lport_priv(lp); in fnic_get_host_speed() local 168 u32 port_speed = vnic_dev_port_speed(fnic->vdev); in fnic_get_host_speed() 198 struct fnic *fnic = lport_priv(lp); in fnic_get_stats() local 203 if (time_before(jiffies, fnic in fnic_get_stats() 311 struct fnic *fnic = lport_priv(lp); fnic_reset_host_stats() local 335 fnic_log_q_error(struct fnic *fnic) fnic_log_q_error() argument 365 fnic_handle_link_event(struct fnic *fnic) fnic_handle_link_event() argument 380 fnic_notify_set(struct fnic *fnic) fnic_notify_set() argument 408 struct fnic *fnic = from_timer(fnic, t, notify_timer); fnic_notify_timer() local 417 struct fnic *fnic = from_timer(fnic, t, fip_timer); fnic_fip_notify_timer() local 422 fnic_notify_timer_start(struct fnic *fnic) fnic_notify_timer_start() argument 474 fnic_cleanup(struct fnic *fnic) fnic_cleanup() argument 525 fnic_iounmap(struct fnic *fnic) fnic_iounmap() argument 537 struct fnic *fnic = lport_priv(lport); fnic_get_mac() local 542 fnic_set_vlan(struct fnic *fnic, u16 vlan_id) fnic_set_vlan() argument 547 fnic_scsi_drv_init(struct fnic *fnic) fnic_scsi_drv_init() argument 584 struct fnic *fnic; fnic_probe() local 961 struct fnic *fnic = pci_get_drvdata(pdev); fnic_remove() local [all...] |
H A D | fnic_res.c | 20 #include "fnic.h" 22 int fnic_get_vnic_config(struct fnic *fnic) in fnic_get_vnic_config() argument 24 struct vnic_fc_config *c = &fnic->config; in fnic_get_vnic_config() 29 err = vnic_dev_spec(fnic->vdev, \ in fnic_get_vnic_config() 33 shost_printk(KERN_ERR, fnic->lport->host, \ in fnic_get_vnic_config() 134 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 137 fnic->ctlr.ctl_src_addr, in fnic_get_vnic_config() 140 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 143 shost_printk(KERN_INFO, fnic in fnic_get_vnic_config() 168 fnic_set_nic_config(struct fnic *fnic, u8 rss_default_cpu, u8 rss_hash_type, u8 rss_hash_bits, u8 rss_base_cpu, u8 rss_enable, u8 tso_ipid_split_en, u8 ig_vlan_strip_en) fnic_set_nic_config() argument 187 fnic_get_res_counts(struct fnic *fnic) fnic_get_res_counts() argument 198 fnic_free_vnic_resources(struct fnic *fnic) fnic_free_vnic_resources() argument 218 fnic_alloc_vnic_resources(struct fnic *fnic) fnic_alloc_vnic_resources() argument [all...] |
H A D | fnic_fcs.c | 21 #include "fnic.h" 30 static void fnic_set_eth_mode(struct fnic *); 31 static void fnic_fcoe_send_vlan_req(struct fnic *fnic); 32 static void fnic_fcoe_start_fcf_disc(struct fnic *fnic); 33 static void fnic_fcoe_process_vlan_resp(struct fnic *fnic, struct sk_buff *); 34 static int fnic_fcoe_vlan_check(struct fnic *fnic, u1 39 struct fnic *fnic = container_of(work, struct fnic, link_work); fnic_handle_link() local 183 struct fnic *fnic = container_of(work, struct fnic, frame_work); fnic_handle_frame() local 215 fnic_fcoe_evlist_free(struct fnic *fnic) fnic_fcoe_evlist_free() argument 236 struct fnic *fnic = container_of(work, struct fnic, event_work); fnic_handle_event() local 359 fnic_fcoe_send_vlan_req(struct fnic *fnic) fnic_fcoe_send_vlan_req() argument 412 fnic_fcoe_process_vlan_resp(struct fnic *fnic, struct sk_buff *skb) fnic_fcoe_process_vlan_resp() argument 486 fnic_fcoe_start_fcf_disc(struct fnic *fnic) fnic_fcoe_start_fcf_disc() argument 506 fnic_fcoe_vlan_check(struct fnic *fnic, u16 flag) fnic_fcoe_vlan_check() argument 532 fnic_event_enq(struct fnic *fnic, enum fnic_evt ev) fnic_event_enq() argument 551 fnic_fcoe_handle_fip_frame(struct fnic *fnic, struct sk_buff *skb) fnic_fcoe_handle_fip_frame() argument 595 struct fnic *fnic = container_of(work, struct fnic, fip_frame_work); fnic_handle_fip_frame() local 652 fnic_import_rq_eth_pkt(struct fnic *fnic, struct sk_buff *skb) fnic_import_rq_eth_pkt() argument 714 fnic_update_mac_locked(struct fnic *fnic, u8 *new) fnic_update_mac_locked() argument 738 struct fnic *fnic = lport_priv(lport); fnic_update_mac() local 761 struct fnic *fnic = lport_priv(lport); fnic_set_port_id() local 820 struct fnic *fnic = vnic_dev_priv(rq->vdev); fnic_rq_cmpl_frame_recv() local 922 struct fnic *fnic = vnic_dev_priv(vdev); fnic_rq_cmpl_handler_cont() local 930 fnic_rq_cmpl_handler(struct fnic *fnic, int rq_work_to_do) fnic_rq_cmpl_handler() argument 960 struct fnic *fnic = vnic_dev_priv(rq->vdev); fnic_alloc_rq_frame() local 995 struct fnic *fnic = vnic_dev_priv(rq->vdev); fnic_free_rq_buf() local 1011 struct fnic *fnic = fnic_from_ctlr(fip); fnic_eth_send() local 1063 fnic_send_frame(struct fnic *fnic, struct fc_frame *fp) fnic_send_frame() argument 1152 struct fnic *fnic = lport_priv(lp); fnic_send() local 1185 fnic_flush_tx(struct fnic *fnic) fnic_flush_tx() argument 1202 fnic_set_eth_mode(struct fnic *fnic) fnic_set_eth_mode() argument 1240 struct fnic *fnic = vnic_dev_priv(wq->vdev); fnic_wq_complete_frame_send() local 1253 struct fnic *fnic = vnic_dev_priv(vdev); fnic_wq_cmpl_handler_cont() local 1264 fnic_wq_cmpl_handler(struct fnic *fnic, int work_to_do) fnic_wq_cmpl_handler() argument 1283 struct fnic *fnic = vnic_dev_priv(wq->vdev); fnic_free_wq_buf() local 1292 fnic_fcoe_reset_vlans(struct fnic *fnic) fnic_fcoe_reset_vlans() argument 1313 fnic_handle_fip_timer(struct fnic *fnic) fnic_handle_fip_timer() argument [all...] |
H A D | fnic_scsi.c | 29 #include "fnic.h" 93 static void fnic_cleanup_io(struct fnic *fnic); 95 static inline spinlock_t *fnic_io_lock_hash(struct fnic *fnic, in fnic_io_lock_hash() argument 100 return &fnic->io_req_lock[hash]; in fnic_io_lock_hash() 103 static inline spinlock_t *fnic_io_lock_tag(struct fnic *fnic, in fnic_io_lock_tag() argument 106 return &fnic->io_req_lock[tag & (FNIC_IO_LOCKS - 1)]; in fnic_io_lock_tag() 113 static void fnic_release_ioreq_buf(struct fnic *fni argument 132 free_wq_copy_descs(struct fnic *fnic, struct vnic_wq_copy *wq) free_wq_copy_descs() argument 169 __fnic_set_state_flags(struct fnic *fnic, unsigned long st_flags, unsigned long clearbits) __fnic_set_state_flags() argument 194 fnic_fw_reset_handler(struct fnic *fnic) fnic_fw_reset_handler() argument 247 fnic_flogi_reg_handler(struct fnic *fnic, u32 fc_id) fnic_flogi_reg_handler() argument 305 fnic_queue_wq_copy_desc(struct fnic *fnic, struct vnic_wq_copy *wq, struct fnic_io_req *io_req, struct scsi_cmnd *sc, int sg_count) fnic_queue_wq_copy_desc() argument 418 struct fnic *fnic = lport_priv(lp); fnic_queuecommand_lck() local 612 fnic_fcpio_fw_reset_cmpl_handler(struct fnic *fnic, struct fcpio_fw_req *desc) fnic_fcpio_fw_reset_cmpl_handler() argument 696 fnic_fcpio_flogi_reg_cmpl_handler(struct fnic *fnic, struct fcpio_fw_req *desc) fnic_fcpio_flogi_reg_cmpl_handler() argument 775 fnic_fcpio_ack_handler(struct fnic *fnic, unsigned int cq_index, struct fcpio_fw_req *desc) fnic_fcpio_ack_handler() argument 806 fnic_fcpio_icmnd_cmpl_handler(struct fnic *fnic, struct fcpio_fw_req *desc) fnic_fcpio_icmnd_cmpl_handler() argument 1045 fnic_fcpio_itmf_cmpl_handler(struct fnic *fnic, struct fcpio_fw_req *desc) fnic_fcpio_itmf_cmpl_handler() argument 1272 struct fnic *fnic = vnic_dev_priv(vdev); fnic_fcpio_cmpl_handler() local 1322 fnic_wq_copy_cmpl_handler(struct fnic *fnic, int copy_work_to_do) fnic_wq_copy_cmpl_handler() argument 1360 struct fnic *fnic = data; fnic_cleanup_io_iter() local 1436 fnic_cleanup_io(struct fnic *fnic) fnic_cleanup_io() argument 1446 struct fnic *fnic = vnic_dev_priv(wq->vdev); fnic_wq_copy_cleanup_handler() local 1501 fnic_queue_abort_io_req(struct fnic *fnic, int tag, u32 task_req, u8 *fc_lun, struct fnic_io_req *io_req) fnic_queue_abort_io_req() argument 1549 struct fnic *fnic; global() member 1557 struct fnic *fnic = iter_data->fnic; fnic_rport_abort_io_iter() local 1653 fnic_rport_exch_reset(struct fnic *fnic, u32 port_id) fnic_rport_exch_reset() argument 1681 struct fnic *fnic; fnic_terminate_rport_io() local 1721 struct fnic *fnic; fnic_abort_cmd() local 1947 fnic_queue_dr_io_req(struct fnic *fnic, struct scsi_cmnd *sc, struct fnic_io_req *io_req) fnic_queue_dr_io_req() argument 2007 struct fnic *fnic; global() member 2016 struct fnic *fnic = iter_data->fnic; fnic_pending_aborts_iter() local 2158 fnic_clean_pending_aborts(struct fnic *fnic, struct scsi_cmnd *lr_sc, bool new_sc) fnic_clean_pending_aborts() argument 2199 struct fnic *fnic; fnic_device_reset() local 2451 struct fnic *fnic; fnic_reset() local 2498 struct fnic *fnic = lport_priv(lp); fnic_host_reset() local 2545 struct fnic *fnic = lport_priv(lp); fnic_scsi_abort_io() local 2596 struct fnic *fnic = lport_priv(lp); fnic_scsi_cleanup() local 2627 struct fnic *fnic = lport_priv(lp); fnic_exch_mgr_reset() local 2656 struct fnic *fnic = iter_data->fnic; fnic_abts_pending_iter() local 2702 fnic_is_abts_pending(struct fnic *fnic, struct scsi_cmnd *lr_sc) fnic_is_abts_pending() argument [all...] |
H A D | fnic.h | 28 #define DRV_NAME "fnic" 80 * fnic private data per SCSI command. 114 * state_flags to identify host state along along with fnic's state 213 struct fnic *fnic; member 218 struct fnic { struct 250 u32 in_remove:1; /* fnic device in removal */ 293 void (*set_vlan)(struct fnic *, u16 vlan); 322 static inline struct fnic *fnic_from_ctlr(struct fcoe_ctlr *fip) in fnic_from_ctlr() 324 return container_of(fip, struct fnic, ctl in fnic_from_ctlr() 380 fnic_chk_state_flags_locked(struct fnic *fnic, unsigned long st_flags) fnic_chk_state_flags_locked() argument [all...] |
H A D | fnic_debugfs.c | 8 #include "fnic.h" 31 * fnic_debugfs_init - Initialize debugfs for fnic debug logging 34 * When Debugfs is configured this routine sets up the fnic debugfs 36 * fnic directory and statistics directory for trace buffer and 41 fnic_trace_debugfs_root = debugfs_create_dir("fnic", NULL); in fnic_debugfs_init() 66 * elements that are specific to fnic. 114 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read() 165 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write() 180 * fnic_trace_debugfs_open - Open the fnic trace log 315 * fnic_trace_debugfs_init - Initialize debugfs for fnic trac 467 struct fnic *fnic = (struct fnic *)debug->i_private; fnic_reset_stats_read() local 495 struct fnic *fnic = (struct fnic *)debug->i_private; fnic_reset_stats_write() local 578 struct fnic *fnic = inode->i_private; fnic_stats_debugfs_open() local 676 fnic_stats_debugfs_init(struct fnic *fnic) fnic_stats_debugfs_init() argument 705 fnic_stats_debugfs_remove(struct fnic *fnic) fnic_stats_debugfs_remove() argument [all...] |
H A D | fnic_attrs.c | 9 #include "fnic.h" 15 struct fnic *fnic = lport_priv(lp); in fnic_show_state() local 17 return snprintf(buf, PAGE_SIZE, "%s\n", fnic_state_str[fnic->state]); in fnic_show_state()
|
H A D | fnic_res.h | 226 struct fnic; 228 int fnic_get_vnic_config(struct fnic *); 229 int fnic_alloc_vnic_resources(struct fnic *); 230 void fnic_free_vnic_resources(struct fnic *); 231 void fnic_get_res_counts(struct fnic *); 232 int fnic_set_nic_config(struct fnic *fnic, u8 rss_default_cpu,
|
H A D | Makefile | 2 obj-$(CONFIG_FCOE_FNIC) += fnic.o 4 fnic-y := \
|
H A D | fnic_stats.h | 127 void fnic_stats_debugfs_init(struct fnic *); 128 void fnic_stats_debugfs_remove(struct fnic *);
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | Makefile | 43 obj-$(CONFIG_FCOE_FNIC) += fnic/
|
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | Makefile | 42 obj-$(CONFIG_FCOE_FNIC) += fnic/
|