/titanic_51/usr/src/uts/common/fs/zfs/ |
H A D | vdev.c | 95 vdev_default_asize(vdev_t *vd, uint64_t psize) in vdev_default_asize() argument 97 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize() 100 for (int c = 0; c < vd->vdev_children; c++) { in vdev_default_asize() 101 csize = vdev_psize_to_asize(vd->vdev_child[c], psize); in vdev_default_asize() 115 vdev_get_min_asize(vdev_t *vd) in vdev_get_min_asize() argument 117 vdev_t *pvd = vd->vdev_parent; in vdev_get_min_asize() 124 return (vd->vdev_asize); in vdev_get_min_asize() 130 if (vd == vd->vdev_top) in vdev_get_min_asize() 131 return (P2ALIGN(vd in vdev_get_min_asize() 144 vdev_set_min_asize(vdev_t * vd) vdev_set_min_asize() argument 168 vdev_lookup_by_guid(vdev_t * vd,uint64_t guid) vdev_lookup_by_guid() argument 184 vdev_count_leaves_impl(vdev_t * vd) vdev_count_leaves_impl() argument 314 vdev_t *vd; vdev_alloc_common() local 378 vdev_t *vd; vdev_alloc() local 595 vdev_free(vdev_t * vd) vdev_free() argument 685 vdev_t *vd; vdev_top_transfer() local 744 vdev_top_update(vdev_t * tvd,vdev_t * vd) vdev_top_update() argument 832 vdev_metaslab_init(vdev_t * vd,uint64_t txg) vdev_metaslab_init() argument 908 vdev_metaslab_fini(vdev_t * vd) vdev_metaslab_fini() argument 936 vdev_t *vd = zio->io_vd; vdev_probe_done() local 993 vdev_probe(vdev_t * vd,zio_t * zio) vdev_probe() argument 1086 vdev_t *vd = arg; vdev_open_child() local 1094 vdev_uses_zvols(vdev_t * vd) vdev_uses_zvols() argument 1106 vdev_open_children(vdev_t * vd) vdev_open_children() argument 1136 vdev_open(vdev_t * vd) vdev_open() argument 1351 vdev_validate(vdev_t * vd,boolean_t strict) vdev_validate() argument 1464 vdev_close(vdev_t * vd) vdev_close() argument 1497 vdev_hold(vdev_t * vd) vdev_hold() argument 1513 vdev_rele(vdev_t * vd) vdev_rele() argument 1532 vdev_reopen(vdev_t * vd) vdev_reopen() argument 1565 vdev_create(vdev_t * vd,uint64_t txg,boolean_t isreplacing) vdev_create() argument 1595 vdev_metaslab_set_size(vdev_t * vd) vdev_metaslab_set_size() argument 1605 vdev_dirty(vdev_t * vd,int flags,void * arg,uint64_t txg) vdev_dirty() argument 1622 vdev_dirty_leaves(vdev_t * vd,int flags,uint64_t txg) vdev_dirty_leaves() argument 1670 vdev_dtl_dirty(vdev_t * vd,vdev_dtl_type_t t,uint64_t txg,uint64_t size) vdev_dtl_dirty() argument 1685 vdev_dtl_contains(vdev_t * vd,vdev_dtl_type_t t,uint64_t txg,uint64_t size) vdev_dtl_contains() argument 1702 vdev_dtl_empty(vdev_t * vd,vdev_dtl_type_t t) vdev_dtl_empty() argument 1718 vdev_dtl_min(vdev_t * vd) vdev_dtl_min() argument 1734 vdev_dtl_max(vdev_t * vd) vdev_dtl_max() argument 1755 vdev_dtl_should_excise(vdev_t * vd) vdev_dtl_should_excise() argument 1787 vdev_dtl_reassess(vdev_t * vd,uint64_t txg,uint64_t scrub_txg,int scrub_done) vdev_dtl_reassess() argument 1898 vdev_dtl_load(vdev_t * vd) vdev_dtl_load() argument 1938 vdev_dtl_sync(vdev_t * vd,uint64_t txg) vdev_dtl_sync() argument 2016 vdev_dtl_required(vdev_t * vd) vdev_dtl_required() argument 2049 vdev_resilver_needed(vdev_t * vd,uint64_t * minp,uint64_t * maxp) vdev_resilver_needed() argument 2086 vdev_load(vdev_t * vd) vdev_load() argument 2119 vdev_validate_aux(vdev_t * vd) vdev_validate_aux() argument 2154 vdev_remove(vdev_t * vd,uint64_t txg) vdev_remove() argument 2206 vdev_sync_done(vdev_t * vd,uint64_t txg) vdev_sync_done() argument 2221 vdev_sync(vdev_t * vd,uint64_t txg) vdev_sync() argument 2258 vdev_psize_to_asize(vdev_t * vd,uint64_t psize) vdev_psize_to_asize() argument 2270 vdev_t *vd, *tvd; vdev_fault() local 2326 vdev_t *vd; vdev_degrade() local 2361 vdev_t *vd, *tvd, *pvd, *rvd = spa->spa_root_vdev; vdev_online() local 2421 vdev_t *vd, *tvd; vdev_offline_locked() local 2530 vdev_clear(spa_t * spa,vdev_t * vd) vdev_clear() argument 2591 vdev_is_dead(vdev_t * vd) vdev_is_dead() argument 2605 vdev_readable(vdev_t * vd) vdev_readable() argument 2611 vdev_writeable(vdev_t * vd) vdev_writeable() argument 2617 vdev_allocatable(vdev_t * vd) vdev_allocatable() argument 2634 vdev_accessible(vdev_t * vd,zio_t * zio) vdev_accessible() argument 2654 vdev_get_stats(vdev_t * vd,vdev_stat_t * vs) vdev_get_stats() argument 2693 vdev_clear_stats(vdev_t * vd) vdev_clear_stats() argument 2703 vdev_scan_stat_init(vdev_t * vd) vdev_scan_stat_init() argument 2720 vdev_t *vd = zio->io_vd ? zio->io_vd : rvd; vdev_stat_update() local 2860 vdev_space_update(vdev_t * vd,int64_t alloc_delta,int64_t defer_delta,int64_t space_delta) vdev_space_update() argument 2911 vdev_config_dirty(vdev_t * vd) vdev_config_dirty() argument 2984 vdev_config_clean(vdev_t * vd) vdev_config_clean() argument 3003 vdev_state_dirty(vdev_t * vd) vdev_state_dirty() argument 3025 vdev_state_clean(vdev_t * vd) vdev_state_clean() argument 3041 vdev_propagate_state(vdev_t * vd) vdev_propagate_state() argument 3105 vdev_set_state(vdev_t * vd,boolean_t isopen,vdev_state_t state,vdev_aux_t aux) vdev_set_state() argument 3237 vdev_is_bootable(vdev_t * vd) vdev_is_bootable() argument 3292 vdev_log_state_valid(vdev_t * vd) vdev_log_state_valid() argument 3309 vdev_expand(vdev_t * vd,uint64_t txg) vdev_expand() argument 3324 vdev_split(vdev_t * vd) vdev_split() argument 3340 vdev_deadman(vdev_t * vd) vdev_deadman() argument [all...] |
H A D | vdev_label.c | 181 vdev_label_read(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, in vdev_label_read() argument 188 zio_nowait(zio_read_phys(zio, vd, in vdev_label_read() 189 vdev_label_offset(vd->vdev_psize, l, offset), in vdev_label_read() 195 vdev_label_write(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, in vdev_label_write() argument 204 zio_nowait(zio_write_phys(zio, vd, in vdev_label_write() 205 vdev_label_offset(vd->vdev_psize, l, offset), in vdev_label_write() 214 vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_t getstats, in vdev_config_generate() argument 221 fnvlist_add_string(nv, ZPOOL_CONFIG_TYPE, vd->vdev_ops->vdev_op_type); in vdev_config_generate() 223 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ID, vd->vdev_id); in vdev_config_generate() 224 fnvlist_add_uint64(nv, ZPOOL_CONFIG_GUID, vd in vdev_config_generate() 428 vdev_label_read_config(vdev_t * vd,uint64_t txg) vdev_label_read_config() argument 501 vdev_inuse(vdev_t * vd,uint64_t crtxg,vdev_labeltype_t reason,uint64_t * spare_guid,uint64_t * l2cache_guid) vdev_inuse() argument 620 vdev_label_init(vdev_t * vd,uint64_t crtxg,vdev_labeltype_t reason) vdev_label_init() argument 883 vdev_t *vd = zio->io_vd; vdev_uberblock_load_done() local 911 vdev_uberblock_load_impl(zio_t * zio,vdev_t * vd,int flags,struct ubl_cbdata * cbp) vdev_uberblock_load_impl() argument 987 vdev_uberblock_sync(zio_t * zio,uberblock_t * ub,vdev_t * vd,int flags) vdev_uberblock_sync() argument 1085 vdev_label_sync(zio_t * zio,vdev_t * vd,int l,uint64_t txg,int flags) vdev_label_sync() argument 1130 vdev_t *vd; vdev_label_sync_list() local 1184 vdev_t *vd; vdev_config_sync() local [all...] |
H A D | vdev_disk.c | 53 vdev_disk_alloc(vdev_t *vd) in vdev_disk_alloc() argument 57 dvd = vd->vdev_tsd = kmem_zalloc(sizeof (vdev_disk_t), KM_SLEEP); in vdev_disk_alloc() 66 vdev_disk_free(vdev_t *vd) in vdev_disk_free() argument 68 vdev_disk_t *dvd = vd->vdev_tsd; in vdev_disk_free() 76 * callbacks and free vd->vdev_tsd. in vdev_disk_free() 85 vd->vdev_tsd = NULL; in vdev_disk_free() 93 vdev_t *vd = (vdev_t *)arg; in vdev_disk_off_notify() local 94 vdev_disk_t *dvd = vd->vdev_tsd; in vdev_disk_off_notify() 108 * freeing of vd->vdev_tsd to the offline finalize or a reopen. in vdev_disk_off_notify() 111 vdev_disk_close(vd); in vdev_disk_off_notify() 129 vdev_t *vd = (vdev_t *)arg; vdev_disk_off_finalize() local 164 vdev_t *vd = (vdev_t *)arg; vdev_disk_dgrd_finalize() local 186 vdev_disk_hold(vdev_t * vd) vdev_disk_hold() argument 228 vdev_disk_rele(vdev_t * vd) vdev_disk_rele() argument 245 vdev_disk_get_space(vdev_t * vd,uint64_t capacity,uint_t blksz) vdev_disk_get_space() argument 283 vdev_disk_open(vdev_t * vd,uint64_t * psize,uint64_t * max_psize,uint64_t * ashift) vdev_disk_open() argument 586 vdev_disk_close(vdev_t * vd) vdev_disk_close() argument 621 vdev_disk_physio(vdev_t * vd,caddr_t data,size_t size,uint64_t offset,int flags,boolean_t isdump) vdev_disk_physio() argument 721 vdev_t *vd = zio->io_vd; vdev_disk_io_start() local 825 vdev_t *vd = zio->io_vd; vdev_disk_io_done() local [all...] |
H A D | vdev_root.c | 50 too_many_errors(vdev_t *vd, int numerrors) in too_many_errors() argument 52 ASSERT3U(numerrors, <=, vd->vdev_children); in too_many_errors() 57 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_root_open() argument 63 if (vd->vdev_children == 0) { in vdev_root_open() 64 vd->vdev_stat.vs_aux = VDEV_AUX_BAD_LABEL; in vdev_root_open() 68 vdev_open_children(vd); in vdev_root_open() 70 for (int c = 0; c < vd->vdev_children; c++) { in vdev_root_open() 71 vdev_t *cvd = vd->vdev_child[c]; in vdev_root_open() 79 if (too_many_errors(vd, numerrors)) { in vdev_root_open() 80 vd in vdev_root_open() 92 vdev_root_close(vdev_t * vd) vdev_root_close() argument 99 vdev_root_state_change(vdev_t * vd,int faulted,int degraded) vdev_root_state_change() argument [all...] |
H A D | vdev_file.c | 40 vdev_file_hold(vdev_t *vd) in vdev_file_hold() argument 42 ASSERT(vd->vdev_path != NULL); in vdev_file_hold() 46 vdev_file_rele(vdev_t *vd) in vdev_file_rele() argument 48 ASSERT(vd->vdev_path != NULL); in vdev_file_rele() 52 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_file_open() argument 63 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_file_open() 64 vd->vdev_stat.vs_aux = VDEV_AUX_BAD_LABEL; in vdev_file_open() 72 if (vd->vdev_tsd != NULL) { in vdev_file_open() 73 ASSERT(vd in vdev_file_open() 125 vdev_file_close(vdev_t * vd) vdev_file_close() argument 188 vdev_t *vd = zio->io_vd; vdev_file_io_start() local [all...] |
/titanic_51/usr/src/uts/sun4v/io/ |
H A D | vds.c | 75 #define VD_NAME "vd" 218 (vd->dring + (i)*vd->descriptor_size)) 221 #define VD_CLIENT(vd) \ argument 222 (((vd)->xfer_mode == VIO_DESC_MODE) ? "in-band client" : \ 223 (((vd)->xfer_mode == VIO_DRING_MODE_V1_0) ? "dring client" : \ 224 (((vd)->xfer_mode == 0) ? "null client" : \ 228 #define VD_DSKIMG_LABEL_READ(vd, labelp) \ argument 229 vd_dskimg_rw(vd, VD_SLICE_NONE, VD_OP_BREAD, (caddr_t)labelp, \ 233 #define VD_DSKIMG_LABEL_WRITE(vd, label argument 238 VD_DSKIMG(vd) global() argument 242 VD_WRITE_INDEX_NEXT(vd,id) global() argument 424 struct vd *vd; /* vd instance task is for */ global() member 440 typedef struct vd { global() struct 441 idvd global() argument 442 initializedvd global() argument 445 vdsvd global() argument 452 device_pathvd global() argument 456 vdisk_sizevd global() argument 457 vdisk_bsizevd global() argument 458 vdisk_typevd global() argument 459 vdisk_labelvd global() argument 460 vdisk_mediavd global() argument 478 slicesvd global() argument 483 statevd global() argument 494 inband_taskvd global() argument 495 dring_taskvd global() argument 498 enabledvd global() argument 520 VD_LABEL_VTOC(vd) global() argument 523 VD_LABEL_EFI_GPT(vd,lba) global() argument 525 VD_LABEL_EFI_GPE(vd,lba) global() argument 755 vd_dskimg_io_params(vd_t * vd,int slice,size_t * blkp,size_t * lenp) vd_dskimg_io_params() argument 872 vd_dskimg_rw(vd_t * vd,int slice,int operation,caddr_t data,size_t offset,size_t len) vd_dskimg_rw() argument 1080 vd_dskimg_set_vtoc(vd_t * vd,struct dk_label * label) vd_dskimg_set_vtoc() argument 1150 vd_dskimg_get_devid_block(vd_t * vd,size_t * blkp) vd_dskimg_get_devid_block() argument 1233 vd_dskimg_read_devid(vd_t * vd,ddi_devid_t * devid) vd_dskimg_read_devid() argument 1309 vd_dskimg_write_devid(vd_t * vd,ddi_devid_t devid) vd_dskimg_write_devid() argument 1375 vd_do_scsi_rdwr(vd_t * vd,int operation,caddr_t data,size_t blk,size_t len) vd_do_scsi_rdwr() argument 1502 vd_scsi_rdwr(vd_t * vd,int operation,caddr_t data,size_t vblk,size_t vlen) vd_scsi_rdwr() argument 1602 vd_slice_flabel_read(vd_t * vd,caddr_t data,size_t offset,size_t length) vd_slice_flabel_read() argument 1658 vd_slice_flabel_write(vd_t * vd,caddr_t data,size_t offset,size_t length) vd_slice_flabel_write() argument 1744 vd_slice_fake_rdwr(vd_t * vd,int slice,int operation,caddr_t * datap,size_t * blkp,size_t * lengthp) vd_slice_fake_rdwr() argument 1891 vd_flush_write(vd_t * vd) vd_flush_write() argument 1910 vd_t *vd = task->vd; vd_bio_task() local 1971 vd_t *vd = task->vd; vd_start_bio() local 2249 vd_need_reset(vd_t * vd,boolean_t reset_ldc) vd_need_reset() argument 2263 vd_reset_if_needed(vd_t * vd) vd_reset_if_needed() argument 2338 vd_mark_in_reset(vd_t * vd) vd_mark_in_reset() argument 2354 vd_mark_elem_done(vd_t * vd,int idx,int elem_status,int elem_nbytes) vd_mark_elem_done() argument 2415 vd_t *vd = task->vd; vd_complete_bio() local 2580 vd_t *vd = task->vd; vd_complete_notify() local 2963 vd_slice_geom_isvalid(vd_t * vd,struct dk_geom * geom) vd_slice_geom_isvalid() argument 2983 vd_slice_vtoc_isvalid(vd_t * vd,struct extvtoc * vtoc) vd_slice_vtoc_isvalid() argument 3044 vd_do_slice_ioctl(vd_t * vd,int cmd,void * ioctl_arg) vd_do_slice_ioctl() argument 3143 vds_efi_alloc_and_read(vd_t * vd,efi_gpt_t ** gpt,efi_gpe_t ** gpe) vds_efi_alloc_and_read() argument 3156 vds_efi_free(vd_t * vd,efi_gpt_t * gpt,efi_gpe_t * gpe) vds_efi_free() argument 3166 vd_dskimg_validate_efi(vd_t * vd) vd_dskimg_validate_efi() argument 3233 vd_dskimg_validate_geometry(vd_t * vd) vd_dskimg_validate_geometry() argument 3288 vd_do_dskimg_ioctl(vd_t * vd,int cmd,void * ioctl_arg) vd_do_dskimg_ioctl() argument 3401 vd_backend_ioctl(vd_t * vd,int cmd,caddr_t arg) vd_backend_ioctl() argument 3480 vd_do_ioctl(vd_t * vd,vd_dring_payload_t * request,void * buf,vd_ioctl_t * ioctl) vd_do_ioctl() argument 3611 vd_t *vd = task->vd; vd_ioctl() local 3711 vd_t *vd = task->vd; vd_get_devid() local 3790 vd_scsi_reset(vd_t * vd) vd_scsi_reset() argument 3807 vd_t *vd = task->vd; vd_reset() local 3831 vd_t *vd = task->vd; vd_get_capacity() local 3875 vd_t *vd = task->vd; vd_get_access() local 3914 vd_t *vd = task->vd; vd_set_access() local 4028 vd_reset_access(vd_t * vd) vd_reset_access() argument 4136 vd_t *vd = task->vd; vd_do_process_task() local 4208 vd_t *vd = task->vd; vd_process_task() local 4325 vd_process_ver_msg(vd_t * vd,vio_msg_t * msg,size_t msglen) vd_process_ver_msg() argument 4388 vd_set_exported_operations(vd_t * vd) vd_set_exported_operations() argument 4424 vd_process_attr_msg(vd_t * vd,vio_msg_t * msg,size_t msglen) vd_process_attr_msg() argument 4548 vd_process_dring_reg_msg(vd_t * vd,vio_msg_t * msg,size_t msglen) vd_process_dring_reg_msg() argument 4689 vd_process_dring_unreg_msg(vd_t * vd,vio_msg_t * msg,size_t msglen) vd_process_dring_unreg_msg() argument 4738 vd_check_seq_num(vd_t * vd,uint64_t seq_num) vd_check_seq_num() argument 4770 vd_process_desc_msg(vd_t * vd,vio_msg_t * msg,size_t msglen) vd_process_desc_msg() argument 4824 vd_process_element(vd_t * vd,vd_task_type_t type,uint32_t idx,vio_msg_t * msg,size_t msglen) vd_process_element() argument 4867 vd_process_element_range(vd_t * vd,int start,int end,vio_msg_t * msg,size_t msglen) vd_process_element_range() argument 4917 vd_process_dring_msg(vd_t * vd,vio_msg_t * msg,size_t msglen) vd_process_dring_msg() argument 4995 vd_do_process_msg(vd_t * vd,vio_msg_t * msg,size_t msglen) vd_do_process_msg() argument 5129 vd_process_msg(vd_t * vd,vio_msg_t * msg,size_t msglen) vd_process_msg() argument 5211 vd_enabled(vd_t * vd) vd_enabled() argument 5224 vd_t *vd = (vd_t *)arg; vd_recv_msg() local 5295 vd_t *vd = (vd_t *)(void *)arg; vd_handle_ldc_events() local 5443 vd_dskimg_is_iso_image(vd_t * vd) vd_dskimg_is_iso_image() argument 5493 vd_is_atapi_device(vd_t * vd) vd_is_atapi_device() argument 5521 vd_setup_full_disk(vd_t * vd) vd_setup_full_disk() argument 5658 vd_setup_partition_vtoc(vd_t * vd) vd_setup_partition_vtoc() argument 5801 vd_setup_partition_efi(vd_t * vd) vd_setup_partition_efi() argument 5884 vd_setup_backend_vnode(vd_t * vd) vd_setup_backend_vnode() argument 5955 vd_setup_slice_image(vd_t * vd) vd_setup_slice_image() argument 5990 vd_setup_disk_image(vd_t * vd) vd_setup_disk_image() argument 6098 vd_open_using_ldi_by_name(vd_t * vd,int flags) vd_open_using_ldi_by_name() argument 6131 vd_setup_backend_ldi(vd_t * vd) vd_setup_backend_ldi() argument 6231 vd_setup_single_slice_disk(vd_t * vd) vd_setup_single_slice_disk() argument 6354 vd_backend_check_size(vd_t * vd) vd_backend_check_size() argument 6501 vd_identify_dev(vd_t * vd,int * dtype) vd_identify_dev() argument 6563 vd_setup_vd(vd_t * vd) vd_setup_vd() argument 6722 vd_t *vd; vds_do_init_vd() local 6889 vd_t *vd = (vd_t *)arg; vds_destroy_vd() local 7004 vd_t *vd = NULL; vds_init_vd() local [all...] |
/titanic_51/usr/src/lib/libast/common/vmalloc/ |
H A D | vmpool.c | 49 reg Vmdata_t* vd = vm->data; local 57 if(size != vd->pool) 58 { if(vd->pool <= 0) 59 vd->pool = size; 63 SETINUSE(vd, inuse); 64 if(!(local = vd->mode&VM_TRUST) ) 65 { GETLOCAL(vd,local); 66 if(ISLOCK(vd, local)) 67 { CLRINUSE(vd, inuse); 70 SETLOCK(vd, local); [all …]
|
H A D | vmlast.c | 46 reg Vmdata_t* vd = vm->data; local 50 SETINUSE(vd, inuse); 51 if(!(local = vd->mode&VM_TRUST)) 52 { GETLOCAL(vd,local); 53 if(ISLOCK(vd,local)) 54 { CLRINUSE(vd, inuse); 57 SETLOCK(vd,local); 63 { for(last = NIL(Seg_t*), seg = vd->seg; seg; last = seg, seg = seg->next) 68 seg->next = vd->seg; 69 vd->seg = seg; [all …]
|
H A D | vmbest.c | 93 static int vmisfree(Vmdata_t* vd, Block_t* b) in vmisfree() argument 95 static int vmisfree(vd,b) in vmisfree() 96 Vmdata_t* vd; in vmisfree() 103 if(b == vd->wild) 107 return vmonlist(TINY(vd)[INDEX(SIZE(b))], b); 109 if(vd->root) 110 return vmintree(vd->root, b); 117 static int vmisjunk(Vmdata_t* vd, Block_t* b) in vmisjunk() argument 119 static int vmisjunk(vd,b) in vmisjunk() 120 Vmdata_t* vd; in vmisjunk() [all …]
|
H A D | vmprivate.c | 51 reg Vmdata_t* vd = vm->data; local 58 if(!_Vmtrace && vm == Vmheap && (vd->mode&VM_TRUST) ) 62 if(vd->incr <= 0) /* this is just _Vmheap on the first call */ 63 vd->incr = VMHEAPINCR; 69 if((size = ROUND(s,vd->incr)) < s) 73 if(size > 2*vd->incr && vm->disc->round < vd->incr) 74 vd->incr *= 2; 77 if(!(seg = vd->seg) ) 80 { if(!vd->wild || SEG(vd->wild) != seg) 83 { s = SIZE(vd->wild) + sizeof(Head_t); [all …]
|
H A D | vmclear.c | 45 reg Vmdata_t* vd = vm->data; local 48 SETINUSE(vd, inuse); 49 if(!(vd->mode&VM_TRUST) ) 50 { if(ISLOCK(vd,0)) 51 { CLRINUSE(vd, inuse); 54 SETLOCK(vd,0); 57 vd->free = vd->wild = NIL(Block_t*); 58 vd->pool = 0; 60 if(vd->mode&(VM_MTBEST|VM_MTDEBUG|VM_MTPROFILE) ) 61 { vd->root = NIL(Block_t*); [all …]
|
H A D | vmset.c | 45 reg Vmdata_t* vd = vm->data; local 48 return vd->mode; 50 SETINUSE(vd, inuse); 51 if(!(vd->mode&VM_TRUST) ) 52 { if(ISLOCK(vd,0)) 53 { CLRINUSE(vd, inuse); 56 SETLOCK(vd,0); 59 mode = vd->mode; 62 vd->mode |= (flags&VM_FLAGS); 63 else vd->mode &= ~(flags&VM_FLAGS); [all …]
|
H A D | vmstat.c | 46 reg Vmdata_t* vd = vm ? vm->data : Vmregion->data; local 49 SETINUSE(vd, inuse); 51 { CLRINUSE(vd, inuse); 54 if(!(vd->mode&VM_TRUST)) 55 { if(ISLOCK(vd,0)) 56 { CLRINUSE(vd, inuse); 59 SETLOCK(vd,0); 67 if(vd->mode&VM_MTLAST) 69 else if((vd->mode&VM_MTPOOL) && (s = vd->pool) > 0) 71 for(b = vd->free; b; b = SEGLINK(b)) [all …]
|
H A D | vmopen.c | 40 Vmdata_t vd; /* space for the region itself */ member 57 reg Vmdata_t* vd; local 90 vd = (Vmdata_t*)addr; 91 if((vd->mode&meth->meth) != 0) 92 { vm->data = vd; 119 vd = (Vmdata_t*)addr; 120 vd->mode = (mode&VM_FLAGS) | meth->meth; 121 vd->incr = incr; 122 vd->pool = 0; 123 vd->free = vd->wild = NIL(Block_t*); [all …]
|
H A D | vmdebug.c | 90 reg Vmdata_t* vd = vm->data; local 93 if(vd->mode&VM_DBABORT) 276 reg Vmdata_t* vd = vm->data; local 279 SETINUSE(vd, inuse); 280 GETLOCAL(vd,local); 281 if(ISLOCK(vd,local) || !addr) 282 { CLRINUSE(vd, inuse); 285 SETLOCK(vd,local); 288 for(seg = vd->seg; seg; seg = seg->next) 324 CLRLOCK(vd,local); [all …]
|
/titanic_51/usr/src/uts/common/fs/zfs/sys/ |
H A D | vdev.h | 57 extern int vdev_validate_aux(vdev_t *vd); 58 extern zio_t *vdev_probe(vdev_t *vd, zio_t *pio); 60 extern boolean_t vdev_is_bootable(vdev_t *vd); 62 extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid); 64 extern void vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t d, 66 extern boolean_t vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t d, 68 extern boolean_t vdev_dtl_empty(vdev_t *vd, vdev_dtl_type_t d); 69 extern void vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg, 71 extern boolean_t vdev_dtl_required(vdev_t *vd); 72 extern boolean_t vdev_resilver_needed(vdev_t *vd, [all...] |
H A D | vdev_impl.h | 59 typedef int vdev_open_func_t(vdev_t *vd, uint64_t *size, uint64_t *max_size, 61 typedef void vdev_close_func_t(vdev_t *vd); 62 typedef uint64_t vdev_asize_func_t(vdev_t *vd, uint64_t psize); 65 typedef void vdev_state_change_func_t(vdev_t *vd, int, int); 66 typedef void vdev_hold_func_t(vdev_t *vd); 67 typedef void vdev_rele_func_t(vdev_t *vd); 237 #define VDEV_UBERBLOCK_SHIFT(vd) \ argument 238 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \ 240 #define VDEV_UBERBLOCK_COUNT(vd) \ argument 241 (VDEV_UBERBLOCK_RING >> VDEV_UBERBLOCK_SHIFT(vd)) 242 VDEV_UBERBLOCK_OFFSET(vd,n) global() argument 244 VDEV_UBERBLOCK_SIZE(vd) global() argument [all...] |
/titanic_51/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmbest.c | 84 static int vmisfree(Vmdata_t* vd, Block_t* b) in vmisfree() argument 86 static int vmisfree(vd,b) in vmisfree() 87 Vmdata_t* vd; in vmisfree() 94 if(b == vd->wild) 98 return vmonlist(TINY(vd)[INDEX(SIZE(b))], b); 100 if(vd->root) 101 return vmintree(vd->root, b); 108 static int vmisjunk(Vmdata_t* vd, Block_t* b) in vmisjunk() argument 110 static int vmisjunk(vd,b) in vmisjunk() 111 Vmdata_t* vd; in vmisjunk() 168 _vmbestcheck(Vmdata_t * vd,Block_t * freeb) _vmbestcheck() argument 245 bestsearch(Vmdata_t * vd,reg size_t size,Block_t * wanted) bestsearch() argument 266 else TINY(vd)[0] = r; global() local 361 bestreclaim(reg Vmdata_t * vd,Block_t * wanted,int c) bestreclaim() argument 377 { LINK(fp) = CACHE(vd)[S_CACHE]; CACHE(vd)[S_CACHE] = fp; global() local 383 { list = CACHE(vd)[n]; CACHE(vd)[n] = NIL(Block_t*); global() local 469 TINY(vd)[s] = fp; global() local 532 reg Vmdata_t* vd = vm->data; global() local 593 CACHE(vd)[C_INDEX(SIZE(bp))] = bp; global() local 614 reg Vmdata_t* vd = vm->data; global() local 657 CACHE(vd)[S_CACHE] = tp; global() local 727 reg Vmdata_t* vd = vm->data; global() local 776 reg Vmdata_t* vd = vm->data; global() local 813 CACHE(vd)[INDEX(s)] = bp; global() local 820 CACHE(vd)[S_CACHE] = bp; global() local 854 Vmdata_t *vd = vm->data; global() local 943 CACHE(vd)[S_CACHE] = rp; global() local 972 Vmdata_t *vd = vm->data; global() local 1017 Vmdata_t *vd = vm->data; global() local 1064 CACHE(vd)[C_INDEX(SIZE(tp))] = tp; global() local 1075 CACHE(vd)[C_INDEX(SIZE(tp))] = tp; global() local [all...] |
H A D | vmopen.c | 41 { Vmdata_t vd; /* root of usable data space */ member 43 } vd; member 65 Vmdata_t *vd; local 98 vd = &init->vd.vd; /**/ASSERT(VLONG(vd)%ALIGN == 0); 103 /* make sure vd->incr is properly rounded and get initial memory */ 114 vd = &init->vd 124 TINY(vd)[k] = NIL(Block_t*); global() local 126 CACHE(vd)[k] = NIL(Block_t*); global() local [all...] |
H A D | vmprivate.c | 52 reg Vmdata_t* vd = vm->data; local 56 if(vd->incr <= 0) /* this is just _Vmheap on the first call */ 57 vd->incr = _Vmpagesize*sizeof(Void_t*); 63 if((size = ROUND(s,vd->incr)) < s) 67 if(size > 2*vd->incr && vm->disc->round < vd->incr) 68 vd->incr *= 2; 70 if(!(seg = vd->seg) ) /* there is no current segment */ 96 if(vd->mode&(VM_MTBEST|VM_MTDEBUG|VM_MTPROFILE) ) 105 if(bp == vd 174 CACHE(vd)[C_INDEX(SIZE(tp))] = tp; global() local 197 reg Vmdata_t* vd = vm->data; global() local [all...] |
H A D | vmlast.c | 47 Vmdata_t *vd = vm->data; local 53 for(last = NIL(Seg_t*), seg = vd->seg; seg; last = seg, seg = seg->next) 58 seg->next = vd->seg; 59 vd->seg = seg; 80 vd->free = seg->last = tp; 82 if(!local && (vd->mode&VM_TRACE) && _Vmtrace) 103 Vmdata_t *vd = vm->data; local 110 if(data != (Void_t*)vd->free) 113 { seg = vd->seg; 114 if(!local && (vd 152 Vmdata_t *vd = vm->data; global() local 280 Vmdata_t *vd = vm->data; global() local 303 Vmdata_t *vd = vm->data; global() local 329 Vmdata_t *vd = vm->data; global() local 369 Vmdata_t *vd = vm->data; global() local [all...] |
H A D | vmpool.c | 53 reg Vmdata_t *vd = vm->data; local 58 if(size != vd->pool) 59 { if(vd->pool <= 0) 60 vd->pool = size; 66 if((tp = vd->free) ) /* there is a ready free block */ 67 { vd->free = SEGLINK(tp); 74 for(tp = NIL(Block_t*), seg = vd->seg; seg; seg = seg->next) 80 if((tp = (*_Vmextend)(vm,ROUND(size,vd->incr),NIL(Vmsearch_f))) ) 92 SEGLINK(next) = vd->free; 93 vd 127 Vmdata_t* vd = vm->data; global() local 168 Vmdata_t *vd = vm->data; global() local 202 Vmdata_t *vd = vm->data; global() local 254 Vmdata_t *vd = vm->data; global() local [all...] |
H A D | vmclear.c | 44 Vmdata_t *vd = vm->data; local 48 vd->free = vd->wild = NIL(Block_t*); 49 vd->pool = 0; 51 if(vd->mode&(VM_MTBEST|VM_MTDEBUG|VM_MTPROFILE) ) 52 { vd->root = NIL(Block_t*); 54 TINY(vd)[s] = NIL(Block_t*); local 56 CACHE(vd)[s] = NIL(Block_t*); local 59 for(seg = vd->seg; seg; seg = next) 67 if((vd 72 CACHE(vd)[C_INDEX(SIZE(tp))] = tp; global() local [all...] |
H A D | vmstat.c | 46 Vmdata_t *vd; local 71 vd = vm->data; 72 st->mode = vd->mode; 74 if(vd->mode&VM_MTLAST) 76 else if((vd->mode&VM_MTPOOL) && (s = vd->pool) > 0) 78 for(b = vd->free; b; b = SEGLINK(b)) 82 for(seg = vd->seg; seg; seg = seg->next) 89 if(vd->mode&(VM_MTDEBUG|VM_MTBEST|VM_MTPROFILE)) 100 if(vd [all...] |
/titanic_51/usr/src/lib/libadm/common/ |
H A D | rdwr_vtoc.c | 47 #define libadm_vtoc_copy(vs, vd) \ argument 50 vd->v_bootinfo[0] = (unsigned)vs->v_bootinfo[0]; \ 51 vd->v_bootinfo[1] = (unsigned)vs->v_bootinfo[1]; \ 52 vd->v_bootinfo[2] = (unsigned)vs->v_bootinfo[2]; \ 53 vd->v_sanity = (unsigned)vs->v_sanity; \ 54 vd->v_version = (unsigned)vs->v_version; \ 55 bcopy(vs->v_volume, vd->v_volume, LEN_DKL_VVOL); \ 56 vd->v_sectorsz = vs->v_sectorsz; \ 57 vd->v_nparts = vs->v_nparts; \ 58 vd [all...] |