/titanic_41/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_bcache.c | 368 static int _sd_check_buffer_alloc(int cd, nsc_off_t fba_pos, nsc_size_t fba_len, 371 nsc_off_t fba_pos, nsc_size_t fba_len, int flag); 372 static void _sd_async_read_ea(blind_t xhandle, nsc_off_t fba_pos, 374 static void _sd_async_write_ea(blind_t xhandle, nsc_off_t fba_pos, 376 static void _sd_queue_write(_sd_buf_handle_t *handle, nsc_off_t fba_pos, 378 static int _sd_remote_store(_sd_cctl_t *cc_ent, nsc_off_t fba_pos, 382 static int _sd_sync_write(_sd_buf_handle_t *handle, nsc_off_t fba_pos, 394 static int sdbc_doread_prefetch(_sd_cctl_t *cc_ent, nsc_off_t fba_pos, 398 static int _sd_prefetch_buf(int cd, nsc_off_t fba_pos, nsc_size_t fba_len, 2067 _sd_allocate_buf(int cd, nsc_off_t fba_pos, nsc_size_t fba_len, int flag, in _sd_allocate_buf() argument [all …]
|
H A D | CACHE_SPEC.txt | 94 fba_pos = disk block number, each block being 512 bytes. 140 _sd_alloc_buf (cd, fba_pos, fba_len, flag, handle_p) 142 int fba_pos; 152 fba_pos = disk position in multiples of 512 byte blocks. 202 _sd_write (handle, fba_pos, fba_len, flag) 204 int fba_pos, fba_len; 208 fba_pos and fba_len have to be within the allocated portion. 223 _sd_read (handle, fba_pos, fba_len, flag) 225 int fba_pos, fba_len; 229 fba_pos and fba_len have to be within the allocated portion. [all …]
|
H A D | sd_io.c | 81 static void _sd_flcent_ea(blind_t xcc_ent, nsc_off_t fba_pos, 83 static void _sd_flclist_ea(blind_t xcc_ent, nsc_off_t fba_pos, 1324 _sd_flcent_ea(blind_t xcc_ent, nsc_off_t fba_pos, nsc_size_t fba_len, int error) in _sd_flcent_ea() argument 1370 DATA_LOG(SDF_FLEA, cc_ent, BLK_FBA_OFF(fba_pos), fba_len); in _sd_flcent_ea() 1373 BLK_TO_FBA_NUM(CENTRY_BLK(cc_ent) + BLK_FBA_OFF(fba_pos))), in _sd_flcent_ea() 1375 *(int64_t *)(cc_ent->cc_data + FBA_SIZE(BLK_FBA_OFF(fba_pos))), in _sd_flcent_ea() 1377 FBA_SIZE(BLK_FBA_OFF(fba_pos) + fba_len) - 8)); in _sd_flcent_ea() 1397 _sd_flclist_ea(blind_t xcc_ent, nsc_off_t fba_pos, nsc_size_t fba_len, in _sd_flclist_ea() argument 1458 BLK_FBA_OFF(fba_pos + fba_len)); in _sd_flclist_ea() 1462 uint64_t, (uint64_t)BLK_FBA_OFF(fba_pos + fba_len), in _sd_flclist_ea() [all …]
|
H A D | sd_tdaemon.c | 99 nsc_off_t fba_pos, nsc_size_t fba_len); 108 static int _sd_hwrite(_sd_buf_handle_t *buf, nsc_off_t fba_pos, 110 static void myend(blind_t arg, nsc_off_t fba_pos, nsc_size_t fba_len, 112 static int test_control(int typ, int cd, nsc_off_t fba_pos, nsc_size_t fba_len); 126 _sd_hwrite(_sd_buf_handle_t *buf, nsc_off_t fba_pos, nsc_size_t fba_len, in _sd_hwrite() argument 131 rval = _sd_write(buf, fba_pos, fba_len, flag); in _sd_hwrite() 440 test_control(int typ, int cd, nsc_off_t fba_pos, nsc_size_t fba_len) in test_control() argument 482 rc = _sd_discard_pinned((blind_t)(unsigned long)cd, fba_pos, in test_control() 485 "): %d", cd, fba_pos, fba_len, rc); in test_control() 763 _sd_copy_pattern_to_handle(_sd_buf_handle_t *handle, nsc_off_t fba_pos, in _sd_copy_pattern_to_handle() argument [all …]
|
H A D | sd_bio.c | 547 sd_alloc_iob(dev_t dev, nsc_off_t fba_pos, int blks, int flag) in sd_alloc_iob() argument 555 _sd_setup_iob(bp, dev, fba_pos, flag); in sd_alloc_iob() 570 hook->start_fba = fba_pos; in sd_alloc_iob() 571 hook->last_fba = fba_pos; in sd_alloc_iob() 782 sd_add_fba(struct buf *bp, sd_addr_t *addr, nsc_off_t fba_pos, in sd_add_fba() argument 790 offset = FBA_SIZE(fba_pos); in sd_add_fba() 1176 nsc_off_t fba_pos; in _sd_async_ea() local 1190 fba_pos = hook->start_fba; in _sd_async_ea() 1195 (*fn)(arg, fba_pos, fba_len, error); in _sd_async_ea()
|
H A D | sd_ft.c | 1101 _sd_uncommit(_sd_buf_handle_t *handle, nsc_off_t fba_pos, nsc_size_t fba_len, in _sd_uncommit() argument 1114 ASSERT_HANDLE_LIMITS(handle, fba_pos, fba_len); in _sd_uncommit() 1127 SDTRACE(ST_ENTER|SDF_UNCOMMIT, cd, fba_len, fba_pos, flag, 0); in _sd_uncommit() 1130 while (CENTRY_BLK(cc_ent) != FBA_TO_BLK_NUM(fba_pos)) in _sd_uncommit() 1134 st_cblk_off = BLK_FBA_OFF(fba_pos); in _sd_uncommit() 1141 end_cblk_len = BLK_FBA_OFF(fba_pos + fba_len); in _sd_uncommit() 1170 SDTRACE(ST_EXIT|SDF_UNCOMMIT, cd, fba_len, fba_pos, flag, 0); in _sd_uncommit()
|
H A D | sd_bcache.h | 1087 extern _sd_buf_handle_t *_sd_allocate_buf(int cd, nsc_off_t fba_pos, 1090 extern int _sd_alloc_buf(blind_t xcd, nsc_off_t fba_pos, nsc_size_t fba_len, 1100 extern int _sd_read(_sd_buf_handle_t *handle, nsc_off_t fba_pos, 1102 extern void _sd_read_complete(_sd_buf_handle_t *handle, nsc_off_t fba_pos, 1104 extern int _sd_write(_sd_buf_handle_t *handle, nsc_off_t fba_pos, 1106 extern int _sd_zero(_sd_buf_handle_t *handle, nsc_off_t fba_pos, 1123 extern int _sd_discard_pinned(blind_t cd, nsc_off_t fba_pos,
|
H A D | sd_misc.h | 47 extern void _sd_data_log_chain(int num, _sd_cctl_t *centry, nsc_off_t fba_pos,
|
H A D | sd_misc.c | 824 nsc_off_t fba_pos; /* disk block number */ in sdbc_get_cd_blk() local 831 if (ddi_copyin((void *)args->arg1, &fba_pos, sizeof (nsc_off_t), in sdbc_get_cd_blk() 860 if (_sd_get_cd_blk((int)args->arg0, FBA_TO_BLK_NUM(fba_pos), in sdbc_get_cd_blk() 1254 _sd_data_log_chain(int num, _sd_cctl_t *centry, nsc_off_t fba_pos, in _sd_data_log_chain() argument 1262 while (CENTRY_BLK(centry) != FBA_TO_BLK_NUM(fba_pos)) in _sd_data_log_chain() 1265 st_cblk_off = BLK_FBA_OFF(fba_pos); in _sd_data_log_chain() 1271 end_cblk_len = BLK_FBA_OFF(fba_pos + fba_len); in _sd_data_log_chain()
|
/titanic_41/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_clnt.c | 407 nsc_off_t fba_pos, nsc_size_t fba_len) in rdc_net_read() argument 428 if (!RDC_HANDLE_LIMITS(handle, fba_pos, fba_len)) { in rdc_net_read() 447 ret = nsc_alloc_buf(krdc->remote_fd, fba_pos, fba_len, in rdc_net_read() 451 ret = nsc_copy(remote_h, handle, fba_pos, fba_pos, in rdc_net_read() 489 ASSERT(fba_pos <= INT32_MAX); in rdc_net_read() 490 list.pos = (int)fba_pos; /* fba position of start of chunk */ in rdc_net_read() 501 list6.pos = fba_pos; /* fba position of start of chunk */ in rdc_net_read() 545 fba_pos -= handle->sb_pos; in rdc_net_read() 547 for (; fba_pos >= FBA_NUM(vec->sv_len); vec++) in rdc_net_read() 548 fba_pos -= FBA_NUM(vec->sv_len); in rdc_net_read() [all …]
|
H A D | rdc_bitmap.c | 101 rdc_ns_io(nsc_fd_t *fd, int flag, nsc_off_t fba_pos, uchar_t *io_addr, in rdc_ns_io() argument 130 rc = nsc_alloc_buf(fd, fba_pos, fba_len, flag, &tmp); in rdc_ns_io() 145 rc = nsc_read(tmp, fba_pos+FBA_NUM(io_len), 1, 0); in rdc_ns_io() 195 fba_pos += fba_len; in rdc_ns_io() 842 nsc_off_t fba_len, fba_pos; in rdc_write_bitmap_pattern() local 887 fba_pos = RDC_BITMAP_FBA; /* current FBA position */ in rdc_write_bitmap_pattern() 893 rc = nsc_alloc_buf(krdc->bitmapfd, fba_pos, fba_len, rdc_wrflag, &h); in rdc_write_bitmap_pattern() 948 fba_pos += fba_len; in rdc_write_bitmap_pattern() 2111 rdc_std_set_bitmask(const nsc_off_t fba_pos, const nsc_size_t fba_len, in rdc_std_set_bitmask() argument 2120 first = st = FBA_TO_LOG_NUM(fba_pos); in rdc_std_set_bitmask() [all …]
|
H A D | rdc_svc.c | 2059 rdc_dsetcopy(rdc_net_dataset_t *dset, nsc_vec_t *invec, nsc_off_t fba_pos, in rdc_dsetcopy() argument 2084 " fba_pos %" NSC_SZFMT ", dir %d", fba_len, fba_pos, dir); in rdc_dsetcopy() 2091 fpos = fba_pos; /* start fba offset within buffer */ in rdc_dsetcopy() 2108 if (!RDC_DSET_LIMITS(dset, fba_pos, fba_len)) { in rdc_dsetcopy() 2114 fba_pos, dset->pos, fba_len, dset->fbalen); in rdc_dsetcopy()
|
/titanic_41/usr/src/uts/common/avs/ns/dsw/ |
H A D | dsw_dev.c | 5721 _ii_nsc_io(_ii_info_t *ip, int ks, nsc_fd_t *fd, int flag, nsc_off_t fba_pos, in _ii_nsc_io() argument 5757 DTRACE_PROBE2(_ii_nsc_io_buffer, nsc_off_t, fba_pos, in _ii_nsc_io() 5762 fba_pos, fba_len); in _ii_nsc_io() 5787 rc = nsc_alloc_buf(fd, fba_pos, fba_len, flag, &tmp); in _ii_nsc_io() 5825 fba_pos+FBA_NUM(io_len)); in _ii_nsc_io() 5829 rc = nsc_read(tmp, fba_pos+FBA_NUM(io_len), 1, 0); in _ii_nsc_io() 5834 fba_pos+FBA_NUM(io_len), 1, 0); in _ii_nsc_io() 5838 fba_pos+FBA_NUM(io_len), 1, 0); in _ii_nsc_io() 5842 fba_pos+FBA_NUM(io_len), 1, 0); in _ii_nsc_io() 5846 fba_pos+FBA_NUM(io_len), 1, 0); in _ii_nsc_io() [all …]
|