Home
last modified time | relevance | path

Searched refs:fnic (Results 1 – 14 of 14) sorted by relevance

/linux-5.19.10/drivers/scsi/fnic/
Dfnic_isr.c32 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()
54 work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions); in fnic_isr_legacy()
55 work_done += fnic_wq_cmpl_handler(fnic, -1); in fnic_isr_legacy()
[all …]
Dfnic_fcs.c42 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, u16 flag);
47 static int fnic_fcoe_handle_fip_frame(struct fnic *fnic, struct sk_buff *skb);
51 struct fnic *fnic = container_of(work, struct fnic, link_work); in fnic_handle_link() local
57 spin_lock_irqsave(&fnic->fnic_lock, flags); in fnic_handle_link()
59 fnic->link_events = 1; /* less work to just set everytime*/ in fnic_handle_link()
61 if (fnic->stop_rx_link_events) { in fnic_handle_link()
[all …]
Dfnic_main.c179 struct fnic *fnic = lport_priv(lp); in fnic_get_host_speed() local
180 u32 port_speed = vnic_dev_port_speed(fnic->vdev); in fnic_get_host_speed()
210 struct fnic *fnic = lport_priv(lp); in fnic_get_stats() local
215 if (time_before(jiffies, fnic->stats_time + HZ / FNIC_STATS_RATE_LIMIT)) in fnic_get_stats()
217 fnic->stats_time = jiffies; in fnic_get_stats()
219 spin_lock_irqsave(&fnic->fnic_lock, flags); in fnic_get_stats()
220 ret = vnic_dev_stats_dump(fnic->vdev, &fnic->stats); in fnic_get_stats()
221 spin_unlock_irqrestore(&fnic->fnic_lock, flags); in fnic_get_stats()
224 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_get_stats()
229 vs = fnic->stats; in fnic_get_stats()
[all …]
Dfnic_res.c34 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->lport->host, in fnic_get_vnic_config()
158 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
161 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config()
[all …]
Dfnic_scsi.c105 static void fnic_cleanup_io(struct fnic *fnic);
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 *fnic, in fnic_release_ioreq_buf() argument
130 dma_unmap_single(&fnic->pdev->dev, io_req->sgl_list_pa, in fnic_release_ioreq_buf()
137 fnic->io_sgl_pool[io_req->sgl_type]); in fnic_release_ioreq_buf()
139 dma_unmap_single(&fnic->pdev->dev, io_req->sense_buf_pa, in fnic_release_ioreq_buf()
144 static int free_wq_copy_descs(struct fnic *fnic, struct vnic_wq_copy *wq) in free_wq_copy_descs() argument
[all …]
Dfnic.h225 struct fnic *fnic; member
230 struct fnic { struct
302 void (*set_vlan)(struct fnic *, u16 vlan); argument
331 static inline struct fnic *fnic_from_ctlr(struct fcoe_ctlr *fip) in fnic_from_ctlr() argument
333 return container_of(fip, struct fnic, ctlr); in fnic_from_ctlr()
340 void fnic_clear_intr_mode(struct fnic *fnic);
341 int fnic_set_intr_mode(struct fnic *fnic);
342 void fnic_free_intr(struct fnic *fnic);
343 int fnic_request_intr(struct fnic *fnic);
350 int fnic_rq_cmpl_handler(struct fnic *fnic, int);
[all …]
Dfnic_debugfs.c484 struct fnic *fnic = (struct fnic *)debug->i_private; in fnic_reset_stats_read() local
488 len = sprintf(buf, "%u\n", fnic->reset_stats); in fnic_reset_stats_read()
512 struct fnic *fnic = (struct fnic *)debug->i_private; in fnic_reset_stats_write() local
513 struct fnic_stats *stats = &fnic->fnic_stats; in fnic_reset_stats_write()
532 fnic->reset_stats = val; in fnic_reset_stats_write()
534 if (fnic->reset_stats) { in fnic_reset_stats_write()
539 atomic64_set(&fnic->io_cmpl_skip, in fnic_reset_stats_write()
595 struct fnic *fnic = inode->i_private; in fnic_stats_debugfs_open() local
596 struct fnic_stats *fnic_stats = &fnic->fnic_stats; in fnic_stats_debugfs_open()
693 void fnic_stats_debugfs_init(struct fnic *fnic) in fnic_stats_debugfs_init() argument
[all …]
Dfnic_attrs.c27 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()
Dfnic_res.h238 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,
DMakefile2 obj-$(CONFIG_FCOE_FNIC) += fnic.o
4 fnic-y := \
Dfnic_stats.h141 void fnic_stats_debugfs_init(struct fnic *);
142 void fnic_stats_debugfs_remove(struct fnic *);
/linux-5.19.10/drivers/scsi/
DMakefile42 obj-$(CONFIG_FCOE_FNIC) += fnic/
DKconfig624 The module will be called fnic.
/linux-5.19.10/
DMAINTAINERS4917 F: drivers/scsi/fnic/