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

12

/illumos-gate/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_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_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_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_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_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)
136 nsc_off_t blk_start, blk_end;
175 nsc_off_t dest_of
[all...]
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,
269 nsc_off_t offse
[all...]
H A Dsd_ft.h98 extern int _sd_uncommit(_sd_buf_handle_t *, nsc_off_t, nsc_size_t, int);
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_pos
[all...]
H A Dsafestore_impl.h103 nsc_off_t sci_fpos; /* File position */
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_po
[all...]
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)
547 sd_alloc_iob(dev_t dev, nsc_off_t fba_pos, int blks, int flag)
596 nsc_off_t offset, nsc_size_t size)
709 nsc_off_t offset, nsc_size_t size)
782 sd_add_fba(struct buf *bp, sd_addr_t *addr, nsc_off_t fba_pos,
785 nsc_off_t offset;
1176 nsc_off_t fba_po
[all...]
/illumos-gate/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 **) { }
103 int nsc_alloc_abuf(nsc_off_t, nsc_size_t, int, void **) { }
104 int nsc_read(void *, nsc_off_t, nsc_size_t, int) { }
105 int nsc_write(void *, nsc_off_t, nsc_size_t, int) { }
106 int nsc_zero(void *, nsc_off_t, nsc_size_t, int) { }
107 int nsc_copy(void *, void *, nsc_off_t, nsc_off_t, nsc_size_t) { }
108 int nsc_copy_direct(void *, void *, nsc_off_t, nsc_off_t, nsc_size_
[all...]
H A Dnsctl.h50 typedef uint64_t nsc_off_t; /* positions, offsets */ typedef
61 typedef int nsc_off_t; typedef
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_
[all...]
/illumos-gate/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)
150 nsc_alloc_buf(nsc_fd_t *fd, nsc_off_t pos, nsc_size_t len,
188 _nsc_alloc_buf_h(blind_t cd, nsc_off_t pos, nsc_size_t len,
209 nsc_read(nsc_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag)
220 nsc_write(nsc_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag)
231 nsc_zero(nsc_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag)
242 nsc_copy(nsc_buf_t *h1, nsc_buf_t *h2, nsc_off_t pos
[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_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;
289 _nsc_alloc_dbuf(blind_t cd, nsc_off_t pos, nsc_size_t len,
432 _nsc_read_dbuf(nsc_dbuf_t *h, nsc_off_t pos, nsc_size_t len, int flag)
439 _nsc_write_dbuf(nsc_dbuf_t *h, nsc_off_t pos, nsc_size_t len, int flag)
446 _nsc_zero_dbuf(nsc_dbuf_t *h, nsc_off_t po
[all...]
H A Dnsc_ncallio.c212 nsc_ncio_rwb(nsc_ncio_buf_t *h, nsc_off_t pos, nsc_size_t len,
298 nsc_ncio_read(nsc_ncio_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag)
305 nsc_ncio_write(nsc_ncio_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag)
312 nsc_ncio_zero(nsc_ncio_buf_t *h, nsc_off_t pos, nsc_size_t len, int flag)
403 nsc_ncio_allocb(nsc_ncio_dev_t *ncp, nsc_off_t pos, nsc_size_t len,
645 nsc_off_t pos;
658 pos = (nsc_off_t)rw->rw_pos;
/illumos-gate/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_
[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_ioctl.h242 nsc_off_t offset; /* byte offset within bitmap mod fba */
252 nsc_off_t offset;
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c232 nsc_off_t seekpos;
239 ((nsc_off_t)rand() << 48) | ((nsc_off_t)rand() << 32) |
249 ((nsc_off_t)rand() << 48) | ((nsc_off_t)rand() << 32) |
274 nsc_off_t seekpos;
282 ((nsc_off_t)rand() << 48) | ((nsc_off_t)rand() << 32) |
312 nsc_off_t *seekpos;
317 seekpos = malloc(loops*sizeof (nsc_off_t));
[all...]
/illumos-gate/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);

Completed in 91 milliseconds

12