Lines Matching refs:le16_to_cpu
52 i2c.mask_clk_reg = le16_to_cpu(gpio->usClkMaskRegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio()
53 i2c.mask_data_reg = le16_to_cpu(gpio->usDataMaskRegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio()
54 i2c.en_clk_reg = le16_to_cpu(gpio->usClkEnRegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio()
55 i2c.en_data_reg = le16_to_cpu(gpio->usDataEnRegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio()
56 i2c.y_clk_reg = le16_to_cpu(gpio->usClkY_RegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio()
57 i2c.y_data_reg = le16_to_cpu(gpio->usDataY_RegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio()
58 i2c.a_clk_reg = le16_to_cpu(gpio->usClkA_RegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio()
59 i2c.a_data_reg = le16_to_cpu(gpio->usDataA_RegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio()
184 gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex); in amdgpu_atombios_lookup_gpio()
283 le16_to_cpu(obj_header->usDisplayPathTableOffset)); in amdgpu_atombios_has_dce_engine_info()
320 le16_to_cpu(obj_header->usDisplayPathTableOffset)); in amdgpu_atombios_get_connector_info_from_object_table()
323 le16_to_cpu(obj_header->usConnectorObjectTableOffset)); in amdgpu_atombios_get_connector_info_from_object_table()
326 le16_to_cpu(obj_header->usEncoderObjectTableOffset)); in amdgpu_atombios_get_connector_info_from_object_table()
329 le16_to_cpu(obj_header->usRouterObjectTableOffset)); in amdgpu_atombios_get_connector_info_from_object_table()
330 device_support = le16_to_cpu(obj_header->usDeviceSupport); in amdgpu_atombios_get_connector_info_from_object_table()
338 path_size += le16_to_cpu(path->usSize); in amdgpu_atombios_get_connector_info_from_object_table()
340 if (device_support & le16_to_cpu(path->usDeviceTag)) { in amdgpu_atombios_get_connector_info_from_object_table()
342 (le16_to_cpu(path->usConnObjectId) & OBJECT_ID_MASK) in amdgpu_atombios_get_connector_info_from_object_table()
346 if ((le16_to_cpu(path->usDeviceTag) == in amdgpu_atombios_get_connector_info_from_object_table()
348 (le16_to_cpu(path->usDeviceTag) == in amdgpu_atombios_get_connector_info_from_object_table()
354 con_obj_id, le16_to_cpu(path->usDeviceTag)); in amdgpu_atombios_get_connector_info_from_object_table()
367 for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) { in amdgpu_atombios_get_connector_info_from_object_table()
369 (le16_to_cpu(path->usGraphicObjIds[j]) & in amdgpu_atombios_get_connector_info_from_object_table()
374 u16 encoder_obj = le16_to_cpu(enc_obj->asObjects[k].usObjectID); in amdgpu_atombios_get_connector_info_from_object_table()
375 if (le16_to_cpu(path->usGraphicObjIds[j]) == encoder_obj) { in amdgpu_atombios_get_connector_info_from_object_table()
378 le16_to_cpu(enc_obj->asObjects[k].usRecordOffset)); in amdgpu_atombios_get_connector_info_from_object_table()
389 caps = le16_to_cpu(cap_record->usEncoderCap); in amdgpu_atombios_get_connector_info_from_object_table()
396 le16_to_cpu(path->usDeviceTag), in amdgpu_atombios_get_connector_info_from_object_table()
402 u16 router_obj_id = le16_to_cpu(router_obj->asObjects[k].usObjectID); in amdgpu_atombios_get_connector_info_from_object_table()
403 if (le16_to_cpu(path->usGraphicObjIds[j]) == router_obj_id) { in amdgpu_atombios_get_connector_info_from_object_table()
406 le16_to_cpu(router_obj->asObjects[k].usRecordOffset)); in amdgpu_atombios_get_connector_info_from_object_table()
414 le16_to_cpu(router_obj->asObjects[k].usSrcDstTableOffset)); in amdgpu_atombios_get_connector_info_from_object_table()
423 if (le16_to_cpu(path->usConnObjectId) == in amdgpu_atombios_get_connector_info_from_object_table()
424 le16_to_cpu(dst_objs[enum_id])) in amdgpu_atombios_get_connector_info_from_object_table()
473 if ((le16_to_cpu(path->usDeviceTag) & in amdgpu_atombios_get_connector_info_from_object_table()
476 if (le16_to_cpu(path->usConnObjectId) == in amdgpu_atombios_get_connector_info_from_object_table()
477 le16_to_cpu(con_obj->asObjects[j]. in amdgpu_atombios_get_connector_info_from_object_table()
484 le16_to_cpu(con_obj-> in amdgpu_atombios_get_connector_info_from_object_table()
531 conn_id = le16_to_cpu(path->usConnObjectId); in amdgpu_atombios_get_connector_info_from_object_table()
535 le16_to_cpu(path->usDeviceTag), in amdgpu_atombios_get_connector_info_from_object_table()
577 le16_to_cpu(firmware_info->info.usReferenceClock); in amdgpu_atombios_get_clock_info()
586 le16_to_cpu(firmware_info->info_14.usLcdMinPixelClockPLL_Output) * 100; in amdgpu_atombios_get_clock_info()
590 le16_to_cpu(firmware_info->info_14.usLcdMaxPixelClockPLL_Output) * 100; in amdgpu_atombios_get_clock_info()
598 le16_to_cpu(firmware_info->info.usMinPixelClockPLL_Input); in amdgpu_atombios_get_clock_info()
600 le16_to_cpu(firmware_info->info.usMaxPixelClockPLL_Input); in amdgpu_atombios_get_clock_info()
617 le16_to_cpu(firmware_info->info_21.usCoreReferenceClock); in amdgpu_atombios_get_clock_info()
621 le16_to_cpu(firmware_info->info.usMinEngineClockPLL_Output); in amdgpu_atombios_get_clock_info()
630 le16_to_cpu(firmware_info->info.usMinEngineClockPLL_Input); in amdgpu_atombios_get_clock_info()
632 le16_to_cpu(firmware_info->info.usMaxEngineClockPLL_Input); in amdgpu_atombios_get_clock_info()
644 le16_to_cpu(firmware_info->info_21.usMemoryReferenceClock); in amdgpu_atombios_get_clock_info()
648 le16_to_cpu(firmware_info->info.usMinMemoryClockPLL_Output); in amdgpu_atombios_get_clock_info()
657 le16_to_cpu(firmware_info->info.usMinMemoryClockPLL_Input); in amdgpu_atombios_get_clock_info()
659 le16_to_cpu(firmware_info->info.usMaxMemoryClockPLL_Input); in amdgpu_atombios_get_clock_info()
688 le16_to_cpu(firmware_info->info_21.usUniphyDPModeExtClkFreq); in amdgpu_atombios_get_clock_info()
691 adev->clock.max_pixel_clock = le16_to_cpu(firmware_info->info.usMaxPixelClock); in amdgpu_atombios_get_clock_info()
697 le16_to_cpu(firmware_info->info.usFirmwareCapability.susAccess); in amdgpu_atombios_get_clock_info()
796 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
797 rate = le16_to_cpu(igp_info->info_6.usDVISSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
800 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
801 rate = le16_to_cpu(igp_info->info_6.usHDMISSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
804 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
805 rate = le16_to_cpu(igp_info->info_6.usLvdsSSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
812 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
813 rate = le16_to_cpu(igp_info->info_7.usDVISSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
816 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
817 rate = le16_to_cpu(igp_info->info_7.usHDMISSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
820 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
821 rate = le16_to_cpu(igp_info->info_7.usLvdsSSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
828 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
829 rate = le16_to_cpu(igp_info->info_8.usDVISSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
832 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
833 rate = le16_to_cpu(igp_info->info_8.usHDMISSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
836 percentage = le16_to_cpu(igp_info->info_8.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
837 rate = le16_to_cpu(igp_info->info_8.usLvdsSSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
844 percentage = le16_to_cpu(igp_info->info_9.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
845 rate = le16_to_cpu(igp_info->info_9.usDVISSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
848 percentage = le16_to_cpu(igp_info->info_9.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
849 rate = le16_to_cpu(igp_info->info_9.usHDMISSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
852 percentage = le16_to_cpu(igp_info->info_9.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
853 rate = le16_to_cpu(igp_info->info_9.usLvdsSSpreadRateIn10Hz); in amdgpu_atombios_get_igp_ss_overrides()
918 le16_to_cpu(ss_assign->v1.usSpreadSpectrumPercentage); in amdgpu_atombios_get_asic_ss_info()
920 ss->rate = le16_to_cpu(ss_assign->v1.usSpreadRateInKhz); in amdgpu_atombios_get_asic_ss_info()
936 le16_to_cpu(ss_assign->v2.usSpreadSpectrumPercentage); in amdgpu_atombios_get_asic_ss_info()
938 ss->rate = le16_to_cpu(ss_assign->v2.usSpreadRateIn10Hz); in amdgpu_atombios_get_asic_ss_info()
958 le16_to_cpu(ss_assign->v3.usSpreadSpectrumPercentage); in amdgpu_atombios_get_asic_ss_info()
960 ss->rate = le16_to_cpu(ss_assign->v3.usSpreadRateIn10Hz); in amdgpu_atombios_get_asic_ss_info()
1028 dividers->whole_fb_div = le16_to_cpu(args.v3.ulFbDiv.usFbDiv); in amdgpu_atombios_get_clock_dividers()
1029 dividers->frac_fb_div = le16_to_cpu(args.v3.ulFbDiv.usFbDivFrac); in amdgpu_atombios_get_clock_dividers()
1048 dividers->whole_fb_div = le16_to_cpu(args.v5.ulFbDiv.usFbDiv); in amdgpu_atombios_get_clock_dividers()
1049 dividers->frac_fb_div = le16_to_cpu(args.v5.ulFbDiv.usFbDivFrac); in amdgpu_atombios_get_clock_dividers()
1072 dividers->whole_fb_div = le16_to_cpu(args.v6_out.ulFbDiv.usFbDiv); in amdgpu_atombios_get_clock_dividers()
1073 dividers->frac_fb_div = le16_to_cpu(args.v6_out.ulFbDiv.usFbDivFrac); in amdgpu_atombios_get_clock_dividers()
1114 mpll_param->clkfrac = le16_to_cpu(args.ulFbDiv.usFbDivFrac); in amdgpu_atombios_get_memory_pll_dividers()
1115 mpll_param->clkf = le16_to_cpu(args.ulFbDiv.usFbDiv); in amdgpu_atombios_get_memory_pll_dividers()
1175 *vddc = le16_to_cpu(firmware_info->info_14.usBootUpVDDCVoltage); in amdgpu_atombios_get_default_voltages()
1177 *vddci = le16_to_cpu(firmware_info->info_22.usBootUpVDDCIVoltage); in amdgpu_atombios_get_default_voltages()
1178 *mvdd = le16_to_cpu(firmware_info->info_22.usBootUpMVDDCVoltage); in amdgpu_atombios_get_default_voltages()
1210 *voltage = le16_to_cpu(args.v2.usVoltageLevel); in amdgpu_atombios_get_max_vddc()
1219 *voltage = le16_to_cpu(args.v3.usVoltageLevel); in amdgpu_atombios_get_max_vddc()
1252 u32 size = le16_to_cpu(v3->sHeader.usStructureSize); in amdgpu_atombios_lookup_voltage_object_v3()
1261 offset += le16_to_cpu(vo->asGpioVoltageObj.sHeader.usSize); in amdgpu_atombios_lookup_voltage_object_v3()
1378 le16_to_cpu(lut->usVoltageValue); in amdgpu_atombios_get_voltage_table()
1443 ((u8 *)vram_info + le16_to_cpu(vram_info->v2_1.usMemClkPatchTblOffset)); in amdgpu_atombios_init_mc_reg_table()
1447 le16_to_cpu(reg_block->usRegIndexTblSize)); in amdgpu_atombios_init_mc_reg_table()
1449 num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) / in amdgpu_atombios_init_mc_reg_table()
1457 (u16)(le16_to_cpu(format->usRegIndex)); in amdgpu_atombios_init_mc_reg_table()
1486 ((u8 *)reg_data + le16_to_cpu(reg_block->usRegDataBlkSize)); in amdgpu_atombios_init_mc_reg_table()
1643 le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb)); in amdgpu_atombios_allocate_fb_scratch()
1658 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in amdgpu_atombios_allocate_fb_scratch()