Home
last modified time | relevance | path

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

12345

/drivers/scsi/
Daha1542.c207 static int aha1542_test_port(struct Scsi_Host *sh) in aha1542_test_port() argument
212 if (inb(STATUS(sh->io_port)) == 0xff) in aha1542_test_port()
218 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ in aha1542_test_port()
220 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port)); in aha1542_test_port()
225 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) in aha1542_test_port()
229 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK) in aha1542_test_port()
237 aha1542_outb(sh->io_port, CMD_INQUIRY); in aha1542_test_port()
240 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0)) in aha1542_test_port()
242 (void)inb(DATA(sh->io_port)); in aha1542_test_port()
246 if (inb(STATUS(sh->io_port)) & DF) in aha1542_test_port()
[all …]
Dfdomain.c182 static int fdomain_select(struct Scsi_Host *sh, int target) in fdomain_select() argument
186 struct fdomain *fd = shost_priv(sh); in fdomain_select()
189 outb(BIT(sh->this_id) | BIT(target), fd->base + REG_SCSI_DATA_NOACK); in fdomain_select()
268 struct Scsi_Host *sh = container_of((void *)fd, struct Scsi_Host, in fdomain_work() local
276 spin_lock_irqsave(sh->host_lock, flags); in fdomain_work()
383 spin_unlock_irqrestore(sh->host_lock, flags); in fdomain_work()
405 static int fdomain_queue(struct Scsi_Host *sh, struct scsi_cmnd *cmd) in fdomain_queue() argument
418 spin_lock_irqsave(sh->host_lock, flags); in fdomain_queue()
433 spin_unlock_irqrestore(sh->host_lock, flags); in fdomain_queue()
440 struct Scsi_Host *sh = cmd->device->host; in fdomain_abort() local
[all …]
Dfdomain_isa.c88 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 …]
Dwd719x.c207 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 …]
Dfdomain_pci.c11 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/
Draid5.c118 static inline int raid6_d0(struct stripe_head *sh) in raid6_d0() argument
120 if (sh->ddf_layout) in raid6_d0()
124 if (sh->qd_idx == sh->disks - 1) in raid6_d0()
127 return sh->qd_idx + 1; in raid6_d0()
140 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot() argument
145 if (sh->ddf_layout) in raid6_idx_to_slot()
147 if (idx == sh->pd_idx) in raid6_idx_to_slot()
149 if (idx == sh->qd_idx) in raid6_idx_to_slot()
151 if (!sh->ddf_layout) in raid6_idx_to_slot()
158 static int stripe_operations_active(struct stripe_head *sh) in stripe_operations_active() argument
[all …]
Draid5-cache.c308 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()
452 void r5c_make_stripe_write_out(struct stripe_head *sh) in r5c_make_stripe_write_out() argument
454 struct r5conf *conf = sh->raid_conf; in r5c_make_stripe_write_out()
459 WARN_ON(!test_bit(STRIPE_R5C_CACHING, &sh->state)); in r5c_make_stripe_write_out()
[all …]
Draid5-log.h10 void r5l_stripe_write_finished(struct stripe_head *sh);
15 int r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh,
17 void r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh,
19 void r5c_release_extra_page(struct stripe_head *sh);
20 void r5c_use_extra_page(struct stripe_head *sh);
23 struct stripe_head *sh, int disks);
24 int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh);
25 void r5c_make_stripe_write_out(struct stripe_head *sh);
35 ops_run_partial_parity(struct stripe_head *sh, struct raid5_percpu *percpu,
39 int ppl_write_stripe(struct r5conf *conf, struct stripe_head *sh);
[all …]
Draid5-ppl.c158 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 …]
Draid5.h791 static inline int raid5_get_page_offset(struct stripe_head *sh, int disk_idx) in raid5_get_page_offset() argument
793 return (disk_idx % sh->stripes_per_page) * RAID5_STRIPE_SIZE(sh->raid_conf); in raid5_get_page_offset()
800 raid5_get_dev_page(struct stripe_head *sh, int disk_idx) in raid5_get_dev_page() argument
802 return sh->pages[disk_idx / sh->stripes_per_page]; in raid5_get_dev_page()
808 sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous);
809 void raid5_release_stripe(struct stripe_head *sh);
811 int previous, int *dd_idx, struct stripe_head *sh);
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_cmn.c121 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 …]
Dphy_n.c14350 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 …]
Dphy_lcn.c138 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/
Devents_2l.c148 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/pinctrl/renesas/
DMakefile55 CFLAGS_pfc-sh7203.o += -I$(srctree)/arch/sh/include/cpu-sh2a
56 CFLAGS_pfc-sh7264.o += -I$(srctree)/arch/sh/include/cpu-sh2a
57 CFLAGS_pfc-sh7269.o += -I$(srctree)/arch/sh/include/cpu-sh2a
58 CFLAGS_pfc-sh7720.o += -I$(srctree)/arch/sh/include/cpu-sh3
59 CFLAGS_pfc-sh7722.o += -I$(srctree)/arch/sh/include/cpu-sh4
60 CFLAGS_pfc-sh7723.o += -I$(srctree)/arch/sh/include/cpu-sh4
61 CFLAGS_pfc-sh7724.o += -I$(srctree)/arch/sh/include/cpu-sh4
62 CFLAGS_pfc-sh7734.o += -I$(srctree)/arch/sh/include/cpu-sh4
63 CFLAGS_pfc-sh7757.o += -I$(srctree)/arch/sh/include/cpu-sh4
64 CFLAGS_pfc-sh7785.o += -I$(srctree)/arch/sh/include/cpu-sh4
[all …]
/drivers/target/
Dtarget_core_pscsi.c95 struct Scsi_Host *sh = phv->phv_lld_host; in pscsi_pmode_enable_hba() local
100 if (!sh) in pscsi_pmode_enable_hba()
107 " %s\n", hba->hba_id, (sh->hostt->name) ? in pscsi_pmode_enable_hba()
108 (sh->hostt->name) : "Unknown"); in pscsi_pmode_enable_hba()
110 scsi_host_put(sh); in pscsi_pmode_enable_hba()
117 sh = scsi_host_lookup(phv->phv_host_id); in pscsi_pmode_enable_hba()
118 if (!sh) { in pscsi_pmode_enable_hba()
124 phv->phv_lld_host = sh; in pscsi_pmode_enable_hba()
128 hba->hba_id, (sh->hostt->name) ? (sh->hostt->name) : "Unknown"); in pscsi_pmode_enable_hba()
350 __releases(sh->host_lock) in pscsi_create_type_disk()
[all …]
/drivers/target/loopback/
Dtcm_loop.c168 static int tcm_loop_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *sc) in tcm_loop_queuecommand() argument
315 struct Scsi_Host *sh; in tcm_loop_driver_probe() local
320 sh = scsi_host_alloc(&tcm_loop_driver_template, in tcm_loop_driver_probe()
322 if (!sh) { in tcm_loop_driver_probe()
326 tl_hba->sh = sh; in tcm_loop_driver_probe()
331 *((struct tcm_loop_hba **)sh->hostdata) = tl_hba; in tcm_loop_driver_probe()
335 sh->max_id = 2; in tcm_loop_driver_probe()
336 sh->max_lun = 0; in tcm_loop_driver_probe()
337 sh->max_channel = 0; in tcm_loop_driver_probe()
338 sh->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE; in tcm_loop_driver_probe()
[all …]
/drivers/message/fusion/
Dmptfc.c208 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 …]
Dmptspi.c1116 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/net/ethernet/microchip/sparx5/
Dsparx5_qos.c326 const struct sparx5_shaper *sh, u32 layer, in sparx5_shaper_conf_set() argument
332 if (!sh->rate && !sh->burst) in sparx5_shaper_conf_set()
342 spx5_rmw(HSCH_SE_CFG_SE_FRM_MODE_SET(sh->mode), HSCH_SE_CFG_SE_FRM_MODE, in sparx5_shaper_conf_set()
346 spx5_wr(HSCH_CIR_CFG_CIR_RATE_SET(sh->rate) | in sparx5_shaper_conf_set()
347 HSCH_CIR_CFG_CIR_BURST_SET(sh->burst), in sparx5_shaper_conf_set()
493 struct sparx5_shaper sh = { in sparx5_tc_tbf_add() local
502 if (sparx5_lg_get_group_by_rate(layer, sh.rate, &group) < 0) { in sparx5_tc_tbf_add()
504 sh.rate); in sparx5_tc_tbf_add()
512 if (sh.rate < SPX5_SE_RATE_MIN || sh.burst < SPX5_SE_BURST_MIN) in sparx5_tc_tbf_add()
516 sh.rate = DIV_ROUND_UP(sh.rate, lg->resolution); in sparx5_tc_tbf_add()
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager.c106 int i, se, sh, cu, cu_bitmap_sh_mul, cu_inc = wgp_mode_req ? 2 : 1; in mqd_symmetrically_map_cu_mask() local
146 for (sh = 0; sh < cu_info.num_shader_arrays_per_engine; sh++) in mqd_symmetrically_map_cu_mask()
147 cu_per_sh[se][sh] = hweight32( in mqd_symmetrically_map_cu_mask()
148 cu_info.cu_bitmap[xcc_inst][se % 4][sh + (se / 4) * in mqd_symmetrically_map_cu_mask()
192 for (sh = 0; sh < cu_info.num_shader_arrays_per_engine; sh++) { in mqd_symmetrically_map_cu_mask()
194 if (cu_per_sh[se][sh] > cu) { in mqd_symmetrically_map_cu_mask()
196 se_mask[se] |= en_mask << (cu + sh * 16); in mqd_symmetrically_map_cu_mask()
/drivers/gpu/drm/ci/
Dlava-submit.sh18 cp artifacts/ci-common/capture-devcoredump.sh results/job-rootfs-overlay/
19 cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/
20 cp artifacts/ci-common/intel-gpu-freq.sh results/job-rootfs-overlay/
21 cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/
26 artifacts/ci-common/generate-env.sh | tee results/job-rootfs-overlay/set-job-env-vars.sh
44 --first-stage-init artifacts/ci-common/init-stage1.sh \
/drivers/scsi/pcmcia/
Dfdomain_cs.c34 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/gpu/drm/amd/amdgpu/
Damdgpu_umr.h31 __u32 se, sh, instance; member
41 __u32 se, sh, instance; member
50 u32 gpr_or_wave, se, sh, cu, wave, simd, xcc_id; member
/drivers/misc/sgi-gru/
Dgruhandles.h496 #define GRU_PAGESIZE(sh) ((((sh) > 20 ? (sh) + 2 : (sh)) >> 1) - 6) argument
497 #define GRU_SIZEAVAIL(sh) (1UL << GRU_PAGESIZE(sh)) argument

12345