/linux/drivers/scsi/fnic/ |
H A D | fnic_isr.c | 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() 42 atomic64_inc(&fnic->fnic_stats.misc_stats.intx_dummy); in fnic_isr_legacy() 43 vnic_intr_return_all_credits(&fnic->intr[FNIC_INTX_DUMMY]); in fnic_isr_legacy() [all …]
|
H A D | fnic_fcs.c | 39 static inline void fnic_fdls_set_fcoe_srcmac(struct fnic *fnic, in fnic_fdls_set_fcoe_srcmac() argument 42 FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num, in fnic_fdls_set_fcoe_srcmac() 47 memcpy(fnic->iport.fpma, src_mac, 6); in fnic_fdls_set_fcoe_srcmac() 54 static inline void fnic_fdls_set_fcoe_dstmac(struct fnic *fnic, in fnic_fdls_set_fcoe_dstmac() argument 57 FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num, in fnic_fdls_set_fcoe_dstmac() 62 memcpy(fnic->iport.fcfmac, dst_mac, 6); in fnic_fdls_set_fcoe_dstmac() 67 struct fnic *fnic = *((struct fnic **) shost_priv(shost)); in fnic_get_host_port_state() local 68 struct fnic_iport_s *iport = &fnic->iport; in fnic_get_host_port_state() 71 spin_lock_irqsave(&fnic->fnic_lock, flags); in fnic_get_host_port_state() 72 if (!fnic->link_status) in fnic_get_host_port_state() [all …]
|
H A D | fnic_main.c | 183 struct fnic *fnic = *((struct fnic **) shost_priv(shost)); in fnic_get_host_speed() local 184 u32 port_speed = vnic_dev_port_speed(fnic->vdev); in fnic_get_host_speed() 185 struct fnic_stats *fnic_stats = &fnic->fnic_stats; in fnic_get_host_speed() 187 FNIC_MAIN_DBG(KERN_INFO, fnic->host, fnic->fnic_num, in fnic_get_host_speed() 237 FNIC_MAIN_DBG(KERN_INFO, fnic->host, fnic->fnic_num, in fnic_get_host_speed() 248 struct fnic *fnic = *((struct fnic **) shost_priv(host)); in fnic_get_stats() local 249 struct fc_host_statistics *stats = &fnic->fnic_stats.host_stats; in fnic_get_stats() 254 (jiffies, fnic->stats_time + HZ / FNIC_STATS_RATE_LIMIT)) in fnic_get_stats() 256 fnic->stats_time = jiffies; in fnic_get_stats() 258 spin_lock_irqsave(&fnic->fnic_lock, flags); in fnic_get_stats() [all …]
|
H A D | fnic_scsi.c | 31 static void fnic_cleanup_io(struct fnic *fnic, int exclude_id); 111 static void fnic_release_ioreq_buf(struct fnic *fnic, in fnic_release_ioreq_buf() argument 116 dma_unmap_single(&fnic->pdev->dev, io_req->sgl_list_pa, in fnic_release_ioreq_buf() 123 fnic->io_sgl_pool[io_req->sgl_type]); in fnic_release_ioreq_buf() 125 dma_unmap_single(&fnic->pdev->dev, io_req->sense_buf_pa, in fnic_release_ioreq_buf() 130 fnic_count_portid_ioreqs_iter(struct fnic *fnic, struct scsi_cmnd *sc, in fnic_count_portid_ioreqs_iter() argument 144 unsigned int fnic_count_ioreqs(struct fnic *fnic, u32 portid) in fnic_count_ioreqs() argument 148 fnic_scsi_io_iter(fnic, fnic_count_portid_ioreqs_iter, in fnic_count_ioreqs() 151 FNIC_SCSI_DBG(KERN_DEBUG, fnic->host, fnic->fnic_num, in fnic_count_ioreqs() 156 unsigned int fnic_count_all_ioreqs(struct fnic *fnic) in fnic_count_all_ioreqs() argument [all …]
|
H A D | fip.c | 16 void fnic_fcoe_reset_vlans(struct fnic *fnic) in fnic_fcoe_reset_vlans() argument 21 spin_lock_irqsave(&fnic->vlans_lock, flags); in fnic_fcoe_reset_vlans() 22 if (!list_empty(&fnic->vlan_list)) { in fnic_fcoe_reset_vlans() 23 list_for_each_entry_safe(vlan, next, &fnic->vlan_list, list) { in fnic_fcoe_reset_vlans() 29 spin_unlock_irqrestore(&fnic->vlans_lock, flags); in fnic_fcoe_reset_vlans() 30 FNIC_FIP_DBG(KERN_INFO, fnic->host, fnic->fnic_num, in fnic_fcoe_reset_vlans() 38 void fnic_fcoe_send_vlan_req(struct fnic *fnic) in fnic_fcoe_send_vlan_req() argument 41 struct fnic_iport_s *iport = &fnic->iport; in fnic_fcoe_send_vlan_req() 42 struct fnic_stats *fnic_stats = &fnic->fnic_stats; in fnic_fcoe_send_vlan_req() 49 FNIC_FIP_DBG(KERN_ERR, fnic->host, fnic->fnic_num, in fnic_fcoe_send_vlan_req() [all …]
|
H A D | fnic_res.c | 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 dev_err(&fnic->pdev->dev, "Error getting %s, %d\n", #m, err); \ in fnic_get_vnic_config() 62 dev_info(&fnic->pdev->dev, "vNIC role not defined (def role: FC Init)\n"); in fnic_get_vnic_config() 145 dev_info(&fnic->pdev->dev, "fNIC MAC addr %p wq/wq_copy/rq %d/%d/%d\n", in fnic_get_vnic_config() 146 fnic->data_src_addr, in fnic_get_vnic_config() 149 dev_info(&fnic->pdev->dev, "fNIC node wwn 0x%llx port wwn 0x%llx\n", in fnic_get_vnic_config() 151 dev_info(&fnic->pdev->dev, "fNIC ed_tov %d ra_tov %d\n", in fnic_get_vnic_config() 153 dev_info(&fnic->pdev->dev, "fNIC mtu %d intr timer %d\n", in fnic_get_vnic_config() [all …]
|
H A D | fdls_disc.c | 102 struct fnic *fnic = iport->fnic; in fdls_alloc_frame() local 105 frame = mempool_alloc(fnic->frame_pool, GFP_ATOMIC); in fdls_alloc_frame() 107 FNIC_FCS_DBG(KERN_ERR, fnic->host, fnic->fnic_num, in fdls_alloc_frame() 127 struct fnic *fnic = iport->fnic; in fdls_alloc_oxid() local 132 lockdep_assert_held(&fnic->fnic_lock); in fdls_alloc_oxid() 139 FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num, in fdls_alloc_oxid() 151 FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num, in fdls_alloc_oxid() 167 struct fnic *fnic = iport->fnic; in fdls_free_oxid_idx() local 170 lockdep_assert_held(&fnic->fnic_lock); in fdls_free_oxid_idx() 172 FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num, in fdls_free_oxid_idx() [all …]
|
H A D | fnic.h | 350 struct fnic *fnic; member 362 struct fnic { struct 451 void (*set_vlan)(struct fnic *, u16 vlan); argument 488 void fnic_clear_intr_mode(struct fnic *fnic); argument 489 int fnic_set_intr_mode(struct fnic *fnic); 490 int fnic_set_intr_mode_msix(struct fnic *fnic); 491 void fnic_free_intr(struct fnic *fnic); 492 int fnic_request_intr(struct fnic *fnic); 502 int fnic_rq_cmpl_handler(struct fnic *fnic, int); 506 void fnic_update_mac_locked(struct fnic *, u8 *new); [all …]
|
H A D | fip.h | 123 void fnic_fcoe_process_vlan_resp(struct fnic *fnic, struct fip_header *fiph); 124 void fnic_fcoe_fip_discovery_resp(struct fnic *fnic, struct fip_header *fiph); 125 void fnic_fcoe_process_flogi_resp(struct fnic *fnic, struct fip_header *fiph); 128 void fnic_fcoe_send_vlan_req(struct fnic *fnic); 129 void fnic_fcoe_start_fcf_discovery(struct fnic *fnic); 130 void fnic_fcoe_start_flogi(struct fnic *fnic); 131 void fnic_fcoe_process_cvl(struct fnic *fnic, struct fip_header *fiph); 132 void fnic_vlan_discovery_timeout(struct fnic *fnic); 138 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame() argument 145 FNIC_FCS_DBG(KERN_DEBUG, fnic->host, fnic->fnic_num, in fnic_debug_dump_fip_frame() [all …]
|
H A D | fnic_debugfs.c | 11 struct fnic *fnic); 470 struct fnic *fnic = (struct fnic *)debug->i_private; in fnic_reset_stats_read() local 474 len = sprintf(buf, "%u\n", fnic->reset_stats); in fnic_reset_stats_read() 498 struct fnic *fnic = (struct fnic *)debug->i_private; in fnic_reset_stats_write() local 499 struct fnic_stats *stats = &fnic->fnic_stats; in fnic_reset_stats_write() 518 fnic->reset_stats = val; in fnic_reset_stats_write() 520 if (fnic->reset_stats) { in fnic_reset_stats_write() 525 atomic64_set(&fnic->io_cmpl_skip, in fnic_reset_stats_write() 581 struct fnic *fnic = inode->i_private; in fnic_stats_debugfs_open() local 582 struct fnic_stats *fnic_stats = &fnic->fnic_stats; in fnic_stats_debugfs_open() [all …]
|
H A D | fnic_fdls.h | 264 struct fnic *fnic; member 386 void fnic_del_fabric_timer_sync(struct fnic *fnic); 387 void fnic_del_tport_timer_sync(struct fnic *fnic, 399 void fnic_fdls_init(struct fnic *fnic, int usefip); 402 void fnic_fcoe_send_vlan_req(struct fnic *fnic); 414 void fnic_fcoe_send_vlan_req(struct fnic *fnic); 415 void fnic_common_fip_cleanup(struct fnic *fnic); 416 int fdls_fip_recv_frame(struct fnic *fnic, void *frame); 424 void fnic_scsi_fcpio_reset(struct fnic *fnic); 426 void fnic_rport_exch_reset(struct fnic *fnic, u32 fcid);
|
H A D | fnic_attrs.c | 14 struct fnic *fnic = in fnic_show_state() local 15 *((struct fnic **) shost_priv(class_to_shost(dev))); in fnic_show_state() 17 return sysfs_emit(buf, "%s\n", fnic_state_str[fnic->state]); in fnic_show_state() 29 struct fnic *fnic = in fnic_show_link_state() local 30 *((struct fnic **) shost_priv(class_to_shost(dev))); in fnic_show_link_state() 33 ((fnic->iport.state != FNIC_IPORT_STATE_INIT) && in fnic_show_link_state() 34 (fnic->iport.state != FNIC_IPORT_STATE_LINK_WAIT)) ? in fnic_show_link_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_trace.c | 470 int fnic_get_debug_info(struct stats_debug_info *info, struct fnic *fnic) in fnic_get_debug_info() argument 472 struct fnic_iport_s *iport = &fnic->iport; in fnic_get_debug_info() 484 fnic->name, fnic->fnic_num, in fnic_get_debug_info() 485 fnic_role_to_str(fnic->role), in fnic_get_debug_info() 486 fnic_state_to_str(fnic->state)); in fnic_get_debug_info() 512 spin_lock_irqsave(&fnic->fnic_lock, flags); in fnic_get_debug_info() 520 spin_unlock_irqrestore(&fnic->fnic_lock, flags); in fnic_get_debug_info()
|
/linux/drivers/scsi/ |
H A D | Makefile | 44 obj-$(CONFIG_FCOE_FNIC) += fnic/
|
H A D | Kconfig | 627 The module will be called fnic.
|
/linux/ |
H A D | MAINTAINERS | 5621 F: drivers/scsi/fnic/
|