Home
last modified time | relevance | path

Searched refs:sh (Results 1 – 25 of 84) sorted by relevance

1234

/drivers/scsi/
Daha1542.c185 static int aha1542_test_port(struct Scsi_Host *sh) in aha1542_test_port() argument
191 if (inb(STATUS(sh->io_port)) == 0xff) in aha1542_test_port()
197 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ in aha1542_test_port()
199 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port)); in aha1542_test_port()
204 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) in aha1542_test_port()
208 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK) in aha1542_test_port()
214 aha1542_outb(sh->io_port, CMD_INQUIRY); in aha1542_test_port()
217 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0)) in aha1542_test_port()
219 inquiry_result[i] = inb(DATA(sh->io_port)); in aha1542_test_port()
223 if (inb(STATUS(sh->io_port)) & DF) in aha1542_test_port()
[all …]
Deata_pio.c113 static int eata_pio_release(struct Scsi_Host *sh) in eata_pio_release() argument
115 hostdata *hd = SD(sh); in eata_pio_release()
116 if (sh->irq && reg_IRQ[sh->irq] == 1) in eata_pio_release()
117 free_irq(sh->irq, NULL); in eata_pio_release()
119 reg_IRQ[sh->irq]--; in eata_pio_release()
120 if (SD(sh)->channel == 0) { in eata_pio_release()
121 if (sh->io_port && sh->n_io_port) in eata_pio_release()
122 release_region(sh->io_port, sh->n_io_port); in eata_pio_release()
166 struct Scsi_Host *sh; in eata_pio_int_handler() local
171 for (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->prev) in eata_pio_int_handler()
[all …]
Dwd719x.c201 static int wd719x_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *cmd) in wd719x_queuecommand() argument
206 struct wd719x *wd = shost_priv(sh); in wd719x_queuecommand()
212 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_queuecommand()
218 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
221 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_queuecommand()
225 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
263 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
288 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
297 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
474 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_abort()
[all …]
Dvirtio_scsi.c240 struct Scsi_Host *sh = virtio_scsi_host(vq->vdev); in virtscsi_req_done() local
241 struct virtio_scsi *vscsi = shost_priv(sh); in virtscsi_req_done()
268 struct Scsi_Host *sh = virtio_scsi_host(vq->vdev); in virtscsi_ctrl_done() local
269 struct virtio_scsi *vscsi = shost_priv(sh); in virtscsi_ctrl_done()
414 struct Scsi_Host *sh = virtio_scsi_host(vq->vdev); in virtscsi_event_done() local
415 struct virtio_scsi *vscsi = shost_priv(sh); in virtscsi_event_done()
580 static int virtscsi_queuecommand_single(struct Scsi_Host *sh, in virtscsi_queuecommand_single() argument
583 struct virtio_scsi *vscsi = shost_priv(sh); in virtscsi_queuecommand_single()
637 static int virtscsi_queuecommand_multi(struct Scsi_Host *sh, in virtscsi_queuecommand_multi() argument
640 struct virtio_scsi *vscsi = shost_priv(sh); in virtscsi_queuecommand_multi()
[all …]
/drivers/md/
Draid5.c187 static inline int raid6_d0(struct stripe_head *sh) in raid6_d0() argument
189 if (sh->ddf_layout) in raid6_d0()
193 if (sh->qd_idx == sh->disks - 1) in raid6_d0()
196 return sh->qd_idx + 1; in raid6_d0()
209 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot() argument
214 if (sh->ddf_layout) in raid6_idx_to_slot()
216 if (idx == sh->pd_idx) in raid6_idx_to_slot()
218 if (idx == sh->qd_idx) in raid6_idx_to_slot()
220 if (!sh->ddf_layout) in raid6_idx_to_slot()
238 static int stripe_operations_active(struct stripe_head *sh) in stripe_operations_active() argument
[all …]
Draid5-cache.c173 struct stripe_head *sh, *next; in r5l_io_run_stripes() local
175 list_for_each_entry_safe(sh, next, &io->stripe_list, log_list) { in r5l_io_run_stripes()
176 list_del_init(&sh->log_list); in r5l_io_run_stripes()
177 set_bit(STRIPE_HANDLE, &sh->state); in r5l_io_run_stripes()
178 raid5_release_stripe(sh); in r5l_io_run_stripes()
384 static int r5l_log_stripe(struct r5l_log *log, struct stripe_head *sh, in r5l_log_stripe() argument
404 for (i = 0; i < sh->disks; i++) { in r5l_log_stripe()
405 if (!test_bit(R5_Wantwrite, &sh->dev[i].flags)) in r5l_log_stripe()
407 if (i == sh->pd_idx || i == sh->qd_idx) in r5l_log_stripe()
410 raid5_compute_blocknr(sh, i, 0), in r5l_log_stripe()
[all …]
Draid5.h619 extern sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous);
620 extern void raid5_release_stripe(struct stripe_head *sh);
623 struct stripe_head *sh);
632 extern void r5l_stripe_write_finished(struct stripe_head *sh);
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_cmn.c132 wlapi_bmac_ucode_wake_override_phyreg_set(pi->sh->physhim); in wlc_phyreg_enter()
138 wlapi_bmac_ucode_wake_override_phyreg_clear(pi->sh->physhim); in wlc_phyreg_exit()
144 wlapi_bmac_mctrl(pi->sh->physhim, MCTL_LOCK_RADIO, MCTL_LOCK_RADIO); in wlc_radioreg_enter()
155 wlapi_bmac_mctrl(pi->sh->physhim, MCTL_LOCK_RADIO, 0); in wlc_radioreg_exit()
185 if ((D11REV_GE(pi->sh->corerev, 24)) || in read_radio_reg()
186 (D11REV_IS(pi->sh->corerev, 22) in read_radio_reg()
201 if ((D11REV_GE(pi->sh->corerev, 24)) || in write_radio_reg()
202 (D11REV_IS(pi->sh->corerev, 22) in write_radio_reg()
223 if (D11REV_GE(pi->sh->corerev, 24)) { in read_radio_id()
367 struct shared_phy *sh; in wlc_phy_shared_attach() local
[all …]
Dphy_n.c14361 if (pi->sh && (pi->sh->_rifs_phy != rifs)) in wlc_phy_nphy_tkip_rifs_war()
14362 pi->sh->_rifs_phy = rifs; in wlc_phy_nphy_tkip_rifs_war()
14377 if ((pi->sh->boardflags2 & BFL2_TXPWRCTRL_EN) && in wlc_phy_txpwrctrl_config_nphy()
14378 NREV_GE(pi->pubpi.phy_rev, 2) && (pi->sh->sromrev >= 4)) in wlc_phy_txpwrctrl_config_nphy()
14380 else if ((pi->sh->sromrev >= 4) in wlc_phy_txpwrctrl_config_nphy()
14381 && (pi->sh->boardflags2 & BFL2_5G_PWRGAIN)) in wlc_phy_txpwrctrl_config_nphy()
14391 if (pi->sh->sromrev >= 9) in wlc_phy_txpwr_srom_read_ppr_nphy()
14622 if (pi->sh->boardflags2 & BFL2_SPUR_WAR) in wlc_phy_attach_nphy()
14626 if (pi->sh->boardflags2 & BFL2_2G_SPUR_WAR) in wlc_phy_attach_nphy()
15652 if (pi->sh->boardflags & BFL_EXTLNA) { in wlc_phy_workarounds_nphy_gainctrl()
[all …]
Dphy_lcn.c149 wlapi_bmac_read_shm((pi)->sh->physhim, M_UCODE_MACSTAT + \
1614 wlapi_switch_macfreq(pi->sh->physhim, enable); in wlc_lcnphy_txrx_spur_avoidance_mode()
1830 if (!(pi->sh->boardflags & BFL_FEM)) { in wlc_lcnphy_radio_2064_channel_tune_4313()
2142 if (pi->sh->boardflags & BFL_FEM) { in wlc_lcnphy_tssi_setup()
2883 wlapi_suspend_mac_and_wait(pi->sh->physhim); in wlc_lcnphy_idle_tssi_est()
2934 wlapi_enable_mac(pi->sh->physhim); in wlc_lcnphy_idle_tssi_est()
2965 wlapi_suspend_mac_and_wait(pi->sh->physhim); in wlc_lcnphy_vbat_temp_sense_setup()
3075 wlapi_enable_mac(pi->sh->physhim); in wlc_lcnphy_vbat_temp_sense_setup()
3092 wlapi_suspend_mac_and_wait(pi->sh->physhim); in wlc_lcnphy_tx_pwr_ctrl_init()
3152 wlapi_enable_mac(pi->sh->physhim); in wlc_lcnphy_tx_pwr_ctrl_init()
[all …]
/drivers/xen/events/
Devents_2l.c145 struct shared_info *sh, in active_evtchns() argument
148 return sh->evtchn_pending[idx] & in active_evtchns()
150 ~sh->evtchn_mask[idx]; in active_evtchns()
266 struct shared_info *sh = HYPERVISOR_shared_info; in xen_debug_interrupt() local
292 for (i = ARRAY_SIZE(sh->evtchn_pending)-1; i >= 0; i--) in xen_debug_interrupt()
294 (int)sizeof(sh->evtchn_pending[0])*2, in xen_debug_interrupt()
295 sh->evtchn_pending[i], in xen_debug_interrupt()
298 for (i = ARRAY_SIZE(sh->evtchn_mask)-1; i >= 0; i--) in xen_debug_interrupt()
300 (int)(sizeof(sh->evtchn_mask[0])*2), in xen_debug_interrupt()
301 sh->evtchn_mask[i], in xen_debug_interrupt()
[all …]
/drivers/target/
Dtarget_core_pscsi.c111 struct Scsi_Host *sh = phv->phv_lld_host; in pscsi_pmode_enable_hba() local
116 if (!sh) in pscsi_pmode_enable_hba()
123 " %s\n", hba->hba_id, (sh->hostt->name) ? in pscsi_pmode_enable_hba()
124 (sh->hostt->name) : "Unknown"); in pscsi_pmode_enable_hba()
126 scsi_host_put(sh); in pscsi_pmode_enable_hba()
133 sh = scsi_host_lookup(phv->phv_host_id); in pscsi_pmode_enable_hba()
134 if (!sh) { in pscsi_pmode_enable_hba()
140 phv->phv_lld_host = sh; in pscsi_pmode_enable_hba()
144 hba->hba_id, (sh->hostt->name) ? (sh->hostt->name) : "Unknown"); in pscsi_pmode_enable_hba()
370 __releases(sh->host_lock) in pscsi_create_type_disk()
[all …]
/drivers/message/fusion/
Dmptfc.c209 ioc->name, ioc->sh->host_no, in mptfc_block_error_handler()
223 ioc->name, ioc->sh->host_no, in mptfc_block_error_handler()
230 ioc->name, ioc->sh->host_no, in mptfc_block_error_handler()
469 rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); in mptfc_register_dev()
497 ioc->sh->host_no, in mptfc_register_dev()
990 struct Scsi_Host *sh; in mptfc_init_host_attr() local
998 sh = ioc->sh; in mptfc_init_host_attr()
1000 sn = fc_host_symbolic_name(sh); in mptfc_init_host_attr()
1006 fc_host_tgtid_bind_type(sh) = FC_TGTID_BIND_BY_WWPN; in mptfc_init_host_attr()
1008 fc_host_maxframe_size(sh) = pp0->MaxFrameSize; in mptfc_init_host_attr()
[all …]
Dmptspi.c1122 struct Scsi_Host *shost = ioc->sh; in mpt_work_wrapper()
1153 scsi_scan_target(&ioc->sh->shost_gendev, 1, disk, 0, SCSI_SCAN_RESCAN); in mpt_work_wrapper()
1163 shost_printk(KERN_ERR, ioc->sh, MYIOC_s_FMT in mpt_dv_raid()
1179 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_event_process()
1276 shost_for_each_device(sdev, ioc->sh) { in mptspi_dv_renegotiate_work()
1287 shost_for_each_device(sdev, ioc->sh) in mptspi_dv_renegotiate_work()
1321 ioc->sh) { in mptspi_ioc_reset()
1322 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_ioc_reset()
1338 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_resume()
1360 struct Scsi_Host *sh; in mptspi_probe() local
[all …]
Dmptsas.c338 MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptsas_cleanup_fw_event_q()
597 shost_for_each_device(sdev, ioc->sh) { in mptsas_add_device_component()
972 shost_for_each_device(sdev, ioc->sh) { in mptsas_find_vtarget()
1113 MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptsas_target_reset_queue()
1160 MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptsas_schedule_target_reset()
1196 MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptsas_taskmgmt_complete()
1297 hd = shost_priv(ioc->sh); in mptsas_ioc_reset()
3348 mptsas_probe_one_phy(&ioc->sh->shost_gendev, in mptsas_probe_hba_phys()
3749 shost_for_each_device(sdev, ioc->sh) { in mptsas_send_link_status_event()
4010 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, in mptsas_scan_sas_topology()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gfx.c86 unsigned se, sh, cu; in amdgpu_gfx_parse_disable_cu() local
97 int ret = sscanf(p, "%u.%u.%u", &se, &sh, &cu); in amdgpu_gfx_parse_disable_cu()
103 if (se < max_se && sh < max_sh && cu < 16) { in amdgpu_gfx_parse_disable_cu()
104 DRM_INFO("amdgpu: disabling CU %u.%u.%u\n", se, sh, cu); in amdgpu_gfx_parse_disable_cu()
105 mask[se * max_sh + sh] |= 1u << cu; in amdgpu_gfx_parse_disable_cu()
108 se, sh, cu); in amdgpu_gfx_parse_disable_cu()
/drivers/target/loopback/
Dtcm_loop.c188 static int tcm_loop_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *sc) in tcm_loop_queuecommand() argument
385 struct Scsi_Host *sh; in tcm_loop_driver_probe() local
390 sh = scsi_host_alloc(&tcm_loop_driver_template, in tcm_loop_driver_probe()
392 if (!sh) { in tcm_loop_driver_probe()
396 tl_hba->sh = sh; in tcm_loop_driver_probe()
401 *((struct tcm_loop_hba **)sh->hostdata) = tl_hba; in tcm_loop_driver_probe()
405 sh->max_id = 2; in tcm_loop_driver_probe()
406 sh->max_lun = 0; in tcm_loop_driver_probe()
407 sh->max_channel = 0; in tcm_loop_driver_probe()
408 sh->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE; in tcm_loop_driver_probe()
[all …]
/drivers/block/
Dcciss_scsi.c57 static int cciss_scsi_write_info(struct Scsi_Host *sh,
61 struct Scsi_Host *sh);
533 struct Scsi_Host *sh = NULL; in adjust_cciss_scsi_table() local
549 sh = h->scsi_ctlr->scsi_host; in adjust_cciss_scsi_table()
641 scsi_device_lookup(sh, removed[i].bus, in adjust_cciss_scsi_table()
660 rc = scsi_add_device(sh, added[i].bus, in adjust_cciss_scsi_table()
847 struct Scsi_Host *sh; in cciss_scsi_detect() local
850 sh = scsi_host_alloc(&cciss_driver_template, sizeof(struct ctlr_info *)); in cciss_scsi_detect()
851 if (sh == NULL) in cciss_scsi_detect()
853 sh->io_port = 0; // good enough? FIXME, in cciss_scsi_detect()
[all …]
/drivers/misc/sgi-gru/
Dgruhandles.h509 #define GRU_PAGESIZE(sh) ((((sh) > 20 ? (sh) + 2 : (sh)) >> 1) - 6) argument
510 #define GRU_SIZEAVAIL(sh) (1UL << GRU_PAGESIZE(sh)) argument
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dsdio.c987 struct sdpcm_shared *sh) in brcmf_sdio_readshared() argument
1032 sh->flags = le32_to_cpu(sh_le.flags); in brcmf_sdio_readshared()
1033 sh->trap_addr = le32_to_cpu(sh_le.trap_addr); in brcmf_sdio_readshared()
1034 sh->assert_exp_addr = le32_to_cpu(sh_le.assert_exp_addr); in brcmf_sdio_readshared()
1035 sh->assert_file_addr = le32_to_cpu(sh_le.assert_file_addr); in brcmf_sdio_readshared()
1036 sh->assert_line = le32_to_cpu(sh_le.assert_line); in brcmf_sdio_readshared()
1037 sh->console_addr = le32_to_cpu(sh_le.console_addr); in brcmf_sdio_readshared()
1038 sh->msgtrace_addr = le32_to_cpu(sh_le.msgtrace_addr); in brcmf_sdio_readshared()
1040 if ((sh->flags & SDPCM_SHARED_VERSION_MASK) > SDPCM_SHARED_VERSION) { in brcmf_sdio_readshared()
1043 sh->flags & SDPCM_SHARED_VERSION_MASK); in brcmf_sdio_readshared()
[all …]
/drivers/scsi/esas2r/
Desas2r_main.c701 int esas2r_show_info(struct seq_file *m, struct Scsi_Host *sh) in esas2r_show_info() argument
703 struct esas2r_adapter *a = (struct esas2r_adapter *)sh->hostdata; in esas2r_show_info()
708 esas2r_log(ESAS2R_LOG_DEBG, "esas2r_show_info (%p,%d)", m, sh->host_no); in esas2r_show_info()
756 int esas2r_release(struct Scsi_Host *sh) in esas2r_release() argument
758 esas2r_log_dev(ESAS2R_LOG_INFO, &(sh->shost_gendev), in esas2r_release()
761 esas2r_cleanup(sh); in esas2r_release()
762 if (sh->irq) in esas2r_release()
763 free_irq(sh->irq, NULL); in esas2r_release()
764 scsi_unregister(sh); in esas2r_release()
768 const char *esas2r_info(struct Scsi_Host *sh) in esas2r_info() argument
[all …]
/drivers/usb/storage/
Dsierra_ms.c131 struct Scsi_Host *sh; in sierra_ms_init() local
137 sh = us_to_host(us); in sierra_ms_init()
138 scsi_get_host_dev(sh); in sierra_ms_init()
/drivers/net/ethernet/tile/
Dtilegx.c1678 struct skb_shared_info *sh = skb_shinfo(skb); in tso_count_edescs() local
1681 unsigned int p_len = sh->gso_size; in tso_count_edescs()
1689 for (segment = 0; segment < sh->gso_segs; segment++) { in tso_count_edescs()
1699 f_size = skb_frag_size(&sh->frags[f_id]); in tso_count_edescs()
1724 struct skb_shared_info *sh = skb_shinfo(skb); in tso_headers_prepare() local
1757 p_len = sh->gso_size; in tso_headers_prepare()
1763 for (segment = 0; segment < sh->gso_segs; segment++) { in tso_headers_prepare()
1789 if (segment != sh->gso_segs - 1) { in tso_headers_prepare()
1803 f_size = skb_frag_size(&sh->frags[f_id]); in tso_headers_prepare()
1833 struct skb_shared_info *sh = skb_shinfo(skb); in tso_egress() local
[all …]
/drivers/spi/
DMakefile84 obj-$(CONFIG_SPI_SH) += spi-sh.o
85 obj-$(CONFIG_SPI_SH_HSPI) += spi-sh-hspi.o
86 obj-$(CONFIG_SPI_SH_MSIOF) += spi-sh-msiof.o
87 obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o
/drivers/bluetooth/
Dhci_ll.c379 struct hci_sco_hdr *sh; in ll_recv() local
421 sh = hci_sco_hdr(ll->rx_skb); in ll_recv()
423 BT_DBG("SCO header: dlen %d", sh->dlen); in ll_recv()
425 ll_check_data_len(hu->hdev, ll, sh->dlen); in ll_recv()

1234