/drivers/scsi/ |
D | aha1542.c | 207 static int aha1542_test_port(struct Scsi_Host *sh) in aha1542_test_port() argument 213 if (inb(STATUS(sh->io_port)) == 0xff) in aha1542_test_port() 219 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ in aha1542_test_port() 221 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port)); in aha1542_test_port() 226 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) in aha1542_test_port() 230 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK) in aha1542_test_port() 238 aha1542_outb(sh->io_port, CMD_INQUIRY); in aha1542_test_port() 241 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0)) in aha1542_test_port() 243 inquiry_result[i] = inb(DATA(sh->io_port)); in aha1542_test_port() 247 if (inb(STATUS(sh->io_port)) & DF) in aha1542_test_port() [all …]
|
D | fdomain.c | 177 static int fdomain_select(struct Scsi_Host *sh, int target) in fdomain_select() argument 181 struct fdomain *fd = shost_priv(sh); in fdomain_select() 184 outb(BIT(sh->this_id) | BIT(target), fd->base + REG_SCSI_DATA_NOACK); in fdomain_select() 263 struct Scsi_Host *sh = container_of((void *)fd, struct Scsi_Host, in fdomain_work() local 270 spin_lock_irqsave(sh->host_lock, flags); in fdomain_work() 377 spin_unlock_irqrestore(sh->host_lock, flags); in fdomain_work() 399 static int fdomain_queue(struct Scsi_Host *sh, struct scsi_cmnd *cmd) in fdomain_queue() argument 411 spin_lock_irqsave(sh->host_lock, flags); in fdomain_queue() 426 spin_unlock_irqrestore(sh->host_lock, flags); in fdomain_queue() 433 struct Scsi_Host *sh = cmd->device->host; in fdomain_abort() local [all …]
|
D | fdomain_isa.c | 88 struct Scsi_Host *sh; in fdomain_isa_match() local 138 sh = fdomain_create(base, irq, this_id, dev); in fdomain_isa_match() 139 if (!sh) { in fdomain_isa_match() 144 dev_set_drvdata(dev, sh); in fdomain_isa_match() 153 struct Scsi_Host *sh; in fdomain_isa_param_match() local 167 sh = fdomain_create(io[ndev], irq_, scsi_id[ndev], dev); in fdomain_isa_param_match() 168 if (!sh) { in fdomain_isa_param_match() 174 dev_set_drvdata(dev, sh); in fdomain_isa_param_match() 180 struct Scsi_Host *sh = dev_get_drvdata(dev); in fdomain_isa_remove() local 181 int base = sh->io_port; in fdomain_isa_remove() [all …]
|
D | wd719x.c | 207 static int wd719x_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *cmd) in wd719x_queuecommand() argument 212 struct wd719x *wd = shost_priv(sh); in wd719x_queuecommand() 272 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_queuecommand() 276 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand() 287 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand() 475 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_abort() 480 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_abort() 497 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_reset() 506 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_reset() 530 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_host_reset() [all …]
|
D | fdomain_pci.c | 11 struct Scsi_Host *sh; in fdomain_pci_probe() local 25 sh = fdomain_create(pci_resource_start(pdev, 0), pdev->irq, 7, in fdomain_pci_probe() 27 if (!sh) in fdomain_pci_probe() 30 pci_set_drvdata(pdev, sh); in fdomain_pci_probe() 43 struct Scsi_Host *sh = pci_get_drvdata(pdev); in fdomain_pci_remove() local 45 fdomain_destroy(sh); in fdomain_pci_remove()
|
/drivers/md/ |
D | raid5.c | 113 static inline int raid6_d0(struct stripe_head *sh) in raid6_d0() argument 115 if (sh->ddf_layout) in raid6_d0() 119 if (sh->qd_idx == sh->disks - 1) in raid6_d0() 122 return sh->qd_idx + 1; in raid6_d0() 135 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot() argument 140 if (sh->ddf_layout) in raid6_idx_to_slot() 142 if (idx == sh->pd_idx) in raid6_idx_to_slot() 144 if (idx == sh->qd_idx) in raid6_idx_to_slot() 146 if (!sh->ddf_layout) in raid6_idx_to_slot() 153 static int stripe_operations_active(struct stripe_head *sh) in stripe_operations_active() argument [all …]
|
D | raid5-cache.c | 308 struct stripe_head *sh, int disks) in r5c_handle_cached_data_endio() argument 312 for (i = sh->disks; i--; ) { in r5c_handle_cached_data_endio() 313 if (sh->dev[i].written) { in r5c_handle_cached_data_endio() 314 set_bit(R5_UPTODATE, &sh->dev[i].flags); in r5c_handle_cached_data_endio() 315 r5c_return_dev_pending_writes(conf, &sh->dev[i]); in r5c_handle_cached_data_endio() 316 md_bitmap_endwrite(conf->mddev->bitmap, sh->sector, in r5c_handle_cached_data_endio() 318 !test_bit(STRIPE_DEGRADED, &sh->state), in r5c_handle_cached_data_endio() 449 void r5c_make_stripe_write_out(struct stripe_head *sh) in r5c_make_stripe_write_out() argument 451 struct r5conf *conf = sh->raid_conf; in r5c_make_stripe_write_out() 456 WARN_ON(!test_bit(STRIPE_R5C_CACHING, &sh->state)); in r5c_make_stripe_write_out() [all …]
|
D | raid5-log.h | 10 extern void r5l_stripe_write_finished(struct stripe_head *sh); 16 r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh, 19 r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh, 21 extern void r5c_release_extra_page(struct stripe_head *sh); 22 extern void r5c_use_extra_page(struct stripe_head *sh); 25 struct stripe_head *sh, int disks); 26 extern int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh); 27 extern void r5c_make_stripe_write_out(struct stripe_head *sh); 38 ops_run_partial_parity(struct stripe_head *sh, struct raid5_percpu *percpu, 42 extern int ppl_write_stripe(struct r5conf *conf, struct stripe_head *sh); [all …]
|
D | raid5-ppl.c | 158 ops_run_partial_parity(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_partial_parity() argument 161 int disks = sh->disks; in ops_run_partial_parity() 163 int count = 0, pd_idx = sh->pd_idx, i; in ops_run_partial_parity() 166 pr_debug("%s: stripe %llu\n", __func__, (unsigned long long)sh->sector); in ops_run_partial_parity() 174 if (sh->reconstruct_state == reconstruct_state_prexor_drain_run) { in ops_run_partial_parity() 180 srcs[count++] = sh->dev[pd_idx].page; in ops_run_partial_parity() 181 } else if (sh->reconstruct_state == reconstruct_state_drain_run) { in ops_run_partial_parity() 184 struct r5dev *dev = &sh->dev[i]; in ops_run_partial_parity() 193 NULL, sh, (void *) (srcs + sh->disks + 2)); in ops_run_partial_parity() 196 tx = async_memcpy(sh->ppl_page, srcs[0], 0, 0, PAGE_SIZE, in ops_run_partial_parity() [all …]
|
D | raid5.h | 786 static inline int raid5_get_page_offset(struct stripe_head *sh, int disk_idx) in raid5_get_page_offset() argument 788 return (disk_idx % sh->stripes_per_page) * RAID5_STRIPE_SIZE(sh->raid_conf); in raid5_get_page_offset() 795 raid5_get_dev_page(struct stripe_head *sh, int disk_idx) in raid5_get_dev_page() argument 797 return sh->pages[disk_idx / sh->stripes_per_page]; in raid5_get_dev_page() 803 extern sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous); 804 extern void raid5_release_stripe(struct stripe_head *sh); 807 struct stripe_head *sh);
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_cmn.c | 121 wlapi_bmac_ucode_wake_override_phyreg_set(pi->sh->physhim); in wlc_phyreg_enter() 127 wlapi_bmac_ucode_wake_override_phyreg_clear(pi->sh->physhim); in wlc_phyreg_exit() 133 wlapi_bmac_mctrl(pi->sh->physhim, MCTL_LOCK_RADIO, MCTL_LOCK_RADIO); in wlc_radioreg_enter() 144 wlapi_bmac_mctrl(pi->sh->physhim, MCTL_LOCK_RADIO, 0); in wlc_radioreg_exit() 174 if ((D11REV_GE(pi->sh->corerev, 24)) || in read_radio_reg() 175 (D11REV_IS(pi->sh->corerev, 22) in read_radio_reg() 190 if ((D11REV_GE(pi->sh->corerev, 24)) || in write_radio_reg() 191 (D11REV_IS(pi->sh->corerev, 22) in write_radio_reg() 212 if (D11REV_GE(pi->sh->corerev, 24)) { in read_radio_id() 356 struct shared_phy *sh; in wlc_phy_shared_attach() local [all …]
|
D | phy_n.c | 14350 if (pi->sh && (pi->sh->_rifs_phy != rifs)) in wlc_phy_nphy_tkip_rifs_war() 14351 pi->sh->_rifs_phy = rifs; in wlc_phy_nphy_tkip_rifs_war() 14366 if ((pi->sh->boardflags2 & BFL2_TXPWRCTRL_EN) && in wlc_phy_txpwrctrl_config_nphy() 14367 NREV_GE(pi->pubpi.phy_rev, 2) && (pi->sh->sromrev >= 4)) in wlc_phy_txpwrctrl_config_nphy() 14369 else if ((pi->sh->sromrev >= 4) in wlc_phy_txpwrctrl_config_nphy() 14370 && (pi->sh->boardflags2 & BFL2_5G_PWRGAIN)) in wlc_phy_txpwrctrl_config_nphy() 14380 if (pi->sh->sromrev >= 9) in wlc_phy_txpwr_srom_read_ppr_nphy() 14611 if (pi->sh->boardflags2 & BFL2_SPUR_WAR) in wlc_phy_attach_nphy() 14615 if (pi->sh->boardflags2 & BFL2_2G_SPUR_WAR) in wlc_phy_attach_nphy() 15641 if (pi->sh->boardflags & BFL_EXTLNA) { in wlc_phy_workarounds_nphy_gainctrl() [all …]
|
D | phy_lcn.c | 138 wlapi_bmac_read_shm((pi)->sh->physhim, M_UCODE_MACSTAT + \ 1546 wlapi_switch_macfreq(pi->sh->physhim, enable); in wlc_lcnphy_txrx_spur_avoidance_mode() 1759 if (!(pi->sh->boardflags & BFL_FEM)) { in wlc_lcnphy_radio_2064_channel_tune_4313() 2071 if (pi->sh->boardflags & BFL_FEM) { in wlc_lcnphy_tssi_setup() 2812 wlapi_suspend_mac_and_wait(pi->sh->physhim); in wlc_lcnphy_idle_tssi_est() 2862 wlapi_enable_mac(pi->sh->physhim); in wlc_lcnphy_idle_tssi_est() 2893 wlapi_suspend_mac_and_wait(pi->sh->physhim); in wlc_lcnphy_vbat_temp_sense_setup() 3003 wlapi_enable_mac(pi->sh->physhim); in wlc_lcnphy_vbat_temp_sense_setup() 3020 wlapi_suspend_mac_and_wait(pi->sh->physhim); in wlc_lcnphy_tx_pwr_ctrl_init() 3079 wlapi_enable_mac(pi->sh->physhim); in wlc_lcnphy_tx_pwr_ctrl_init() [all …]
|
/drivers/xen/events/ |
D | events_2l.c | 148 struct shared_info *sh, in active_evtchns() argument 151 return sh->evtchn_pending[idx] & in active_evtchns() 153 ~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/gpu/drm/amd/amdkfd/ |
D | kfd_mqd_manager.c | 102 int i, se, sh, cu; in mqd_symmetrically_map_cu_mask() local 132 for (sh = 0; sh < cu_info.num_shader_arrays_per_engine; sh++) in mqd_symmetrically_map_cu_mask() 133 cu_per_sh[se][sh] = hweight32(cu_info.cu_bitmap[se % 4][sh + (se / 4)]); in mqd_symmetrically_map_cu_mask() 163 for (sh = 0; sh < cu_info.num_shader_arrays_per_engine; sh++) { in mqd_symmetrically_map_cu_mask() 165 if (cu_per_sh[se][sh] > cu) { in mqd_symmetrically_map_cu_mask() 167 se_mask[se] |= 1 << (cu + sh * 16); in mqd_symmetrically_map_cu_mask()
|
/drivers/pinctrl/renesas/ |
D | Makefile | 53 CFLAGS_pfc-sh7203.o += -I$(srctree)/arch/sh/include/cpu-sh2a 54 CFLAGS_pfc-sh7264.o += -I$(srctree)/arch/sh/include/cpu-sh2a 55 CFLAGS_pfc-sh7269.o += -I$(srctree)/arch/sh/include/cpu-sh2a 56 CFLAGS_pfc-sh7720.o += -I$(srctree)/arch/sh/include/cpu-sh3 57 CFLAGS_pfc-sh7722.o += -I$(srctree)/arch/sh/include/cpu-sh4 58 CFLAGS_pfc-sh7723.o += -I$(srctree)/arch/sh/include/cpu-sh4 59 CFLAGS_pfc-sh7724.o += -I$(srctree)/arch/sh/include/cpu-sh4 60 CFLAGS_pfc-sh7734.o += -I$(srctree)/arch/sh/include/cpu-sh4 61 CFLAGS_pfc-sh7757.o += -I$(srctree)/arch/sh/include/cpu-sh4 62 CFLAGS_pfc-sh7785.o += -I$(srctree)/arch/sh/include/cpu-sh4 [all …]
|
/drivers/target/ |
D | target_core_pscsi.c | 96 struct Scsi_Host *sh = phv->phv_lld_host; in pscsi_pmode_enable_hba() local 101 if (!sh) in pscsi_pmode_enable_hba() 108 " %s\n", hba->hba_id, (sh->hostt->name) ? in pscsi_pmode_enable_hba() 109 (sh->hostt->name) : "Unknown"); in pscsi_pmode_enable_hba() 111 scsi_host_put(sh); in pscsi_pmode_enable_hba() 118 sh = scsi_host_lookup(phv->phv_host_id); in pscsi_pmode_enable_hba() 119 if (!sh) { in pscsi_pmode_enable_hba() 125 phv->phv_lld_host = sh; in pscsi_pmode_enable_hba() 129 hba->hba_id, (sh->hostt->name) ? (sh->hostt->name) : "Unknown"); in pscsi_pmode_enable_hba() 353 __releases(sh->host_lock) in pscsi_create_type_disk() [all …]
|
/drivers/message/fusion/ |
D | mptfc.c | 208 ioc->name, ioc->sh->host_no, in mptfc_block_error_handler() 222 ioc->name, ioc->sh->host_no, in mptfc_block_error_handler() 229 ioc->name, ioc->sh->host_no, in mptfc_block_error_handler() 461 rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); in mptfc_register_dev() 489 ioc->sh->host_no, in mptfc_register_dev() 981 struct Scsi_Host *sh; in mptfc_init_host_attr() local 989 sh = ioc->sh; in mptfc_init_host_attr() 991 sn = fc_host_symbolic_name(sh); in mptfc_init_host_attr() 997 fc_host_tgtid_bind_type(sh) = FC_TGTID_BIND_BY_WWPN; in mptfc_init_host_attr() 999 fc_host_maxframe_size(sh) = pp0->MaxFrameSize; in mptfc_init_host_attr() [all …]
|
D | mptspi.c | 1116 struct Scsi_Host *shost = ioc->sh; in mpt_work_wrapper() 1147 scsi_scan_target(&ioc->sh->shost_gendev, 1, disk, 0, SCSI_SCAN_RESCAN); in mpt_work_wrapper() 1157 shost_printk(KERN_ERR, ioc->sh, MYIOC_s_FMT in mpt_dv_raid() 1173 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_event_process() 1270 shost_for_each_device(sdev, ioc->sh) { in mptspi_dv_renegotiate_work() 1281 shost_for_each_device(sdev, ioc->sh) in mptspi_dv_renegotiate_work() 1315 ioc->sh) { in mptspi_ioc_reset() 1316 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_ioc_reset() 1332 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh); in mptspi_resume() 1354 struct Scsi_Host *sh; in mptspi_probe() local [all …]
|
/drivers/target/loopback/ |
D | tcm_loop.c | 175 static int tcm_loop_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *sc) in tcm_loop_queuecommand() argument 322 struct Scsi_Host *sh; in tcm_loop_driver_probe() local 327 sh = scsi_host_alloc(&tcm_loop_driver_template, in tcm_loop_driver_probe() 329 if (!sh) { in tcm_loop_driver_probe() 333 tl_hba->sh = sh; in tcm_loop_driver_probe() 338 *((struct tcm_loop_hba **)sh->hostdata) = tl_hba; in tcm_loop_driver_probe() 342 sh->max_id = 2; in tcm_loop_driver_probe() 343 sh->max_lun = 0; in tcm_loop_driver_probe() 344 sh->max_channel = 0; in tcm_loop_driver_probe() 345 sh->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE; in tcm_loop_driver_probe() [all …]
|
/drivers/scsi/pcmcia/ |
D | fdomain_cs.c | 34 struct Scsi_Host *sh; in fdomain_probe() local 53 sh = fdomain_create(link->resource[0]->start, link->irq, 7, &link->dev); in fdomain_probe() 54 if (!sh) { in fdomain_probe() 60 link->priv = sh; in fdomain_probe()
|
/drivers/misc/sgi-gru/ |
D | gruhandles.h | 496 #define GRU_PAGESIZE(sh) ((((sh) > 20 ? (sh) + 2 : (sh)) >> 1) - 6) argument 497 #define GRU_SIZEAVAIL(sh) (1UL << GRU_PAGESIZE(sh)) argument
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | sdio.c | 1025 struct sdpcm_shared *sh) in brcmf_sdio_readshared() argument 1070 sh->flags = le32_to_cpu(sh_le.flags); in brcmf_sdio_readshared() 1071 sh->trap_addr = le32_to_cpu(sh_le.trap_addr); in brcmf_sdio_readshared() 1072 sh->assert_exp_addr = le32_to_cpu(sh_le.assert_exp_addr); in brcmf_sdio_readshared() 1073 sh->assert_file_addr = le32_to_cpu(sh_le.assert_file_addr); in brcmf_sdio_readshared() 1074 sh->assert_line = le32_to_cpu(sh_le.assert_line); in brcmf_sdio_readshared() 1075 sh->console_addr = le32_to_cpu(sh_le.console_addr); in brcmf_sdio_readshared() 1076 sh->msgtrace_addr = le32_to_cpu(sh_le.msgtrace_addr); in brcmf_sdio_readshared() 1078 if ((sh->flags & SDPCM_SHARED_VERSION_MASK) > SDPCM_SHARED_VERSION) { in brcmf_sdio_readshared() 1081 sh->flags & SDPCM_SHARED_VERSION_MASK); in brcmf_sdio_readshared() [all …]
|
/drivers/iommu/ |
D | dma-iommu.c | 736 struct dma_sgt_handle *sh; in iommu_dma_alloc_noncontiguous() local 738 sh = kmalloc(sizeof(*sh), gfp); in iommu_dma_alloc_noncontiguous() 739 if (!sh) in iommu_dma_alloc_noncontiguous() 742 sh->pages = __iommu_dma_alloc_noncontiguous(dev, size, &sh->sgt, gfp, in iommu_dma_alloc_noncontiguous() 744 if (!sh->pages) { in iommu_dma_alloc_noncontiguous() 745 kfree(sh); in iommu_dma_alloc_noncontiguous() 748 return &sh->sgt; in iommu_dma_alloc_noncontiguous() 754 struct dma_sgt_handle *sh = sgt_handle(sgt); in iommu_dma_free_noncontiguous() local 757 __iommu_dma_free_pages(sh->pages, PAGE_ALIGN(size) >> PAGE_SHIFT); in iommu_dma_free_noncontiguous() 758 sg_free_table(&sh->sgt); in iommu_dma_free_noncontiguous() [all …]
|
/drivers/spi/ |
D | Makefile | 107 obj-$(CONFIG_SPI_SH) += spi-sh.o 108 obj-$(CONFIG_SPI_SH_HSPI) += spi-sh-hspi.o 109 obj-$(CONFIG_SPI_SH_MSIOF) += spi-sh-msiof.o 110 obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o
|