/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 | 184 map[C_PARTITION].dkl_nblk = ncyl * spc(); 190 map[I_PARTITION].dkl_nblk = spc(); 193 map[J_PARTITION].dkl_nblk = 2 * spc(); 194 map[J_PARTITION].dkl_cylno = spc() / spc(); 368 cyloffset += (map[i].dkl_nblk + (spc()-1))/spc(); 381 cyloffset += (map[i].dkl_nblk + (spc()-1))/spc(); 420 (blkaddr32_t)(ncyl - map[i].dkl_cylno) * spc()) { [all...] |
H A D | menu_partition.c | 258 (spc() - 1)) / spc()); 292 pptr->pinfo_map[i].dkl_cylno) * spc())) { 573 cyl2 = cyl1 + (nblks / spc()) - 1; 600 cyl2 = cyl1 + (nblks / spc()) - 1; 648 nspaces(ndigits(maxnblks/spc()) - ndigits(nblks/spc()));
|
H A D | io.c | 1172 if ((bn64 % spc()) != 0) { 1176 spc()); 1195 if (cyls > (bounds->upper/spc())) { 1202 return (cyls * spc()); 1226 i = spc(); 1252 i = spc(); 1279 (uint_t)(bounds->upper / spc())); 1359 if ((bn64 % spc()) != 0) { 1363 spc()); 1414 return (cyls * spc()); [all...] |
H A D | checkdev.c | 241 if ((start >= (int)(map->dkl_cylno * spc() + 243 * spc()))) { 615 if ((start >= (int)(map->dkl_cylno * spc() + map->dkl_nblk)) || 616 (end < (int)(map->dkl_cylno * spc()))) {
|
H A D | partition.c | 241 (spc()-1)) / spc()); 255 ioparam.io_bounds.upper = (ncyl - i) * spc();
|
H A D | menu_fdisk.c | 449 cur_parts->pinfo_map[C_PARTITION].dkl_nblk = ncyl * spc(); 455 cur_parts->pinfo_map[I_PARTITION].dkl_nblk = spc();
|
H A D | menu_command.c | 2009 label.dkl_vtoc.v_part[i].p_start / spc(); 2304 label->dkl_vtoc.v_part[i].p_start / spc();
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_notify.c | 324 struct sctp_paddr_change *spc; local 334 if ((mp = allocb(sizeof (*spc), BPRI_MED)) == NULL) { 338 spc = (struct sctp_paddr_change *)mp->b_rptr; 339 spc->spc_type = SCTP_PEER_ADDR_CHANGE; 340 spc->spc_flags = 0; 341 spc->spc_length = sizeof (*spc); 344 sin = (struct sockaddr_in *)&spc->spc_aaddr; 349 sin6 = (struct sockaddr_in6 *)&spc->spc_aaddr; 354 spc [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | dosfs.h | 100 u_int spc; /* sectors per cluster */ member in struct:__anon63
|
H A D | dosfs.c | 72 u_char spc; /* sectors per cluster */ member in struct:__anon56 522 if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1)) 524 fs->bsize = secbyt(fs->spc); 611 nsec = !clus ? entsec(fs->dirents) : fs->spc;
|
/illumos-gate/usr/src/lib/libsecdb/common/ |
H A D | secdb.c | 355 char **spc = NULL; local 365 if ((spc = (char **)malloc((ncommas + 2) * sizeof (char *))) == NULL) { 371 spc[i] = strdup(pc); 373 spc[i] = NULL; 375 return (spc);
|
/illumos-gate/usr/src/common/fs/ |
H A D | pcfs.c | 282 int rd, spc; local 293 spc = pcfsp->f_bpb.bs_spc; 298 spc = pcfsp->f_bpb.bs_spc; 320 for (i = ((off / SECSIZ) % pcfsp->f_bpb.bs_spc); i < spc; i++) { 511 int spc = pcfsp->f_bpb.bs_spc; local 523 for (j = 0; j < DIRENTS * spc; j++, dxp++) {
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | wclib.c | 54 #define spc(c) ((c)&WC_SP) macro 372 if(!lasttype && spc(type[*cp])) 397 } while (spc(c = type[*cp++])); 465 if(spc(c))
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_config.c | 1242 nscd_cfg_nsw_spc_default_t *spc; local 1332 spc = _nscd_cfg_nsw_link_default[i].data; 1354 if (strcmp(spc->db, 1365 spc->group_off + spc->param_off; 1366 datalen = spc->data_len; 2592 nscd_cfg_nsw_spc_default_t *spc; local 2660 spc = _nscd_cfg_nsw_link_default[i].data; 2662 if (strcmp(spc->db, nswdb_name) == 0 && 2663 spc [all...] |
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/ |
H A D | mkfs.c | 202 "\t spc=n,fat=n,nsect=n,ntrack=n,nofdisk,size=n,\n" 1290 ulong_t spc; local 1320 for (spc = 1; spc <= 64; spc = spc * 2) { 1321 if (volsize < spc * FAT16_MAX_CLUSTERS) 1324 if (volsize > (spc * FAT16_MAX_CLUSTERS)) { 1339 for (spc = 1; spc < [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | telnet.c | 1183 static struct spc { struct 1198 register struct spc *spcp; 1316 register struct spc *spcp; 1342 register struct spc *spcp; 1410 register struct spc *spcp; 1479 register struct spc *spcp;
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_subr.c | 1438 uint32_t s2, sfrbits, gsm, rapchk, wapchk, wdpchk, spc, tsmode; local 1565 spc = pmcs_rd_topunit(pwp, PMCS_SPC_RESET); 1567 spc, spc & ~(PCS_IOP_SS_RSTB|PCS_AAP1_SS_RSTB)); 1569 spc & ~(PCS_IOP_SS_RSTB|PCS_AAP1_SS_RSTB)); 1575 spc = pmcs_rd_topunit(pwp, PMCS_SPC_RESET); 1577 spc, spc & ~(BDMA_CORE_RSTB|OSSP_RSTB)); 1578 pmcs_wr_topunit(pwp, PMCS_SPC_RESET, spc & ~(BDMA_CORE_RSTB|OSSP_RSTB)); 1588 spc [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | fd.c | 1731 int cyl, head, spc, spt; local 1775 spc = (fc.fdc_cmd == FDCMD_READ)? B_READ: B_WRITE; 1789 spc, minphys, uio); 1793 spc = fjp->fj_chars->fdc_nhead * spt; /* sec/cyl */ 1794 cyl = fc.fdc_blkno / spc; 1795 head = (fc.fdc_blkno % spc) / spt;
|
H A D | cmlb.c | 954 daddr_t spc, blk, head, cyl; local 994 spc = cl->cl_g.dkg_nhead * cl->cl_g.dkg_nsect; 997 (cyl * (spc - cl->cl_g.dkg_apc)) + 1970 int spc; local 2015 spc = pgeomp->g_nhead * pgeomp->g_nsect; 2017 if (spc == 0) 2020 pgeomp->g_ncyl = pgeomp->g_capacity / spc;
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_tx.c | 836 uint64_t spc = MIN(3, num_indirects) << dn->dn_indblkshift; local 839 spc, FTAG); 842 spc, FTAG);
|
/illumos-gate/usr/src/uts/sun/io/ |
H A D | fd.c | 2417 int cyl, hd, spc, spt; local 2458 spc = (fc.fdc_cmd == FDCMD_READ)? B_READ: B_WRITE; 2472 spc, minphys, uio); 2489 spc = un->un_chars->fdc_nhead * spt; /* sec/cyl */ 2490 cyl = fc.fdc_blkno / spc; 2491 hd = (fc.fdc_blkno % spc) / spt; 2497 nblks = spc * un->un_chars->fdc_ncyl;
|
/illumos-gate/usr/src/cmd/fdisk/ |
H A D | fdisk.c | 5231 uint32_t remdr, spc, poss_end; local 5323 spc = FDISK_SECTS_PER_CYL(epp); 5325 if ((remdr = (poss_end % spc)) != 0) { 5326 poss_end += spc - remdr - 1;
|
/illumos-gate/usr/src/uts/common/io/lvm/mirror/ |
H A D | mirror_ioctl.c | 1328 int spc; /* sectors per head */ local 1376 spc = un->c.un_nhead * un->c.un_nsect; 1377 current_tb = (total_blocks/spc) * spc;
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_slice.c | 53 #define spc() (last_token_type) macro
|