/drivers/scsi/fnic/ |
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 work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions); in fnic_isr_legacy() 43 work_done += fnic_wq_cmpl_handler(fnic, -1); in fnic_isr_legacy() [all …]
|
D | fnic_fcs.c | 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, u16 flag); 35 static int fnic_fcoe_handle_fip_frame(struct fnic *fnic, struct sk_buff *skb); 39 struct fnic *fnic = container_of(work, struct fnic, link_work); in fnic_handle_link() local 45 spin_lock_irqsave(&fnic->fnic_lock, flags); in fnic_handle_link() 47 fnic->link_events = 1; /* less work to just set everytime*/ in fnic_handle_link() 49 if (fnic->stop_rx_link_events) { in fnic_handle_link() [all …]
|
D | fnic_main.c | 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->stats_time + HZ / FNIC_STATS_RATE_LIMIT)) in fnic_get_stats() 205 fnic->stats_time = jiffies; in fnic_get_stats() 207 spin_lock_irqsave(&fnic->fnic_lock, flags); in fnic_get_stats() 208 ret = vnic_dev_stats_dump(fnic->vdev, &fnic->stats); in fnic_get_stats() 209 spin_unlock_irqrestore(&fnic->fnic_lock, flags); in fnic_get_stats() 212 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_get_stats() 217 vs = fnic->stats; in fnic_get_stats() [all …]
|
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 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->lport->host, in fnic_get_vnic_config() 146 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 149 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() [all …]
|
D | fnic_scsi.c | 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 *fnic, in fnic_release_ioreq_buf() argument 118 dma_unmap_single(&fnic->pdev->dev, io_req->sgl_list_pa, in fnic_release_ioreq_buf() 125 fnic->io_sgl_pool[io_req->sgl_type]); in fnic_release_ioreq_buf() 127 dma_unmap_single(&fnic->pdev->dev, io_req->sense_buf_pa, in fnic_release_ioreq_buf() 132 static int free_wq_copy_descs(struct fnic *fnic, struct vnic_wq_copy *wq) in free_wq_copy_descs() argument [all …]
|
D | fnic.h | 213 struct fnic *fnic; member 218 struct fnic { struct 290 void (*set_vlan)(struct fnic *, u16 vlan); argument 319 static inline struct fnic *fnic_from_ctlr(struct fcoe_ctlr *fip) in fnic_from_ctlr() argument 321 return container_of(fip, struct fnic, ctlr); in fnic_from_ctlr() 328 void fnic_clear_intr_mode(struct fnic *fnic); 329 int fnic_set_intr_mode(struct fnic *fnic); 330 void fnic_free_intr(struct fnic *fnic); 331 int fnic_request_intr(struct fnic *fnic); 338 int fnic_rq_cmpl_handler(struct fnic *fnic, int); [all …]
|
D | fnic_debugfs.c | 471 struct fnic *fnic = (struct fnic *)debug->i_private; in fnic_reset_stats_read() local 475 len = sprintf(buf, "%u\n", fnic->reset_stats); in fnic_reset_stats_read() 499 struct fnic *fnic = (struct fnic *)debug->i_private; in fnic_reset_stats_write() local 500 struct fnic_stats *stats = &fnic->fnic_stats; in fnic_reset_stats_write() 519 fnic->reset_stats = val; in fnic_reset_stats_write() 521 if (fnic->reset_stats) { in fnic_reset_stats_write() 526 atomic64_set(&fnic->io_cmpl_skip, in fnic_reset_stats_write() 582 struct fnic *fnic = inode->i_private; in fnic_stats_debugfs_open() local 583 struct fnic_stats *fnic_stats = &fnic->fnic_stats; in fnic_stats_debugfs_open() 680 void fnic_stats_debugfs_init(struct fnic *fnic) in fnic_stats_debugfs_init() argument [all …]
|
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,
|
D | fnic_attrs.c | 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()
|
D | Makefile | 2 obj-$(CONFIG_FCOE_FNIC) += fnic.o 4 fnic-y := \
|
D | fnic_stats.h | 127 void fnic_stats_debugfs_init(struct fnic *); 128 void fnic_stats_debugfs_remove(struct fnic *);
|
/drivers/scsi/ |
D | Makefile | 42 obj-$(CONFIG_FCOE_FNIC) += fnic/
|
D | Kconfig | 614 The module will be called fnic.
|