Searched refs:spc (Results 1 - 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/cmd/format/
H A Dglobal.h147 #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 Dmodify_partition.c184 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 Dmenu_partition.c258 (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 Dio.c1172 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 Dcheckdev.c241 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 Dpartition.c241 (spc()-1)) / spc());
255 ioparam.io_bounds.upper = (ncyl - i) * spc();
H A Dmenu_fdisk.c449 cur_parts->pinfo_map[C_PARTITION].dkl_nblk = ncyl * spc();
455 cur_parts->pinfo_map[I_PARTITION].dkl_nblk = spc();
H A Dmenu_command.c2009 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 Dsctp_notify.c324 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 Ddosfs.h100 u_int spc; /* sectors per cluster */ member in struct:__anon63
H A Ddosfs.c72 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 Dsecdb.c355 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 Dpcfs.c282 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 Dwclib.c54 #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 Dnscd_config.c1242 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 Dmkfs.c202 "\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 Dtelnet.c1183 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 Dpmcs_subr.c1438 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 Dfd.c1731 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 Dcmlb.c954 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 Ddmu_tx.c836 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 Dfd.c2417 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 Dfdisk.c5231 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 Dmirror_ioctl.c1328 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 Drmf_slice.c53 #define spc() (last_token_type) macro

Completed in 162 milliseconds

12