/titanic_51/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(); in p_modify() 190 map[I_PARTITION].dkl_nblk = spc(); in p_modify() 193 map[J_PARTITION].dkl_nblk = 2 * spc(); in p_modify() 194 map[J_PARTITION].dkl_cylno = spc() / spc(); in p_modify() 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()); in p_select() 292 pptr->pinfo_map[i].dkl_cylno) * spc())) { in p_select() 573 cyl2 = cyl1 + (nblks / spc()) - 1; in print_partition() 600 cyl2 = cyl1 + (nblks / spc()) - 1; in print_partition() 648 nspaces(ndigits(maxnblks/spc()) - ndigits(nblks/spc())); in print_partition()
|
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()); in change_partition() 255 ioparam.io_bounds.upper = (ncyl - i) * spc(); in change_partition()
|
H A D | menu_fdisk.c | 449 cur_parts->pinfo_map[C_PARTITION].dkl_nblk = ncyl * spc(); in update_cur_parts() 455 cur_parts->pinfo_map[I_PARTITION].dkl_nblk = spc(); in update_cur_parts()
|
H A D | menu_command.c | 2009 label.dkl_vtoc.v_part[i].p_start / spc(); in c_backup() 2304 label->dkl_vtoc.v_part[i].p_start / spc(); in c_verify()
|
/titanic_51/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 in sctp_intf_event() [all...] |
/titanic_51/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()
|
/titanic_51/usr/src/common/fs/ |
H A D | pcfs.c | 282 int rd, spc; in bpcfs_read() local 293 spc = pcfsp->f_bpb.bs_spc; in bpcfs_read() 298 spc = pcfsp->f_bpb.bs_spc; in bpcfs_read() 320 for (i = ((off / SECSIZ) % pcfsp->f_bpb.bs_spc); i < spc; i++) { in bpcfs_read() 511 int spc = pcfsp->f_bpb.bs_spc; in lookup() local 523 for (j = 0; j < DIRENTS * spc; j++, dxp++) { in lookup()
|
/titanic_51/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()
|
/titanic_51/usr/src/lib/libcmd/common/ |
H A D | wclib.c | 54 #define spc(c) ((c)&WC_SP) macro 372 if(!lasttype && spc(type[*cp])) in wc_count() 397 } while (spc(c = type[*cp++])); in wc_count() 465 if(spc(c)) in wc_count()
|
/titanic_51/usr/src/boot/lib/libstand/ |
H A D | dosfs.c | 72 u_char spc; /* sectors per cluster */ member 509 if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1)) in parsebs() 511 fs->bsize = secbyt(fs->spc); in parsebs() 598 nsec = !clus ? entsec(fs->dirents) : fs->spc; in lookup()
|
H A D | dosfs.h | 101 u_int spc; /* sectors per cluster */ member
|
/titanic_51/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() 2592 nscd_cfg_nsw_spc_default_t *spc; in _nscd_cfg_set_linked() local 2660 spc = _nscd_cfg_nsw_link_default[i].data; in _nscd_cfg_set_linked() 2662 if (strcmp(spc->db, nswdb_name) == 0 && in _nscd_cfg_set_linked() 2663 spc in _nscd_cfg_set_linked() [all...] |
/titanic_51/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" in usage() 1290 ulong_t spc; in compute_cluster_size() local 1320 for (spc = 1; spc <= 64; spc = spc * 2) { in compute_cluster_size() 1321 if (volsize < spc * FAT16_MAX_CLUSTERS) in compute_cluster_size() 1324 if (volsize > (spc * FAT16_MAX_CLUSTERS)) { in compute_cluster_size() 1339 for (spc = 1; spc < in compute_cluster_size() [all...] |
/titanic_51/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; in pmcs_soft_reset() local 1565 spc = pmcs_rd_topunit(pwp, PMCS_SPC_RESET); in pmcs_soft_reset() 1567 spc, spc & ~(PCS_IOP_SS_RSTB|PCS_AAP1_SS_RSTB)); in pmcs_soft_reset() 1569 spc & ~(PCS_IOP_SS_RSTB|PCS_AAP1_SS_RSTB)); in pmcs_soft_reset() 1575 spc = pmcs_rd_topunit(pwp, PMCS_SPC_RESET); in pmcs_soft_reset() 1577 spc, spc & ~(BDMA_CORE_RSTB|OSSP_RSTB)); in pmcs_soft_reset() 1578 pmcs_wr_topunit(pwp, PMCS_SPC_RESET, spc & ~(BDMA_CORE_RSTB|OSSP_RSTB)); in pmcs_soft_reset() 1588 spc in pmcs_soft_reset() [all...] |
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | telnet.c | 1183 static struct spc { struct 1198 register struct spc *spcp; in slc_init() argument 1316 register struct spc *spcp; in slc_export() 1342 register struct spc *spcp; 1410 register struct spc *spcp; in slc_check() 1479 register struct spc *spcp; in slc_update()
|
/titanic_51/usr/src/uts/common/io/ |
H A D | fd.c | 1731 int cyl, head, spc, spt; in fd_ioctl() local 1775 spc = (fc.fdc_cmd == FDCMD_READ)? B_READ: B_WRITE; in fd_ioctl() 1789 spc, minphys, uio); in fd_ioctl() 1793 spc = fjp->fj_chars->fdc_nhead * spt; /* sec/cyl */ in fd_ioctl() 1794 cyl = fc.fdc_blkno / spc; in fd_ioctl() 1795 head = (fc.fdc_blkno % spc) / spt; in fd_ioctl()
|
H A D | cmlb.c | 955 daddr_t spc, blk, head, cyl; in cmlb_get_devid_block() local 995 spc = cl->cl_g.dkg_nhead * cl->cl_g.dkg_nsect; in cmlb_get_devid_block() 998 (cyl * (spc - cl->cl_g.dkg_apc)) + in cmlb_get_devid_block() 1971 int spc; local 2016 spc = pgeomp->g_nhead * pgeomp->g_nsect; 2018 if (spc == 0) 2021 pgeomp->g_ncyl = pgeomp->g_capacity / spc;
|
/titanic_51/usr/src/uts/sun/io/ |
H A D | fd.c | 2417 int cyl, hd, spc, spt; in fd_ioctl() local 2458 spc = (fc.fdc_cmd == FDCMD_READ)? B_READ: B_WRITE; in fd_ioctl() 2472 spc, minphys, uio); in fd_ioctl() 2489 spc = un->un_chars->fdc_nhead * spt; /* sec/cyl */ in fd_ioctl() 2490 cyl = fc.fdc_blkno / spc; in fd_ioctl() 2491 hd = (fc.fdc_blkno % spc) / spt; in fd_ioctl() 2497 nblks = spc * un->un_chars->fdc_ncyl; in fd_ioctl()
|
/titanic_51/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;
|
/titanic_51/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
|
/titanic_51/usr/src/cmd/rmformat/ |
H A D | rmf_slice.c | 53 #define spc() (last_token_type) macro
|