Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 25 of 42) sorted by relevance

12

/titanic_50/usr/src/uts/common/os/
H A Daudit_memory.c66 int i, alloc_size, oldlen; in au_pathdup() local
72 alloc_size = sizeof (struct audit_path) + in au_pathdup()
76 newapp = kmem_alloc(alloc_size, KM_SLEEP); in au_pathdup()
78 newapp->audp_size = alloc_size; in au_pathdup()
/titanic_50/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dbitmap.c270 size_t bmda_size, all_bitmap_size, alloc_size; in cb_set_bitmap() local
311 alloc_size = PAGE_ROUNDUP(all_bitmap_size); in cb_set_bitmap()
316 str, all_bitmap_size, alloc_size); in cb_set_bitmap()
319 newvirt = map_free_phys(high_virt, alloc_size, "bitmaps"); in cb_set_bitmap()
330 if (alloc_size > all_bitmap_size) in cb_set_bitmap()
331 bzero(dst + all_bitmap_size, alloc_size - all_bitmap_size); in cb_set_bitmap()
339 high_virt += alloc_size; in cb_set_bitmap()
/titanic_50/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c462 size_t alloc_size; in memalign() local
477 alloc_size = size + alignment - MTMALLOC_MIN_ALIGN; in memalign()
479 if (alloc_size < size) { /* overflow */ in memalign()
484 alloc_buf = malloc(alloc_size); in memalign()
496 if ((alloc_size > MAX_CACHED) && in memalign()
497 (alloc_size & (MTMALLOC_MIN_ALIGN - 1))) in memalign()
498 alloc_size = ALIGN(alloc_size, MTMALLOC_MIN_ALIGN); in memalign()
503 size_t frag_size = alloc_size - in memalign()
510 if (IS_OVERSIZE(frag_size, alloc_size)) { in memalign()
541 if (alloc_size <= MAX_CACHED) { in memalign()
[all …]
/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb_open_andx.c329 uint32_t alloc_size; in smb_pre_open_andx() local
338 &file_attr, &creation_time, &op->ofun, &alloc_size, &op->timeo); in smb_pre_open_andx()
344 op->dsize = alloc_size; in smb_pre_open_andx()
482 uint32_t alloc_size; in smb_com_trans2_open2() local
492 &creation_time, &op->ofun, &alloc_size, &op->fqi.fq_path.pn_path); in smb_com_trans2_open2()
501 op->dsize = alloc_size; in smb_com_trans2_open2()
/titanic_50/usr/src/uts/sparc/os/
H A Dbootops.c512 uint32_t arbase, arsize, alloc_size; in bop_free_archive() local
523 prom_getprop(arph, OBP_ALLOCSIZE, (caddr_t)&alloc_size) == -1 || in bop_free_archive()
531 if (alloc_size == 0) in bop_free_archive()
538 MIN(alloc_size, arend - arbase)); in bop_free_archive()
539 arbase += alloc_size; in bop_free_archive()
/titanic_50/usr/src/uts/common/c2/
H A Daudit_io.c588 size_t alloc_size; in au_doormsg() local
592 alloc_size = AU_DBUF_HEADER + sizeof (uint32_t); in au_doormsg()
593 buf = kmem_alloc(alloc_size, KM_SLEEP); in au_doormsg()
598 alloc_size = AU_DBUF_HEADER; in au_doormsg()
599 buf = kmem_alloc(alloc_size, KM_SLEEP); in au_doormsg()
608 kmem_free(buf, alloc_size); in au_doormsg()
/titanic_50/usr/src/lib/libmalloc/common/
H A Dmalloc.c202 size_t alloc_size; in memalign() local
213 alloc_size = size + alignment; in memalign()
214 if (alloc_size < size) { /* overflow */ in memalign()
219 alloc_buf = malloc_unlocked(alloc_size, 1); in memalign()
239 alloc_size = size + alignment*2; in memalign()
240 if (alloc_size < size) { in memalign()
245 alloc_buf = malloc_unlocked(alloc_size, 1); in memalign()
/titanic_50/usr/src/uts/common/io/fcoe/
H A Dfcoe_fc.c277 uint32_t alloc_size; in fcoe_allocate_frame() local
297 alloc_size = sizeof (fcoe_frame_t) + sizeof (fcoe_i_frame_t) + in fcoe_allocate_frame()
303 frm = (fcoe_frame_t *)kmem_alloc(alloc_size, KM_SLEEP); in fcoe_allocate_frame()
304 frm->frm_alloc_size = alloc_size; in fcoe_allocate_frame()
/titanic_50/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c194 uint16_t alloc_size; in md_get_ace() local
217 alloc_size = sizeof (i_ntace_v2_t); in md_get_ace()
218 if ((ace = MALLOC(alloc_size)) == NULL) in md_get_ace()
220 bzero(ace, alloc_size); in md_get_ace()
224 ace->ace_hdr.ace_size = alloc_size; in md_get_ace()
1348 uint16_t alloc_size; in zace2ntace() local
1382 alloc_size = sizeof (i_ntace_v2_t); in zace2ntace()
1383 if ((ntace = MALLOC(alloc_size)) == NULL) { in zace2ntace()
1387 bzero(ntace, alloc_size); in zace2ntace()
1391 ntace->ace_hdr.ace_size = alloc_size; in zace2ntace()
/titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/
H A Dpiclsmc.c267 int ret, encode_type = 0x0, len, length, extra_bytes, alloc_size; in read_bd_fields() local
299 alloc_size = ((length/3) * 4) + extra_bytes; in read_bd_fields()
300 store = (uint8_t *)malloc(sizeof (uint8_t) * alloc_size); in read_bd_fields()
309 alloc_size = len * 2; in read_bd_fields()
310 store = (uint8_t *)malloc(sizeof (uint8_t) * alloc_size); in read_bd_fields()
324 (void) memcpy(field, store, alloc_size); in read_bd_fields()
/titanic_50/usr/src/uts/i86pc/os/cpupm/
H A Dcpu_acpi.c686 size_t alloc_size; in cpu_acpi_cache_cst() local
740 alloc_size = CPU_ACPI_CSTATES_SIZE(cnt); in cpu_acpi_cache_cst()
742 CPU_ACPI_CSTATES(handle) = kmem_zalloc(alloc_size, KM_SLEEP); in cpu_acpi_cache_cst()
794 kmem_free(CPU_ACPI_CSTATES(handle), alloc_size); in cpu_acpi_cache_cst()
803 kmem_free(CPU_ACPI_CSTATES(handle), alloc_size); in cpu_acpi_cache_cst()
817 kmem_free(orig, alloc_size); in cpu_acpi_cache_cst()
/titanic_50/usr/src/uts/common/sys/
H A Dkmem.h60 extern void *kmem_alloc_tryhard(size_t size, size_t *alloc_size, int kmflags);
/titanic_50/usr/src/uts/common/io/hxge/
H A Dhxge_pfc.c1004 int alloc_size; in hxge_classify_init_sw() local
1019 alloc_size = sizeof (tcam_flow_spec_t) * classify_ptr->tcam_size; in hxge_classify_init_sw()
1020 classify_ptr->tcam_entries = KMEM_ZALLOC(alloc_size, NULL); in hxge_classify_init_sw()
1035 int alloc_size; in hxge_classify_exit_sw() local
1044 alloc_size = fsize * classify_ptr->tcam_size; in hxge_classify_exit_sw()
1045 KMEM_FREE((void *) classify_ptr->tcam_entries, alloc_size); in hxge_classify_exit_sw()
H A Dhxge_ndd.c392 int i, alloc_size; in hxge_init_param() local
412 alloc_size = alloc_count * sizeof (uint64_t); in hxge_init_param()
415 (uint64_t)(uint32_t)KMEM_ZALLOC(alloc_size, in hxge_init_param()
418 (uint64_t)(uint32_t)KMEM_ZALLOC(alloc_size, in hxge_init_param()
422 (uint64_t)KMEM_ZALLOC(alloc_size, KM_SLEEP); in hxge_init_param()
424 (uint64_t)KMEM_ZALLOC(alloc_size, KM_SLEEP); in hxge_init_param()
/titanic_50/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);
/titanic_50/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dbnxe_context.c58 u32_t alloc_size = 0 ; in lm_setup_searcher_hash_info() local
80 alloc_size = sizeof(lm_searcher_hash_entry_t) * num_con; in lm_setup_searcher_hash_info()
81 mm_mem_zero(hash_info->searcher_table, alloc_size); in lm_setup_searcher_hash_info()
134 u32_t alloc_size = 0 ; in lm_alloc_searcher_hash_info() local
147 alloc_size = sizeof(lm_searcher_hash_entry_t) * num_con; in lm_alloc_searcher_hash_info()
157 hash_info->searcher_table = mm_alloc_mem(pdev, alloc_size, mm_cli_idx); in lm_alloc_searcher_hash_info()
H A Dlm_resc.c1717 u32_t alloc_size = 0 ; in lm_common_setup_alloc_resc() local
1898 alloc_size = (log2_align(max(params->max_func_connections,(u32_t)1000))*64); in lm_common_setup_alloc_resc()
1899 …alloc_num = vars->searcher_t1_num_pages = max((alloc_size / params->ilt_client_page_size),(u32_t)1… in lm_common_setup_alloc_resc()
1950 alloc_size = (params->max_func_connections + 4)*64; in lm_common_setup_alloc_resc()
1951 alloc_num = vars->searcher_t2_num_pages = alloc_size / params->ilt_client_page_size + in lm_common_setup_alloc_resc()
1952 ((alloc_size % params->ilt_client_page_size)? 1:0) ; in lm_common_setup_alloc_resc()
1998 alloc_size = ( 8 * pdev->hw_info.max_port_conns); in lm_common_setup_alloc_resc()
1999 alloc_num = vars->timers_linear_num_pages = alloc_size / params->ilt_client_page_size + in lm_common_setup_alloc_resc()
2000 ((alloc_size % params->ilt_client_page_size)? 1:0) ; in lm_common_setup_alloc_resc()
2051 alloc_size = ( 128 * pdev->hw_info.max_common_conns); in lm_common_setup_alloc_resc()
[all …]
H A Dlm_pf.c204 u32_t alloc_size = 0; in lm_pf_allocate_vfs() local
222 alloc_size = sizeof(lm_vf_info_t) * num_vfs; in lm_pf_allocate_vfs()
224 pdev->vfs_set.vfs_array = mm_alloc_mem(pdev, alloc_size, mm_cli_idx); in lm_pf_allocate_vfs()
230 mm_mem_zero(pdev->vfs_set.vfs_array, alloc_size ) ; in lm_pf_allocate_vfs()
250 alloc_size = sizeof(lm_stats_fw_t) * num_vfs; in lm_pf_allocate_vfs()
251 pdev->vfs_set.mirror_stats_fw_set = mm_alloc_mem(pdev, alloc_size, mm_cli_idx); in lm_pf_allocate_vfs()
H A Dlm_stats.c849 u32_t alloc_size = 0 ; in lm_stats_alloc_hw_query() local
860 alloc_size = mac_stats_alloc_size + sizeof( struct _stats_nig_query_t ) ; in lm_stats_alloc_hw_query()
861 …stats_hw->u.s.addr_emac_stats_query = mm_alloc_phys_mem(pdev, alloc_size, &phys_addr ,PHYS_MEM_TYP… in lm_stats_alloc_hw_query()
869 …FORM, "lm_stats_alloc_hw_query: allocated a block of size %d at %x\n", alloc_size, stats_hw->u.s.a… in lm_stats_alloc_hw_query()
886 alloc_size = mac_stats_alloc_size + sizeof( struct _stats_nig_query_t ); in lm_stats_alloc_hw_query()
888 …stats_hw->u.addr_mstat_stats_query = mm_alloc_phys_mem(pdev, alloc_size, &phys_addr ,PHYS_MEM_TYPE… in lm_stats_alloc_hw_query()
894 …FORM, "lm_stats_alloc_hw_query: allocated a block of size %d at %x\n", alloc_size, stats_hw->u.add… in lm_stats_alloc_hw_query()
912 u32_t alloc_size = 0; in lm_stats_alloc_fw_resc() local
954 alloc_size = stats_fw->fw_stats_data_sz + stats_fw->fw_stats_req_sz; in lm_stats_alloc_fw_resc()
955 …stats_fw->fw_stats = mm_alloc_phys_mem(pdev, alloc_size, &stats_fw->fw_stats_mapping ,PHYS_MEM_TYP… in lm_stats_alloc_fw_resc()
[all …]
/titanic_50/usr/src/uts/common/crypto/core/
H A Dkcf_cryptoadm.c189 uint_t alloc_size; in kcf_soft_config_init() local
194 alloc_size = mech_count * CRYPTO_MAX_MECH_NAME; in kcf_soft_config_init()
195 mechsp = kmem_alloc(alloc_size, KM_SLEEP); in kcf_soft_config_init()
196 bcopy(p->mechs, mechsp, alloc_size); in kcf_soft_config_init()
/titanic_50/usr/src/uts/common/fs/tmpfs/
H A Dtmp_dir.c907 size_t namelen, alloc_size; in tdiraddentry() local
927 alloc_size = namelen + sizeof (struct tdirent); in tdiraddentry()
928 tdp = tmp_memalloc(alloc_size, 0); in tdiraddentry()
935 dir->tn_size += alloc_size; in tdiraddentry()
/titanic_50/usr/src/uts/common/fs/dev/
H A Dsdev_zvolops.c128 devzvol_handle_ioctl(int cmd, zfs_cmd_t *zc, size_t *alloc_size) in devzvol_handle_ioctl() argument
162 if (alloc_size == NULL) in devzvol_handle_ioctl()
165 *alloc_size = size; in devzvol_handle_ioctl()
/titanic_50/usr/src/uts/sun4/os/
H A Dstartup.c790 size_t alloc_size, alignsize; in alloc_kmem64() local
805 alloc_size = aligned_end - base; in alloc_kmem64()
807 if (prom_allocate_phys(alloc_size, alignsize, &pa) == 0) { in alloc_kmem64()
808 if (prom_claim_virt(alloc_size, base) != (caddr_t)-1) { in alloc_kmem64()
814 prom_free_phys(alloc_size, pa); in alloc_kmem64()
818 if (prom_alloc(base, alloc_size, alignsize) == base) { in alloc_kmem64()
/titanic_50/usr/src/uts/common/io/comstar/stmf/
H A Dlun_map.c291 uint32_t alloc_size, data_size; in stmf_session_prepare_report_lun_data() local
300 alloc_size = data_size + sizeof (stmf_xfer_data_t) - 4; in stmf_session_prepare_report_lun_data()
302 xd = (stmf_xfer_data_t *)kmem_zalloc(alloc_size, KM_NOSLEEP); in stmf_session_prepare_report_lun_data()
307 xd->alloc_size = alloc_size; in stmf_session_prepare_report_lun_data()
H A Dstmf_impl.h370 uint32_t alloc_size; /* Including this struct */ member

12