HomeSort by relevance Sort by last modified time
    Searched refs:alloc_size (Results 1 - 25 of 38) sorted by null

1 2

  /onnv/onnv-gate/usr/src/uts/common/c2/
audit_path.c 68 int i, alloc_size, oldlen; local
74 alloc_size = sizeof (struct audit_path) +
78 newapp = kmem_alloc(alloc_size, KM_SLEEP);
80 newapp->audp_size = alloc_size;
audit_io.c 577 size_t alloc_size; local
581 alloc_size = AU_DBUF_HEADER + sizeof (uint32_t);
582 buf = kmem_alloc(alloc_size, KM_SLEEP);
587 alloc_size = AU_DBUF_HEADER;
588 buf = kmem_alloc(alloc_size, KM_SLEEP);
597 kmem_free(buf, alloc_size);
  /onnv/onnv-gate/usr/src/uts/common/sys/
kmem.h 58 extern void *kmem_alloc_tryhard(size_t size, size_t *alloc_size, int kmflags);
  /onnv/onnv-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
bitmap.c 270 size_t bmda_size, all_bitmap_size, alloc_size; local
311 alloc_size = PAGE_ROUNDUP(all_bitmap_size);
315 prom_printf("%s: all_bitmap_size 0x%lx, alloc_size 0x%lx\n",
316 str, all_bitmap_size, alloc_size);
319 newvirt = map_free_phys(high_virt, alloc_size, "bitmaps");
330 if (alloc_size > all_bitmap_size)
331 bzero(dst + all_bitmap_size, alloc_size - all_bitmap_size);
339 high_virt += alloc_size;
  /onnv/onnv-gate/usr/src/uts/sparc/os/
bootops.c 512 uint32_t arbase, arsize, alloc_size; local
523 prom_getprop(arph, OBP_ALLOCSIZE, (caddr_t)&alloc_size) == -1 ||
531 if (alloc_size == 0)
538 MIN(alloc_size, arend - arbase));
539 arbase += alloc_size;
  /onnv/onnv-gate/usr/src/lib/libmtmalloc/common/
