Home
last modified time | relevance | path

Searched refs:Malloc (Results 1 – 12 of 12) sorted by relevance

/dflybsd-src/sys/dev/raid/vinum/
H A Dvinumio.c145 Malloc(INITIAL_DRIVE_FREELIST * sizeof(struct drive_freelist)); in set_drive_parms()
245 vhdr = (struct vinum_hdr *) Malloc(VINUMHEADERLEN); /* allocate buffer */ in remove_drive()
332 vhdr = (struct vinum_hdr *) Malloc(VINUMHEADERLEN); /* allocate buffers */ in read_drive_label()
581 vhdr = (struct vinum_hdr *) Malloc(VINUMHEADERLEN); /* get space for the config data */ in daemon_save_config()
586 config = Malloc(MAXCONFIG); /* get space for the config data */ in daemon_save_config()
688 drivelist = (int *) Malloc(drives * DRIVEPARTS * sizeof(int)); in vinum_scandisk()
761 config_text = (char *) Malloc(MAXCONFIG * 2); /* allocate buffers */ in vinum_scandisk()
763 config_line = (char *) Malloc(MAXCONFIGLINE * 2); /* allocate buffers */ in vinum_scandisk()
H A Dvinumext.h252 #define Malloc(x) MMalloc ((x), __FILE__, __LINE__) macro
258 #define Malloc(x) kmalloc((x), M_DEVBUF, \ macro
264 #define Malloc(x) malloc ((x)) /* just the size */ macro
H A Dvinum.c267 DRIVE = (struct drive *) Malloc(sizeof(struct drive) * INITIAL_DRIVES); in vinum_initconf()
274 VOL = (struct volume *) Malloc(sizeof(struct volume) * INITIAL_VOLUMES); in vinum_initconf()
281 PLEX = (struct plex *) Malloc(sizeof(struct plex) * INITIAL_PLEXES); in vinum_initconf()
288 SD = (struct sd *) Malloc(sizeof(struct sd) * INITIAL_SUBDISKS); in vinum_initconf()
H A Dvinumrevive.c143 bp->b_data = Malloc(size); in revive_block()
386 bpp = (struct buf **) Malloc(bufcount * sizeof(struct buf *)); /* array of pointers to bps */ in parityrebuild()
393 bpp[sdno]->b_data = Malloc(mysize); in parityrebuild()
523 bp->b_data = Malloc(size); in initsd()
H A Dvinumrequest.c212 rq = (struct request *) Malloc(sizeof(struct request)); /* allocate a request struct */ in vinumstart()
834 bp->b_data = Malloc(bp->b_bcount); /* get a buffer to put it in */ in build_rq_buffer()
931 sbp = (struct sdbuf *) Malloc(sizeof(struct sdbuf)); in sdio()
1042 rqg = (struct rqgroup *) Malloc(size); in allocrqg()
H A Dvinumdaemon.c217 struct daemonq *qelt = (struct daemonq *) Malloc(sizeof(struct daemonq)); in queue_daemon_request()
H A Dvinummemory.c71 temp = (int *) Malloc(newsize); /* allocate a new table */ in expand_table()
H A Dvinumconfig.c815 plex->sdnos = (int *) Malloc(sizeof(int) * INITIAL_SUBDISKS_IN_PLEX); /* allocate sd table */ in get_empty_plex()
1468 Malloc(PLEX_LOCKS * sizeof(struct rangelock)); in config_plex()
/dflybsd-src/sys/kern/
H A Dsubr_unit.c92 #define Malloc(foo) kmalloc(foo, M_UNIT, M_WAITOK | M_ZERO) macro
248 uh = Malloc(sizeof *uh); in new_unrhdr()
665 p1 = Malloc(sizeof(struct unr)); in free_unr()
666 p2 = Malloc(sizeof(struct unr)); in free_unr()
/dflybsd-src/sys/netgraph/
H A DNOTES68 - Malloc all memory with type M_NETGRAPH.
/dflybsd-src/sys/netgraph7/
H A DNOTES74 - Malloc all memory with type M_NETGRAPH. -DONE
/dflybsd-src/stand/boot/efi/boot1/
H A Dboot1.c69 Malloc(size_t len, const char *file __unused, int line __unused)