Home
last modified time | relevance | path

Searched refs:BLK_SIZE (Results 1 – 8 of 8) sorted by relevance

/titanic_44/usr/src/lib/libpkg/common/
H A Ddstream.c153 ds_headsize + BLK_SIZE)) == NULL) in ds_gets()
155 if (read(ds_fd, ds_header + ds_headsize, BLK_SIZE) < BLK_SIZE) in ds_gets()
157 ds_headsize += BLK_SIZE; in ds_gets()
185 char buf[BLK_SIZE]; in ds_readbuf()
190 read(ds_fd, buf, BLK_SIZE) == BLK_SIZE && in ds_readbuf()
192 if ((ds_header = (char *)calloc(BLK_SIZE, 1)) == NULL) { in ds_readbuf()
198 (void) memcpy(ds_header, buf, BLK_SIZE); in ds_readbuf()
199 ds_headsize = BLK_SIZE; in ds_readbuf()
298 int i, n, count = 0, header_size = BLK_SIZE; in ds_init()
312 if ((ds_header = (char *)calloc(BLK_SIZE, 1)) == NULL) { in ds_init()
[all …]
H A Dpkgtrans.c83 #define BLK_SIZE 512 /* size of logical block */ macro
746 buf_ctrl->allocation + BLK_SIZE)) == NULL) { in cat_and_count()
755 buf_ctrl->allocation, '\0', BLK_SIZE); in cat_and_count()
758 buf_ctrl->allocation += BLK_SIZE; in cat_and_count()
781 if ((hdrbuf.text_buffer = (char *)malloc(BLK_SIZE)) == NULL) { in genheader()
788 (void) memset(hdrbuf.text_buffer, '\0', BLK_SIZE); in genheader()
792 hdrbuf.allocation = BLK_SIZE; in genheader()
809 totsize += statbuf.st_size/BLK_SIZE + 1; in genheader()
965 block_cnt += BLK_SIZE) { in wdsheader()
966 (void) write(ds_fd, (hdr->text_buffer + block_cnt), BLK_SIZE); in wdsheader()
[all …]
H A Dpkglib.h328 #define BLK_SIZE 512 /* size of logical block */ macro
/titanic_44/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_conf.c170 safestore_config.ssc_client_psize = BLK_SIZE(1); in sd_setup_ssconfig()
364 _sd_net_config.sn_csize / BLK_SIZE(1);
367 cache_bytes = _sd_net_config.sn_cpages * BLK_SIZE(1);
410 if ((rc = _sdbc_cache_configure(cache_bytes / BLK_SIZE(1),
H A Dsd_cache.h83 #define BLK_SIZE(x) ((x) << BLK_SHFT) macro
H A Dsafestore_ram.c138 ss_ramcommon_config.ssc_ss_psize = BLK_SIZE(1); in ss_ram_configure()
H A Dsd_io.c128 int reqblks = MEGABYTE/BLK_SIZE(1); /* alloc in mb chunks */ in _sdbc_dealloc_configure_dm()
172 "block size %d", blks_allocd * BLK_SIZE(1), blks_allocd, in _sdbc_dealloc_configure_dm()
173 BLK_SIZE(1)); in _sdbc_dealloc_configure_dm()
H A Dsd_bcache.c481 CACHE_BLOCK_SIZE = BLK_SIZE(1); in _sdbc_cache_configure()
634 _sd_cache_stats->st_blksize = (int)BLK_SIZE(1); in _sdbc_stats_configure()
635 _sd_cache_stats->st_cachesize = cblocks * BLK_SIZE(1); in _sdbc_stats_configure()
865 num_blks = (netc->sn_cpages * (int)netc->sn_psize)/BLK_SIZE(1); in _sdbc_mem_configure()
1048 wblocks = safestore_config.ssc_wsize / BLK_SIZE(1); in _sdbc_gl_centry_configure()
3364 centry->cc_alloc_size_dm = BLK_SIZE(1);
3398 centry->cc_alloc_size_dm = BLK_SIZE(1);
3447 anchor->cc_alloc_size_dm += BLK_SIZE(1);