Home
last modified time | relevance | path

Searched refs:bps (Results 1 – 25 of 68) sorted by relevance

123

/netbsd-src/sbin/newfs_msdos/
H A Dmkfs_msdos.c119 u_int8_t bps[2]; /* bytes per sector */ member
163 u_int bps; /* bytes per sector */ member
182 { .bps = a, .spc = b, .res = c, .nft = d, .rde = e, \
329 bpb.bps = o.bytes_per_sector; in mkfs_msdos()
339 bpb.bsec -= (o.offset / bpb.bps); in mkfs_msdos()
397 if (!powerof2(bpb.bps)) { in mkfs_msdos()
398 warnx("bytes/sector (%u) is not a power of 2", bpb.bps); in mkfs_msdos()
401 if (bpb.bps < MINBPS) { in mkfs_msdos()
403 bpb.bps, MINBPS); in mkfs_msdos()
414 if (o.block_size < bpb.bps) { in mkfs_msdos()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_ras.c858 struct ras_badpage **bps, unsigned int *count) __unused;
917 struct ras_badpage *bps = NULL; in amdgpu_ras_sysfs_badpages_read() local
922 if (amdgpu_ras_badpages_read(adev, &bps, &bps_count)) in amdgpu_ras_sysfs_badpages_read()
928 bps[start].bp, in amdgpu_ras_sysfs_badpages_read()
929 bps[start].size, in amdgpu_ras_sysfs_badpages_read()
930 amdgpu_ras_badpage_flags_str(bps[start].flags)); in amdgpu_ras_sysfs_badpages_read()
932 kfree(bps); in amdgpu_ras_sysfs_badpages_read()
1360 struct ras_badpage **bps, unsigned int *count) in amdgpu_ras_badpages_read() argument
1367 if (!con || !con->eh_data || !bps || !count) in amdgpu_ras_badpages_read()
1373 *bps = NULL; in amdgpu_ras_badpages_read()
[all …]
/netbsd-src/usr.sbin/sysinst/
H A Dsizemultname.c52 set_sizemult(daddr_t unit, uint bps) in set_sizemult() argument
54 if (unit == 0 || bps == 0) in set_sizemult()
57 sizemult = unit/bps; in set_sizemult()
73 set_default_sizemult(const char *disk, daddr_t unit, uint bps) in set_default_sizemult() argument
81 set_sizemult(unit, bps); in set_default_sizemult()
/netbsd-src/usr.sbin/altq/altqstat/
H A Dqdisc_wfq.c55 double bps; member
120 qinfo[i].bps = calc_rate(qinfo[i].stats.xmit_cnt.bytes, in wfq_stat_loop()
129 if (top[j]->bps < qinfo[i].bps || in wfq_stat_loop()
130 (top[j]->bps == qinfo[i].bps && in wfq_stat_loop()
156 rate2str(top[j]->bps)); in wfq_stat_loop()
/netbsd-src/sys/arch/mac68k/dev/
H A Dzs.c474 zs_cn_check_speed(int bps) in zs_cn_check_speed() argument
478 tc = BPS_TO_TCONST(PCLK / 16, bps); in zs_cn_check_speed()
482 if (ZS_TOLERANCE > abs(((rate - bps)*1000)/bps)) in zs_cn_check_speed()
501 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
507 if (bps == 0) in zs_set_speed()
525 tc1 = BPS_TO_TCONST(xcs->cs_clocks[i].clk >> 4, bps); in zs_set_speed()
528 err = abs(((rate1 - bps)*1000)/bps); in zs_set_speed()
544 int b0 = xcs->cs_clocks[i].clk, e0 = abs(b0-bps); in zs_set_speed()
545 int b1 = b0 >> 4, e1 = abs(b1-bps); in zs_set_speed()
546 int b2 = b1 >> 1, e2 = abs(b2-bps); in zs_set_speed()
[all …]
/netbsd-src/usr.sbin/spray/
H A Dspray.c202 double bps; /* bytes per second */ in print_xferstats() local
206 bps = datalen / xfertime; in print_xferstats()
210 if (bps >= 1024) in print_xferstats()
211 printf ("%.1fK ", bps / 1024); in print_xferstats()
213 printf ("%.0f ", bps); in print_xferstats()
/netbsd-src/sys/arch/macppc/dev/
H A Dzs.c565 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
571 if (bps == 0) in zs_set_speed()
589 tc1 = BPS_TO_TCONST(xcs->cs_clocks[i].clk >> 4, bps); in zs_set_speed()
592 err = abs(((rate1 - bps)*1000)/bps); in zs_set_speed()
608 int b0 = xcs->cs_clocks[i].clk, e0 = abs(b0-bps); in zs_set_speed()
609 int b1 = b0 >> 4, e1 = abs(b1-bps); in zs_set_speed()
610 int b2 = b1 >> 1, e2 = abs(b2-bps); in zs_set_speed()
611 int b3 = b2 >> 1, e3 = abs(b3-bps); in zs_set_speed()
631 err = (err * 1000)/bps; in zs_set_speed()
642 printf("Checking for rate %d. Found source #%d.\n", bps, src); in zs_set_speed()
[all …]
/netbsd-src/sys/dev/sun/
H A Dms_zs.c130 int bps; in ms_zs_attach() local
140 if ((bps = cs->cs_defspeed) == 0) in ms_zs_attach()
142 bps = ms_zs_bps; in ms_zs_attach()
144 aprint_normal(": baud rate %d\n", bps); in ms_zs_attach()
155 (void)zs_set_speed(cs, bps); in ms_zs_attach()
H A Dkbd_zs.c133 int bps; in kbd_zs_attach() local
148 if ((bps = cs->cs_defspeed) == 0) in kbd_zs_attach()
149 bps = kbd_zs_bps; in kbd_zs_attach()
151 aprint_normal(": baud rate %d", bps); in kbd_zs_attach()
179 (void) zs_set_speed(cs, bps); in kbd_zs_attach()
/netbsd-src/sys/arch/arm/s3c2xx0/
H A Ds3c2440_spi.c205 s3c24x0_spi_setup(struct ssspi_softc *sc, uint32_t mode, int bps, int use_ss) in s3c24x0_spi_setup() argument
213 if (bps > 1) { in s3c24x0_spi_setup()
214 prescaler = pclk / 2 / bps - 1; in s3c24x0_spi_setup()
317 s3c24x0_spi_bps(struct ssspi_softc *sc, int bps) in s3c24x0_spi_bps() argument
322 if (bps > 1) { in s3c24x0_spi_bps()
323 prescaler = pclk / 2 / bps - 1; in s3c24x0_spi_bps()
H A Ds3c2410_spi.c163 s3c24x0_spi_setup(struct ssspi_softc *sc, uint32_t mode, int bps, int use_ss) in s3c24x0_spi_setup() argument
171 if (bps > 1) { in s3c24x0_spi_setup()
172 prescaler = pclk / 2 / bps - 1; in s3c24x0_spi_setup()
/netbsd-src/sys/arch/newsmips/dev/
H A Dzs.c119 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
123 if (bps == 0) in zs_set_speed()
131 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
139 if (real_bps != bps) in zs_set_speed()
/netbsd-src/libexec/lfs_cleanerd/
H A Dcoalesce.c173 int bps; in clean_inode() local
352 bps = lfs_segtod(fs, 1); in clean_inode()
353 for (tbip = bip; tbip < bip + nb; tbip += bps) { in clean_inode()
370 lim.blkcnt = (tbip + bps < bip + nb ? bps : nb % bps); in clean_inode()
/netbsd-src/sys/arch/ews4800mips/dev/
H A Dzs.c112 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
116 if (bps == 0) in zs_set_speed()
124 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
132 if (real_bps != bps) in zs_set_speed()
/netbsd-src/sys/arch/mvme68k/dev/
H A Dzs.c302 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
306 if (bps == 0) in zs_set_speed()
314 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
322 if (((abs(real_bps - bps) * 1000) / bps) > 20) in zs_set_speed()
/netbsd-src/sys/arch/cobalt/dev/
H A Dzs.c311 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
315 if (bps == 0) in zs_set_speed()
323 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
331 if (abs(real_bps - bps) >= bps * 4 / 100) in zs_set_speed()
/netbsd-src/sys/dev/ic/
H A Dz8530reg.h338 #define BPS_TO_TCONST(f, bps) ((((f) + (bps)) / (2 * (bps))) - 2) argument
/netbsd-src/sys/arch/hpc/stand/hpcboot/sh3/dev/
H A Dsh_dev.cpp95 SHdev::scif_dump(int bps) in scif_dump() argument
113 DPRINTF((TEXT("SCBRR=%d(%dbps) estimated PCLOCK %dHz\n"), r, bps, in scif_dump()
114 32 * bps *(r + 1) * n)); in scif_dump()
/netbsd-src/sys/arch/x68k/dev/
H A Dzs.c353 zs_set_speed(struct zs_chanstate *cs, int bps /* bits per second */) in zs_set_speed() argument
357 if (bps == 0) in zs_set_speed()
365 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
374 if (real_bps != bps) in zs_set_speed()
/netbsd-src/sys/arch/sun2/dev/
H A Dzs.c407 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
411 if (bps == 0) in zs_set_speed()
419 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
427 if (real_bps != bps) in zs_set_speed()
/netbsd-src/sys/arch/news68k/dev/
H A Dzs.c342 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
346 if (bps == 0) in zs_set_speed()
354 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
362 if (real_bps != bps) in zs_set_speed()
/netbsd-src/sys/arch/next68k/dev/
H A Dzs.c354 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
358 if (bps == 0) in zs_set_speed()
366 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
374 if (real_bps != bps) in zs_set_speed()
/netbsd-src/sys/arch/landisk/stand/boot/
H A Dscifcons.c139 scif_init(unsigned int bps) in scif_init() argument
155 scif_brr_write(divrnd(PCLOCK, 32 * bps) - 1); in scif_init()
/netbsd-src/sys/arch/sun3/dev/
H A Dzs.c413 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
417 if (bps == 0) in zs_set_speed()
425 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
433 if (real_bps != bps) in zs_set_speed()
/netbsd-src/sys/arch/mipsco/obio/
H A Dzs.c395 zs_set_speed(struct zs_chanstate *cs, int bps) in zs_set_speed() argument
407 if (bps == 0) { in zs_set_speed()
416 tconst = BPS_TO_TCONST(cs->cs_brg_clk, bps); in zs_set_speed()
425 if (real_bps != bps) in zs_set_speed()

123