Home
last modified time | relevance | path

Searched refs:table_size (Results 1 – 25 of 33) 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()
/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/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/power/
Dmax17042_battery.c352 int table_size = ARRAY_SIZE(chip->pdata->config_data->cell_char_tbl); in max17042_init_model() local
355 temp_data = kcalloc(table_size, sizeof(*temp_data), GFP_KERNEL); in max17042_init_model()
361 table_size); in max17042_init_model()
363 table_size); in max17042_init_model()
369 table_size); in max17042_init_model()
380 int table_size = ARRAY_SIZE(chip->pdata->config_data->cell_char_tbl); in max17042_verify_model_lock() local
384 temp_data = kcalloc(table_size, sizeof(*temp_data), GFP_KERNEL); in max17042_verify_model_lock()
389 table_size); in max17042_verify_model_lock()
390 for (i = 0; i < table_size; i++) in max17042_verify_model_lock()
/drivers/staging/media/davinci_vpfe/
Ddm365_ipipe.c595 int table_size; in ipipe_validate_gamma_params() local
606 table_size = gamma->tbl_size; in ipipe_validate_gamma_params()
608 err = ipipe_validate_gamma_entry(gamma->table_r, table_size); in ipipe_validate_gamma_params()
616 err = ipipe_validate_gamma_entry(gamma->table_b, table_size); in ipipe_validate_gamma_params()
624 err = ipipe_validate_gamma_entry(gamma->table_g, table_size); in ipipe_validate_gamma_params()
640 int table_size; in ipipe_set_gamma_params() local
660 table_size = gamma->tbl_size; in ipipe_set_gamma_params()
663 (table_size * sizeof(struct vpfe_ipipe_gamma_entry))); in ipipe_set_gamma_params()
667 (table_size * sizeof(struct vpfe_ipipe_gamma_entry))); in ipipe_set_gamma_params()
671 (table_size * sizeof(struct vpfe_ipipe_gamma_entry))); in ipipe_set_gamma_params()
[all …]
Ddm365_ipipe_hw.c744 int table_size; in ipipe_set_gamma_regs() local
759 table_size = gamma->tbl_size; in ipipe_set_gamma_regs()
763 table_size, GAMMA_R_START_ADDR); in ipipe_set_gamma_regs()
766 table_size, GAMMA_B_START_ADDR); in ipipe_set_gamma_regs()
769 table_size, GAMMA_G_START_ADDR); in ipipe_set_gamma_regs()
/drivers/cpufreq/
Dcpufreq_stats.c59 unsigned int table_size; member
196 for (i = 0; i < all_freq_table->table_size; i++) { in show_all_time_in_state()
519 for (i = 0; i < all_freq_table->table_size; i++) { in check_all_freq_table()
538 size = sizeof(unsigned int) * (all_freq_table->table_size + 1); in add_all_freq_table()
546 all_freq_table->freq_table[all_freq_table->table_size++] = freq; in add_all_freq_table()
588 sort(all_freq_table->freq_table, all_freq_table->table_size, in cpufreq_allstats_create()
/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/gpu/drm/radeon/
Dradeon_gart.c70 ptr = pci_alloc_consistent(rdev->pdev, rdev->gart.table_size, in radeon_gart_table_ram_alloc()
79 rdev->gart.table_size >> PAGE_SHIFT); in radeon_gart_table_ram_alloc()
83 memset((void *)rdev->gart.ptr, 0, rdev->gart.table_size); in radeon_gart_table_ram_alloc()
105 rdev->gart.table_size >> PAGE_SHIFT); in radeon_gart_table_ram_free()
108 pci_free_consistent(rdev->pdev, rdev->gart.table_size, in radeon_gart_table_ram_free()
130 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.c1154 vp->upper = vp->lower + gart_info->table_size; in radeon_setup_pcigart_surface()
1476 dev_priv->gart_info.table_size; in radeon_do_init_cp()
2181 dev_priv->gart_info.table_size = RADEON_PCIGART_TABLE_SIZE; in radeon_driver_firstopen()
Dr600_cp.c162 max_pages = (gart_info->table_size / sizeof(u64)); in r600_page_table_cleanup()
192 max_ati_pages = (gart_info->table_size / sizeof(u64)); in r600_page_table_init()
2236 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.c484 rdev->gart.table_size = rdev->gart.num_gpu_pages * 8; in rs600_gart_init()
/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()
Datmel_nand.c360 int table_size; in pmecc_get_alpha_to() local
362 table_size = host->pmecc_sector_size == 512 ? in pmecc_get_alpha_to()
366 table_size * sizeof(int16_t); in pmecc_get_alpha_to()
/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.c3088 u8 pdadc_i, pdadc_n, pwr_step, pdg, max_idx, table_size; in ath5k_combine_pwr_to_pdadc_curves() local
3142 table_size = pwr_max[pdg] - pwr_min[pdg]; in ath5k_combine_pwr_to_pdadc_curves()
3143 max_idx = (pdadc_n < table_size) ? pdadc_n : table_size; in ath5k_combine_pwr_to_pdadc_curves()
3154 if ((pdadc_tmp[table_size - 1] - pdadc_tmp[table_size - 2]) > 1) in ath5k_combine_pwr_to_pdadc_curves()
3155 pwr_step = pdadc_tmp[table_size - 1] - in ath5k_combine_pwr_to_pdadc_curves()
3156 pdadc_tmp[table_size - 2]; in ath5k_combine_pwr_to_pdadc_curves()
3163 s16 tmp = pdadc_tmp[table_size - 1] + in ath5k_combine_pwr_to_pdadc_curves()
/drivers/input/touchscreen/
Datmel_mxt_ts.c754 size_t table_size; in mxt_get_object_table() local
759 table_size = data->info.object_num * sizeof(struct mxt_object); in mxt_get_object_table()
760 error = __mxt_read_reg(client, MXT_OBJECT_START, table_size, in mxt_get_object_table()
/drivers/media/platform/davinci/
Ddm355_ccdc.c515 if (dfc->table_size > CCDC_DFT_TABLE_SIZE) in ccdc_config_vdfc()
531 for (i = 0; i < dfc->table_size; i++) { in ccdc_config_vdfc()
/drivers/scsi/
Ddpt_i2o.c1485 max = lct->table_size; in adpt_i2o_parse_lct()
2539 max = lct->table_size; in adpt_i2o_reparse_lct()
3088 if ((pHba->lct->table_size << 2) > pHba->lct_size) { in adpt_i2o_lct_get()
3089 pHba->lct_size = pHba->lct->table_size << 2; in adpt_i2o_lct_get()
/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.c560 dev_priv->gart_info.table_size = R128_PCIGART_TABLE_SIZE; in r128_do_init_cce()

12