/drivers/scsi/snic/ |
D | snic_isr.c | 37 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 …]
|
D | snic_ctl.c | 40 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 …]
|
D | snic_main.c | 80 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 …]
|
D | snic_res.c | 33 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 …]
|
D | snic_disc.c | 80 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 …]
|
D | snic_scsi.c | 80 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 …]
|
D | snic_io.c | 39 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 …]
|
D | snic_debugfs.c | 111 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 …]
|
D | snic_attrs.c | 28 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()
|
D | snic.h | 263 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 …]
|
D | snic_io.h | 68 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 *);
|
D | snic_disc.h | 30 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 *);
|
D | snic_res.h | 89 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 *);
|
D | Makefile | 1 obj-$(CONFIG_SCSI_SNIC) += snic.o 3 snic-y := \ 17 snic-$(CONFIG_SCSI_SNIC_DEBUG_FS) += snic_debugfs.o snic_trc.o
|
D | snic_stats.h | 96 int snic_stats_debugfs_init(struct snic *); 97 void snic_stats_debugfs_remove(struct snic *);
|
/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_ethtool.c | 238 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/ |
D | Makefile | 42 obj-$(CONFIG_SCSI_SNIC) += snic/
|
D | Kconfig | 640 The module will be called snic.
|