Searched defs:alloc_size (Results 1 - 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_open_andx.c329 uint32_t alloc_size; local
338 &file_attr, &creation_time, &op->ofun, &alloc_size, &op->timeo);
344 op->dsize = alloc_size;
482 uint32_t alloc_size; local
492 &creation_time, &op->ofun, &alloc_size, &op->fqi.fq_path.pn_path);
501 op->dsize = alloc_size;
/illumos-gate/usr/src/uts/common/os/
H A Daudit_memory.c66 int i, alloc_size, oldlen; local
72 alloc_size = sizeof (struct audit_path) +
76 newapp = kmem_alloc(alloc_size, KM_SLEEP);
78 newapp->audp_size = alloc_size;
/illumos-gate/usr/src/uts/common/io/fcoe/
H A Dfcoe_fc.c277 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;
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_dir.c907 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;
/illumos-gate/usr/src/lib/libmalloc/common/
H A Dmalloc.c202 size_t alloc_size; local
213 alloc_size = size + alignment;
214 if (alloc_size < size) { /* overflow */
219 alloc_buf = malloc_unlocked(alloc_size, 1);
239 alloc_size = size + alignment*2;
240 if (alloc_size < size) {
245 alloc_buf = malloc_unlocked(alloc_size, 1);
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dbitmap.c270 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;
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_med.c293 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) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/
H A Dpiclsmc.c267 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);
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_io.c588 size_t alloc_size; local
592 alloc_size = AU_DBUF_HEADER + sizeof (uint32_t);
593 buf = kmem_alloc(alloc_size, KM_SLEEP);
598 alloc_size = AU_DBUF_HEADER;
599 buf = kmem_alloc(alloc_size, KM_SLEEP);
608 kmem_free(buf, alloc_size);
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_cryptoadm.c189 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);
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/basic_vf/
H A Dlm_vf.c208 u32_t alloc_size = 0 ; local
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dbnxe_context.c58 u32_t alloc_size = 0 ; local
80 alloc_size = sizeof(lm_searcher_hash_entry_t) * num_con;
81 mm_mem_zero(hash_info->searcher_table, alloc_size);
134 u32_t alloc_size = 0 ; local
147 alloc_size = sizeof(lm_searcher_hash_entry_t) * num_con;
157 hash_info->searcher_table = mm_alloc_mem(pdev, alloc_size, mm_cli_idx);
H A Dlm_pf.c204 u32_t alloc_size = 0; local
222 alloc_size = sizeof(lm_vf_info_t) * num_vfs;
224 pdev->vfs_set.vfs_array = mm_alloc_mem(pdev, alloc_size, mm_cli_idx);
230 mm_mem_zero(pdev->vfs_set.vfs_array, alloc_size ) ;
250 alloc_size = sizeof(lm_stats_fw_t) * num_vfs;
251 pdev->vfs_set.mirror_stats_fw_set = mm_alloc_mem(pdev, alloc_size, mm_cli_idx);
H A Dlm_resc.c1717 u32_t alloc_size = 0 ; local
1898 alloc_size = (log2_align(max(params->max_func_connections,(u32_t)1000))*64);
1899 alloc_num = vars->searcher_t1_num_pages = max((alloc_size / params->ilt_client_page_size),(u32_t)1);
1950 alloc_size = (params->max_func_connections + 4)*64;
1951 alloc_num = vars->searcher_t2_num_pages = alloc_size / params->ilt_client_page_size +
1952 ((alloc_size % params->ilt_client_page_size)? 1:0) ;
1998 alloc_size = ( 8 * pdev->hw_info.max_port_conns);
1999 alloc_num = vars->timers_linear_num_pages = alloc_size / params->ilt_client_page_size +
2000 ((alloc_size % params->ilt_client_page_size)? 1:0) ;
2051 alloc_size
[all...]
H A Dlm_stats.c849 u32_t alloc_size = 0 ; local
860 alloc_size = mac_stats_alloc_size + sizeof( struct _stats_nig_query_t ) ;
861 stats_hw->u.s.addr_emac_stats_query = mm_alloc_phys_mem(pdev, alloc_size, &phys_addr ,PHYS_MEM_TYPE_NONCACHED, LM_RESOURCE_COMMON );
869 DbgMessage(NULL, INFORM, "lm_stats_alloc_hw_query: allocated a block of size %d at %x\n", alloc_size, stats_hw->u.s.addr_emac_stats_query);
886 alloc_size = mac_stats_alloc_size + sizeof( struct _stats_nig_query_t );
888 stats_hw->u.addr_mstat_stats_query = mm_alloc_phys_mem(pdev, alloc_size, &phys_addr ,PHYS_MEM_TYPE_NONCACHED, LM_RESOURCE_COMMON );
894 DbgMessage(NULL, INFORM, "lm_stats_alloc_hw_query: allocated a block of size %d at %x\n", alloc_size, stats_hw->u.addr_mstat_stats_query);
912 u32_t alloc_size = 0; local
954 alloc_size = stats_fw->fw_stats_data_sz + stats_fw->fw_stats_req_sz;
955 stats_fw->fw_stats = mm_alloc_phys_mem(pdev, alloc_size,
986 u32_t alloc_size = 0 ; local
[all...]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_pfc.c1004 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);
H A Dhxge_ndd.c392 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);
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootops.c512 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;
/illumos-gate/usr/src/uts/i86pc/os/cpupm/
H A Dcpu_acpi.c686 size_t alloc_size; local
740 alloc_size = CPU_ACPI_CSTATES_SIZE(cnt);
742 CPU_ACPI_CSTATES(handle) = kmem_zalloc(alloc_size, KM_SLEEP);
794 kmem_free(CPU_ACPI_CSTATES(handle), alloc_size); local
803 kmem_free(CPU_ACPI_CSTATES(handle), alloc_size); local
817 kmem_free(orig, alloc_size);
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_zvolops.c136 devzvol_handle_ioctl(int cmd, zfs_cmd_t *zc, size_t *alloc_size) argument
170 if (alloc_size == NULL)
173 *alloc_size = size;
/illumos-gate/usr/src/lib/libsasl/plugin/
H A Dplugin_common.c616 int alloc_size; local
630 alloc_size = sizeof(sasl_interact_t)*num;
631 prompts = utils->malloc(alloc_size);
636 memset(prompts, 0, alloc_size);
/illumos-gate/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c462 size_t alloc_size; local
477 alloc_size = size + alignment - MTMALLOC_MIN_ALIGN;
479 if (alloc_size < size) { /* overflow */
484 alloc_buf = malloc(alloc_size);
491 * If alloc_size > MAX_CACHED, malloc() will have returned a multiple of
492 * MTMALLOC_MIN_ALIGN, having rounded-up alloc_size if necessary. Since
493 * we will use alloc_size to return the excess fragments to the free
494 * list, we also round-up alloc_size if necessary.
496 if ((alloc_size > MAX_CACHED) &&
497 (alloc_size
[all...]
/illumos-gate/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c194 uint16_t alloc_size; local
217 alloc_size = sizeof (i_ntace_v2_t);
218 if ((ace = MALLOC(alloc_size)) == NULL)
220 bzero(ace, alloc_size);
224 ace->ace_hdr.ace_size = alloc_size;
1348 uint16_t alloc_size; local
1382 alloc_size = sizeof (i_ntace_v2_t);
1383 if ((ntace = MALLOC(alloc_size)) == NULL) {
1387 bzero(ntace, alloc_size);
1391 ntace->ace_hdr.ace_size = alloc_size;
[all...]
/illumos-gate/usr/src/uts/common/io/comstar/stmf/
H A Dlun_map.c291 uint32_t alloc_size, data_size; local
300 alloc_size = data_size + sizeof (stmf_xfer_data_t) - 4;
302 xd = (stmf_xfer_data_t *)kmem_zalloc(alloc_size, KM_NOSLEEP);
307 xd->alloc_size = alloc_size;
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_ndd.c738 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);

Completed in 173 milliseconds

12