Home
last modified time | relevance | path

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

12

/linux/drivers/char/agp/
H A Dintel-agp.c28 agp_bridge->previous_size = agp_bridge->current_size = (void *) (values + i); in intel_fetch_size()
47 agp_bridge->current_size = (void *) (values + i); in __intel_8xx_fetch_size()
119 struct aper_size_info_16 *current_size; in intel_configure() local
121 current_size = A_SIZE_16(agp_bridge->current_size); in intel_configure()
124 pci_write_config_word(agp_bridge->dev, INTEL_APSIZE, current_size->size_value); in intel_configure()
149 struct aper_size_info_8 *current_size; in intel_815_configure() local
159 current_size = A_SIZE_8(agp_bridge->current_size); in intel_815_configure()
163 current_size->size_value); in intel_815_configure()
208 struct aper_size_info_8 *current_size; in intel_820_configure() local
210 current_size = A_SIZE_8(agp_bridge->current_size); in intel_820_configure()
[all …]
H A Dgeneric.c286 int current_size; in agp_return_size() local
289 temp = agp_bridge->current_size; in agp_return_size()
293 current_size = A_SIZE_8(temp)->size; in agp_return_size()
296 current_size = A_SIZE_16(temp)->size; in agp_return_size()
299 current_size = A_SIZE_32(temp)->size; in agp_return_size()
302 current_size = A_SIZE_LVL2(temp)->size; in agp_return_size()
305 current_size = A_SIZE_FIX(temp)->size; in agp_return_size()
308 current_size = 0; in agp_return_size()
312 current_size -= (agp_memory_reserved / (1024*1024)); in agp_return_size()
313 if (current_size <0) in agp_return_size()
[all …]
H A Dnvidia-agp.c51 agp_bridge->current_size = (void *) (values + i); in nvidia_fetch_size()
110 struct aper_size_info_8 *current_size; in nvidia_configure() local
113 current_size = A_SIZE_8(agp_bridge->current_size); in nvidia_configure()
117 current_size->size_value); in nvidia_configure()
122 aplimit = apbase + (current_size->size * 1024 * 1024) - 1; in nvidia_configure()
127 if (0 != (rc = nvidia_init_iorr(apbase, current_size->size * 1024 * 1024))) in nvidia_configure()
131 num_dirs = current_size->size / 64; in nvidia_configure()
132 nvidia_private.num_active_entries = current_size->num_entries; in nvidia_configure()
136 nvidia_private.num_active_entries /= (64 / current_size->size); in nvidia_configure()
138 ~(current_size->size * 1024 * 1024 - 1)) / PAGE_SIZE; in nvidia_configure()
H A Defficeon-agp.c100 agp_bridge->current_size = (void *) (values + i); in efficeon_fetch_size()
132 struct aper_size_info_lvl2 *current_size; in efficeon_configure() local
136 current_size = A_SIZE_LVL2(agp_bridge->current_size); in efficeon_configure()
140 current_size->size_value); in efficeon_configure()
200 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in efficeon_create_gatt_table()
245 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in efficeon_insert_memory()
291 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in efficeon_remove_memory()
H A Dali-agp.c34 agp_bridge->current_size = (void *) (values + i); in ali_fetch_size()
73 struct aper_size_info_32 *current_size; in ali_configure() local
75 current_size = A_SIZE_32(agp_bridge->current_size); in ali_configure()
80 | (current_size->size_value & 0xf)); in ali_configure()
95 switch (current_size->size_value) { in ali_configure()
133 page_count = 1 << A_SIZE_32(agp_bridge->current_size)->page_order; in m1541_cache_flush()
H A Duninorth-agp.c69 agp_bridge->current_size = (void *)(values + i); in uninorth_fetch_size()
113 struct aper_size_info_32 *current_size; in uninorth_configure() local
115 current_size = A_SIZE_32(agp_bridge->current_size); in uninorth_configure()
118 current_size->size_value); in uninorth_configure()
124 | current_size->size_value); in uninorth_configure()
169 temp = agp_bridge->current_size; in uninorth_insert_memory()
386 temp = bridge->current_size; in uninorth_create_gatt_table()
398 bridge->current_size = A_IDX32(bridge); in uninorth_create_gatt_table()
456 temp = bridge->current_size; in uninorth_free_gatt_table()
H A Dati-agp.c166 agp_bridge->current_size = (void *) (values + i); in ati_fetch_size()
267 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in ati_insert_memory()
342 struct aper_size_info_lvl2 *current_size; in ati_create_gatt_table() local
344 value = A_SIZE_LVL2(agp_bridge->current_size); in ati_create_gatt_table()
360 current_size = A_SIZE_LVL2(agp_bridge->current_size); in ati_create_gatt_table()
364 temp = (((temp & ~(0x0000000e)) | current_size->size_value) in ati_create_gatt_table()
370 temp = (((temp & ~(0x0000000e)) | current_size->size_value) in ati_create_gatt_table()
H A Dvia-agp.c35 agp_bridge->current_size = (void *) (values + i); in via_fetch_size()
47 struct aper_size_info_8 *current_size; in via_configure() local
49 current_size = A_SIZE_8(agp_bridge->current_size); in via_configure()
52 current_size->size_value); in via_configure()
119 agp_bridge->current_size = (void *) (values + i); in via_fetch_size_agp3()
H A Damd-k7-agp.c133 value = A_SIZE_LVL2(agp_bridge->current_size); in amd_create_gatt_table()
197 agp_bridge->current_size = (void *) (values + i); in amd_irongate_fetch_size()
209 struct aper_size_info_lvl2 *current_size; in amd_irongate_configure() local
214 current_size = A_SIZE_LVL2(agp_bridge->current_size); in amd_irongate_configure()
242 temp = (((temp & ~(0x0000000e)) | current_size->size_value) | 1); in amd_irongate_configure()
291 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in amd_insert_memory()
H A Dsis-agp.c36 agp_bridge->current_size = (void *) (values + i); in sis_fetch_size()
53 struct aper_size_info_8 *current_size; in sis_configure() local
55 current_size = A_SIZE_8(agp_bridge->current_size); in sis_configure()
62 current_size->size_value); in sis_configure()
H A Dalpha-agp.c94 temp = agp_bridge->current_size; in alpha_core_agp_insert_memory()
188 alpha_bridge->current_size = aper_size; /* only 1 size */ in alpha_core_agp_setup()
H A Dsworks-agp.c146 value = A_SIZE_LVL2(agp_bridge->current_size); in serverworks_create_gatt_table()
219 agp_bridge->current_size = (void *) (values + i); in serverworks_fetch_size()
324 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in serverworks_insert_memory()
H A Dagp.h130 void *current_size; member
H A Dparisc-agp.c71 agp_bridge->current_size = (void *) &parisc_agp_sizes[0]; in parisc_agp_fetch_size()
H A Damd64-agp.c139 agp_bridge->current_size = (void *) (values + i); in amd64_fetch_size()
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum/
H A Ddevlink_lib_spectrum.sh39 current_size=$(devlink_resource_size_get kvd "$i")
41 if [ "$size" -ne "$current_size" ]; then
50 current_size=$(devlink_resource_size_get kvd linear "$i")
52 if [ "$size" -ne "$current_size" ]; then
/linux/drivers/gpu/drm/xe/
H A Dxe_vram.c55 resource_size_t current_size; in resize_vram_bar() local
63 current_size = pci_resource_len(pdev, LMEM_BAR); in resize_vram_bar()
80 (u64)rebar_size >> 20, bar_size_mask, (u64)current_size >> 20); in resize_vram_bar()
86 if (rebar_size == current_size) in resize_vram_bar()
92 if (rebar_size <= current_size) in resize_vram_bar()
97 (u64)current_size >> 20, (u64)rebar_size >> 20); in resize_vram_bar()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_region_lmem.c56 resource_size_t current_size; in i915_resize_lmem_bar() local
61 current_size = roundup_pow_of_two(pci_resource_len(pdev, GEN12_LMEM_BAR)); in i915_resize_lmem_bar()
70 if (rebar_size == current_size) in i915_resize_lmem_bar()
82 rebar_size = current_size; in i915_resize_lmem_bar()
/linux/drivers/nvdimm/
H A Dcore.c240 ssize_t nd_size_select_show(unsigned long current_size, in nd_size_select_show() argument
247 if (current_size == supported[i]) in nd_size_select_show()
256 unsigned long *current_size, const unsigned long *supported) in nd_size_select_store() argument
273 *current_size = lbasize; in nd_size_select_store()
H A Dnd.h498 ssize_t nd_size_select_show(unsigned long current_size,
501 unsigned long *current_size, const unsigned long *supported);
/linux/drivers/firmware/qcom/
H A Dqcom_tzmem.c334 size_t current_size = gen_pool_size(pool->genpool); in qcom_tzmem_try_grow_pool() local
336 if (pool->max_size && (current_size + requested) > pool->max_size) in qcom_tzmem_try_grow_pool()
343 requested = current_size * pool->increment; in qcom_tzmem_try_grow_pool()
/linux/drivers/gpu/drm/gma500/
H A Dintel_bios.c24 u16 total, current_size; in find_section() local
35 current_size = *((u16 *)(base + index)); in find_section()
39 index += current_size; in find_section()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_bios.c101 u32 total, current_size; in find_raw_section() local
111 current_size = _get_blocksize(base + index); in find_raw_section()
114 if (index + current_size > total) in find_raw_section()
120 index += current_size; in find_raw_section()
1768 u32 current_size; in find_panel_sequence_block() local
1786 current_size = *((const u32 *)(data + index + 1)); in find_panel_sequence_block()
1788 current_size = *((const u16 *)(data + index + 1)); in find_panel_sequence_block()
1792 if (index + current_size > total) { in find_panel_sequence_block()
1798 *seq_size = current_size; in find_panel_sequence_block()
1802 index += current_size; in find_panel_sequence_block()
/linux/sound/pci/trident/
H A Dtrident.h327 int current_size; /* current allocated synth mem in bytes */ member
/linux/drivers/usb/class/
H A Dcdc-acm.c375 unsigned int current_size = urb->actual_length; in acm_ctrl_irq() local
408 if (current_size < expected_size) { in acm_ctrl_irq()
426 copy_size = min(current_size, in acm_ctrl_irq()
432 current_size = acm->nb_index; in acm_ctrl_irq()
435 if (current_size >= expected_size) { in acm_ctrl_irq()

12