Home
last modified time | relevance | path

Searched refs:gsp (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/geom/
H A Dgeom_slice.c58 struct g_slicer *gsp; in g_slice_alloc() local
60 gsp = g_malloc(sizeof *gsp, M_WAITOK | M_ZERO); in g_slice_alloc()
62 gsp->softc = g_malloc(scsize, M_WAITOK | M_ZERO); in g_slice_alloc()
64 gsp->softc = NULL; in g_slice_alloc()
65 gsp->slices = g_malloc(nslice * sizeof(struct g_slice), in g_slice_alloc()
67 gsp->nslice = nslice; in g_slice_alloc()
68 return (gsp); in g_slice_alloc()
74 struct g_slicer *gsp; in g_slice_free() local
76 gsp = gp->softc; in g_slice_free()
84 if (gsp == NULL) in g_slice_free()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_agents.c79 guid_search_t *gsp = arg; in zfs_agent_iter_vdev() local
91 if (zfs_agent_iter_vdev(zhp, child[c], gsp)) { in zfs_agent_iter_vdev()
92 gsp->gs_vdev_type = DEVICE_TYPE_PRIMARY; in zfs_agent_iter_vdev()
103 if (zfs_agent_iter_vdev(zhp, child[c], gsp)) { in zfs_agent_iter_vdev()
104 gsp->gs_vdev_type = DEVICE_TYPE_SPARE; in zfs_agent_iter_vdev()
112 if (zfs_agent_iter_vdev(zhp, child[c], gsp)) { in zfs_agent_iter_vdev()
113 gsp->gs_vdev_type = DEVICE_TYPE_L2ARC; in zfs_agent_iter_vdev()
121 if (gsp->gs_devid != NULL && in zfs_agent_iter_vdev()
123 (strcmp(gsp->gs_devid, path) == 0)) { in zfs_agent_iter_vdev()
125 &gsp->gs_vdev_guid); in zfs_agent_iter_vdev()
[all …]
/freebsd/usr.sbin/gstat/
H A Dgstat.c81 struct devstat *gsp, *gsq; in main() local
306 gsp = geom_stats_snapshot_next(sp); in main()
308 if (gsp == NULL || gsq == NULL) in main()
310 if (gsp->id == NULL) in main()
312 gid = geom_lookupid(&gmp, gsp->id); in main()
318 gid = geom_lookupid(&gmp, gsp->id); in main()
341 if (gsp->sequence0 != gsp->sequence1) { in main()
350 devstat_compute_statistics(gsp, gsq, dt, in main()
378 *gsq = *gsp; in main()
528 *gsq = *gsp; in main()
/freebsd/sys/geom/label/
H A Dg_label_flashmap.c43 struct g_slicer *gsp; in g_label_flashmap_taste() local
56 gsp = (struct g_slicer *)pp->geom->softc; in g_label_flashmap_taste()
57 gfp = (struct g_flashmap *)gsp->softc; in g_label_flashmap_taste()
/freebsd/lib/libgeom/
H A Dgeom_stats.c167 struct devstat *gsp; in geom_stats_snapshot_next() local
171 gsp = (struct devstat *) in geom_stats_snapshot_next()
172 (sp->ptr + sp->u * pagesize + sp->v * sizeof *gsp); in geom_stats_snapshot_next()
179 return (gsp); in geom_stats_snapshot_next()
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_open.c261 Elf64_Sym sym, *gsp; in init_symtab() local
273 gsp = sym_to_gelf((Elf32_Sym *)(uintptr_t)symp, &sym); in init_symtab()
275 gsp = (Elf64_Sym *)(uintptr_t)symp; in init_symtab()
277 if (gsp->st_name < strp->cts_size) in init_symtab()
278 name = (const char *)strp->cts_data + gsp->st_name; in init_symtab()
282 if (gsp->st_name == 0 || gsp->st_shndx == SHN_UNDEF || in init_symtab()
289 switch (ELF64_ST_TYPE(gsp->st_info)) { in init_symtab()
292 (gsp->st_shndx == SHN_ABS && gsp->st_value == 0)) { in init_symtab()
/freebsd/sbin/mdconfig/
H A Dmdconfig.c499 struct devstat *gsp; in md_list() local
520 while ((gsp = geom_stats_snapshot_next(sq)) != NULL) { in md_list()
521 gid = geom_lookupid(&gm, gsp->id); in md_list()
/freebsd/contrib/ncurses/
H A DNEWS11265 <rsk@gsp.org>).