Searched refs:Malloc (Results 1 – 12 of 12) sorted by relevance
145 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()
252 #define Malloc(x) MMalloc ((x), __FILE__, __LINE__) macro258 #define Malloc(x) kmalloc((x), M_DEVBUF, \ macro264 #define Malloc(x) malloc ((x)) /* just the size */ macro
267 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()
143 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()
212 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()
217 struct daemonq *qelt = (struct daemonq *) Malloc(sizeof(struct daemonq)); in queue_daemon_request()
71 temp = (int *) Malloc(newsize); /* allocate a new table */ in expand_table()
815 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()
92 #define Malloc(foo) kmalloc(foo, M_UNIT, M_WAITOK | M_ZERO) macro248 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()
68 - Malloc all memory with type M_NETGRAPH.
74 - Malloc all memory with type M_NETGRAPH. -DONE
69 Malloc(size_t len, const char *file __unused, int line __unused)