Home
last modified time | relevance | path

Searched refs:sc_type (Results 1 – 25 of 146) sorted by relevance

123456

/netbsd-src/sys/arch/atari/dev/
H A Dhdfd.c253 struct fd_type *sc_type; /* current type descriptor */ member
626 if (bp->b_blkno + sz > fd->sc_type->size) { in fdstrategy()
627 sz = fd->sc_type->size - bp->b_blkno; in fdstrategy()
642 bp->b_cylinder = bp->b_blkno / (FDC_BSIZE/DEV_BSIZE) / fd->sc_type->seccyl; in fdstrategy()
832 fd->sc_type != type) in fdopen()
835 fd->sc_type = type; in fdopen()
1017 out_fdc(fd->sc_type->steprate); in fdcintr()
1024 out_fdc(bp->b_cylinder * fd->sc_type->step); in fdcintr()
1041 type = fd->sc_type; in fdcintr()
1129 cyl != bp->b_cylinder * fd->sc_type->step) { in fdcintr()
[all …]
/netbsd-src/sys/dev/pci/
H A Dif_wm.c530 wm_chip_type sc_type; /* MAC type */ member
1945 if (sc->sc_type == WM_T_82574) { in wm_init_rxdesc()
2066 sc->sc_type = wmp->wmp_type; in wm_attach()
2071 sc->phy.reset_delay_us = (sc->sc_type >= WM_T_82571) ? 100 : 10000; in wm_attach()
2073 if (sc->sc_type < WM_T_82543) { in wm_attach()
2080 sc->sc_type = WM_T_82542_2_0; in wm_attach()
2097 if ((sc->sc_type <= WM_T_82541_2) || (sc->sc_type == WM_T_82571) in wm_attach()
2098 || (sc->sc_type == WM_T_82572)) in wm_attach()
2101 if ((sc->sc_type in wm_attach()
[all...]
/netbsd-src/sys/arch/acorn32/mainbus/
H A Dfd.c222 struct fd_type *sc_type; /* current type descriptor */ member
588 if (bp->b_blkno + sz > fd->sc_type->size) { in fdstrategy()
589 sz = fd->sc_type->size - bp->b_blkno; in fdstrategy()
604 bp->b_cylinder = bp->b_blkno / (FDC_BSIZE / DEV_BSIZE) / fd->sc_type->seccyl; in fdstrategy()
796 memcmp(fd->sc_type, type, sizeof(*type))) in fdopen()
800 fd->sc_type = &fd->sc_type_copy; in fdopen()
987 out_fdc(iot, ioh, fd->sc_type->steprate); in fdcintr()
992 out_fdc(iot, ioh, bp->b_cylinder * fd->sc_type->step); in fdcintr()
1005 type = fd->sc_type; in fdcintr()
1111 cyl != bp->b_cylinder * fd->sc_type->step) { in fdcintr()
[all …]
/netbsd-src/sys/arch/x68k/dev/
H A Dfd.c222 struct fd_type *sc_type; /* current type descriptor */ member
717 (fd->sc_type->size << (fd->sc_type->secsize - 2))) { in fdstrategy()
718 sz = (fd->sc_type->size << (fd->sc_type->secsize - 2)) in fdstrategy()
736 (fd->sc_type->seccyl * (1 << (fd->sc_type->secsize - 2))); in fdstrategy()
837 0x80 | (fd->sc_type->rate << 4)| n); in fd_set_motor()
853 (fd->sc_type->rate << 4) | fd->sc_drive); in fd_motor_off()
940 fd->sc_type != type) in fdopen()
951 fd->sc_type = type; in fdopen()
1191 out_fdc(iot, ioh, bp->b_cylinder * fd->sc_type->step); in fdcintr()
1205 type = fd->sc_type; in fdcintr()
[all …]
/netbsd-src/sys/dev/isa/
H A Dfd.c720 if (bp->b_blkno + sz > fd->sc_type->size) { in fdstrategy()
721 sz = fd->sc_type->size - bp->b_blkno; in fdstrategy()
737 bp->b_blkno / (FDC_BSIZE / DEV_BSIZE) / fd->sc_type->seccyl; in fdstrategy()
936 memcmp(fd->sc_type, type, sizeof(*type))) in fdopen()
940 fd->sc_type = &fd->sc_type_copy; in fdopen()
1126 out_fdc(iot, ioh, fd->sc_type->steprate); in fdcintr1()
1131 out_fdc(iot, ioh, bp->b_cylinder * fd->sc_type->step); in fdcintr1()
1144 type = fd->sc_type; in fdcintr1()
1228 cyl != bp->b_cylinder * fd->sc_type->step) { in fdcintr1()
1275 bp->b_cylinder = fd->sc_blkno / fd->sc_type->seccyl; in fdcintr1()
[all …]
/netbsd-src/sys/arch/sun3/dev/
H A Dfd.c242 struct fd_type *sc_type; /* current type descriptor */ member
680 if (bp->b_blkno + sz > fd->sc_type->size) { in fdstrategy()
681 sz = fd->sc_type->size - bp->b_blkno; in fdstrategy()
698 bp->b_blkno / (FDC_BSIZE / DEV_BSIZE) / fd->sc_type->seccyl; in fdstrategy()
895 fd->sc_type != type) in fdopen()
898 fd->sc_type = type; in fdopen()
1252 OUT_FDC(fdc, fd->sc_type->steprate, SEEKTIMEDOUT); in fdcstate()
1259 OUT_FDC(fdc, bp->b_cylinder * fd->sc_type->step, SEEKTIMEDOUT); in fdcstate()
1287 type = fd->sc_type; in fdcstate()
1374 cyl != bp->b_cylinder * fd->sc_type in fdcstate()
[all...]
H A Dmemerr.c66 enum memerr_type sc_type; member
118 sc->sc_type = ME_ECC; in memerr_attach()
124 sc->sc_type = ME_PAR; in memerr_attach()
140 if (sc->sc_type == ME_PAR) in memerr_attach()
188 if (sc->sc_type == ME_PAR) { in memerr_interrupt()
/netbsd-src/sys/dev/
H A Dmd.c95 #define sc_type sc_md.md_type macro
167 sc->sc_type = MD_UNCONFIGURED; in md_attach()
188 if (sc->sc_type != MD_UNCONFIGURED) in md_attach()
203 if (sc->sc_dkdev.dk_openmask == 0 && sc->sc_type == MD_UNCONFIGURED) in md_detach()
246 if (sc->sc_type == MD_UNCONFIGURED) in mdsize()
298 configured = (sc->sc_type != MD_UNCONFIGURED); in mdopen()
301 if (!configured && sc->sc_type != MD_UNCONFIGURED) in mdopen()
309 if (sc->sc_type == MD_UNCONFIGURED) { in mdopen()
384 if (sc == NULL || sc->sc_type == MD_UNCONFIGURED) in mdread()
397 if (sc == NULL || sc->sc_type == MD_UNCONFIGURED) in mdwrite()
[all …]
/netbsd-src/sys/arch/sparc/dev/
H A Dfd.c266 struct fd_type *sc_type; /* current type descriptor */ member
877 if (bp->b_blkno + sz > (fd->sc_type->size * DEV_BSIZE) / FD_BSIZE(fd)) { in fdstrategy()
878 sz = (fd->sc_type->size * DEV_BSIZE) / FD_BSIZE(fd) in fdstrategy()
896 (FD_BSIZE(fd) * fd->sc_type->seccyl); in fdstrategy()
1139 fd->sc_type != type) in fdopen()
1142 fd->sc_type = type; in fdopen()
1538 FDC_WRFIFO(fdc, fd->sc_type->steprate); in fdcstate()
1546 FDC_WRFIFO(fdc, bp->b_cylinder * fd->sc_type->step); in fdcstate()
1565 FDC_WRFIFO(fdc, 1 * fd->sc_type->step); in fdcstate()
1572 cyl != 1 * fd->sc_type->step) { in fdcstate()
[all …]
/netbsd-src/sys/arch/sparc64/dev/
H A Dfdc.c298 struct fd_type *sc_type; /* current type descriptor */ member
1054 if (bp->b_blkno + sz > (fd->sc_type->size * DEV_BSIZE) / FD_BSIZE(fd)) {
1055 sz = (fd->sc_type->size * DEV_BSIZE) / FD_BSIZE(fd)
1073 (FD_BSIZE(fd) * fd->sc_type->seccyl);
1322 fd->sc_type != type)
1325 fd->sc_type = type;
1721 FDC_WRFIFO(fdc, fd->sc_type->steprate);
1729 FDC_WRFIFO(fdc, bp->b_cylinder * fd->sc_type->step);
1748 FDC_WRFIFO(fdc, 1 * fd->sc_type->step);
1755 cyl != 1 * fd->sc_type->step) {
[all …]
/netbsd-src/sys/dev/i2c/
H A Dpcai2cmux.c168 const struct pcaiicmux_type *sc_type; member
213 if (bus->busidx >= sc->sc_type->nchannels) { in pcaiicmux_get_bus_info()
252 if (addr >= sc->sc_type->nchannels) { in pcaiicmux_get_bus_info()
266 if (sc->sc_type->enable_bit) { in pcaiicmux_get_bus_info()
268 (uint8_t)addr | sc->sc_type->enable_bit; in pcaiicmux_get_bus_info()
359 sc->sc_type = pcaiicmux_type_by_compat(ia); in pcaiicmux_attach()
360 KASSERT(sc->sc_type != NULL); in pcaiicmux_attach()
364 sc->sc_type->enable_bit ? "mux" : "switch"); in pcaiicmux_attach()
/netbsd-src/sys/arch/hp300/stand/common/
H A Dhpib.c90 if (hpib_softc[unit].sc_type == HPIBC) in hpibid()
103 if (hpib_softc[unit].sc_type == HPIBC) in hpibsend()
112 if (hpib_softc[unit].sc_type == HPIBC) in hpibrecv()
124 if (hpib_softc[unit].sc_type == HPIBC) in hpibswait()
140 if (hpib_softc[unit].sc_type == HPIBC) in hpibgo()
/netbsd-src/sys/dev/ic/
H A Dcom.c512 if (sc->sc_type == COM_TYPE_PXA2x0) in com_enable_debugport()
514 if (sc->sc_type == COM_TYPE_INGENIC || in com_enable_debugport()
515 sc->sc_type == COM_TYPE_TEGRA) in com_enable_debugport()
555 sc->sc_type = COM_TYPE_16650; in com_attach_subr()
557 sc->sc_type = COM_TYPE_16750; in com_attach_subr()
559 sc->sc_type = COM_TYPE_HAYESP; in com_attach_subr()
561 sc->sc_type = COM_TYPE_PXA2x0; in com_attach_subr()
565 if (sc->sc_type == COM_TYPE_PXA2x0) in com_attach_subr()
584 switch (sc->sc_type) { in com_attach_subr()
602 switch (sc->sc_type) { in com_attach_subr()
[all...]
H A Dne2000.c126 if (nsc->sc_type == NE2000_TYPE_UNKNOWN) in ne2000_attach()
127 nsc->sc_type = ne2000_detect(nict, nich, asict, asich); in ne2000_attach()
133 switch (nsc->sc_type) { in ne2000_attach()
174 if (nsc->sc_type == NE2000_TYPE_RTL8019) { in ne2000_attach()
183 if (nsc->sc_type == NE2000_TYPE_AX88190 || in ne2000_attach()
184 nsc->sc_type == NE2000_TYPE_AX88790) { in ne2000_attach()
285 if (nsc->sc_type == NE2000_TYPE_AX88190 || in ne2000_attach()
286 nsc->sc_type == NE2000_TYPE_AX88790 || in ne2000_attach()
287 nsc->sc_type == NE2000_TYPE_AX88796) { in ne2000_attach()
301 bool ne1000 = (nsc->sc_type == NE2000_TYPE_NE1000); in ne2000_attach()
H A Ddl10019.c102 if (nsc->sc_type != NE2000_TYPE_DL10022) in dl10019_mii_reset()
231 ops = (nsc->sc_type == NE2000_TYPE_DL10022) ? in dl10019_mii_readreg()
243 ops = (nsc->sc_type == NE2000_TYPE_DL10022) ? in dl10019_mii_writereg()
259 if (nsc->sc_type == NE2000_TYPE_DL10022) { in dl10019_mii_statchg()
/netbsd-src/sys/arch/amiga/pci/
H A Dp5membar.c97 sc->sc_type = P5MEMBAR_TYPE_INTERNAL; in p5membar_attach()
101 sc->sc_type = P5MEMBAR_TYPE_INTERNAL; in p5membar_attach()
105 sc->sc_type = P5MEMBAR_TYPE_INTERNAL; in p5membar_attach()
109 sc->sc_type = P5MEMBAR_TYPE_MEMORY; in p5membar_attach()
/netbsd-src/sys/dev/fdt/
H A Dconnector_fdt.c67 #define sc_type sc_con.con_type macro
97 sc->sc_type = of_compatible_lookup(phandle, compat_data)->value; in fdt_connector_attach()
102 switch(sc->sc_type) { in fdt_connector_attach()
116 panic("unknown connector type %d\n", sc->sc_type); in fdt_connector_attach()
/netbsd-src/sys/arch/macppc/dev/
H A Dmediabay.c57 enum mediabay_controller sc_type; member
97 ((sc)->sc_type == MB_CONTROLLER_KEYLARGO ? \
136 sc->sc_type = MB_CONTROLLER_KEYLARGO; in mediabay_attach()
139 sc->sc_type = MB_CONTROLLER_OTHER; in mediabay_attach()
170 if (sc->sc_type != MB_CONTROLLER_KEYLARGO) { in mediabay_attach_content()
255 if (sc->sc_type != MB_CONTROLLER_KEYLARGO) { in mediabay_attach_content()
308 if (sc->sc_type != MB_CONTROLLER_KEYLARGO) { in mediabay_kthread()
/netbsd-src/sys/dev/hpc/
H A Dhpcin.c59 #define sc_type sc_hma.hma_type macro
100 sc->sc_ct = config_connect(sc->sc_type, sc->sc_id); in hpcin_attach()
114 sc->sc_type, sc->sc_id); in hpcin_intr()
115 config_hook_call(sc->sc_type, sc->sc_id, (void *)on); in hpcin_intr()
/netbsd-src/sys/arch/arm/ti/
H A Dti_iic.c173 enum ti_iic_type sc_type; member
191 bus_space_read_2((sc)->sc_iot, (sc)->sc_ioh, ti_iic_regmap[(sc)->sc_type][(reg)])
193 bus_space_read_1((sc)->sc_iot, (sc)->sc_ioh, ti_iic_regmap[(sc)->sc_type][I2C_DATA])
195 bus_space_write_2((sc)->sc_iot, (sc)->sc_ioh, ti_iic_regmap[(sc)->sc_type][(reg)], (val))
197 bus_space_write_1((sc)->sc_iot, (sc)->sc_ioh, ti_iic_regmap[(sc)->sc_type][I2C_DATA], (val))
272 sc->sc_type = of_compatible_lookup(phandle, compat_data)->value; in ti_iic_attach()
428 if (sc->sc_type == TI_IIC_OMAP3) { in ti_iic_reset()
502 if ((flags & I2C_F_POLL) == 0 || sc->sc_type == TI_IIC_OMAP3) { in ti_iic_op()
507 if (sc->sc_type == TI_IIC_OMAP4) { in ti_iic_op()
529 if (sc->sc_type == TI_IIC_OMAP4) { in ti_iic_op()
H A Dti_omaptimer.c102 enum omaptimer_type sc_type; member
107 bus_space_read_4((sc)->sc_bst, (sc)->sc_bsh, omaptimer_regmap[(sc)->sc_type][(reg)])
109 bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, omaptimer_regmap[(sc)->sc_type][(reg)], val)
192 sc->sc_type = of_compatible_lookup(phandle, compat_data)->value; in omaptimer_attach()
/netbsd-src/sys/arch/atari/vme/
H A Dif_le_vme.c376 lesc->sc_type = LE_PAM; in le_vme_attach()
381 lesc->sc_type = LE_BVME410; in le_vme_attach()
386 lesc->sc_type = LE_NEW_RIEBL; in le_vme_attach()
389 lesc->sc_type = LE_OLD_RIEBL; in le_vme_attach()
396 switch (lesc->sc_type) { in le_vme_attach()
424 switch (lesc->sc_type) { in le_vme_attach()
455 if ((lesc->sc_type == LE_OLD_RIEBL) || (lesc->sc_type == LE_NEW_RIEBL)) in le_vme_attach()
470 switch (lesc->sc_type) { in le_vme_attach()
/netbsd-src/sys/arch/arm/rockchip/
H A Drk_usb.c84 enum rk_usb_type sc_type; member
123 switch (sc->sc_type) { in rk_usb_clk_enable()
153 switch (sc->sc_type) { in rk_usb_clk_disable()
230 sc->sc_type = of_compatible_lookup(phandle, compat_data)->value; in rk_usb_attach()
306 switch (usb_sc->sc_type) { in rk_usbphy_otg_enable()
345 switch (usb_sc->sc_type) { in rk_usbphy_host_enable()
/netbsd-src/sys/dev/usb/
H A Duplcom.c155 enum pl2303_type sc_type; /* PL2303 chip type */ member
320 sc->sc_type = UPLCOM_TYPE_HX; in uplcom_attach()
322 if (sc->sc_type == UPLCOM_TYPE_HX) { in uplcom_attach()
331 sc->sc_type = UPLCOM_TYPE_HXN; in uplcom_attach()
336 if (sc->sc_type == UPLCOM_TYPE_HXN) { in uplcom_attach()
338 } else if (sc->sc_type == UPLCOM_TYPE_HX) { in uplcom_attach()
553 if (sc->sc_type == UPLCOM_TYPE_HXN) in uplcom_reset()
728 if (sc->sc_type == UPLCOM_TYPE_HXN) { in uplcom_set_crtscts()
736 if (sc->sc_type == UPLCOM_TYPE_HXN) in uplcom_set_crtscts()
738 else if (sc->sc_type == UPLCOM_TYPE_HX) in uplcom_set_crtscts()
[all …]
/netbsd-src/sys/arch/arm/sunxi/
H A Dsunxi_usbphy.c114 enum sunxi_usbphy_type sc_type;
148 switch (sc->sc_type) { in sunxi_usbphy_write()
227 switch (sc->sc_type) { in sunxi_usbphy_enable()
266 switch (sc->sc_type) { in sunxi_usbphy_enable()
280 switch (sc->sc_type) { in sunxi_usbphy_enable()
361 sc->sc_type = of_compatible_lookup(phandle, compat_data)->value; in sunxi_usbphy_attach()
112 enum sunxi_usbphy_type sc_type; global() member

123456