Home
last modified time | relevance | path

Searched refs:g_malloc (Results 1 – 25 of 38) sorted by relevance

12

/freebsd-12.1/sys/geom/vinum/
H A Dgeom_vinum_create.c248 d = g_malloc(sizeof(struct gv_drive), in gv_create_sd()
337 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_concat()
343 p = g_malloc(sizeof(*p), M_WAITOK | M_ZERO); in gv_concat()
359 s = g_malloc(sizeof(*s), M_WAITOK | M_ZERO); in gv_concat()
416 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_mirror()
423 p = g_malloc(sizeof(*p), M_WAITOK | M_ZERO); in gv_mirror()
507 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_raid5()
513 p = g_malloc(sizeof(*p), M_WAITOK | M_ZERO); in gv_raid5()
529 s = g_malloc(sizeof(*s), M_WAITOK | M_ZERO); in gv_raid5()
579 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_stripe()
[all …]
H A Dgeom_vinum_raid5.c64 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); in gv_raid5_start()
227 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_check()
322 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_rebuild()
452 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
493 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
515 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
533 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
545 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
651 cbp->bio_data = g_malloc(wp->length, M_WAITOK | M_ZERO); in gv_raid5_clone_bio()
H A Dgeom_vinum_rename.c84 name = g_malloc(GV_MAXVOLNAME, M_WAITOK | M_ZERO); in gv_rename()
94 name = g_malloc(GV_MAXPLEXNAME, M_WAITOK | M_ZERO); in gv_rename()
104 name = g_malloc(GV_MAXSDNAME, M_WAITOK | M_ZERO); in gv_rename()
114 name = g_malloc(GV_MAXDRIVENAME, M_WAITOK | M_ZERO); in gv_rename()
H A Dgeom_vinum_events.c50 ev = g_malloc(sizeof(*ev), M_WAITOK | M_ZERO); in gv_post_event()
68 ev = g_malloc(sizeof(*ev), M_WAITOK | M_ZERO); in gv_worker_exit()
139 hdr = g_malloc(GV_HDR_LEN, M_WAITOK | M_ZERO); in gv_drive_tasted()
153 d = g_malloc(sizeof(*d), M_WAITOK | M_ZERO); in gv_drive_tasted()
H A Dgeom_vinum_share.c378 s = g_malloc(sizeof(struct gv_sd), M_NOWAIT); in gv_alloc_sd()
397 d = g_malloc(sizeof(struct gv_drive), M_NOWAIT); in gv_alloc_drive()
413 v = g_malloc(sizeof(struct gv_volume), M_NOWAIT); in gv_alloc_volume()
429 p = g_malloc(sizeof(struct gv_plex), M_NOWAIT); in gv_alloc_plex()
H A Dgeom_vinum.c175 gp->softc = g_malloc(sizeof(struct gv_softc), M_WAITOK | M_ZERO); in gv_init()
178 sc->bqueue_down = g_malloc(sizeof(struct bio_queue_head), in gv_init()
180 sc->bqueue_up = g_malloc(sizeof(struct bio_queue_head), in gv_init()
370 d = g_malloc(sizeof(*d), M_WAITOK | M_ZERO); in gv_create()
393 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_create()
416 p = g_malloc(sizeof(*p), M_WAITOK | M_ZERO); in gv_create()
439 s = g_malloc(sizeof(*s), M_WAITOK | M_ZERO); in gv_create()
H A Dgeom_vinum_plex.c589 data = g_malloc(length, M_WAITOK); in gv_sync_request()
703 data = g_malloc(length, M_WAITOK); in gv_grow_request()
917 bp->bio_data = g_malloc(GV_DFLT_SYNCSIZE, M_WAITOK); in gv_parity_request()
919 bp->bio_data = g_malloc(p->stripesize, M_WAITOK | M_ZERO); in gv_parity_request()
H A Dgeom_vinum_move.c160 newsd = g_malloc(sizeof(struct gv_sd), M_WAITOK | M_ZERO); in gv_move_sd()
H A Dgeom_vinum_subr.c719 fl2 = g_malloc(sizeof(*fl2), M_WAITOK | M_ZERO); in gv_sd_to_drive()
787 fl = g_malloc(sizeof(*fl), M_WAITOK | M_ZERO); in gv_free_sd()
838 fl = g_malloc(sizeof(*fl), M_WAITOK | M_ZERO); in gv_adjust_freespace()
H A Dgeom_vinum_init.c386 data = g_malloc(s->init_size, M_WAITOK | M_ZERO); in gv_init_plex()
H A Dgeom_vinum_drive.c275 vhdr = g_malloc(GV_HDR_LEN, M_WAITOK | M_ZERO); in gv_save_config()
/freebsd-12.1/sys/geom/
H A Dgeom_ccd.c371 cs->sc_itable = g_malloc(size, M_WAITOK | M_ZERO); in ccdinterleave()
385 ii->ii_index = g_malloc(sizeof(int), M_WAITOK); in ccdinterleave()
407 ii->ii_index = g_malloc((sizeof(int) * cs->sc_ndisks), in ccdinterleave()
781 sc = g_malloc(sizeof *sc, M_WAITOK | M_ZERO); in g_ccd_create()
786 sc->sc_cinfo = g_malloc(sc->sc_ndisks * sizeof(struct ccdcinfo), in g_ccd_create()
H A Dgeom_slice.c64 gsp = g_malloc(sizeof *gsp, M_WAITOK | M_ZERO); in g_slice_alloc()
66 gsp->softc = g_malloc(scsize, M_WAITOK | M_ZERO); in g_slice_alloc()
69 gsp->slices = g_malloc(nslice * sizeof(struct g_slice), in g_slice_alloc()
471 gsl2 = g_malloc((idx + 1) * sizeof *gsl2, M_WAITOK | M_ZERO); in g_slice_conf_hot()
H A Dgeom_subr.c232 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_modevent()
316 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_retaste()
346 gp = g_malloc(sizeof *gp, M_WAITOK | M_ZERO); in g_new_geomf()
347 gp->name = g_malloc(sbuf_len(sb) + 1, M_WAITOK | M_ZERO); in g_new_geomf()
497 cp = g_malloc(sizeof *cp, M_WAITOK | M_ZERO); in g_new_consumer()
587 pp = g_malloc(sizeof *pp + sbuf_len(sb) + 1, M_WAITOK | M_ZERO); in g_new_providerf()
687 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_resize_provider()
1276 gap = (struct g_geom_alias *)g_malloc( in g_geom_add_alias()
H A Dgeom_event.c152 args = g_malloc(sizeof *args, flag); in g_attr_changed()
359 ep = g_malloc(sizeof *ep, flag | M_ZERO); in g_post_event_x()
H A Dgeom_disk.c612 buf = g_malloc(DISK_IDENT_SIZE, M_WAITOK); in g_disk_dumpconf()
707 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_disk_create()
852 dp = g_malloc(sizeof(struct disk), M_WAITOK | M_ZERO); in disk_alloc()
908 dap = (struct disk_alias *)g_malloc( in disk_add_alias()
H A Dgeom_dev.c251 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in g_dev_set_physpath()
333 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_dev_taste()
673 new_entries = g_malloc(alloc_size, in g_dev_ioctl()
H A Dgeom_vfs.c251 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_vfs_open()
H A Dgeom.h367 g_malloc(int size, int flags) in g_malloc() function
/freebsd-12.1/sys/geom/part/
H A Dg_part_gpt.c445 hdr = g_malloc(sz, M_WAITOK | M_ZERO); in gpt_read_hdr()
531 buf = g_malloc(sectors * pp->sectorsize, M_WAITOK | M_ZERO); in gpt_read_tbl()
551 tbl = g_malloc(hdr->hdr_entries * sizeof(struct gpt_ent), in gpt_read_tbl()
678 table->hdr = g_malloc(sizeof(struct gpt_hdr), M_WAITOK | M_ZERO); in g_part_gpt_create()
1171 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_part_gpt_write()
1179 buf = g_malloc((tblsz + 1) * pp->sectorsize, M_WAITOK | M_ZERO); in g_part_gpt_write()
H A Dg_part_apm.c542 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_part_apm_write()
554 buf = g_malloc(tblsz * pp->sectorsize, M_WAITOK | M_ZERO); in g_part_apm_write()
H A Dg_part_ldm.c711 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_xvblk_handle()
714 blk->data = g_malloc(blk->size, M_WAITOK | M_ZERO); in ldm_xvblk_handle()
781 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_vblk_handle()
/freebsd-12.1/sys/geom/bde/
H A Dg_bde.c159 sc = g_malloc(sizeof(struct g_bde_softc), M_WAITOK | M_ZERO); in g_bde_create_geom()
/freebsd-12.1/sys/geom/multipath/
H A Dg_multipath.c531 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_multipath_create()
782 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_multipath_write_metadata()
1372 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_multipath_ctl_destroy()
/freebsd-12.1/sys/geom/mirror/
H A Dg_mirror_ctl.c618 disks = g_malloc(sizeof(*disks) * (*nargs), M_WAITOK | M_ZERO); in g_mirror_ctl_insert()
708 sector = g_malloc(pp->sectorsize, M_WAITOK); in g_mirror_ctl_insert()

12