| /drivers/scsi/ |
| A D | aha1542.c | 755 if (!sh) in aha1542_hw_init() 777 sh->this_id, base_io, sh->irq, dma_info); in aha1542_hw_init() 807 if (sh->dma_channel == 0 || sh->dma_channel >= 5) { in aha1542_hw_init() 818 return sh; in aha1542_hw_init() 824 free_irq(sh->irq, sh); in aha1542_hw_init() 851 if (sh->irq) in aha1542_release() 852 free_irq(sh->irq, sh); in aha1542_release() 853 if (sh->io_port && sh->n_io_port) in aha1542_release() 854 release_region(sh->io_port, sh->n_io_port); in aha1542_release() 1059 if (!sh) in aha1542_isa_match() [all …]
|
| A D | fdomain.c | 517 struct Scsi_Host *sh; in fdomain_create() local 540 if (!sh) in fdomain_create() 546 sh->irq = irq; in fdomain_create() 547 sh->io_port = base; in fdomain_create() 550 fd = shost_priv(sh); in fdomain_create() 568 scsi_scan_host(sh); in fdomain_create() 570 return sh; in fdomain_create() 575 scsi_host_put(sh); in fdomain_create() 585 scsi_remove_host(sh); in fdomain_destroy() 586 if (sh->irq) in fdomain_destroy() [all …]
|
| A 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 …]
|
| A D | wd719x.c | 824 wd->sh = sh; in wd719x_board_found() 825 sh->irq = wd->pdev->irq; in wd719x_board_found() 865 card_types[wd->type], sh->base, sh->irq, sh->this_id); in wd719x_board_found() 900 struct Scsi_Host *sh; in wd719x_pci_probe() local 924 if (!sh) in wd719x_pci_probe() 927 wd = shost_priv(sh); in wd719x_pci_probe() 941 scsi_scan_host(sh); in wd719x_pci_probe() 943 pci_set_drvdata(pdev, sh); in wd719x_pci_probe() 951 scsi_host_put(sh); in wd719x_pci_probe() 966 scsi_remove_host(sh); in wd719x_pci_remove() [all …]
|
| A 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()
|
| A D | scsi_proto_test.c | 37 } sh = { .arr = { 1, 2, 3, 4, 0, 0, 5, 6 } }; in test_scsi_proto() local 38 KUNIT_EXPECT_EQ(test, get_unaligned_be32(&sh.h.len), 0x1020304); in test_scsi_proto() 39 KUNIT_EXPECT_EQ(test, get_unaligned_be16(&sh.h.number_of_open_streams), in test_scsi_proto()
|
| /drivers/md/ |
| A D | raid5.c | 126 if (sh->qd_idx == sh->disks - 1) in raid6_d0() 2902 if (sh->batch_head && sh != sh->batch_head) in raid5_end_write_request() 4282 dev = &sh->dev[sh->pd_idx]; in handle_parity_checks5() 4333 &sh->dev[sh->pd_idx].flags); in handle_parity_checks5() 4334 sh->ops.target = sh->pd_idx; in handle_parity_checks5() 4796 return (sh->batch_head && sh->batch_head != sh); in clear_batch_ready() 4807 if (sh->batch_head != sh) { in clear_batch_ready() 4932 atomic_read(&sh->count), sh->pd_idx, sh->qd_idx, in handle_stripe() 5028 pdev = &sh->dev[sh->pd_idx]; in handle_stripe() 5031 qdev = &sh->dev[sh->qd_idx]; in handle_stripe() [all …]
|
| A D | raid5-cache.c | 926 if (i == sh->pd_idx || i == sh->qd_idx) in r5l_log_stripe() 945 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe() 946 sh->dev[sh->qd_idx].log_checksum, true); in r5l_log_stripe() 951 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe() 1002 if (sh->log_io || !test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags) || in r5l_write_stripe() 1833 sh->dev[sh->pd_idx].log_checksum = in r5l_recovery_load_parity() 1839 log, ctx, sh->dev[sh->qd_idx].page, in r5l_recovery_load_parity() 1841 sh->dev[sh->qd_idx].log_checksum = in r5l_recovery_load_parity() 1920 if (!sh) in r5c_recovery_alloc_stripe() 2756 if (sh->dev[i].page != sh->dev[i].orig_page) { in r5c_release_extra_page() [all …]
|
| A D | raid5-log.h | 10 void r5l_stripe_write_finished(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); 59 struct r5conf *conf = sh->raid_conf; in log_stripe() 66 return r5l_write_stripe(conf->log, sh); in log_stripe() 69 return r5c_cache_data(conf->log, sh); in log_stripe() 72 return ppl_write_stripe(conf, sh); in log_stripe() 80 struct r5conf *conf = sh->raid_conf; in log_stripe_write_finished() 83 r5l_stripe_write_finished(sh); in log_stripe_write_finished() [all …]
|
| A D | raid5-ppl.c | 161 int disks = sh->disks; in ops_run_partial_parity() 193 NULL, sh, (void *) (srcs + sh->disks + 2)); in ops_run_partial_parity() 356 sh->ppl_io = io; in ppl_log_stripe() 367 if (io || test_bit(STRIPE_SYNCING, &sh->state) || !sh->ppl_page || in ppl_write_stripe() 368 !test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags) || in ppl_write_stripe() 369 !test_bit(R5_Insync, &sh->dev[sh->pd_idx].flags)) { in ppl_write_stripe() 385 atomic_inc(&sh->count); in ppl_write_stripe() 434 struct stripe_head *sh; in ppl_submit_iounit() local 694 io = sh->ppl_io; in ppl_stripe_write_finished() 695 sh->ppl_io = NULL; in ppl_stripe_write_finished() [all …]
|
| A D | raid5.h | 787 static inline int raid5_get_page_offset(struct stripe_head *sh, int disk_idx) in raid5_get_page_offset() argument 789 return (disk_idx % sh->stripes_per_page) * RAID5_STRIPE_SIZE(sh->raid_conf); in raid5_get_page_offset() 796 raid5_get_dev_page(struct stripe_head *sh, int disk_idx) in raid5_get_dev_page() argument 798 return sh->pages[disk_idx / sh->stripes_per_page]; in raid5_get_dev_page() 804 sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous); 805 void raid5_release_stripe(struct stripe_head *sh); 807 int previous, int *dd_idx, struct stripe_head *sh);
|
| /drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
| A D | phy_cmn.c | 336 sh = kzalloc(sizeof(*sh), GFP_ATOMIC); in wlc_phy_shared_attach() 337 if (sh == NULL) in wlc_phy_shared_attach() 344 sh->vid = shp->vid; in wlc_phy_shared_attach() 361 return sh; in wlc_phy_shared_attach() 416 pi = sh->phy_head; in wlc_phy_attach() 428 pi->sh = sh; in wlc_phy_attach() 543 sh->phy_head = pi; in wlc_phy_attach() 1048 pi->nphy_perical_last = pi->sh->now - pi->sh->glacial_timer; in wlc_phy_mute_upd() 1195 if (pi->sh->up) { in wlc_phy_txpower_set() 1910 pi->sh->phy_noise_window[pi->sh->phy_noise_index] = in wlc_phy_noise_cb() [all …]
|
| /drivers/xen/events/ |
| A 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() 295 sh->evtchn_pending[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() 307 (int)(sizeof(sh->evtchn_mask[0])*2), in xen_debug_interrupt() 308 sh->evtchn_pending[i] & ~sh->evtchn_mask[i], in xen_debug_interrupt() 319 xen_ulong_t pending = sh->evtchn_pending[i] in xen_debug_interrupt() 320 & ~sh->evtchn_mask[i] in xen_debug_interrupt() [all …]
|
| /drivers/pinctrl/renesas/ |
| A D | Makefile | 56 CFLAGS_pfc-sh7203.o += -I$(srctree)/arch/sh/include/cpu-sh2a 57 CFLAGS_pfc-sh7264.o += -I$(srctree)/arch/sh/include/cpu-sh2a 59 CFLAGS_pfc-sh7720.o += -I$(srctree)/arch/sh/include/cpu-sh3 60 CFLAGS_pfc-sh7722.o += -I$(srctree)/arch/sh/include/cpu-sh4 61 CFLAGS_pfc-sh7723.o += -I$(srctree)/arch/sh/include/cpu-sh4 62 CFLAGS_pfc-sh7724.o += -I$(srctree)/arch/sh/include/cpu-sh4 63 CFLAGS_pfc-sh7734.o += -I$(srctree)/arch/sh/include/cpu-sh4 64 CFLAGS_pfc-sh7757.o += -I$(srctree)/arch/sh/include/cpu-sh4 65 CFLAGS_pfc-sh7785.o += -I$(srctree)/arch/sh/include/cpu-sh4 66 CFLAGS_pfc-sh7786.o += -I$(srctree)/arch/sh/include/cpu-sh4 [all …]
|
| /drivers/target/ |
| A D | target_core_pscsi.c | 100 if (!sh) in pscsi_pmode_enable_hba() 110 scsi_host_put(sh); 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() 395 __releases(sh->host_lock) in pscsi_create_type_nondisk() 443 if (!sh) { in pscsi_configure_device() 478 if (!sh) { in pscsi_configure_device() 516 scsi_host_put(sh); in pscsi_configure_device() [all …]
|
| /drivers/target/loopback/ |
| A D | tcm_loop.c | 316 struct Scsi_Host *sh; in tcm_loop_driver_probe() local 323 if (!sh) { in tcm_loop_driver_probe() 327 tl_hba->sh = sh; in tcm_loop_driver_probe() 336 sh->max_id = 2; in tcm_loop_driver_probe() 337 sh->max_lun = 0; in tcm_loop_driver_probe() 338 sh->max_channel = 0; in tcm_loop_driver_probe() 354 scsi_host_put(sh); in tcm_loop_driver_probe() 363 struct Scsi_Host *sh; in tcm_loop_driver_remove() local 366 sh = tl_hba->sh; in tcm_loop_driver_remove() 369 scsi_host_put(sh); in tcm_loop_driver_remove() [all …]
|
| /drivers/net/ethernet/microchip/sparx5/ |
| A D | sparx5_qos.c | 331 const struct sparx5_shaper *sh, u32 layer, in sparx5_shaper_conf_set() argument 337 if (!sh->rate && !sh->burst) in sparx5_shaper_conf_set() 351 spx5_wr(HSCH_CIR_CFG_CIR_RATE_SET(sh->rate) | in sparx5_shaper_conf_set() 352 HSCH_CIR_CFG_CIR_BURST_SET(sh->burst), in sparx5_shaper_conf_set() 500 struct sparx5_shaper sh = { in sparx5_tc_tbf_add() local 511 sh.rate); in sparx5_tc_tbf_add() 519 if (sh.rate < SPX5_SE_RATE_MIN || sh.burst < SPX5_SE_BURST_MIN) in sparx5_tc_tbf_add() 523 sh.rate = DIV_ROUND_UP(sh.rate, lg->resolution); in sparx5_tc_tbf_add() 524 sh.burst = DIV_ROUND_UP(sh.burst, SPX5_SE_BURST_UNIT); in sparx5_tc_tbf_add() 526 if (sh.rate > SPX5_SE_RATE_MAX || sh.burst > SPX5_SE_BURST_MAX) in sparx5_tc_tbf_add() [all …]
|
| /drivers/message/fusion/ |
| A D | mptfc.c | 526 ioc->sh->host_no, in mptfc_register_dev() 1026 sh = ioc->sh; in mptfc_init_host_attr() 1143 ioc->sh->host_no, in mptfc_setup_reset() 1198 ioc->sh->host_no, in mptfc_rescan_devices() 1261 if (!sh) { in mptfc_probe() 1278 ioc->sh = sh; in mptfc_probe() 1280 sh->io_port = 0; in mptfc_probe() 1281 sh->n_io_port = 0; in mptfc_probe() 1282 sh->irq = 0; in mptfc_probe() 1324 hd = shost_priv(sh); in mptfc_probe() [all …]
|
| A D | mptspi.c | 1317 ioc->sh) { in mptspi_ioc_reset() 1356 struct Scsi_Host *sh; in mptspi_probe() local 1410 if (!sh) { in mptspi_probe() 1427 ioc->sh = sh; in mptspi_probe() 1429 sh->io_port = 0; in mptspi_probe() 1430 sh->n_io_port = 0; in mptspi_probe() 1431 sh->irq = 0; in mptspi_probe() 1434 sh->max_cmd_len = 16; in mptspi_probe() 1453 sh->max_channel = 1; in mptspi_probe() 1492 hd = shost_priv(sh); in mptspi_probe() [all …]
|
| /drivers/gpu/drm/amd/amdkfd/ |
| A D | kfd_mqd_manager.c | 107 int i, se, sh, cu, cu_bitmap_sh_mul, cu_inc = wgp_mode_req ? 2 : 1; in mqd_symmetrically_map_cu_mask() local 148 for (sh = 0; sh < gfx_info->max_sh_per_se; sh++) in mqd_symmetrically_map_cu_mask() 149 cu_per_sh[se][sh] = hweight32( in mqd_symmetrically_map_cu_mask() 150 cu_info->bitmap[xcc_inst][se % 4][sh + (se / 4) * in mqd_symmetrically_map_cu_mask() 194 for (sh = 0; sh < gfx_info->max_sh_per_se; sh++) { in mqd_symmetrically_map_cu_mask() 196 if (cu_per_sh[se][sh] > cu) { in mqd_symmetrically_map_cu_mask() 198 se_mask[se] |= en_mask << (cu + sh * 16); in mqd_symmetrically_map_cu_mask()
|
| /drivers/gpu/drm/ci/ |
| A D | lava-submit.sh | 50 artifacts/ci-common/export-gitlab-job-env-for-dut.sh \ 51 > results/job-rootfs-overlay/set-job-env-vars.sh 52 cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/ 53 cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/ 60 cat results/job-rootfs-overlay/set-job-env-vars.sh 79 --first-stage-init artifacts/ci-common/init-stage1.sh \
|
| /drivers/scsi/pcmcia/ |
| A 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/net/ethernet/broadcom/bnge/ |
| A D | bnge_resc.c | 149 u16 *tx, u16 max_nq, bool sh) in bnge_adjust_rings() argument 156 rc = bnge_fix_rings_count(rx, &tx_chunks, max_nq, sh); in bnge_adjust_rings() 164 return bnge_fix_rings_count(rx, tx, max_nq, sh); in bnge_adjust_rings() 264 bool sh = false; in bnge_reserve_rings() local 286 sh = true; in bnge_reserve_rings() 319 rc = bnge_adjust_rings(bd, &rx_rings, &hwr.tx, hwr.nq, sh); in bnge_reserve_rings() 323 hwr.nq = sh ? max_t(u16, tx_cp, rx_rings) : tx_cp + rx_rings; in bnge_reserve_rings() 517 if (sh) in bnge_net_init_dflt_rings() 522 rc = bnge_get_dflt_rings(bd, &max_rx_rings, &max_tx_rings, sh); in bnge_net_init_dflt_rings() 527 if (sh) in bnge_net_init_dflt_rings() [all …]
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_umr.h | 31 __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/ |
| A 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
|