mtmalloc.c 450 size_t alloc_size; local
465 alloc_size = size + alignment - MTMALLOC_MIN_ALIGN;
467 if (alloc_size < size) { /* overflow */
472 alloc_buf = malloc(alloc_size);
479 * If alloc_size > MAX_CACHED, malloc() will have returned a multiple of
480 * MTMALLOC_MIN_ALIGN, having rounded-up alloc_size if necessary. Since
481 * we will use alloc_size to return the excess fragments to the free
482 * list, we also round-up alloc_size if necessary.
484 if ((alloc_size > MAX_CACHED) &&
485 (alloc_size & (MTMALLOC_MIN_ALIGN - 1))
    [all...]
  /onnv/onnv-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/
piclsmc.c 267 int ret, encode_type = 0x0, len, length, extra_bytes, alloc_size; local
299 alloc_size = ((length/3) * 4) + extra_bytes;
300 store = (uint8_t *)malloc(sizeof (uint8_t) * alloc_size);
309 alloc_size = len * 2;
310 store = (uint8_t *)malloc(sizeof (uint8_t) * alloc_size);
324 (void) memcpy(field, store, alloc_size);
  /onnv/onnv-gate/usr/src/uts/common/fs/smbsrv/
smb_open_andx.c 432 uint32_t alloc_size; local
441 &creation_time, &op->ofun, &alloc_size, &op->fqi.fq_path.pn_path);
450 op->dsize = alloc_size;
  /onnv/onnv-gate/usr/src/uts/common/io/fcoe/
fcoe_fc.c 277 uint32_t alloc_size; local
297 alloc_size = sizeof (fcoe_frame_t) + sizeof (fcoe_i_frame_t) +
303 frm = (fcoe_frame_t *)kmem_alloc(alloc_size, KM_SLEEP);
304 frm->frm_alloc_size = alloc_size;
  /onnv/onnv-gate/usr/src/lib/libmalloc/common/
malloc.c 203 size_t alloc_size; local
214 alloc_size = size + alignment;
215 if (alloc_size < size) { /* overflow */
220 alloc_buf = malloc_unlocked(alloc_size, 1);
240 alloc_size = size + alignment*2;
241 if (alloc_size < size) {
246 alloc_buf = malloc_unlocked(alloc_size, 1);
  /onnv/onnv-gate/usr/src/uts/common/io/hxge/
hxge_pfc.c 1004 int alloc_size; local
1019 alloc_size = sizeof (tcam_flow_spec_t) * classify_ptr->tcam_size;
1020 classify_ptr->tcam_entries = KMEM_ZALLOC(alloc_size, NULL);
1035 int alloc_size; local
1044 alloc_size = fsize * classify_ptr->tcam_size;
1045 KMEM_FREE((void *) classify_ptr->tcam_entries, alloc_size);
hxge_ndd.c 392 int i, alloc_size; local
412 alloc_size = alloc_count * sizeof (uint64_t);
415 (uint64_t)(uint32_t)KMEM_ZALLOC(alloc_size,
418 (uint64_t)(uint32_t)KMEM_ZALLOC(alloc_size,
422 (uint64_t)KMEM_ZALLOC(alloc_size, KM_SLEEP);
424 (uint64_t)KMEM_ZALLOC(alloc_size, KM_SLEEP);
    [all...]
  /onnv/onnv-gate/usr/src/uts/i86pc/os/cpupm/
cpu_acpi.c 691 size_t alloc_size; local
735 alloc_size = CPU_ACPI_CSTATES_SIZE(cnt);
736 CPU_ACPI_CSTATES(handle) = kmem_zalloc(alloc_size, KM_SLEEP);
788 kmem_free(CPU_ACPI_CSTATES(handle), alloc_size); local
797 kmem_free(CPU_ACPI_CSTATES(handle), alloc_size); local
811 kmem_free(orig, alloc_size);
  /onnv/onnv-gate/usr/src/cmd/mdb/common/modules/mpt_sas/
mpt_sas.c 230 hash_traverse(mptsas_hash_table_t *hashtab, int pos, int alloc_size)
265 ret = mdb_alloc(alloc_size, UM_SLEEP);
266 if (mdb_vread(ret, alloc_size, (uintptr_t)h.data) == -1) {
  /onnv/onnv-gate/usr/src/uts/common/fs/dev/
sdev_zvolops.c 114 devzvol_handle_ioctl(int cmd, zfs_cmd_t *zc, size_t *alloc_size)
148 if (alloc_size == NULL)
151 *alloc_size = size;
  /onnv/onnv-gate/usr/src/lib/libsasl/plugin/
plugin_common.c 616 int alloc_size; local
630 alloc_size = sizeof(sasl_interact_t)*num;
631 prompts = utils->malloc(alloc_size);
636 memset(prompts, 0, alloc_size);
  /onnv/onnv-gate/usr/src/uts/common/fs/tmpfs/
tmp_dir.c 907 size_t namelen, alloc_size; local
927 alloc_size = namelen + sizeof (struct tdirent);
928 tdp = tmp_memalloc(alloc_size, 0);
935 dir->tn_size += alloc_size;
  /onnv/onnv-gate/usr/src/uts/common/io/comstar/stmf/
stmf_impl.h 309 uint32_t alloc_size; /* Including this struct */ member in struct:stmf_xfer_data
lun_map.c 296 uint32_t alloc_size, data_size; local
305 alloc_size = data_size + sizeof (stmf_xfer_data_t) - 4;
307 xd = (stmf_xfer_data_t *)kmem_zalloc(alloc_size, KM_NOSLEEP);
312 xd->alloc_size = alloc_size;
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/crypto/core/
kcf_cryptoadm.c 189 uint_t alloc_size; local
194 alloc_size = mech_count * CRYPTO_MAX_MECH_NAME;
195 mechsp = kmem_alloc(alloc_size, KM_SLEEP);
196 bcopy(p->mechs, mechsp, alloc_size);
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/nxge/
nxge_fflp.c 815 int alloc_size; local
837 alloc_size = sizeof (tcam_flow_spec_t) * classify_ptr->tcam_size;
838 classify_ptr->tcam_entries = KMEM_ZALLOC(alloc_size, NULL);
858 int alloc_size; local
867 alloc_size = fsize * classify_ptr->tcam_size;
868 KMEM_FREE((void *) classify_ptr->tcam_entries, alloc_size);
    [all...]
nxge_ndd.c 738 int i, alloc_size; local
758 alloc_size = alloc_count * sizeof (uint64_t);
761 (uint64_t)(uint32_t)KMEM_ZALLOC(alloc_size,
764 (uint64_t)KMEM_ZALLOC(alloc_size, KM_SLEEP);
768 (uint64_t)(uint32_t)KMEM_ZALLOC(alloc_size,
771 (uint64_t)KMEM_ZALLOC(alloc_size, KM_SLEEP);
    [all...]
  /onnv/onnv-gate/usr/src/uts/sun4/os/
startup.c 775 size_t alloc_size, alignsize; local
790 alloc_size = aligned_end - base;
792 if (prom_allocate_phys(alloc_size, alignsize, &pa) == 0) {
793 if (prom_claim_virt(alloc_size, base) != (caddr_t)-1) {
799 prom_free_phys(alloc_size, pa);
803 if (prom_alloc(base, alloc_size, alignsize) == base) {
    [all...]
  /onnv/onnv-gate/usr/src/lib/lvm/libmeta/common/
meta_med.c 293 size_t alloc_size = 0; local
308 alloc_size = (sizeof (mddb_med_t_parm_t) - sizeof (mddb_med_t_ent_t)) +
311 if ((tp = Realloc(tp, alloc_size)) == NULL) {
  /onnv/onnv-gate/usr/src/uts/common/io/lvm/md/
md_names.c 262 size_t alloc_size; local
280 alloc_size = ((shared & NM_SHARED) ?
289 alloc_size = NM_ALLOC_SIZE;
294 new_id = mddb_createrec((size_t)alloc_size, rec_type, 1,
307 ((struct nm_rec_hdr *)new_nh->nmn_record)->r_alloc_size = alloc_size;
332 size_t alloc_size; local
342 alloc_size = ((shared & NM_SHARED) ?
346 alloc_size = NM_ALLOC_SIZE;
349 new_id = mddb_createrec((size_t)rh->r_alloc_size + alloc_size, rec_type,
381 new_rh->r_alloc_size += alloc_size;
    [all...]

Completed in 1260 milliseconds

1 2