/linux-6.12.1/drivers/scsi/snic/ |
D | snic_isr.c | 23 struct snic *snic = data; in snic_isr_msix_wq() local 26 snic->s_stats.misc.last_isr_time = jiffies; in snic_isr_msix_wq() 27 atomic64_inc(&snic->s_stats.misc.ack_isr_cnt); in snic_isr_msix_wq() 29 wq_work_done = snic_wq_cmpl_handler(snic, -1); in snic_isr_msix_wq() 30 svnic_intr_return_credits(&snic->intr[SNIC_MSIX_WQ], in snic_isr_msix_wq() 41 struct snic *snic = data; in snic_isr_msix_io_cmpl() local 44 snic->s_stats.misc.last_isr_time = jiffies; in snic_isr_msix_io_cmpl() 45 atomic64_inc(&snic->s_stats.misc.cmpl_isr_cnt); in snic_isr_msix_io_cmpl() 47 iocmpl_work_done = snic_fwcq_cmpl_handler(snic, -1); in snic_isr_msix_io_cmpl() 48 svnic_intr_return_credits(&snic->intr[SNIC_MSIX_IO_CMPL], in snic_isr_msix_io_cmpl() [all …]
|
D | snic_ctl.c | 26 struct snic *snic = container_of(work, struct snic, link_work); in snic_handle_link() local 28 if (snic->config.xpt_type == SNIC_DAS) in snic_handle_link() 31 snic->link_status = svnic_dev_link_status(snic->vdev); in snic_handle_link() 32 snic->link_down_cnt = svnic_dev_link_down_cnt(snic->vdev); in snic_handle_link() 33 SNIC_HOST_INFO(snic->shost, "Link Event: Link %s.\n", in snic_handle_link() 34 ((snic->link_status) ? "Up" : "Down")); in snic_handle_link() 92 snic_queue_exch_ver_req(struct snic *snic) in snic_queue_exch_ver_req() argument 99 SNIC_HOST_INFO(snic->shost, "Exch Ver Req Preparing...\n"); in snic_queue_exch_ver_req() 101 rqi = snic_req_init(snic, 0); in snic_queue_exch_ver_req() 103 SNIC_HOST_ERR(snic->shost, "Init Exch Ver Req failed\n"); in snic_queue_exch_ver_req() [all …]
|
D | snic_main.c | 66 struct snic *snic = shost_priv(sdev->host); in snic_slave_configure() local 75 if (snic->fwinfo.io_tmo > 1) in snic_slave_configure() 76 tmo = snic->fwinfo.io_tmo * HZ; in snic_slave_configure() 87 struct snic *snic = shost_priv(sdev->host); in snic_change_queue_depth() local 92 atomic64_inc(&snic->s_stats.misc.qsz_rampdown); in snic_change_queue_depth() 94 atomic64_inc(&snic->s_stats.misc.qsz_rampup); in snic_change_queue_depth() 96 atomic64_set(&snic->s_stats.misc.last_qsz, sdev->queue_depth); in snic_change_queue_depth() 128 snic_handle_link_event(struct snic *snic) in snic_handle_link_event() argument 132 spin_lock_irqsave(&snic->snic_lock, flags); in snic_handle_link_event() 133 if (snic->stop_link_events) { in snic_handle_link_event() [all …]
|
D | snic_res.c | 19 snic_get_vnic_config(struct snic *snic) in snic_get_vnic_config() argument 21 struct vnic_snic_config *c = &snic->config; in snic_get_vnic_config() 26 ret = svnic_dev_spec(snic->vdev, \ in snic_get_vnic_config() 31 SNIC_HOST_ERR(snic->shost, \ in snic_get_vnic_config() 106 snic_get_res_counts(struct snic *snic) in snic_get_res_counts() argument 108 snic->wq_count = svnic_dev_get_res_count(snic->vdev, RES_TYPE_WQ); in snic_get_res_counts() 109 SNIC_BUG_ON(snic->wq_count == 0); in snic_get_res_counts() 110 snic->cq_count = svnic_dev_get_res_count(snic->vdev, RES_TYPE_CQ); in snic_get_res_counts() 111 SNIC_BUG_ON(snic->cq_count == 0); in snic_get_res_counts() 112 snic->intr_count = svnic_dev_get_res_count(snic->vdev, in snic_get_res_counts() [all …]
|
D | snic_disc.c | 66 snic_queue_report_tgt_req(struct snic *snic) in snic_queue_report_tgt_req() argument 74 rqi = snic_req_init(snic, 1); in snic_queue_report_tgt_req() 80 if (snic->fwinfo.max_tgts) in snic_queue_report_tgt_req() 81 ntgts = min_t(u32, snic->fwinfo.max_tgts, snic->shost->max_id); in snic_queue_report_tgt_req() 83 ntgts = snic->shost->max_id; in snic_queue_report_tgt_req() 91 snic_req_free(snic, rqi); in snic_queue_report_tgt_req() 92 SNIC_HOST_ERR(snic->shost, "Resp Buf Alloc Failed.\n"); in snic_queue_report_tgt_req() 100 pa = dma_map_single(&snic->pdev->dev, buf, buf_len, DMA_FROM_DEVICE); in snic_queue_report_tgt_req() 101 if (dma_mapping_error(&snic->pdev->dev, pa)) { in snic_queue_report_tgt_req() 102 SNIC_HOST_ERR(snic->shost, in snic_queue_report_tgt_req() [all …]
|
D | snic_io.c | 25 struct snic *snic = svnic_dev_priv(wq->vdev); in snic_wq_cmpl_frame_send() local 30 SNIC_HOST_INFO(snic->shost, in snic_wq_cmpl_frame_send() 34 SNIC_TRC(snic->shost->host_no, 0, 0, in snic_wq_cmpl_frame_send() 49 struct snic *snic = svnic_dev_priv(vdev); in snic_wq_cmpl_handler_cont() local 54 spin_lock_irqsave(&snic->wq_lock[q_num], flags); in snic_wq_cmpl_handler_cont() 55 svnic_wq_service(&snic->wq[q_num], in snic_wq_cmpl_handler_cont() 60 spin_unlock_irqrestore(&snic->wq_lock[q_num], flags); in snic_wq_cmpl_handler_cont() 66 snic_wq_cmpl_handler(struct snic *snic, int work_to_do) in snic_wq_cmpl_handler() argument 71 snic->s_stats.misc.last_ack_time = jiffies; in snic_wq_cmpl_handler() 72 for (i = 0; i < snic->wq_count; i++) { in snic_wq_cmpl_handler() [all …]
|
D | snic_scsi.c | 66 static void snic_scsi_cleanup(struct snic *, int); 98 snic_io_lock_hash(struct snic *snic, struct scsi_cmnd *sc) in snic_io_lock_hash() argument 102 return &snic->io_req_lock[hash]; in snic_io_lock_hash() 106 snic_io_lock_tag(struct snic *snic, int tag) in snic_io_lock_tag() argument 108 return &snic->io_req_lock[tag & (SNIC_IO_LOCKS - 1)]; in snic_io_lock_tag() 113 snic_release_req_buf(struct snic *snic, in snic_release_req_buf() argument 128 SNIC_SCSI_DBG(snic->shost, in snic_release_req_buf() 135 dma_unmap_single(&snic->pdev->dev, in snic_release_req_buf() 142 snic_req_free(snic, rqi); in snic_release_req_buf() 149 snic_queue_icmnd_req(struct snic *snic, in snic_queue_icmnd_req() argument [all …]
|
D | snic_debugfs.c | 77 struct snic *snic = (struct snic *) filp->private_data; in snic_reset_stats_read() local 81 len = sprintf(buf, "%u\n", snic->reset_stats); in snic_reset_stats_read() 106 struct snic *snic = (struct snic *) filp->private_data; in snic_reset_stats_write() local 107 struct snic_stats *stats = &snic->s_stats; in snic_reset_stats_write() 126 snic->reset_stats = val; in snic_reset_stats_write() 128 if (snic->reset_stats) { in snic_reset_stats_write() 133 atomic64_set(&snic->io_cmpl_skip, in snic_reset_stats_write() 148 SNIC_HOST_INFO(snic->shost, "Reset Op: Driver statistics.\n"); in snic_reset_stats_write() 167 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show() local 168 struct snic_stats *stats = &snic->s_stats; in snic_stats_show() [all …]
|
D | snic_attrs.c | 14 struct snic *snic = shost_priv(class_to_shost(dev)); in snic_show_sym_name() local 16 return sysfs_emit(buf, "%s\n", snic->name); in snic_show_sym_name() 24 struct snic *snic = shost_priv(class_to_shost(dev)); in snic_show_state() local 26 return sysfs_emit(buf, "%s\n", snic_state_str[snic_get_state(snic)]); in snic_show_state() 42 struct snic *snic = shost_priv(class_to_shost(dev)); in snic_show_link_state() local 44 if (snic->config.xpt_type == SNIC_DAS) in snic_show_link_state() 45 snic->link_status = svnic_dev_link_status(snic->vdev); in snic_show_link_state() 48 (snic->link_status) ? "Link Up" : "Link Down"); in snic_show_link_state()
|
D | snic.h | 252 struct snic { struct 370 void snic_shutdown_scsi_cleanup(struct snic *); 373 int snic_request_intr(struct snic *); 374 void snic_free_intr(struct snic *); 375 int snic_set_intr_mode(struct snic *); 376 void snic_clear_intr_mode(struct snic *); 378 int snic_fwcq_cmpl_handler(struct snic *, int); 379 int snic_wq_cmpl_handler(struct snic *, int); 383 void snic_log_q_error(struct snic *); 384 void snic_handle_link_event(struct snic *); [all …]
|
D | snic_io.h | 54 struct snic; 74 struct snic *snic; /* Associated snic */ member 96 snic_req_init(struct snic *, int sg_cnt); 97 void snic_req_free(struct snic *, struct snic_req_info *); 98 void snic_calc_io_process_time(struct snic *, struct snic_req_info *); 99 void snic_pci_unmap_rsp_buf(struct snic *, struct snic_req_info *); 101 snic_abort_req_init(struct snic *, struct snic_req_info *); 103 snic_dr_req_init(struct snic *, struct snic_req_info *);
|
D | snic_disc.h | 16 struct snic; 27 void (*cb)(struct snic *); 73 int snic_disc_start(struct snic *); 74 void snic_disc_term(struct snic *); 75 int snic_report_tgt_cmpl_handler(struct snic *, struct snic_fw_req *); 76 int snic_tgtinfo_cmpl_handler(struct snic *snic, struct snic_fw_req *fwreq); 81 void snic_tgt_del_all(struct snic *);
|
D | snic_res.h | 75 struct snic; 77 int snic_get_vnic_config(struct snic *); 78 int snic_alloc_vnic_res(struct snic *); 79 void snic_free_vnic_res(struct snic *); 80 void snic_get_res_counts(struct snic *); 81 void snic_log_q_error(struct snic *); 82 int snic_get_vnic_resources_size(struct snic *);
|
D | Makefile | 2 obj-$(CONFIG_SCSI_SNIC) += snic.o 4 snic-y := \ 18 snic-$(CONFIG_SCSI_SNIC_DEBUG_FS) += snic_debugfs.o snic_trc.o
|
D | snic_stats.h | 88 void snic_stats_debugfs_init(struct snic *); 89 void snic_stats_debugfs_remove(struct snic *);
|
/linux-6.12.1/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_ethtool.c | 284 struct nicvf *snic; in nicvf_get_sset_count() local 286 snic = nic->snicvf[sqs]; in nicvf_get_sset_count() 287 if (!snic) in nicvf_get_sset_count() 290 (snic->qs->rq_cnt + snic->qs->sq_cnt); in nicvf_get_sset_count()
|
D | nicvf_main.c | 777 struct nicvf *snic = nic; in nicvf_rcv_pkt_handler() local 799 if (nicvf_xdp_rx(snic, nic->xdp_prog, cqe_rx, sq, rq, &skb)) in nicvf_rcv_pkt_handler() 802 skb = nicvf_get_rcv_skb(snic, cqe_rx, in nicvf_rcv_pkt_handler() 1256 struct nicvf *snic; in nicvf_xmit() local 1273 snic = nic; in nicvf_xmit() 1277 snic = (struct nicvf *)nic->snicvf[tmp - 1]; in nicvf_xmit() 1278 if (!snic) { in nicvf_xmit() 1288 sq = &snic->qs->sq[qid]; in nicvf_xmit() 1290 !nicvf_sq_append_skb(snic, sq, skb, qid)) { in nicvf_xmit()
|
/linux-6.12.1/Documentation/translations/zh_CN/admin-guide/ |
D | tainted-kernels.rst | 124 上的scsi/snic,非x86/x86_64/itanium上的scsi/ips,已经损坏了arm64上
|
/linux-6.12.1/Documentation/translations/zh_TW/admin-guide/ |
D | tainted-kernels.rst | 127 上的scsi/snic,非x86/x86_64/itanium上的scsi/ips,已經損壞了arm64上
|
/linux-6.12.1/drivers/scsi/ |
D | Makefile | 45 obj-$(CONFIG_SCSI_SNIC) += snic/
|
D | Kconfig | 637 The module will be called snic.
|
/linux-6.12.1/Documentation/admin-guide/ |
D | tainted-kernels.rst | 134 scsi/snic on something else than x86_64, scsi/ips on non
|
/linux-6.12.1/ |
D | MAINTAINERS | 5505 F: drivers/scsi/snic/
|