Home
last modified time | relevance | path

Searched refs:table_size (Results 1 – 25 of 30) sorted by relevance

12

/drivers/staging/tidspbridge/pmgr/
Ddmm.c66 static u32 table_size; /* The size of virt and phys pages tables */ variable
88 table_size = PG_ALIGN_HIGH(size, PG_SIZE4K) / PG_SIZE4K; in dmm_create_tables()
90 virtual_mapping_table = __vmalloc(table_size * in dmm_create_tables()
99 free_size = table_size * PG_SIZE4K; in dmm_create_tables()
100 virtual_mapping_table[0].region_size = table_size; in dmm_create_tables()
370 if (i < table_size) in get_region()
396 while (i < table_size) { in get_free_region()
401 if (next_i < table_size && in get_free_region()
440 if (i < table_size && (virtual_mapping_table[i].mapped || in get_mapped_region()
457 for (i = 0; i < table_size; i += in dmm_mem_map_dump()
[all …]
/drivers/message/i2o/
Ddevice.c354 u16 table_size; in i2o_device_parse_lct() local
362 table_size = buf & 0xffff; in i2o_device_parse_lct()
364 lct = c->lct = kmalloc(table_size * 4, GFP_KERNEL); in i2o_device_parse_lct()
372 lct->table_size = table_size; in i2o_device_parse_lct()
376 table_size -= 3; in i2o_device_parse_lct()
379 lct->table_size); in i2o_device_parse_lct()
381 while (table_size > 0) { in i2o_device_parse_lct()
420 table_size -= 9; in i2o_device_parse_lct()
Di2o_config.c150 len = (unsigned int)lct->table_size << 2; in i2o_cfg_getlct()
/drivers/acpi/apei/
Deinj.c264 if (trigger_tab->table_size > PAGE_SIZE || in einj_check_trigger_header()
265 trigger_tab->table_size < trigger_tab->header_size) in einj_check_trigger_header()
268 (trigger_tab->table_size - trigger_tab->header_size) / in einj_check_trigger_header()
304 u32 table_size; in __einj_error_trigger() local
335 table_size = trigger_tab->table_size; in __einj_error_trigger()
337 table_size - sizeof(*trigger_tab), in __einj_error_trigger()
343 (unsigned long long)trigger_paddr + table_size - 1); in __einj_error_trigger()
347 trigger_tab = ioremap_cache(trigger_paddr, table_size); in __einj_error_trigger()
404 table_size - sizeof(*trigger_tab)); in __einj_error_trigger()
/drivers/power/
Dmax17042_battery.c328 int table_size = in max17042_init_model() local
332 temp_data = kzalloc(table_size, GFP_KERNEL); in max17042_init_model()
338 table_size); in max17042_init_model()
340 table_size); in max17042_init_model()
346 table_size); in max17042_init_model()
357 int table_size = in max17042_verify_model_lock() local
362 temp_data = kzalloc(table_size, GFP_KERNEL); in max17042_verify_model_lock()
367 table_size); in max17042_verify_model_lock()
368 for (i = 0; i < table_size; i++) in max17042_verify_model_lock()
/drivers/gpu/drm/
Dati_pcigart.c42 gart_info->table_handle = drm_pci_alloc(dev, gart_info->table_size, in drm_ati_alloc_pcigart_table()
72 max_pages = (gart_info->table_size / sizeof(u32)); in drm_ati_pcigart_cleanup()
140 max_ati_pages = (gart_info->table_size / sizeof(u32)); in drm_ati_pcigart_init()
/drivers/cpufreq/
Dcpufreq_stats.c57 unsigned int table_size; member
151 for (i = 0; i < all_freq_table->table_size; i++) { in show_all_time_in_state()
387 for (i = 0; i < all_freq_table->table_size; i++) { in check_all_freq_table()
406 size = sizeof(unsigned int) * (all_freq_table->table_size + 1); in add_all_freq_table()
414 all_freq_table->freq_table[all_freq_table->table_size++] = freq; in add_all_freq_table()
466 sort(all_freq_table->freq_table, all_freq_table->table_size, in cpufreq_allstats_create()
/drivers/gpu/drm/radeon/
Dradeon_gart.c40 ptr = pci_alloc_consistent(rdev->pdev, rdev->gart.table_size, in radeon_gart_table_ram_alloc()
49 rdev->gart.table_size >> PAGE_SHIFT); in radeon_gart_table_ram_alloc()
53 memset((void *)rdev->gart.ptr, 0, rdev->gart.table_size); in radeon_gart_table_ram_alloc()
66 rdev->gart.table_size >> PAGE_SHIFT); in radeon_gart_table_ram_free()
69 pci_free_consistent(rdev->pdev, rdev->gart.table_size, in radeon_gart_table_ram_free()
81 r = radeon_bo_create(rdev, rdev->gart.table_size, in radeon_gart_table_vram_alloc()
Drs400.c103 rdev->gart.table_size = rdev->gart.num_gpu_pages * 4; in rs400_gart_init()
Dradeon_cp.c1168 vp->upper = vp->lower + gart_info->table_size; in radeon_setup_pcigart_surface()
1490 dev_priv->gart_info.table_size; in radeon_do_init_cp()
2199 dev_priv->gart_info.table_size = RADEON_PCIGART_TABLE_SIZE; in radeon_driver_firstopen()
Dr600_cp.c161 max_pages = (gart_info->table_size / sizeof(u64)); in r600_page_table_cleanup()
191 max_ati_pages = (gart_info->table_size / sizeof(u64)); in r600_page_table_init()
2240 dev_priv->gart_info.table_size; in r600_do_init_cp()
Dradeon_state.c3163 dev_priv->gart_info.table_size = sp->value; in radeon_cp_setparam()
3164 if (dev_priv->gart_info.table_size < RADEON_PCIGART_TABLE_SIZE) in radeon_cp_setparam()
3165 dev_priv->gart_info.table_size = RADEON_PCIGART_TABLE_SIZE; in radeon_cp_setparam()
Drs600.c441 rdev->gart.table_size = rdev->gart.num_gpu_pages * 8; in rs600_gart_init()
Dr300.c107 rdev->gart.table_size = rdev->gart.num_gpu_pages * 4; in rv370_pcie_gart_init()
/drivers/infiniband/hw/mthca/
Dmthca_mcg.c318 int table_size = dev->limits.num_mgms + dev->limits.num_amgms; in mthca_init_mcg_table() local
321 table_size, in mthca_init_mcg_table()
322 table_size - 1, in mthca_init_mcg_table()
/drivers/net/wireless/iwlegacy/
D3945-rs.c104 u32 table_size = 0; in il3945_get_rate_idx_by_rssi() local
113 table_size = ARRAY_SIZE(il3945_tpt_table_g); in il3945_get_rate_idx_by_rssi()
117 table_size = ARRAY_SIZE(il3945_tpt_table_a); in il3945_get_rate_idx_by_rssi()
124 while (idx < table_size && rssi < tpt_table[idx].min_rssi) in il3945_get_rate_idx_by_rssi()
127 idx = min(idx, table_size - 1); in il3945_get_rate_idx_by_rssi()
/drivers/mtd/nand/
Dnand_bbt.c1074 u32 table_size; in verify_bbt_descr() local
1099 table_size = this->chipsize >> this->bbt_erase_shift; in verify_bbt_descr()
1101 table_size = mtd->size >> this->bbt_erase_shift; in verify_bbt_descr()
1102 table_size >>= 3; in verify_bbt_descr()
1103 table_size *= bits; in verify_bbt_descr()
1105 table_size += pattern_len; in verify_bbt_descr()
1106 BUG_ON(table_size > (1 << this->bbt_erase_shift)); in verify_bbt_descr()
/drivers/acpi/
Dtables.c205 unsigned long table_size, in acpi_table_parse_entries() argument
237 ((unsigned long)table_header + table_size); in acpi_table_parse_entries()
/drivers/net/wireless/ath/ath5k/
Dphy.c3089 u8 pdadc_i, pdadc_n, pwr_step, pdg, max_idx, table_size; in ath5k_combine_pwr_to_pdadc_curves() local
3143 table_size = pwr_max[pdg] - pwr_min[pdg]; in ath5k_combine_pwr_to_pdadc_curves()
3144 max_idx = (pdadc_n < table_size) ? pdadc_n : table_size; in ath5k_combine_pwr_to_pdadc_curves()
3155 if ((pdadc_tmp[table_size - 1] - pdadc_tmp[table_size - 2]) > 1) in ath5k_combine_pwr_to_pdadc_curves()
3156 pwr_step = pdadc_tmp[table_size - 1] - in ath5k_combine_pwr_to_pdadc_curves()
3157 pdadc_tmp[table_size - 2]; in ath5k_combine_pwr_to_pdadc_curves()
3164 s16 tmp = pdadc_tmp[table_size - 1] + in ath5k_combine_pwr_to_pdadc_curves()
/drivers/media/video/davinci/
Ddm355_ccdc.c520 if (dfc->table_size > CCDC_DFT_TABLE_SIZE) in ccdc_config_vdfc()
536 for (i = 0; i < dfc->table_size; i++) { in ccdc_config_vdfc()
/drivers/scsi/
Ddpt_i2o.c1563 max = lct->table_size; in adpt_i2o_parse_lct()
2617 max = lct->table_size; in adpt_i2o_reparse_lct()
3166 if ((pHba->lct->table_size << 2) > pHba->lct_size) { in adpt_i2o_lct_get()
3167 pHba->lct_size = pHba->lct->table_size << 2; in adpt_i2o_lct_get()
/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c1678 int be_cmd_rss_config(struct be_adapter *adapter, u8 *rsstable, u16 table_size) in be_cmd_rss_config() argument
1699 req->cpu_table_size_log2 = cpu_to_le16(fls(table_size) - 1); in be_cmd_rss_config()
1700 memcpy(req->cpu_table, rsstable, table_size); in be_cmd_rss_config()
/drivers/staging/rts_pstor/
Dms.c2235 int retval, table_size, disable_cnt, defect_flag, i; in ms_build_l2p_tbl() local
2254 table_size = 494; in ms_build_l2p_tbl()
2256 table_size = 496; in ms_build_l2p_tbl()
2262 segment->l2p_table = (u16 *)vmalloc(table_size * 2); in ms_build_l2p_tbl()
2267 memset((u8 *)(segment->l2p_table), 0xff, table_size * 2); in ms_build_l2p_tbl()
/drivers/staging/rts5139/
Dms.c2378 int retval, table_size, disable_cnt, defect_flag, i; local
2397 table_size = 494;
2399 table_size = 496;
2404 segment->l2p_table = vmalloc(table_size * 2);
2408 memset((u8 *) (segment->l2p_table), 0xff, table_size * 2);
/drivers/gpu/drm/r128/
Dr128_cce.c561 dev_priv->gart_info.table_size = R128_PCIGART_TABLE_SIZE; in r128_do_init_cce()

12