/titanic_50/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); 373 nsc_size_t fba_len, int error); 375 nsc_size_t fba_len, int error); 377 nsc_size_t fba_len); 379 nsc_size_t fba_len); 381 nsc_off_t fba_pos1, nsc_off_t fba_pos2, nsc_size_t fba_len); 383 nsc_size_t fba_len, int flag); 385 nsc_size_t fba_len, int flag, _sd_buf_handle_t *rd_handle, 395 nsc_size_t fba_len); [all …]
|
H A D | sd_tdaemon.c | 99 nsc_off_t fba_pos, nsc_size_t fba_len); 101 nsc_off_t fba_pos1, nsc_off_t fba_pos2, nsc_size_t fba_len, int skew); 104 nsc_size_t fba_len, int skew); 109 nsc_size_t fba_len, int flag); 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 483 fba_len); in test_control() [all …]
|
H A D | sd_bcache.h | 731 #define ASSERT_IO_SIZE(fba_num, fba_len, cd) \ argument 732 if ((fba_num + fba_len) > \ 737 NSC_SZFMT "\n", fba_num, fba_len, \ 802 #define SDBC_GET_BITS(fba_off, fba_len) \ argument 803 (_fba_bits[(fba_len)] << (fba_off)) 805 #define SDBC_SET_VALID_BITS(fba_off, fba_len, cc_entry) \ argument 806 (cc_entry)->cc_valid |= SDBC_GET_BITS(fba_off, fba_len) 808 #define SDBC_SET_DIRTY(fba_off, fba_len, cc_entry) { \ argument 809 _sd_bitmap_t dirty, newdb = SDBC_GET_BITS(fba_off, fba_len); \ 817 #define SDBC_SET_TOFLUSH(fba_off, fba_len, cc_entry) { \ argument [all …]
|
H A D | sd_io.c | 82 nsc_size_t fba_len, int error); 84 nsc_size_t fba_len, int error); 777 int fba_len; in sdbc_alloc_io_mem() local 786 fba_len = SDBC_LOOKUP_LEN(first_dirty); in sdbc_alloc_io_mem() 787 total_len_bytes += FBA_SIZE(fba_len); in sdbc_alloc_io_mem() 805 fba_len = SDBC_LOOKUP_LEN(last_dirty); in sdbc_alloc_io_mem() 806 total_len_bytes += FBA_SIZE(fba_len); in sdbc_alloc_io_mem() 837 fba_len = SDBC_LOOKUP_LEN(first_dirty); in sdbc_alloc_io_mem() 842 FBA_SIZE(fba_len)); in sdbc_alloc_io_mem() 844 next_addr += FBA_SIZE(fba_len); in sdbc_alloc_io_mem() [all …]
|
H A D | CACHE_SPEC.txt | 95 fba_len = len in disk blocks, each block being 512 bytes. 96 Thus, 512 bytes = 1 fba_len, 1024 = 2 fba_len etc... 140 _sd_alloc_buf (cd, fba_pos, fba_len, flag, handle_p) 143 int fba_len; 153 fba_len = length in multiples of 512 bytes 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; [all …]
|
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() 1122 if (fba_len == 0) { in _sd_uncommit() 1127 SDTRACE(ST_ENTER|SDF_UNCOMMIT, cd, fba_len, fba_pos, flag, 0); in _sd_uncommit() 1133 cc_len = fba_len; /* current length */ in _sd_uncommit() 1136 if ((nsc_size_t)st_cblk_len >= fba_len) { in _sd_uncommit() 1138 st_cblk_len = (sdbc_cblk_fba_t)fba_len; in _sd_uncommit() 1141 end_cblk_len = BLK_FBA_OFF(fba_pos + fba_len); in _sd_uncommit() 1163 "_sd_write", fba_len, end_cblk_len); in _sd_uncommit() 1170 SDTRACE(ST_EXIT|SDF_UNCOMMIT, cd, fba_len, fba_pos, flag, 0); in _sd_uncommit()
|
H A D | sd_bio.c | 783 nsc_size_t fba_len) in sd_add_fba() argument 789 size = FBA_SIZE(fba_len); in sd_add_fba() 845 bp->b_lblkno += fba_len; in sd_add_fba() 1177 nsc_size_t fba_len; in _sd_async_ea() local 1191 fba_len = FBA_LEN(hook->size); in _sd_async_ea() 1195 (*fn)(arg, fba_pos, fba_len, error); in _sd_async_ea()
|
H A D | sd_misc.h | 48 nsc_size_t fba_len);
|
H A D | sd_misc.c | 1255 nsc_size_t fba_len) in _sd_data_log_chain() argument 1267 if (st_cblk_len >= fba_len) { in _sd_data_log_chain() 1269 st_cblk_len = fba_len; in _sd_data_log_chain() 1271 end_cblk_len = BLK_FBA_OFF(fba_pos + fba_len); in _sd_data_log_chain() 1276 fba_len -= st_cblk_len; in _sd_data_log_chain() 1279 while (fba_len > end_cblk_len) { in _sd_data_log_chain() 1281 fba_len -= BLK_FBAS; in _sd_data_log_chain()
|
/titanic_50/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_bitmap.c | 110 nsc_size_t fba_req, fba_len; in rdc_ns_io() local 126 fba_len = min(fba_req, maxfbas); in rdc_ns_io() 127 tocopy = min(io_len, FBA_SIZE(fba_len)); in rdc_ns_io() 130 rc = nsc_alloc_buf(fd, fba_pos, fba_len, flag, &tmp); in rdc_ns_io() 195 fba_pos += fba_len; in rdc_ns_io() 196 fba_req -= fba_len; in rdc_ns_io() 842 nsc_off_t fba_len, fba_pos; in rdc_write_bitmap_pattern() local 891 fba_len = min(fba_req, maxfbas); /* FBAs to alloc this time */ in rdc_write_bitmap_pattern() 893 rc = nsc_alloc_buf(krdc->bitmapfd, fba_pos, fba_len, rdc_wrflag, &h); in rdc_write_bitmap_pattern() 909 len = min(tocopy, FBA_SIZE(fba_len)); in rdc_write_bitmap_pattern() [all …]
|
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() 452 fba_len); in rdc_net_read() 484 len = fba_len; /* length (FBAs) still to xfer */ in rdc_net_read() 697 nsc_off_t fba_pos, nsc_size_t fba_len, uint_t aseq, int qpos, in rdc_net_write() argument 723 if ((qpos == -1) && (!RDC_HANDLE_LIMITS(handle, fba_pos, fba_len))) { in rdc_net_write() 747 ret = nsc_alloc_buf(krdc->remote_fd, fba_pos, fba_len, in rdc_net_write() 752 fba_len); in rdc_net_write() 754 ret = nsc_write(remote_h, fba_pos, fba_len, 0); in rdc_net_write() [all …]
|
H A D | rdc_svc.c | 2060 nsc_size_t fba_len, char *bdata, int blen, int dir) in rdc_dsetcopy() argument 2079 if (fba_len > MAX_RDC_FBAS || in rdc_dsetcopy() 2084 " fba_pos %" NSC_SZFMT ", dir %d", fba_len, fba_pos, dir); in rdc_dsetcopy() 2090 len = FBA_SIZE(fba_len); /* length of this transfer in bytes */ 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_50/usr/src/uts/common/avs/ns/sv/ |
H A D | sv.c | 2097 nsc_size_t fba_req, fba_len; /* FBA lengths */ in _sv_lyr_strategy() local 2204 fba_len = min(fba_req, svp->sv_maxfbas); in _sv_lyr_strategy() 2210 uint64_t, (uint64_t)fba_len, in _sv_lyr_strategy() 2214 fba_len, rw, &hndl); in _sv_lyr_strategy() 2227 tocopy = min(FBA_SIZE(fba_len), bp->b_resid); in _sv_lyr_strategy() 2287 fba_off += fba_len; in _sv_lyr_strategy() 2288 fba_req -= fba_len; in _sv_lyr_strategy()
|
/titanic_50/usr/src/uts/common/avs/ns/dsw/ |
H A D | dsw_dev.c | 5730 nsc_size_t fba_req, fba_len; in _ii_nsc_io() local 5754 fba_len = min(fba_req, maxfbas); in _ii_nsc_io() 5755 tocopy = min(io_len, FBA_SIZE(fba_len)); in _ii_nsc_io() 5758 nsc_size_t, fba_len); 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() 5793 II_READ_END(ip, master, rc, fba_len); in _ii_nsc_io() 5796 II_READ_END(ip, shadow, rc, fba_len); in _ii_nsc_io() 5799 II_READ_END(ip, bitmap, rc, fba_len); in _ii_nsc_io() 5802 II_READ_END(ip, overflow, rc, fba_len); in _ii_nsc_io() [all …]
|