Home
last modified time | relevance | path

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

12345678910>>...20

/Linux-v4.19/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 …]
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 …]
/Linux-v4.19/drivers/md/
Draid5.c121 static inline int raid6_d0(struct stripe_head *sh) in raid6_d0() argument
123 if (sh->ddf_layout) in raid6_d0()
127 if (sh->qd_idx == sh->disks - 1) in raid6_d0()
130 return sh->qd_idx + 1; in raid6_d0()
143 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot() argument
148 if (sh->ddf_layout) in raid6_idx_to_slot()
150 if (idx == sh->pd_idx) in raid6_idx_to_slot()
152 if (idx == sh->qd_idx) in raid6_idx_to_slot()
154 if (!sh->ddf_layout) in raid6_idx_to_slot()
161 static int stripe_operations_active(struct stripe_head *sh) in stripe_operations_active() argument
[all …]
Draid5-cache.c319 struct stripe_head *sh, int disks) in r5c_handle_cached_data_endio() argument
323 for (i = sh->disks; i--; ) { in r5c_handle_cached_data_endio()
324 if (sh->dev[i].written) { in r5c_handle_cached_data_endio()
325 set_bit(R5_UPTODATE, &sh->dev[i].flags); in r5c_handle_cached_data_endio()
326 r5c_return_dev_pending_writes(conf, &sh->dev[i]); in r5c_handle_cached_data_endio()
327 md_bitmap_endwrite(conf->mddev->bitmap, sh->sector, in r5c_handle_cached_data_endio()
329 !test_bit(STRIPE_DEGRADED, &sh->state), in r5c_handle_cached_data_endio()
460 void r5c_make_stripe_write_out(struct stripe_head *sh) in r5c_make_stripe_write_out() argument
462 struct r5conf *conf = sh->raid_conf; in r5c_make_stripe_write_out()
467 WARN_ON(!test_bit(STRIPE_R5C_CACHING, &sh->state)); in r5c_make_stripe_write_out()
[all …]
Draid5-log.h10 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 …]
Draid5-ppl.c164 ops_run_partial_parity(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_partial_parity() argument
167 int disks = sh->disks; in ops_run_partial_parity()
169 int count = 0, pd_idx = sh->pd_idx, i; in ops_run_partial_parity()
172 pr_debug("%s: stripe %llu\n", __func__, (unsigned long long)sh->sector); in ops_run_partial_parity()
180 if (sh->reconstruct_state == reconstruct_state_prexor_drain_run) { in ops_run_partial_parity()
186 srcs[count++] = sh->dev[pd_idx].page; in ops_run_partial_parity()
187 } else if (sh->reconstruct_state == reconstruct_state_drain_run) { in ops_run_partial_parity()
190 struct r5dev *dev = &sh->dev[i]; in ops_run_partial_parity()
199 NULL, sh, flex_array_get(percpu->scribble, 0) in ops_run_partial_parity()
200 + sizeof(struct page *) * (sh->disks + 2)); in ops_run_partial_parity()
[all …]
/Linux-v4.19/tools/testing/selftests/net/
Dpsock_snd.sh25 ./in_netns.sh ./psock_snd -d
28 ./in_netns.sh ./psock_snd -d -b
31 ./in_netns.sh ./psock_snd
34 ./in_netns.sh ./psock_snd -b
37 ./in_netns.sh ./psock_snd -q
40 ./in_netns.sh ./psock_snd -V
43 ./in_netns.sh ./psock_snd -v
46 ./in_netns.sh ./psock_snd -v -c
49 (! ./in_netns.sh ./psock_snd -v -c -C)
55 ./in_netns.sh ./psock_snd -l 0
[all …]
DMakefile7 TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh rtnetlink.sh
8 TEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh udpgso.sh
9 TEST_PROGS += udpgso_bench.sh fib_rule_tests.sh msg_zerocopy.sh psock_snd.sh
10 TEST_PROGS_EXTENDED := in_netns.sh
Dudpgso.sh7 ./in_netns.sh ./udpgso -4 -C
10 ./in_netns.sh ./udpgso -4 -C -s
13 ./in_netns.sh ./udpgso -6 -C
16 ./in_netns.sh ./udpgso -6 -C -s
19 ./in_netns.sh ./udpgso -4 -c
26 ./in_netns.sh ./udpgso -4 -C -m
29 ./in_netns.sh ./udpgso -6 -C -m
/Linux-v4.19/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 …]
/Linux-v4.19/lib/mpi/
Dlonglong.h114 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
117 : "=r" ((USItype)(sh)), \
123 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
126 : "=r" ((USItype)(sh)), \
176 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
179 : "=r" (sh), \
185 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
188 : "=r" (sh), \
263 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
266 : "=g" ((USItype)(sh)), \
[all …]
/Linux-v4.19/drivers/xen/events/
Devents_2l.c146 struct shared_info *sh, in active_evtchns() argument
149 return sh->evtchn_pending[idx] & in active_evtchns()
151 ~sh->evtchn_mask[idx]; in active_evtchns()
267 struct shared_info *sh = HYPERVISOR_shared_info; in xen_debug_interrupt() local
293 for (i = ARRAY_SIZE(sh->evtchn_pending)-1; i >= 0; i--) in xen_debug_interrupt()
295 (int)sizeof(sh->evtchn_pending[0])*2, in xen_debug_interrupt()
296 sh->evtchn_pending[i], in xen_debug_interrupt()
299 for (i = ARRAY_SIZE(sh->evtchn_mask)-1; i >= 0; i--) in xen_debug_interrupt()
301 (int)(sizeof(sh->evtchn_mask[0])*2), in xen_debug_interrupt()
302 sh->evtchn_mask[i], in xen_debug_interrupt()
[all …]
/Linux-v4.19/tools/testing/selftests/rcutorture/bin/
Dconfiginit.sh35 T=${TMPDIR-/tmp}/configinit.sh.$$
58 sed -e 's/^\(CONFIG[0-9A-Z_]*=\).*$/grep -v \1 |/' < $c >> $T/u.sh
59 grep '^grep' < $T/u.sh > $T/upd.sh
60 echo "cat - $c" >> $T/upd.sh
65 sh $T/upd.sh < $builddir/.config.sav > $builddir/.config
70 configcheck.sh $builddir/.config $c
Dkvm-recheck.sh28 . functions.sh
43 kvm-recheck-${TORTURE_SUITE}.sh $i
46 configcheck.sh $i/.config $i/ConfigFragment
51 parse-build.sh $i/Make.out $configfile
52 parse-console.sh $i/console.log $configfile
65 configcheck.sh $i/.config $i/ConfigFragment
66 parse-build.sh $i/Make.out $configfile
/Linux-v4.19/arch/sh/
DMakefile18 ifeq ($(ARCH),sh)
25 isa-$(CONFIG_SH_DSP) := sh
103 boot := arch/sh/boot
111 UTS_MACHINE := sh
134 head-y := arch/sh/kernel/head_$(BITS).o
136 core-y += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/
137 core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/
139 core-$(CONFIG_USE_BUILTIN_DTB) += arch/sh/boot/dts/
163 core-y += $(addprefix arch/sh/boards/, \
171 core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/
[all …]
/Linux-v4.19/tools/testing/selftests/cpufreq/
DMakefile4 TEST_PROGS := main.sh
5 TEST_FILES := cpu.sh cpufreq.sh governor.sh module.sh special-tests.sh
/Linux-v4.19/Documentation/sh/
Dindex.rst16 .. kernel-doc:: arch/sh/kernel/cpu/sh4/sq.c
25 .. kernel-doc:: arch/sh/mm/tlb-sh5.c
28 .. kernel-doc:: arch/sh/include/asm/tlb_64.h
37 .. kernel-doc:: arch/sh/boards/mach-dreamcast/rtc.c
43 .. kernel-doc:: arch/sh/boards/mach-x3proto/ilsel.c
52 .. kernel-doc:: drivers/sh/superhyway/superhyway.c
58 .. kernel-doc:: drivers/sh/maple/maple.c
Dnew-machine.txt5 Paul Mundt <lethal@linux-sh.org>
17 in arch/sh/kernel/ directly, with board-specific headers ending up in
18 include/asm-sh/. For the new kernel, things are broken out by board type,
26 | `-- sh
36 `-- asm-sh
47 `-- sh
54 board-specific headers. Thus, include/asm-sh/hd64461 is home to all of the
60 | `-- sh
74 `-- asm-sh
93 board in arch/sh/boards/ and adding rules to hook your board in with the
[all …]
/Linux-v4.19/tools/objtool/
Delf.c181 if (!gelf_getshdr(s, &sec->sh)) { in read_sections()
186 sec->name = elf_strptr(elf->elf, shstrndx, sec->sh.sh_name); in read_sections()
192 if (sec->sh.sh_size != 0) { in read_sections()
199 sec->data->d_size != sec->sh.sh_size) { in read_sections()
205 sec->len = sec->sh.sh_size; in read_sections()
231 symbols_nr = symtab->sh.sh_size / symtab->sh.sh_entsize; in read_symbols()
248 sym->name = elf_strptr(elf->elf, symtab->sh.sh_link, in read_symbols()
352 if (sec->sh.sh_type != SHT_RELA) in read_relas()
364 for (i = 0; i < sec->sh.sh_size / sec->sh.sh_entsize; i++) { in read_relas()
510 if (!gelf_getshdr(s, &sec->sh)) { in elf_create_section()
[all …]
/Linux-v4.19/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()
368 __releases(sh->host_lock) in pscsi_create_type_disk()
[all …]
/Linux-v4.19/net/netfilter/
Dxt_sctp.c121 const struct sctphdr *sh; in sctp_mt() local
129 sh = skb_header_pointer(skb, par->thoff, sizeof(_sh), &_sh); in sctp_mt()
130 if (sh == NULL) { in sctp_mt()
135 pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); in sctp_mt()
137 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt()
138 && ntohs(sh->source) <= info->spts[1], in sctp_mt()
140 SCCHECK(ntohs(sh->dest) >= info->dpts[0] in sctp_mt()
141 && ntohs(sh->dest) <= info->dpts[1], in sctp_mt()
/Linux-v4.19/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()
462 rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); in mptfc_register_dev()
490 ioc->sh->host_no, in mptfc_register_dev()
983 struct Scsi_Host *sh; in mptfc_init_host_attr() local
991 sh = ioc->sh; in mptfc_init_host_attr()
993 sn = fc_host_symbolic_name(sh); in mptfc_init_host_attr()
999 fc_host_tgtid_bind_type(sh) = FC_TGTID_BIND_BY_WWPN; in mptfc_init_host_attr()
1001 fc_host_maxframe_size(sh) = pp0->MaxFrameSize; in mptfc_init_host_attr()
[all …]
/Linux-v4.19/tools/testing/selftests/firmware/
DMakefile6 TEST_PROGS := fw_run_tests.sh
7 TEST_FILES := fw_fallback.sh fw_filesystem.sh fw_lib.sh
/Linux-v4.19/arch/mips/include/asm/
Duasm.h209 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument
211 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument
212 # define UASM_i_SRA(buf, rs, rt, sh) uasm_i_dsra(buf, rs, rt, sh) argument
213 # define UASM_i_SRL(buf, rs, rt, sh) uasm_i_dsrl(buf, rs, rt, sh) argument
214 # define UASM_i_SRL_SAFE(buf, rs, rt, sh) uasm_i_dsrl_safe(buf, rs, rt, sh) argument
225 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_rotr(buf, rs, rt, sh) argument
227 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_sll(buf, rs, rt, sh) argument
228 # define UASM_i_SRA(buf, rs, rt, sh) uasm_i_sra(buf, rs, rt, sh) argument
229 # define UASM_i_SRL(buf, rs, rt, sh) uasm_i_srl(buf, rs, rt, sh) argument
230 # define UASM_i_SRL_SAFE(buf, rs, rt, sh) uasm_i_srl(buf, rs, rt, sh) argument
/Linux-v4.19/tools/testing/selftests/zram/
DMakefile4 TEST_PROGS := zram.sh
5 TEST_FILES := zram01.sh zram02.sh zram_lib.sh

12345678910>>...20