| /illumos-gate/usr/src/cmd/format/ |
| H A D | global.h | 147 #define spc() (nhead * nsect - apc) macro 148 #define chs2bn(c, h, s) (((diskaddr_t)(c) * spc() + (h) * nsect + (s))) 149 #define bn2c(bn) (uint_t)((diskaddr_t)(bn) / spc()) 150 #define bn2h(bn) (uint_t)(((diskaddr_t)(bn) % spc()) / nsect) 151 #define bn2s(bn) (uint_t)(((diskaddr_t)(bn) % spc()) % nsect) 152 #define datasects() (ncyl * spc()) 153 #define totalsects() ((ncyl + acyl) * spc()) 154 #define physsects() (pcyl * spc())
|
| H A D | modify_partition.c | 171 map[C_PARTITION].dkl_nblk = ncyl * spc(); in p_modify() 178 map[I_PARTITION].dkl_nblk = spc(); in p_modify() 181 map[J_PARTITION].dkl_nblk = 2 * spc(); in p_modify() 182 map[J_PARTITION].dkl_cylno = spc() / spc(); in p_modify() 352 cyloffset += (map[i].dkl_nblk + (spc()-1))/spc(); 365 cyloffset += (map[i].dkl_nblk + (spc()-1))/spc(); 403 (blkaddr32_t)(ncyl - map[i].dkl_cylno) * spc()) { 422 cyloffset += (map[i].dkl_nblk + (spc()-1))/spc();
|
| H A D | menu_partition.c | 247 (spc() - 1)) / spc()); in p_select() 280 pptr->pinfo_map[i].dkl_cylno) * spc())) { in p_select() 561 cyl2 = cyl1 + (nblks / spc()) - 1; in print_partition() 588 cyl2 = cyl1 + (nblks / spc()) - 1; in print_partition() 634 nspaces(ndigits(maxnblks/spc()) - ndigits(nblks/spc())); in print_partition()
|
| H A D | io.c | 1136 if ((bn64 % spc()) != 0) { in input() 1140 spc()); in input() 1159 if (cyls > (bounds->upper / spc())) { in input() 1161 cyls, bounds->upper / spc()); in input() 1167 return (cyls * spc()); in input() 1192 i = spc(); in input() 1219 i = spc(); in input() 1246 (uint_t)(bounds->upper / spc())); in input() 1326 if ((bn64 % spc()) != 0) { in input() 1330 spc()); in input() [all …]
|
| H A D | checkdev.c | 224 if ((start >= (int)(map->dkl_cylno * spc() + in checkswap() 226 (end < (int)(map->dkl_cylno * spc()))) { in checkswap() 597 if ((start >= (int)(map->dkl_cylno * spc() + map->dkl_nblk)) || in checkmount() 598 (end < (int)(map->dkl_cylno * spc()))) { in checkmount()
|
| H A D | partition.c | 244 (spc() - 1)) / spc()); in change_partition() 257 ioparam.io_bounds.upper = (ncyl - i) * spc(); in change_partition()
|
| H A D | menu_fdisk.c | 451 cur_parts->pinfo_map[C_PARTITION].dkl_nblk = ncyl * spc(); in update_cur_parts() 457 cur_parts->pinfo_map[I_PARTITION].dkl_nblk = spc(); in update_cur_parts()
|
| H A D | menu_command.c | 2017 label.dkl_vtoc.v_part[i].p_start / spc(); in c_backup() 2315 label->dkl_vtoc.v_part[i].p_start / spc(); in c_verify()
|
| /illumos-gate/usr/src/lib/libcmdutils/common/ |
| H A D | nicenum.c | 48 const char *spc = ""; in nicenum_scale() local 52 spc = " "; in nicenum_scale() 93 rc = snprintf(buf, buflen, "%llu%s", n, spc); in nicenum_scale() 99 rc = snprintf(buf, buflen, "%llu%s%c", n / divisor, spc, u); in nicenum_scale() 114 (double)n / divisor, spc, u)) <= (buflen - 1)) in nicenum_scale()
|
| /illumos-gate/usr/src/uts/common/inet/sctp/ |
| H A D | sctp_notify.c | 324 struct sctp_paddr_change *spc; in sctp_intf_event() local 334 if ((mp = allocb(sizeof (*spc), BPRI_MED)) == NULL) { in sctp_intf_event() 338 spc = (struct sctp_paddr_change *)mp->b_rptr; in sctp_intf_event() 339 spc->spc_type = SCTP_PEER_ADDR_CHANGE; in sctp_intf_event() 340 spc->spc_flags = 0; in sctp_intf_event() 341 spc->spc_length = sizeof (*spc); in sctp_intf_event() 344 sin = (struct sockaddr_in *)&spc->spc_aaddr; in sctp_intf_event() 349 sin6 = (struct sockaddr_in6 *)&spc->spc_aaddr; in sctp_intf_event() 354 spc->spc_state = state; in sctp_intf_event() 355 spc->spc_error = error; in sctp_intf_event() [all …]
|
| /illumos-gate/usr/src/lib/libsecdb/common/ |
| H A D | secdb.c | 355 char **spc = NULL; in _csl_to_argv() local 365 if ((spc = (char **)malloc((ncommas + 2) * sizeof (char *))) == NULL) { in _csl_to_argv() 371 spc[i] = strdup(pc); in _csl_to_argv() 373 spc[i] = NULL; in _csl_to_argv() 375 return (spc); in _csl_to_argv()
|
| /illumos-gate/usr/src/uts/common/fs/zfs/ |
| H A D | dsl_scan.c | 1448 scan_prefetch_ctx_rele(scan_prefetch_ctx_t *spc, void *tag) in scan_prefetch_ctx_rele() argument 1450 if (zfs_refcount_remove(&spc->spc_refcnt, tag) == 0) { in scan_prefetch_ctx_rele() 1451 zfs_refcount_destroy(&spc->spc_refcnt); in scan_prefetch_ctx_rele() 1452 kmem_free(spc, sizeof (scan_prefetch_ctx_t)); in scan_prefetch_ctx_rele() 1459 scan_prefetch_ctx_t *spc; in scan_prefetch_ctx_create() local 1461 spc = kmem_alloc(sizeof (scan_prefetch_ctx_t), KM_SLEEP); in scan_prefetch_ctx_create() 1462 zfs_refcount_create(&spc->spc_refcnt); in scan_prefetch_ctx_create() 1463 zfs_refcount_add(&spc->spc_refcnt, tag); in scan_prefetch_ctx_create() 1464 spc->spc_scn = scn; in scan_prefetch_ctx_create() 1466 spc->spc_datablkszsec = dnp->dn_datablkszsec; in scan_prefetch_ctx_create() [all …]
|
| /illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/ |
| H A D | mkfs_main.c | 1190 ulong_t spc; in compute_cluster_size() local 1220 for (spc = 1; spc <= 64; spc = spc * 2) { in compute_cluster_size() 1221 if (volsize < spc * FAT16_MAX_CLUSTERS) in compute_cluster_size() 1224 if (volsize > (spc * FAT16_MAX_CLUSTERS)) { in compute_cluster_size() 1239 for (spc = 1; spc <= 64; spc = spc * 2) { in compute_cluster_size() 1240 if (volsize < (spc * FAT32_SUGGESTED_NCLUST)) in compute_cluster_size() 1243 if (volsize > (spc * FAT32_MAX_CLUSTERS)) { in compute_cluster_size() 1258 spc = SecPerClust; in compute_cluster_size() 1259 nclust = volsize / spc; in compute_cluster_size() 1297 (volsize - rds) >= DOS_F12MAXC * spc) { in compute_cluster_size() [all …]
|
| /illumos-gate/usr/src/common/fs/ |
| H A D | pcfs.c | 280 int rd, spc; in bpcfs_read() local 291 spc = pcfsp->f_bpb.bs_spc; in bpcfs_read() 296 spc = pcfsp->f_bpb.bs_spc; in bpcfs_read() 318 for (i = ((off / SECSIZ) % pcfsp->f_bpb.bs_spc); i < spc; i++) { in bpcfs_read() 509 int spc = pcfsp->f_bpb.bs_spc; in lookup() local 521 for (j = 0; j < DIRENTS * spc; j++, dxp++) { in lookup()
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
| H A D | wclib.c | 57 #define spc(c) ((c)&WC_SP) macro 378 if(!lasttype && spc(type[*cp])) in wc_count() 403 } while (spc(c = type[*cp++])); in wc_count() 483 if(spc(c)) in wc_count()
|
| /illumos-gate/usr/src/cmd/nscd/ |
| H A D | nscd_config.c | 1242 nscd_cfg_nsw_spc_default_t *spc; in _nscd_cfg_init() local 1332 spc = _nscd_cfg_nsw_link_default[i].data; in _nscd_cfg_init() 1354 if (strcmp(spc->db, in _nscd_cfg_init() 1365 spc->group_off + spc->param_off; in _nscd_cfg_init() 1366 datalen = spc->data_len; in _nscd_cfg_init() 2591 nscd_cfg_nsw_spc_default_t *spc; in _nscd_cfg_set_linked() local 2659 spc = _nscd_cfg_nsw_link_default[i].data; in _nscd_cfg_set_linked() 2661 if (strcmp(spc->db, nswdb_name) == 0 && in _nscd_cfg_set_linked() 2662 spc->group_off == desc->g_offset && in _nscd_cfg_set_linked() 2663 spc->param_off == desc->p_offset) { in _nscd_cfg_set_linked() [all …]
|
| /illumos-gate/usr/src/boot/libsa/ |
| H A D | dosfs.c | 70 uchar_t spc; /* sectors per cluster */ member 579 if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1)) in parsebs() 581 fs->bsize = secbyt(fs, fs->spc); in parsebs() 677 nsec = !clus ? entsec(fs, fs->dirents) : fs->spc; in lookup()
|
| H A D | dosfs.h | 103 uint_t spc; /* sectors per cluster */ member
|
| /illumos-gate/usr/src/cmd/mdb/common/modules/disk_label/ |
| H A D | disk_label.c | 211 uint32_t reserved, rdirsec, spc; in show_bpb() local 247 spc = bpb_get_SecPerClus(bpb); in show_bpb() 248 if (VALID_SPCL(spc)) { in show_bpb() 253 mdb_printf(" : %u", spc); in show_bpb() 435 ncl = datasec / spc; in show_bpb()
|
| /illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
| H A D | pmcs_subr.c | 1440 uint32_t s2, sfrbits, gsm, rapchk, wapchk, wdpchk, spc, tsmode; in pmcs_soft_reset() local 1567 spc = pmcs_rd_topunit(pwp, PMCS_SPC_RESET); in pmcs_soft_reset() 1569 spc, spc & ~(PCS_IOP_SS_RSTB|PCS_AAP1_SS_RSTB)); in pmcs_soft_reset() 1571 spc & ~(PCS_IOP_SS_RSTB|PCS_AAP1_SS_RSTB)); in pmcs_soft_reset() 1577 spc = pmcs_rd_topunit(pwp, PMCS_SPC_RESET); in pmcs_soft_reset() 1579 spc, spc & ~(BDMA_CORE_RSTB|OSSP_RSTB)); in pmcs_soft_reset() 1580 pmcs_wr_topunit(pwp, PMCS_SPC_RESET, spc & ~(BDMA_CORE_RSTB|OSSP_RSTB)); in pmcs_soft_reset() 1590 spc = pmcs_rd_topunit(pwp, PMCS_SPC_RESET); in pmcs_soft_reset() 1592 spc, spc | (BDMA_CORE_RSTB|OSSP_RSTB)); in pmcs_soft_reset() 1593 pmcs_wr_topunit(pwp, PMCS_SPC_RESET, spc | (BDMA_CORE_RSTB|OSSP_RSTB)); in pmcs_soft_reset() [all …]
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
| H A D | telnet.c | 1181 static struct spc { struct 1196 register struct spc *spcp; in slc_init() argument 1314 register struct spc *spcp; in slc_export() 1340 register struct spc *spcp; 1408 register struct spc *spcp; in slc_check() 1477 register struct spc *spcp; in slc_update()
|
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | fd.c | 1737 int cyl, head, spc, spt; in fd_ioctl() local 1781 spc = (fc.fdc_cmd == FDCMD_READ)? B_READ: B_WRITE; in fd_ioctl() 1795 spc, minphys, uio); in fd_ioctl() 1799 spc = fjp->fj_chars->fdc_nhead * spt; /* sec/cyl */ in fd_ioctl() 1800 cyl = fc.fdc_blkno / spc; in fd_ioctl() 1801 head = (fc.fdc_blkno % spc) / spt; in fd_ioctl()
|
| H A D | cmlb.c | 956 daddr_t spc, blk, head, cyl; in cmlb_get_devid_block() local 996 spc = cl->cl_g.dkg_nhead * cl->cl_g.dkg_nsect; in cmlb_get_devid_block() 999 (cyl * (spc - cl->cl_g.dkg_apc)) + in cmlb_get_devid_block() 1972 int spc; local 2017 spc = pgeomp->g_nhead * pgeomp->g_nsect; 2019 if (spc == 0) 2022 pgeomp->g_ncyl = pgeomp->g_capacity / spc;
|
| /illumos-gate/usr/src/uts/sun/io/ |
| H A D | fd.c | 2420 int cyl, hd, spc, spt; in fd_ioctl() local 2461 spc = (fc.fdc_cmd == FDCMD_READ)? B_READ: B_WRITE; in fd_ioctl() 2475 spc, minphys, uio); in fd_ioctl() 2492 spc = un->un_chars->fdc_nhead * spt; /* sec/cyl */ in fd_ioctl() 2493 cyl = fc.fdc_blkno / spc; in fd_ioctl() 2494 hd = (fc.fdc_blkno % spc) / spt; in fd_ioctl() 2500 nblks = spc * un->un_chars->fdc_ncyl; in fd_ioctl()
|
| /illumos-gate/usr/src/cmd/fdisk/ |
| H A D | fdisk.c | 5241 uint32_t remdr, spc, poss_end; local 5333 spc = FDISK_SECTS_PER_CYL(epp); 5335 if ((remdr = (poss_end % spc)) != 0) { 5336 poss_end += spc - remdr - 1;
|