/titanic_44/usr/src/uts/sparc/os/ |
H A D | bootops.c | 299 size_t chunksz; in bop_alloc_chunk() local 330 chunksz = P2ALIGN((size >> 1), PAGESIZE); in bop_alloc_chunk() 331 chunksz = MAX(chunksz, PAGESIZE); in bop_alloc_chunk() 337 if ((res = prom_alloc(virthint, chunksz, in bop_alloc_chunk() 343 chunksz >>= 1; in bop_alloc_chunk() 344 chunksz = P2ALIGN(chunksz, PAGESIZE); in bop_alloc_chunk() 345 } while (chunksz >= PAGESIZE); in bop_alloc_chunk() 347 if (chunksz < PAGESIZE) in bop_alloc_chunk() 351 virthint += chunksz; in bop_alloc_chunk() 352 size -= chunksz; in bop_alloc_chunk() [all …]
|
/titanic_44/usr/src/cmd/isns/isnsd/ |
H A D | htable.c | 705 uint32_t chunksz; in htab_add() local 748 chunksz = (1 << tab->logsize); in htab_add() 749 if (tab->count >= (chunksz * HASH_RATIO) && in htab_add() 752 chunksz = (1 << tab->logsize); in htab_add() 783 itemp = &tab->items[(i * chunksz) + (hval & tab->mask)]; in htab_add() 847 uint32_t chunksz; in htab_remove() local 867 chunksz = (1 << tab->logsize); in htab_remove() 869 itemp = &tab->items[(i * chunksz) + (hval & tab->mask)]; in htab_remove() 973 uint32_t chunksz; in htab_lookup() local 993 chunksz = (1 << tab->logsize); in htab_lookup() [all …]
|
/titanic_44/usr/src/lib/libcustr/common/ |
H A D | custr.c | 79 size_t chunksz = STRING_CHUNK_SIZE; in custr_append_vprintf() local 85 while (chunksz < len) { in custr_append_vprintf() 86 chunksz *= 2; in custr_append_vprintf() 91 size_t new_datalen = cus->cus_datalen + chunksz; in custr_append_vprintf()
|
/titanic_44/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_enclosure_ctl.c | 49 uint64_t chunksz = SES_UCODE_DEF_CHUNK; in enc_do_ucode() local 80 (void) nvlist_lookup_uint64(nvl, SES_CTL_PROP_UCODE_DATA_LEN, &chunksz); in enc_do_ucode() 82 if (chunksz & 3) in enc_do_ucode() 84 "upload chunk size %llu is not divisible by 4", chunksz)); in enc_do_ucode() 86 for (offset = 0; offset < datalen; offset += chunksz) { in enc_do_ucode() 88 len = MIN(datalen - offset, chunksz); in enc_do_ucode()
|
/titanic_44/usr/src/uts/common/io/ |
H A D | fssnap_if.c | 62 fssnap_create(chunknumber_t nchunks, uint_t chunksz, u_offset_t maxsize, in fssnap_create() argument 69 snapid = (snapops.fssnap_create)(nchunks, chunksz, maxsize, in fssnap_create()
|
H A D | fssnap.c | 666 size_t chunksz; in snap_strategy() local 707 chunksz = sidp->sid_cowinfo->cow_map.cmap_chunksz; in snap_strategy() 716 off = (reqptr % (chunksz >> DEV_BSHIFT)) << DEV_BSHIFT; in snap_strategy() 717 len = min(chunksz - off, bp->b_resid); in snap_strategy() 718 ASSERT((off + len) <= chunksz); in snap_strategy() 1747 fssnap_create_impl(chunknumber_t nchunks, uint_t chunksz, u_offset_t maxsize, in fssnap_create_impl() argument 1763 ((chunksz % DEV_BSIZE) != 0) || in fssnap_create_impl() 1860 cmap->cmap_chunksz = chunksz; in fssnap_create_impl() 1862 cmap->cmap_chunksperbf = max_backfile_size / chunksz; in fssnap_create_impl()
|
/titanic_44/usr/src/lib/libipmi/common/ |
H A D | ipmi_sdr.c | 461 uint8_t offset = IPMI_SDR_HDR_SZ, count = 0, chunksz = 16, sdr_sz; in ipmi_sdr_get() local 514 if (chunksz > (sdr_sz - count)) in ipmi_sdr_get() 515 chunksz = sdr_sz - count; in ipmi_sdr_get() 516 req.ic_gs_len = chunksz; in ipmi_sdr_get() 520 count += chunksz; in ipmi_sdr_get() 523 (void) memcpy(buf+offset, (void *)sdr, chunksz); in ipmi_sdr_get() 524 offset += chunksz; in ipmi_sdr_get()
|
/titanic_44/usr/src/uts/common/io/audio/drv/audiop16x/ |
H A D | audiop16x.c | 495 uint32_t chunksz; in p16x_hwinit() local 524 chunksz = port->buf_frames * 4; in p16x_hwinit() 526 write_reg(dev, PFBS, 0, chunksz << 16); in p16x_hwinit() 527 paddr += chunksz; in p16x_hwinit() 529 write_reg(dev, PFBS, 1, chunksz << 16); in p16x_hwinit() 530 paddr += chunksz; in p16x_hwinit() 532 write_reg(dev, PFBS, 2, chunksz << 16); in p16x_hwinit()
|
/titanic_44/usr/src/uts/common/io/audio/drv/audiols/ |
H A D | audiols.c | 623 uint32_t chunksz; in audigyls_hwinit() local 720 chunksz = port->buf_frames * 4; in audigyls_hwinit() 722 write_chan(dev, PFBS, 0, chunksz << 16); in audigyls_hwinit() 723 paddr += chunksz; in audigyls_hwinit() 725 write_chan(dev, PFBS, 1, chunksz << 16); in audigyls_hwinit() 726 paddr += chunksz; in audigyls_hwinit() 728 write_chan(dev, PFBS, 3, chunksz << 16); in audigyls_hwinit() 733 chunksz = port->buf_frames * 4; in audigyls_hwinit() 735 write_chan(dev, RFBS, 2, chunksz << 16); in audigyls_hwinit()
|
/titanic_44/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kvm.c | 145 volatile size_t chunksz; in kmt_rw() local 161 chunksz = nbytes; in kmt_rw() 164 if (chunksz == 1) { in kmt_rw() 168 } else if (chunksz > 4) in kmt_rw() 169 chunksz = 4; in kmt_rw() 171 chunksz = 1; in kmt_rw() 176 n = MIN(chunksz, nbytes); in kmt_rw()
|