Home
last modified time | relevance | path

Searched refs:vd (Results 1 – 25 of 90) sorted by relevance

1234

/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dvdev.c188 vdev_default_asize(vdev_t *vd, uint64_t psize) in vdev_default_asize() argument
190 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize()
193 for (int c = 0; c < vd->vdev_children; c++) { in vdev_default_asize()
194 csize = vdev_psize_to_asize(vd->vdev_child[c], psize); in vdev_default_asize()
208 vdev_get_min_asize(vdev_t *vd) in vdev_get_min_asize() argument
210 vdev_t *pvd = vd->vdev_parent; in vdev_get_min_asize()
217 return (vd->vdev_asize); in vdev_get_min_asize()
223 if (vd == vd->vdev_top) in vdev_get_min_asize()
224 return (P2ALIGN(vd->vdev_asize, 1ULL << vd->vdev_ms_shift)); in vdev_get_min_asize()
237 vdev_set_min_asize(vdev_t *vd) in vdev_set_min_asize() argument
[all …]
Dvdev_disk.c53 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()
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()
111 vdev_disk_close(vd); in vdev_disk_off_notify()
117 zfs_post_remove(vd->vdev_spa, vd); in vdev_disk_off_notify()
118 vd->vdev_remove_wanted = B_TRUE; in vdev_disk_off_notify()
[all …]
Dvdev_label.c187 vdev_label_read(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, in vdev_label_read() argument
194 zio_nowait(zio_read_phys(zio, vd, in vdev_label_read()
195 vdev_label_offset(vd->vdev_psize, l, offset), in vdev_label_read()
201 vdev_label_write(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, in vdev_label_write() argument
210 zio_nowait(zio_write_phys(zio, vd, in vdev_label_write()
211 vdev_label_offset(vd->vdev_psize, l, offset), in vdev_label_write()
220 vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_t getstats, in vdev_config_generate() argument
227 fnvlist_add_string(nv, ZPOOL_CONFIG_TYPE, vd->vdev_ops->vdev_op_type); in vdev_config_generate()
229 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ID, vd->vdev_id); in vdev_config_generate()
230 fnvlist_add_uint64(nv, ZPOOL_CONFIG_GUID, vd->vdev_guid); in vdev_config_generate()
[all …]
Dvdev_file.c54 vdev_file_hold(vdev_t *vd) in vdev_file_hold() argument
56 ASSERT(vd->vdev_path != NULL); in vdev_file_hold()
60 vdev_file_rele(vdev_t *vd) in vdev_file_rele() argument
62 ASSERT(vd->vdev_path != NULL); in vdev_file_rele()
66 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_file_open() argument
77 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_file_open()
78 vd->vdev_stat.vs_aux = VDEV_AUX_BAD_LABEL; in vdev_file_open()
86 if (vd->vdev_tsd != NULL) { in vdev_file_open()
87 ASSERT(vd->vdev_reopening); in vdev_file_open()
88 vf = vd->vdev_tsd; in vdev_file_open()
[all …]
Dvdev_geom.c54 vdev_t *vd; member
87 vdev_geom_set_rotation_rate(vdev_t *vd, struct g_consumer *cp) in vdev_geom_set_rotation_rate() argument
94 vd->vdev_rotation_rate = rate; in vdev_geom_set_rotation_rate()
96 vd->vdev_rotation_rate = VDEV_RATE_UNKNOWN; in vdev_geom_set_rotation_rate()
100 vdev_geom_set_physpath(vdev_t *vd, struct g_consumer *cp, in vdev_geom_set_physpath() argument
115 old_physpath = vd->vdev_physpath; in vdev_geom_set_physpath()
116 vd->vdev_physpath = spa_strdup(physpath); in vdev_geom_set_physpath()
120 vd->vdev_physpath) != 0); in vdev_geom_set_physpath()
133 spa_async_request(vd->vdev_spa, SPA_ASYNC_CONFIG_UPDATE); in vdev_geom_set_physpath()
150 vdev_t *vd = elem->vd; in vdev_geom_attrchanged() local
[all …]
Dvdev_root.c50 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->vdev_stat.vs_aux = VDEV_AUX_NO_REPLICAS; in vdev_root_open()
[all …]
Dtrim_map.c40 #define TRIM_ZIO_END(vd, offset, size) (offset + \ argument
41 P2ROUNDUP(size, 1ULL << vd->vdev_top->vdev_ashift))
107 static void trim_map_vdev_commit_done(spa_t *spa, vdev_t *vd);
148 trim_map_create(vdev_t *vd) in trim_map_create() argument
152 ASSERT(zfs_trim_enabled && !vd->vdev_notrim && in trim_map_create()
153 vd->vdev_ops->vdev_op_leaf); in trim_map_create()
167 vd->vdev_trimmap = tm; in trim_map_create()
171 trim_map_destroy(vdev_t *vd) in trim_map_destroy() argument
176 ASSERT(vd->vdev_ops->vdev_op_leaf); in trim_map_destroy()
181 tm = vd->vdev_trimmap; in trim_map_destroy()
[all …]
Dzfs_fm.c107 const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, in zfs_ereport_start() argument
157 if (vd != NULL) { in zfs_ereport_start()
167 if (zio->io_vd == vd && !vdev_accessible(vd, zio)) in zfs_ereport_start()
176 vd->vdev_ops->vdev_op_leaf && in zfs_ereport_start()
177 vdev_dtl_contains(vd, DTL_MISSING, zio->io_txg, 1)) in zfs_ereport_start()
186 if (vd != NULL && in zfs_ereport_start()
188 (vd->vdev_remove_wanted || vd->vdev_state == VDEV_STATE_REMOVED)) in zfs_ereport_start()
229 vd != NULL ? vd->vdev_guid : 0); in zfs_ereport_start()
257 if (vd != NULL) { in zfs_ereport_start()
258 vdev_t *pvd = vd->vdev_parent; in zfs_ereport_start()
[all …]
Dspa.c155 static sysevent_t *spa_event_create(spa_t *spa, vdev_t *vd, const char *name);
1266 vdev_t *vd; in spa_config_parse() local
1267 if ((error = spa_config_parse(spa, &vd, child[c], *vdp, c, in spa_config_parse()
1395 vdev_t *vd, *tvd; in spa_load_spares() local
1403 vd = spa->spa_spares.sav_vdevs[i]; in spa_load_spares()
1406 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares()
1409 vdev_close(vd); in spa_load_spares()
1410 vdev_free(vd); in spa_load_spares()
1441 VERIFY(spa_config_parse(spa, &vd, spares[i], NULL, 0, in spa_load_spares()
1443 ASSERT(vd != NULL); in spa_load_spares()
[all …]
Dvdev_mirror.c158 vdev_mirror_load(mirror_map_t *mm, vdev_t *vd, uint64_t zio_offset) in vdev_mirror_load() argument
174 load = vdev_queue_length(vd); in vdev_mirror_load()
175 lastoffset = vdev_queue_lastoffset(vd); in vdev_mirror_load()
177 if (vd->vdev_rotation_rate == VDEV_RATE_NON_ROTATING) { in vdev_mirror_load()
213 vdev_t *vd = zio->io_vd; in vdev_mirror_map_init() local
216 if (vd == NULL) { in vdev_mirror_map_init()
255 boolean_t replacing = (vd->vdev_ops == &vdev_replacing_ops || in vdev_mirror_map_init()
256 vd->vdev_ops == &vdev_spare_ops) && in vdev_mirror_map_init()
257 spa_load_state(vd->vdev_spa) == SPA_LOAD_NONE && in vdev_mirror_map_init()
258 dsl_scan_resilvering(vd->vdev_spa->spa_dsl_pool); in vdev_mirror_map_init()
[all …]
Dmetaslab.c295 vdev_t *vd; in metaslab_class_validate() local
307 vd = mg->mg_vd; in metaslab_class_validate()
308 ASSERT(vd->vdev_mg != NULL); in metaslab_class_validate()
309 ASSERT3P(vd->vdev_top, ==, vd); in metaslab_class_validate()
311 ASSERT3P(vd->vdev_ops, !=, &vdev_hole_ops); in metaslab_class_validate()
331 vdev_t *vd; in metaslab_class_minblocksize_update() local
340 vd = mg->mg_vd; in metaslab_class_minblocksize_update()
341 if (vd->vdev_ashift < minashift) in metaslab_class_minblocksize_update()
342 minashift = vd->vdev_ashift; in metaslab_class_minblocksize_update()
539 vdev_t *vd = mg->mg_vd; in metaslab_group_alloc_update() local
[all …]
Dspa_misc.c985 spa_aux_add(vdev_t *vd, avl_tree_t *avl) in spa_aux_add() argument
991 search.aux_guid = vd->vdev_guid; in spa_aux_add()
996 aux->aux_guid = vd->vdev_guid; in spa_aux_add()
1003 spa_aux_remove(vdev_t *vd, avl_tree_t *avl) in spa_aux_remove() argument
1009 search.aux_guid = vd->vdev_guid; in spa_aux_remove()
1017 } else if (aux->aux_pool == spa_guid(vd->vdev_spa)) { in spa_aux_remove()
1048 spa_aux_activate(vdev_t *vd, avl_tree_t *avl) in spa_aux_activate() argument
1053 search.aux_guid = vd->vdev_guid; in spa_aux_activate()
1058 found->aux_pool = spa_guid(vd->vdev_spa); in spa_aux_activate()
1090 spa_spare_add(vdev_t *vd) in spa_spare_add() argument
[all …]
/freebsd-10-stable/sys/dev/vt/
Dvt_core.c115 #define VT_LOCK(vd) mtx_lock(&(vd)->vd_lock) argument
116 #define VT_UNLOCK(vd) mtx_unlock(&(vd)->vd_lock) argument
117 #define VT_LOCK_ASSERT(vd, what) mtx_assert(&(vd)->vd_lock, what) argument
266 vt_schedule_flush(struct vt_device *vd, int ms) in vt_schedule_flush() argument
273 callout_schedule(&vd->vd_timer, hz / (1000 / ms)); in vt_schedule_flush()
277 vt_resume_flush_timer(struct vt_device *vd, int ms) in vt_resume_flush_timer() argument
280 if (!(vd->vd_flags & VDF_ASYNC) || in vt_resume_flush_timer()
281 !atomic_cmpset_int(&vd->vd_timer_armed, 0, 1)) in vt_resume_flush_timer()
284 vt_schedule_flush(vd, ms); in vt_resume_flush_timer()
288 vt_suspend_flush_timer(struct vt_device *vd) in vt_suspend_flush_timer() argument
[all …]
Dvt.h161 #define VD_PASTEBUF(vd) ((vd)->vd_pastebuf.vpb_buf) argument
162 #define VD_PASTEBUFSZ(vd) ((vd)->vd_pastebuf.vpb_bufsz) argument
163 #define VD_PASTEBUFLEN(vd) ((vd)->vd_pastebuf.vpb_len) argument
165 void vt_resume(struct vt_device *vd);
166 void vt_suspend(struct vt_device *vd);
304 typedef int vd_init_t(struct vt_device *vd);
305 typedef int vd_probe_t(struct vt_device *vd);
306 typedef void vd_postswitch_t(struct vt_device *vd);
307 typedef void vd_blank_t(struct vt_device *vd, term_color_t color);
308 typedef void vd_bitblt_text_t(struct vt_device *vd, const struct vt_window *vw,
[all …]
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
Dvdev.h58 extern int vdev_validate_aux(vdev_t *vd);
59 extern zio_t *vdev_probe(vdev_t *vd, zio_t *pio);
61 extern boolean_t vdev_is_bootable(vdev_t *vd);
63 extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid);
65 extern void vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t d,
67 extern boolean_t vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t d,
69 extern boolean_t vdev_dtl_empty(vdev_t *vd, vdev_dtl_type_t d);
70 extern void vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg,
72 extern boolean_t vdev_dtl_required(vdev_t *vd);
73 extern boolean_t vdev_resilver_needed(vdev_t *vd,
[all …]
Dvdev_impl.h62 typedef int vdev_open_func_t(vdev_t *vd, uint64_t *size, uint64_t *max_size,
64 typedef void vdev_close_func_t(vdev_t *vd);
65 typedef uint64_t vdev_asize_func_t(vdev_t *vd, uint64_t psize);
68 typedef void vdev_state_change_func_t(vdev_t *vd, int, int);
69 typedef void vdev_hold_func_t(vdev_t *vd);
70 typedef void vdev_rele_func_t(vdev_t *vd);
274 #define VDEV_UBERBLOCK_SHIFT(vd) \ argument
275 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
277 #define VDEV_UBERBLOCK_COUNT(vd) \ argument
278 (VDEV_UBERBLOCK_RING >> VDEV_UBERBLOCK_SHIFT(vd))
[all …]
/freebsd-10-stable/sys/dev/vt/hw/fb/
Dvt_fb.c87 vt_fb_ioctl(struct vt_device *vd, u_long cmd, caddr_t data, struct thread *td) in vt_fb_ioctl() argument
92 info = vd->vd_softc; in vt_fb_ioctl()
113 if (vd->vd_driver->vd_blank == NULL) in vt_fb_ioctl()
115 vd->vd_driver->vd_blank(vd, TC_BLACK); in vt_fb_ioctl()
127 vt_fb_mmap(struct vt_device *vd, vm_ooffset_t offset, vm_paddr_t *paddr, in vt_fb_mmap() argument
132 info = vd->vd_softc; in vt_fb_mmap()
149 vt_fb_setpixel(struct vt_device *vd, int x, int y, term_color_t color) in vt_fb_setpixel() argument
155 info = vd->vd_softc; in vt_fb_setpixel()
184 vt_fb_drawrect(struct vt_device *vd, int x1, int y1, int x2, int y2, int fill, in vt_fb_drawrect() argument
192 vt_fb_setpixel(vd, x, y, color); in vt_fb_drawrect()
[all …]
/freebsd-10-stable/tools/regression/usr.bin/cc/
Dfloat.c120 volatile double vd; in run_tests() local
128 vd = NAN; in run_tests()
129 test("NaN equality", fpequal(NAN, NAN) && NAN != NAN && vd != vd); in run_tests()
132 test("NaN comparison returns false", !(vd <= vd)); in run_tests()
140 vd = 0.0; in run_tests()
141 run_zero_opt_test(vd, vd); in run_tests()
143 vd = INFINITY; in run_tests()
144 run_inf_opt_test(vd); in run_tests()
147 vd = INFINITY; in run_tests()
148 x = (int)vd; in run_tests()
[all …]
/freebsd-10-stable/contrib/gcc/
Dregrename.c1073 kill_value_one_regno (unsigned int regno, struct value_data *vd) in kill_value_one_regno() argument
1077 if (vd->e[regno].oldest_regno != regno) in kill_value_one_regno()
1079 for (i = vd->e[regno].oldest_regno; in kill_value_one_regno()
1080 vd->e[i].next_regno != regno; in kill_value_one_regno()
1081 i = vd->e[i].next_regno) in kill_value_one_regno()
1083 vd->e[i].next_regno = vd->e[regno].next_regno; in kill_value_one_regno()
1085 else if ((next = vd->e[regno].next_regno) != INVALID_REGNUM) in kill_value_one_regno()
1087 for (i = next; i != INVALID_REGNUM; i = vd->e[i].next_regno) in kill_value_one_regno()
1088 vd->e[i].oldest_regno = next; in kill_value_one_regno()
1091 vd->e[regno].mode = VOIDmode; in kill_value_one_regno()
[all …]
/freebsd-10-stable/sys/dev/vt/hw/vga/
Dvt_vga.c112 vga_setwmode(struct vt_device *vd, int wmode) in vga_setwmode() argument
114 struct vga_softc *sc = vd->vd_softc; in vga_setwmode()
134 vga_setfg(struct vt_device *vd, term_color_t color) in vga_setfg() argument
136 struct vga_softc *sc = vd->vd_softc; in vga_setfg()
138 vga_setwmode(vd, 3); in vga_setfg()
149 vga_setbg(struct vt_device *vd, term_color_t color) in vga_setbg() argument
151 struct vga_softc *sc = vd->vd_softc; in vga_setbg()
153 vga_setwmode(vd, 3); in vga_setbg()
310 vga_blank(struct vt_device *vd, term_color_t color) in vga_blank() argument
312 struct vga_softc *sc = vd->vd_softc; in vga_blank()
[all …]
/freebsd-10-stable/lib/libc/xdr/
Dxdr_float.c216 struct vax_double vd;
239 vd = *((struct vax_double *)dp);
243 if ((vd.mantissa4 == lim->d.mantissa4) &&
244 (vd.mantissa3 == lim->d.mantissa3) &&
245 (vd.mantissa2 == lim->d.mantissa2) &&
246 (vd.mantissa1 == lim->d.mantissa1) &&
247 (vd.exp == lim->d.exp)) {
252 id.exp = vd.exp - VAX_DBL_BIAS + IEEE_DBL_BIAS;
253 id.mantissa1 = (vd.mantissa1 << 13) | (vd.mantissa2 >> 3);
254 id.mantissa2 = ((vd.mantissa2 & MASK(3)) << 29) |
[all …]
/freebsd-10-stable/sys/dev/fb/
Dcreator_vt.c73 creatorfb_probe(struct vt_device *vd) in creatorfb_probe() argument
102 creatorfb_init(struct vt_device *vd) in creatorfb_init() argument
114 vd->vd_softc = sc = &creatorfb_conssoftc; in creatorfb_init()
160 vt_fb_init(vd); in creatorfb_init()
166 creatorfb_blank(struct vt_device *vd, term_color_t color) in creatorfb_blank() argument
172 sc = vd->vd_softc; in creatorfb_blank()
181 creatorfb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw, in creatorfb_bitblt_bitmap() argument
186 struct creatorfb_softc *sc = vd->vd_softc; in creatorfb_bitblt_bitmap()
224 creatorfb_bitblt_text(struct vt_device *vd, const struct vt_window *vw, in creatorfb_bitblt_text() argument
248 creatorfb_bitblt_bitmap(vd, vw, in creatorfb_bitblt_text()
[all …]
/freebsd-10-stable/sys/dev/vt/hw/ofwfb/
Dofwfb.c80 ofwfb_probe(struct vt_device *vd) in ofwfb_probe() argument
105 ofwfb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw, in ofwfb_bitblt_bitmap() argument
110 struct fb_info *sc = vd->vd_softc; in ofwfb_bitblt_bitmap()
127 if (((x + width) > vd->vd_width) || ((y + height) > in ofwfb_bitblt_bitmap()
128 vd->vd_height)) in ofwfb_bitblt_bitmap()
202 ofwfb_bitblt_text(struct vt_device *vd, const struct vt_window *vw, in ofwfb_bitblt_text() argument
226 ofwfb_bitblt_bitmap(vd, vw, in ofwfb_bitblt_text()
233 if (!vd->vd_mshown) in ofwfb_bitblt_text()
243 if (vt_is_cursor_in_area(vd, &drawn_area)) { in ofwfb_bitblt_text()
244 ofwfb_bitblt_bitmap(vd, vw, in ofwfb_bitblt_text()
[all …]
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Analysis/
DUninitializedValues.cpp35 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) { in isTrackedVar() argument
36 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() && in isTrackedVar()
37 !vd->isExceptionVariable() && in isTrackedVar()
38 vd->getDeclContext() == dc) { in isTrackedVar()
39 QualType ty = vd->getType(); in isTrackedVar()
71 const VarDecl *vd = *I; in computeMap() local
72 if (isTrackedVar(vd, &dc)) in computeMap()
73 map[vd] = count++; in computeMap()
131 ValueVector::reference operator[](const VarDecl *vd);
134 const VarDecl *vd) { in getValue() argument
[all …]
/freebsd-10-stable/sys/dev/hptnr/
Dhptnr_osm_bsd.c268 PVDEV vd = pCmd->target; in hpt_flush_done() local
270 if (mIsArray(vd->type) && vd->u.array.transform && vd!=vd->u.array.transform->target) { in hpt_flush_done()
271 vd = vd->u.array.transform->target; in hpt_flush_done()
272 HPT_ASSERT(vd); in hpt_flush_done()
273 pCmd->target = vd; in hpt_flush_done()
286 static int hpt_flush_vdev(PVBUS_EXT vbus_ext, PVDEV vd) in hpt_flush_vdev() argument
292 KdPrint(("flusing dev %p", vd)); in hpt_flush_vdev()
296 if (mIsArray(vd->type) && vd->u.array.transform) in hpt_flush_vdev()
297 count = max(vd->u.array.transform->source->cmds_per_request, in hpt_flush_vdev()
298 vd->u.array.transform->target->cmds_per_request); in hpt_flush_vdev()
[all …]

1234