/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() 1167 return (cyls * spc()); in input() 1192 i = spc(); in input() 1219 i = spc(); in input() 1326 if ((bn64 % spc()) != 0) { in input() 1330 spc()); in input() 1381 return (cyls * spc()); in input() 1406 return (cyls * spc()); in input() 1436 i = 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 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() 354 spc->spc_state = state; in sctp_intf_event() 355 spc->spc_error = error; in sctp_intf_event() 356 spc->spc_assoc_id = 0; in sctp_intf_event() 358 mp->b_wptr = (uchar_t *)(spc + 1); 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 | 1457 scan_prefetch_ctx_t *spc; in scan_prefetch_ctx_create() local 1462 spc->spc_scn = scn; in scan_prefetch_ctx_create() 1466 spc->spc_root = B_FALSE; in scan_prefetch_ctx_create() 1468 spc->spc_datablkszsec = 0; in scan_prefetch_ctx_create() 1469 spc->spc_indblkshift = 0; in scan_prefetch_ctx_create() 1470 spc->spc_root = B_TRUE; in scan_prefetch_ctx_create() 1473 return (spc); in scan_prefetch_ctx_create() 1508 dsl_scan_t *scn = spc->spc_scn; in dsl_scan_prefetch() 1525 spic->spic_spc = spc; in dsl_scan_prefetch() 1554 scan_prefetch_ctx_t *spc; in dsl_scan_prefetch_dnode() local [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/cmd/fs.d/pcfs/mkfs/ |
H A D | mkfs.c | 1292 ulong_t spc; in compute_cluster_size() local 1322 for (spc = 1; spc <= 64; spc = spc * 2) { in compute_cluster_size() 1341 for (spc = 1; spc <= 64; spc = spc * 2) { in compute_cluster_size() 1360 spc = SecPerClust; in compute_cluster_size() 1361 nclust = volsize / spc; in compute_cluster_size() 1425 wbpb->bpb.sectors_per_cluster = spc; in compute_cluster_size() 2335 int spc; in getdiskinfo() local 2342 for (spc = 1; spc <= 64; in getdiskinfo() 2343 spc = spc * 2) { in getdiskinfo() 2345 spc * FAT12_MAX_CLUSTERS) in getdiskinfo() [all …]
|
/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/boot/libsa/ |
H A D | dosfs.c | 72 uchar_t spc; /* sectors per cluster */ member 510 if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1)) in parsebs() 512 fs->bsize = secbyt(fs->spc); in parsebs() 599 nsec = !clus ? entsec(fs->dirents) : fs->spc; in lookup()
|
H A D | dosfs.h | 101 u_int spc; /* sectors per cluster */ member
|
/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 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 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() 2682 if (strcmp(spc->db, nswdb_name) == 0 && in _nscd_cfg_set_linked() 2683 spc->group_off == desc->g_offset && in _nscd_cfg_set_linked() [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_subr.c | 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() 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() 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() 1633 spc, spc | (PCS_IOP_SS_RSTB|PCS_AAP1_SS_RSTB)); in pmcs_soft_reset() 1645 for (spc = 0, i = 0; i < 1000; i++) { in pmcs_soft_reset() 1655 "SFR didn't toggle (sfr 0x%x)", spc); in pmcs_soft_reset() 1676 if (spc == PMCS_MSGU_AAP_STATE_ERROR || 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;
|
/illumos-gate/usr/src/cmd/svc/shell/ |
H A D | mfsthistory | 350 svc:/network/cde-spc:default var/svc/manifest/network/cde-spc.xml 351 svc:/network/cde-spc var/svc/manifest/network/cde-spc.xml
|