Searched refs:bit_width (Results 1 - 42 of 42) sorted by relevance

/linux-4.4.14/arch/ia64/hp/common/
H A Daml_nfw.c79 static void aml_nfw_read_arg(u8 *offset, u32 bit_width, u64 *value) aml_nfw_read_arg() argument
81 switch (bit_width) { aml_nfw_read_arg()
97 static void aml_nfw_write_arg(u8 *offset, u32 bit_width, u64 *value) aml_nfw_write_arg() argument
99 switch (bit_width) { aml_nfw_write_arg()
116 u32 bit_width, u64 *value, void *handler_context, aml_nfw_handler()
122 if (bit_width != 8 && bit_width != 16 && aml_nfw_handler()
123 bit_width != 32 && bit_width != 64) aml_nfw_handler()
126 if (address + (bit_width >> 3) > sizeof(struct ia64_nfw_context)) aml_nfw_handler()
133 aml_nfw_read_arg(offset, bit_width, value); aml_nfw_handler()
136 aml_nfw_write_arg(offset, bit_width, value); aml_nfw_handler()
115 aml_nfw_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) aml_nfw_handler() argument
/linux-4.4.14/drivers/acpi/acpica/
H A Dexregion.c57 * bit_width - Field width in bits (8, 16, or 32)
71 u32 bit_width, acpi_ex_system_memory_space_handler()
89 switch (bit_width) { acpi_ex_system_memory_space_handler()
113 bit_width)); acpi_ex_system_memory_space_handler()
206 bit_width, function, ACPI_FORMAT_UINT64(address))); acpi_ex_system_memory_space_handler()
220 switch (bit_width) { acpi_ex_system_memory_space_handler()
243 /* bit_width was already validated */ acpi_ex_system_memory_space_handler()
251 switch (bit_width) { acpi_ex_system_memory_space_handler()
274 /* bit_width was already validated */ acpi_ex_system_memory_space_handler()
295 * bit_width - Field width in bits (8, 16, or 32)
310 u32 bit_width, acpi_ex_system_io_space_handler()
321 bit_width, function, ACPI_FORMAT_UINT64(address))); acpi_ex_system_io_space_handler()
329 &value32, bit_width); acpi_ex_system_io_space_handler()
336 (u32) * value, bit_width); acpi_ex_system_io_space_handler()
354 * bit_width - Field width in bits (8, 16, or 32)
369 u32 bit_width, acpi_ex_pci_config_space_handler()
396 function, bit_width, pci_id->segment, pci_id->bus, acpi_ex_pci_config_space_handler()
404 value, bit_width); acpi_ex_pci_config_space_handler()
410 *value, bit_width); acpi_ex_pci_config_space_handler()
428 * bit_width - Field width in bits (8, 16, or 32)
443 u32 bit_width, acpi_ex_cmos_space_handler()
460 * bit_width - Field width in bits (8, 16, or 32)
475 u32 bit_width, acpi_ex_pci_bar_space_handler()
492 * bit_width - Field width in bits (8, 16, or 32)
507 u32 bit_width, acpi_ex_data_table_space_handler()
514 * Perform the memory read or write. The bit_width was already acpi_ex_data_table_space_handler()
521 ACPI_PHYSADDR_TO_PTR(address), ACPI_DIV_8(bit_width)); acpi_ex_data_table_space_handler()
527 ACPI_CAST_PTR(char, value), ACPI_DIV_8(bit_width)); acpi_ex_data_table_space_handler()
69 acpi_ex_system_memory_space_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) acpi_ex_system_memory_space_handler() argument
308 acpi_ex_system_io_space_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) acpi_ex_system_io_space_handler() argument
367 acpi_ex_pci_config_space_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) acpi_ex_pci_config_space_handler() argument
441 acpi_ex_cmos_space_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) acpi_ex_cmos_space_handler() argument
473 acpi_ex_pci_bar_space_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) acpi_ex_pci_bar_space_handler() argument
505 acpi_ex_data_table_space_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) acpi_ex_data_table_space_handler() argument
H A Dhwregs.c71 * max_bit_width - Max bit_width supported (32 or 64)
78 * pointer, Address, space_id, bit_width, and bit_offset.
112 /* Validate the bit_width */ acpi_hw_validate_register()
114 if ((reg->bit_width != 8) && acpi_hw_validate_register()
115 (reg->bit_width != 16) && acpi_hw_validate_register()
116 (reg->bit_width != 32) && (reg->bit_width != max_bit_width)) { acpi_hw_validate_register()
119 reg->bit_width)); acpi_hw_validate_register()
148 * bit_width must be exactly 8, 16, or 32.
180 address, &value64, reg->bit_width); acpi_hw_read()
186 address, value, reg->bit_width); acpi_hw_read()
191 *value, reg->bit_width, ACPI_FORMAT_UINT64(address), acpi_hw_read()
233 reg->bit_width); acpi_hw_write()
237 address, value, reg->bit_width); acpi_hw_write()
242 value, reg->bit_width, ACPI_FORMAT_UINT64(address), acpi_hw_write()
H A Dhwvalid.c52 acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width);
112 * bit_width Number of bits (8,16,32)
124 acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width) acpi_hw_validate_io_request() argument
135 if ((bit_width != 8) && (bit_width != 16) && (bit_width != 32)) { acpi_hw_validate_io_request()
137 "Bad BitWidth parameter: %8.8X", bit_width)); acpi_hw_validate_io_request()
142 byte_width = ACPI_DIV_8(bit_width); acpi_hw_validate_io_request()
H A Dtbfadt.c197 u8 bit_width; acpi_tb_init_generic_address() local
201 * Check for bit_width overflow in GAS. acpi_tb_init_generic_address()
203 bit_width = (u8)(byte_width * 8); acpi_tb_init_generic_address()
206 * No error for GPE blocks, because we do not use the bit_width acpi_tb_init_generic_address()
218 bit_width = 255; acpi_tb_init_generic_address()
230 generic_address->bit_width = bit_width; acpi_tb_init_generic_address()
619 (address64->bit_width != ACPI_MUL_8(length))) { acpi_tb_convert_fadt()
623 address64->bit_width)); acpi_tb_convert_fadt()
698 target64->bit_width)) { acpi_tb_setup_fadt_registers()
702 target64->bit_width, acpi_tb_setup_fadt_registers()
708 target64->bit_width = acpi_tb_setup_fadt_registers()
720 ACPI_DIV_16(acpi_gbl_FADT.xpm1a_event_block.bit_width); acpi_tb_setup_fadt_registers()
H A Dhwxface.c121 * bit_width must be exactly 8, 16, 32, or 64. ACPI_EXPORT_SYMBOL()
155 reg->bit_width); ACPI_EXPORT_SYMBOL()
164 width = reg->bit_width; ACPI_EXPORT_SYMBOL()
175 if (reg->bit_width == 64) { ACPI_EXPORT_SYMBOL()
194 ACPI_FORMAT_UINT64(*return_value), reg->bit_width, ACPI_EXPORT_SYMBOL()
236 address, value, reg->bit_width); ACPI_EXPORT_SYMBOL()
242 width = reg->bit_width; ACPI_EXPORT_SYMBOL()
254 if (reg->bit_width == 64) { ACPI_EXPORT_SYMBOL()
266 ACPI_FORMAT_UINT64(value), reg->bit_width, ACPI_EXPORT_SYMBOL()
H A Dacinterp.h501 u32 bit_width,
509 u32 bit_width,
516 u32 bit_width,
523 u32 bit_width,
530 u32 bit_width,
537 u32 bit_width,
545 u32 bit_width,
552 u32 bit_width,
H A Devregion.c121 * bit_width - Field width in bits (8, 16, 32, or 64)
136 u32 region_offset, u32 bit_width, u64 *value) acpi_ev_address_space_dispatch()
245 * In addition, for general_purpose_io, the Address and bit_width fields acpi_ev_address_space_dispatch()
249 * 2) bit_width is the actual bit length of the field (number of pins) acpi_ev_address_space_dispatch()
269 bit_width = field_obj->field.bit_length; acpi_ev_address_space_dispatch()
291 status = handler(function, address, bit_width, value, context, acpi_ev_address_space_dispatch()
133 acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj, union acpi_operand_object *field_obj, u32 function, u32 region_offset, u32 bit_width, u64 *value) acpi_ev_address_space_dispatch() argument
H A Dacevents.h185 u32 region_offset, u32 bit_width, u64 *value);
H A Devgpeblk.c266 this_register->status_address.bit_width = acpi_ev_create_gpe_info_blocks()
268 this_register->enable_address.bit_width = acpi_ev_create_gpe_info_blocks()
H A Damlresrc.h297 u8 bit_width; member in struct:aml_resource_generic_register
H A Drsdumpinfo.c276 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(generic_reg.bit_width), "Bit Width",
/linux-4.4.14/drivers/pinctrl/berlin/
H A Dberlin.h24 u8 bit_width; member in struct:berlin_desc_group
44 .bit_width = _width, \
H A Dberlin.c170 mask = GENMASK(group_desc->lsb + group_desc->bit_width - 1, berlin_pinmux_set()
218 max_functions += 1 << (desc_group->bit_width + 1); berlin_pinctrl_build_state()
/linux-4.4.14/arch/x86/oprofile/
H A Dop_model_ppro.c90 if (counter_width < eax.split.bit_width) ppro_setup_ctrs()
91 counter_width = eax.split.bit_width; ppro_setup_ctrs()
219 eax.split.bit_width = 40; arch_perfmon_setup_counters()
/linux-4.4.14/drivers/acpi/apei/
H A Dapei-base.c580 u32 bit_width, bit_offset, access_size_code, space_id; apei_check_gar() local
582 bit_width = reg->bit_width; apei_check_gar()
590 *paddr, bit_width, bit_offset, access_size_code, apei_check_gar()
598 *paddr, bit_width, bit_offset, access_size_code, apei_check_gar()
605 if (bit_width == 32 && bit_offset == 0 && (*paddr & 0x03) == 0 && apei_check_gar()
608 else if (bit_width == 64 && bit_offset == 0 && (*paddr & 0x07) == 0 && apei_check_gar()
612 if ((bit_width + bit_offset) > *access_bit_width) { apei_check_gar()
615 *paddr, bit_width, bit_offset, access_size_code, apei_check_gar()
624 *paddr, bit_width, bit_offset, access_size_code, apei_check_gar()
H A Deinj.c377 trigger_param_region->bit_width/8, true); __einj_error_trigger()
/linux-4.4.14/include/acpi/
H A Dcppc_acpi.h40 u8 bit_width; member in struct:cpc_reg
H A Dprocessor.h52 u8 bit_width; member in struct:acpi_power_register
89 u8 bit_width; member in struct:acpi_pct_register
130 u8 bit_width; member in struct:acpi_ptc_register
H A Dacrestyp.h369 u8 bit_width; member in struct:acpi_resource_generic_register
H A Dactbl.h125 u8 bit_width; /* Size in bits of given register */ member in struct:acpi_generic_address
H A Dactypes.h1098 u32 bit_width,
/linux-4.4.14/drivers/acpi/
H A Dprocessor_throttling.c484 if ((throttling->control_register.bit_width + acpi_processor_get_throttling_control()
491 if ((throttling->status_register.bit_width + acpi_processor_get_throttling_control()
771 u32 bit_width, bit_offset; acpi_read_throttling_status() local
780 bit_width = throttling->status_register.bit_width; acpi_read_throttling_status()
785 (u32) (bit_width + bit_offset)); acpi_read_throttling_status()
786 ptc_mask = (1 << bit_width) - 1; acpi_read_throttling_status()
803 u32 bit_width, bit_offset; acpi_write_throttling_state() local
812 bit_width = throttling->control_register.bit_width; acpi_write_throttling_state()
814 ptc_mask = (1 << bit_width) - 1; acpi_write_throttling_state()
820 (u32) (bit_width + bit_offset)); acpi_write_throttling_state()
H A Dcppc_acpi.c563 val, reg->bit_width); cpc_read()
571 val, reg->bit_width); cpc_write()
H A Dosl.c487 if (!addr || !gas->bit_width) acpi_os_map_generic_address()
490 virt = acpi_os_map_iomem(addr, gas->bit_width / 8); acpi_os_map_generic_address()
508 if (!addr || !gas->bit_width) acpi_os_unmap_generic_address()
512 map = acpi_map_lookup(addr, gas->bit_width / 8); acpi_os_unmap_generic_address()
/linux-4.4.14/drivers/cpufreq/
H A Dpcc-cpufreq.c55 u8 bit_width; member in struct:pcc_register_resource
488 doorbell.bit_width = reg_resource->bit_width; pcc_cpufreq_probe()
493 pr_debug("probe: doorbell: space_id is %d, bit_width is %d, " pcc_cpufreq_probe()
495 doorbell.space_id, doorbell.bit_width, doorbell.bit_offset, pcc_cpufreq_probe()
H A Dacpi-cpufreq.c257 u8 bit_width; member in struct:io_addr
284 (u32)cmd->addr.io.bit_width); do_drv_read()
309 (u32)cmd->addr.io.bit_width); do_drv_write()
358 cmd.addr.io.bit_width = perf->control_register.bit_width; get_cur_val()
460 cmd.addr.io.bit_width = perf->control_register.bit_width; acpi_cpufreq_target()
/linux-4.4.14/drivers/input/misc/
H A Datlas_btns.c51 u32 bit_width, u64 *value, acpi_atlas_button_handler()
49 acpi_atlas_button_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) acpi_atlas_button_handler() argument
/linux-4.4.14/drivers/xen/
H A Dxen-acpi-processor.c84 dst_cx->reg.bit_width = 8; push_cxx_to_hypervisor()
92 dst_cx->reg.bit_width = 1; /* VENDOR_INTEL */ push_cxx_to_hypervisor()
204 dst_pct->bit_width = pct->bit_width; xen_copy_pct_data()
/linux-4.4.14/drivers/acpi/pmic/
H A Dintel_pmic_xpower.c224 acpi_physical_address address, u32 bit_width, u64 *value, intel_xpower_pmic_gpio_handler()
223 intel_xpower_pmic_gpio_handler(u32 function, acpi_physical_address address, u32 bit_width, u64 *value, void *handler_context, void *region_context) intel_xpower_pmic_gpio_handler() argument
/linux-4.4.14/include/linux/
H A Dtboot.h52 u8 bit_width; member in struct:tboot_acpi_generic_address
/linux-4.4.14/arch/x86/kernel/
H A Dtboot.c258 tbg.bit_width = g.bit_width; \ tboot_copy_fadt()
/linux-4.4.14/include/xen/interface/
H A Dplatform.h338 uint32_t bit_width; member in struct:xen_power_register
379 uint8_t bit_width; member in struct:xen_pct_register
/linux-4.4.14/arch/x86/include/asm/
H A Dperf_event.h89 unsigned int bit_width:8; member in struct:cpuid10_eax::__anon3086
/linux-4.4.14/arch/x86/kvm/
H A Dpmu_intel.c283 pmu->counter_bitmask[KVM_PMC_GP] = ((u64)1 << eax.split.bit_width) - 1; intel_pmu_refresh()
H A Dcpuid.c459 eax.split.bit_width = cap.bit_width_gp; __do_cpuid_ent()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dperf_event_intel.c3266 x86_pmu.cntval_bits = eax.split.bit_width; intel_pmu_init()
3267 x86_pmu.cntval_mask = (1ULL << eax.split.bit_width) - 1; intel_pmu_init()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Dgfx_v7_0.c1889 * @bit_width: length of the mask
1894 static u32 gfx_v7_0_create_bitmask(u32 bit_width) gfx_v7_0_create_bitmask() argument
1898 for (i = 0; i < bit_width; i++) { gfx_v7_0_create_bitmask()
H A Dgfx_v8_0.c2729 static u32 gfx_v8_0_create_bitmask(u32 bit_width) gfx_v8_0_create_bitmask() argument
2733 for (i = 0; i < bit_width; i++) { gfx_v8_0_create_bitmask()
/linux-4.4.14/drivers/char/ipmi/
H A Dipmi_si_intf.c2212 if (spmi->addr.bit_width) { try_init_spmi()
2214 info->io.regspacing = spmi->addr.bit_width / 8; try_init_spmi()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dcik.c3428 * @bit_width: length of the mask
3433 static u32 cik_create_bitmask(u32 bit_width) cik_create_bitmask() argument
3437 for (i = 0; i < bit_width; i++) { cik_create_bitmask()
H A Dsi.c2964 static u32 si_create_bitmask(u32 bit_width) si_create_bitmask() argument
2968 for (i = 0; i < bit_width; i++) { si_create_bitmask()

Completed in 1126 milliseconds