Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/geom/vinum/
H A Dgeom_vinum_create.c249 d = g_malloc(sizeof(struct gv_drive), in gv_create_sd()
338 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_concat()
344 p = g_malloc(sizeof(*p), M_WAITOK | M_ZERO); in gv_concat()
360 s = g_malloc(sizeof(*s), M_WAITOK | M_ZERO); in gv_concat()
417 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_mirror()
424 p = g_malloc(sizeof(*p), M_WAITOK | M_ZERO); in gv_mirror()
508 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_raid5()
514 p = g_malloc(sizeof(*p), M_WAITOK | M_ZERO); in gv_raid5()
530 s = g_malloc(sizeof(*s), M_WAITOK | M_ZERO); in gv_raid5()
580 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_stripe()
[all …]
H A Dgeom_vinum_raid5.c65 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); in gv_raid5_start()
231 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_check()
326 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_rebuild()
456 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
497 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
519 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
537 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
549 bq = g_malloc(sizeof(*bq), M_WAITOK | M_ZERO); in gv_raid5_request()
655 cbp->bio_data = g_malloc(wp->length, M_WAITOK | M_ZERO); in gv_raid5_clone_bio()
H A Dgeom_vinum_rename.c85 name = g_malloc(GV_MAXVOLNAME, M_WAITOK | M_ZERO); in gv_rename()
95 name = g_malloc(GV_MAXPLEXNAME, M_WAITOK | M_ZERO); in gv_rename()
105 name = g_malloc(GV_MAXSDNAME, M_WAITOK | M_ZERO); in gv_rename()
115 name = g_malloc(GV_MAXDRIVENAME, M_WAITOK | M_ZERO); in gv_rename()
H A Dgeom_vinum_events.c51 ev = g_malloc(sizeof(*ev), M_WAITOK | M_ZERO); in gv_post_event()
69 ev = g_malloc(sizeof(*ev), M_WAITOK | M_ZERO); in gv_worker_exit()
140 hdr = g_malloc(GV_HDR_LEN, M_WAITOK | M_ZERO); in gv_drive_tasted()
154 d = g_malloc(sizeof(*d), M_WAITOK | M_ZERO); in gv_drive_tasted()
H A Dgeom_vinum_share.c376 s = g_malloc(sizeof(struct gv_sd), M_NOWAIT); in gv_alloc_sd()
395 d = g_malloc(sizeof(struct gv_drive), M_NOWAIT); in gv_alloc_drive()
411 v = g_malloc(sizeof(struct gv_volume), M_NOWAIT); in gv_alloc_volume()
427 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()
369 d = g_malloc(sizeof(*d), M_WAITOK | M_ZERO); in gv_create()
392 v = g_malloc(sizeof(*v), M_WAITOK | M_ZERO); in gv_create()
415 p = g_malloc(sizeof(*p), M_WAITOK | M_ZERO); in gv_create()
438 s = g_malloc(sizeof(*s), M_WAITOK | M_ZERO); in gv_create()
H A Dgeom_vinum_plex.c590 data = g_malloc(length, M_WAITOK); in gv_sync_request()
704 data = g_malloc(length, M_WAITOK); in gv_grow_request()
918 bp->bio_data = g_malloc(GV_DFLT_SYNCSIZE, M_WAITOK); in gv_parity_request()
920 bp->bio_data = g_malloc(p->stripesize, M_WAITOK | M_ZERO); in gv_parity_request()
H A Dgeom_vinum_move.c161 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()
786 fl = g_malloc(sizeof(*fl), M_WAITOK | M_ZERO); in gv_free_sd()
836 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-13.1/sys/geom/
H A Dgeom_ccd.c368 cs->sc_itable = g_malloc(size, M_WAITOK | M_ZERO); in ccdinterleave()
382 ii->ii_index = g_malloc(sizeof(int), M_WAITOK); in ccdinterleave()
404 ii->ii_index = g_malloc((sizeof(int) * cs->sc_ndisks), in ccdinterleave()
778 sc = g_malloc(sizeof *sc, M_WAITOK | M_ZERO); in g_ccd_create()
783 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()
472 gsl2 = g_malloc((idx + 1) * sizeof *gsl2, M_WAITOK | M_ZERO); in g_slice_conf_hot()
H A Dgeom_subr.c274 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_modevent()
358 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_retaste()
388 gp = g_malloc(sizeof *gp, M_WAITOK | M_ZERO); in g_new_geomf()
389 gp->name = g_malloc(sbuf_len(sb) + 1, M_WAITOK | M_ZERO); in g_new_geomf()
535 cp = g_malloc(sizeof *cp, M_WAITOK | M_ZERO); in g_new_consumer()
624 pp = g_malloc(sizeof *pp + sbuf_len(sb) + 1, M_WAITOK | M_ZERO); in g_new_providerf()
663 gap = g_malloc(sizeof(*gap) + sbuf_len(sb) + 1, M_WAITOK | M_ZERO); in g_provider_add_alias()
756 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_resize_provider()
H A Dgeom_event.c134 args = g_malloc(sizeof *args, flag); in g_attr_changed()
329 return (g_malloc(sizeof(struct g_event), flag | M_ZERO)); in g_alloc_event()
H A Dgeom_disk.c618 buf = g_malloc(DISK_IDENT_SIZE, M_WAITOK); in g_disk_dumpconf()
713 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_disk_create()
855 dp = g_malloc(sizeof(struct disk), M_WAITOK | M_ZERO); in disk_alloc()
915 dap = (struct disk_alias *)g_malloc( in disk_add_alias()
H A Dgeom_dev.c266 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in g_dev_set_physpath()
362 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_dev_taste()
729 new_entries = g_malloc(alloc_size, in g_dev_ioctl()
H A Dgeom_vfs.c258 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_vfs_open()
H A Dgeom.h368 g_malloc(int size, int flags) in g_malloc() function
/freebsd-13.1/sys/geom/part/
H A Dg_part_gpt.c471 hdr = g_malloc(sz, M_WAITOK | M_ZERO); in gpt_read_hdr()
558 buf = g_malloc(sectors * pp->sectorsize, M_WAITOK | M_ZERO); in gpt_read_tbl()
578 tbl = g_malloc(hdr->hdr_entries * sizeof(struct gpt_ent), in gpt_read_tbl()
705 table->hdr = g_malloc(sizeof(struct gpt_hdr), M_WAITOK | M_ZERO); in g_part_gpt_create()
1198 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_part_gpt_write()
1206 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.c712 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_xvblk_handle()
715 blk->data = g_malloc(blk->size, M_WAITOK | M_ZERO); in ldm_xvblk_handle()
782 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_vblk_handle()
/freebsd-13.1/sys/geom/bde/
H A Dg_bde.c164 sc = g_malloc(sizeof(struct g_bde_softc), M_WAITOK | M_ZERO); in g_bde_create_geom()
/freebsd-13.1/sys/geom/nop/
H A Dg_nop.c301 gndelay = g_malloc(sizeof(*gndelay), M_NOWAIT | M_ZERO); in g_nop_start()
424 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_nop_create()
/freebsd-13.1/sys/geom/multipath/
H A Dg_multipath.c555 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_multipath_create()
806 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_multipath_write_metadata()
1406 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_multipath_ctl_destroy()

12