Home
last modified time | relevance | path

Searched refs:snic (Results 1 – 18 of 18) sorted by relevance

/drivers/scsi/snic/
Dsnic_isr.c37 struct snic *snic = data; in snic_isr_msix_wq() local
40 snic->s_stats.misc.last_isr_time = jiffies; in snic_isr_msix_wq()
41 atomic64_inc(&snic->s_stats.misc.isr_cnt); in snic_isr_msix_wq()
43 wq_work_done = snic_wq_cmpl_handler(snic, -1); in snic_isr_msix_wq()
44 svnic_intr_return_credits(&snic->intr[SNIC_MSIX_WQ], in snic_isr_msix_wq()
55 struct snic *snic = data; in snic_isr_msix_io_cmpl() local
58 snic->s_stats.misc.last_isr_time = jiffies; in snic_isr_msix_io_cmpl()
59 atomic64_inc(&snic->s_stats.misc.isr_cnt); in snic_isr_msix_io_cmpl()
61 iocmpl_work_done = snic_fwcq_cmpl_handler(snic, -1); in snic_isr_msix_io_cmpl()
62 svnic_intr_return_credits(&snic->intr[SNIC_MSIX_IO_CMPL], in snic_isr_msix_io_cmpl()
[all …]
Dsnic_ctl.c40 struct snic *snic = container_of(work, struct snic, link_work); in snic_handle_link() local
42 if (snic->config.xpt_type != SNIC_DAS) { in snic_handle_link()
43 SNIC_HOST_INFO(snic->shost, "Link Event Received.\n"); in snic_handle_link()
49 snic->link_status = svnic_dev_link_status(snic->vdev); in snic_handle_link()
50 snic->link_down_cnt = svnic_dev_link_down_cnt(snic->vdev); in snic_handle_link()
51 SNIC_HOST_INFO(snic->shost, "Link Event: Link %s.\n", in snic_handle_link()
52 ((snic->link_status) ? "Up" : "Down")); in snic_handle_link()
108 snic_queue_exch_ver_req(struct snic *snic) in snic_queue_exch_ver_req() argument
115 SNIC_HOST_INFO(snic->shost, "Exch Ver Req Preparing...\n"); in snic_queue_exch_ver_req()
117 rqi = snic_req_init(snic, 0); in snic_queue_exch_ver_req()
[all …]
Dsnic_main.c80 struct snic *snic = shost_priv(sdev->host); in snic_slave_configure() local
89 if (snic->fwinfo.io_tmo > 1) in snic_slave_configure()
90 tmo = snic->fwinfo.io_tmo * HZ; in snic_slave_configure()
136 snic_handle_link_event(struct snic *snic) in snic_handle_link_event() argument
140 spin_lock_irqsave(&snic->snic_lock, flags); in snic_handle_link_event()
141 if (snic->stop_link_events) { in snic_handle_link_event()
142 spin_unlock_irqrestore(&snic->snic_lock, flags); in snic_handle_link_event()
146 spin_unlock_irqrestore(&snic->snic_lock, flags); in snic_handle_link_event()
148 queue_work(snic_glob->event_q, &snic->link_work); in snic_handle_link_event()
158 snic_notify_set(struct snic *snic) in snic_notify_set() argument
[all …]
Dsnic_res.c33 snic_get_vnic_config(struct snic *snic) in snic_get_vnic_config() argument
35 struct vnic_snic_config *c = &snic->config; in snic_get_vnic_config()
40 ret = svnic_dev_spec(snic->vdev, \ in snic_get_vnic_config()
45 SNIC_HOST_ERR(snic->shost, \ in snic_get_vnic_config()
120 snic_get_res_counts(struct snic *snic) in snic_get_res_counts() argument
122 snic->wq_count = svnic_dev_get_res_count(snic->vdev, RES_TYPE_WQ); in snic_get_res_counts()
123 SNIC_BUG_ON(snic->wq_count == 0); in snic_get_res_counts()
124 snic->cq_count = svnic_dev_get_res_count(snic->vdev, RES_TYPE_CQ); in snic_get_res_counts()
125 SNIC_BUG_ON(snic->cq_count == 0); in snic_get_res_counts()
126 snic->intr_count = svnic_dev_get_res_count(snic->vdev, in snic_get_res_counts()
[all …]
Dsnic_disc.c80 snic_queue_report_tgt_req(struct snic *snic) in snic_queue_report_tgt_req() argument
88 rqi = snic_req_init(snic, 1); in snic_queue_report_tgt_req()
94 if (snic->fwinfo.max_tgts) in snic_queue_report_tgt_req()
95 ntgts = min_t(u32, snic->fwinfo.max_tgts, snic->shost->max_id); in snic_queue_report_tgt_req()
97 ntgts = snic->shost->max_id; in snic_queue_report_tgt_req()
105 snic_req_free(snic, rqi); in snic_queue_report_tgt_req()
106 SNIC_HOST_ERR(snic->shost, "Resp Buf Alloc Failed.\n"); in snic_queue_report_tgt_req()
114 pa = pci_map_single(snic->pdev, buf, buf_len, PCI_DMA_FROMDEVICE); in snic_queue_report_tgt_req()
115 if (pci_dma_mapping_error(snic->pdev, pa)) { in snic_queue_report_tgt_req()
117 snic_req_free(snic, rqi); in snic_queue_report_tgt_req()
[all …]
Dsnic_scsi.c80 static void snic_scsi_cleanup(struct snic *, int);
112 snic_io_lock_hash(struct snic *snic, struct scsi_cmnd *sc) in snic_io_lock_hash() argument
116 return &snic->io_req_lock[hash]; in snic_io_lock_hash()
120 snic_io_lock_tag(struct snic *snic, int tag) in snic_io_lock_tag() argument
122 return &snic->io_req_lock[tag & (SNIC_IO_LOCKS - 1)]; in snic_io_lock_tag()
127 snic_release_req_buf(struct snic *snic, in snic_release_req_buf() argument
142 SNIC_SCSI_DBG(snic->shost, in snic_release_req_buf()
149 pci_unmap_single(snic->pdev, in snic_release_req_buf()
156 snic_req_free(snic, rqi); in snic_release_req_buf()
163 snic_queue_icmnd_req(struct snic *snic, in snic_queue_icmnd_req() argument
[all …]
Dsnic_io.c39 struct snic *snic = svnic_dev_priv(wq->vdev); in snic_wq_cmpl_frame_send() local
44 SNIC_HOST_INFO(snic->shost, in snic_wq_cmpl_frame_send()
48 SNIC_TRC(snic->shost->host_no, 0, 0, in snic_wq_cmpl_frame_send()
51 pci_unmap_single(snic->pdev, buf->dma_addr, buf->len, PCI_DMA_TODEVICE); in snic_wq_cmpl_frame_send()
63 struct snic *snic = svnic_dev_priv(vdev); in snic_wq_cmpl_handler_cont() local
68 spin_lock_irqsave(&snic->wq_lock[q_num], flags); in snic_wq_cmpl_handler_cont()
69 svnic_wq_service(&snic->wq[q_num], in snic_wq_cmpl_handler_cont()
74 spin_unlock_irqrestore(&snic->wq_lock[q_num], flags); in snic_wq_cmpl_handler_cont()
80 snic_wq_cmpl_handler(struct snic *snic, int work_to_do) in snic_wq_cmpl_handler() argument
85 snic->s_stats.misc.last_ack_time = jiffies; in snic_wq_cmpl_handler()
[all …]
Dsnic_debugfs.c111 struct snic *snic = (struct snic *) filp->private_data; in snic_reset_stats_read() local
115 len = sprintf(buf, "%u\n", snic->reset_stats); in snic_reset_stats_read()
140 struct snic *snic = (struct snic *) filp->private_data; in snic_reset_stats_write() local
141 struct snic_stats *stats = &snic->s_stats; in snic_reset_stats_write()
160 snic->reset_stats = val; in snic_reset_stats_write()
162 if (snic->reset_stats) { in snic_reset_stats_write()
167 atomic64_set(&snic->io_cmpl_skip, in snic_reset_stats_write()
182 SNIC_HOST_INFO(snic->shost, "Reset Op: Driver statistics.\n"); in snic_reset_stats_write()
201 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show() local
202 struct snic_stats *stats = &snic->s_stats; in snic_stats_show()
[all …]
Dsnic_attrs.c28 struct snic *snic = shost_priv(class_to_shost(dev)); in snic_show_sym_name() local
30 return snprintf(buf, PAGE_SIZE, "%s\n", snic->name); in snic_show_sym_name()
38 struct snic *snic = shost_priv(class_to_shost(dev)); in snic_show_state() local
41 snic_state_str[snic_get_state(snic)]); in snic_show_state()
57 struct snic *snic = shost_priv(class_to_shost(dev)); in snic_show_link_state() local
59 if (snic->config.xpt_type == SNIC_DAS) in snic_show_link_state()
60 snic->link_status = svnic_dev_link_status(snic->vdev); in snic_show_link_state()
63 (snic->link_status) ? "Link Up" : "Link Down"); in snic_show_link_state()
Dsnic.h263 struct snic { struct
382 void snic_shutdown_scsi_cleanup(struct snic *);
385 int snic_request_intr(struct snic *);
386 void snic_free_intr(struct snic *);
387 int snic_set_intr_mode(struct snic *);
388 void snic_clear_intr_mode(struct snic *);
390 int snic_fwcq_cmpl_handler(struct snic *, int);
391 int snic_wq_cmpl_handler(struct snic *, int);
395 void snic_log_q_error(struct snic *);
396 void snic_handle_link_event(struct snic *);
[all …]
Dsnic_io.h68 struct snic;
88 struct snic *snic; /* Associated snic */ member
110 snic_req_init(struct snic *, int sg_cnt);
111 void snic_req_free(struct snic *, struct snic_req_info *);
112 void snic_calc_io_process_time(struct snic *, struct snic_req_info *);
113 void snic_pci_unmap_rsp_buf(struct snic *, struct snic_req_info *);
115 snic_abort_req_init(struct snic *, struct snic_req_info *);
117 snic_dr_req_init(struct snic *, struct snic_req_info *);
Dsnic_disc.h30 struct snic;
41 void (*cb)(struct snic *);
87 int snic_disc_start(struct snic *);
88 void snic_disc_term(struct snic *);
89 int snic_report_tgt_cmpl_handler(struct snic *, struct snic_fw_req *);
90 int snic_tgtinfo_cmpl_handler(struct snic *snic, struct snic_fw_req *fwreq);
95 void snic_tgt_del_all(struct snic *);
Dsnic_res.h89 struct snic;
91 int snic_get_vnic_config(struct snic *);
92 int snic_alloc_vnic_res(struct snic *);
93 void snic_free_vnic_res(struct snic *);
94 void snic_get_res_counts(struct snic *);
95 void snic_log_q_error(struct snic *);
96 int snic_get_vnic_resources_size(struct snic *);
DMakefile1 obj-$(CONFIG_SCSI_SNIC) += snic.o
3 snic-y := \
17 snic-$(CONFIG_SCSI_SNIC_DEBUG_FS) += snic_debugfs.o snic_trc.o
Dsnic_stats.h96 int snic_stats_debugfs_init(struct snic *);
97 void snic_stats_debugfs_remove(struct snic *);
/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c238 struct nicvf *snic; in nicvf_get_sset_count() local
240 snic = nic->snicvf[sqs]; in nicvf_get_sset_count()
241 if (!snic) in nicvf_get_sset_count()
244 (snic->qs->rq_cnt + snic->qs->sq_cnt); in nicvf_get_sset_count()
/drivers/scsi/
DMakefile42 obj-$(CONFIG_SCSI_SNIC) += snic/
DKconfig640 The module will be called snic.