Home
last modified time | relevance | path

Searched refs:nsc_off_t (Results 1 – 25 of 41) sorted by relevance

12

/titanic_41/usr/src/uts/common/avs/ns/
H A Dnsctl_inter.h46 typedef int nsc_off_t; typedef
102 int nsc_alloc_buf(nsc_fd_t *, nsc_off_t, nsc_size_t, int, void **) { } in nsc_alloc_buf() argument
103 int nsc_alloc_abuf(nsc_off_t, nsc_size_t, int, void **) { } in nsc_alloc_abuf() argument
104 int nsc_read(void *, nsc_off_t, nsc_size_t, int) { } in nsc_read() argument
105 int nsc_write(void *, nsc_off_t, nsc_size_t, int) { } in nsc_write() argument
106 int nsc_zero(void *, nsc_off_t, nsc_size_t, int) { } in nsc_zero() argument
107 int nsc_copy(void *, void *, nsc_off_t, nsc_off_t, nsc_size_t) { } in nsc_copy() argument
108 int nsc_copy_direct(void *, void *, nsc_off_t, nsc_off_t, nsc_size_t) { } in nsc_copy_direct() argument
109 int nsc_uncommit(void *, nsc_off_t, nsc_size_t, int) { } in nsc_uncommit() argument
H A Dnsctl.h50 typedef uint64_t nsc_off_t; /* positions, offsets */ typedef
61 typedef int nsc_off_t;
212 extern int nsc_discard_pinned(nsc_fd_t *, nsc_off_t, nsc_size_t);
244 extern void nsc_pinned_data(nsc_iodev_t *, nsc_off_t, nsc_size_t);
245 extern void nsc_unpinned_data(nsc_iodev_t *, nsc_off_t, nsc_size_t);
262 nsc_off_t sb_pos; /* Block offset of data */
304 extern int nsc_alloc_buf(nsc_fd_t *, nsc_off_t, nsc_size_t, int, nsc_buf_t **);
305 extern int nsc_alloc_abuf(nsc_off_t, nsc_size_t, int, nsc_buf_t **);
306 extern int nsc_read(nsc_buf_t *, nsc_off_t, nsc_size_t, int);
307 extern int nsc_write(nsc_buf_t *, nsc_off_t, nsc_size_t, int);
[all …]
/titanic_41/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_pcu.h49 nsc_off_t string_pool; /* offset in file to pool of filenames */
50 nsc_off_t descriptor_pool; /* offset in file to dbc_pwf_desc_t vector */
61 nsc_off_t blocks; /* offset into swap for this device's data */
62 nsc_off_t bitmaps; /* offset into swap for data bitmaps */
79 nsc_off_t fba_num; /* the block on the disk */
H A Dsd_trace.h42 _sd_alert(f, (int)cd, (int)len, (nsc_off_t)fba, (int)flg, (int)ret)
45 _sd_trace(f, (int)cd, (int)len, (nsc_off_t)fba,\
48 _sd_data_log_chain((int)(ttype), c_ent, (nsc_off_t)(stp), \
52 _sd_data_log((int)(ttype), c_ent, (nsc_off_t)(stp), (nsc_size_t)(ln))
56 ln, (nsc_off_t)(BLK_TO_FBA_NUM(CENTRY_BLK(c_ent)) + stp), \
70 nsc_off_t t_fba; /* fixed block offset */
311 extern void _sd_alert(int f, int cd, int len, nsc_off_t fba, int flg, int ret);
312 extern void _sd_trace(int f, int cd, int len, nsc_off_t fba, int flg,
H A Dsd_pcu.c76 nsc_off_t fba_num);
77 static int flush_bitmap_list(struct bitmap *bmp, dev_t dev, nsc_off_t *blkno);
79 nsc_off_t *blkno, int failed, struct bitmap *bmaps);
80 static int flush_hdr(_sd_cctl_t *hdr, dev_t dev, nsc_off_t blkno);
81 static int flush_anon_list(_sd_cctl_t *anon_list, dev_t dev, nsc_off_t *blkno);
83 nsc_off_t dest_off);
84 static void sdbc_anon_get(_sd_cctl_t *src, nsc_off_t src_off, caddr_t dest,
132 sdbc_anon_get(_sd_cctl_t *src, nsc_off_t src_off, caddr_t dest, nsc_size_t len) in sdbc_anon_get()
136 nsc_off_t blk_start, blk_end; in sdbc_anon_get()
175 nsc_off_t dest_off) in sdbc_anon_copy()
[all …]
H A Dsd_misc.h45 extern void _sd_data_log(int num, _sd_cctl_t *centry, nsc_off_t st,
47 extern void _sd_data_log_chain(int num, _sd_cctl_t *centry, nsc_off_t fba_pos,
56 extern int _sd_get_cd_blk(int cd, nsc_off_t blk, _sd_cctl_t **cc, caddr_t *data,
H A Dsd_tdaemon.c99 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);
103 _sd_buf_handle_t *handle2, nsc_off_t fba_pos1, nsc_off_t fba_pos2,
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()
269 nsc_off_t offset;
440 test_control(int typ, int cd, nsc_off_t fba_pos, nsc_size_t fba_len) in test_control()
661 nsc_off_t offset; in _sd_test_rwloop_seq()
[all …]
H A Dsd_hash.h40 nsc_off_t hh_blk_num; /* Cache block number */
80 extern _sd_hash_hd_t *_sd_hash_search(int cd, nsc_off_t block_num,
82 extern _sd_hash_hd_t *_sd_hash_insert(int cd, nsc_off_t block_num,
H A Dsd_bcache.h458 nsc_off_t ci_dblk; /* the disk block number */
959 typedef void (*sdbc_ea_fn_t) (blind_t, nsc_off_t, nsc_size_t, int);
1087 extern _sd_buf_handle_t *_sd_allocate_buf(int cd, nsc_off_t fba_pos,
1089 extern void _sd_cc_wait(int cd, nsc_off_t cblk, _sd_cctl_t *centry, int flag);
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,
1109 nsc_off_t fba_pos1, nsc_off_t fba_pos2, nsc_size_t fba_len);
[all …]
H A Dsd_bio.h38 extern struct buf *sd_alloc_iob(dev_t, nsc_off_t, int, int);
39 extern void sd_add_fba(struct buf *, sd_addr_t *, nsc_off_t, nsc_size_t);
H A Dsd_iob.h49 nsc_off_t start_fba; /* initial disk block for the xfer */
50 nsc_off_t last_fba; /* last disk block for the xfer */
H A Dsd_bio.c84 nsc_off_t offset, nsc_size_t size);
86 sd_addr_t *addr, nsc_off_t offset, nsc_size_t size);
87 static void _sd_setup_iob(struct buf *bp, dev_t dev, nsc_off_t pos, int flag);
369 _sd_setup_iob(struct buf *bp, dev_t dev, nsc_off_t pos, int flag) in _sd_setup_iob()
547 sd_alloc_iob(dev_t dev, nsc_off_t fba_pos, int blks, int flag) in sd_alloc_iob()
596 nsc_off_t offset, nsc_size_t size) in _sd_pack_pages()
709 nsc_off_t offset, nsc_size_t size) in _sd_pack_pages_nopageio()
782 sd_add_fba(struct buf *bp, sd_addr_t *addr, nsc_off_t fba_pos, in sd_add_fba()
785 nsc_off_t offset; in sd_add_fba()
1176 nsc_off_t fba_pos; in _sd_async_ea()
H A Dsd_bcache.c368 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,
381 nsc_off_t fba_pos1, nsc_off_t fba_pos2, nsc_size_t fba_len);
382 static int _sd_sync_write(_sd_buf_handle_t *handle, nsc_off_t fba_pos,
384 static int _sd_sync_write2(_sd_buf_handle_t *wr_handle, nsc_off_t wr_st_pos,
386 nsc_off_t rd_st_pos);
[all …]
H A Dsd_ft.h98 extern int _sd_uncommit(_sd_buf_handle_t *, nsc_off_t, nsc_size_t, int);
/titanic_41/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_cache.c65 static int _nsc_alloc_buf_h(blind_t, nsc_off_t, nsc_size_t, int,
67 static int _nsc_copy_h(nsc_buf_t *, nsc_buf_t *, nsc_off_t,
68 nsc_off_t, nsc_size_t);
109 nsc_alloc_abuf(nsc_off_t pos, nsc_size_t len, int flag, nsc_buf_t **ptr) in nsc_alloc_abuf()
150 nsc_alloc_buf(nsc_fd_t *fd, nsc_off_t pos, nsc_size_t len, in nsc_alloc_buf()
188 _nsc_alloc_buf_h(blind_t cd, nsc_off_t pos, nsc_size_t len, in _nsc_alloc_buf_h()
209 nsc_read(nsc_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in nsc_read()
220 nsc_write(nsc_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in nsc_write()
231 nsc_zero(nsc_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in nsc_zero()
242 nsc_copy(nsc_buf_t *h1, nsc_buf_t *h2, nsc_off_t pos1, in nsc_copy()
[all …]
H A Dnsc_disk.c62 static int _nsc_alloc_dbuf(blind_t, nsc_off_t, nsc_size_t, int, nsc_dbuf_t **);
65 static int _nsc_read_dbuf(nsc_dbuf_t *, nsc_off_t, nsc_size_t, int);
66 static int _nsc_write_dbuf(nsc_dbuf_t *, nsc_off_t, nsc_size_t, int);
67 static int _nsc_zero_dbuf(nsc_dbuf_t *, nsc_off_t, nsc_size_t, int);
68 static int _nsc_dbuf_io(int (*)(), nsc_dbuf_t *, nsc_off_t, nsc_size_t, int);
188 nsc_off_t pos, off; in _nsc_rw_uio()
289 _nsc_alloc_dbuf(blind_t cd, nsc_off_t pos, nsc_size_t len, in _nsc_alloc_dbuf()
432 _nsc_read_dbuf(nsc_dbuf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in _nsc_read_dbuf()
439 _nsc_write_dbuf(nsc_dbuf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in _nsc_write_dbuf()
446 _nsc_zero_dbuf(nsc_dbuf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in _nsc_zero_dbuf()
[all …]
H A Dnsc_disk.h74 #define FPOS_TO_FBA(u) ((nsc_off_t)(FBA_NUM((u)->uio_loffset)))
75 #define FPOS_TO_OFF(u) ((nsc_off_t)(FBA_OFF((u)->uio_loffset)))
H A Dnsc_ncallio.c212 nsc_ncio_rwb(nsc_ncio_buf_t *h, nsc_off_t pos, nsc_size_t len, in nsc_ncio_rwb()
298 nsc_ncio_read(nsc_ncio_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in nsc_ncio_read()
305 nsc_ncio_write(nsc_ncio_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in nsc_ncio_write()
312 nsc_ncio_zero(nsc_ncio_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in nsc_ncio_zero()
403 nsc_ncio_allocb(nsc_ncio_dev_t *ncp, nsc_off_t pos, nsc_size_t len, in nsc_ncio_allocb()
645 nsc_off_t pos; in nsc_rncio_io()
658 pos = (nsc_off_t)rw->rw_pos; in nsc_rncio_io()
/titanic_41/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c232 nsc_off_t seekpos; in do_sdtest1()
239 ((nsc_off_t)rand() << 48) | ((nsc_off_t)rand() << 32) | in do_sdtest1()
249 ((nsc_off_t)rand() << 48) | ((nsc_off_t)rand() << 32) | in do_sdtest1()
274 nsc_off_t seekpos; in do_sdtest2()
282 ((nsc_off_t)rand() << 48) | ((nsc_off_t)rand() << 32) | in do_sdtest2()
312 nsc_off_t *seekpos; in do_sdtest3()
317 seekpos = malloc(loops*sizeof (nsc_off_t)); in do_sdtest3()
328 ((nsc_off_t)rand() << 48) | ((nsc_off_t)rand() << 32) | in do_sdtest3()
492 nsc_off_t top_pos, bottom_pos; in do_sdtest6()
559 volatile nsc_off_t writepos;
[all …]
/titanic_41/usr/src/uts/common/avs/ns/rdc/
H A Drdc_bitmap.h121 int (*set_bitmap)(rdc_k_info_t *, const nsc_off_t, const nsc_size_t,
123 void (*clr_bitmap)(rdc_k_info_t *, const nsc_off_t, const nsc_size_t,
132 void (*set_bitmask)(const nsc_off_t, const nsc_size_t, uint_t *);
133 void (*check_bit)(rdc_k_info_t *, nsc_off_t, nsc_size_t);
174 extern void rdc_set_bitmap_many(rdc_k_info_t *, nsc_off_t, nsc_size_t);
180 extern int rdc_ns_io(nsc_fd_t *, int, nsc_off_t, uchar_t *, nsc_size_t);
H A Drdc_io.h177 nsc_off_t pos;
178 nsc_off_t qpos;
320 nsc_off_t offset;
491 nsc_off_t syncbitpos;
768 nsc_off_t pos;
907 extern int _rdc_enqueue_write(rdc_k_info_t *, nsc_off_t, nsc_size_t, int,
912 extern int rdc_net_write(int, int, nsc_buf_t *, nsc_off_t, nsc_size_t, uint_t,
914 extern int rdc_net_read(int, int, nsc_buf_t *, nsc_off_t, nsc_size_t);
915 extern int _rdc_remote_read(rdc_k_info_t *, nsc_buf_t *, nsc_off_t, nsc_size_t,
917 extern int _rdc_multi_write(nsc_buf_t *, nsc_off_t, nsc_size_t, int,
[all …]
H A Drdc_diskq.h41 nsc_off_t pos; /* position it will be in the rdc_aio_t */
42 nsc_off_t hpos; /* starting pos of orig nsc_buf_t */
43 nsc_off_t qpos; /* where this info is in the queue */
142 nsc_off_t last_tail; /* pos of the last tail write */
152 nsc_off_t nxt_io; /* flushers head pointer */
154 nsc_off_t coalesc_bounds; /* don't coalesce below this offset */
H A Drdc_dev.c983 _rdc_remote_read(rdc_k_info_t *krdc, nsc_buf_t *h, nsc_off_t pos, in _rdc_remote_read()
1086 _rdc_alloc_buf(rdc_fd_t *rfd, nsc_off_t pos, nsc_size_t len, int flag, in _rdc_alloc_buf()
1677 _rdc_discard_pinned(rdc_fd_t *rfd, nsc_off_t pos, nsc_size_t len) in _rdc_discard_pinned()
1806 _rdc_pinned(_rdc_info_dev_t *dip, nsc_off_t pos, nsc_size_t len) in _rdc_pinned()
1819 _rdc_unpinned(_rdc_info_dev_t *dip, nsc_off_t pos, nsc_size_t len) in _rdc_unpinned()
1834 _rdc_read(rdc_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag) in _rdc_read()
1878 nsc_off_t pos, nsc_size_t len, int flag, uint_t bitmask) in _rdc_remote_write()
1920 nsc_off_t, krdc->syncbitpos, in _rdc_remote_write()
1921 nsc_off_t, syncblockpos, in _rdc_remote_write()
1922 nsc_off_t, pos, in _rdc_remote_write()
[all …]
/titanic_41/usr/src/uts/common/avs/ns/dsw/
H A Ddsw_dev.h85 #define DSW_CHK2FBA(chunk) (((nsc_off_t)(chunk)) * DSW_SIZE)
352 nsc_off_t bi_shdfba; /* location of shadow bitmap */
354 nsc_off_t bi_copyfba; /* location of copy bitmap */
475 int (*co_bmp)(_ii_info_t *, nsc_off_t, unsigned char *, int);
476 int (*ci_bmp)(_ii_info_t *, nsc_off_t, unsigned char *, int);
491 int (*cnt_bits)(_ii_info_t *, nsc_off_t, nsc_size_t *, int);
H A Ddsw_dev.c150 int _ii_nsc_io(_ii_info_t *, int, nsc_fd_t *, int, nsc_off_t, unsigned char *,
1142 nsc_off_t shdfba; in _ii_config()
1143 nsc_off_t copyfba; in _ii_config()
5582 nsc_off_t read_fba; in _ii_bm_header_get()
5643 nsc_off_t write_fba; in _ii_bm_header_put()
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()
5757 DTRACE_PROBE2(_ii_nsc_io_buffer, nsc_off_t, fba_pos, in _ii_nsc_io()
6456 nsc_off_t pos; in _ii_copy_chunks()
6459 nsc_off_t shd_pos; in _ii_copy_chunks()
6512 DTRACE_PROBE2(_ii_copy_chunks_alloc, nsc_off_t, pos, nsc_size_t, len); in _ii_copy_chunks()
[all …]

12