/linux-4.4.14/include/linux/usb/ |
H A D | input.h | 20 id->vendor = le16_to_cpu(dev->descriptor.idVendor); usb_to_input_id() 21 id->product = le16_to_cpu(dev->descriptor.idProduct); usb_to_input_id() 22 id->version = le16_to_cpu(dev->descriptor.bcdDevice); usb_to_input_id()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_atombios.c | 50 i2c.mask_clk_reg = le16_to_cpu(gpio->usClkMaskRegisterIndex); amdgpu_atombios_get_bus_rec_for_i2c_gpio() 51 i2c.mask_data_reg = le16_to_cpu(gpio->usDataMaskRegisterIndex); amdgpu_atombios_get_bus_rec_for_i2c_gpio() 52 i2c.en_clk_reg = le16_to_cpu(gpio->usClkEnRegisterIndex); amdgpu_atombios_get_bus_rec_for_i2c_gpio() 53 i2c.en_data_reg = le16_to_cpu(gpio->usDataEnRegisterIndex); amdgpu_atombios_get_bus_rec_for_i2c_gpio() 54 i2c.y_clk_reg = le16_to_cpu(gpio->usClkY_RegisterIndex); amdgpu_atombios_get_bus_rec_for_i2c_gpio() 55 i2c.y_data_reg = le16_to_cpu(gpio->usDataY_RegisterIndex); amdgpu_atombios_get_bus_rec_for_i2c_gpio() 56 i2c.a_clk_reg = le16_to_cpu(gpio->usClkA_RegisterIndex); amdgpu_atombios_get_bus_rec_for_i2c_gpio() 57 i2c.a_data_reg = le16_to_cpu(gpio->usDataA_RegisterIndex); amdgpu_atombios_get_bus_rec_for_i2c_gpio() 182 gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex); amdgpu_atombios_lookup_gpio() 301 le16_to_cpu(obj_header->usDisplayPathTableOffset)); amdgpu_atombios_get_connector_info_from_object_table() 304 le16_to_cpu(obj_header->usConnectorObjectTableOffset)); amdgpu_atombios_get_connector_info_from_object_table() 307 le16_to_cpu(obj_header->usEncoderObjectTableOffset)); amdgpu_atombios_get_connector_info_from_object_table() 310 le16_to_cpu(obj_header->usRouterObjectTableOffset)); amdgpu_atombios_get_connector_info_from_object_table() 311 device_support = le16_to_cpu(obj_header->usDeviceSupport); amdgpu_atombios_get_connector_info_from_object_table() 319 path_size += le16_to_cpu(path->usSize); amdgpu_atombios_get_connector_info_from_object_table() 321 if (device_support & le16_to_cpu(path->usDeviceTag)) { amdgpu_atombios_get_connector_info_from_object_table() 325 (le16_to_cpu(path->usConnObjectId) & OBJECT_ID_MASK) amdgpu_atombios_get_connector_info_from_object_table() 328 (le16_to_cpu(path->usConnObjectId) & ENUM_ID_MASK) amdgpu_atombios_get_connector_info_from_object_table() 331 (le16_to_cpu(path->usConnObjectId) & amdgpu_atombios_get_connector_info_from_object_table() 343 for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) { amdgpu_atombios_get_connector_info_from_object_table() 347 (le16_to_cpu(path->usGraphicObjIds[j]) & amdgpu_atombios_get_connector_info_from_object_table() 350 (le16_to_cpu(path->usGraphicObjIds[j]) & amdgpu_atombios_get_connector_info_from_object_table() 353 (le16_to_cpu(path->usGraphicObjIds[j]) & amdgpu_atombios_get_connector_info_from_object_table() 358 u16 encoder_obj = le16_to_cpu(enc_obj->asObjects[k].usObjectID); amdgpu_atombios_get_connector_info_from_object_table() 359 if (le16_to_cpu(path->usGraphicObjIds[j]) == encoder_obj) { amdgpu_atombios_get_connector_info_from_object_table() 362 le16_to_cpu(enc_obj->asObjects[k].usRecordOffset)); amdgpu_atombios_get_connector_info_from_object_table() 373 caps = le16_to_cpu(cap_record->usEncoderCap); amdgpu_atombios_get_connector_info_from_object_table() 380 le16_to_cpu(path->usDeviceTag), amdgpu_atombios_get_connector_info_from_object_table() 386 u16 router_obj_id = le16_to_cpu(router_obj->asObjects[k].usObjectID); amdgpu_atombios_get_connector_info_from_object_table() 387 if (le16_to_cpu(path->usGraphicObjIds[j]) == router_obj_id) { amdgpu_atombios_get_connector_info_from_object_table() 390 le16_to_cpu(router_obj->asObjects[k].usRecordOffset)); amdgpu_atombios_get_connector_info_from_object_table() 398 le16_to_cpu(router_obj->asObjects[k].usSrcDstTableOffset)); amdgpu_atombios_get_connector_info_from_object_table() 407 if (le16_to_cpu(path->usConnObjectId) == amdgpu_atombios_get_connector_info_from_object_table() 408 le16_to_cpu(dst_objs[enum_id])) amdgpu_atombios_get_connector_info_from_object_table() 457 if ((le16_to_cpu(path->usDeviceTag) & amdgpu_atombios_get_connector_info_from_object_table() 460 if (le16_to_cpu(path->usConnObjectId) == amdgpu_atombios_get_connector_info_from_object_table() 461 le16_to_cpu(con_obj->asObjects[j]. amdgpu_atombios_get_connector_info_from_object_table() 468 le16_to_cpu(con_obj-> amdgpu_atombios_get_connector_info_from_object_table() 515 conn_id = le16_to_cpu(path->usConnObjectId); amdgpu_atombios_get_connector_info_from_object_table() 518 (adev, le16_to_cpu(path->usDeviceTag), &connector_type, amdgpu_atombios_get_connector_info_from_object_table() 524 le16_to_cpu(path->usDeviceTag), amdgpu_atombios_get_connector_info_from_object_table() 566 le16_to_cpu(firmware_info->info.usReferenceClock); amdgpu_atombios_get_clock_info() 571 le16_to_cpu(firmware_info->info.usMinPixelClockPLL_Output); amdgpu_atombios_get_clock_info() 580 le16_to_cpu(firmware_info->info_14.usLcdMinPixelClockPLL_Output) * 100; amdgpu_atombios_get_clock_info() 584 le16_to_cpu(firmware_info->info_14.usLcdMaxPixelClockPLL_Output) * 100; amdgpu_atombios_get_clock_info() 596 le16_to_cpu(firmware_info->info.usMinPixelClockPLL_Input); amdgpu_atombios_get_clock_info() 598 le16_to_cpu(firmware_info->info.usMaxPixelClockPLL_Input); amdgpu_atombios_get_clock_info() 615 le16_to_cpu(firmware_info->info_21.usCoreReferenceClock); amdgpu_atombios_get_clock_info() 619 le16_to_cpu(firmware_info->info.usMinEngineClockPLL_Output); amdgpu_atombios_get_clock_info() 628 le16_to_cpu(firmware_info->info.usMinEngineClockPLL_Input); amdgpu_atombios_get_clock_info() 630 le16_to_cpu(firmware_info->info.usMaxEngineClockPLL_Input); amdgpu_atombios_get_clock_info() 642 le16_to_cpu(firmware_info->info_21.usMemoryReferenceClock); amdgpu_atombios_get_clock_info() 646 le16_to_cpu(firmware_info->info.usMinMemoryClockPLL_Output); amdgpu_atombios_get_clock_info() 655 le16_to_cpu(firmware_info->info.usMinMemoryClockPLL_Input); amdgpu_atombios_get_clock_info() 657 le16_to_cpu(firmware_info->info.usMaxMemoryClockPLL_Input); amdgpu_atombios_get_clock_info() 682 le16_to_cpu(firmware_info->info_21.usUniphyDPModeExtClkFreq); amdgpu_atombios_get_clock_info() 685 adev->clock.max_pixel_clock = le16_to_cpu(firmware_info->info.usMaxPixelClock); amdgpu_atombios_get_clock_info() 691 le16_to_cpu(firmware_info->info.usFirmwareCapability.susAccess); amdgpu_atombios_get_clock_info() 731 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); amdgpu_atombios_get_igp_ss_overrides() 732 rate = le16_to_cpu(igp_info->info_6.usDVISSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 735 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); amdgpu_atombios_get_igp_ss_overrides() 736 rate = le16_to_cpu(igp_info->info_6.usHDMISSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 739 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); amdgpu_atombios_get_igp_ss_overrides() 740 rate = le16_to_cpu(igp_info->info_6.usLvdsSSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 747 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); amdgpu_atombios_get_igp_ss_overrides() 748 rate = le16_to_cpu(igp_info->info_7.usDVISSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 751 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); amdgpu_atombios_get_igp_ss_overrides() 752 rate = le16_to_cpu(igp_info->info_7.usHDMISSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 755 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); amdgpu_atombios_get_igp_ss_overrides() 756 rate = le16_to_cpu(igp_info->info_7.usLvdsSSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 763 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); amdgpu_atombios_get_igp_ss_overrides() 764 rate = le16_to_cpu(igp_info->info_8.usDVISSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 767 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); amdgpu_atombios_get_igp_ss_overrides() 768 rate = le16_to_cpu(igp_info->info_8.usHDMISSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 771 percentage = le16_to_cpu(igp_info->info_8.usLvdsSSPercentage); amdgpu_atombios_get_igp_ss_overrides() 772 rate = le16_to_cpu(igp_info->info_8.usLvdsSSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 779 percentage = le16_to_cpu(igp_info->info_9.usDVISSPercentage); amdgpu_atombios_get_igp_ss_overrides() 780 rate = le16_to_cpu(igp_info->info_9.usDVISSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 783 percentage = le16_to_cpu(igp_info->info_9.usHDMISSPercentage); amdgpu_atombios_get_igp_ss_overrides() 784 rate = le16_to_cpu(igp_info->info_9.usHDMISSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 787 percentage = le16_to_cpu(igp_info->info_9.usLvdsSSPercentage); amdgpu_atombios_get_igp_ss_overrides() 788 rate = le16_to_cpu(igp_info->info_9.usLvdsSSpreadRateIn10Hz); amdgpu_atombios_get_igp_ss_overrides() 853 le16_to_cpu(ss_assign->v1.usSpreadSpectrumPercentage); amdgpu_atombios_get_asic_ss_info() 855 ss->rate = le16_to_cpu(ss_assign->v1.usSpreadRateInKhz); amdgpu_atombios_get_asic_ss_info() 871 le16_to_cpu(ss_assign->v2.usSpreadSpectrumPercentage); amdgpu_atombios_get_asic_ss_info() 873 ss->rate = le16_to_cpu(ss_assign->v2.usSpreadRateIn10Hz); amdgpu_atombios_get_asic_ss_info() 893 le16_to_cpu(ss_assign->v3.usSpreadSpectrumPercentage); amdgpu_atombios_get_asic_ss_info() 895 ss->rate = le16_to_cpu(ss_assign->v3.usSpreadRateIn10Hz); amdgpu_atombios_get_asic_ss_info() 965 dividers->whole_fb_div = le16_to_cpu(args.v6_out.ulFbDiv.usFbDiv); amdgpu_atombios_get_clock_dividers() 966 dividers->frac_fb_div = le16_to_cpu(args.v6_out.ulFbDiv.usFbDivFrac); amdgpu_atombios_get_clock_dividers() 1006 mpll_param->clkfrac = le16_to_cpu(args.ulFbDiv.usFbDivFrac); amdgpu_atombios_get_memory_pll_dividers() 1007 mpll_param->clkf = le16_to_cpu(args.ulFbDiv.usFbDiv); amdgpu_atombios_get_memory_pll_dividers() 1157 *leakage_id = le16_to_cpu(args.v3.usVoltageLevel); amdgpu_atombios_get_leakage_id_from_vbios() 1199 le16_to_cpu(profile->usLeakageBinArrayOffset)); amdgpu_atombios_get_leakage_vddc_based_on_leakage_params() 1202 le16_to_cpu(profile->usElbVDDC_IdArrayOffset)); amdgpu_atombios_get_leakage_vddc_based_on_leakage_params() 1205 le16_to_cpu(profile->usElbVDDC_LevelArrayOffset)); amdgpu_atombios_get_leakage_vddc_based_on_leakage_params() 1208 le16_to_cpu(profile->usElbVDDCI_IdArrayOffset)); amdgpu_atombios_get_leakage_vddc_based_on_leakage_params() 1211 le16_to_cpu(profile->usElbVDDCI_LevelArrayOffset)); amdgpu_atombios_get_leakage_vddc_based_on_leakage_params() 1284 *voltage = le16_to_cpu(args.evv_out.usVoltageLevel); amdgpu_atombios_get_voltage_evv() 1305 u32 size = le16_to_cpu(v3->sHeader.usStructureSize); amdgpu_atombios_lookup_voltage_object_v3() 1314 offset += le16_to_cpu(vo->asGpioVoltageObj.sHeader.usSize); amdgpu_atombios_lookup_voltage_object_v3() 1387 le16_to_cpu(lut->usVoltageValue); amdgpu_atombios_get_voltage_table() 1452 ((u8 *)vram_info + le16_to_cpu(vram_info->v2_1.usMemClkPatchTblOffset)); amdgpu_atombios_init_mc_reg_table() 1456 le16_to_cpu(reg_block->usRegIndexTblSize)); amdgpu_atombios_init_mc_reg_table() 1458 num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) / amdgpu_atombios_init_mc_reg_table() 1466 (u16)(le16_to_cpu(format->usRegIndex)); amdgpu_atombios_init_mc_reg_table() 1495 ((u8 *)reg_data + le16_to_cpu(reg_block->usRegDataBlkSize)); amdgpu_atombios_init_mc_reg_table()
|
H A D | amdgpu_dpm.c | 271 amdgpu_table->entries[i].clk = le16_to_cpu(entry->usClockLow) | amdgpu_parse_clk_voltage_dep_table() 273 amdgpu_table->entries[i].v = le16_to_cpu(entry->usVoltage); amdgpu_parse_clk_voltage_dep_table() 296 adev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); amdgpu_get_platform_caps() 297 adev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); amdgpu_get_platform_caps() 329 if (le16_to_cpu(power_info->pplib.usTableSize) >= amdgpu_parse_extended_power_table() 333 le16_to_cpu(power_info->pplib3.usFanTableOffset)); amdgpu_parse_extended_power_table() 335 adev->pm.dpm.fan.t_min = le16_to_cpu(fan_info->fan.usTMin); amdgpu_parse_extended_power_table() 336 adev->pm.dpm.fan.t_med = le16_to_cpu(fan_info->fan.usTMed); amdgpu_parse_extended_power_table() 337 adev->pm.dpm.fan.t_high = le16_to_cpu(fan_info->fan.usTHigh); amdgpu_parse_extended_power_table() 338 adev->pm.dpm.fan.pwm_min = le16_to_cpu(fan_info->fan.usPWMMin); amdgpu_parse_extended_power_table() 339 adev->pm.dpm.fan.pwm_med = le16_to_cpu(fan_info->fan.usPWMMed); amdgpu_parse_extended_power_table() 340 adev->pm.dpm.fan.pwm_high = le16_to_cpu(fan_info->fan.usPWMHigh); amdgpu_parse_extended_power_table() 342 adev->pm.dpm.fan.t_max = le16_to_cpu(fan_info->fan2.usTMax); amdgpu_parse_extended_power_table() 349 le16_to_cpu(fan_info->fan3.usFanPWMMax); amdgpu_parse_extended_power_table() 352 le16_to_cpu(fan_info->fan3.usFanOutputSensitivity); amdgpu_parse_extended_power_table() 359 if (le16_to_cpu(power_info->pplib.usTableSize) >= amdgpu_parse_extended_power_table() 364 le16_to_cpu(power_info->pplib4.usVddcDependencyOnSCLKOffset)); amdgpu_parse_extended_power_table() 375 le16_to_cpu(power_info->pplib4.usVddciDependencyOnMCLKOffset)); amdgpu_parse_extended_power_table() 386 le16_to_cpu(power_info->pplib4.usVddcDependencyOnMCLKOffset)); amdgpu_parse_extended_power_table() 397 le16_to_cpu(power_info->pplib4.usMvddDependencyOnMCLKOffset)); amdgpu_parse_extended_power_table() 409 le16_to_cpu(power_info->pplib4.usMaxClockVoltageOnDCOffset)); amdgpu_parse_extended_power_table() 412 le16_to_cpu(clk_v->entries[0].usSclkLow) | amdgpu_parse_extended_power_table() 415 le16_to_cpu(clk_v->entries[0].usMclkLow) | amdgpu_parse_extended_power_table() 418 le16_to_cpu(clk_v->entries[0].usVddc); amdgpu_parse_extended_power_table() 420 le16_to_cpu(clk_v->entries[0].usVddci); amdgpu_parse_extended_power_table() 427 le16_to_cpu(power_info->pplib4.usVddcPhaseShedLimitsTableOffset)); amdgpu_parse_extended_power_table() 442 le16_to_cpu(entry->usSclkLow) | (entry->ucSclkHigh << 16); amdgpu_parse_extended_power_table() 444 le16_to_cpu(entry->usMclkLow) | (entry->ucMclkHigh << 16); amdgpu_parse_extended_power_table() 446 le16_to_cpu(entry->usVoltage); amdgpu_parse_extended_power_table() 456 if (le16_to_cpu(power_info->pplib.usTableSize) >= amdgpu_parse_extended_power_table() 461 adev->pm.dpm.tdp_od_limit = le16_to_cpu(power_info->pplib5.usTDPODLimit); amdgpu_parse_extended_power_table() 469 adev->pm.dpm.load_line_slope = le16_to_cpu(power_info->pplib5.usLoadLineSlope); amdgpu_parse_extended_power_table() 474 le16_to_cpu(power_info->pplib5.usCACLeakageTableOffset)); amdgpu_parse_extended_power_table() 486 le16_to_cpu(entry->usVddc1); amdgpu_parse_extended_power_table() 488 le16_to_cpu(entry->usVddc2); amdgpu_parse_extended_power_table() 490 le16_to_cpu(entry->usVddc3); amdgpu_parse_extended_power_table() 493 le16_to_cpu(entry->usVddc); amdgpu_parse_extended_power_table() 505 if (le16_to_cpu(power_info->pplib.usTableSize) >= amdgpu_parse_extended_power_table() 509 le16_to_cpu(power_info->pplib3.usExtendendedHeaderOffset)); amdgpu_parse_extended_power_table() 510 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V2) && amdgpu_parse_extended_power_table() 514 le16_to_cpu(ext_hdr->usVCETableOffset) + 1); amdgpu_parse_extended_power_table() 518 le16_to_cpu(ext_hdr->usVCETableOffset) + 1 + amdgpu_parse_extended_power_table() 523 le16_to_cpu(ext_hdr->usVCETableOffset) + 1 + amdgpu_parse_extended_power_table() 546 le16_to_cpu(vce_clk->usEVClkLow) | (vce_clk->ucEVClkHigh << 16); amdgpu_parse_extended_power_table() 548 le16_to_cpu(vce_clk->usECClkLow) | (vce_clk->ucECClkHigh << 16); amdgpu_parse_extended_power_table() 550 le16_to_cpu(entry->usVoltage); amdgpu_parse_extended_power_table() 561 le16_to_cpu(vce_clk->usEVClkLow) | (vce_clk->ucEVClkHigh << 16); amdgpu_parse_extended_power_table() 563 le16_to_cpu(vce_clk->usECClkLow) | (vce_clk->ucECClkHigh << 16); amdgpu_parse_extended_power_table() 572 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V3) && amdgpu_parse_extended_power_table() 576 le16_to_cpu(ext_hdr->usUVDTableOffset) + 1); amdgpu_parse_extended_power_table() 580 le16_to_cpu(ext_hdr->usUVDTableOffset) + 1 + amdgpu_parse_extended_power_table() 599 le16_to_cpu(uvd_clk->usVClkLow) | (uvd_clk->ucVClkHigh << 16); amdgpu_parse_extended_power_table() 601 le16_to_cpu(uvd_clk->usDClkLow) | (uvd_clk->ucDClkHigh << 16); amdgpu_parse_extended_power_table() 603 le16_to_cpu(entry->usVoltage); amdgpu_parse_extended_power_table() 608 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V4) && amdgpu_parse_extended_power_table() 613 le16_to_cpu(ext_hdr->usSAMUTableOffset) + 1); amdgpu_parse_extended_power_table() 628 le16_to_cpu(entry->usSAMClockLow) | (entry->ucSAMClockHigh << 16); amdgpu_parse_extended_power_table() 630 le16_to_cpu(entry->usVoltage); amdgpu_parse_extended_power_table() 635 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5) && amdgpu_parse_extended_power_table() 639 le16_to_cpu(ext_hdr->usPPMTableOffset)); amdgpu_parse_extended_power_table() 648 le16_to_cpu(ppm->usCpuCoreNumber); amdgpu_parse_extended_power_table() 666 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V6) && amdgpu_parse_extended_power_table() 671 le16_to_cpu(ext_hdr->usACPTableOffset) + 1); amdgpu_parse_extended_power_table() 686 le16_to_cpu(entry->usACPClockLow) | (entry->ucACPClockHigh << 16); amdgpu_parse_extended_power_table() 688 le16_to_cpu(entry->usVoltage); amdgpu_parse_extended_power_table() 693 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V7) && amdgpu_parse_extended_power_table() 696 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); amdgpu_parse_extended_power_table() 707 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); amdgpu_parse_extended_power_table() 714 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); amdgpu_parse_extended_power_table() 718 adev->pm.dpm.dyn_state.cac_tdp_table->tdp = le16_to_cpu(pt->usTDP); amdgpu_parse_extended_power_table() 720 le16_to_cpu(pt->usConfigurableTDP); amdgpu_parse_extended_power_table() 721 adev->pm.dpm.dyn_state.cac_tdp_table->tdc = le16_to_cpu(pt->usTDC); amdgpu_parse_extended_power_table() 723 le16_to_cpu(pt->usBatteryPowerLimit); amdgpu_parse_extended_power_table() 725 le16_to_cpu(pt->usSmallPowerLimit); amdgpu_parse_extended_power_table() 727 le16_to_cpu(pt->usLowCACLeakage); amdgpu_parse_extended_power_table() 729 le16_to_cpu(pt->usHighCACLeakage); amdgpu_parse_extended_power_table() 731 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V8) && amdgpu_parse_extended_power_table() 735 le16_to_cpu(ext_hdr->usSclkVddgfxTableOffset)); amdgpu_parse_extended_power_table()
|
H A D | amdgpu_ucode.c | 35 DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major)); amdgpu_ucode_print_common_hdr() 36 DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor)); amdgpu_ucode_print_common_hdr() 37 DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major)); amdgpu_ucode_print_common_hdr() 38 DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor)); amdgpu_ucode_print_common_hdr() 48 uint16_t version_major = le16_to_cpu(hdr->header_version_major); amdgpu_ucode_print_mc_hdr() 49 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); amdgpu_ucode_print_mc_hdr() 69 uint16_t version_major = le16_to_cpu(hdr->header_version_major); amdgpu_ucode_print_smc_hdr() 70 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); amdgpu_ucode_print_smc_hdr() 87 uint16_t version_major = le16_to_cpu(hdr->header_version_major); amdgpu_ucode_print_gfx_hdr() 88 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); amdgpu_ucode_print_gfx_hdr() 108 uint16_t version_major = le16_to_cpu(hdr->header_version_major); amdgpu_ucode_print_rlc_hdr() 109 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); amdgpu_ucode_print_rlc_hdr() 173 uint16_t version_major = le16_to_cpu(hdr->header_version_major); amdgpu_ucode_print_sdma_hdr() 174 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); amdgpu_ucode_print_sdma_hdr()
|
H A D | atombios_encoders.c | 1933 le16_to_cpu(lvds_info->info.sLCDTiming.usPixClk) * 10; amdgpu_atombios_encoder_get_lcd_info() 1935 le16_to_cpu(lvds_info->info.sLCDTiming.usHActive); amdgpu_atombios_encoder_get_lcd_info() 1937 le16_to_cpu(lvds_info->info.sLCDTiming.usVActive); amdgpu_atombios_encoder_get_lcd_info() 1939 le16_to_cpu(lvds_info->info.sLCDTiming.usHBlanking_Time); amdgpu_atombios_encoder_get_lcd_info() 1941 le16_to_cpu(lvds_info->info.sLCDTiming.usHSyncOffset); amdgpu_atombios_encoder_get_lcd_info() 1943 le16_to_cpu(lvds_info->info.sLCDTiming.usHSyncWidth); amdgpu_atombios_encoder_get_lcd_info() 1945 le16_to_cpu(lvds_info->info.sLCDTiming.usVBlanking_Time); amdgpu_atombios_encoder_get_lcd_info() 1947 le16_to_cpu(lvds_info->info.sLCDTiming.usVSyncOffset); amdgpu_atombios_encoder_get_lcd_info() 1949 le16_to_cpu(lvds_info->info.sLCDTiming.usVSyncWidth); amdgpu_atombios_encoder_get_lcd_info() 1951 le16_to_cpu(lvds_info->info.usOffDelayInMs); amdgpu_atombios_encoder_get_lcd_info() 1954 misc = le16_to_cpu(lvds_info->info.sLCDTiming.susModeMiscInfo.usAccess); amdgpu_atombios_encoder_get_lcd_info() 1966 lvds->native_mode.width_mm = le16_to_cpu(lvds_info->info.sLCDTiming.usImageHSize); amdgpu_atombios_encoder_get_lcd_info() 1967 lvds->native_mode.height_mm = le16_to_cpu(lvds_info->info.sLCDTiming.usImageVSize); amdgpu_atombios_encoder_get_lcd_info() 1982 if (le16_to_cpu(lvds_info->info.usModePatchTableOffset)) { amdgpu_atombios_encoder_get_lcd_info() 1991 le16_to_cpu(lvds_info->info.usModePatchTableOffset)); amdgpu_atombios_encoder_get_lcd_info() 1996 le16_to_cpu(lvds_info->info.usModePatchTableOffset)); amdgpu_atombios_encoder_get_lcd_info()
|
/linux-4.4.14/drivers/usb/core/ |
H A D | otg_whitelist.h | 54 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && is_targeted() 55 le16_to_cpu(dev->descriptor.idProduct) == 0xbadd)) is_targeted() 59 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && is_targeted() 60 le16_to_cpu(dev->descriptor.idProduct) == 0x0200)) is_targeted() 68 id->idVendor != le16_to_cpu(dev->descriptor.idVendor)) is_targeted() 72 id->idProduct != le16_to_cpu(dev->descriptor.idProduct)) is_targeted() 78 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice))) is_targeted() 82 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice))) is_targeted() 105 le16_to_cpu(dev->descriptor.idVendor), is_targeted() 106 le16_to_cpu(dev->descriptor.idProduct)); is_targeted()
|
/linux-4.4.14/drivers/scsi/snic/ |
H A D | wq_enet_desc.h | 76 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; wq_enet_desc_dec() 77 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & wq_enet_desc_dec() 79 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> wq_enet_desc_dec() 81 *header_length = le16_to_cpu(desc->header_length_flags) & wq_enet_desc_dec() 83 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 85 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 87 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 89 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 91 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 93 *vlan_tag = le16_to_cpu(desc->vlan_tag); wq_enet_desc_dec()
|
H A D | cq_desc.h | 72 *q_number = le16_to_cpu(desc->q_number) & CQ_DESC_Q_NUM_MASK; cq_desc_dec() 73 *completed_index = le16_to_cpu(desc->completed_index) & cq_desc_dec()
|
/linux-4.4.14/drivers/scsi/fnic/ |
H A D | wq_enet_desc.h | 76 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; wq_enet_desc_dec() 77 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & wq_enet_desc_dec() 79 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> wq_enet_desc_dec() 81 *header_length = le16_to_cpu(desc->header_length_flags) & wq_enet_desc_dec() 83 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 85 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 87 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 89 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 91 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 93 *vlan_tag = le16_to_cpu(desc->vlan_tag); wq_enet_desc_dec()
|
H A D | cq_enet_desc.h | 102 u16 completed_index_flags = le16_to_cpu(desc->completed_index_flags); cq_enet_rq_desc_dec() 104 le16_to_cpu(desc->q_number_rss_type_flags); cq_enet_rq_desc_dec() 105 u16 bytes_written_flags = le16_to_cpu(desc->bytes_written_flags); cq_enet_rq_desc_dec() 133 *vlan = le16_to_cpu(desc->vlan); cq_enet_rq_desc_dec() 136 *fcoe_sof = (u8)(le16_to_cpu(desc->checksum_fcoe) & cq_enet_rq_desc_dec() 151 *checksum = le16_to_cpu(desc->checksum_fcoe); cq_enet_rq_desc_dec()
|
H A D | rq_enet_desc.h | 53 *length = le16_to_cpu(desc->length_type) & RQ_ENET_LEN_MASK; rq_enet_desc_dec() 54 *type = (u8)((le16_to_cpu(desc->length_type) >> RQ_ENET_LEN_BITS) & rq_enet_desc_dec()
|
H A D | cq_desc.h | 73 *q_number = le16_to_cpu(desc->q_number) & CQ_DESC_Q_NUM_MASK; cq_desc_dec() 74 *completed_index = le16_to_cpu(desc->completed_index) & cq_desc_dec()
|
/linux-4.4.14/drivers/net/ethernet/cisco/enic/ |
H A D | wq_enet_desc.h | 78 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; wq_enet_desc_dec() 79 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & wq_enet_desc_dec() 81 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> wq_enet_desc_dec() 83 *header_length = le16_to_cpu(desc->header_length_flags) & wq_enet_desc_dec() 85 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 87 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 89 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 91 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 93 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> wq_enet_desc_dec() 95 *vlan_tag = le16_to_cpu(desc->vlan_tag); wq_enet_desc_dec()
|
H A D | cq_enet_desc.h | 120 completed_index_flags = le16_to_cpu(desc->completed_index_flags); cq_enet_rq_desc_dec() 122 le16_to_cpu(desc->q_number_rss_type_flags); cq_enet_rq_desc_dec() 123 bytes_written_flags = le16_to_cpu(desc->bytes_written_flags); cq_enet_rq_desc_dec() 151 *vlan_tci = le16_to_cpu(desc->vlan); cq_enet_rq_desc_dec() 154 *fcoe_sof = (u8)(le16_to_cpu(desc->checksum_fcoe) & cq_enet_rq_desc_dec() 160 *fcoe_eof = (u8)((le16_to_cpu(desc->checksum_fcoe) >> cq_enet_rq_desc_dec() 169 *checksum = le16_to_cpu(desc->checksum_fcoe); cq_enet_rq_desc_dec()
|
H A D | rq_enet_desc.h | 55 *length = le16_to_cpu(desc->length_type) & RQ_ENET_LEN_MASK; rq_enet_desc_dec() 56 *type = (u8)((le16_to_cpu(desc->length_type) >> RQ_ENET_LEN_BITS) & rq_enet_desc_dec()
|
H A D | cq_desc.h | 75 *q_number = le16_to_cpu(desc->q_number) & CQ_DESC_Q_NUM_MASK; cq_desc_dec() 76 *completed_index = le16_to_cpu(desc->completed_index) & cq_desc_dec()
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
H A D | radeon_ucode.c | 35 DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major)); radeon_ucode_print_common_hdr() 36 DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor)); radeon_ucode_print_common_hdr() 37 DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major)); radeon_ucode_print_common_hdr() 38 DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor)); radeon_ucode_print_common_hdr() 48 uint16_t version_major = le16_to_cpu(hdr->header_version_major); radeon_ucode_print_mc_hdr() 49 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); radeon_ucode_print_mc_hdr() 69 uint16_t version_major = le16_to_cpu(hdr->header_version_major); radeon_ucode_print_smc_hdr() 70 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); radeon_ucode_print_smc_hdr() 87 uint16_t version_major = le16_to_cpu(hdr->header_version_major); radeon_ucode_print_gfx_hdr() 88 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); radeon_ucode_print_gfx_hdr() 108 uint16_t version_major = le16_to_cpu(hdr->header_version_major); radeon_ucode_print_rlc_hdr() 109 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); radeon_ucode_print_rlc_hdr() 135 uint16_t version_major = le16_to_cpu(hdr->header_version_major); radeon_ucode_print_sdma_hdr() 136 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); radeon_ucode_print_sdma_hdr()
|
H A D | r600_dpm.c | 831 radeon_table->entries[i].clk = le16_to_cpu(entry->usClockLow) | r600_parse_clk_voltage_dep_table() 833 radeon_table->entries[i].v = le16_to_cpu(entry->usVoltage); r600_parse_clk_voltage_dep_table() 856 rdev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); r600_get_platform_caps() 857 rdev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); r600_get_platform_caps() 887 if (le16_to_cpu(power_info->pplib.usTableSize) >= r600_parse_extended_power_table() 891 le16_to_cpu(power_info->pplib3.usFanTableOffset)); r600_parse_extended_power_table() 893 rdev->pm.dpm.fan.t_min = le16_to_cpu(fan_info->fan.usTMin); r600_parse_extended_power_table() 894 rdev->pm.dpm.fan.t_med = le16_to_cpu(fan_info->fan.usTMed); r600_parse_extended_power_table() 895 rdev->pm.dpm.fan.t_high = le16_to_cpu(fan_info->fan.usTHigh); r600_parse_extended_power_table() 896 rdev->pm.dpm.fan.pwm_min = le16_to_cpu(fan_info->fan.usPWMMin); r600_parse_extended_power_table() 897 rdev->pm.dpm.fan.pwm_med = le16_to_cpu(fan_info->fan.usPWMMed); r600_parse_extended_power_table() 898 rdev->pm.dpm.fan.pwm_high = le16_to_cpu(fan_info->fan.usPWMHigh); r600_parse_extended_power_table() 900 rdev->pm.dpm.fan.t_max = le16_to_cpu(fan_info->fan2.usTMax); r600_parse_extended_power_table() 907 le16_to_cpu(fan_info->fan3.usFanPWMMax); r600_parse_extended_power_table() 910 le16_to_cpu(fan_info->fan3.usFanOutputSensitivity); r600_parse_extended_power_table() 917 if (le16_to_cpu(power_info->pplib.usTableSize) >= r600_parse_extended_power_table() 922 le16_to_cpu(power_info->pplib4.usVddcDependencyOnSCLKOffset)); r600_parse_extended_power_table() 931 le16_to_cpu(power_info->pplib4.usVddciDependencyOnMCLKOffset)); r600_parse_extended_power_table() 942 le16_to_cpu(power_info->pplib4.usVddcDependencyOnMCLKOffset)); r600_parse_extended_power_table() 954 le16_to_cpu(power_info->pplib4.usMvddDependencyOnMCLKOffset)); r600_parse_extended_power_table() 968 le16_to_cpu(power_info->pplib4.usMaxClockVoltageOnDCOffset)); r600_parse_extended_power_table() 971 le16_to_cpu(clk_v->entries[0].usSclkLow) | r600_parse_extended_power_table() 974 le16_to_cpu(clk_v->entries[0].usMclkLow) | r600_parse_extended_power_table() 977 le16_to_cpu(clk_v->entries[0].usVddc); r600_parse_extended_power_table() 979 le16_to_cpu(clk_v->entries[0].usVddci); r600_parse_extended_power_table() 986 le16_to_cpu(power_info->pplib4.usVddcPhaseShedLimitsTableOffset)); r600_parse_extended_power_table() 1001 le16_to_cpu(entry->usSclkLow) | (entry->ucSclkHigh << 16); r600_parse_extended_power_table() 1003 le16_to_cpu(entry->usMclkLow) | (entry->ucMclkHigh << 16); r600_parse_extended_power_table() 1005 le16_to_cpu(entry->usVoltage); r600_parse_extended_power_table() 1015 if (le16_to_cpu(power_info->pplib.usTableSize) >= r600_parse_extended_power_table() 1020 rdev->pm.dpm.tdp_od_limit = le16_to_cpu(power_info->pplib5.usTDPODLimit); r600_parse_extended_power_table() 1028 rdev->pm.dpm.load_line_slope = le16_to_cpu(power_info->pplib5.usLoadLineSlope); r600_parse_extended_power_table() 1033 le16_to_cpu(power_info->pplib5.usCACLeakageTableOffset)); r600_parse_extended_power_table() 1045 le16_to_cpu(entry->usVddc1); r600_parse_extended_power_table() 1047 le16_to_cpu(entry->usVddc2); r600_parse_extended_power_table() 1049 le16_to_cpu(entry->usVddc3); r600_parse_extended_power_table() 1052 le16_to_cpu(entry->usVddc); r600_parse_extended_power_table() 1064 if (le16_to_cpu(power_info->pplib.usTableSize) >= r600_parse_extended_power_table() 1068 le16_to_cpu(power_info->pplib3.usExtendendedHeaderOffset)); r600_parse_extended_power_table() 1069 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V2) && r600_parse_extended_power_table() 1073 le16_to_cpu(ext_hdr->usVCETableOffset) + 1); r600_parse_extended_power_table() 1077 le16_to_cpu(ext_hdr->usVCETableOffset) + 1 + r600_parse_extended_power_table() 1082 le16_to_cpu(ext_hdr->usVCETableOffset) + 1 + r600_parse_extended_power_table() 1105 le16_to_cpu(vce_clk->usEVClkLow) | (vce_clk->ucEVClkHigh << 16); r600_parse_extended_power_table() 1107 le16_to_cpu(vce_clk->usECClkLow) | (vce_clk->ucECClkHigh << 16); r600_parse_extended_power_table() 1109 le16_to_cpu(entry->usVoltage); r600_parse_extended_power_table() 1120 le16_to_cpu(vce_clk->usEVClkLow) | (vce_clk->ucEVClkHigh << 16); r600_parse_extended_power_table() 1122 le16_to_cpu(vce_clk->usECClkLow) | (vce_clk->ucECClkHigh << 16); r600_parse_extended_power_table() 1131 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V3) && r600_parse_extended_power_table() 1135 le16_to_cpu(ext_hdr->usUVDTableOffset) + 1); r600_parse_extended_power_table() 1139 le16_to_cpu(ext_hdr->usUVDTableOffset) + 1 + r600_parse_extended_power_table() 1158 le16_to_cpu(uvd_clk->usVClkLow) | (uvd_clk->ucVClkHigh << 16); r600_parse_extended_power_table() 1160 le16_to_cpu(uvd_clk->usDClkLow) | (uvd_clk->ucDClkHigh << 16); r600_parse_extended_power_table() 1162 le16_to_cpu(entry->usVoltage); r600_parse_extended_power_table() 1167 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V4) && r600_parse_extended_power_table() 1172 le16_to_cpu(ext_hdr->usSAMUTableOffset) + 1); r600_parse_extended_power_table() 1187 le16_to_cpu(entry->usSAMClockLow) | (entry->ucSAMClockHigh << 16); r600_parse_extended_power_table() 1189 le16_to_cpu(entry->usVoltage); r600_parse_extended_power_table() 1194 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5) && r600_parse_extended_power_table() 1198 le16_to_cpu(ext_hdr->usPPMTableOffset)); r600_parse_extended_power_table() 1207 le16_to_cpu(ppm->usCpuCoreNumber); r600_parse_extended_power_table() 1225 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V6) && r600_parse_extended_power_table() 1230 le16_to_cpu(ext_hdr->usACPTableOffset) + 1); r600_parse_extended_power_table() 1245 le16_to_cpu(entry->usACPClockLow) | (entry->ucACPClockHigh << 16); r600_parse_extended_power_table() 1247 le16_to_cpu(entry->usVoltage); r600_parse_extended_power_table() 1252 if ((le16_to_cpu(ext_hdr->usSize) >= SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V7) && r600_parse_extended_power_table() 1255 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); r600_parse_extended_power_table() 1266 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); r600_parse_extended_power_table() 1268 le16_to_cpu(ppt->usMaximumPowerDeliveryLimit); r600_parse_extended_power_table() 1273 le16_to_cpu(ext_hdr->usPowerTuneTableOffset)); r600_parse_extended_power_table() 1277 rdev->pm.dpm.dyn_state.cac_tdp_table->tdp = le16_to_cpu(pt->usTDP); r600_parse_extended_power_table() 1279 le16_to_cpu(pt->usConfigurableTDP); r600_parse_extended_power_table() 1280 rdev->pm.dpm.dyn_state.cac_tdp_table->tdc = le16_to_cpu(pt->usTDC); r600_parse_extended_power_table() 1282 le16_to_cpu(pt->usBatteryPowerLimit); r600_parse_extended_power_table() 1284 le16_to_cpu(pt->usSmallPowerLimit); r600_parse_extended_power_table() 1286 le16_to_cpu(pt->usLowCACLeakage); r600_parse_extended_power_table() 1288 le16_to_cpu(pt->usHighCACLeakage); r600_parse_extended_power_table()
|
H A D | radeon_atombios.c | 56 if ((le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x0018) || radeon_lookup_i2c_gpio_quirks() 57 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x0019) || radeon_lookup_i2c_gpio_quirks() 58 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x001a)) { radeon_lookup_i2c_gpio_quirks() 67 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x1936) && radeon_lookup_i2c_gpio_quirks() 80 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x1fda) && radeon_lookup_i2c_gpio_quirks() 92 i2c.mask_clk_reg = le16_to_cpu(gpio->usClkMaskRegisterIndex) * 4; radeon_get_bus_rec_for_i2c_gpio() 93 i2c.mask_data_reg = le16_to_cpu(gpio->usDataMaskRegisterIndex) * 4; radeon_get_bus_rec_for_i2c_gpio() 94 i2c.en_clk_reg = le16_to_cpu(gpio->usClkEnRegisterIndex) * 4; radeon_get_bus_rec_for_i2c_gpio() 95 i2c.en_data_reg = le16_to_cpu(gpio->usDataEnRegisterIndex) * 4; radeon_get_bus_rec_for_i2c_gpio() 96 i2c.y_clk_reg = le16_to_cpu(gpio->usClkY_RegisterIndex) * 4; radeon_get_bus_rec_for_i2c_gpio() 97 i2c.y_data_reg = le16_to_cpu(gpio->usDataY_RegisterIndex) * 4; radeon_get_bus_rec_for_i2c_gpio() 98 i2c.a_clk_reg = le16_to_cpu(gpio->usClkA_RegisterIndex) * 4; radeon_get_bus_rec_for_i2c_gpio() 99 i2c.a_data_reg = le16_to_cpu(gpio->usDataA_RegisterIndex) * 4; radeon_get_bus_rec_for_i2c_gpio() 223 gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex) * 4; radeon_atombios_lookup_gpio() 547 le16_to_cpu(obj_header->usDisplayPathTableOffset)); radeon_get_atom_connector_info_from_object_table() 550 le16_to_cpu(obj_header->usConnectorObjectTableOffset)); radeon_get_atom_connector_info_from_object_table() 553 le16_to_cpu(obj_header->usEncoderObjectTableOffset)); radeon_get_atom_connector_info_from_object_table() 556 le16_to_cpu(obj_header->usRouterObjectTableOffset)); radeon_get_atom_connector_info_from_object_table() 557 device_support = le16_to_cpu(obj_header->usDeviceSupport); radeon_get_atom_connector_info_from_object_table() 565 path_size += le16_to_cpu(path->usSize); radeon_get_atom_connector_info_from_object_table() 567 if (device_support & le16_to_cpu(path->usDeviceTag)) { radeon_get_atom_connector_info_from_object_table() 571 (le16_to_cpu(path->usConnObjectId) & OBJECT_ID_MASK) radeon_get_atom_connector_info_from_object_table() 574 (le16_to_cpu(path->usConnObjectId) & ENUM_ID_MASK) radeon_get_atom_connector_info_from_object_table() 577 (le16_to_cpu(path->usConnObjectId) & radeon_get_atom_connector_info_from_object_table() 581 if (le16_to_cpu(path->usDeviceTag) == radeon_get_atom_connector_info_from_object_table() 645 for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) { radeon_get_atom_connector_info_from_object_table() 649 (le16_to_cpu(path->usGraphicObjIds[j]) & radeon_get_atom_connector_info_from_object_table() 652 (le16_to_cpu(path->usGraphicObjIds[j]) & radeon_get_atom_connector_info_from_object_table() 655 (le16_to_cpu(path->usGraphicObjIds[j]) & radeon_get_atom_connector_info_from_object_table() 660 u16 encoder_obj = le16_to_cpu(enc_obj->asObjects[k].usObjectID); radeon_get_atom_connector_info_from_object_table() 661 if (le16_to_cpu(path->usGraphicObjIds[j]) == encoder_obj) { radeon_get_atom_connector_info_from_object_table() 664 le16_to_cpu(enc_obj->asObjects[k].usRecordOffset)); radeon_get_atom_connector_info_from_object_table() 675 caps = le16_to_cpu(cap_record->usEncoderCap); radeon_get_atom_connector_info_from_object_table() 683 le16_to_cpu radeon_get_atom_connector_info_from_object_table() 691 u16 router_obj_id = le16_to_cpu(router_obj->asObjects[k].usObjectID); radeon_get_atom_connector_info_from_object_table() 692 if (le16_to_cpu(path->usGraphicObjIds[j]) == router_obj_id) { radeon_get_atom_connector_info_from_object_table() 695 le16_to_cpu(router_obj->asObjects[k].usRecordOffset)); radeon_get_atom_connector_info_from_object_table() 703 le16_to_cpu(router_obj->asObjects[k].usSrcDstTableOffset)); radeon_get_atom_connector_info_from_object_table() 712 if (le16_to_cpu(path->usConnObjectId) == radeon_get_atom_connector_info_from_object_table() 713 le16_to_cpu(dst_objs[enum_id])) radeon_get_atom_connector_info_from_object_table() 762 if ((le16_to_cpu(path->usDeviceTag) & radeon_get_atom_connector_info_from_object_table() 765 if (le16_to_cpu(path->usConnObjectId) == radeon_get_atom_connector_info_from_object_table() 766 le16_to_cpu(con_obj->asObjects[j]. radeon_get_atom_connector_info_from_object_table() 773 le16_to_cpu(con_obj-> radeon_get_atom_connector_info_from_object_table() 820 conn_id = le16_to_cpu(path->usConnObjectId); radeon_get_atom_connector_info_from_object_table() 823 (dev, le16_to_cpu(path->usDeviceTag), &connector_type, radeon_get_atom_connector_info_from_object_table() 829 le16_to_cpu(path-> radeon_get_atom_connector_info_from_object_table() 931 device_support = le16_to_cpu(supported_devices->info.usDeviceSupport); radeon_get_atom_connector_info_from_supported_devices_table() 1155 le16_to_cpu(firmware_info->info.usReferenceClock); radeon_atom_get_clock_info() 1160 le16_to_cpu(firmware_info->info.usMinPixelClockPLL_Output); radeon_atom_get_clock_info() 1169 le16_to_cpu(firmware_info->info_14.usLcdMinPixelClockPLL_Output) * 100; radeon_atom_get_clock_info() 1173 le16_to_cpu(firmware_info->info_14.usLcdMaxPixelClockPLL_Output) * 100; radeon_atom_get_clock_info() 1189 le16_to_cpu(firmware_info->info.usMinPixelClockPLL_Input); radeon_atom_get_clock_info() 1191 le16_to_cpu(firmware_info->info.usMaxPixelClockPLL_Input); radeon_atom_get_clock_info() 1198 le16_to_cpu(firmware_info->info_21.usCoreReferenceClock); radeon_atom_get_clock_info() 1201 le16_to_cpu(firmware_info->info.usReferenceClock); radeon_atom_get_clock_info() 1205 le16_to_cpu(firmware_info->info.usMinEngineClockPLL_Output); radeon_atom_get_clock_info() 1218 le16_to_cpu(firmware_info->info.usMinEngineClockPLL_Input); radeon_atom_get_clock_info() 1220 le16_to_cpu(firmware_info->info.usMaxEngineClockPLL_Input); radeon_atom_get_clock_info() 1225 le16_to_cpu(firmware_info->info_21.usMemoryReferenceClock); radeon_atom_get_clock_info() 1228 le16_to_cpu(firmware_info->info.usReferenceClock); radeon_atom_get_clock_info() 1232 le16_to_cpu(firmware_info->info.usMinMemoryClockPLL_Output); radeon_atom_get_clock_info() 1245 le16_to_cpu(firmware_info->info.usMinMemoryClockPLL_Input); radeon_atom_get_clock_info() 1247 le16_to_cpu(firmware_info->info.usMaxMemoryClockPLL_Input); radeon_atom_get_clock_info() 1272 le16_to_cpu(firmware_info->info_21.usUniphyDPModeExtClkFreq); radeon_atom_get_clock_info() 1277 rdev->clock.max_pixel_clock = le16_to_cpu(firmware_info->info.usMaxPixelClock); radeon_atom_get_clock_info() 1283 le16_to_cpu(firmware_info->info.usFirmwareCapability.susAccess); radeon_atom_get_clock_info() 1356 maxfreq = le16_to_cpu(tmds_info->usMaxFrequency); radeon_atombios_get_tmds_info() 1359 le16_to_cpu(tmds_info->asMiscInfo[i].usFrequency); radeon_atombios_get_tmds_info() 1411 le16_to_cpu(ss_assign->usSpreadSpectrumPercentage); radeon_atombios_get_ppll_ss_info() 1446 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); radeon_atombios_get_igp_ss_overrides() 1447 rate = le16_to_cpu(igp_info->info_6.usDVISSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1450 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); radeon_atombios_get_igp_ss_overrides() 1451 rate = le16_to_cpu(igp_info->info_6.usHDMISSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1454 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); radeon_atombios_get_igp_ss_overrides() 1455 rate = le16_to_cpu(igp_info->info_6.usLvdsSSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1462 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); radeon_atombios_get_igp_ss_overrides() 1463 rate = le16_to_cpu(igp_info->info_7.usDVISSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1466 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); radeon_atombios_get_igp_ss_overrides() 1467 rate = le16_to_cpu(igp_info->info_7.usHDMISSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1470 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); radeon_atombios_get_igp_ss_overrides() 1471 rate = le16_to_cpu(igp_info->info_7.usLvdsSSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1478 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); radeon_atombios_get_igp_ss_overrides() 1479 rate = le16_to_cpu(igp_info->info_8.usDVISSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1482 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); radeon_atombios_get_igp_ss_overrides() 1483 rate = le16_to_cpu(igp_info->info_8.usHDMISSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1486 percentage = le16_to_cpu(igp_info->info_8.usLvdsSSPercentage); radeon_atombios_get_igp_ss_overrides() 1487 rate = le16_to_cpu(igp_info->info_8.usLvdsSSpreadRateIn10Hz); radeon_atombios_get_igp_ss_overrides() 1552 le16_to_cpu(ss_assign->v1.usSpreadSpectrumPercentage); radeon_atombios_get_asic_ss_info() 1554 ss->rate = le16_to_cpu(ss_assign->v1.usSpreadRateInKhz); radeon_atombios_get_asic_ss_info() 1570 le16_to_cpu(ss_assign->v2.usSpreadSpectrumPercentage); radeon_atombios_get_asic_ss_info() 1572 ss->rate = le16_to_cpu(ss_assign->v2.usSpreadRateIn10Hz); radeon_atombios_get_asic_ss_info() 1592 le16_to_cpu(ss_assign->v3.usSpreadSpectrumPercentage); radeon_atombios_get_asic_ss_info() 1594 ss->rate = le16_to_cpu(ss_assign->v3.usSpreadRateIn10Hz); radeon_atombios_get_asic_ss_info() 1650 le16_to_cpu(lvds_info->info.sLCDTiming.usPixClk) * 10; radeon_atombios_get_lvds_info() 1652 le16_to_cpu(lvds_info->info.sLCDTiming.usHActive); radeon_atombios_get_lvds_info() 1654 le16_to_cpu(lvds_info->info.sLCDTiming.usVActive); radeon_atombios_get_lvds_info() 1656 le16_to_cpu(lvds_info->info.sLCDTiming.usHBlanking_Time); radeon_atombios_get_lvds_info() 1658 le16_to_cpu(lvds_info->info.sLCDTiming.usHSyncOffset); radeon_atombios_get_lvds_info() 1660 le16_to_cpu(lvds_info->info.sLCDTiming.usHSyncWidth); radeon_atombios_get_lvds_info() 1662 le16_to_cpu(lvds_info->info.sLCDTiming.usVBlanking_Time); radeon_atombios_get_lvds_info() 1664 le16_to_cpu(lvds_info->info.sLCDTiming.usVSyncOffset); radeon_atombios_get_lvds_info() 1666 le16_to_cpu(lvds_info->info.sLCDTiming.usVSyncWidth); radeon_atombios_get_lvds_info() 1668 le16_to_cpu(lvds_info->info.usOffDelayInMs); radeon_atombios_get_lvds_info() 1671 misc = le16_to_cpu(lvds_info->info.sLCDTiming.susModeMiscInfo.usAccess); radeon_atombios_get_lvds_info() 1683 lvds->native_mode.width_mm = le16_to_cpu(lvds_info->info.sLCDTiming.usImageHSize); radeon_atombios_get_lvds_info() 1684 lvds->native_mode.height_mm = le16_to_cpu(lvds_info->info.sLCDTiming.usImageVSize); radeon_atombios_get_lvds_info() 1699 if (le16_to_cpu(lvds_info->info.usModePatchTableOffset)) { radeon_atombios_get_lvds_info() 1708 le16_to_cpu(lvds_info->info.usModePatchTableOffset)); radeon_atombios_get_lvds_info() 1713 le16_to_cpu(lvds_info->info.usModePatchTableOffset)); radeon_atombios_get_lvds_info() 1818 mode->crtc_htotal = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Total); radeon_atom_get_tv_timings() 1819 mode->crtc_hdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Disp); radeon_atom_get_tv_timings() 1820 mode->crtc_hsync_start = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncStart); radeon_atom_get_tv_timings() 1821 mode->crtc_hsync_end = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncStart) + radeon_atom_get_tv_timings() 1822 le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncWidth); radeon_atom_get_tv_timings() 1824 mode->crtc_vtotal = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_Total); radeon_atom_get_tv_timings() 1825 mode->crtc_vdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_Disp); radeon_atom_get_tv_timings() 1826 mode->crtc_vsync_start = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncStart); radeon_atom_get_tv_timings() 1827 mode->crtc_vsync_end = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncStart) + radeon_atom_get_tv_timings() 1828 le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncWidth); radeon_atom_get_tv_timings() 1831 misc = le16_to_cpu(tv_info->aModeTimings[index].susModeMiscInfo.usAccess); radeon_atom_get_tv_timings() 1844 le16_to_cpu(tv_info->aModeTimings[index].usPixelClock) * 10; radeon_atom_get_tv_timings() 1858 mode->crtc_htotal = le16_to_cpu(dtd_timings->usHActive) + radeon_atom_get_tv_timings() 1859 le16_to_cpu(dtd_timings->usHBlanking_Time); radeon_atom_get_tv_timings() 1860 mode->crtc_hdisplay = le16_to_cpu(dtd_timings->usHActive); radeon_atom_get_tv_timings() 1861 mode->crtc_hsync_start = le16_to_cpu(dtd_timings->usHActive) + radeon_atom_get_tv_timings() 1862 le16_to_cpu(dtd_timings->usHSyncOffset); radeon_atom_get_tv_timings() 1864 le16_to_cpu(dtd_timings->usHSyncWidth); radeon_atom_get_tv_timings() 1866 mode->crtc_vtotal = le16_to_cpu(dtd_timings->usVActive) + radeon_atom_get_tv_timings() 1867 le16_to_cpu(dtd_timings->usVBlanking_Time); radeon_atom_get_tv_timings() 1868 mode->crtc_vdisplay = le16_to_cpu(dtd_timings->usVActive); radeon_atom_get_tv_timings() 1869 mode->crtc_vsync_start = le16_to_cpu(dtd_timings->usVActive) + radeon_atom_get_tv_timings() 1870 le16_to_cpu(dtd_timings->usVSyncOffset); radeon_atom_get_tv_timings() 1872 le16_to_cpu(dtd_timings->usVSyncWidth); radeon_atom_get_tv_timings() 1875 misc = le16_to_cpu(dtd_timings->susModeMiscInfo.usAccess); radeon_atom_get_tv_timings() 1888 le16_to_cpu(dtd_timings->usPixClk) * 10; radeon_atom_get_tv_timings() 2142 le16_to_cpu(power_info->info.asPowerPlayInfo[i].usMemoryClock); radeon_atombios_parse_power_table_1_3() 2144 le16_to_cpu(power_info->info.asPowerPlayInfo[i].usEngineClock); radeon_atombios_parse_power_table_1_3() 2387 *vddc = le16_to_cpu(firmware_info->info_14.usBootUpVDDCVoltage); radeon_atombios_get_default_voltages() 2389 *vddci = le16_to_cpu(firmware_info->info_22.usBootUpVDDCIVoltage); radeon_atombios_get_default_voltages() 2390 *mvdd = le16_to_cpu(firmware_info->info_22.usBootUpMVDDCVoltage); radeon_atombios_get_default_voltages() 2401 u32 misc2 = le16_to_cpu(non_clock_info->usClassification); radeon_atombios_parse_pplib_non_clock_info() 2479 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); radeon_atombios_parse_pplib_clock_info() 2483 sclk = le16_to_cpu(clock_info->rs780.usLowEngineClockLow); radeon_atombios_parse_pplib_clock_info() 2488 sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); radeon_atombios_parse_pplib_clock_info() 2490 mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); radeon_atombios_parse_pplib_clock_info() 2497 sclk = le16_to_cpu(clock_info->si.usEngineClockLow); radeon_atombios_parse_pplib_clock_info() 2499 mclk = le16_to_cpu(clock_info->si.usMemoryClockLow); radeon_atombios_parse_pplib_clock_info() 2506 le16_to_cpu(clock_info->si.usVDDC); radeon_atombios_parse_pplib_clock_info() 2508 le16_to_cpu(clock_info->si.usVDDCI); radeon_atombios_parse_pplib_clock_info() 2510 sclk = le16_to_cpu(clock_info->evergreen.usEngineClockLow); radeon_atombios_parse_pplib_clock_info() 2512 mclk = le16_to_cpu(clock_info->evergreen.usMemoryClockLow); radeon_atombios_parse_pplib_clock_info() 2519 le16_to_cpu(clock_info->evergreen.usVDDC); radeon_atombios_parse_pplib_clock_info() 2521 le16_to_cpu(clock_info->evergreen.usVDDCI); radeon_atombios_parse_pplib_clock_info() 2523 sclk = le16_to_cpu(clock_info->r600.usEngineClockLow); radeon_atombios_parse_pplib_clock_info() 2525 mclk = le16_to_cpu(clock_info->r600.usMemoryClockLow); radeon_atombios_parse_pplib_clock_info() 2532 le16_to_cpu(clock_info->r600.usVDDC); radeon_atombios_parse_pplib_clock_info() 2598 le16_to_cpu(power_info->pplib.usStateArrayOffset) + radeon_atombios_parse_power_table_4_5() 2602 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + radeon_atombios_parse_power_table_4_5() 2615 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset) + radeon_atombios_parse_power_table_4_5() 2681 le16_to_cpu(power_info->pplib.usStateArrayOffset)); radeon_atombios_parse_power_table_6() 2684 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); radeon_atombios_parse_power_table_6() 2687 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); radeon_atombios_parse_power_table_6() 2863 dividers->fb_div = le16_to_cpu(args.v2.usFbDiv); radeon_atom_get_clock_dividers() 2882 dividers->whole_fb_div = le16_to_cpu(args.v3.ulFbDiv.usFbDiv); radeon_atom_get_clock_dividers() 2883 dividers->frac_fb_div = le16_to_cpu(args.v3.ulFbDiv.usFbDivFrac); radeon_atom_get_clock_dividers() 2902 dividers->whole_fb_div = le16_to_cpu(args.v5.ulFbDiv.usFbDiv); radeon_atom_get_clock_dividers() 2903 dividers->frac_fb_div = le16_to_cpu(args.v5.ulFbDiv.usFbDivFrac); radeon_atom_get_clock_dividers() 2927 dividers->whole_fb_div = le16_to_cpu(args.v6_out.ulFbDiv.usFbDiv); radeon_atom_get_clock_dividers() 2928 dividers->frac_fb_div = le16_to_cpu(args.v6_out.ulFbDiv.usFbDivFrac); radeon_atom_get_clock_dividers() 2968 mpll_param->clkfrac = le16_to_cpu(args.ulFbDiv.usFbDivFrac); radeon_atom_get_memory_pll_dividers() 2969 mpll_param->clkf = le16_to_cpu(args.ulFbDiv.usFbDiv); radeon_atom_get_memory_pll_dividers() 3151 *voltage = le16_to_cpu(args.v2.usVoltageLevel); radeon_atom_get_max_vddc() 3160 *voltage = le16_to_cpu(args.v3.usVoltageLevel); radeon_atom_get_max_vddc() 3196 *leakage_id = le16_to_cpu(args.v3.usVoltageLevel); radeon_atom_get_leakage_id_from_vbios() 3238 le16_to_cpu(profile->usLeakageBinArrayOffset)); radeon_atom_get_leakage_vddc_based_on_leakage_params() 3241 le16_to_cpu(profile->usElbVDDC_IdArrayOffset)); radeon_atom_get_leakage_vddc_based_on_leakage_params() 3244 le16_to_cpu(profile->usElbVDDC_LevelArrayOffset)); radeon_atom_get_leakage_vddc_based_on_leakage_params() 3247 le16_to_cpu(profile->usElbVDDCI_IdArrayOffset)); radeon_atom_get_leakage_vddc_based_on_leakage_params() 3250 le16_to_cpu(profile->usElbVDDCI_LevelArrayOffset)); radeon_atom_get_leakage_vddc_based_on_leakage_params() 3323 *voltage = le16_to_cpu(args.evv_out.usVoltageLevel); radeon_atom_get_voltage_evv() 3382 u32 size = le16_to_cpu(v1->sHeader.usStructureSize); atom_lookup_voltage_object_v1() 3399 u32 size = le16_to_cpu(v2->sHeader.usStructureSize); atom_lookup_voltage_object_v2() 3416 u32 size = le16_to_cpu(v3->sHeader.usStructureSize); atom_lookup_voltage_object_v3() 3425 offset += le16_to_cpu(vo->asGpioVoltageObj.sHeader.usSize); atom_lookup_voltage_object_v3() 3556 le16_to_cpu(formula->usVoltageBaseLevel) + radeon_atom_get_max_voltage() 3558 le16_to_cpu(formula->usVoltageStep); radeon_atom_get_max_voltage() 3561 le16_to_cpu(formula->usVoltageBaseLevel) + radeon_atom_get_max_voltage() 3563 le16_to_cpu(formula->usVoltageStep); radeon_atom_get_max_voltage() 3578 le16_to_cpu(lut->usVoltageValue); radeon_atom_get_max_voltage() 3614 le16_to_cpu(formula->usVoltageBaseLevel); radeon_atom_get_min_voltage() 3626 le16_to_cpu(formula->asVIDAdjustEntries[ radeon_atom_get_min_voltage() 3665 (le16_to_cpu(formula->usVoltageStep) + 1) / 2; radeon_atom_get_voltage_step() 3668 le16_to_cpu(formula->usVoltageStep); radeon_atom_get_voltage_step() 3744 le16_to_cpu(lut->usVoltageValue); radeon_atom_get_voltage_table() 3779 le16_to_cpu(lut->usVoltageValue); radeon_atom_get_voltage_table() 3834 if (le16_to_cpu(vram_module->usSize) == 0) radeon_atom_get_memory_info() 3837 ((u8 *)vram_module + le16_to_cpu(vram_module->usSize)); radeon_atom_get_memory_info() 3851 if (le16_to_cpu(vram_module->usModuleSize) == 0) radeon_atom_get_memory_info() 3854 ((u8 *)vram_module + le16_to_cpu(vram_module->usModuleSize)); radeon_atom_get_memory_info() 3875 if (le16_to_cpu(vram_module->usModuleSize) == 0) radeon_atom_get_memory_info() 3878 ((u8 *)vram_module + le16_to_cpu(vram_module->usModuleSize)); radeon_atom_get_memory_info() 3930 if (le16_to_cpu(vram_module->usModuleSize) == 0) radeon_atom_get_mclk_range_table() 3933 ((u8 *)vram_module + le16_to_cpu(vram_module->usModuleSize)); radeon_atom_get_mclk_range_table() 3936 ((le16_to_cpu(vram_module->usModuleSize) - offsetof(ATOM_VRAM_MODULE_V4, asMemTiming)) / radeon_atom_get_mclk_range_table() 3998 ((u8 *)vram_info + le16_to_cpu(vram_info->v2_1.usMemClkPatchTblOffset)); radeon_atom_init_mc_reg_table() 4002 le16_to_cpu(reg_block->usRegIndexTblSize)); radeon_atom_init_mc_reg_table() 4004 num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) / radeon_atom_init_mc_reg_table() 4012 (u16)(le16_to_cpu(format->usRegIndex)); radeon_atom_init_mc_reg_table() 4041 ((u8 *)reg_data + le16_to_cpu(reg_block->usRegDataBlkSize)); radeon_atom_init_mc_reg_table()
|
H A D | rs780_dpm.c | 723 rps->class = le16_to_cpu(non_clock_info->usClassification); rs780_parse_pplib_non_clock_info() 724 rps->class2 = le16_to_cpu(non_clock_info->usClassification2); rs780_parse_pplib_non_clock_info() 754 sclk = le16_to_cpu(clock_info->rs780.usLowEngineClockLow); rs780_parse_pplib_clock_info() 757 sclk = le16_to_cpu(clock_info->rs780.usHighEngineClockLow); rs780_parse_pplib_clock_info() 760 switch (le16_to_cpu(clock_info->rs780.usVDDC)) { rs780_parse_pplib_clock_info() 815 le16_to_cpu(power_info->pplib.usStateArrayOffset) + rs780_parse_power_table() 819 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + rs780_parse_power_table() 825 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset) + rs780_parse_power_table() 890 le16_to_cpu(info->info.usInterNBVoltageLow); rs780_dpm_init() 892 le16_to_cpu(info->info.usInterNBVoltageHigh); rs780_dpm_init() 898 le16_to_cpu(info->info_2.usNumberOfCyclesInPeriod); rs780_dpm_init() 902 le16_to_cpu(info->info_2.usBootUpNBVoltage); rs780_dpm_init() 904 le16_to_cpu(info->info_2.usMaxNBVoltage); rs780_dpm_init() 906 le16_to_cpu(info->info_2.usMinNBVoltage); rs780_dpm_init()
|
/linux-4.4.14/fs/hpfs/ |
H A D | map.c | 79 cpi = le16_to_cpu(cp->array[0].index); hpfs_load_code_page() 88 if (le16_to_cpu(cpd->offs[cpi]) > 0x178) { hpfs_load_code_page() 93 ptr = (unsigned char *)cpd + le16_to_cpu(cpd->offs[cpi]) + 6; hpfs_load_code_page() 186 if (le16_to_cpu(fnode->btree.first_free) != hpfs_map_fnode() 194 if (le16_to_cpu(fnode->ea_size_s) && (le16_to_cpu(fnode->ea_offs) < 0xc4 || hpfs_map_fnode() 195 le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s) > 0x200)) { hpfs_map_fnode() 199 le16_to_cpu(fnode->ea_offs), le16_to_cpu(fnode->ea_size_s)); hpfs_map_fnode() 239 if (le16_to_cpu(anode->btree.first_free) != hpfs_map_anode() 285 if (le16_to_cpu(de->length) > 292 || (le16_to_cpu(de->length) < 32) || (le16_to_cpu(de->length) & 3) || p + le16_to_cpu(de->length) > 2048) { hpfs_map_dnode() 289 if (((31 + de->namelen + de->down*4 + 3) & ~3) != le16_to_cpu(de->length)) { hpfs_map_dnode() 290 if (((31 + de->namelen + de->down*4 + 3) & ~3) < le16_to_cpu(de->length) && s->s_flags & MS_RDONLY) goto ok; hpfs_map_dnode()
|
H A D | ea.c | 238 if (!le16_to_cpu(fnode->ea_offs)) { hpfs_set_ea() 239 /*if (le16_to_cpu(fnode->ea_size_s)) { hpfs_set_ea() 241 inode->i_ino, le16_to_cpu(fnode->ea_size_s)); hpfs_set_ea() 246 if (le16_to_cpu(fnode->ea_offs) < 0xc4 || le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s) > 0x200) { hpfs_set_ea() 249 le16_to_cpu(fnode->ea_offs), le16_to_cpu(fnode->ea_size_s)); hpfs_set_ea() 252 if ((le16_to_cpu(fnode->ea_size_s) || !le32_to_cpu(fnode->ea_size_l)) && hpfs_set_ea() 253 le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5 <= 0x200) { hpfs_set_ea() 261 fnode->ea_size_s = cpu_to_le16(le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5); hpfs_set_ea() 266 if (le16_to_cpu(fnode->ea_size_s) && !le32_to_cpu(fnode->ea_size_l)) { hpfs_set_ea() 275 memcpy(data, fnode_ea(fnode), le16_to_cpu(fnode->ea_size_s)); hpfs_set_ea() 276 fnode->ea_size_l = cpu_to_le32(le16_to_cpu(fnode->ea_size_s)); hpfs_set_ea() 307 anode->btree.first_free = cpu_to_le16(le16_to_cpu(anode->btree.first_free) + 12); hpfs_set_ea()
|
H A D | hpfs_fn.h | 109 return le32_to_cpu(*(__le32 *) ((void *) de + le16_to_cpu(de->length) - 4)); de_down_pointer() 131 CHKCOND(le16_to_cpu(de->length)>=0x20 && le16_to_cpu(de->length)<0x800,("HPFS: de_next_de: de->length = %x\n",(unsigned)le16_to_cpu(de->length))); de_next_de() 132 return (void *) de + le16_to_cpu(de->length); de_next_de() 137 return (struct extended_attribute *)((char *)fnode + le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s)); fnode_ea() 142 return (struct extended_attribute *)((char *)fnode + le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s)); fnode_end_ea()
|
H A D | inode.c | 64 i_uid_write(i, le16_to_cpu(*(__le16*)ea)); hpfs_read_inode() 71 i_gid_write(i, le16_to_cpu(*(__le16*)ea)); hpfs_read_inode() 91 mode = le16_to_cpu(*(__le16*)ea); hpfs_read_inode() 147 /*if (le32_to_cpu(fnode->acl_size_l) || le16_to_cpu(fnode->acl_size_s)) { hpfs_write_inode_ea()
|
H A D | dnode.c | 149 if (le16_to_cpu(de->length) != 32) { set_last_pointer() 207 d->first_free = cpu_to_le32(le32_to_cpu(d->first_free) - le16_to_cpu(de->length)); hpfs_delete_de() 493 if (!(nde = kmalloc(le16_to_cpu(de->length), GFP_NOFS))) { move_to_top() 498 memcpy(nde, de, le16_to_cpu(de->length)); move_to_top() 588 *(dnode_secno *) ((void *) de + le16_to_cpu(de->length) - 4) = down; delete_empty_dnode() 607 if (!(de_cp = kmalloc(le16_to_cpu(de->length), GFP_NOFS))) { delete_empty_dnode() 611 memcpy(de_cp, de, le16_to_cpu(de->length)); delete_empty_dnode() 668 *(__le32 *) ((void *) del + le16_to_cpu(del->length) - 4) = cpu_to_le32(down); delete_empty_dnode() 670 if (!(de_cp = kmalloc(le16_to_cpu(de_prev->length), GFP_NOFS))) { delete_empty_dnode() 677 memcpy(de_cp, de_prev, le16_to_cpu(de_prev->length)); delete_empty_dnode() 684 *(__le32 *) ((void *) de_prev + le16_to_cpu(de_prev->length) - 4) = cpu_to_le32(ndown); delete_empty_dnode()
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
H A D | sta_cmdresp.c | 59 switch (le16_to_cpu(resp->command)) { mwifiex_process_cmdresp_error() 64 resp->result, le16_to_cpu(pm->action)); mwifiex_process_cmdresp_error() 66 if (le16_to_cpu(pm->action) == EN_AUTO_PS && mwifiex_process_cmdresp_error() 67 (le16_to_cpu(pm->params.ps_bitmap) & BITMAP_STA_PS) && mwifiex_process_cmdresp_error() 131 priv->data_rssi_last = le16_to_cpu(rssi_info_rsp->data_rssi_last); mwifiex_ret_802_11_rssi_info() 132 priv->data_nf_last = le16_to_cpu(rssi_info_rsp->data_nf_last); mwifiex_ret_802_11_rssi_info() 134 priv->data_rssi_avg = le16_to_cpu(rssi_info_rsp->data_rssi_avg); mwifiex_ret_802_11_rssi_info() 135 priv->data_nf_avg = le16_to_cpu(rssi_info_rsp->data_nf_avg); mwifiex_ret_802_11_rssi_info() 137 priv->bcn_rssi_last = le16_to_cpu(rssi_info_rsp->bcn_rssi_last); mwifiex_ret_802_11_rssi_info() 138 priv->bcn_nf_last = le16_to_cpu(rssi_info_rsp->bcn_nf_last); mwifiex_ret_802_11_rssi_info() 140 priv->bcn_rssi_avg = le16_to_cpu(rssi_info_rsp->bcn_rssi_avg); mwifiex_ret_802_11_rssi_info() 141 priv->bcn_nf_avg = le16_to_cpu(rssi_info_rsp->bcn_nf_avg); mwifiex_ret_802_11_rssi_info() 188 u16 oid = le16_to_cpu(smib->oid); mwifiex_ret_802_11_snmp_mib() 189 u16 query_type = le16_to_cpu(smib->query_type); mwifiex_ret_802_11_snmp_mib() 195 oid, query_type, le16_to_cpu(smib->buf_size)); mwifiex_ret_802_11_snmp_mib() 197 ul_temp = le16_to_cpu(*((__le16 *) (smib->value))); mwifiex_ret_802_11_snmp_mib() 294 tlv_buf_left = le16_to_cpu(resp->size) - S_DS_GEN - sizeof(*rate_cfg); mwifiex_ret_tx_rate_cfg() 298 tlv = le16_to_cpu(head->type); mwifiex_ret_tx_rate_cfg() 299 tlv_buf_len = le16_to_cpu(head->len); mwifiex_ret_tx_rate_cfg() 308 le16_to_cpu(rate_scope->hr_dsss_rate_bitmap); mwifiex_ret_tx_rate_cfg() 310 le16_to_cpu(rate_scope->ofdm_rate_bitmap); mwifiex_ret_tx_rate_cfg() 316 le16_to_cpu(rate_scope-> mwifiex_ret_tx_rate_cfg() 324 le16_to_cpu(rate_scope-> mwifiex_ret_tx_rate_cfg() 364 length = le16_to_cpu(pg_tlv_hdr->length); mwifiex_get_power_level() 404 u16 action = le16_to_cpu(txp_cfg->action); mwifiex_ret_tx_power_cfg() 415 tlv_buf_left = le16_to_cpu(resp->size) - S_DS_GEN - sizeof(*txp_cfg); mwifiex_ret_tx_power_cfg() 417 le16_to_cpu(pg_tlv_hdr->length) + sizeof(*pg_tlv_hdr)) mwifiex_ret_tx_power_cfg() 456 u16 action = le16_to_cpu(txp->action); mwifiex_ret_rf_tx_power() 458 priv->tx_power_level = le16_to_cpu(txp->cur_level); mwifiex_ret_rf_tx_power() 487 le16_to_cpu(ant_mimo->action_tx), mwifiex_ret_rf_antenna() 488 le16_to_cpu(ant_mimo->tx_ant_mode), mwifiex_ret_rf_antenna() 489 le16_to_cpu(ant_mimo->action_rx), mwifiex_ret_rf_antenna() 490 le16_to_cpu(ant_mimo->rx_ant_mode)); mwifiex_ret_rf_antenna() 494 le16_to_cpu(ant_siso->action), mwifiex_ret_rf_antenna() 495 le16_to_cpu(ant_siso->ant_mode)); mwifiex_ret_rf_antenna() 596 if (le16_to_cpu(key->action) == HostCmd_ACT_GEN_SET) { mwifiex_ret_802_11_key_material_v1() 597 if ((le16_to_cpu(key->key_param_set.key_info) & KEY_MCAST)) { mwifiex_ret_802_11_key_material_v1() 610 le16_to_cpu(priv->aes_key.key_param_set.key_len)); mwifiex_ret_802_11_key_material_v1() 628 if (le16_to_cpu(key_v2->action) == HostCmd_ACT_GEN_SET) { mwifiex_ret_802_11_key_material_v2() 629 if ((le16_to_cpu(key_v2->key_param_set.key_info) & KEY_MCAST)) { mwifiex_ret_802_11_key_material_v2() 646 key_v2->key_param_set.key_params.aes.key, le16_to_cpu(len)); mwifiex_ret_802_11_key_material_v2() 670 u16 action = le16_to_cpu(domain_info->action); mwifiex_ret_802_11d_domain_info() 673 no_of_triplet = (u8) ((le16_to_cpu(domain->header.len) mwifiex_ret_802_11d_domain_info() 750 *((u16 *)data_buf) = le16_to_cpu(mode_cfg->mode); mwifiex_ret_p2p_mode_cfg() 795 reg_rw->offset = cpu_to_le32((u32) le16_to_cpu(r.mac->offset)); mwifiex_ret_reg_access() 800 reg_rw->offset = cpu_to_le32((u32) le16_to_cpu(r.bbp->offset)); mwifiex_ret_reg_access() 806 reg_rw->offset = cpu_to_le32((u32) le16_to_cpu(r.rf->offset)); mwifiex_ret_reg_access() 811 reg_rw->offset = cpu_to_le32((u32) le16_to_cpu(r.pmic->offset)); mwifiex_ret_reg_access() 816 reg_rw->offset = cpu_to_le32((u32) le16_to_cpu(r.rf->offset)); mwifiex_ret_reg_access() 822 if (le16_to_cpu(eeprom->byte_count) < mwifiex_ret_reg_access() 823 le16_to_cpu(r.eeprom->byte_count)) { mwifiex_ret_reg_access() 830 if (le16_to_cpu(eeprom->byte_count) > 0) mwifiex_ret_reg_access() 832 le16_to_cpu(r.eeprom->byte_count)); mwifiex_ret_reg_access() 854 if (le16_to_cpu(ibss_coal_resp->action) == HostCmd_ACT_GEN_SET) mwifiex_ret_ibss_coalescing_status() 874 = le16_to_cpu(ibss_coal_resp->beacon_interval); mwifiex_ret_ibss_coalescing_status() 878 (u8) le16_to_cpu(ibss_coal_resp->use_g_rate_protect); mwifiex_ret_ibss_coalescing_status() 889 u16 reason = le16_to_cpu(cmd_tdls_oper->reason); mwifiex_ret_tdls_oper() 890 u16 action = le16_to_cpu(cmd_tdls_oper->tdls_action); mwifiex_ret_tdls_oper() 958 le16_to_cpu(cmd_sub_event->events)); mwifiex_ret_subsc_evt() 1005 adapter->sdio_rx_block_size = le16_to_cpu(cfg->block_size); mwifiex_ret_sdio_rx_aggr_cfg() 1016 u16 action = le16_to_cpu(coex->action); mwifiex_ret_robust_coex() 1153 if (0xffff == (u16)le16_to_cpu(resp->params.tx_buf.buff_size)) { mwifiex_process_sta_cmdresp() 1164 adapter->tx_buf_size = (u16) le16_to_cpu(resp->params. mwifiex_process_sta_cmdresp() 1175 le16_to_cpu(resp->params.tx_buf.mp_end_port)); mwifiex_process_sta_cmdresp()
|
H A D | ie.c | 53 mask = le16_to_cpu(priv->mgmt_ie[i].mgmt_subtype_mask); mwifiex_ie_get_autoidx() 54 len = le16_to_cpu(ie->ie_length); mwifiex_ie_get_autoidx() 89 input_len = le16_to_cpu(ie_list->len); mwifiex_update_autoindex_ies() 96 tlv_len = le16_to_cpu(ie->ie_length); mwifiex_update_autoindex_ies() 101 index = le16_to_cpu(ie->ie_index); mwifiex_update_autoindex_ies() 102 mask = le16_to_cpu(ie->mgmt_subtype_mask); mwifiex_update_autoindex_ies() 112 memcpy(tmp, &ie->ie_buffer, le16_to_cpu(ie->ie_length)); mwifiex_update_autoindex_ies() 135 le16_to_cpu(priv->mgmt_ie[index].ie_length) + mwifiex_update_autoindex_ies() 172 le16_to_cpu(beacon_ie->ie_length); mwifiex_update_uap_custom_ie() 179 le16_to_cpu(pr_ie->ie_length); mwifiex_update_uap_custom_ie() 186 le16_to_cpu(ar_ie->ie_length); mwifiex_update_uap_custom_ie() 197 *beacon_idx = le16_to_cpu(ap_custom_ie->ie_list[0].ie_index); mwifiex_update_uap_custom_ie() 199 le16_to_cpu(beacon_ie->ie_length); mwifiex_update_uap_custom_ie() 202 if (pr_ie && le16_to_cpu(pr_ie->ie_index) == MWIFIEX_AUTO_IDX_MASK) { mwifiex_update_uap_custom_ie() 206 le16_to_cpu(pr_ie->ie_length); mwifiex_update_uap_custom_ie() 209 if (ar_ie && le16_to_cpu(ar_ie->ie_index) == MWIFIEX_AUTO_IDX_MASK) mwifiex_update_uap_custom_ie() 243 memcpy(ie->ie_buffer + le16_to_cpu(ie->ie_length), mwifiex_update_vs_ie()
|
H A D | cmdevt.c | 161 cmd_code = le16_to_cpu(host_cmd->command); mwifiex_dnld_cmd_to_fw() 162 cmd_size = le16_to_cpu(host_cmd->size); mwifiex_dnld_cmd_to_fw() 204 le16_to_cpu(*(__le16 *)((u8 *)host_cmd + S_DS_GEN)), mwifiex_dnld_cmd_to_fw() 205 cmd_size, le16_to_cpu(host_cmd->seq_num)); mwifiex_dnld_cmd_to_fw() 248 le16_to_cpu(*(__le16 *) ((u8 *) host_cmd + S_DS_GEN)); mwifiex_dnld_cmd_to_fw() 289 le16_to_cpu(sleep_cfm_buf->command), mwifiex_dnld_sleep_confirm_cmd() 290 le16_to_cpu(sleep_cfm_buf->action), mwifiex_dnld_sleep_confirm_cmd() 291 le16_to_cpu(sleep_cfm_buf->size), mwifiex_dnld_sleep_confirm_cmd() 292 le16_to_cpu(sleep_cfm_buf->seq_num)); mwifiex_dnld_sleep_confirm_cmd() 294 le16_to_cpu(sleep_cfm_buf->size)); mwifiex_dnld_sleep_confirm_cmd() 325 if (!le16_to_cpu(sleep_cfm_buf->resp_ctrl)) mwifiex_dnld_sleep_confirm_cmd() 331 if (!le16_to_cpu(sleep_cfm_buf->resp_ctrl) && mwifiex_dnld_sleep_confirm_cmd() 653 le16_to_cpu(host_cmd->command), mwifiex_recycle_cmd_node() 678 command = le16_to_cpu(host_cmd->command); mwifiex_insert_cmd_to_pending_q() 684 if ((le16_to_cpu(pm->action) == DIS_PS) || mwifiex_insert_cmd_to_pending_q() 685 (le16_to_cpu(pm->action) == DIS_AUTO_PS)) { mwifiex_insert_cmd_to_pending_q() 803 le16_to_cpu(resp->command)); mwifiex_process_cmdresp() 813 uint16_t size = le16_to_cpu(resp->size); mwifiex_process_cmdresp() 823 orig_cmdresp_no = le16_to_cpu(resp->command); mwifiex_process_cmdresp() 827 HostCmd_GET_BSS_NO(le16_to_cpu(resp->seq_num)), mwifiex_process_cmdresp() 828 HostCmd_GET_BSS_TYPE(le16_to_cpu(resp->seq_num))); mwifiex_process_cmdresp() 834 cmdresp_no = le16_to_cpu(resp->command); mwifiex_process_cmdresp() 835 cmdresp_result = le16_to_cpu(resp->result); mwifiex_process_cmdresp() 846 le16_to_cpu(resp->size), le16_to_cpu(resp->seq_num)); mwifiex_process_cmdresp() 848 le16_to_cpu(resp->size)); mwifiex_process_cmdresp() 1255 uint16_t result = le16_to_cpu(cmd->result); mwifiex_process_sleep_confirm_resp() 1256 uint16_t command = le16_to_cpu(cmd->command); mwifiex_process_sleep_confirm_resp() 1257 uint16_t seq_num = le16_to_cpu(cmd->seq_num); mwifiex_process_sleep_confirm_resp() 1267 command, result, le16_to_cpu(cmd->size), seq_num); mwifiex_process_sleep_confirm_resp() 1409 uint16_t action = le16_to_cpu(ps_mode->action); mwifiex_ret_enh_power_mode() 1410 uint16_t ps_bitmap = le16_to_cpu(ps_mode->params.ps_bitmap); mwifiex_ret_enh_power_mode() 1412 le16_to_cpu(ps_mode->params.ps_bitmap); mwifiex_ret_enh_power_mode() 1551 adapter->number_of_antenna = le16_to_cpu(hw_spec->number_of_antenna); mwifiex_ret_get_hw_spec() 1573 resp_size = le16_to_cpu(resp->size) - S_DS_GEN; mwifiex_ret_get_hw_spec() 1579 switch (le16_to_cpu(tlv->type)) { mwifiex_ret_get_hw_spec() 1582 api_id = le16_to_cpu(api_rev->api_id); mwifiex_ret_get_hw_spec() 1611 le16_to_cpu(tlv->type)); mwifiex_ret_get_hw_spec() 1614 parsed_len += le16_to_cpu(tlv->len) + mwifiex_ret_get_hw_spec() 1616 left_len -= le16_to_cpu(tlv->len) + mwifiex_ret_get_hw_spec() 1629 le16_to_cpu(hw_spec->hw_if_version), mwifiex_ret_get_hw_spec() 1630 le16_to_cpu(hw_spec->version)); mwifiex_ret_get_hw_spec() 1633 adapter->region_code = le16_to_cpu(hw_spec->region_code); mwifiex_ret_get_hw_spec() 1653 le16_to_cpu(hw_spec->mp_end_port)); mwifiex_ret_get_hw_spec()
|
H A D | sta_rx.c | 97 rx_pkt_off = le16_to_cpu(local_rx_pd->rx_pkt_offset); mwifiex_process_rx_packet() 98 rx_pkt_len = le16_to_cpu(local_rx_pd->rx_pkt_length); mwifiex_process_rx_packet() 199 rx_pkt_type = le16_to_cpu(local_rx_pd->rx_pkt_type); mwifiex_process_sta_rx_packet() 200 rx_pkt_offset = le16_to_cpu(local_rx_pd->rx_pkt_offset); mwifiex_process_sta_rx_packet() 201 rx_pkt_length = le16_to_cpu(local_rx_pd->rx_pkt_length); mwifiex_process_sta_rx_packet() 202 seq_num = le16_to_cpu(local_rx_pd->seq_num); mwifiex_process_sta_rx_packet() 244 le16_to_cpu(local_rx_pd->seq_num); mwifiex_process_sta_rx_packet()
|
H A D | uap_txrx.c | 107 rx_pkt_hdr = (void *)uap_rx_pd + le16_to_cpu(uap_rx_pd->rx_pkt_offset); mwifiex_uap_queue_bridged_pkt() 239 rx_pkt_hdr = (void *)uap_rx_pd + le16_to_cpu(uap_rx_pd->rx_pkt_offset); mwifiex_handle_uap_rx_forward() 289 rx_pkt_type = le16_to_cpu(uap_rx_pd->rx_pkt_type); mwifiex_process_uap_rx_packet() 290 rx_pkt_hdr = (void *)uap_rx_pd + le16_to_cpu(uap_rx_pd->rx_pkt_offset); mwifiex_process_uap_rx_packet() 294 if ((le16_to_cpu(uap_rx_pd->rx_pkt_offset) + mwifiex_process_uap_rx_packet() 295 le16_to_cpu(uap_rx_pd->rx_pkt_length)) > (u16) skb->len) { mwifiex_process_uap_rx_packet() 298 skb->len, le16_to_cpu(uap_rx_pd->rx_pkt_offset), mwifiex_process_uap_rx_packet() 299 le16_to_cpu(uap_rx_pd->rx_pkt_length)); mwifiex_process_uap_rx_packet() 325 le16_to_cpu(uap_rx_pd->seq_num); mwifiex_process_uap_rx_packet() 331 (le16_to_cpu(uap_rx_pd->rx_pkt_type) != PKT_TYPE_AMSDU))) { mwifiex_process_uap_rx_packet() 337 pkt_type = (u8)le16_to_cpu(uap_rx_pd->rx_pkt_type); mwifiex_process_uap_rx_packet() 338 ret = mwifiex_11n_rx_reorder_pkt(priv, le16_to_cpu(uap_rx_pd->seq_num), mwifiex_process_uap_rx_packet()
|
H A D | sta_event.c | 172 switch (le16_to_cpu(tdls_evt->type)) { mwifiex_parse_tdls_event() 177 le16_to_cpu(tdls_evt->u.reason_code), mwifiex_parse_tdls_event() 326 if (le16_to_cpu(chan_info->header.type) != TLV_TYPE_MULTI_CHAN_INFO || mwifiex_process_multi_chan_event() 333 adapter->usb_mc_status = le16_to_cpu(chan_info->status); mwifiex_process_multi_chan_event() 341 tlv_type = le16_to_cpu(tlv->type); mwifiex_process_multi_chan_event() 342 tlv_len = le16_to_cpu(tlv->len); mwifiex_process_multi_chan_event() 409 tlv_type = le16_to_cpu(tlv->type); mwifiex_process_tx_pause_event() 410 tlv_len = le16_to_cpu(tlv->len); mwifiex_process_tx_pause_event() 449 tlv_len = le16_to_cpu(tlv->len); mwifiex_bt_coex_wlan_param_update_event() 450 tlv_type = le16_to_cpu(tlv->type); mwifiex_bt_coex_wlan_param_update_event() 570 le16_to_cpu(*(__le16 *)adapter->event_body); mwifiex_process_sta_event() 585 le16_to_cpu(*(__le16 *)adapter->event_body); mwifiex_process_sta_event() 595 le16_to_cpu(*(__le16 *)adapter->event_body); mwifiex_process_sta_event() 777 ctrl = le16_to_cpu(*(__le16 *)adapter->event_body); mwifiex_process_sta_event()
|
H A D | uap_event.c | 48 tlv_len = le16_to_cpu(tlv_hdr->header.len); mwifiex_check_uap_capabilties() 53 switch (le16_to_cpu(tlv_hdr->header.type)) { mwifiex_check_uap_capabilties() 123 if (le16_to_cpu(event->type) == TLV_TYPE_UAP_MGMT_FRAME) { mwifiex_process_uap_event() 139 le16_to_cpu(event->len) - (u16)len; mwifiex_process_uap_event() 205 ctrl = le16_to_cpu(*(__le16 *)adapter->event_body); mwifiex_process_uap_event()
|
H A D | scan.c | 665 le16_to_cpu(tmp_chan_list->max_scan_time)); mwifiex_scan_channel_list() 691 + le16_to_cpu(chan_tlv_out->header.len)); mwifiex_scan_channel_list() 699 le16_to_cpu(tmp_chan_list->max_scan_time); mwifiex_scan_channel_list() 921 + le16_to_cpu(wildcard_ssid_tlv->header.len)); mwifiex_config_scan() 983 le16_to_cpu(bss_mode->header.len); mwifiex_config_scan() 1001 le16_to_cpu(num_probes_tlv->header.len); mwifiex_config_scan() 1132 tlv_type = le16_to_cpu(current_tlv->header.type); mwifiex_ret_802_11_scan_get_tlv_ptrs() 1133 tlv_len = le16_to_cpu(current_tlv->header.len); mwifiex_ret_802_11_scan_get_tlv_ptrs() 1726 beacon_size = le16_to_cpu(*(__le16 *)(*bss_info)); mwifiex_parse_single_response_buf() 1778 beacon_period = le16_to_cpu(bcn_param->beacon_period); mwifiex_parse_single_response_buf() 1780 cap_info_bitmap = le16_to_cpu(bcn_param->cap_info_bitmap); mwifiex_parse_single_response_buf() 2041 is_bgscan_resp = (le16_to_cpu(resp->command) mwifiex_ret_802_11_scan() 2060 bytes_left = le16_to_cpu(scan_rsp->bss_descript_size); mwifiex_ret_802_11_scan() 2065 scan_resp_size = le16_to_cpu(resp->size); mwifiex_ret_802_11_scan() 2169 num_chan = le16_to_cpu(tlv_stat->header.len) / mwifiex_update_chan_statistics() 2177 chan_stats.total_bss = le16_to_cpu(fw_chan_stats->total_bss); mwifiex_update_chan_statistics() 2179 le16_to_cpu(fw_chan_stats->cca_scan_dur); mwifiex_update_chan_statistics() 2181 le16_to_cpu(fw_chan_stats->cca_busy_dur); mwifiex_update_chan_statistics() 2215 buf_left = le16_to_cpu(resp->size) - (sizeof(*ext_scan_resp) + S_DS_GEN mwifiex_ret_802_11_scan_ext() 2219 type = le16_to_cpu(tlv->type); mwifiex_ret_802_11_scan_ext() 2220 len = le16_to_cpu(tlv->len); mwifiex_ret_802_11_scan_ext() 2248 if (le16_to_cpu(cmd_ptr->command) == mwifiex_ret_802_11_scan_ext() 2286 u16 scan_resp_size = le16_to_cpu(event_scan->buf_size); mwifiex_handle_event_ext_scan_report() 2307 type = le16_to_cpu(tlv->header.type); mwifiex_handle_event_ext_scan_report() 2308 len = le16_to_cpu(tlv->header.len); mwifiex_handle_event_ext_scan_report() 2332 le16_to_cpu(tlv->header.type) != TLV_TYPE_BSS_SCAN_RSP) { mwifiex_handle_event_ext_scan_report() 2333 type = le16_to_cpu(tlv->header.type); mwifiex_handle_event_ext_scan_report() 2334 len = le16_to_cpu(tlv->header.len); mwifiex_handle_event_ext_scan_report() 2377 rssi = (s32)(s16)(le16_to_cpu(scan_info_tlv->rssi)); mwifiex_handle_event_ext_scan_report() 2540 le16_to_cpu(vs_param_set->header.len)); mwifiex_cmd_append_vsie_tlv() 2541 *buffer += le16_to_cpu(vs_param_set->header.len) + mwifiex_cmd_append_vsie_tlv() 2543 ret_len += le16_to_cpu(vs_param_set->header.len) + mwifiex_cmd_append_vsie_tlv()
|
H A D | 11n.c | 40 uint16_t ht_ext_cap = le16_to_cpu(ht_cap->extended_ht_cap_info); mwifiex_fill_cap_info() 116 uint16_t del_ba_param_set = le16_to_cpu(del_ba->del_ba_param_set); mwifiex_ret_11n_delba() 163 u16 block_ack_param_set = le16_to_cpu(add_ba_rsp->block_ack_param_set); mwifiex_ret_11n_addba_req() 165 add_ba_rsp->ssn = cpu_to_le16((le16_to_cpu(add_ba_rsp->ssn)) mwifiex_ret_11n_addba_req() 174 if (le16_to_cpu(add_ba_rsp->status_code) != BA_RESULT_SUCCESS) { mwifiex_ret_11n_addba_req() 341 le16_to_cpu(ht_cap->header.len)); mwifiex_cmd_append_11n_tlv() 363 le16_to_cpu(ht_info->header.len)); mwifiex_cmd_append_11n_tlv() 412 le16_to_cpu(bss_co_2040->header.len)); mwifiex_cmd_append_11n_tlv() 427 le16_to_cpu(ext_cap->header.len)); mwifiex_cmd_append_11n_tlv() 635 del_ba_param_set = le16_to_cpu(delba.del_ba_param_set); mwifiex_send_delba() 681 uint16_t del_ba_param_set = le16_to_cpu(cmd_del_ba->del_ba_param_set); mwifiex_11n_delete_ba_stream()
|
H A D | 11ac.c | 123 mcs_map_resp = le16_to_cpu(vht_cap->supp_mcs.rx_mcs_map); mwifiex_fill_vht_cap_tlv() 146 mcs_map_resp = le16_to_cpu(vht_cap->supp_mcs.tx_mcs_map); mwifiex_fill_vht_cap_tlv() 196 le16_to_cpu(vht_cap->header.len)); mwifiex_cmd_append_11ac_tlv() 216 le16_to_cpu(vht_op->header.len)); mwifiex_cmd_append_11ac_tlv()
|
H A D | join.c | 342 le16_to_cpu(rsn_ie_tlv->header.type) & 0x00FF); mwifiex_append_rsn_ie_wpa_wpa2() 344 rsn_ie_tlv->header.len = cpu_to_le16(le16_to_cpu(rsn_ie_tlv->header.len) mwifiex_append_rsn_ie_wpa_wpa2() 346 if (le16_to_cpu(rsn_ie_tlv->header.len) <= (sizeof(priv->wpa_ie) - 2)) mwifiex_append_rsn_ie_wpa_wpa2() 348 le16_to_cpu(rsn_ie_tlv->header.len)); mwifiex_append_rsn_ie_wpa_wpa2() 353 le16_to_cpu(rsn_ie_tlv->header.len); mwifiex_append_rsn_ie_wpa_wpa2() 429 le16_to_cpu(ssid_tlv->header.len)); mwifiex_cmd_802_11_associate() 430 pos += sizeof(ssid_tlv->header) + le16_to_cpu(ssid_tlv->header.len); mwifiex_cmd_802_11_associate() 438 pos += sizeof(phy_tlv->header) + le16_to_cpu(phy_tlv->header.len); mwifiex_cmd_802_11_associate() 443 pos += sizeof(ss_tlv->header) + le16_to_cpu(ss_tlv->header.len); mwifiex_cmd_802_11_associate() 473 pos += sizeof(auth_tlv->header) + le16_to_cpu(auth_tlv->header.len); mwifiex_cmd_802_11_associate() 650 cap_info = le16_to_cpu(assoc_rsp->cap_info_bitmap); mwifiex_ret_802_11_associate() 651 status_code = le16_to_cpu(assoc_rsp->status_code); mwifiex_ret_802_11_associate() 652 aid = le16_to_cpu(assoc_rsp->a_id); mwifiex_ret_802_11_associate() 661 priv->assoc_rsp_size = min(le16_to_cpu(resp->size) - S_DS_GEN, mwifiex_ret_802_11_associate() 674 le16_to_cpu(assoc_rsp->a_id)); mwifiex_ret_802_11_associate() 1036 tmp_ht_cap = le16_to_cpu(ht_cap->ht_cap.cap_info); mwifiex_cmd_802_11_ad_hoc_start() 1259 reason_code = le16_to_cpu(resp->result); mwifiex_ret_802_11_ad_hoc() 1275 if (le16_to_cpu(resp->command) == HostCmd_CMD_802_11_AD_HOC_START) { mwifiex_ret_802_11_ad_hoc()
|
H A D | 11n_rxreorder.c | 38 if (le16_to_cpu(local_rx_pd->rx_pkt_type) == PKT_TYPE_AMSDU) { mwifiex_11n_dispatch_amsdu_pkt() 44 skb_pull(skb, le16_to_cpu(local_rx_pd->rx_pkt_offset)); mwifiex_11n_dispatch_amsdu_pkt() 45 skb_trim(skb, le16_to_cpu(local_rx_pd->rx_pkt_length)); mwifiex_11n_dispatch_amsdu_pkt() 490 block_ack_param_set = le16_to_cpu(cmd_addba_req->block_ack_param_set); mwifiex_cmd_11n_addba_rsp_gen() 502 win_size = (le16_to_cpu(add_ba_rsp->block_ack_param_set) mwifiex_cmd_11n_addba_rsp_gen() 509 le16_to_cpu(cmd_addba_req->ssn)); mwifiex_cmd_11n_addba_rsp_gen() 719 block_ack_param_set = le16_to_cpu(add_ba_rsp->block_ack_param_set); mwifiex_ret_11n_addba_resp() 727 if (le16_to_cpu(add_ba_rsp->status_code) != BA_RESULT_SUCCESS) { mwifiex_ret_11n_addba_resp()
|
H A D | usb.c | 389 id_vendor = le16_to_cpu(udev->descriptor.idVendor); mwifiex_usb_probe() 390 id_product = le16_to_cpu(udev->descriptor.idProduct); mwifiex_usb_probe() 391 bcd_device = le16_to_cpu(udev->descriptor.bcdDevice); mwifiex_usb_probe() 392 bcd_usb = le16_to_cpu(udev->descriptor.bcdUSB); mwifiex_usb_probe() 430 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe() 439 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe() 448 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe() 458 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe() 467 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe() 472 le16_to_cpu(epd->wMaxPacketSize); mwifiex_usb_probe() 953 switch (le16_to_cpu(card->udev->descriptor.idProduct)) { mwifiex_register_dev()
|
/linux-4.4.14/arch/mips/include/asm/mach-tx39xx/ |
H A D | mangle-port.h | 16 #define ioswabw(a, x) le16_to_cpu(x)
|
/linux-4.4.14/arch/mips/include/asm/mach-tx49xx/ |
H A D | mangle-port.h | 18 #define ioswabw(a, x) le16_to_cpu(x)
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
H A D | scan.c | 34 rate = le16_to_cpu(rates[i]); symbol_build_supp_rates() 90 len = le16_to_cpu(bss->a.essid_len); orinoco_add_hostscan_result() 114 le16_to_cpu(bss->a.channel), IEEE80211_BAND_2GHZ); orinoco_add_hostscan_result() 122 capability = le16_to_cpu(bss->a.capabilities); orinoco_add_hostscan_result() 123 beacon_interval = le16_to_cpu(bss->a.beacon_interv); orinoco_add_hostscan_result() 124 signal = SIGNAL_TO_MBM(le16_to_cpu(bss->a.level)); orinoco_add_hostscan_result() 155 capability = le16_to_cpu(bss->capabilities); orinoco_add_extscan_result() 156 beacon_interval = le16_to_cpu(bss->beacon_interval); orinoco_add_extscan_result()
|
/linux-4.4.14/drivers/media/common/siano/ |
H A D | smsendian.c | 67 ver->chip_model = le16_to_cpu(ver->chip_model); smsendian_handle_rx_message() 98 phdr->msg_type = le16_to_cpu(phdr->msg_type); smsendian_handle_message_header() 99 phdr->msg_length = le16_to_cpu(phdr->msg_length); smsendian_handle_message_header() 100 phdr->msg_flags = le16_to_cpu(phdr->msg_flags); smsendian_handle_message_header()
|
H A D | smsir.c | 84 dev->input_id.vendor = le16_to_cpu(dev->udev->descriptor.idVendor); sms_ir_init() 85 dev->input_id.product = le16_to_cpu(dev->udev->descriptor.idProduct); sms_ir_init()
|
/linux-4.4.14/fs/ext4/ |
H A D | bitmap.c | 29 provided = le16_to_cpu(gdp->bg_inode_bitmap_csum_lo); ext4_inode_bitmap_csum_verify() 32 hi = le16_to_cpu(gdp->bg_inode_bitmap_csum_hi); ext4_inode_bitmap_csum_verify() 68 provided = le16_to_cpu(gdp->bg_block_bitmap_csum_lo); ext4_block_bitmap_csum_verify() 71 hi = le16_to_cpu(gdp->bg_block_bitmap_csum_hi); ext4_block_bitmap_csum_verify()
|
H A D | ext4_extents.h | 109 (sizeof(struct ext4_extent) * le16_to_cpu((hdr)->eh_max))) 165 (le16_to_cpu((__path__)->p_hdr->eh_entries) \ 166 < le16_to_cpu((__path__)->p_hdr->eh_max)) 168 (EXT_FIRST_EXTENT((__hdr__)) + le16_to_cpu((__hdr__)->eh_entries) - 1) 170 (EXT_FIRST_INDEX((__hdr__)) + le16_to_cpu((__hdr__)->eh_entries) - 1) 172 (EXT_FIRST_EXTENT((__hdr__)) + le16_to_cpu((__hdr__)->eh_max) - 1) 174 (EXT_FIRST_INDEX((__hdr__)) + le16_to_cpu((__hdr__)->eh_max) - 1) 188 return le16_to_cpu(ext_inode_hdr(inode)->eh_depth); ext_depth() 194 BUG_ON((le16_to_cpu(ext->ee_len) & ~EXT_INIT_MAX_LEN) == 0); ext4_ext_mark_unwritten() 201 return (le16_to_cpu(ext->ee_len) > EXT_INIT_MAX_LEN); ext4_ext_is_unwritten() 206 return (le16_to_cpu(ext->ee_len) <= EXT_INIT_MAX_LEN ? ext4_ext_get_actual_len() 207 le16_to_cpu(ext->ee_len) : ext4_ext_get_actual_len() 208 (le16_to_cpu(ext->ee_len) - EXT_INIT_MAX_LEN)); ext4_ext_get_actual_len() 225 block |= ((ext4_fsblk_t) le16_to_cpu(ex->ee_start_hi) << 31) << 1; ext4_ext_pblock() 238 block |= ((ext4_fsblk_t) le16_to_cpu(ix->ei_leaf_hi) << 31) << 1; ext4_idx_pblock()
|
H A D | acl.c | 43 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); ext4_acl_from_disk() 44 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); ext4_acl_from_disk()
|
H A D | mmp.c | 140 int mmp_update_interval = le16_to_cpu(es->s_mmp_update_interval); kmmpd() 283 unsigned int mmp_check_interval = le16_to_cpu(es->s_mmp_update_interval); ext4_multi_mount_protect() 306 if (le16_to_cpu(mmp->mmp_check_interval) > mmp_check_interval) ext4_multi_mount_protect() 307 mmp_check_interval = le16_to_cpu(mmp->mmp_check_interval); ext4_multi_mount_protect()
|
H A D | symlink.c | 55 cstr.len = le16_to_cpu(sd->len); ext4_encrypted_follow_link()
|
H A D | xattr.c | 204 (value_start + le16_to_cpu(entry->e_value_offs) < ext4_xattr_check_names() 206 value_start + le16_to_cpu(entry->e_value_offs) + ext4_xattr_check_names() 241 le16_to_cpu(entry->e_value_offs) + value_size > size) ext4_xattr_check_entry() 315 memcpy(buffer, bh->b_data + le16_to_cpu(entry->e_value_offs), ext4_xattr_block_get() 359 le16_to_cpu(entry->e_value_offs), size); ext4_xattr_ibody_get() 606 size_t offs = le16_to_cpu(last->e_value_offs); ext4_xattr_free_space() 626 size_t offs = le16_to_cpu(last->e_value_offs); ext4_xattr_set_entry() 657 size_t offs = le16_to_cpu(s->here->e_value_offs); ext4_xattr_set_entry() 688 size_t o = le16_to_cpu(last->e_value_offs); ext4_xattr_set_entry() 1240 new_offs = le16_to_cpu(last->e_value_offs) + ext4_xattr_shift_entries() 1268 int s_min_extra_isize = le16_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_min_extra_isize); ext4_expand_extra_isize_ea() 1395 offs = le16_to_cpu(entry->e_value_offs); ext4_expand_extra_isize_ea() 1582 if (memcmp((char *)header1 + le16_to_cpu(entry1->e_value_offs), ext4_xattr_cmp() 1583 (char *)header2 + le16_to_cpu(entry2->e_value_offs), ext4_xattr_cmp() 1668 le16_to_cpu(entry->e_value_offs)); ext4_xattr_hash_entry()
|
/linux-4.4.14/fs/ocfs2/ |
H A D | resize.c | 107 u16 cl_bpc = le16_to_cpu(cl->cl_bpc); ocfs2_update_last_group_and_inode() 108 u16 cl_cpg = le16_to_cpu(cl->cl_cpg); ocfs2_update_last_group_and_inode() 123 old_bg_clusters = le16_to_cpu(group->bg_bits) / cl_bpc; ocfs2_update_last_group_and_inode() 151 chain = le16_to_cpu(group->bg_chain); ocfs2_update_last_group_and_inode() 318 if (le16_to_cpu(fe->id2.i_chain.cl_cpg) != ocfs2_group_extend() 339 cl_bpc = le16_to_cpu(fe->id2.i_chain.cl_bpc); ocfs2_group_extend() 340 if (le16_to_cpu(group->bg_bits) / cl_bpc + new_clusters > ocfs2_group_extend() 341 le16_to_cpu(fe->id2.i_chain.cl_cpg)) { ocfs2_group_extend() 393 u16 cl_bpc = le16_to_cpu(di->id2.i_chain.cl_bpc); ocfs2_check_new_group() 400 if (le16_to_cpu(gd->bg_chain) != input->chain) ocfs2_check_new_group() 404 le16_to_cpu(gd->bg_chain), input->chain); ocfs2_check_new_group() 405 else if (le16_to_cpu(gd->bg_bits) != input->clusters * cl_bpc) ocfs2_check_new_group() 409 le16_to_cpu(gd->bg_bits), input->clusters); ocfs2_check_new_group() 410 else if (le16_to_cpu(gd->bg_free_bits_count) != input->frees * cl_bpc) ocfs2_check_new_group() 414 le16_to_cpu(gd->bg_bits), ocfs2_check_new_group() 428 u16 cl_count = le16_to_cpu(di->id2.i_chain.cl_count); ocfs2_verify_group_and_input() 429 u16 cl_cpg = le16_to_cpu(di->id2.i_chain.cl_cpg); ocfs2_verify_group_and_input() 430 u16 next_free = le16_to_cpu(di->id2.i_chain.cl_next_free_rec); ocfs2_verify_group_and_input() 499 if (le16_to_cpu(fe->id2.i_chain.cl_cpg) != ocfs2_group_add() 533 cl_bpc = le16_to_cpu(fe->id2.i_chain.cl_bpc); ocfs2_group_add() 557 if (input->chain == le16_to_cpu(cl->cl_next_free_rec)) { ocfs2_group_add()
|
H A D | suballoc.c | 164 return (u32)le16_to_cpu(cl->cl_cpg) * (u32)le16_to_cpu(cl->cl_bpc); ocfs2_bits_per_group() 199 if (le16_to_cpu(gd->bg_free_bits_count) > le16_to_cpu(gd->bg_bits)) { ocfs2_validate_gd_self() 202 le16_to_cpu(gd->bg_bits), ocfs2_validate_gd_self() 203 le16_to_cpu(gd->bg_free_bits_count)); ocfs2_validate_gd_self() 206 if (le16_to_cpu(gd->bg_bits) > (8 * le16_to_cpu(gd->bg_size))) { ocfs2_validate_gd_self() 209 le16_to_cpu(gd->bg_bits), ocfs2_validate_gd_self() 210 8 * le16_to_cpu(gd->bg_size)); ocfs2_validate_gd_self() 231 max_bits = le16_to_cpu(di->id2.i_chain.cl_cpg) * le16_to_cpu(di->id2.i_chain.cl_bpc); ocfs2_validate_gd_parent() 232 if (le16_to_cpu(gd->bg_bits) > max_bits) { ocfs2_validate_gd_parent() 235 le16_to_cpu(gd->bg_bits)); ocfs2_validate_gd_parent() 239 if ((le16_to_cpu(gd->bg_chain) > ocfs2_validate_gd_parent() 240 le16_to_cpu(di->id2.i_chain.cl_next_free_rec)) || ocfs2_validate_gd_parent() 241 ((le16_to_cpu(gd->bg_chain) == ocfs2_validate_gd_parent() 242 le16_to_cpu(di->id2.i_chain.cl_next_free_rec)) && !resize)) { ocfs2_validate_gd_parent() 245 le16_to_cpu(gd->bg_chain)); ocfs2_validate_gd_parent() 347 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec)]; ocfs2_bg_discontig_add_extent() 349 rec->e_cpos = cpu_to_le32(le16_to_cpu(bg->bg_bits) / ocfs2_bg_discontig_add_extent() 350 le16_to_cpu(cl->cl_bpc)); ocfs2_bg_discontig_add_extent() 352 le16_add_cpu(&bg->bg_bits, clusters * le16_to_cpu(cl->cl_bpc)); ocfs2_bg_discontig_add_extent() 354 clusters * le16_to_cpu(cl->cl_bpc)); ocfs2_bg_discontig_add_extent() 397 if (group_clusters == le16_to_cpu(cl->cl_cpg)) ocfs2_block_group_fill() 405 bg->bg_free_bits_count = cpu_to_le16(le16_to_cpu(bg->bg_bits) - 1); ocfs2_block_group_fill() 425 while (curr < le16_to_cpu(cl->cl_count)) { ocfs2_find_smallest_chain() 447 le16_to_cpu(cl->cl_cpg), &bit_off, ocfs2_block_group_alloc_contig() 510 unsigned int needed = le16_to_cpu(cl->cl_cpg) - ocfs2_block_group_grow_discontig() 511 le16_to_cpu(bg->bg_bits) / le16_to_cpu(cl->cl_bpc); ocfs2_block_group_grow_discontig() 525 while ((needed > 0) && (le16_to_cpu(el->l_next_free_rec) < ocfs2_block_group_grow_discontig() 526 le16_to_cpu(el->l_count))) { ocfs2_block_group_grow_discontig() 542 needed = le16_to_cpu(cl->cl_cpg) - ocfs2_block_group_grow_discontig() 543 le16_to_cpu(bg->bg_bits) / le16_to_cpu(cl->cl_bpc); ocfs2_block_group_grow_discontig() 576 for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { ocfs2_bg_alloc_cleanup() 581 le16_to_cpu(rec->e_leaf_clusters)); ocfs2_bg_alloc_cleanup() 600 unsigned int min_bits = le16_to_cpu(cl->cl_cpg) >> 1; ocfs2_block_group_alloc_discontig() 689 le16_to_cpu(cl->cl_cpg), ocfs2_block_group_alloc() 698 le16_to_cpu(cl->cl_cpg)); ocfs2_block_group_alloc() 735 alloc_rec = le16_to_cpu(bg->bg_chain); ocfs2_block_group_alloc() 737 le16_to_cpu(bg->bg_free_bits_count)); ocfs2_block_group_alloc() 739 le16_to_cpu(bg->bg_bits)); ocfs2_block_group_alloc() 741 if (le16_to_cpu(cl->cl_next_free_rec) < le16_to_cpu(cl->cl_count)) ocfs2_block_group_alloc() 744 le32_add_cpu(&fe->id1.bitmap1.i_used, le16_to_cpu(bg->bg_bits) - ocfs2_block_group_alloc() 745 le16_to_cpu(bg->bg_free_bits_count)); ocfs2_block_group_alloc() 746 le32_add_cpu(&fe->id1.bitmap1.i_total, le16_to_cpu(bg->bg_bits)); ocfs2_block_group_alloc() 747 le32_add_cpu(&fe->i_clusters, le16_to_cpu(cl->cl_cpg)); ocfs2_block_group_alloc() 1339 BUG_ON(le16_to_cpu(bg->bg_free_bits_count) < num_bits); ocfs2_block_group_set_bits() 1356 if (le16_to_cpu(bg->bg_free_bits_count) > le16_to_cpu(bg->bg_bits)) { ocfs2_block_group_set_bits() 1359 le16_to_cpu(bg->bg_bits), ocfs2_block_group_set_bits() 1360 le16_to_cpu(bg->bg_free_bits_count), ocfs2_block_group_set_bits() 1380 while (curr < le16_to_cpu(cl->cl_next_free_rec)) { ocfs2_find_victim_chain() 1387 BUG_ON(best >= le16_to_cpu(cl->cl_next_free_rec)); ocfs2_find_victim_chain() 1459 return le16_to_cpu(bg->bg_free_bits_count) > wanted; ocfs2_block_group_reasonably_empty() 1480 max_bits = le16_to_cpu(gd->bg_bits); ocfs2_cluster_group_search() 1495 le16_to_cpu(gd->bg_bits), ocfs2_cluster_group_search() 1551 le16_to_cpu(bg->bg_bits), ocfs2_block_group_search() 1613 unsigned int bpc = le16_to_cpu(cl->cl_bpc); ocfs2_bg_discontig_fix_by_rec() 1615 unsigned int bitcount = le16_to_cpu(rec->e_leaf_clusters) * bpc; ocfs2_bg_discontig_fix_by_rec() 1649 for (i = 0; i < le16_to_cpu(bg->bg_list.l_next_free_rec); i++) { ocfs2_bg_discontig_fix_result() 1701 le16_to_cpu(gd->bg_chain)); ocfs2_search_one_group() 1712 le16_to_cpu(gd->bg_chain)); ocfs2_search_one_group() 1717 *bits_left = le16_to_cpu(gd->bg_free_bits_count); ocfs2_search_one_group() 1855 *bits_left = le16_to_cpu(bg->bg_free_bits_count); ocfs2_search_chain() 1941 for (i = 0; i < le16_to_cpu(cl->cl_next_free_rec); i ++) { ocfs2_claim_suballoc_bits() 2033 else if (le16_to_cpu(di->i_suballoc_slot) == ac->ac_alloc_slot) { ocfs2_init_inode_ac_group() 2039 le16_to_cpu(di->i_suballoc_bit)); ocfs2_init_inode_ac_group() 2141 chain = le16_to_cpu(bg->bg_chain); ocfs2_claim_new_inode_at_loc() 2415 if (le16_to_cpu(bg->bg_free_bits_count) > le16_to_cpu(bg->bg_bits)) { ocfs2_block_group_clear_bits() 2418 le16_to_cpu(bg->bg_bits), ocfs2_block_group_clear_bits() 2419 le16_to_cpu(bg->bg_free_bits_count), ocfs2_block_group_clear_bits() 2471 BUG_ON((count + start_bit) > le16_to_cpu(group->bg_bits)); _ocfs2_free_suballoc_bits() 2490 le32_add_cpu(&cl->cl_recs[le16_to_cpu(group->bg_chain)].c_free, _ocfs2_free_suballoc_bits() 2521 u16 bit = le16_to_cpu(di->i_suballoc_bit); ocfs2_free_dinode() 2760 if (le16_to_cpu(inode_fe->i_suballoc_slot) != (u16)OCFS2_INVALID_SLOT && ocfs2_get_suballoc_slot_bit() 2761 (u32)le16_to_cpu(inode_fe->i_suballoc_slot) > osb->max_slots - 1) { ocfs2_get_suballoc_slot_bit() 2764 (u32)le16_to_cpu(inode_fe->i_suballoc_slot)); ocfs2_get_suballoc_slot_bit() 2770 *suballoc_slot = le16_to_cpu(inode_fe->i_suballoc_slot); ocfs2_get_suballoc_slot_bit() 2772 *suballoc_bit = le16_to_cpu(inode_fe->i_suballoc_bit); ocfs2_get_suballoc_slot_bit()
|
H A D | alloc.c | 602 depth = le16_to_cpu(path_root_el(path)->l_tree_depth); ocfs2_reinit_path() 693 BUG_ON(le16_to_cpu(root_el->l_tree_depth) >= OCFS2_MAX_PATH_DEPTH); ocfs2_new_path() 697 path->p_tree_depth = le16_to_cpu(root_el->l_tree_depth); ocfs2_new_path() 780 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { ocfs2_search_extent_list() 808 le16_to_cpu(ext->e_leaf_clusters)); ocfs2_block_extent_contig() 819 le16_to_cpu(left->e_leaf_clusters); ocfs2_extents_adjacent() 982 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); ocfs2_num_free_extents() 1092 i = le16_to_cpu(el->l_next_free_rec) - 1; ocfs2_sum_rightmost_rec() 1135 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; ocfs2_adjust_rightmost_branch() 1181 new_blocks = le16_to_cpu(el->l_tree_depth); ocfs2_add_branch() 1296 i = le16_to_cpu(el->l_next_free_rec); ocfs2_add_branch() 1374 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) ocfs2_shift_tree_depth() 1393 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) ocfs2_shift_tree_depth() 1444 while(le16_to_cpu(el->l_tree_depth) > 1) { ocfs2_find_branch_target() 1445 if (le16_to_cpu(el->l_next_free_rec) == 0) { ocfs2_find_branch_target() 1452 i = le16_to_cpu(el->l_next_free_rec) - 1; ocfs2_find_branch_target() 1474 if (le16_to_cpu(el->l_next_free_rec) < ocfs2_find_branch_target() 1475 le16_to_cpu(el->l_count)) { ocfs2_find_branch_target() 1511 int depth = le16_to_cpu(el->l_tree_depth); ocfs2_grow_tree() 1580 int next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_shift_records_right() 1581 int count = le16_to_cpu(el->l_count); ocfs2_shift_records_right() 1600 next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_rotate_leaf() 1637 le16_to_cpu(el->l_count)); ocfs2_rotate_leaf() 1640 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); ocfs2_rotate_leaf() 1647 BUG_ON(next_free >= le16_to_cpu(el->l_count)); ocfs2_rotate_leaf() 1666 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); ocfs2_rotate_leaf() 1674 int size, num_recs = le16_to_cpu(el->l_next_free_rec); ocfs2_remove_empty_extent() 1697 int next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_create_empty_extent() 1699 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); ocfs2_create_empty_extent() 1710 le16_to_cpu(el->l_count), ocfs2_create_empty_extent() 1711 le16_to_cpu(el->l_tree_depth)); ocfs2_create_empty_extent() 1784 if (le16_to_cpu(el->l_next_free_rec) == 0) { __ocfs2_find_path() 1788 le16_to_cpu(el->l_tree_depth)); __ocfs2_find_path() 1794 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { __ocfs2_find_path() 1813 le16_to_cpu(el->l_tree_depth), i); __ocfs2_find_path() 1829 if (le16_to_cpu(el->l_next_free_rec) > __ocfs2_find_path() 1830 le16_to_cpu(el->l_count)) { __ocfs2_find_path() 1835 le16_to_cpu(el->l_next_free_rec), __ocfs2_find_path() 1836 le16_to_cpu(el->l_count)); __ocfs2_find_path() 1895 if (le16_to_cpu(el->l_tree_depth) == 0) { find_leaf_ins() 1958 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); ocfs2_adjust_adjacent_records() 1991 BUG_ON(le16_to_cpu(root_el->l_tree_depth) <= ocfs2_adjust_root_records() 1992 le16_to_cpu(left_el->l_tree_depth)); ocfs2_adjust_root_records() 1994 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { ocfs2_adjust_root_records() 2003 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); ocfs2_adjust_root_records() 2056 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; ocfs2_complete_edge_insert() 2114 le16_to_cpu(left_el->l_next_free_rec)); ocfs2_rotate_subtree_right() 2165 i = le16_to_cpu(left_el->l_next_free_rec) - 1; ocfs2_rotate_subtree_right() 2218 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { ocfs2_find_cpos_for_left_leaf() 2301 next_free = le16_to_cpu(left_el->l_next_free_rec); ocfs2_rotate_requires_path_adjustment() 2311 int next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_leftmost_rec_contains() 2545 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); ocfs2_update_edge_lengths() 2546 idx = le16_to_cpu(el->l_next_free_rec) - 1; ocfs2_update_edge_lengths() 2552 idx = le16_to_cpu(el->l_next_free_rec) - 1; ocfs2_update_edge_lengths() 2583 if (le16_to_cpu(el->l_next_free_rec) > 1) { ocfs2_unlink_path() 2589 le16_to_cpu(el->l_next_free_rec)); ocfs2_unlink_path() 2626 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) ocfs2_unlink_subtree() 2630 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); ocfs2_unlink_subtree() 2686 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { ocfs2_rotate_subtree_left() 2701 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { ocfs2_rotate_subtree_left() 2835 next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_find_cpos_for_right_leaf() 2836 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { ocfs2_find_cpos_for_right_leaf() 3210 if (le16_to_cpu(el->l_next_free_rec) > 1) ocfs2_rotate_tree_left() 3213 if (le16_to_cpu(el->l_next_free_rec) == 0) { ocfs2_rotate_tree_left() 3368 unsigned int split_clusters = le16_to_cpu(split_rec->e_leaf_clusters); ocfs2_merge_rec_right() 3378 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); ocfs2_merge_rec_right() 3381 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && ocfs2_merge_rec_right() 3382 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { ocfs2_merge_rec_right() 3391 next_free = le16_to_cpu(right_el->l_next_free_rec); ocfs2_merge_rec_right() 3400 le16_to_cpu(left_rec->e_leaf_clusters) != ocfs2_merge_rec_right() 3442 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); ocfs2_merge_rec_right() 3535 unsigned int split_clusters = le16_to_cpu(split_rec->e_leaf_clusters); ocfs2_merge_rec_left() 3556 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != ocfs2_merge_rec_left() 3557 le16_to_cpu(left_el->l_count)); ocfs2_merge_rec_left() 3560 le16_to_cpu(left_el->l_next_free_rec) - 1]; ocfs2_merge_rec_left() 3562 le16_to_cpu(left_rec->e_leaf_clusters) != ocfs2_merge_rec_left() 3642 if (le16_to_cpu(right_rec->e_leaf_clusters) == 0 && ocfs2_merge_rec_left() 3643 le16_to_cpu(el->l_next_free_rec) == 1) { ocfs2_merge_rec_left() 3810 le16_to_cpu(split_rec->e_leaf_clusters)); ocfs2_subtract_from_rec() 3818 le16_to_cpu(split_rec->e_leaf_clusters)); ocfs2_subtract_from_rec() 3821 -le16_to_cpu(split_rec->e_leaf_clusters)); ocfs2_subtract_from_rec() 3828 -le16_to_cpu(split_rec->e_leaf_clusters)); ocfs2_subtract_from_rec() 3846 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); ocfs2_insert_at_leaf() 3868 le16_to_cpu(insert_rec->e_leaf_clusters)); ocfs2_insert_at_leaf() 3875 if (le16_to_cpu(el->l_next_free_rec) == 0 || ocfs2_insert_at_leaf() 3876 ((le16_to_cpu(el->l_next_free_rec) == 1) && ocfs2_insert_at_leaf() 3887 i = le16_to_cpu(el->l_next_free_rec) - 1; ocfs2_insert_at_leaf() 3890 + le16_to_cpu(rec->e_leaf_clusters); ocfs2_insert_at_leaf() 3893 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= ocfs2_insert_at_leaf() 3894 le16_to_cpu(el->l_count), ocfs2_insert_at_leaf() 3899 le16_to_cpu(el->l_tree_depth), ocfs2_insert_at_leaf() 3900 le16_to_cpu(el->l_count), ocfs2_insert_at_leaf() 3901 le16_to_cpu(el->l_next_free_rec), ocfs2_insert_at_leaf() 3903 le16_to_cpu(el->l_recs[i].e_leaf_clusters), ocfs2_insert_at_leaf() 3905 le16_to_cpu(insert_rec->e_leaf_clusters)); ocfs2_insert_at_leaf() 3943 next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_adjust_rightmost_records() 3956 le16_to_cpu(insert_rec->e_leaf_clusters)); ocfs2_adjust_rightmost_records() 3988 next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_append_rec_to_path() 4236 if (le16_to_cpu(el->l_tree_depth) == 0) { ocfs2_do_insert_extent() 4317 le16_to_cpu(insert_rec->e_leaf_clusters)); ocfs2_do_insert_extent() 4366 if (le16_to_cpu(new_el->l_next_free_rec) != ocfs2_figure_merge_contig_type() 4367 le16_to_cpu(new_el->l_count)) { ocfs2_figure_merge_contig_type() 4373 le16_to_cpu(new_el->l_next_free_rec), ocfs2_figure_merge_contig_type() 4374 le16_to_cpu(new_el->l_count)); ocfs2_figure_merge_contig_type() 4379 le16_to_cpu(new_el->l_next_free_rec) - 1]; ocfs2_figure_merge_contig_type() 4397 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) ocfs2_figure_merge_contig_type() 4399 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && ocfs2_figure_merge_contig_type() 4422 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { ocfs2_figure_merge_contig_type() 4428 le16_to_cpu(new_el->l_next_free_rec)); ocfs2_figure_merge_contig_type() 4466 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); ocfs2_figure_contig_type() 4468 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { ocfs2_figure_contig_type() 4481 unsigned int len = le16_to_cpu(rec->e_leaf_clusters) + ocfs2_figure_contig_type() 4482 le16_to_cpu(insert_rec->e_leaf_clusters); ocfs2_figure_contig_type() 4514 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); ocfs2_figure_appending_type() 4521 if (le16_to_cpu(el->l_next_free_rec) == 1) ocfs2_figure_appending_type() 4525 i = le16_to_cpu(el->l_next_free_rec) - 1; ocfs2_figure_appending_type() 4529 (le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters))) ocfs2_figure_appending_type() 4566 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); ocfs2_figure_insert_type() 4594 *free_records = le16_to_cpu(el->l_count) - ocfs2_figure_insert_type() 4595 le16_to_cpu(el->l_next_free_rec); ocfs2_figure_insert_type() 4869 u32 rec_range = rec_cpos + le16_to_cpu(rec->e_leaf_clusters); ocfs2_make_right_split_rec() 4909 depth = le16_to_cpu(rightmost_el->l_tree_depth); ocfs2_split_and_insert() 4916 if (le16_to_cpu(rightmost_el->l_next_free_rec) == ocfs2_split_and_insert() 4917 le16_to_cpu(rightmost_el->l_count)) { ocfs2_split_and_insert() 4932 le16_to_cpu(split_rec.e_leaf_clusters); ocfs2_split_and_insert() 4934 le16_to_cpu(rec.e_leaf_clusters); ocfs2_split_and_insert() 5053 ((le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters)) < ocfs2_split_extent() 5054 (le32_to_cpu(split_rec->e_cpos) + le16_to_cpu(split_rec->e_leaf_clusters)))) { ocfs2_split_extent() 5304 if (le16_to_cpu(rightmost_el->l_next_free_rec) == ocfs2_split_tree() 5305 le16_to_cpu(rightmost_el->l_count)) { ocfs2_split_tree() 5354 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && ocfs2_truncate_rec() 5389 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { ocfs2_truncate_rec() 5436 next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_truncate_rec() 5462 le16_to_cpu(rec->e_leaf_clusters), cpos, len); ocfs2_truncate_rec() 5799 mlog_bug_on_msg(le16_to_cpu(tl->tl_used) > le16_to_cpu(tl->tl_count), ocfs2_truncate_log_needs_flush() 5802 le16_to_cpu(tl->tl_used), le16_to_cpu(tl->tl_count)); ocfs2_truncate_log_needs_flush() 5803 return le16_to_cpu(tl->tl_used) == le16_to_cpu(tl->tl_count); ocfs2_truncate_log_needs_flush() 5813 if (!le16_to_cpu(tl->tl_used)) ocfs2_truncate_log_can_coalesce() 5816 tail_index = le16_to_cpu(tl->tl_used) - 1; ocfs2_truncate_log_can_coalesce() 5847 tl_count = le16_to_cpu(tl->tl_count); ocfs2_truncate_log_append() 5854 le16_to_cpu(tl->tl_count)); ocfs2_truncate_log_append() 5857 index = le16_to_cpu(tl->tl_used); ocfs2_truncate_log_append() 5916 i = le16_to_cpu(tl->tl_used) - 1; ocfs2_replay_truncate_records() 5993 num_to_flush = le16_to_cpu(tl->tl_used); __ocfs2_flush_truncate_log() 6150 if (le16_to_cpu(tl->tl_used)) { ocfs2_begin_truncate_log_recovery() 6151 trace_ocfs2_truncate_log_recovery_num(le16_to_cpu(tl->tl_used)); ocfs2_begin_truncate_log_recovery() 6207 num_recs = le16_to_cpu(tl->tl_used); ocfs2_complete_truncate_log_recovery() 6598 le16_to_cpu(eb->h_suballoc_slot), ocfs2_cache_extent_block_free() 6601 le16_to_cpu(eb->h_suballoc_bit)); ocfs2_cache_extent_block_free() 6810 unsigned int xattrsize = le16_to_cpu(di->i_xattr_inline_size); ocfs2_zero_dinode_id2_with_xattr() 6812 if (le16_to_cpu(di->i_dyn_features) & OCFS2_INLINE_XATTR_FL) ocfs2_zero_dinode_id2_with_xattr() 7094 if (le16_to_cpu(el->l_next_free_rec) == 0) { ocfs2_commit_truncate() 7103 i = le16_to_cpu(el->l_next_free_rec) - 1; ocfs2_commit_truncate() 7116 le16_to_cpu(root_el->l_tree_depth)); ocfs2_commit_truncate() 7215 !(le16_to_cpu(di->i_dyn_features) & OCFS2_INLINE_DATA_FL) || ocfs2_truncate_inline() 7220 le16_to_cpu(di->i_dyn_features), ocfs2_truncate_inline() 7293 if (le16_to_cpu(gd->bg_free_bits_count) < minbits) ocfs2_trim_group() 7321 if ((le16_to_cpu(gd->bg_free_bits_count) - count) < minbits) ocfs2_trim_group()
|
H A D | xattr.c | 919 for (i = 0 ; i < le16_to_cpu(header->xh_count); i++) { ocfs2_xattr_list_entries() 926 le16_to_cpu(entry->xe_name_offset); ocfs2_xattr_list_entries() 947 le16_to_cpu(di->i_xattr_inline_size)); ocfs2_has_inline_xattr_value_outside() 949 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) ocfs2_has_inline_xattr_value_outside() 970 le16_to_cpu(di->i_xattr_inline_size)); ocfs2_xattr_ibody_list() 997 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { ocfs2_xattr_block_list() 1068 for (i = 0; i < le16_to_cpu(xs->header->xh_count); i++) { ocfs2_xattr_find_entry() 1074 le16_to_cpu(entry->xe_name_offset)), ocfs2_xattr_find_entry() 1155 (xs->end - le16_to_cpu(di->i_xattr_inline_size)); ocfs2_xattr_ibody_get() 1168 le16_to_cpu(xs->here->xe_name_offset) + ocfs2_xattr_ibody_get() 1172 (xs->base + le16_to_cpu( ocfs2_xattr_ibody_get() 1225 name_offset = le16_to_cpu(xs->here->xe_name_offset); ocfs2_xattr_block_get() 1229 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { ocfs2_xattr_block_get() 1502 nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); ocfs2_xa_add_namevalue() 1511 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); ocfs2_xa_fill_value_buf() 1569 int i, count = le16_to_cpu(xh->xh_count); ocfs2_xa_block_get_free_start() 1573 offset = le16_to_cpu(xh->xh_entries[i].xe_name_offset); ocfs2_xa_block_get_free_start() 1584 int count = le16_to_cpu(loc->xl_header->xh_count); ocfs2_xa_block_check_space() 1615 int count = le16_to_cpu(xh->xh_count); ocfs2_xa_block_wipe_namevalue() 1617 namevalue_offset = le16_to_cpu(entry->xe_name_offset); ocfs2_xa_block_wipe_namevalue() 1629 offset = le16_to_cpu(xh->xh_entries[i].xe_name_offset); ocfs2_xa_block_wipe_namevalue() 1643 int count = le16_to_cpu(loc->xl_header->xh_count); ocfs2_xa_block_add_entry() 1726 return le16_to_cpu(bucket_xh(bucket)->xh_free_start); ocfs2_xa_bucket_get_free_start() 1747 int count = le16_to_cpu(loc->xl_header->xh_count); ocfs2_xa_bucket_check_space() 1797 int count = le16_to_cpu(xh->xh_count); ocfs2_xa_bucket_add_entry() 1849 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); ocfs2_xa_bucket_fill_value_buf() 1925 count = le16_to_cpu(xh->xh_count); ocfs2_xa_remove_entry() 1972 le16_to_cpu(loc->xl_entry->xe_name_offset)); ocfs2_xa_cleanup_value_truncate() 2036 le16_to_cpu(loc->xl_entry->xe_name_offset)); ocfs2_xa_install_value_root() 2060 le16_to_cpu(loc->xl_entry->xe_name_offset)); ocfs2_xa_reuse_entry() 2187 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); ocfs2_xa_store_value() 2263 loc->xl_size = le16_to_cpu(di->i_xattr_inline_size); ocfs2_init_dinode_xa_loc() 2277 BUG_ON(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED); ocfs2_init_xattr_block_xa_loc() 2358 for (i = 0; i < le16_to_cpu(header->xh_count); i++) { ocfs2_remove_value_outside() 2365 le16_to_cpu(entry->xe_name_offset); ocfs2_remove_value_outside() 2420 le16_to_cpu(di->i_xattr_inline_size)); ocfs2_xattr_ibody_remove() 2450 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { ocfs2_xattr_block_remove() 2492 bit = le16_to_cpu(xb->xb_suballoc_bit); ocfs2_xattr_free_block() 2500 le16_to_cpu(xb->xb_suballoc_slot)); ocfs2_xattr_free_block() 2634 free = le16_to_cpu(idata->id_count) - le64_to_cpu(di->i_size); ocfs2_xattr_has_space_inline() 2640 free = (le16_to_cpu(el->l_count) - ocfs2_xattr_has_space_inline() 2641 le16_to_cpu(el->l_next_free_rec)) * ocfs2_xattr_has_space_inline() 2681 (xs->end - le16_to_cpu(di->i_xattr_inline_size)); ocfs2_xattr_ibody_find() 2819 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { ocfs2_xattr_block_find() 2962 if (!(le16_to_cpu(xblk->xb_flags) & OCFS2_XATTR_INDEXED)) { ocfs2_xattr_block_set() 2978 if (le16_to_cpu(xblk->xb_flags) & OCFS2_XATTR_INDEXED) ocfs2_xattr_block_set() 2999 for (i = 0; i < le16_to_cpu(xs->header->xh_count); i++) { ocfs2_xattr_can_be_in_inode() 3000 size_t offs = le16_to_cpu(last->xe_name_offset); ocfs2_xattr_can_be_in_inode() 3062 name_offset = le16_to_cpu(xe->xe_name_offset); ocfs2_calc_xattr_set_need() 3070 name_offset = le16_to_cpu(xe->xe_name_offset); ocfs2_calc_xattr_set_need() 3075 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { ocfs2_calc_xattr_set_need() 3185 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { ocfs2_calc_xattr_set_need() 3699 for (i = le16_to_cpu(el->l_next_free_rec) - 1; i >= 0; i--) { ocfs2_xattr_get_rec() 3717 *num_clusters = le16_to_cpu(rec->e_leaf_clusters); ocfs2_xattr_get_rec() 3747 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { ocfs2_find_xe_in_bucket() 3826 high_bucket = le16_to_cpu(xh->xh_num_buckets) - 1; ocfs2_xattr_bucket_find() 3851 xe = &xh->xh_entries[le16_to_cpu(xh->xh_count) - 1]; ocfs2_xattr_bucket_find() 3922 if (le16_to_cpu(el->l_next_free_rec) == 0) ocfs2_xattr_index_block_find() 3984 num_buckets = le16_to_cpu(bucket_xh(bucket)->xh_num_buckets); ocfs2_iterate_xattr_buckets() 4018 if (index < 0 || index >= le16_to_cpu(xh->xh_count)) ocfs2_xattr_bucket_get_name_value() 4021 name_offset = le16_to_cpu(xh->xh_entries[index].xe_name_offset); ocfs2_xattr_bucket_get_name_value() 4038 for (i = 0 ; i < le16_to_cpu(bucket_xh(bucket)->xh_count); i++) { ocfs2_list_xattr_bucket() 4182 u16 count = le16_to_cpu(xb_xh->xh_count); ocfs2_cp_xattr_block_to_bucket() 4200 offset = le16_to_cpu(xe->xe_name_offset) + off_change; ocfs2_cp_xattr_block_to_bucket() 4271 u16 xb_flags = le16_to_cpu(xb->xb_flags); ocfs2_xattr_create_index_block() 4355 u32 l_name_offset = le16_to_cpu(l->xe_name_offset); cmp_xe_offset() 4356 u32 r_name_offset = le16_to_cpu(r->xe_name_offset); cmp_xe_offset() 4409 xh_free_start = le16_to_cpu(xh->xh_free_start); ocfs2_defrag_xattr_bucket() 4412 (unsigned long long)blkno, le16_to_cpu(xh->xh_count), ocfs2_defrag_xattr_bucket() 4413 xh_free_start, le16_to_cpu(xh->xh_name_value_len)); ocfs2_defrag_xattr_bucket() 4420 sort(entries, le16_to_cpu(xh->xh_count), ocfs2_defrag_xattr_bucket() 4427 for (i = 0; i < le16_to_cpu(xh->xh_count); i++, xe++) { ocfs2_defrag_xattr_bucket() 4428 offset = le16_to_cpu(xe->xe_name_offset); ocfs2_defrag_xattr_bucket() 4462 sort(entries, le16_to_cpu(xh->xh_count), ocfs2_defrag_xattr_bucket() 4510 BUG_ON(le16_to_cpu(bucket_xh(first)->xh_num_buckets) < num_buckets); ocfs2_mv_xattr_bucket_cross_cluster() 4572 int count = le16_to_cpu(xh->xh_count); ocfs2_xattr_find_divide_pos() 4674 count = le16_to_cpu(xh->xh_count); ocfs2_divide_xattr_bucket() 4711 if (le16_to_cpu(xe->xe_name_offset) < name_offset) ocfs2_divide_xattr_bucket() 4712 name_offset = le16_to_cpu(xe->xe_name_offset); ocfs2_divide_xattr_bucket() 4738 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { ocfs2_divide_xattr_bucket() 4740 if (le16_to_cpu(xe->xe_name_offset) < ocfs2_divide_xattr_bucket() 4741 le16_to_cpu(xh->xh_free_start)) ocfs2_divide_xattr_bucket() 5189 u16 new_bucket = le16_to_cpu(bucket_xh(first)->xh_num_buckets); ocfs2_extend_xattr_bucket() 5298 if (num_buckets == le16_to_cpu(bucket_xh(first)->xh_num_buckets)) { ocfs2_add_new_xattr_bucket() 5359 offset = le16_to_cpu(xe->xe_name_offset) + ocfs2_xattr_bucket_value_truncate() 5514 if (xh->xh_entries[le16_to_cpu(xh->xh_count) - 1].xe_name_hash == ocfs2_check_xattr_bucket_collision() 5657 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { ocfs2_delete_xattr_in_bucket() 5770 name_offset = le16_to_cpu(xe->xe_name_offset); ocfs2_prepare_refcount_xattr() 5779 name_offset = le16_to_cpu(xe->xe_name_offset); ocfs2_prepare_refcount_xattr() 5783 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { ocfs2_prepare_refcount_xattr() 5936 for (i = 0; i < le16_to_cpu(header->xh_count); i++) { ocfs2_xattr_attach_refcount_normal() 5943 le16_to_cpu(xe->xe_name_offset) + ocfs2_xattr_attach_refcount_normal() 5970 le16_to_cpu(di->i_xattr_inline_size)); ocfs2_xattr_inline_attach_refcount() 6049 le16_to_cpu(xh->xh_count)); ocfs2_xattr_bucket_value_refcount() 6050 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { ocfs2_xattr_bucket_value_refcount() 6099 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { ocfs2_xattr_block_attach_refcount() 6212 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { ocfs2_value_metas_in_xattr_header() 6223 *metas += le16_to_cpu(xv->xr_list.l_tree_depth) * ocfs2_value_metas_in_xattr_header() 6224 le16_to_cpu(xv->xr_list.l_next_free_rec); ocfs2_value_metas_in_xattr_header() 6234 *num_recs += le16_to_cpu(xv->xr_list.l_next_free_rec); ocfs2_value_metas_in_xattr_header() 6255 le16_to_cpu(xe->xe_name_offset) + ocfs2_get_xattr_value_root() 6300 *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * ocfs2_reflink_lock_xattr_allocators() 6301 le16_to_cpu(rb->rf_list.l_next_free_rec) + 1; ocfs2_reflink_lock_xattr_allocators() 6345 le16_to_cpu(xh->xh_count)); ocfs2_reflink_xattr_header() 6347 last = &new_xh->xh_entries[le16_to_cpu(new_xh->xh_count)]; ocfs2_reflink_xattr_header() 6348 for (i = 0, j = 0; i < le16_to_cpu(xh->xh_count); i++, j++) { ocfs2_reflink_xattr_header() 6456 int inline_size = le16_to_cpu(di->i_xattr_inline_size); ocfs2_reflink_xattr_inline() 6775 *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * ocfs2_lock_reflink_xattr_rec_allocators() 6776 le16_to_cpu(rb->rf_list.l_next_free_rec) + 1; ocfs2_lock_reflink_xattr_rec_allocators() 6930 num_buckets = le16_to_cpu(bucket_xh(args->old_bucket)->xh_num_buckets); ocfs2_reflink_xattr_buckets() 7085 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) ocfs2_reflink_xattr_in_block()
|
H A D | extent_map.c | 238 ins.ei_clusters = le16_to_cpu(rec->e_leaf_clusters); ocfs2_extent_map_insert_rec() 315 next_free = le16_to_cpu(el->l_next_free_rec); ocfs2_last_eb_is_empty() 336 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { ocfs2_search_for_hole_index() 369 if (i == le16_to_cpu(el->l_next_free_rec) && eb_bh) { ocfs2_figure_hole_clusters() 393 if (i == le16_to_cpu(el->l_next_free_rec)) { ocfs2_figure_hole_clusters() 429 tree_height = le16_to_cpu(el->l_tree_depth); ocfs2_get_clusters_nocache() 505 if (i == (le16_to_cpu(el->l_next_free_rec) - 1)) { ocfs2_get_clusters_nocache() 541 *num_clusters = le16_to_cpu(rec->e_leaf_clusters) - coff; ocfs2_relative_extent_offsets() 730 id_count = le16_to_cpu(di->id2.i_data.id_count); ocfs2_fiemap_inline() 809 len_bytes = (u64)le16_to_cpu(rec.e_leaf_clusters) << osb->s_clustersize_bits; ocfs2_fiemap() 818 cpos = le32_to_cpu(rec.e_cpos)+ le16_to_cpu(rec.e_leaf_clusters); ocfs2_fiemap() 886 clen = le16_to_cpu(rec.e_leaf_clusters) - ocfs2_seek_data_hole_offset()
|
H A D | dir.c | 322 const int rlen = le16_to_cpu(de->rec_len); ocfs2_check_dir_entry() 393 de_len = le16_to_cpu(de->rec_len); ocfs2_search_dirblock() 815 for (i = le16_to_cpu(el->l_next_free_rec) - 1; i >= 0; i--) { ocfs2_dx_dir_lookup_rec() 838 *ret_clen = le16_to_cpu(rec->e_leaf_clusters); ocfs2_dx_dir_lookup_rec() 952 le16_to_cpu(dx_leaf->dl_list.de_num_used), ocfs2_dx_dir_search() 953 le16_to_cpu(dx_leaf->dl_list.de_count)); ocfs2_dx_dir_search() 962 for (i = 0; i < le16_to_cpu(entry_list->de_num_used); i++) { ocfs2_dx_dir_search() 1175 le16_to_cpu(de->rec_len)); __ocfs2_delete_entry() 1181 i += le16_to_cpu(de->rec_len); __ocfs2_delete_entry() 1183 de = (struct ocfs2_dir_entry *)((char *)de + le16_to_cpu(de->rec_len)); __ocfs2_delete_entry() 1194 hole = le16_to_cpu(de->rec_len); ocfs2_figure_dirent_hole() 1196 hole = le16_to_cpu(de->rec_len) - ocfs2_figure_dirent_hole() 1221 de_buf += le16_to_cpu(de->rec_len); ocfs2_find_max_rec_len() 1233 int num_used = le16_to_cpu(entry_list->de_num_used); ocfs2_dx_list_remove_entry() 1281 BUG_ON(le16_to_cpu(entry_list->de_count) <= 0); ocfs2_delete_entry_dx() 1282 BUG_ON(le16_to_cpu(entry_list->de_num_used) <= 0); ocfs2_delete_entry_dx() 1287 if (index >= le16_to_cpu(entry_list->de_num_used)) { ocfs2_delete_entry_dx() 1430 le16_to_cpu(de->rec_len) >= new_rec_len) ocfs2_dirent_would_fit() 1438 if (le16_to_cpu(de->rec_len) >= (de_really_used + new_rec_len)) ocfs2_dirent_would_fit() 1449 i = le16_to_cpu(dx_leaf->dl_list.de_num_used); ocfs2_dx_dir_leaf_insert_tail() 1462 i = le16_to_cpu(entry_list->de_num_used); ocfs2_dx_entry_list_insert() 1710 offset += le16_to_cpu(de->rec_len); __ocfs2_add_entry() 1715 cpu_to_le16(le16_to_cpu(de->rec_len) - __ocfs2_add_entry() 1738 offset += le16_to_cpu(de->rec_len); __ocfs2_add_entry() 1739 de = (struct ocfs2_dir_entry *) ((char *) de + le16_to_cpu(de->rec_len)); __ocfs2_add_entry() 1788 if (le16_to_cpu(de->rec_len) < ocfs2_dir_foreach_blk_id() 1791 i += le16_to_cpu(de->rec_len); ocfs2_dir_foreach_blk_id() 1803 offset += le16_to_cpu(de->rec_len); ocfs2_dir_foreach_blk_id() 1814 ctx->pos += le16_to_cpu(de->rec_len); ocfs2_dir_foreach_blk_id() 1881 if (le16_to_cpu(de->rec_len) < ocfs2_dir_foreach_blk_el() 1884 i += le16_to_cpu(de->rec_len); ocfs2_dir_foreach_blk_el() 1916 offset += le16_to_cpu(de->rec_len); ocfs2_dir_foreach_blk_el() 1917 ctx->pos += le16_to_cpu(de->rec_len); ocfs2_dir_foreach_blk_el() 2193 de = (struct ocfs2_dir_entry *) ((char *)de + le16_to_cpu(de->rec_len)); ocfs2_fill_initial_dirents() 2216 unsigned int size = le16_to_cpu(data->id_count); ocfs2_fill_new_dir_id() 2275 int size = le16_to_cpu(de->rec_len); ocfs2_fill_new_dir_el() 2363 if (le16_to_cpu(trailer->db_free_rec_len)) ocfs2_dx_dir_attach_index() 2440 le16_to_cpu(dx_leaf->dl_list.de_count)); ocfs2_dx_dir_format_cluster() 2651 de_buf += le16_to_cpu(de->rec_len); ocfs2_dx_dir_index_block() 2688 le16_to_cpu(dx_root->dr_entries.de_num_used)); ocfs2_dx_dir_index_root_block() 2695 de_buf += le16_to_cpu(de->rec_len); ocfs2_dx_dir_index_root_block() 2721 de_buf += le16_to_cpu(de->rec_len); ocfs2_new_dx_should_be_inline() 2767 de_buf += le16_to_cpu(de->rec_len); ocfs2_expand_last_dirent() 3319 ocfs2_init_dir_trailer(dir, new_bh, le16_to_cpu(de->rec_len)); ocfs2_extend_dir() 3415 de_buf += le16_to_cpu(de->rec_len); ocfs2_find_dir_space_id() 3416 offset += le16_to_cpu(de->rec_len); ocfs2_find_dir_space_id() 3425 new_rec_len = le16_to_cpu(last_de->rec_len) + free_space; ocfs2_find_dir_space_id() 3496 offset += le16_to_cpu(de->rec_len); ocfs2_find_dir_space_el() 3497 de = (struct ocfs2_dir_entry *)((char *) de + le16_to_cpu(de->rec_len)); ocfs2_find_dir_space_el() 3545 int i, num = le16_to_cpu(dl_list->de_num_used); ocfs2_dx_leaf_same_major() 3571 int i, num_used = le16_to_cpu(dl_list->de_num_used); ocfs2_dx_dir_find_leaf_split() 3676 num_used = le16_to_cpu(orig_list->de_num_used); ocfs2_dx_dir_transfer_leaf() 3746 num_used = le16_to_cpu(dx_leaf->dl_list.de_num_used); ocfs2_dx_dir_rebalance() 3747 if (num_used < le16_to_cpu(dx_leaf->dl_list.de_count)) { ocfs2_dx_dir_rebalance() 3939 if (le16_to_cpu(dx_leaf->dl_list.de_num_used) >= ocfs2_find_dir_space_dx() 3940 le16_to_cpu(dx_leaf->dl_list.de_count)) { ocfs2_find_dir_space_dx() 4008 if (rec_len <= le16_to_cpu(db->db_free_rec_len)) { ocfs2_search_dx_free_list() 4096 for (i = 0; i < le16_to_cpu(entry_list->de_num_used); i++) { ocfs2_expand_inline_dx_root() 4153 if (le16_to_cpu(entry_list->de_num_used) >= ocfs2_inline_dx_has_space() 4154 le16_to_cpu(entry_list->de_count)) ocfs2_inline_dx_has_space() 4358 le16_to_cpu(dx_root->dr_suballoc_slot)); ocfs2_dx_dir_remove_index() 4396 bit = le16_to_cpu(dx_root->dr_suballoc_bit); ocfs2_dx_dir_remove_index()
|
H A D | refcounttree.c | 796 bit = le16_to_cpu(rb->rf_suballoc_bit); ocfs2_remove_refcount_tree() 804 le16_to_cpu(rb->rf_suballoc_slot)); ocfs2_remove_refcount_tree() 893 for (; i < le16_to_cpu(rb->rf_records.rl_used); i++) { ocfs2_find_refcount_rec_in_rl() 912 if (i < le16_to_cpu(rb->rf_records.rl_used) && ocfs2_find_refcount_rec_in_rl() 978 if (index < le16_to_cpu(el->l_next_free_rec) - 1) { ocfs2_get_refcount_cpos_end() 1042 for (i = 0; i < le16_to_cpu(tmp_el->l_next_free_rec); i++) { ocfs2_get_refcount_cpos_end() 1049 BUG_ON(i == le16_to_cpu(tmp_el->l_next_free_rec)); ocfs2_get_refcount_cpos_end() 1112 for (i = le16_to_cpu(el->l_next_free_rec) - 1; i >= 0; i--) { ocfs2_get_refcount_rec() 1175 if (index < le16_to_cpu(rb->rf_records.rl_used) - 1) ocfs2_refcount_rec_contig() 1203 if (index < le16_to_cpu(rb->rf_records.rl_used) - 2) ocfs2_rotate_refcount_rec_left() 1207 (le16_to_cpu(rb->rf_records.rl_used) - index - 2)); ocfs2_rotate_refcount_rec_left() 1209 memset(&rb->rf_records.rl_recs[le16_to_cpu(rb->rf_records.rl_used) - 1], ocfs2_rotate_refcount_rec_left() 1265 if (index != le16_to_cpu(rl->rl_used) - 1) { ocfs2_change_refcount_rec() 1267 (le16_to_cpu(rl->rl_used) - index - 1) * ocfs2_change_refcount_rec() 1269 memset(&rl->rl_recs[le16_to_cpu(rl->rl_used) - 1], ocfs2_change_refcount_rec() 1358 le16_to_cpu(new_rb->rf_records.rl_used)); ocfs2_expand_inline_ref_root() 1422 int num_used = le16_to_cpu(rl->rl_used); ocfs2_find_refcount_split_pos() 1469 le16_to_cpu(rl->rl_count), le16_to_cpu(rl->rl_used)); ocfs2_divide_leaf_refcount_block() 1483 sort(&rl->rl_recs, le16_to_cpu(rl->rl_used), ocfs2_divide_leaf_refcount_block() 1496 num_moved = le16_to_cpu(rl->rl_used) - split_index; ocfs2_divide_leaf_refcount_block() 1508 sort(&rl->rl_recs, le16_to_cpu(rl->rl_used), ocfs2_divide_leaf_refcount_block() 1512 sort(&new_rl->rl_recs, le16_to_cpu(new_rl->rl_used), ocfs2_divide_leaf_refcount_block() 1723 for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) ocfs2_adjust_refcount_rec() 1727 BUG_ON(i == le16_to_cpu(el->l_next_free_rec)); ocfs2_adjust_refcount_rec() 1789 if (index < le16_to_cpu(rf_list->rl_used)) ocfs2_insert_refcount_rec() 1792 (le16_to_cpu(rf_list->rl_used) - index) * ocfs2_insert_refcount_rec() 1883 if (le16_to_cpu(rf_list->rl_used) + recs_need > ocfs2_split_refcount_rec() 1884 le16_to_cpu(rf_list->rl_count)) { ocfs2_split_refcount_rec() 1925 if (index != le16_to_cpu(rf_list->rl_used) - 1) ocfs2_split_refcount_rec() 1928 (le16_to_cpu(rf_list->rl_used) - index - 1) * ocfs2_split_refcount_rec() 2115 le16_to_cpu(rb->rf_suballoc_slot), ocfs2_remove_refcount_extent() 2118 le16_to_cpu(rb->rf_suballoc_bit)); ocfs2_remove_refcount_extent() 2410 if (le16_to_cpu(rb->rf_records.rl_used) + ocfs2_calc_refcount_meta_credits() 2412 le16_to_cpu(rb->rf_records.rl_count)) ocfs2_calc_refcount_meta_credits() 2473 if (le16_to_cpu(rb->rf_records.rl_used) + recs_add > ocfs2_calc_refcount_meta_credits() 2474 le16_to_cpu(rb->rf_records.rl_count)) ocfs2_calc_refcount_meta_credits() 2646 int tree_height = le16_to_cpu(el->l_tree_depth), i; ocfs2_refcount_cal_cow_clusters() 2676 for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { ocfs2_refcount_cal_cow_clusters() 2686 le16_to_cpu(rec->e_leaf_clusters) <= cpos) ocfs2_refcount_cal_cow_clusters() 2707 leaf_clusters = le16_to_cpu(rec->e_leaf_clusters); ocfs2_refcount_cal_cow_clusters() 2811 if (i + 1 == le16_to_cpu(el->l_next_free_rec) && ocfs2_refcount_cal_cow_clusters() 3583 if (le16_to_cpu(rb->rf_records.rl_used) + clusters * 2 > ocfs2_refcounted_xattr_delete_need() 3584 le16_to_cpu(rb->rf_records.rl_count)) ocfs2_refcounted_xattr_delete_need() 3977 le16_to_cpu(s_di->id2.i_data.id_count)); ocfs2_duplicate_inline_data()
|
H A D | move_extents.c | 411 for (i = 0; i < le16_to_cpu(cl->cl_next_free_rec); i++) { ocfs2_find_victim_alloc_group() 439 le16_to_cpu(bg->bg_bits))) { ocfs2_find_victim_alloc_group() 446 blkno, le16_to_cpu(bg->bg_bits), ocfs2_find_victim_alloc_group() 506 if ((le16_to_cpu(bg->bg_bits) - goal_bit) * osb->s_clustersize < ocfs2_validate_and_adjust_move_goal() 533 for (i = base_bit; i < le16_to_cpu(gd->bg_bits); i++) { ocfs2_probe_alloc_group() 684 le16_to_cpu(gd->bg_chain)); ocfs2_move_extent() 694 le16_to_cpu(gd->bg_chain)); ocfs2_move_extent()
|
/linux-4.4.14/drivers/iio/pressure/ |
H A D | bmp280.c | 163 * The double casts are necessary because le16_to_cpu returns an bmp280_compensate_temp() 170 var1 = (((adc_temp >> 3) - ((s32)le16_to_cpu(buf[T1]) << 1)) * bmp280_compensate_temp() 171 ((s32)(s16)le16_to_cpu(buf[T2]))) >> 11; bmp280_compensate_temp() 172 var2 = (((((adc_temp >> 4) - ((s32)le16_to_cpu(buf[T1]))) * bmp280_compensate_temp() 173 ((adc_temp >> 4) - ((s32)le16_to_cpu(buf[T1])))) >> 12) * bmp280_compensate_temp() 174 ((s32)(s16)le16_to_cpu(buf[T3]))) >> 14; bmp280_compensate_temp() 203 var2 = var1 * var1 * (s64)(s16)le16_to_cpu(buf[P6]); bmp280_compensate_press() 204 var2 += (var1 * (s64)(s16)le16_to_cpu(buf[P5])) << 17; bmp280_compensate_press() 205 var2 += ((s64)(s16)le16_to_cpu(buf[P4])) << 35; bmp280_compensate_press() 206 var1 = ((var1 * var1 * (s64)(s16)le16_to_cpu(buf[P3])) >> 8) + bmp280_compensate_press() 207 ((var1 * (s64)(s16)le16_to_cpu(buf[P2])) << 12); bmp280_compensate_press() 208 var1 = ((((s64)1) << 47) + var1) * ((s64)le16_to_cpu(buf[P1])) >> 33; bmp280_compensate_press() 215 var1 = (((s64)(s16)le16_to_cpu(buf[P9])) * (p >> 13) * (p >> 13)) >> 25; bmp280_compensate_press() 216 var2 = (((s64)(s16)le16_to_cpu(buf[P8])) * p) >> 19; bmp280_compensate_press() 217 p = ((p + var1 + var2) >> 8) + (((s64)(s16)le16_to_cpu(buf[P7])) << 4); bmp280_compensate_press()
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_warpdrive.c | 66 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _warpdrive_disable_ddio() 70 handle = le16_to_cpu(vol_pg1.DevHandle); _warpdrive_disable_ddio() 97 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & mpt3sas_get_num_volumes() 102 handle = le16_to_cpu(vol_pg1.DevHandle); mpt3sas_get_num_volumes() 195 le16_to_cpu(pd_pg0.DevHandle), mpt3sas_init_warpdrive_properties() 200 raid_device->pd_handle[count] = le16_to_cpu(pd_pg0.DevHandle); mpt3sas_init_warpdrive_properties() 213 le16_to_cpu(vol_pg0->BlockSize)) / 1024, mpt3sas_init_warpdrive_properties() 214 le16_to_cpu(vol_pg0->BlockSize)); mpt3sas_init_warpdrive_properties() 225 le16_to_cpu(vol_pg0->BlockSize)) / 1024); mpt3sas_init_warpdrive_properties() 229 block_sz = le16_to_cpu(vol_pg0->BlockSize); mpt3sas_init_warpdrive_properties() 235 le16_to_cpu(vol_pg0->BlockSize)); mpt3sas_init_warpdrive_properties() 249 raid_device->block_sz = le16_to_cpu(vol_pg0->BlockSize); mpt3sas_init_warpdrive_properties()
|
H A D | mpt3sas_scsih.c | 344 EnclosureLogicalID) && slot_number == le16_to_cpu(boot_device-> _scsih_srch_boot_encl_slot() 422 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & MPI2_IOCSTATUS_MASK; _scsih_get_sas_address() 1498 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_display_sata_capabilities() 1506 flags = le16_to_cpu(sas_device_pg0.Flags); _scsih_display_sata_capabilities() 1750 le16_to_cpu(pd_pg0.DevHandle)))) { _scsih_get_volume_capabilities() 2281 ioc->name, le16_to_cpu(mpi_reply->IOCStatus), mpt3sas_scsih_issue_tm() 3038 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); _scsih_block_io_to_children_attached_directly() 3212 handle = le16_to_cpu(mpi_request_tm->DevHandle); _scsih_tm_tr_complete() 3213 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { _scsih_tm_tr_complete() 3217 le16_to_cpu(mpi_reply->DevHandle), smid)); _scsih_tm_tr_complete() 3225 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), _scsih_tm_tr_complete() 3277 ioc->name, le16_to_cpu(mpi_reply->DevHandle), smid, _scsih_sas_control_complete() 3278 le16_to_cpu(mpi_reply->IOCStatus), _scsih_sas_control_complete() 3372 handle = le16_to_cpu(mpi_request_tm->DevHandle); _scsih_tm_volume_tr_complete() 3373 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { _scsih_tm_volume_tr_complete() 3377 le16_to_cpu(mpi_reply->DevHandle), smid)); _scsih_tm_volume_tr_complete() 3384 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), _scsih_tm_volume_tr_complete() 3457 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); _scsih_check_topo_delete_events() 3466 expander_handle = le16_to_cpu(event_data->ExpanderDevHandle); _scsih_check_topo_delete_events() 3503 if (le16_to_cpu(local_event_data->ExpanderDevHandle) == _scsih_check_topo_delete_events() 3603 volume_handle = le16_to_cpu(element->VolDevHandle); _scsih_check_ir_config_unhide_events() 3616 volume_handle = le16_to_cpu(element->VolDevHandle); _scsih_check_ir_config_unhide_events() 3631 handle = le16_to_cpu(element->PhysDiskDevHandle); _scsih_check_ir_config_unhide_events() 3632 volume_handle = le16_to_cpu(element->VolDevHandle); _scsih_check_ir_config_unhide_events() 3675 le16_to_cpu(event_data->VolDevHandle)); _scsih_check_volume_delete_events() 3693 ((le16_to_cpu(event_data->Status) & 0x1) == 1) ? "0 " : " ", _scsih_temp_threshold_events() 3694 ((le16_to_cpu(event_data->Status) & 0x2) == 2) ? "1 " : " ", _scsih_temp_threshold_events() 3695 ((le16_to_cpu(event_data->Status) & 0x4) == 4) ? "2 " : " ", _scsih_temp_threshold_events() 3696 ((le16_to_cpu(event_data->Status) & 0x8) == 8) ? "3 " : " ", _scsih_temp_threshold_events() 3962 le16_to_cpu(mpi_request->DevHandle)); scsih_qcmd() 4012 u16 ioc_status = le16_to_cpu(mpi_reply->IOCStatus) & _scsih_scsi_ioc_info() 4177 ioc->name, le16_to_cpu(mpi_reply->DevHandle), _scsih_scsi_ioc_info() 4185 ioc->name, le16_to_cpu(mpi_reply->TaskTag), _scsih_scsi_ioc_info() 4245 ioc->name, le16_to_cpu(mpi_reply.IOCStatus), _scsih_turn_on_pfa_led() 4286 ioc->name, le16_to_cpu(mpi_reply.IOCStatus), _scsih_turn_off_pfa_led() 4441 ioc_status = le16_to_cpu(mpi_reply->IOCStatus); _scsih_io_done() 4504 le16_to_cpu(mpi_reply->DevHandle)); _scsih_io_done() 4667 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & MPI2_IOCSTATUS_MASK; _scsih_sas_host_refresh() 4673 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> _scsih_sas_host_refresh() 4676 attached_handle = le16_to_cpu(sas_iounit_pg0->PhyData[i]. _scsih_sas_host_refresh() 4731 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_sas_host_add() 4754 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_sas_host_add() 4788 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_sas_host_add() 4797 ioc->sas_hba.handle = le16_to_cpu(sas_iounit_pg0-> _scsih_sas_host_add() 4811 le16_to_cpu(sas_device_pg0.EnclosureHandle); _scsih_sas_host_add() 4871 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_expander_add() 4880 parent_handle = le16_to_cpu(expander_pg0.ParentDevHandle); _scsih_expander_add() 5148 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & MPI2_IOCSTATUS_MASK; _scsih_check_device() 5182 le16_to_cpu(sas_device_pg0.EnclosureLevel); _scsih_check_device() 5192 if (!(le16_to_cpu(sas_device_pg0.Flags) & _scsih_check_device() 5248 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_add_device() 5263 if (!(le16_to_cpu(sas_device_pg0.Flags) & _scsih_add_device() 5293 le16_to_cpu(sas_device_pg0.ParentDevHandle), _scsih_add_device() 5298 le16_to_cpu(sas_device_pg0.EnclosureHandle); _scsih_add_device() 5301 le16_to_cpu(sas_device_pg0.Slot); _scsih_add_device() 5305 sas_device->fast_path = (le16_to_cpu(sas_device_pg0.Flags) & _scsih_add_device() 5310 le16_to_cpu(sas_device_pg0.EnclosureLevel); _scsih_add_device() 5458 le16_to_cpu(event_data->ExpanderDevHandle), _scsih_sas_topology_change_event_debug() 5459 le16_to_cpu(event_data->EnclosureHandle), _scsih_sas_topology_change_event_debug() 5462 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); _scsih_sas_topology_change_event_debug() 5537 parent_handle = le16_to_cpu(event_data->ExpanderDevHandle); _scsih_sas_topology_change_event() 5577 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); _scsih_sas_topology_change_event() 5686 ioc->name, reason_str, le16_to_cpu(event_data->DevHandle), _scsih_sas_device_status_change_event_debug() 5688 le16_to_cpu(event_data->TaskTag)); _scsih_sas_device_status_change_event_debug() 5787 le16_to_cpu(event_data->EnclosureHandle), _scsih_sas_enclosure_dev_status_change_event_debug() 5789 le16_to_cpu(event_data->StartSlot)); _scsih_sas_enclosure_dev_status_change_event_debug() 5899 ioc_status = le16_to_cpu(mpi_reply->IOCStatus) _scsih_sas_broadcast_primitive_event() 6077 ioc_status = le16_to_cpu(mpi_reply->IOCStatus); _scsih_ir_fastpath() 6136 u16 handle = le16_to_cpu(element->VolDevHandle); _scsih_sas_volume_add() 6230 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); _scsih_sas_pd_expose() 6272 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); _scsih_sas_pd_hide() 6319 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); _scsih_sas_pd_delete() 6337 u16 handle = le16_to_cpu(element->PhysDiskDevHandle); _scsih_sas_pd_add() 6360 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_sas_pd_add() 6368 parent_handle = le16_to_cpu(sas_device_pg0.ParentDevHandle); _scsih_sas_pd_add() 6433 element_type = le16_to_cpu(element->ElementFlags) & _scsih_sas_ir_config_change_event_debug() 6451 reason_str, le16_to_cpu(element->VolDevHandle), _scsih_sas_ir_config_change_event_debug() 6452 le16_to_cpu(element->PhysDiskDevHandle), _scsih_sas_ir_config_change_event_debug() 6489 le16_to_cpu(element->PhysDiskDevHandle), _scsih_sas_ir_config_change_event() 6507 le16_to_cpu(element->VolDevHandle)); _scsih_sas_ir_config_change_event() 6556 handle = le16_to_cpu(event_data->VolDevHandle); _scsih_sas_ir_volume_event() 6641 handle = le16_to_cpu(event_data->PhysDiskDevHandle); _scsih_sas_ir_physical_disk_event() 6674 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_sas_ir_physical_disk_event() 6682 parent_handle = le16_to_cpu(sas_device_pg0.ParentDevHandle); _scsih_sas_ir_physical_disk_event() 6737 le16_to_cpu(event_data->VolDevHandle), _scsih_sas_ir_operation_status_event_debug() 6769 handle = le16_to_cpu(event_data->VolDevHandle); _scsih_sas_ir_operation_status_event() 6847 le16_to_cpu(sas_device_pg0->EnclosureLevel); _scsih_mark_responding_sas_device() 6897 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_search_responding_sas_devices() 6902 le16_to_cpu(sas_device_pg0.DevHandle); _scsih_search_responding_sas_devices() 6908 sas_device_pg0.Slot = le16_to_cpu(sas_device_pg0.Slot); _scsih_search_responding_sas_devices() 7008 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_search_responding_raid_devices() 7012 handle = le16_to_cpu(volume_pg1.DevHandle); _scsih_search_responding_raid_devices() 7033 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_search_responding_raid_devices() 7038 handle = le16_to_cpu(pd_pg0.DevHandle); _scsih_search_responding_raid_devices() 7113 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_search_responding_expanders() 7118 handle = le16_to_cpu(expander_pg0.DevHandle); _scsih_search_responding_expanders() 7232 le16_to_cpu(expander_pg1.AttachedDevHandle), i, _scsih_refresh_expander_links() 7273 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_scan_for_devices_after_reset() 7282 handle = le16_to_cpu(expander_pg0.DevHandle); _scsih_scan_for_devices_after_reset() 7316 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_scan_for_devices_after_reset() 7326 handle = le16_to_cpu(pd_pg0.DevHandle); _scsih_scan_for_devices_after_reset() 7336 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_scan_for_devices_after_reset() 7345 parent_handle = le16_to_cpu(sas_device_pg0.ParentDevHandle); _scsih_scan_for_devices_after_reset() 7381 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_scan_for_devices_after_reset() 7390 handle = le16_to_cpu(volume_pg1.DevHandle); _scsih_scan_for_devices_after_reset() 7401 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_scan_for_devices_after_reset() 7439 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & _scsih_scan_for_devices_after_reset() 7448 handle = le16_to_cpu(sas_device_pg0.DevHandle); _scsih_scan_for_devices_after_reset() 7458 parent_handle = le16_to_cpu(sas_device_pg0.ParentDevHandle); _scsih_scan_for_devices_after_reset() 7676 event = le16_to_cpu(mpi_reply->Event); mpt3sas_scsih_event_callback() 7728 if (le16_to_cpu(log_entry->LogEntryQualifier) mpt3sas_scsih_event_callback() 7780 sz = le16_to_cpu(mpi_reply->EventDataLength) * 4; mpt3sas_scsih_event_callback() 7910 ioc->name, le16_to_cpu(mpi_reply->IOCStatus), _scsih_ir_shutdown() 8218 le16_to_cpu(ioc->ioc_pg8.IRVolumeMappingFlags) & _scsih_probe_devices()
|
/linux-4.4.14/fs/befs/ |
H A D | endian.h | 54 return le16_to_cpu((__force __le16)n); fs16_to_cpu() 77 run.start = le16_to_cpu((__force __le16)n.start); fsrun_to_cpu() 78 run.len = le16_to_cpu((__force __le16)n.len); fsrun_to_cpu()
|
/linux-4.4.14/net/mac80211/ |
H A D | vht.c | 77 le16_to_cpu(sdata->u.mgd.vht_capa_mask.supp_mcs.rx_mcs_map); ieee80211_apply_vhtcap_overrides() 78 rxmcs_n = le16_to_cpu(sdata->u.mgd.vht_capa.supp_mcs.rx_mcs_map); ieee80211_apply_vhtcap_overrides() 80 rxmcs_cap = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); ieee80211_apply_vhtcap_overrides() 83 le16_to_cpu(sdata->u.mgd.vht_capa_mask.supp_mcs.tx_mcs_map); ieee80211_apply_vhtcap_overrides() 84 txmcs_n = le16_to_cpu(sdata->u.mgd.vht_capa.supp_mcs.tx_mcs_map); ieee80211_apply_vhtcap_overrides() 86 txmcs_cap = le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); ieee80211_apply_vhtcap_overrides() 235 own_rx = le16_to_cpu(own_cap.vht_mcs.rx_mcs_map); ieee80211_vht_cap_ie_to_sta_vht_cap() 238 own_tx = le16_to_cpu(own_cap.vht_mcs.tx_mcs_map); ieee80211_vht_cap_ie_to_sta_vht_cap() 241 peer_rx = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); ieee80211_vht_cap_ie_to_sta_vht_cap() 244 peer_tx = le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); ieee80211_vht_cap_ie_to_sta_vht_cap() 362 rx_mcs_map = le16_to_cpu(sta->sta.vht_cap.vht_mcs.rx_mcs_map); ieee80211_sta_set_rx_nss() 445 u16 mask, cap = le16_to_cpu(vht_cap); ieee80211_get_vht_mask_from_cap()
|
H A D | debugfs_sta.c | 106 le16_to_cpu(sta->last_seq_ctrl[i])); sta_last_seq_ctrl_read() 278 if (le16_to_cpu(htc->mcs.rx_highest)) { sta_ht_capa_read() 281 le16_to_cpu(htc->mcs.rx_highest)); sta_ht_capa_read() 305 le16_to_cpu(vhtc->vht_mcs.rx_mcs_map)); sta_vht_capa_read() 309 le16_to_cpu(vhtc->vht_mcs.rx_highest)); sta_vht_capa_read() 311 le16_to_cpu(vhtc->vht_mcs.tx_mcs_map)); sta_vht_capa_read() 315 le16_to_cpu(vhtc->vht_mcs.tx_highest)); sta_vht_capa_read()
|
/linux-4.4.14/drivers/staging/wlan-ng/ |
H A D | prism2sta.c | 372 qualmsg->link.data = le16_to_cpu(hw->qual.CQ_currBSS); prism2sta_mlmerequest() 373 qualmsg->level.data = le16_to_cpu(hw->qual.ASL_currBSS); prism2sta_mlmerequest() 374 qualmsg->noise.data = le16_to_cpu(hw->qual.ANL_currFC); prism2sta_mlmerequest() 602 hw->ident_nic.id = le16_to_cpu(hw->ident_nic.id); prism2sta_getcardinfo() 603 hw->ident_nic.variant = le16_to_cpu(hw->ident_nic.variant); prism2sta_getcardinfo() 604 hw->ident_nic.major = le16_to_cpu(hw->ident_nic.major); prism2sta_getcardinfo() 605 hw->ident_nic.minor = le16_to_cpu(hw->ident_nic.minor); prism2sta_getcardinfo() 621 hw->ident_pri_fw.id = le16_to_cpu(hw->ident_pri_fw.id); prism2sta_getcardinfo() 622 hw->ident_pri_fw.variant = le16_to_cpu(hw->ident_pri_fw.variant); prism2sta_getcardinfo() 623 hw->ident_pri_fw.major = le16_to_cpu(hw->ident_pri_fw.major); prism2sta_getcardinfo() 624 hw->ident_pri_fw.minor = le16_to_cpu(hw->ident_pri_fw.minor); prism2sta_getcardinfo() 647 hw->ident_sta_fw.id = le16_to_cpu(hw->ident_sta_fw.id); prism2sta_getcardinfo() 648 hw->ident_sta_fw.variant = le16_to_cpu(hw->ident_sta_fw.variant); prism2sta_getcardinfo() 649 hw->ident_sta_fw.major = le16_to_cpu(hw->ident_sta_fw.major); prism2sta_getcardinfo() 650 hw->ident_sta_fw.minor = le16_to_cpu(hw->ident_sta_fw.minor); prism2sta_getcardinfo() 682 hw->cap_sup_mfi.role = le16_to_cpu(hw->cap_sup_mfi.role); prism2sta_getcardinfo() 683 hw->cap_sup_mfi.id = le16_to_cpu(hw->cap_sup_mfi.id); prism2sta_getcardinfo() 684 hw->cap_sup_mfi.variant = le16_to_cpu(hw->cap_sup_mfi.variant); prism2sta_getcardinfo() 685 hw->cap_sup_mfi.bottom = le16_to_cpu(hw->cap_sup_mfi.bottom); prism2sta_getcardinfo() 686 hw->cap_sup_mfi.top = le16_to_cpu(hw->cap_sup_mfi.top); prism2sta_getcardinfo() 706 hw->cap_sup_cfi.role = le16_to_cpu(hw->cap_sup_cfi.role); prism2sta_getcardinfo() 707 hw->cap_sup_cfi.id = le16_to_cpu(hw->cap_sup_cfi.id); prism2sta_getcardinfo() 708 hw->cap_sup_cfi.variant = le16_to_cpu(hw->cap_sup_cfi.variant); prism2sta_getcardinfo() 709 hw->cap_sup_cfi.bottom = le16_to_cpu(hw->cap_sup_cfi.bottom); prism2sta_getcardinfo() 710 hw->cap_sup_cfi.top = le16_to_cpu(hw->cap_sup_cfi.top); prism2sta_getcardinfo() 730 hw->cap_sup_pri.role = le16_to_cpu(hw->cap_sup_pri.role); prism2sta_getcardinfo() 731 hw->cap_sup_pri.id = le16_to_cpu(hw->cap_sup_pri.id); prism2sta_getcardinfo() 732 hw->cap_sup_pri.variant = le16_to_cpu(hw->cap_sup_pri.variant); prism2sta_getcardinfo() 733 hw->cap_sup_pri.bottom = le16_to_cpu(hw->cap_sup_pri.bottom); prism2sta_getcardinfo() 734 hw->cap_sup_pri.top = le16_to_cpu(hw->cap_sup_pri.top); prism2sta_getcardinfo() 754 hw->cap_sup_sta.role = le16_to_cpu(hw->cap_sup_sta.role); prism2sta_getcardinfo() 755 hw->cap_sup_sta.id = le16_to_cpu(hw->cap_sup_sta.id); prism2sta_getcardinfo() 756 hw->cap_sup_sta.variant = le16_to_cpu(hw->cap_sup_sta.variant); prism2sta_getcardinfo() 757 hw->cap_sup_sta.bottom = le16_to_cpu(hw->cap_sup_sta.bottom); prism2sta_getcardinfo() 758 hw->cap_sup_sta.top = le16_to_cpu(hw->cap_sup_sta.top); prism2sta_getcardinfo() 786 hw->cap_act_pri_cfi.role = le16_to_cpu(hw->cap_act_pri_cfi.role); prism2sta_getcardinfo() 787 hw->cap_act_pri_cfi.id = le16_to_cpu(hw->cap_act_pri_cfi.id); prism2sta_getcardinfo() 788 hw->cap_act_pri_cfi.variant = le16_to_cpu(hw->cap_act_pri_cfi.variant); prism2sta_getcardinfo() 789 hw->cap_act_pri_cfi.bottom = le16_to_cpu(hw->cap_act_pri_cfi.bottom); prism2sta_getcardinfo() 790 hw->cap_act_pri_cfi.top = le16_to_cpu(hw->cap_act_pri_cfi.top); prism2sta_getcardinfo() 810 hw->cap_act_sta_cfi.role = le16_to_cpu(hw->cap_act_sta_cfi.role); prism2sta_getcardinfo() 811 hw->cap_act_sta_cfi.id = le16_to_cpu(hw->cap_act_sta_cfi.id); prism2sta_getcardinfo() 812 hw->cap_act_sta_cfi.variant = le16_to_cpu(hw->cap_act_sta_cfi.variant); prism2sta_getcardinfo() 813 hw->cap_act_sta_cfi.bottom = le16_to_cpu(hw->cap_act_sta_cfi.bottom); prism2sta_getcardinfo() 814 hw->cap_act_sta_cfi.top = le16_to_cpu(hw->cap_act_sta_cfi.top); prism2sta_getcardinfo() 834 hw->cap_act_sta_mfi.role = le16_to_cpu(hw->cap_act_sta_mfi.role); prism2sta_getcardinfo() 835 hw->cap_act_sta_mfi.id = le16_to_cpu(hw->cap_act_sta_mfi.id); prism2sta_getcardinfo() 836 hw->cap_act_sta_mfi.variant = le16_to_cpu(hw->cap_act_sta_mfi.variant); prism2sta_getcardinfo() 837 hw->cap_act_sta_mfi.bottom = le16_to_cpu(hw->cap_act_sta_mfi.bottom); prism2sta_getcardinfo() 838 hw->cap_act_sta_mfi.top = le16_to_cpu(hw->cap_act_sta_mfi.top); prism2sta_getcardinfo() 1010 *dst += le16_to_cpu(*src16); prism2sta_inf_tallies() 1135 le16_to_cpu(inf->info.chinforesult.scanchannels); prism2sta_inf_chinforesults() 1146 chan = le16_to_cpu(result->chid) - 1; prism2sta_inf_chinforesults() 1153 chinforesult->anl = le16_to_cpu(result->anl); prism2sta_inf_chinforesults() 1154 chinforesult->pnl = le16_to_cpu(result->pnl); prism2sta_inf_chinforesults() 1155 chinforesult->active = le16_to_cpu(result->active); prism2sta_inf_chinforesults() 1446 hw->link_status_new = le16_to_cpu(inf->info.linkstatus.linkstatus); prism2sta_inf_linkstatus() 1477 rec.assocstatus = le16_to_cpu(rec.assocstatus); prism2sta_inf_assocstatus() 1478 rec.reason = le16_to_cpu(rec.reason); prism2sta_inf_assocstatus() 1724 hw->psusercount = le16_to_cpu(inf->info.psusercnt.usercnt); prism2sta_inf_psusercnt() 1746 inf->infotype = le16_to_cpu(inf->infotype); prism2sta_ev_info() 1967 le16_to_cpu(hw->qual.CQ_currBSS), prism2sta_commsqual_defer() 1968 le16_to_cpu(hw->qual.ASL_currBSS), prism2sta_commsqual_defer() 1969 le16_to_cpu(hw->qual.ANL_currFC)); prism2sta_commsqual_defer()
|
H A D | prism2fw.c | 593 le16_to_cpu(pda16[curroff + 1]) != HFA384x_PDR_END_OF_PDA) { mkpdrlist() 596 if (le16_to_cpu(pda->rec[pda->nrec]->code) == mkpdrlist() 600 nicid.id = le16_to_cpu(nicid.id); mkpdrlist() 601 nicid.variant = le16_to_cpu(nicid.variant); mkpdrlist() 602 nicid.major = le16_to_cpu(nicid.major); mkpdrlist() 603 nicid.minor = le16_to_cpu(nicid.minor); mkpdrlist() 605 if (le16_to_cpu(pda->rec[pda->nrec]->code) == mkpdrlist() 609 rfid.id = le16_to_cpu(rfid.id); mkpdrlist() 610 rfid.variant = le16_to_cpu(rfid.variant); mkpdrlist() 611 rfid.bottom = le16_to_cpu(rfid.bottom); mkpdrlist() 612 rfid.top = le16_to_cpu(rfid.top); mkpdrlist() 614 if (le16_to_cpu(pda->rec[pda->nrec]->code) == mkpdrlist() 618 macid.id = le16_to_cpu(macid.id); mkpdrlist() 619 macid.variant = le16_to_cpu(macid.variant); mkpdrlist() 620 macid.bottom = le16_to_cpu(macid.bottom); mkpdrlist() 621 macid.top = le16_to_cpu(macid.top); mkpdrlist() 625 curroff += le16_to_cpu(pda16[curroff]) + 1; mkpdrlist() 677 le16_to_cpu(pda->rec[j]->code)) plugimage() 701 if (j != -1 && s3plug[i].len < le16_to_cpu(pda->rec[j]->len)) { plugimage()
|
/linux-4.4.14/block/partitions/ |
H A D | karma.c | 38 if (le16_to_cpu(label->d_magic) != KARMA_LABEL_MAGIC) { karma_partition()
|
H A D | osf.c | 69 npartitions = le16_to_cpu(label->d_npartitions); osf_partition()
|
H A D | msdos.c | 247 max_nparts = le16_to_cpu(v->v_nparts) > 8 ? SOLARIS_X86_NUMSLICE : 8; parse_solaris_x86() 292 if (le16_to_cpu(l->d_npartitions) < max_partitions) parse_bsd() 293 max_partitions = le16_to_cpu(l->d_npartitions); parse_bsd() 313 if (le16_to_cpu(l->d_npartitions) > max_partitions) { parse_bsd() 315 le16_to_cpu(l->d_npartitions) - max_partitions); parse_bsd()
|
/linux-4.4.14/fs/jfs/ |
H A D | jfs_unicode.c | 44 codepage->uni2char(le16_to_cpu(from[i]), jfs_strfromUCS_le() 54 if (unlikely(le16_to_cpu(from[i]) & 0xff00)) { jfs_strfromUCS_le() 61 le16_to_cpu(from[i])); jfs_strfromUCS_le() 68 to[i] = (char) (le16_to_cpu(from[i])); jfs_strfromUCS_le()
|
H A D | jfs_xtree.c | 71 if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) || \ 72 (le16_to_cpu((P)->header.nextindex) > \ 73 le16_to_cpu((P)->header.maxentry)) || \ 74 (le16_to_cpu((P)->header.maxentry) > \ 293 le16_to_cpu(p->header.nextindex)) { xtSearch() 309 le16_to_cpu(p->header.nextindex)) { xtSearch() 376 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; xtSearch() 425 if (index < le16_to_cpu(p->header.nextindex)-1) xtSearch() 442 if (base < le16_to_cpu(p->header.nextindex)) xtSearch() 608 nextindex = le16_to_cpu(p->header.nextindex); xtInsert() 609 if (nextindex == le16_to_cpu(p->header.maxentry)) { xtInsert() 660 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; xtInsert() 716 (le16_to_cpu(sp->header.maxentry) < XTROOTMAXSLOT) && xtSplitUp() 730 nextindex = le16_to_cpu(sp->header.nextindex); xtSplitUp() 750 le16_to_cpu(sp->header.nextindex) - xtSplitUp() 849 nextindex = le16_to_cpu(sp->header.nextindex); xtSplitUp() 853 if (nextindex == le16_to_cpu(sp->header.maxentry)) { xtSplitUp() 920 le16_to_cpu(sp->header.nextindex) - xtSplitUp() 1056 if (nextbn == 0 && skip == le16_to_cpu(sp->header.maxentry)) { xtSplitPage() 1116 maxentry = le16_to_cpu(sp->header.maxentry); xtSplitPage() 1180 sxtlck->lwm.length = le16_to_cpu(sp->header.nextindex) - xtSplitPage() 1184 rxtlck->lwm.length = le16_to_cpu(rp->header.nextindex) - xtSplitPage() 1285 nextindex = le16_to_cpu(sp->header.maxentry); xtSplitRoot() 1309 xtlck->lwm.length = le16_to_cpu(rp->header.nextindex) - xtSplitRoot() 1423 nextindex = le16_to_cpu(p->header.nextindex); xtExtend() 1431 if (nextindex == le16_to_cpu(p->header.maxentry)) { xtExtend() 1500 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; xtExtend() 1561 nextindex = le16_to_cpu(p->header.nextindex); xtTailgate() 1596 if (nextindex == le16_to_cpu(p->header.maxentry)) { xtTailgate() 1681 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - xtTailgate() 1767 nextindex = le16_to_cpu(p->header.nextindex); xtUpdate() 1833 cpu_to_le16(le16_to_cpu(p->header.nextindex) - xtUpdate() 1838 nextindex = le16_to_cpu(p->header.nextindex); xtUpdate() 1900 cpu_to_le16(le16_to_cpu(p->header.nextindex) - xtUpdate() 1928 if (nextindex == le16_to_cpu(p->header.maxentry)) { xtUpdate() 1970 (le16_to_cpu(p->header.maxentry) >> 1)) { xtUpdate() 1973 le16_to_cpu(p->header.nextindex) + xtUpdate() 1991 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); xtUpdate() 2011 le16_to_cpu(p->header.nextindex) - xtUpdate() 2034 nextindex = le16_to_cpu(p->header.nextindex); xtUpdate() 2040 if (nextindex == le16_to_cpu(p->header.maxentry)) { xtUpdate() 2079 if (nextindex == le16_to_cpu(p->header.maxentry)) { xtUpdate() 2134 cpu_to_le16(le16_to_cpu(p->header.nextindex) + 1); xtUpdate() 2141 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - xtUpdate() 2229 nextindex = le16_to_cpu(p->header.nextindex); xtAppend() 2230 if (nextindex < le16_to_cpu(p->header.maxentry)) xtAppend() 2309 xtlck->lwm.length = le16_to_cpu(p->header.nextindex) - xtAppend() 2367 nextindex = le16_to_cpu(p->header.nextindex); xtDelete() 2471 nextindex = le16_to_cpu(p->header.nextindex); xtDeleteUp() 2803 le16_to_cpu(p->header.nextindex) - xtlck->lwm.offset; xtRelocate() 2863 xtlck->lwm.length = le16_to_cpu(pp->header.nextindex) - xtRelocate() 2937 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; xtSearchNode() 3250 index = le16_to_cpu(p->header.nextindex) - 1; xtTruncate() 3300 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1; xtTruncate() 3405 if (nextindex < le16_to_cpu(p->header.nextindex)) { xtTruncate() 3409 le16_to_cpu(p->header.nextindex) - xtTruncate() 3440 le16_to_cpu(p->header.nextindex) - XTENTRYSTART; xtTruncate() 3494 if (index < le16_to_cpu(p->header.nextindex) - 1) { xtTruncate() 3504 le16_to_cpu(p->header. xtTruncate() 3514 le16_to_cpu(p->header.nextindex) - xtTruncate() 3579 le16_to_cpu(p->header.nextindex) - 1; xtTruncate() 3586 le16_to_cpu(p->header.nextindex) - xtTruncate() 3597 if (le16_to_cpu(p->header.maxentry) == XTROOTMAXSLOT) { xtTruncate() 3773 index = le16_to_cpu(p->header.nextindex) - 1; xtTruncate_pmap() 3829 xtlck->hwm.offset = le16_to_cpu(p->header.nextindex) - 1; xtTruncate_pmap()
|
/linux-4.4.14/include/linux/uwb/ |
H A D | spec.h | 312 return (le16_to_cpu(ie->drp_control) >> 0) & 0x7; uwb_ie_drp_type() 317 return (le16_to_cpu(ie->drp_control) >> 3) & 0x7; uwb_ie_drp_stream_index() 322 return (le16_to_cpu(ie->drp_control) >> 6) & 0x7; uwb_ie_drp_reason_code() 327 return (le16_to_cpu(ie->drp_control) >> 9) & 0x1; uwb_ie_drp_status() 332 return (le16_to_cpu(ie->drp_control) >> 10) & 0x1; uwb_ie_drp_owner() 337 return (le16_to_cpu(ie->drp_control) >> 11) & 0x1; uwb_ie_drp_tiebreaker() 342 return (le16_to_cpu(ie->drp_control) >> 12) & 0x1; uwb_ie_drp_unsafe() 347 u16 drp_control = le16_to_cpu(ie->drp_control); uwb_ie_drp_set_type() 354 u16 drp_control = le16_to_cpu(ie->drp_control); uwb_ie_drp_set_stream_index() 362 u16 drp_control = le16_to_cpu(ie->drp_control); uwb_ie_drp_set_reason_code() 369 u16 drp_control = le16_to_cpu(ie->drp_control); uwb_ie_drp_set_status() 376 u16 drp_control = le16_to_cpu(ie->drp_control); uwb_ie_drp_set_owner() 383 u16 drp_control = le16_to_cpu(ie->drp_control); uwb_ie_drp_set_tiebreaker() 390 u16 drp_control = le16_to_cpu(ie->drp_control); uwb_ie_drp_set_unsafe() 411 return (le16_to_cpu(ie->relinquish_req_control) >> 0) & 0xf; uwb_ie_relinquish_req_reason_code() 417 u16 ctrl = le16_to_cpu(ie->relinquish_req_control); uwb_ie_relinquish_req_set_reason_code()
|
/linux-4.4.14/fs/ntfs/ |
H A D | index.c | 176 le16_to_cpu(actx->attr->data.resident.value_offset)); ntfs_index_lookup() 185 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { ntfs_index_lookup() 189 (u8*)ie + le16_to_cpu(ie->length) > index_end) ntfs_index_lookup() 199 le16_to_cpu(ie->key_length) > ntfs_index_lookup() 200 le16_to_cpu(ie->data.vi.data_offset) || ntfs_index_lookup() 201 (u32)le16_to_cpu(ie->data.vi.data_offset) + ntfs_index_lookup() 202 le16_to_cpu(ie->data.vi.data_length) > ntfs_index_lookup() 203 le16_to_cpu(ie->length)) ntfs_index_lookup() 206 if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, ntfs_index_lookup() 218 le16_to_cpu(ie->data.vi.data_offset); ntfs_index_lookup() 219 ictx->data_len = le16_to_cpu(ie->data.vi.data_length); ntfs_index_lookup() 228 key_len, &ie->key, le16_to_cpu(ie->key_length)); ntfs_index_lookup() 262 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); ntfs_index_lookup() 349 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { ntfs_index_lookup() 353 (u8*)ie + le16_to_cpu(ie->length) > index_end) { ntfs_index_lookup() 366 le16_to_cpu(ie->key_length) > ntfs_index_lookup() 367 le16_to_cpu(ie->data.vi.data_offset) || ntfs_index_lookup() 368 (u32)le16_to_cpu(ie->data.vi.data_offset) + ntfs_index_lookup() 369 le16_to_cpu(ie->data.vi.data_length) > ntfs_index_lookup() 370 le16_to_cpu(ie->length)) { ntfs_index_lookup() 376 if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, ntfs_index_lookup() 391 key_len, &ie->key, le16_to_cpu(ie->key_length)); ntfs_index_lookup() 423 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); ntfs_index_lookup()
|
H A D | unistr.c | 109 c1 = le16_to_cpu(*name1++); ntfs_collate_names() 110 c2 = le16_to_cpu(*name2++); ntfs_collate_names() 113 c1 = le16_to_cpu(upcase[c1]); ntfs_collate_names() 115 c2 = le16_to_cpu(upcase[c2]); ntfs_collate_names() 129 c1 = le16_to_cpu(*name1); ntfs_collate_names() 142 * The strings in little endian format and appropriate le16_to_cpu() 155 c1 = le16_to_cpu(s1[i]); ntfs_ucsncmp() 156 c2 = le16_to_cpu(s2[i]); ntfs_ucsncmp() 177 * le16_to_cpu() conversion is performed on non-little endian machines. 192 if ((c1 = le16_to_cpu(s1[i])) < upcase_size) ntfs_ucsncasecmp() 193 c1 = le16_to_cpu(upcase[c1]); ntfs_ucsncasecmp() 194 if ((c2 = le16_to_cpu(s2[i])) < upcase_size) ntfs_ucsncasecmp() 195 c2 = le16_to_cpu(upcase[c2]); ntfs_ucsncasecmp() 213 if ((u = le16_to_cpu(name[i])) < upcase_len) ntfs_upcase_name() 358 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, ntfs_ucstonls()
|
H A D | logfile.c | 95 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { ntfs_check_restart_page_header() 101 if (usa_count != le16_to_cpu(rp->usa_count)) { ntfs_check_restart_page_header() 107 usa_ofs = le16_to_cpu(rp->usa_ofs); ntfs_check_restart_page_header() 122 ra_ofs = le16_to_cpu(rp->restart_area_offset); ntfs_check_restart_page_header() 165 ra_ofs = le16_to_cpu(rp->restart_area_offset); ntfs_check_restart_area() 185 ca_ofs = le16_to_cpu(ra->client_array_offset); ntfs_check_restart_area() 197 ra_len = ca_ofs + le16_to_cpu(ra->log_clients) * ntfs_check_restart_area() 200 ra_ofs + le16_to_cpu(ra->restart_area_length) > ntfs_check_restart_area() 202 ra_len > le16_to_cpu(ra->restart_area_length)) { ntfs_check_restart_area() 215 le16_to_cpu(ra->client_free_list) >= ntfs_check_restart_area() 216 le16_to_cpu(ra->log_clients)) || ntfs_check_restart_area() 218 le16_to_cpu(ra->client_in_use_list) >= ntfs_check_restart_area() 219 le16_to_cpu(ra->log_clients))) { ntfs_check_restart_area() 240 if (((le16_to_cpu(ra->log_record_header_length) + 7) & ~7) != ntfs_check_restart_area() 241 le16_to_cpu(ra->log_record_header_length)) { ntfs_check_restart_area() 247 if (((le16_to_cpu(ra->log_page_data_offset) + 7) & ~7) != ntfs_check_restart_area() 248 le16_to_cpu(ra->log_page_data_offset)) { ntfs_check_restart_area() 281 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); ntfs_check_log_client_array() 283 le16_to_cpu(ra->client_array_offset)); ntfs_check_log_client_array() 292 nr_clients = le16_to_cpu(ra->log_clients); ntfs_check_log_client_array() 293 idx = le16_to_cpu(ra->client_free_list); ntfs_check_log_client_array() 297 idx = le16_to_cpu(cr->next_client)) { ntfs_check_log_client_array() 298 if (!nr_clients || idx >= le16_to_cpu(ra->log_clients)) ntfs_check_log_client_array() 312 idx = le16_to_cpu(ra->client_in_use_list); ntfs_check_log_client_array() 368 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); ntfs_check_and_load_restart_page() 421 if ((!ntfs_is_chkd_record(trp->magic) || le16_to_cpu(trp->usa_count)) ntfs_check_and_load_restart_page() 429 if (le16_to_cpu(rp->restart_area_offset) + ntfs_check_and_load_restart_page() 430 le16_to_cpu(ra->restart_area_length) > ntfs_check_and_load_restart_page() 699 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); ntfs_is_logfile_clean()
|
H A D | mst.c | 48 usa_ofs = le16_to_cpu(b->usa_ofs); post_read_mst_fixup() 50 usa_count = le16_to_cpu(b->usa_count) - 1; post_read_mst_fixup() 87 usa_count = le16_to_cpu(b->usa_count) - 1; post_read_mst_fixup() 134 usa_ofs = le16_to_cpu(b->usa_ofs); pre_write_mst_fixup() 136 usa_count = le16_to_cpu(b->usa_count) - 1; pre_write_mst_fixup() 183 u16 usa_ofs = le16_to_cpu(b->usa_ofs); post_write_mst_fixup() 184 u16 usa_count = le16_to_cpu(b->usa_count) - 1; post_write_mst_fixup()
|
H A D | endian.h | 35 return le16_to_cpu((__force le16)x); sle16_to_cpu() 50 return le16_to_cpu(*(__force le16*)x); sle16_to_cpup()
|
H A D | dir.c | 127 le16_to_cpu(ctx->attr->data.resident.value_offset)); ntfs_lookup_inode_by_name() 136 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { ntfs_lookup_inode_by_name() 140 (u8*)ie + le16_to_cpu(ie->key_length) > ntfs_lookup_inode_by_name() 305 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); ntfs_lookup_inode_by_name() 392 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { ntfs_lookup_inode_by_name() 396 (u8*)ie + le16_to_cpu(ie->key_length) > ntfs_lookup_inode_by_name() 557 le16_to_cpu(ie->length) - 8)); ntfs_lookup_inode_by_name() 678 le16_to_cpu(ctx->attr->data.resident.value_offset)); 687 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { 691 (u8*)ie + le16_to_cpu(ie->key_length) > 783 vcn = sle64_to_cpup((u8*)ie + le16_to_cpu(ie->length) - 8); 870 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { 874 (u8*)ie + le16_to_cpu(ie->key_length) > 966 vcn = sle64_to_cpup((u8*)ie + le16_to_cpu(ie->length) - 8); 1182 le16_to_cpu(ctx->attr->data.resident.value_offset), rc); ntfs_readdir() 1196 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { ntfs_readdir() 1201 (u8*)ie + le16_to_cpu(ie->key_length) > ntfs_readdir() 1376 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { ntfs_readdir() 1383 (u8*)ie + le16_to_cpu(ie->key_length) > ntfs_readdir()
|
/linux-4.4.14/drivers/staging/rtl8712/ |
H A D | wifi.h | 158 le16_to_cpu(_TO_DS_)) != 0) 169 le16_to_cpu(_FROM_DS_)) != 0) 183 le16_to_cpu(_MORE_FRAG_)) != 0) 194 le16_to_cpu(_RETRY_)) != 0) 205 le16_to_cpu(_PWRMGT_)) != 0) 216 le16_to_cpu(_MORE_DATA_)) != 0) 227 le16_to_cpu(_PRIVACY_)) != 0) 230 le16_to_cpu(_ORDER_)) != 0) 232 #define GetFrameType(pbuf) (le16_to_cpu(*(unsigned short *)(pbuf)) & \ 262 le16_to_cpu((unsigned short)0x000f)) | \ 263 le16_to_cpu((unsigned short)(0xfff0 & (num << 4))); \ 275 #define GetPriority(pbuf) ((le16_to_cpu(*(unsigned short *)(pbuf))) & 0xf) 281 #define GetAckpolicy(pbuf) (((le16_to_cpu(*(unsigned short *)pbuf)) >> 5) & 0x3) 283 #define GetAMsdu(pbuf) (((le16_to_cpu(*(unsigned short *)pbuf)) >> 7) & 0x1) 478 le16_to_cpu(_ORDER_)) != 0)
|
/linux-4.4.14/drivers/net/wireless/libertas/ |
H A D | cmdresp.c | 84 curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command); lbs_process_command_response() 85 respcmd = le16_to_cpu(resp->command); lbs_process_command_response() 86 result = le16_to_cpu(resp->result); lbs_process_command_response() 89 respcmd, le16_to_cpu(resp->seqnum), len); lbs_process_command_response() 95 le16_to_cpu(resp->seqnum), lbs_process_command_response() 96 le16_to_cpu(priv->cur_cmd->cmdbuf->seqnum)); lbs_process_command_response() 115 le16_to_cpu(resp->command)); lbs_process_command_response() 127 u16 action = le16_to_cpu(psmode->action); lbs_process_command_response()
|
H A D | cmd.c | 36 copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size)); lbs_cmd_copyback() 133 priv->regioncode = (le16_to_cpu(cmd.regioncode) >> 8) & 0xFF; lbs_update_hw_spec() 135 priv->regioncode = le16_to_cpu(cmd.regioncode) & 0xFF; lbs_update_hw_spec() 209 le16_to_cpu(cmd_config.hdr.size), lbs_host_sleep_cfg() 295 le16_to_cpu(cmd.error), le16_to_cpu(cmd.offset), lbs_cmd_802_11_sleep_params() 296 le16_to_cpu(cmd.stabletime), cmd.calcontrol, lbs_cmd_802_11_sleep_params() 299 sp->sp_error = le16_to_cpu(cmd.error); lbs_cmd_802_11_sleep_params() 300 sp->sp_offset = le16_to_cpu(cmd.offset); lbs_cmd_802_11_sleep_params() 301 sp->sp_stabletime = le16_to_cpu(cmd.stabletime); lbs_cmd_802_11_sleep_params() 304 sp->sp_reserved = le16_to_cpu(cmd.reserved); lbs_cmd_802_11_sleep_params() 468 le16_to_cpu(cmd.oid), le16_to_cpu(cmd.bufsize), val); lbs_set_snmp_mib() 502 switch (le16_to_cpu(cmd.bufsize)) { lbs_get_snmp_mib() 507 *out_val = le16_to_cpu(*((__le16 *)(&cmd.value))); lbs_get_snmp_mib() 511 oid, le16_to_cpu(cmd.bufsize)); lbs_get_snmp_mib() 544 *curlevel = le16_to_cpu(cmd.curlevel); lbs_get_tx_power() 637 ret = le16_to_cpu(cmd.channel); lbs_get_channel() 688 priv->channel = (uint8_t) le16_to_cpu(cmd.channel); lbs_set_channel() 723 *nf = CAL_NF(le16_to_cpu(cmd.nf)); lbs_get_rssi() 724 *rssi = CAL_RSSI(le16_to_cpu(cmd.n_or_snr), le16_to_cpu(cmd.nf)); lbs_get_rssi() 841 le16_to_cpu(domain->header.len)); lbs_set_11d_domain_info() 959 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_PS_MODE) { lbs_queue_cmd() 968 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_WAKEUP_CONFIRM) lbs_queue_cmd() 981 le16_to_cpu(cmdnode->cmdbuf->command)); lbs_queue_cmd() 1007 cmdsize = le16_to_cpu(cmd->size); lbs_submit_command() 1008 command = le16_to_cpu(cmd->command); lbs_submit_command() 1015 command, le16_to_cpu(cmd->seqnum), cmdsize); lbs_submit_command() 1343 if (is_command_allowed_in_ps(le16_to_cpu(cmd->command))) { lbs_execute_next_command() 1348 le16_to_cpu(cmd->command), lbs_execute_next_command() 1355 le16_to_cpu(cmd->command), priv->psstate); lbs_execute_next_command() 1424 le16_to_cpu(cmd->command)); lbs_execute_next_command()
|
H A D | tx.c | 141 lbs_deb_hex(LBS_DEB_TX, "Tx Data", (u8 *) p802x_hdr, le16_to_cpu(txpd->tx_packet_length)); lbs_hard_start_xmit() 143 memcpy(&txpd[1], p802x_hdr, le16_to_cpu(txpd->tx_packet_length)); lbs_hard_start_xmit()
|
/linux-4.4.14/drivers/net/wireless/p54/ |
H A D | eeprom.c | 291 rawpower, le16_to_cpu(point->val_qpsk)); p54_get_maxpower() 293 rawpower, le16_to_cpu(point->val_bpsk)); p54_get_maxpower() 295 rawpower, le16_to_cpu(point->val_16qam)); p54_get_maxpower() 297 rawpower, le16_to_cpu(point->val_64qam)); p54_get_maxpower() 364 freq = le16_to_cpu(priv->iq_autocal[i].freq); p54_generate_channel_lists() 566 entry[i].freq = le16_to_cpu(cal[i].freq); p54_parse_rssical() 567 entry[i].mul = (s16) le16_to_cpu(cal[i].mul); p54_parse_rssical() 568 entry[i].add = (s16) le16_to_cpu(cal[i].add); p54_parse_rssical() 585 entry[i].mul = (s16) le16_to_cpu(cal[i].mul); p54_parse_rssical() 586 entry[i].add = (s16) le16_to_cpu(cal[i].add); p54_parse_rssical() 709 payload_len = le16_to_cpu(src->len); p54_convert_db() 710 entries = le16_to_cpu(src->entries); p54_convert_db() 711 entry_size = le16_to_cpu(src->entry_size); p54_convert_db() 712 offset = le16_to_cpu(src->offset); p54_convert_db() 743 entry = (void *)wrap->data + le16_to_cpu(wrap->len); p54_parse_eeprom() 747 entry_len = le16_to_cpu(entry->len); p54_parse_eeprom() 754 switch (le16_to_cpu(entry->code)) { p54_parse_eeprom() 812 synth = le16_to_cpu(exp_if->variant); p54_parse_eeprom() 825 le16_to_cpu(entry->code)); p54_parse_eeprom() 846 *(dst++) = (s16) le16_to_cpu(*(src++)); p54_parse_eeprom()
|
H A D | txrx.c | 57 le16_to_cpu(hdr->flags), le16_to_cpu(hdr->len), p54_dump_tx_queue() 58 le32_to_cpu(hdr->req_id), le16_to_cpu(hdr->type), p54_dump_tx_queue() 331 u16 freq = le16_to_cpu(hdr->freq); p54_rx_data() 381 skb_trim(skb, le16_to_cpu(hdr->len)); p54_rx_data() 498 le16_to_cpu(eeprom->v2.len)); p54_rx_eeprom_readback() 501 le16_to_cpu(eeprom->v1.len)); p54_rx_eeprom_readback() 608 u16 event = le16_to_cpu(trap->event); p54_rx_trap() 609 u16 freq = le16_to_cpu(trap->frequency); p54_rx_trap() 644 switch (le16_to_cpu(hdr->type)) { p54_rx_control() 662 le16_to_cpu(hdr->type)); p54_rx_control() 672 u16 type = le16_to_cpu(*((__le16 *)skb->data)); p54_rx()
|
/linux-4.4.14/fs/ext2/ |
H A D | ialloc.c | 215 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) find_group_dir() 218 (le16_to_cpu(desc->bg_free_blocks_count) > find_group_dir() 219 le16_to_cpu(best_desc->bg_free_blocks_count))) { find_group_dir() 294 if (le16_to_cpu(desc->bg_used_dirs_count) >= best_ndir) find_group_orlov() 296 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) find_group_orlov() 298 if (le16_to_cpu(desc->bg_free_blocks_count) < avefreeb) find_group_orlov() 301 best_ndir = le16_to_cpu(desc->bg_used_dirs_count); find_group_orlov() 336 if (le16_to_cpu(desc->bg_used_dirs_count) >= max_dirs) find_group_orlov() 338 if (le16_to_cpu(desc->bg_free_inodes_count) < min_inodes) find_group_orlov() 340 if (le16_to_cpu(desc->bg_free_blocks_count) < min_blocks) find_group_orlov() 351 if (le16_to_cpu(desc->bg_free_inodes_count) >= avefreei) find_group_orlov() 382 if (desc && le16_to_cpu(desc->bg_free_inodes_count) && find_group_other() 383 le16_to_cpu(desc->bg_free_blocks_count)) find_group_other() 406 if (desc && le16_to_cpu(desc->bg_free_inodes_count) && find_group_other() 407 le16_to_cpu(desc->bg_free_blocks_count)) find_group_other() 420 if (desc && le16_to_cpu(desc->bg_free_inodes_count)) find_group_other() 636 desc_count += le16_to_cpu(desc->bg_free_inodes_count); ext2_count_free_inodes() 644 i, le16_to_cpu(desc->bg_free_inodes_count), x); ext2_count_free_inodes() 658 desc_count += le16_to_cpu(desc->bg_free_inodes_count); ext2_count_free_inodes() 674 count += le16_to_cpu(gdp->bg_used_dirs_count); ext2_count_dirs()
|
H A D | acl.c | 46 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); ext2_acl_from_disk() 47 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); ext2_acl_from_disk()
|
H A D | super.c | 242 le16_to_cpu(es->s_def_resuid) != EXT2_DEF_RESUID) { ext2_show_options() 247 le16_to_cpu(es->s_def_resgid) != EXT2_DEF_RESGID) { ext2_show_options() 252 int def_errors = le16_to_cpu(es->s_errors); ext2_show_options() 638 else if ((__s16) le16_to_cpu(es->s_max_mnt_count) >= 0 && ext2_setup_super() 639 le16_to_cpu(es->s_mnt_count) >= ext2_setup_super() 640 (unsigned short) (__s16) le16_to_cpu(es->s_max_mnt_count)) ext2_setup_super() 650 if (!le16_to_cpu(es->s_max_mnt_count)) ext2_setup_super() 850 sb->s_magic = le16_to_cpu(es->s_magic); ext2_fill_super() 872 if (le16_to_cpu(sbi->s_es->s_errors) == EXT2_ERRORS_PANIC) ext2_fill_super() 874 else if (le16_to_cpu(sbi->s_es->s_errors) == EXT2_ERRORS_CONTINUE) ext2_fill_super() 879 sbi->s_resuid = make_kuid(&init_user_ns, le16_to_cpu(es->s_def_resuid)); ext2_fill_super() 880 sbi->s_resgid = make_kgid(&init_user_ns, le16_to_cpu(es->s_def_resgid)); ext2_fill_super() 967 sbi->s_inode_size = le16_to_cpu(es->s_inode_size); ext2_fill_super() 999 sbi->s_mount_state = le16_to_cpu(es->s_state); ext2_fill_super() 1312 if (le16_to_cpu(es->s_state) & EXT2_VALID_FS || ext2_remount() 1349 sbi->s_mount_state = le16_to_cpu(es->s_state); ext2_remount()
|
/linux-4.4.14/drivers/bluetooth/ |
H A D | btqca.c | 75 BT_DBG("%s: Patch :0x%08x", hdev->name, le16_to_cpu(ver->patch_ver)); rome_patch_ver_req() 76 BT_DBG("%s: ROM :0x%08x", hdev->name, le16_to_cpu(ver->rome_ver)); rome_patch_ver_req() 84 (le16_to_cpu(ver->rome_ver) & 0x0000ffff); rome_patch_ver_req() 142 le16_to_cpu(tlv_patch->reserved1)); rome_tlv_check_data() 144 le16_to_cpu(tlv_patch->product_id)); rome_tlv_check_data() 146 le16_to_cpu(tlv_patch->rom_build)); rome_tlv_check_data() 148 le16_to_cpu(tlv_patch->patch_version)); rome_tlv_check_data() 150 le16_to_cpu(tlv_patch->reserved2)); rome_tlv_check_data() 161 tag_id = le16_to_cpu(tlv_nvm->tag_id); rome_tlv_check_data() 162 tag_len = le16_to_cpu(tlv_nvm->tag_len); rome_tlv_check_data()
|
H A D | btbcm.c | 148 opcode = le16_to_cpu(cmd->opcode); btbcm_patchram() 296 rev = le16_to_cpu(ver->hci_rev); btbcm_initialize() 297 subver = le16_to_cpu(ver->lmp_subver); btbcm_initialize() 351 rev = le16_to_cpu(ver->hci_rev); btbcm_finalize() 352 subver = le16_to_cpu(ver->lmp_subver); btbcm_finalize() 405 rev = le16_to_cpu(ver->hci_rev); btbcm_setup_patchram() 406 subver = le16_to_cpu(ver->lmp_subver); btbcm_setup_patchram() 488 rev = le16_to_cpu(ver->hci_rev); btbcm_setup_patchram() 489 subver = le16_to_cpu(ver->lmp_subver); btbcm_setup_patchram()
|
/linux-4.4.14/fs/squashfs/ |
H A D | inode.c | 63 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &i_uid); squashfs_new_inode() 67 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &i_gid); squashfs_new_inode() 77 inode->i_mode = le16_to_cpu(sqsh_ino->mode); squashfs_new_inode() 139 type = le16_to_cpu(sqshb_ino->inode_type); squashfs_read_inode() 240 inode->i_size = le16_to_cpu(sqsh_ino->file_size); squashfs_read_inode() 245 squashfs_i(inode)->offset = le16_to_cpu(sqsh_ino->offset); squashfs_read_inode() 252 le16_to_cpu(sqsh_ino->offset)); squashfs_read_inode() 270 squashfs_i(inode)->offset = le16_to_cpu(sqsh_ino->offset); squashfs_read_inode() 273 squashfs_i(inode)->dir_idx_cnt = le16_to_cpu(sqsh_ino->i_count); squashfs_read_inode() 279 le16_to_cpu(sqsh_ino->offset)); squashfs_read_inode()
|
H A D | xattr.c | 68 name_size = le16_to_cpu(entry.size); squashfs_listxattr() 69 handler = squashfs_xattr_handler(le16_to_cpu(entry.type)); squashfs_listxattr() 144 name_size = le16_to_cpu(entry.size); squashfs_xattr_get() 145 type = le16_to_cpu(entry.type); squashfs_xattr_get()
|
H A D | super.c | 134 le16_to_cpu(sblk->s_major), squashfs_fill_super() 135 le16_to_cpu(sblk->s_minor), squashfs_fill_super() 136 le16_to_cpu(sblk->compression)); squashfs_fill_super() 163 msblk->block_log = le16_to_cpu(sblk->block_log); squashfs_fill_super() 179 flags = le16_to_cpu(sblk->flags); squashfs_fill_super() 190 TRACE("Number of ids %d\n", le16_to_cpu(sblk->no_ids)); squashfs_fill_super() 248 le16_to_cpu(sblk->no_ids)); squashfs_fill_super()
|
H A D | dir.c | 188 size = le16_to_cpu(dire->size) + 1; squashfs_readdir() 206 ((short) le16_to_cpu(dire->inode_number)); squashfs_readdir() 207 type = le16_to_cpu(dire->type); squashfs_readdir()
|
H A D | namei.c | 196 size = le16_to_cpu(dire->size) + 1; squashfs_lookup() 216 off = le16_to_cpu(dire->offset); squashfs_lookup() 218 (short) le16_to_cpu(dire->inode_number); squashfs_lookup()
|
/linux-4.4.14/drivers/isdn/hardware/mISDN/ |
H A D | hfcpci.c | 355 le16_to_cpu(bzr->za[MAX_B_FRAMES].z1)); hfcpci_clear_fifo_rx() 383 le16_to_cpu(bzt->za[MAX_B_FRAMES].z1), hfcpci_clear_fifo_tx() 384 le16_to_cpu(bzt->za[MAX_B_FRAMES].z2), hfcpci_clear_fifo_tx() 397 le16_to_cpu(bzt->za[MAX_B_FRAMES].z1), hfcpci_clear_fifo_tx() 398 le16_to_cpu(bzt->za[MAX_B_FRAMES].z2)); hfcpci_clear_fifo_tx() 415 new_z2 = le16_to_cpu(zp->z2) + count; /* new position in fifo */ hfcpci_empty_bfifo() 420 (*(bdata + (le16_to_cpu(zp->z1) - B_SUB_VAL)))) { hfcpci_empty_bfifo() 438 if (le16_to_cpu(zp->z2) + count <= B_FIFO_SIZE + B_SUB_VAL) hfcpci_empty_bfifo() 442 le16_to_cpu(zp->z2); /* maximum */ hfcpci_empty_bfifo() 444 ptr1 = bdata + (le16_to_cpu(zp->z2) - B_SUB_VAL); hfcpci_empty_bfifo() 477 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); receive_dmsg() 485 le16_to_cpu(zp->z1), receive_dmsg() 486 le16_to_cpu(zp->z2), receive_dmsg() 490 (df->data[le16_to_cpu(zp->z1)])) { receive_dmsg() 496 df->data[le16_to_cpu(zp->z1)]); receive_dmsg() 503 cpu_to_le16((le16_to_cpu(zp->z2) + rcnt) & receive_dmsg() 516 if (le16_to_cpu(zp->z2) + rcnt <= D_FIFO_SIZE) receive_dmsg() 519 maxlen = D_FIFO_SIZE - le16_to_cpu(zp->z2); receive_dmsg() 522 ptr1 = df->data + le16_to_cpu(zp->z2); receive_dmsg() 535 le16_to_cpu(zp->z2) + total) & (D_FIFO_SIZE - 1)); receive_dmsg() 558 fcnt_rx = le16_to_cpu(*z1r) - le16_to_cpu(*z2r); hfcpci_empty_fifo_trans() 564 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */ hfcpci_empty_fifo_trans() 568 fcnt_tx = le16_to_cpu(*z2t) - le16_to_cpu(*z1t); hfcpci_empty_fifo_trans() 586 if (le16_to_cpu(*z2r) + fcnt_rx <= B_FIFO_SIZE + B_SUB_VAL) hfcpci_empty_fifo_trans() 589 maxlen = B_FIFO_SIZE + B_SUB_VAL - le16_to_cpu(*z2r); hfcpci_empty_fifo_trans() 592 ptr1 = bdata + (le16_to_cpu(*z2r) - B_SUB_VAL); hfcpci_empty_fifo_trans() 639 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); main_rec_hfcpci() 646 bch->nr, le16_to_cpu(zp->z1), main_rec_hfcpci() 647 le16_to_cpu(zp->z2), rcnt); main_rec_hfcpci() 696 le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1)); hfcpci_fill_dfifo() 710 maxlen = le16_to_cpu(df->za[df->f2 & D_FREG_MASK].z2) - hfcpci_fill_dfifo() 711 le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1) - 1; hfcpci_fill_dfifo() 723 new_z1 = (le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1) + count) & hfcpci_fill_dfifo() 727 dst = df->data + le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1); hfcpci_fill_dfifo() 728 maxlen = D_FIFO_SIZE - le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1); hfcpci_fill_dfifo() 786 le16_to_cpu(*z1t), le16_to_cpu(*z2t)); hfcpci_fill_fifo() 787 fcnt = le16_to_cpu(*z2t) - le16_to_cpu(*z1t); hfcpci_fill_fifo() 794 new_z1 = le16_to_cpu(*z1t) + count; hfcpci_fill_fifo() 798 dst = bdata + (le16_to_cpu(*z1t) - B_SUB_VAL); hfcpci_fill_fifo() 799 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - le16_to_cpu(*z1t); hfcpci_fill_fifo() 828 new_z1 = le16_to_cpu(*z1t) + count; hfcpci_fill_fifo() 834 dst = bdata + (le16_to_cpu(*z1t) - B_SUB_VAL); hfcpci_fill_fifo() 835 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - le16_to_cpu(*z1t); hfcpci_fill_fifo() 875 maxlen = le16_to_cpu(bz->za[bz->f2].z2) - hfcpci_fill_fifo() 876 le16_to_cpu(bz->za[bz->f1].z1) - 1; hfcpci_fill_fifo() 889 new_z1 = le16_to_cpu(bz->za[bz->f1].z1) + count; hfcpci_fill_fifo() 896 dst = bdata + (le16_to_cpu(bz->za[bz->f1].z1) - B_SUB_VAL); hfcpci_fill_fifo() 897 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - le16_to_cpu(bz->za[bz->f1].z1); hfcpci_fill_fifo()
|
/linux-4.4.14/net/bluetooth/ |
H A D | a2mp.c | 127 if (le16_to_cpu(hdr->len) < sizeof(*rej)) a2mp_command_rej() 130 BT_DBG("ident %d reason %d", hdr->ident, le16_to_cpu(rej->reason)); a2mp_command_rej() 141 u16 len = le16_to_cpu(hdr->len); a2mp_discover_req() 152 ext_feat = le16_to_cpu(req->ext_feat); a2mp_discover_req() 154 BT_DBG("mtu %d efm 0x%4.4x", le16_to_cpu(req->mtu), ext_feat); a2mp_discover_req() 201 u16 len = le16_to_cpu(hdr->len); a2mp_discover_rsp() 212 ext_feat = le16_to_cpu(rsp->ext_feat); a2mp_discover_rsp() 214 BT_DBG("mtu %d efm 0x%4.4x", le16_to_cpu(rsp->mtu), ext_feat); a2mp_discover_rsp() 306 if (le16_to_cpu(hdr->len) < sizeof(*req)) a2mp_getinfo_req() 346 if (le16_to_cpu(hdr->len) < sizeof(*rsp)) a2mp_getinfo_rsp() 373 if (le16_to_cpu(hdr->len) < sizeof(*req)) a2mp_getampassoc_req() 413 u16 len = le16_to_cpu(hdr->len); a2mp_getampassoc_rsp() 480 if (le16_to_cpu(hdr->len) < sizeof(*req)) a2mp_createphyslink_req() 506 size_t assoc_len = le16_to_cpu(hdr->len) - sizeof(*req); a2mp_createphyslink_req() 546 skb_pull(skb, le16_to_cpu(hdr->len)); a2mp_createphyslink_req() 558 if (le16_to_cpu(hdr->len) < sizeof(*req)) a2mp_discphyslink_req() 598 skb_pull(skb, le16_to_cpu(hdr->len)); a2mp_cmd_rsp() 615 len = le16_to_cpu(hdr->len); a2mp_chan_recv_cb()
|
/linux-4.4.14/fs/udf/ |
H A D | misc.c | 221 *ident = le16_to_cpu(tag_p->tagIdent); udf_read_tagged() 241 le16_to_cpu(tag_p->descVersion), block); udf_read_tagged() 246 if (le16_to_cpu(tag_p->descCRCLength) + sizeof(struct tag) > sb->s_blocksize || udf_read_tagged() 247 le16_to_cpu(tag_p->descCRC) == crc_itu_t(0, udf_read_tagged() 249 le16_to_cpu(tag_p->descCRCLength))) udf_read_tagged() 253 le16_to_cpu(tag_p->descCRC), udf_read_tagged() 254 le16_to_cpu(tag_p->descCRCLength)); udf_read_tagged()
|
H A D | directory.c | 144 le16_to_cpu(cfi->lengthOfImpUse) + 3) & ~3; udf_fileident_read() 176 le16_to_cpu(fi->descTag.tagIdent)); udf_get_fileident() 186 fi->lengthFileIdent + le16_to_cpu(fi->lengthOfImpUse); udf_get_fileident()
|
H A D | udfend.h | 12 out.partitionReferenceNum = le16_to_cpu(in.partitionReferenceNum); lelb_to_cpu()
|
H A D | super.c | 654 int write_rev = le16_to_cpu(lvidiu->minUDFWriteRev); udf_remount_fs() 925 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, udf_load_pvoldesc() 926 ts->minute, le16_to_cpu(ts->typeAndTimezone)); udf_load_pvoldesc() 1053 UDF_SB(sb)->s_serial_number = le16_to_cpu(fset->descTag.tagSerialNum); udf_load_fileset() 1253 le16_to_cpu(vat20->lengthHeader); udf_load_vat() 1289 partitionNumber = le16_to_cpu(p->partitionNumber); udf_load_partdesc() 1380 sdata->s_packet_len = le16_to_cpu(spm->packetLength); udf_load_sparable_map() 1404 sizeof(*st) + le16_to_cpu(st->reallocationTableLen) > udf_load_sparable_map() 1458 map->s_volumeseqnum = le16_to_cpu(gpm1->volSeqNum); udf_load_logicalvol() 1459 map->s_partition_num = le16_to_cpu(gpm1->partitionNum); udf_load_logicalvol() 1467 le16_to_cpu(((__le16 *)upm2->partIdent. udf_load_logicalvol() 1510 le16_to_cpu(mdm->alignUnitSize); udf_load_logicalvol() 1515 le16_to_cpu(*(__le16 *) udf_load_logicalvol() 1518 le16_to_cpu(mdm->partitionNum)); udf_load_logicalvol() 1534 map->s_volumeseqnum = le16_to_cpu(upm2->volSeqNum); udf_load_logicalvol() 1535 map->s_partition_num = le16_to_cpu(upm2->partitionNum); udf_load_logicalvol() 1985 le16_to_cpu(lvid->descTag.descCRCLength))); udf_open_lvid() 2013 if (UDF_MAX_WRITE_VERSION > le16_to_cpu(lvidiu->maxUDFWriteRev)) udf_close_lvid() 2015 if (sbi->s_udfrev > le16_to_cpu(lvidiu->minUDFReadRev)) udf_close_lvid() 2017 if (sbi->s_udfrev > le16_to_cpu(lvidiu->minUDFWriteRev)) udf_close_lvid() 2023 le16_to_cpu(lvid->descTag.descCRCLength))); udf_close_lvid() 2171 minUDFReadRev = le16_to_cpu(lvidiu->minUDFReadRev); udf_fill_super() 2172 minUDFWriteRev = le16_to_cpu(lvidiu->minUDFWriteRev); udf_fill_super() 2217 le16_to_cpu(ts.year), ts.month, ts.day, udf_fill_super() 2218 ts.hour, ts.minute, le16_to_cpu(ts.typeAndTimezone)); udf_fill_super()
|
H A D | udftime.c | 91 u16 typeAndTimezone = le16_to_cpu(src.typeAndTimezone); udf_disk_stamp_to_time() 92 u16 year = le16_to_cpu(src.year); udf_disk_stamp_to_time()
|
/linux-4.4.14/arch/parisc/lib/ |
H A D | io.c | 353 outw(le16_to_cpu(l >> 16), port); outsw() 354 outw(le16_to_cpu(l & 0xffff), port); outsw() 357 outw(le16_to_cpu(*(unsigned short*)p), port); outsw() 363 outw(le16_to_cpu(*(unsigned short*)p), port); outsw() 371 outw(le16_to_cpu(l >> 16), port); outsw() 372 outw(le16_to_cpu(l & 0xffff), port); outsw() 375 outw(le16_to_cpu(*(unsigned short *)p), port); outsw() 391 outw(le16_to_cpu(l | l2 >> 8), port); outsw() 395 outw (le16_to_cpu(l | l2>>8), port); outsw()
|
/linux-4.4.14/drivers/usb/storage/ |
H A D | usual-tables.c | 113 vid = le16_to_cpu(udev->descriptor.idVendor); usb_usual_ignore_device() 114 pid = le16_to_cpu(udev->descriptor.idProduct); usb_usual_ignore_device() 115 bcd = le16_to_cpu(udev->descriptor.bcdDevice); usb_usual_ignore_device()
|
H A D | uas-detect.h | 96 if (le16_to_cpu(udev->descriptor.idVendor) == 0x174c && uas_use_uas_driver() 97 (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || uas_use_uas_driver() 98 le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) { uas_use_uas_driver()
|
H A D | sierra_ms.c | 79 swocInfo->LinuxSKU = le16_to_cpu(swocInfo->LinuxSKU); sierra_get_swoc_info() 80 swocInfo->LinuxVer = le16_to_cpu(swocInfo->LinuxVer); sierra_get_swoc_info()
|
H A D | usb.c | 287 u16 bcdDevice = le16_to_cpu(us->pusb_dev->descriptor.bcdDevice); fill_inquiry_response() 442 le16_to_cpu(us->pusb_dev->descriptor.idVendor), associate_dev() 443 le16_to_cpu(us->pusb_dev->descriptor.idProduct), associate_dev() 444 le16_to_cpu(us->pusb_dev->descriptor.bcdDevice)); associate_dev() 473 u16 vid = le16_to_cpu(udev->descriptor.idVendor); usb_stor_adjust_quirks() 474 u16 pid = le16_to_cpu(udev->descriptor.idProduct); usb_stor_adjust_quirks() 609 le16_to_cpu(dev->descriptor.idVendor), get_device_info() 610 le16_to_cpu(dev->descriptor.idProduct), get_device_info() 640 le16_to_cpu(ddesc->idVendor), get_device_info() 641 le16_to_cpu(ddesc->idProduct), get_device_info() 642 le16_to_cpu(ddesc->bcdDevice), get_device_info()
|
/linux-4.4.14/drivers/staging/vt6655/ |
H A D | dpc.c | 57 frame_size = le16_to_cpu(*((__le16 *)(skb->data + 2))); vnt_rx_data() 146 frame_size = le16_to_cpu(curr_rd->rd1.req_count) vnt_receive_frame() 147 - le16_to_cpu(curr_rd->rd0.res_count); vnt_receive_frame()
|
/linux-4.4.14/drivers/net/usb/ |
H A D | cdc_ncm.c | 296 NCM_PARM_ATTR(bmNtbFormatsSupported, "0x%04x", le16_to_cpu); 298 NCM_PARM_ATTR(wNdpInDivisor, "%u", le16_to_cpu); 299 NCM_PARM_ATTR(wNdpInPayloadRemainder, "%u", le16_to_cpu); 300 NCM_PARM_ATTR(wNdpInAlignment, "%u", le16_to_cpu); 302 NCM_PARM_ATTR(wNdpOutDivisor, "%u", le16_to_cpu); 303 NCM_PARM_ATTR(wNdpOutPayloadRemainder, "%u", le16_to_cpu); 304 NCM_PARM_ATTR(wNdpOutAlignment, "%u", le16_to_cpu); 305 NCM_PARM_ATTR(wNtbOutMaxDatagrams, "%u", le16_to_cpu); 433 return le16_to_cpu(ctx->mbim_desc->wMaxSegmentSize); cdc_ncm_max_dgram_size() 435 return le16_to_cpu(ctx->ether_desc->wMaxSegmentSize); cdc_ncm_max_dgram_size() 475 if (le16_to_cpu(ctx->ncm_parm.bmNtbFormatsSupported) & cdc_ncm_init() 490 ctx->tx_remainder = le16_to_cpu(ctx->ncm_parm.wNdpOutPayloadRemainder); cdc_ncm_init() 491 ctx->tx_modulus = le16_to_cpu(ctx->ncm_parm.wNdpOutDivisor); cdc_ncm_init() 492 ctx->tx_ndp_modulus = le16_to_cpu(ctx->ncm_parm.wNdpOutAlignment); cdc_ncm_init() 494 ctx->tx_max_datagrams = le16_to_cpu(ctx->ncm_parm.wNtbOutMaxDatagrams); cdc_ncm_init() 542 if (le16_to_cpu(max_datagram_size) == ctx->max_datagram_size) cdc_ncm_set_dgram_size() 558 mbim_mtu = le16_to_cpu(ctx->mbim_extended_desc->wMTU); cdc_ncm_set_dgram_size() 987 size_t ndpoffset = le16_to_cpu(nth16->wNdpIndex); cdc_ncm_ndp() 1010 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); cdc_ncm_ndp() 1132 ndplen = le16_to_cpu(ndp16->wLength); cdc_ncm_fill_tx_frame() 1333 len = le16_to_cpu(nth16->wBlockLength); cdc_ncm_rx_verify_nth16() 1341 if ((ctx->rx_seq + 1) != le16_to_cpu(nth16->wSequence) && cdc_ncm_rx_verify_nth16() 1342 (ctx->rx_seq || le16_to_cpu(nth16->wSequence)) && cdc_ncm_rx_verify_nth16() 1343 !((ctx->rx_seq == 0xffff) && !le16_to_cpu(nth16->wSequence))) { cdc_ncm_rx_verify_nth16() 1346 ctx->rx_seq, le16_to_cpu(nth16->wSequence)); cdc_ncm_rx_verify_nth16() 1348 ctx->rx_seq = le16_to_cpu(nth16->wSequence); cdc_ncm_rx_verify_nth16() 1350 ret = le16_to_cpu(nth16->wNdpIndex); cdc_ncm_rx_verify_nth16() 1370 if (le16_to_cpu(ndp16->wLength) < USB_CDC_NCM_NDP16_LENGTH_MIN) { cdc_ncm_rx_verify_ndp16() 1372 le16_to_cpu(ndp16->wLength)); cdc_ncm_rx_verify_ndp16() 1376 ret = ((le16_to_cpu(ndp16->wLength) - cdc_ncm_rx_verify_ndp16() 1426 offset = le16_to_cpu(dpe16->wDatagramIndex); cdc_ncm_rx_fixup() 1427 len = le16_to_cpu(dpe16->wDatagramLength); cdc_ncm_rx_fixup() 1461 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); cdc_ncm_rx_fixup()
|
/linux-4.4.14/drivers/usb/gadget/function/ |
H A D | f_uac1.c | 373 le16_to_cpu(data)); f_audio_complete() 388 u8 id = ((le16_to_cpu(ctrl->wIndex) >> 8) & 0xFF); audio_set_intf_req() 389 u16 len = le16_to_cpu(ctrl->wLength); audio_set_intf_req() 390 u16 w_value = le16_to_cpu(ctrl->wValue); audio_set_intf_req() 425 u8 id = ((le16_to_cpu(ctrl->wIndex) >> 8) & 0xFF); audio_get_intf_req() 426 u16 len = le16_to_cpu(ctrl->wLength); audio_get_intf_req() 427 u16 w_value = le16_to_cpu(ctrl->wValue); audio_get_intf_req() 461 u16 ep = le16_to_cpu(ctrl->wIndex); audio_set_endpoint_req() 462 u16 len = le16_to_cpu(ctrl->wLength); audio_set_endpoint_req() 463 u16 w_value = le16_to_cpu(ctrl->wValue); audio_set_endpoint_req() 497 u8 ep = ((le16_to_cpu(ctrl->wIndex) >> 8) & 0xFF); audio_get_endpoint_req() 498 u16 len = le16_to_cpu(ctrl->wLength); audio_get_endpoint_req() 499 u16 w_value = le16_to_cpu(ctrl->wValue); audio_get_endpoint_req() 526 u16 w_index = le16_to_cpu(ctrl->wIndex); f_audio_setup() 527 u16 w_value = le16_to_cpu(ctrl->wValue); f_audio_setup() 528 u16 w_length = le16_to_cpu(ctrl->wLength); f_audio_setup()
|
H A D | f_uac2.c | 998 le16_to_cpu(ep_desc->wMaxPacketSize))); set_ep_max_packet_size() 1280 u16 w_length = le16_to_cpu(cr->wLength); in_rq_cur() 1281 u16 w_index = le16_to_cpu(cr->wIndex); in_rq_cur() 1282 u16 w_value = le16_to_cpu(cr->wValue); in_rq_cur() 1321 u16 w_length = le16_to_cpu(cr->wLength); in_rq_range() 1322 u16 w_index = le16_to_cpu(cr->wIndex); in_rq_range() 1323 u16 w_value = le16_to_cpu(cr->wValue); in_rq_range() 1371 u16 w_length = le16_to_cpu(cr->wLength); out_rq_cur() 1372 u16 w_value = le16_to_cpu(cr->wValue); out_rq_cur() 1386 u16 w_index = le16_to_cpu(cr->wIndex); setup_rq_inf() 1410 u16 w_length = le16_to_cpu(cr->wLength); afunc_setup()
|
/linux-4.4.14/drivers/staging/gdm724x/ |
H A D | gdm_endian.c | 36 return le16_to_cpu(x); gdm_dev16_to_cpu()
|
/linux-4.4.14/drivers/net/wireless/prism54/ |
H A D | oid_mgt.c | 292 bss->age = le16_to_cpu(bss->age); mgt_le_to_cpu() 293 bss->channel = le16_to_cpu(bss->channel); mgt_le_to_cpu() 294 bss->capinfo = le16_to_cpu(bss->capinfo); mgt_le_to_cpu() 295 bss->rates = le16_to_cpu(bss->rates); mgt_le_to_cpu() 296 bss->basic_rates = le16_to_cpu(bss->basic_rates); mgt_le_to_cpu() 310 freq->nr = le16_to_cpu(freq->nr); mgt_le_to_cpu() 312 freq->mhz[i] = le16_to_cpu(freq->mhz[i]); mgt_le_to_cpu() 317 mlme->id = le16_to_cpu(mlme->id); mgt_le_to_cpu() 318 mlme->state = le16_to_cpu(mlme->state); mgt_le_to_cpu() 319 mlme->code = le16_to_cpu(mlme->code); mgt_le_to_cpu() 324 mlme->id = le16_to_cpu(mlme->id); mgt_le_to_cpu() 325 mlme->state = le16_to_cpu(mlme->state); mgt_le_to_cpu() 326 mlme->code = le16_to_cpu(mlme->code); mgt_le_to_cpu() 327 mlme->size = le16_to_cpu(mlme->size); mgt_le_to_cpu() 332 attach->id = le16_to_cpu(attach->id); mgt_le_to_cpu() 333 attach->size = le16_to_cpu(attach->size); mgt_le_to_cpu()
|
/linux-4.4.14/drivers/net/wireless/ti/wl18xx/ |
H A D | event.c | 168 le16_to_cpu(mbox->rx_ba_role_id_bitmap), wl18xx_process_mailbox_events() 169 le16_to_cpu(mbox->rx_ba_allowed_bitmap)); wl18xx_process_mailbox_events() 173 le16_to_cpu(mbox->bss_loss_bitmap)); wl18xx_process_mailbox_events() 177 le16_to_cpu(mbox->channel_switch_role_id_bitmap), wl18xx_process_mailbox_events()
|
/linux-4.4.14/net/caif/ |
H A D | caif_usb.c | 141 le16_to_cpu(usbdev->descriptor.idVendor), cfusbl_device_notify() 142 le16_to_cpu(usbdev->descriptor.idProduct)); cfusbl_device_notify() 145 if (!(le16_to_cpu(usbdev->descriptor.idVendor) == STE_USB_VID && cfusbl_device_notify() 146 le16_to_cpu(usbdev->descriptor.idProduct) == STE_USB_PID_CAIF)) cfusbl_device_notify()
|
H A D | cffrml.c | 92 len = le16_to_cpu(tmp); cffrml_receive() 110 hdrchks = le16_to_cpu(tmp); cffrml_receive()
|
/linux-4.4.14/fs/cifs/ |
H A D | smb2misc.c | 138 le16_to_cpu(hdr->StructureSize)); smb2_check_message() 142 command = le16_to_cpu(hdr->Command); smb2_check_message() 153 le16_to_cpu(pdu->StructureSize2), command); smb2_check_message() 156 && (le16_to_cpu(pdu->StructureSize2) != 44) smb2_check_message() 157 && (le16_to_cpu(pdu->StructureSize2) != 36)) { smb2_check_message() 160 le16_to_cpu(pdu->StructureSize2)); smb2_check_message() 256 *off = le16_to_cpu( smb2_get_data_area_len() 258 *len = le16_to_cpu( smb2_get_data_area_len() 262 *off = le16_to_cpu( smb2_get_data_area_len() 264 *len = le16_to_cpu( smb2_get_data_area_len() 274 *off = le16_to_cpu( smb2_get_data_area_len() 284 *off = le16_to_cpu( smb2_get_data_area_len() 342 int len = 4 + le16_to_cpu(pdu->hdr.StructureSize); smb2_calc_size() 348 len += le16_to_cpu(pdu->StructureSize2); smb2_calc_size() 350 if (has_smb2_data_area[le16_to_cpu(hdr->Command)] == false) smb2_calc_size() 566 if (le16_to_cpu(rsp->StructureSize) == 44) smb2_is_valid_oplock_break()
|
H A D | cifssmb.c | 456 server->sec_mode = le16_to_cpu(rsp->SecurityMode); decode_lanman_negprot_rsp() 458 le16_to_cpu(rsp->MaxMpxCount), decode_lanman_negprot_rsp() 461 server->maxBuf = le16_to_cpu(rsp->MaxBufSize); decode_lanman_negprot_rsp() 464 if ((le16_to_cpu(rsp->RawMode) & RAW_ENABLE) == RAW_ENABLE) { decode_lanman_negprot_rsp() 471 tmp = (__s16)le16_to_cpu(rsp->ServerTimeZone); decode_lanman_negprot_rsp() 587 server->dialect = le16_to_cpu(pSMBr->DialectIndex); CIFSSMBNegotiate() 613 server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), CIFSSMBNegotiate() 621 server->timeAdj = (int)(__s16)le16_to_cpu(pSMBr->ServerTimeZone); CIFSSMBNegotiate() 1082 + le16_to_cpu(pSMBr->t2.DataOffset)); CIFSPOSIXCreate() 1084 *pOplock = le16_to_cpu(psx_rsp->OplockFlags); CIFSPOSIXCreate() 1256 cpu_to_le32(le16_to_cpu(pSMBr->FileAttributes)); SMBLegacyOpen() 1730 int data_length = le16_to_cpu(pSMBr->DataLengthHigh); CIFSSMBRead() 1732 data_length += le16_to_cpu(pSMBr->DataLength); CIFSSMBRead() 1744 le16_to_cpu(pSMBr->DataOffset); CIFSSMBRead() 1878 *nbytes = le16_to_cpu(pSMBr->CountHigh); CIFSSMBWrite() 1880 *nbytes += le16_to_cpu(pSMBr->Count); CIFSSMBWrite() 2064 written = le16_to_cpu(smb->CountHigh); cifs_writev_callback() 2066 written += le16_to_cpu(smb->Count); cifs_writev_callback() 2263 *nbytes = le16_to_cpu(pSMBr->CountHigh); CIFSSMBWrite2() 2265 *nbytes += le16_to_cpu(pSMBr->Count); CIFSSMBWrite2() 2493 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBPosixLock() 2494 data_count = le16_to_cpu(pSMBr->t2.DataCount); CIFSSMBPosixLock() 2795 rc, le16_to_cpu(pSMBr->CopyCount)); CIFSSMBCopy() 3127 u16 count = le16_to_cpu(pSMBr->t2.DataCount); CIFSSMBUnixQuerySymLink() 3130 le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBUnixQuerySymLink() 3239 sub_len = le16_to_cpu(reparse_buf->ReparseDataLength); CIFSSMBQuerySymLink() 3255 sub_start = le16_to_cpu(reparse_buf->SubstituteNameOffset) + CIFSSMBQuerySymLink() 3257 sub_len = le16_to_cpu(reparse_buf->SubstituteNameLength); CIFSSMBQuerySymLink() 3366 if (le16_to_cpu(cifs_acl->version) != CIFS_ACL_VERSION) cifs_copy_posix_acl() 3370 count = le16_to_cpu(cifs_acl->access_entry_count); cifs_copy_posix_acl() 3381 count = le16_to_cpu(cifs_acl->access_entry_count); cifs_copy_posix_acl() 3386 count = le16_to_cpu(cifs_acl->default_entry_count); cifs_copy_posix_acl() 3416 cifs_ace->cifs_e_perm = le16_to_cpu(local_ace->e_perm); convert_ace_to_cifs_ace() 3417 cifs_ace->cifs_e_tag = le16_to_cpu(local_ace->e_tag); convert_ace_to_cifs_ace() 3555 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBGetPosixACL() 3556 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); CIFSSMBGetPosixACL() 3707 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSGetExtAttr() 3708 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); CIFSGetExtAttr() 4034 cpu_to_le32(le16_to_cpu(pSMBr->attr)); SMBQueryInformation() 4100 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBQFileInfo() 4191 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBQPathInfo() 4268 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBUnixQFileInfo() 4352 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBUnixQPathInfo() 4489 le16_to_cpu(pSMBr->t2.DataOffset); CIFSFindFirst() 4491 le16_to_cpu(pSMBr->t2.ParameterOffset)); CIFSFindFirst() 4499 le16_to_cpu(parms->SearchCount); CIFSFindFirst() 4502 lnoff = le16_to_cpu(parms->LastNameOffset); CIFSFindFirst() 4609 le16_to_cpu(pSMBr->t2.ParameterOffset); CIFSFindNext() 4612 le16_to_cpu(pSMBr->t2.DataOffset); CIFSFindNext() 4626 le16_to_cpu(parms->SearchCount); CIFSFindNext() 4629 lnoff = le16_to_cpu(parms->LastNameOffset); CIFSFindNext() 4761 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSGetSrvInodeNumber() 4762 __u16 count = le16_to_cpu(pSMBr->t2.DataCount); CIFSGetSrvInodeNumber() 4804 *num_of_nodes = le16_to_cpu(pSMBr->NumberOfReferrals); parse_DFS_referrals() 4816 le16_to_cpu(ref->VersionNumber)); parse_DFS_referrals() 4823 le16_to_cpu(pSMBr->t2.DataCount); parse_DFS_referrals() 4852 le16_to_cpu(pSMBr->PathConsumed), parse_DFS_referrals() 4856 node->path_consumed = le16_to_cpu(pSMBr->PathConsumed); parse_DFS_referrals() 4858 node->server_type = le16_to_cpu(ref->ServerType); parse_DFS_referrals() 4859 node->ref_flag = le16_to_cpu(ref->ReferralEntryFlags); parse_DFS_referrals() 4862 temp = (char *)ref + le16_to_cpu(ref->DfsPathOffset); parse_DFS_referrals() 4872 temp = (char *)ref + le16_to_cpu(ref->NetworkAddressOffset); parse_DFS_referrals() 4986 get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset)); CIFSGetDFSRefer() 5055 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); SMBOldQFSInfo() 5062 le16_to_cpu(response_data->BytesPerSector) * SMBOldQFSInfo() 5135 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBQFSInfo() 5216 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBQFSAttributeInfo() 5287 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBQFSDeviceInfo() 5356 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBQFSUnixInfo() 5501 __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBQFSPosixInfo() 6255 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); CIFSSMBQAllEAs() 6295 value_len = le16_to_cpu(temp_fea->value_len); CIFSSMBQAllEAs()
|
/linux-4.4.14/include/linux/ |
H A D | virtio_byteorder.h | 18 return le16_to_cpu((__force __le16)val); __virtio16_to_cpu()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
H A D | vga.h | 33 return le16_to_cpu(*addr); scr_readw()
|
/linux-4.4.14/arch/mips/include/asm/ |
H A D | vga.h | 40 return le16_to_cpu(*addr); scr_readw()
|
/linux-4.4.14/drivers/net/wireless/ti/wl12xx/ |
H A D | event.c | 106 le16_to_cpu(mbox->sta_tx_retry_exceeded)); wl12xx_process_mailbox_events() 110 le16_to_cpu(mbox->sta_aging_status)); wl12xx_process_mailbox_events()
|
/linux-4.4.14/drivers/net/wireless/hostap/ |
H A D | hostap_proc.c | 360 le16_to_cpu(scanres->chid), prism2_scan_results_proc_show() 361 (s16) le16_to_cpu(scanres->anl), prism2_scan_results_proc_show() 362 (s16) le16_to_cpu(scanres->sl), prism2_scan_results_proc_show() 363 le16_to_cpu(scanres->beacon_interval), prism2_scan_results_proc_show() 364 le16_to_cpu(scanres->capability), prism2_scan_results_proc_show() 365 le16_to_cpu(scanres->rate), prism2_scan_results_proc_show() 367 le16_to_cpu(scanres->atim)); prism2_scan_results_proc_show() 378 len = le16_to_cpu(scanres->ssid_len); prism2_scan_results_proc_show()
|
H A D | hostap_info.c | 26 local->comm_tallies.name += le16_to_cpu(tallies->name) prism2_info_commtallies16() 226 dev->name, req.bssid, le16_to_cpu(req.channel)); prism2_host_roaming() 321 copy_len = result_size = le16_to_cpu(*pos); prism2_info_hostscanresults() 379 switch (le16_to_cpu(info->type)) { hostap_info_process() 401 local->dev->name, le16_to_cpu(info->len), hostap_info_process() 402 le16_to_cpu(info->type)); hostap_info_process()
|
H A D | hostap_80211_tx.c | 33 fc = le16_to_cpu(hdr->frame_control); hostap_dump_tx_80211() 45 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), hostap_dump_tx_80211() 46 le16_to_cpu(hdr->seq_ctrl)); hostap_dump_tx_80211() 297 fc = le16_to_cpu(hdr->frame_control); hostap_mgmt_start_xmit() 436 fc = le16_to_cpu(hdr->frame_control); hostap_master_start_xmit()
|
H A D | hostap_download.c | 160 len = le16_to_cpu(pda[pos]); prism2_pda_ok() 161 pdr = le16_to_cpu(pda[pos + 1]); prism2_pda_ok() 619 le16_to_cpu(dlbuffer.len), prism2_download_nonvolatile() 620 le16_to_cpu(dlbuffer.page), prism2_download_nonvolatile() 621 le16_to_cpu(dlbuffer.offset)); prism2_download_nonvolatile() 623 bufaddr = (le16_to_cpu(dlbuffer.page) << 7) + le16_to_cpu(dlbuffer.offset); prism2_download_nonvolatile()
|
H A D | hostap_80211_rx.c | 36 fc = le16_to_cpu(hdr->frame_control); hostap_dump_rx_80211() 48 printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id), hostap_dump_rx_80211() 49 le16_to_cpu(hdr->seq_ctrl)); hostap_dump_rx_80211() 92 fc = le16_to_cpu(fhdr->frame_control); prism2_rx_80211() 259 sc = le16_to_cpu(hdr->seq_ctrl); prism2_frag_cache_get() 310 sc = le16_to_cpu(hdr->seq_ctrl); prism2_frag_cache_invalidate() 453 bss->capab_info = le16_to_cpu(mgmt->u.beacon.capab_info); hostap_rx_sta_beacon() 620 fc = le16_to_cpu(hdr->frame_control); hostap_is_eapol_frame() 753 fc = le16_to_cpu(hdr->frame_control); hostap_80211_rx() 756 sc = le16_to_cpu(hdr->seq_ctrl); hostap_80211_rx()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_ctx.c | 355 for (i = 0; i < le16_to_cpu(prsp->num_rds_rings); i++) { qlcnic_82xx_fw_cmd_create_rx_ctx() 364 for (i = 0; i < le16_to_cpu(prsp->num_sds_rings); i++) { qlcnic_82xx_fw_cmd_create_rx_ctx() 377 recv_ctx->context_id = le16_to_cpu(prsp->context_id); qlcnic_82xx_fw_cmd_create_rx_ctx() 497 tx_ring->ctx_id = le16_to_cpu(prsp->context_id); qlcnic_82xx_fw_cmd_create_tx_ctx() 876 npar_info->pci_func = le16_to_cpu(nic_info->pci_func); qlcnic_82xx_get_nic_info() 877 npar_info->op_mode = le16_to_cpu(nic_info->op_mode); qlcnic_82xx_get_nic_info() 878 npar_info->min_tx_bw = le16_to_cpu(nic_info->min_tx_bw); qlcnic_82xx_get_nic_info() 879 npar_info->max_tx_bw = le16_to_cpu(nic_info->max_tx_bw); qlcnic_82xx_get_nic_info() 880 npar_info->phys_port = le16_to_cpu(nic_info->phys_port); qlcnic_82xx_get_nic_info() 881 npar_info->switch_mode = le16_to_cpu(nic_info->switch_mode); qlcnic_82xx_get_nic_info() 882 npar_info->max_tx_ques = le16_to_cpu(nic_info->max_tx_ques); qlcnic_82xx_get_nic_info() 883 npar_info->max_rx_ques = le16_to_cpu(nic_info->max_rx_ques); qlcnic_82xx_get_nic_info() 885 npar_info->max_mtu = le16_to_cpu(nic_info->max_mtu); qlcnic_82xx_get_nic_info() 983 pci_info->id = le16_to_cpu(npar->id); qlcnic_82xx_get_pci_info() 984 pci_info->active = le16_to_cpu(npar->active); qlcnic_82xx_get_pci_info() 987 pci_info->type = le16_to_cpu(npar->type); qlcnic_82xx_get_pci_info() 991 le16_to_cpu(npar->default_port); qlcnic_82xx_get_pci_info() 993 le16_to_cpu(npar->tx_min_bw); qlcnic_82xx_get_pci_info() 995 le16_to_cpu(npar->tx_max_bw); qlcnic_82xx_get_pci_info() 1099 esw_stats->context_id = le16_to_cpu(stats->context_id); qlcnic_get_port_stats() 1100 esw_stats->version = le16_to_cpu(stats->version); qlcnic_get_port_stats() 1101 esw_stats->size = le16_to_cpu(stats->size); qlcnic_get_port_stats()
|
/linux-4.4.14/drivers/net/wireless/ipw2x00/ |
H A D | libipw_rx.c | 44 u16 fc = le16_to_cpu(hdr->frame_control); libipw_monitor_rx() 97 sc = le16_to_cpu(hdr->seq_ctl); libipw_frag_cache_get() 147 sc = le16_to_cpu(hdr->seq_ctl); libipw_frag_cache_invalidate() 243 fc = le16_to_cpu(hdr->frame_ctl); libipw_is_eapol_frame() 282 hdrlen = libipw_get_hdrlen(le16_to_cpu(hdr->frame_ctl)); libipw_rx_frame_decrypt() 314 hdrlen = libipw_get_hdrlen(le16_to_cpu(hdr->frame_ctl)); libipw_rx_frame_decrypt_msdu() 362 fc = le16_to_cpu(hdr->frame_ctl); libipw_rx() 365 sc = le16_to_cpu(hdr->seq_ctl); libipw_rx() 853 fc = le16_to_cpu(hdr->frame_ctl); libipw_rx_any() 1034 txop = le16_to_cpu(ac_params->tx_op_limit) * 32; libipw_qos_convert_ac_to_parameters() 1339 //network->atim_window = le16_to_cpu(frame->aid) & (0x3FFF); libipw_handle_assoc_resp() 1340 network->atim_window = le16_to_cpu(frame->aid); libipw_handle_assoc_resp() 1341 network->listen_interval = le16_to_cpu(frame->status); libipw_handle_assoc_resp() 1343 network->capability = le16_to_cpu(frame->capability); libipw_handle_assoc_resp() 1396 network->capability = le16_to_cpu(beacon->capability); libipw_network_init() 1400 network->beacon_interval = le16_to_cpu(beacon->beacon_interval); libipw_network_init() 1527 return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON); is_beacon() 1645 switch (WLAN_FC_GET_STYPE(le16_to_cpu(header->frame_ctl))) { libipw_rx_mgt() 1648 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1657 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1663 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1675 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1686 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1697 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1722 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1735 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1753 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt() 1757 WLAN_FC_GET_STYPE(le16_to_cpu libipw_rx_mgt()
|
/linux-4.4.14/drivers/staging/rtl8192e/ |
H A D | rtllib_rx.c | 99 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_frag_cache_get() 100 u16 sc = le16_to_cpu(hdr->seq_ctl); rtllib_frag_cache_get() 111 tid = le16_to_cpu(hdr_4addrqos->qos_ctl) & RTLLIB_QCTL_TID; rtllib_frag_cache_get() 116 tid = le16_to_cpu(hdr_3addrqos->qos_ctl) & RTLLIB_QCTL_TID; rtllib_frag_cache_get() 170 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_frag_cache_invalidate() 171 u16 sc = le16_to_cpu(hdr->seq_ctl); rtllib_frag_cache_invalidate() 181 tid = le16_to_cpu(hdr_4addrqos->qos_ctl) & RTLLIB_QCTL_TID; rtllib_frag_cache_invalidate() 186 tid = le16_to_cpu(hdr_3addrqos->qos_ctl) & RTLLIB_QCTL_TID; rtllib_frag_cache_invalidate() 262 fc = le16_to_cpu(hdr->frame_ctl); rtllib_is_eapol_frame() 311 hdrlen = rtllib_get_hdrlen(le16_to_cpu(hdr->frame_ctl)); rtllib_rx_frame_decrypt() 351 hdrlen = rtllib_get_hdrlen(le16_to_cpu(hdr->frame_ctl)); rtllib_rx_frame_decrypt_msdu() 372 u16 fc = le16_to_cpu(header->frame_ctl); is_duplicate_packet() 373 u16 sc = le16_to_cpu(header->seq_ctl); is_duplicate_packet() 385 tid = le16_to_cpu(hdr_4addrqos->qos_ctl) & RTLLIB_QCTL_TID; is_duplicate_packet() 390 tid = le16_to_cpu(hdr_3addrqos->qos_ctl) & RTLLIB_QCTL_TID; is_duplicate_packet() 776 u16 fc = le16_to_cpu(hdr->frame_ctl); parse_subframe() 787 SeqNum = WLAN_GET_SEQ_SEQ(le16_to_cpu(hdr->seq_ctl)); parse_subframe() 907 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_get_hdrlen() 932 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_check_duplicate() 935 sc = le16_to_cpu(hdr->seq_ctl); rtllib_rx_check_duplicate() 971 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_extract_addr() 1058 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_get_crypt() 1099 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_decrypt() 1100 sc = le16_to_cpu(hdr->seq_ctl); rtllib_rx_decrypt() 1327 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_InfraAdhoc() 1330 sc = le16_to_cpu(hdr->seq_ctl); rtllib_rx_InfraAdhoc() 1494 u16 fc = le16_to_cpu(hdr->frame_ctl); rtllib_rx_Monitor() 2340 network->capability = le16_to_cpu(beacon->capability); rtllib_network_init() 2344 network->beacon_interval = le16_to_cpu(beacon->beacon_interval); rtllib_network_init() 2593 u16 frame_ctl = le16_to_cpu(beacon->header.frame_ctl); rtllib_process_probe_response() 2602 (le16_to_cpu(beacon->capability) & (1<<0xf)) ? '1' : '0', rtllib_process_probe_response() 2603 (le16_to_cpu(beacon->capability) & (1<<0xe)) ? '1' : '0', rtllib_process_probe_response() 2604 (le16_to_cpu(beacon->capability) & (1<<0xd)) ? '1' : '0', rtllib_process_probe_response() 2605 (le16_to_cpu(beacon->capability) & (1<<0xc)) ? '1' : '0', rtllib_process_probe_response() 2606 (le16_to_cpu(beacon->capability) & (1<<0xb)) ? '1' : '0', rtllib_process_probe_response() 2607 (le16_to_cpu(beacon->capability) & (1<<0xa)) ? '1' : '0', rtllib_process_probe_response() 2608 (le16_to_cpu(beacon->capability) & (1<<0x9)) ? '1' : '0', rtllib_process_probe_response() 2609 (le16_to_cpu(beacon->capability) & (1<<0x8)) ? '1' : '0', rtllib_process_probe_response() 2610 (le16_to_cpu(beacon->capability) & (1<<0x7)) ? '1' : '0', rtllib_process_probe_response() 2611 (le16_to_cpu(beacon->capability) & (1<<0x6)) ? '1' : '0', rtllib_process_probe_response() 2612 (le16_to_cpu(beacon->capability) & (1<<0x5)) ? '1' : '0', rtllib_process_probe_response() 2613 (le16_to_cpu(beacon->capability) & (1<<0x4)) ? '1' : '0', rtllib_process_probe_response() 2614 (le16_to_cpu(beacon->capability) & (1<<0x3)) ? '1' : '0', rtllib_process_probe_response() 2615 (le16_to_cpu(beacon->capability) & (1<<0x2)) ? '1' : '0', rtllib_process_probe_response() 2616 (le16_to_cpu(beacon->capability) & (1<<0x1)) ? '1' : '0', rtllib_process_probe_response() 2617 (le16_to_cpu(beacon->capability) & (1<<0x0)) ? '1' : '0'); rtllib_process_probe_response() 2749 if ((WLAN_FC_GET_STYPE(le16_to_cpu(header->frame_ctl)) != rtllib_rx_mgt() 2751 (WLAN_FC_GET_STYPE(le16_to_cpu(header->frame_ctl)) != rtllib_rx_mgt() 2755 switch (WLAN_FC_GET_STYPE(le16_to_cpu(header->frame_ctl))) { rtllib_rx_mgt() 2759 WLAN_FC_GET_STYPE(le16_to_cpu(header->frame_ctl))); rtllib_rx_mgt() 2773 WLAN_FC_GET_STYPE(le16_to_cpu(header->frame_ctl))); rtllib_rx_mgt() 2779 WLAN_FC_GET_STYPE(le16_to_cpu(header->frame_ctl))); rtllib_rx_mgt()
|
/linux-4.4.14/drivers/net/wireless/libertas_tf/ |
H A D | cmd.c | 52 copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size)); lbtf_cmd_copyback() 120 priv->regioncode = le16_to_cpu(cmd.regioncode) & 0xFF; lbtf_update_hw_spec() 230 le16_to_cpu(cmdnode->cmdbuf->command)); lbtf_queue_cmd() 252 cmdsize = le16_to_cpu(cmd->size); lbtf_submit_command() 253 command = le16_to_cpu(cmd->command); lbtf_submit_command() 256 command, le16_to_cpu(cmd->seqnum), cmdsize); lbtf_submit_command() 595 le16_to_cpu(cmd->command)); lbtf_execute_next_command() 736 curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command); lbtf_process_rx_command() 737 respcmd = le16_to_cpu(resp->command); lbtf_process_rx_command() 738 result = le16_to_cpu(resp->result); lbtf_process_rx_command() 742 respcmd, le16_to_cpu(resp->seqnum), lbtf_process_rx_command() 743 le16_to_cpu(resp->size)); lbtf_process_rx_command()
|
/linux-4.4.14/net/decnet/ |
H A D | dn_nsp_in.c | 88 le16_to_cpu(cb->src), dn_log_martian() 89 le16_to_cpu(cb->dst), dn_log_martian() 90 le16_to_cpu(cb->src_port), dn_log_martian() 91 le16_to_cpu(cb->dst_port)); dn_log_martian() 145 if ((ack = le16_to_cpu(*ptr)) & 0x8000) { dn_process_ack() 159 if ((ack = le16_to_cpu(*ptr)) & 0x8000) { dn_process_ack() 249 cb->segsize = le16_to_cpu(msg->segsize); dn_find_listener() 356 cb->segsize = le16_to_cpu(*(__le16 *)ptr); dn_nsp_conn_conf() 408 reason = le16_to_cpu(*(__le16 *)skb->data); dn_nsp_disc_init() 475 reason = le16_to_cpu(*(__le16 *)skb->data); dn_nsp_disc_conf() 524 segnum = le16_to_cpu(*(__le16 *)ptr); dn_nsp_linkservice() 621 cb->segnum = segnum = le16_to_cpu(*(__le16 *)skb->data); dn_nsp_otherdata() 649 cb->segnum = segnum = le16_to_cpu(*(__le16 *)skb->data); dn_nsp_data()
|
H A D | af_decnet.c | 170 return &dn_sk_hash[le16_to_cpu(scp->addrloc) & DN_SK_HASH_MASK]; dn_find_list() 183 sk_for_each(sk, &dn_sk_hash[le16_to_cpu(port) & DN_SK_HASH_MASK]) { check_port() 257 for(i = 0; i < le16_to_cpu(addr->sdn_objnamel); i++) { listen_hash() 299 *buf++ = le16_to_cpu(sdn->sdn_objnamel); dn_sockaddr2username() 300 memcpy(buf, sdn->sdn_objname, le16_to_cpu(sdn->sdn_objnamel)); dn_sockaddr2username() 301 len = 3 + le16_to_cpu(sdn->sdn_objnamel); dn_sockaddr2username() 306 *buf++ = le16_to_cpu(sdn->sdn_objnamel); dn_sockaddr2username() 307 memcpy(buf, sdn->sdn_objname, le16_to_cpu(sdn->sdn_objnamel)); dn_sockaddr2username() 308 len = 7 + le16_to_cpu(sdn->sdn_objnamel); dn_sockaddr2username() 364 len -= le16_to_cpu(sdn->sdn_objnamel); dn_username2sockaddr() 366 if ((len < 0) || (le16_to_cpu(sdn->sdn_objnamel) > namel)) dn_username2sockaddr() 369 memcpy(sdn->sdn_objname, data, le16_to_cpu(sdn->sdn_objnamel)); dn_username2sockaddr() 392 if (memcmp(scp->addr.sdn_objname, addr->sdn_objname, le16_to_cpu(addr->sdn_objnamel)) != 0) sk_for_each() 419 sk_for_each(sk, &dn_sk_hash[le16_to_cpu(cb->dst_port) & DN_SK_HASH_MASK]) { dn_find_by_skb() 739 if (le16_to_cpu(saddr->sdn_nodeaddrl) && (le16_to_cpu(saddr->sdn_nodeaddrl) != 2)) dn_bind() 742 if (le16_to_cpu(saddr->sdn_objnamel) > DN_MAXOBJL) dn_bind() 753 if (le16_to_cpu(saddr->sdn_nodeaddrl)) { dn_bind() 805 memcpy(scp->addr.sdn_objname, scp->accessdata.acc_acc, le16_to_cpu(scp->addr.sdn_objnamel)); dn_auto_bind() 1379 if (le16_to_cpu(u.opt.opt_optl) > 16) __dn_setsockopt() 1393 if (le16_to_cpu(u.opt.opt_optl) > 16) __dn_setsockopt() 2210 switch (le16_to_cpu(dn->sdn_objnamel)) { dn_printable_object() 2215 for (i = 0; i < le16_to_cpu(dn->sdn_objnamel); i++) { dn_printable_object() 2278 dn_addr2asc(le16_to_cpu(dn_saddr2dn(&scp->addr)), buf1), dn_socket_format_entry() 2286 dn_addr2asc(le16_to_cpu(dn_saddr2dn(&scp->peer)), buf2), dn_socket_format_entry()
|
H A D | dn_route.c | 530 le16_to_cpu(cb->src), le16_to_cpu(cb->dst), dn_route_rx_packet() 634 __u16 len = le16_to_cpu(*(__le16 *)skb->data); dn_route_rcv() 838 le16_to_cpu(cb->src), le16_to_cpu(cb->dst)); dn_rt_bug_out() 850 le16_to_cpu(cb->src), le16_to_cpu(cb->dst)); dn_rt_bug() 911 __u16 tmp = le16_to_cpu(addr1) ^ le16_to_cpu(addr2); dn_match_addr() 984 " iif=%d oif=%d\n", le16_to_cpu(oldflp->daddr), dn_route_output_slow() 985 le16_to_cpu(oldflp->saddr), dn_route_output_slow() 1061 le16_to_cpu(fld.daddr), le16_to_cpu(fld.saddr), dn_route_output_slow() 1844 dn_addr2asc(le16_to_cpu(rt->rt_daddr), buf1), dn_rt_cache_seq_show() 1845 dn_addr2asc(le16_to_cpu(rt->rt_saddr), buf2), dn_rt_cache_seq_show()
|
H A D | dn_neigh.c | 408 dn->blksize = le16_to_cpu(msg->blksize); dn_neigh_router_hello() 424 if ((le16_to_cpu(src)>>10) == (le16_to_cpu((decnet_address))>>10)) { dn_neigh_router_hello() 467 dn->blksize = le16_to_cpu(msg->blksize); dn_neigh_endnode_hello() 557 dn_addr2asc(le16_to_cpu(dn->addr), buf), dn_neigh_format_entry()
|
/linux-4.4.14/fs/bfs/ |
H A D | dir.c | 57 le16_to_cpu(de->ino), bfs_readdir() 140 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); bfs_lookup() 186 if (!bh || (le16_to_cpu(de->ino) != inode->i_ino)) bfs_unlink() 230 if (!old_bh || (le16_to_cpu(old_de->ino) != old_inode->i_ino)) bfs_rename() 351 if (le16_to_cpu(de->ino) && bfs_find_entry()
|
/linux-4.4.14/drivers/scsi/qla4xxx/ |
H A D | ql4_mbx.c | 456 ha->ip_config.tcp_options = le16_to_cpu(init_fw_cb->ipv4_tcp_opts); qla4xxx_update_local_ip() 457 ha->ip_config.ipv4_options = le16_to_cpu(init_fw_cb->ipv4_ip_opts); qla4xxx_update_local_ip() 461 le16_to_cpu(init_fw_cb->eth_mtu_size); qla4xxx_update_local_ip() 462 ha->ip_config.ipv4_port = le16_to_cpu(init_fw_cb->ipv4_port); qla4xxx_update_local_ip() 465 ha->ip_config.ipv6_options = le16_to_cpu(init_fw_cb->ipv6_opts); qla4xxx_update_local_ip() 467 le16_to_cpu(init_fw_cb->ipv6_addtl_opts); qla4xxx_update_local_ip() 469 le16_to_cpu(init_fw_cb->ipv6_tcp_opts); qla4xxx_update_local_ip() 497 ha->ip_config.def_timeout = le16_to_cpu(init_fw_cb->def_timeout); qla4xxx_update_local_ip() 499 ha->ip_config.iscsi_options = le16_to_cpu(init_fw_cb->iscsi_opts); qla4xxx_update_local_ip() 501 le16_to_cpu(init_fw_cb->iscsi_max_pdu_size); qla4xxx_update_local_ip() 503 le16_to_cpu(init_fw_cb->iscsi_fburst_len); qla4xxx_update_local_ip() 505 le16_to_cpu(init_fw_cb->iscsi_max_outstnd_r2t); qla4xxx_update_local_ip() 507 le16_to_cpu(init_fw_cb->iscsi_max_burst_len); qla4xxx_update_local_ip() 521 switch (le16_to_cpu(init_fw_cb->ipv6_dflt_rtr_state)) { qla4xxx_update_local_ip() 562 ha->ip_config.ipv6_port = le16_to_cpu(init_fw_cb->ipv6_port); qla4xxx_update_local_ip() 565 le16_to_cpu(init_fw_cb->ipv6_flow_lbl); qla4xxx_update_local_ip() 602 ha->firmware_options = le16_to_cpu(init_fw_cb->fw_options); qla4xxx_update_local_ifcb() 607 ha->def_timeout = le16_to_cpu(init_fw_cb->def_timeout); qla4xxx_update_local_ifcb() 874 options = le16_to_cpu(fw_ddb_entry->options); qla4xxx_get_fwddb_entry() 882 le16_to_cpu(fw_ddb_entry->port), qla4xxx_get_fwddb_entry() 891 le16_to_cpu(fw_ddb_entry->port), qla4xxx_get_fwddb_entry() 1373 ha->fw_info.fw_major = le16_to_cpu(about_fw->fw_major); qla4xxx_about_firmware() 1374 ha->fw_info.fw_minor = le16_to_cpu(about_fw->fw_minor); qla4xxx_about_firmware() 1375 ha->fw_info.fw_patch = le16_to_cpu(about_fw->fw_patch); qla4xxx_about_firmware() 1376 ha->fw_info.fw_build = le16_to_cpu(about_fw->fw_build); qla4xxx_about_firmware() 1383 ha->fw_info.fw_load_source = le16_to_cpu(about_fw->fw_load_source); qla4xxx_about_firmware() 1384 ha->fw_info.iscsi_major = le16_to_cpu(about_fw->iscsi_major); qla4xxx_about_firmware() 1385 ha->fw_info.iscsi_minor = le16_to_cpu(about_fw->iscsi_minor); qla4xxx_about_firmware() 1386 ha->fw_info.bootload_major = le16_to_cpu(about_fw->bootload_major); qla4xxx_about_firmware() 1387 ha->fw_info.bootload_minor = le16_to_cpu(about_fw->bootload_minor); qla4xxx_about_firmware() 1388 ha->fw_info.bootload_patch = le16_to_cpu(about_fw->bootload_patch); qla4xxx_about_firmware() 1389 ha->fw_info.bootload_build = le16_to_cpu(about_fw->bootload_build); qla4xxx_about_firmware() 2040 iscsi_opts = le16_to_cpu(fw_ddb_entry->iscsi_options); qla4xxx_set_param_ddbentry()
|
/linux-4.4.14/drivers/media/usb/as102/ |
H A D | as10x_cmd.c | 202 le16_to_cpu((__force __le16)prsp->body.get_tune_status.rsp.sts.signal_strength); as10x_cmd_get_tune_status() 203 pstatus->PER = le16_to_cpu((__force __le16)prsp->body.get_tune_status.rsp.sts.PER); as10x_cmd_get_tune_status() 204 pstatus->BER = le16_to_cpu((__force __le16)prsp->body.get_tune_status.rsp.sts.BER); as10x_cmd_get_tune_status() 262 ptps->cell_ID = le16_to_cpu((__force __le16)prsp->body.get_tps.rsp.tps.cell_ID); as10x_cmd_get_tps() 319 le16_to_cpu((__force __le16)prsp->body.get_demod_stats.rsp.stats.mer); as10x_cmd_get_demod_stats() 408 (le16_to_cpu(prsp->body.common.rsp.proc_id) == proc_id)) { as10x_rsp_parse()
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
H A D | dibusb-common.c | 261 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON && dibusb_dib3000mc_frontend_attach() 262 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == dibusb_dib3000mc_frontend_attach() 300 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON && dibusb_dib3000mc_tuner_attach() 301 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_LITEON_DVB_T_WARM) { dibusb_dib3000mc_tuner_attach() 313 } else if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_DIBCOM && dibusb_dib3000mc_tuner_attach() 314 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_DIBCOM_MOD3001_WARM) { dibusb_dib3000mc_tuner_attach()
|
H A D | dvb-usb-init.c | 187 if (props->devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && dvb_usb_find_device() 188 props->devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { dvb_usb_find_device() 200 if (props->devices[i].warm_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && dvb_usb_find_device() 201 props->devices[i].warm_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { dvb_usb_find_device()
|
H A D | gp8psk.c | 167 int gp_product_id = le16_to_cpu(d->udev->descriptor.idProduct); gp8psk_power_ctrl() 212 int gp_product_id = le16_to_cpu(d->udev->descriptor.idProduct); gp8psk_bcm4500_reload() 248 le16_to_cpu(udev->descriptor.idProduct)); gp8psk_usb_probe()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/ |
H A D | ucode.c | 67 cmd.cap_pin1 = le16_to_cpu(xtal_calib[0]); iwl_set_Xtal_calib() 68 cmd.cap_pin2 = le16_to_cpu(xtal_calib[1]); iwl_set_Xtal_calib() 83 le16_to_cpu(cmd.radio_sensor_offset)); iwl_set_temperature_offset_calib() 103 le16_to_cpu(cmd.radio_sensor_offset_high)); iwl_set_temperature_offset_calib_v2() 105 le16_to_cpu(cmd.radio_sensor_offset_low)); iwl_set_temperature_offset_calib_v2() 107 le16_to_cpu(cmd.burntVoltageRef)); iwl_set_temperature_offset_calib_v2()
|
/linux-4.4.14/drivers/media/usb/go7007/ |
H A D | go7007-loader.c | 61 vendor = le16_to_cpu(usbdev->descriptor.idVendor); go7007_loader_probe() 62 product = le16_to_cpu(usbdev->descriptor.idProduct); go7007_loader_probe()
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
H A D | fw_common.h | 43 ((le16_to_cpu(_pfwhdr->signature)&0xFFF0) == 0x92C0 ||\ 44 (le16_to_cpu(_pfwhdr->signature)&0xFFF0) == 0x88C0)
|
/linux-4.4.14/drivers/scsi/qla2xxx/ |
H A D | qla_isr.c | 1282 le16_to_cpu(mbx->status), le16_to_cpu(mbx->state_flags), qla2x00_mbx_iocb_entry() 1283 le16_to_cpu(mbx->status_flags)); qla2x00_mbx_iocb_entry() 1291 status = le16_to_cpu(mbx->status); qla2x00_mbx_iocb_entry() 1293 le16_to_cpu(mbx->mb0) == MBS_COMMAND_COMPLETE) qla2x00_mbx_iocb_entry() 1295 if (!status && le16_to_cpu(mbx->mb0) == MBS_COMMAND_COMPLETE) { qla2x00_mbx_iocb_entry() 1300 le16_to_cpu(mbx->mb1)); qla2x00_mbx_iocb_entry() 1305 if (le16_to_cpu(mbx->mb1) & BIT_0) qla2x00_mbx_iocb_entry() 1307 else if (le16_to_cpu(mbx->mb1) & BIT_1) qla2x00_mbx_iocb_entry() 1313 data[0] = le16_to_cpu(mbx->mb0); qla2x00_mbx_iocb_entry() 1316 data[1] = le16_to_cpu(mbx->mb1); qla2x00_mbx_iocb_entry() 1329 status, le16_to_cpu(mbx->mb0), le16_to_cpu(mbx->mb1), qla2x00_mbx_iocb_entry() 1330 le16_to_cpu(mbx->mb2), le16_to_cpu(mbx->mb6), qla2x00_mbx_iocb_entry() 1331 le16_to_cpu(mbx->mb7)); qla2x00_mbx_iocb_entry() 1356 comp_status = le16_to_cpu(pkt->comp_status); qla2x00_ct_entry() 1368 le16_to_cpu(((sts_entry_t *)pkt)->rsp_info_len); qla2x00_ct_entry() 1427 comp_status = fw_status[0] = le16_to_cpu(pkt->comp_status); qla24xx_els_ct_entry() 1428 fw_status[1] = le16_to_cpu(((struct els_sts_entry_24xx*)pkt)->error_subcode_1); qla24xx_els_ct_entry() 1429 fw_status[2] = le16_to_cpu(((struct els_sts_entry_24xx*)pkt)->error_subcode_2); qla24xx_els_ct_entry() 1441 le16_to_cpu(((struct els_sts_entry_24xx *)pkt)->total_byte_count); qla24xx_els_ct_entry() 1447 le16_to_cpu(((struct els_sts_entry_24xx *) qla24xx_els_ct_entry() 1457 le16_to_cpu(((struct els_sts_entry_24xx *) qla24xx_els_ct_entry() 1459 le16_to_cpu(((struct els_sts_entry_24xx *) qla24xx_els_ct_entry() 1515 if (le16_to_cpu(logio->comp_status) == CS_COMPLETE) { qla24xx_logio_entry() 1564 le16_to_cpu(logio->comp_status), qla24xx_logio_entry() 1601 } else if ((le16_to_cpu(sts->scsi_status) & qla24xx_tm_iocb_entry() 1769 a_guard = le16_to_cpu(*(uint16_t *)(ap + 2)); qla2x00_handle_dif_error() 1770 a_app_tag = le16_to_cpu(*(uint16_t *)(ap + 0)); qla2x00_handle_dif_error() 1772 e_guard = le16_to_cpu(*(uint16_t *)(ep + 2)); qla2x00_handle_dif_error() 1773 e_app_tag = le16_to_cpu(*(uint16_t *)(ep + 0)); qla2x00_handle_dif_error() 1915 comp_status = le16_to_cpu(sts24->comp_status); qla25xx_process_bidir_status_iocb() 1916 scsi_status = le16_to_cpu(sts24->scsi_status) & SS_MASK; qla25xx_process_bidir_status_iocb() 1918 comp_status = le16_to_cpu(sts->comp_status); qla25xx_process_bidir_status_iocb() 1919 scsi_status = le16_to_cpu(sts->scsi_status) & SS_MASK; qla25xx_process_bidir_status_iocb() 2055 comp_status = le16_to_cpu(sts24->comp_status); qla2x00_status_entry() 2056 scsi_status = le16_to_cpu(sts24->scsi_status) & SS_MASK; qla2x00_status_entry() 2057 state_flags = le16_to_cpu(sts24->state_flags); qla2x00_status_entry() 2059 comp_status = le16_to_cpu(sts->comp_status); qla2x00_status_entry() 2060 scsi_status = le16_to_cpu(sts->scsi_status) & SS_MASK; qla2x00_status_entry() 2146 ox_id = le16_to_cpu(sts24->ox_id); qla2x00_status_entry() 2153 sense_len = le16_to_cpu(sts->req_sense_length); qla2x00_status_entry() 2155 rsp_info_len = le16_to_cpu(sts->rsp_info_len); qla2x00_status_entry() 2328 else if ((le16_to_cpu(sts->status_flags) & qla2x00_status_entry()
|
H A D | qla_sup.c | 614 chksum += le16_to_cpu(*wptr++); qla2xxx_find_flt_start() 625 *start = (le16_to_cpu(fltl->start_hi) << 16 | qla2xxx_find_flt_start() 626 le16_to_cpu(fltl->start_lo)) >> 2; qla2xxx_find_flt_start() 699 le16_to_cpu(flt->version), le16_to_cpu(flt->length), qla2xxx_get_flt_info() 700 le16_to_cpu(flt->checksum)); qla2xxx_get_flt_info() 704 cnt = (sizeof(struct qla_flt_header) + le16_to_cpu(flt->length)) >> 1; qla2xxx_get_flt_info() 706 chksum += le16_to_cpu(*wptr++); qla2xxx_get_flt_info() 710 le16_to_cpu(flt->version), le16_to_cpu(flt->length), qla2xxx_get_flt_info() 711 le16_to_cpu(flt->checksum)); qla2xxx_get_flt_info() 716 cnt = le16_to_cpu(flt->length) / sizeof(struct qla_flt_region); qla2xxx_get_flt_info() 903 chksum += le16_to_cpu(*wptr++); qla2xxx_get_fdt_info() 908 fdt->sig[0], le16_to_cpu(fdt->version)); qla2xxx_get_fdt_info() 915 mid = le16_to_cpu(fdt->man_id); qla2xxx_get_fdt_info() 916 fid = le16_to_cpu(fdt->id); qla2xxx_get_fdt_info() 1060 le16_to_cpu(hdr.version), le16_to_cpu(hdr.entries), qla2xxx_flash_npiv_conf() 1061 le16_to_cpu(hdr.checksum)); qla2xxx_flash_npiv_conf() 1075 cnt = (sizeof(struct qla_npiv_header) + le16_to_cpu(hdr.entries) * qla2xxx_flash_npiv_conf() 1078 chksum += le16_to_cpu(*wptr++); qla2xxx_flash_npiv_conf() 1083 le16_to_cpu(hdr.version), le16_to_cpu(hdr.entries), qla2xxx_flash_npiv_conf() 1084 le16_to_cpu(hdr.checksum)); qla2xxx_flash_npiv_conf() 1089 cnt = le16_to_cpu(hdr.entries); qla2xxx_flash_npiv_conf() 1097 flags = le16_to_cpu(entry->flags); qla2xxx_flash_npiv_conf() 1115 le16_to_cpu(entry->vf_id), qla2xxx_flash_npiv_conf()
|
/linux-4.4.14/drivers/iio/magnetometer/ |
H A D | bmc150_magn.c | 368 u16 xyz1 = le16_to_cpu(tregs->xyz1); bmc150_magn_compensate_x() 390 u16 xyz1 = le16_to_cpu(tregs->xyz1); bmc150_magn_compensate_y() 412 u16 xyz1 = le16_to_cpu(tregs->xyz1); bmc150_magn_compensate_z() 413 u16 z1 = le16_to_cpu(tregs->z1); bmc150_magn_compensate_z() 414 s16 z2 = le16_to_cpu(tregs->z2); bmc150_magn_compensate_z() 415 s16 z3 = le16_to_cpu(tregs->z3); bmc150_magn_compensate_z() 416 s16 z4 = le16_to_cpu(tregs->z4); bmc150_magn_compensate_z() 441 raw_x = (s16)le16_to_cpu(values[AXIS_X]) >> BMC150_MAGN_SHIFT_XY_L; bmc150_magn_read_xyz() 442 raw_y = (s16)le16_to_cpu(values[AXIS_Y]) >> BMC150_MAGN_SHIFT_XY_L; bmc150_magn_read_xyz() 443 raw_z = (s16)le16_to_cpu(values[AXIS_Z]) >> BMC150_MAGN_SHIFT_Z_L; bmc150_magn_read_xyz() 444 rhall = le16_to_cpu(values[RHALL]) >> BMC150_MAGN_SHIFT_RHALL_L; bmc150_magn_read_xyz()
|
/linux-4.4.14/drivers/net/wimax/i2400m/ |
H A D | control.c | 127 if (le16_to_cpu(tlv->type) != tlv_type) /* Not our type? skip */ i2400m_tlv_match() 130 && le16_to_cpu(tlv->length) + sizeof(*tlv) != tlv_size) { i2400m_tlv_match() 131 size_t size = le16_to_cpu(tlv->length) + sizeof(*tlv); i2400m_tlv_match() 175 + le16_to_cpu(tlv_pos->length) + sizeof(*tlv_pos); i2400m_tlv_buffer_walk() 192 type = le16_to_cpu(tlv_pos->type); i2400m_tlv_buffer_walk() 193 length = le16_to_cpu(tlv_pos->length); i2400m_tlv_buffer_walk() 286 enum i2400m_ms status = le16_to_cpu(l3l4_hdr->status); i2400m_msg_check_status() 486 size_t tlv_size = le16_to_cpu(l3l4_hdr->length); i2400m_report_state_hook() 523 msg_type = le16_to_cpu(l3l4_hdr->type); i2400m_report_hook() 574 ack_type = le16_to_cpu(l3l4_hdr->type); i2400m_msg_ack_hook() 575 ack_status = le16_to_cpu(l3l4_hdr->status); i2400m_msg_ack_hook() 614 expected_size = le16_to_cpu(l3l4_hdr->length) + sizeof(*l3l4_hdr); i2400m_msg_size_check() 617 "got %zu)\n", le16_to_cpu(l3l4_hdr->type), i2400m_msg_size_check() 732 msg_type = le16_to_cpu(msg_l3l4_hdr->type); i2400m_msg_to_dev() 747 le16_to_cpu(msg_l3l4_hdr->type), result); i2400m_msg_to_dev() 807 if (msg_type != le16_to_cpu(ack_l3l4_hdr->type)) { i2400m_msg_to_dev() 809 le16_to_cpu(ack_l3l4_hdr->type), msg_type); i2400m_msg_to_dev() 1054 major = le16_to_cpu(l4mv->major); i2400m_firmware_check() 1055 minor = le16_to_cpu(l4mv->minor); i2400m_firmware_check() 1056 branch = le16_to_cpu(l4mv->branch); i2400m_firmware_check() 1216 argsize += sizeof(*tlv_hdr) + le16_to_cpu(tlv_hdr->length); i2400m_set_init_config() 1234 tlv_size = sizeof(*tlv_hdr) + le16_to_cpu(tlv_hdr->length); i2400m_set_init_config()
|
/linux-4.4.14/drivers/input/tablet/ |
H A D | acecad.c | 214 le16_to_cpu(dev->descriptor.idVendor), usb_acecad_probe() 215 le16_to_cpu(dev->descriptor.idProduct)); usb_acecad_probe() 225 le16_to_cpu(dev->descriptor.idVendor), usb_acecad_probe() 226 le16_to_cpu(dev->descriptor.idProduct)); usb_acecad_probe()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
H A D | tx.c | 89 if (!(le16_to_cpu(ba_trig->tx_bar) & BIT(tid))) iwl_mvm_bar_check_trigger() 127 u16 control = le16_to_cpu(bar->control); iwl_mvm_set_tx_cmd() 128 u16 ssn = le16_to_cpu(bar->start_seq_num); iwl_mvm_set_tx_cmd() 233 le16_to_cpu(fc)); iwl_mvm_set_tx_cmd_rate() 677 u16 sequence = le16_to_cpu(pkt->hdr.sequence); iwl_mvm_rx_tx_cmd_single() 682 u32 status = le16_to_cpu(tx_resp->status.status); iwl_mvm_rx_tx_cmd_single() 691 seq_ctl = le16_to_cpu(tx_resp->seq_ctl); iwl_mvm_rx_tx_cmd_single() 736 seq_ctl = le16_to_cpu(hdr->seq_ctrl); iwl_mvm_rx_tx_cmd_single() 744 le16_to_cpu(tx_resp->wireless_media_time); iwl_mvm_rx_tx_cmd_single() 894 u16 fstatus = le16_to_cpu(frame_status[i].status); iwl_mvm_rx_tx_cmd_agg_dbg() 902 le16_to_cpu(frame_status[i].sequence)); iwl_mvm_rx_tx_cmd_agg_dbg() 917 u16 sequence = le16_to_cpu(pkt->hdr.sequence); iwl_mvm_rx_tx_cmd_agg() 938 le16_to_cpu(tx_resp->wireless_media_time); iwl_mvm_rx_tx_cmd_agg() 983 u16 scd_flow = le16_to_cpu(ba_notif->scd_flow); iwl_mvm_rx_ba_notif() 986 u16 ba_resp_scd_ssn = le16_to_cpu(ba_notif->scd_ssn); iwl_mvm_rx_ba_notif() 1035 ba_notif->tid, le16_to_cpu(ba_notif->seq_ctl), iwl_mvm_rx_ba_notif()
|
/linux-4.4.14/drivers/net/wireless/ath/carl9170/ |
H A D | fwdesc.h | 244 le16_to_cpu(desc->length) >= CARL9170FW_DESC_HEAD_SIZE && \ 245 le16_to_cpu(desc->length) < CARL9170FW_DESC_MAX_LENGTH; \ 246 desc = (void *)((unsigned long)desc + le16_to_cpu(desc->length))) 263 (le16_to_cpu(head->length) >= min_len)) carl9170fw_desc_cmp()
|
H A D | fw.c | 72 pos_length = le16_to_cpu(pos->length); carl9170_fw_verify_descs() 298 ar->fw.offset = le16_to_cpu(otus_desc->miniboot_size); carl9170_fw() 331 ar->fw.rx_size = le16_to_cpu(otus_desc->rx_max_frame_len); carl9170_fw() 334 ar->fw.mem_block_size = le16_to_cpu(otus_desc->tx_frag_len); carl9170_fw() 347 ar->fw.beacon_max_len = le16_to_cpu(otus_desc->bcn_len); carl9170_fw()
|
/linux-4.4.14/arch/mips/include/asm/mach-cavium-octeon/ |
H A D | mangle-port.h | 54 # define ioswabw(a, x) le16_to_cpu(x)
|
/linux-4.4.14/arch/mips/include/asm/mach-generic/ |
H A D | mangle-port.h | 32 # define ioswabw(a, x) le16_to_cpu(x)
|
/linux-4.4.14/arch/sh/include/mach-common/mach/ |
H A D | mangle-port.h | 29 # define ioswabw(x) le16_to_cpu(x)
|
/linux-4.4.14/drivers/usb/usbip/ |
H A D | stub_rx.c | 66 value = le16_to_cpu(req->wValue); is_reset_device_cmd() 67 index = le16_to_cpu(req->wIndex); is_reset_device_cmd() 93 target_endp = le16_to_cpu(req->wIndex) & 0x000f; tweak_clear_halt_cmd() 96 target_dir = le16_to_cpu(req->wIndex) & 0x0080; tweak_clear_halt_cmd() 124 alternate = le16_to_cpu(req->wValue); tweak_set_interface_cmd() 125 interface = le16_to_cpu(req->wIndex); tweak_set_interface_cmd() 152 config = le16_to_cpu(req->wValue); tweak_set_configuration_cmd()
|
/linux-4.4.14/drivers/net/wireless/b43legacy/ |
H A D | xmit.c | 452 phystat0 = le16_to_cpu(rxhdr->phy_status0); b43legacy_rx() 453 phystat3 = le16_to_cpu(rxhdr->phy_status3); b43legacy_rx() 455 macstat = le16_to_cpu(rxhdr->mac_status); b43legacy_rx() 456 mactime = le16_to_cpu(rxhdr->mac_time); b43legacy_rx() 457 chanstat = le16_to_cpu(rxhdr->channel); b43legacy_rx() 616 status.cookie = le16_to_cpu(hw->cookie); b43legacy_handle_hwtxstatus() 617 status.seq = le16_to_cpu(hw->seq); b43legacy_handle_hwtxstatus()
|
/linux-4.4.14/drivers/nvme/host/ |
H A D | lightnvm.c | 253 dst->num_pg = le16_to_cpu(src->num_pg); init_grps() 254 dst->num_blk = le16_to_cpu(src->num_blk); init_grps() 255 dst->fpg_sz = le16_to_cpu(src->fpg_sz); init_grps() 256 dst->csecs = le16_to_cpu(src->csecs); init_grps() 257 dst->sos = le16_to_cpu(src->sos); init_grps() 268 dst->cpar = le16_to_cpu(src->cpar); init_grps() 393 if (le16_to_cpu(bb_tbl->verid) != 1) { nvme_nvm_get_bb_tbl()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
H A D | wa-rpipe.c | 173 u8 index = le16_to_cpu(rpipe->descr.wRPipeIndex); rpipe_destroy() 330 __rpipe_reset(wa, le16_to_cpu(rpipe->descr.wRPipeIndex)); rpipe_aim() 332 le16_to_cpu(rpipe->descr.wRequests)); rpipe_aim() 352 le16_to_cpu(rpipe->descr.wRPipeIndex), rpipe_aim() 380 le16_to_cpu(rpipe->descr.wRPipeIndex)); rpipe_aim() 456 le16_to_cpu(rpipe->descr.wRPipeIndex)); rpipe_get_by_ep() 474 le16_to_cpu(rpipe->descr.wRPipeIndex)); rpipe_get_by_ep() 486 wa->rpipes = le16_to_cpu(wa->wa_descr->wNumRPipes); wa_rpipes_create() 523 u16 index = le16_to_cpu(rpipe->descr.wRPipeIndex); rpipe_ep_disable() 544 u16 index = le16_to_cpu(rpipe->descr.wRPipeIndex); rpipe_clear_feature_stalled()
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/ |
H A D | acl.c | 64 d->e_tag = le16_to_cpu(s->e_tag); lustre_ext_acl_le_to_cpu() 65 d->e_perm = le16_to_cpu(s->e_perm); lustre_ext_acl_le_to_cpu() 82 d->e_tag = le16_to_cpu(s->e_tag); lustre_posix_acl_le_to_cpu() 83 d->e_perm = le16_to_cpu(s->e_perm); lustre_posix_acl_le_to_cpu() 190 switch (le16_to_cpu(header->a_entries[i].e_tag)) { lustre_posix_acl_xattr_filter()
|
/linux-4.4.14/drivers/uwb/ |
H A D | ie.c | 137 } else if (result < sizeof(*get_ie) + le16_to_cpu(get_ie->wIELength)) { uwb_rc_get_ie() 140 sizeof(*get_ie) + le16_to_cpu(get_ie->wIELength)); uwb_rc_get_ie() 164 sizeof(*cmd) + le16_to_cpu(cmd->wIELength), uwb_rc_set_ie() 238 length = le16_to_cpu(rc->ies->wIELength); uwb_rc_ie_add_one() 335 size_t len = le16_to_cpu(uwb_rc->ies->wIELength); uwb_rc_ie_cache_rm()
|
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/ |
H A D | trace.h | 274 le16_to_cpu(__entry->rxwi.frag_sn), 275 le16_to_cpu(__entry->rxwi.rate), 304 le16_to_cpu(__entry->h.flags), 305 le16_to_cpu(__entry->h.rate_ctl), 307 le16_to_cpu(__entry->h.len_ctl))
|
/linux-4.4.14/fs/qnx4/ |
H A D | inode.c | 84 u16 nxtnt = le16_to_cpu(qnx4_inode->di_num_xtnts); qnx4_block_map() 296 inode->i_mode = le16_to_cpu(raw_inode->di_mode); qnx4_iget() 297 i_uid_write(inode, (uid_t)le16_to_cpu(raw_inode->di_uid)); qnx4_iget() 298 i_gid_write(inode, (gid_t)le16_to_cpu(raw_inode->di_gid)); qnx4_iget() 299 set_nlink(inode, le16_to_cpu(raw_inode->di_nlink)); qnx4_iget()
|
/linux-4.4.14/drivers/scsi/esas2r/ |
H A D | esas2r_flash.c | 252 le16_to_cpu(pi->header_offset)); fix_bios() 258 ((u8 *)pi + le16_to_cpu(pi->pnp_offset)); fix_bios() 288 le16_to_cpu( fix_efi() 291 thislen = (u32)le16_to_cpu(bh->image_length) * 512; fix_efi() 603 type = le16_to_cpu(*pw--); chk_cfg() 604 size = le16_to_cpu(*pw--); chk_cfg() 633 u16 hdroffset = le16_to_cpu(bi->header_offset); chk_boot() 636 if (bi->signature != le16_to_cpu(0xaa55) chk_boot() 650 || le16_to_cpu(bh->struct_length) < chk_boot() 676 cksum = cksum + le16_to_cpu(*pw); calc_fi_checksum() 1059 type = le16_to_cpu(*pw); esas2r_read_flash_rev() 1061 size = le16_to_cpu(*pw); esas2r_read_flash_rev() 1128 le16_to_cpu( esas2r_read_image_type() 1146 switch (le16_to_cpu(ei->machine_type)) { esas2r_read_image_type() 1170 thislen = (u32)le16_to_cpu(bh->image_length) * 512; esas2r_read_image_type()
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
H A D | wmi.c | 335 d_status = le16_to_cpu(data->info.status); wmi_evt_rx_mgmt() 342 le16_to_cpu(fc)); wmi_evt_rx_mgmt() 356 u16 cap = le16_to_cpu(rx_mgmt_frame->u.beacon.capab_info); wmi_evt_rx_mgmt() 357 u16 bi = le16_to_cpu(rx_mgmt_frame->u.beacon.beacon_int); wmi_evt_rx_mgmt() 508 u16 reason_code = le16_to_cpu(evt->protocol_reason_status); wmi_evt_disconnect() 529 u16 eapol_len = le16_to_cpu(evt->eapol_len); wmi_evt_eapol_rx() 617 txdata->agg_timeout = le16_to_cpu(evt->ba_timeout); wmi_evt_ba_status() 757 len = le16_to_cpu(hdr.len); wmi_recv_cmd() 759 le16_to_cpu(hdr.seq), len, le16_to_cpu(hdr.type), wmi_recv_cmd() 781 u16 id = le16_to_cpu(wmi->id); wmi_recv_cmd() 1211 reason_code = le16_to_cpu(reply.evt.protocol_reason_status); wmi_disconnect_sta() 1298 le16_to_cpu(reply.evt.status)); wmi_addba_rx_resp() 1335 u16 len = le16_to_cpu(hdr->len); wmi_event_handle() 1341 u16 id = le16_to_cpu(wmi->id); wmi_event_handle()
|
/linux-4.4.14/drivers/staging/rtl8188eu/include/ |
H A D | wifi.h | 219 (le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(3) | BIT(2))) 221 #define GetFrameSubType(pbuf) (le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(7) |\ 232 (le16_to_cpu(*(__le16 *)((size_t)(pbuf) + 22)) >> 4) 235 (le16_to_cpu(*(__le16 *)((size_t)(pbuf) + 22)) & 0x0f) 251 #define GetPriority(pbuf) ((le16_to_cpu(*(__le16 *)(pbuf))) & 0xf) 259 #define GetAckpolicy(pbuf) (((le16_to_cpu(*(__le16 *)pbuf)) >> 5) & 0x3) 261 #define GetAMsdu(pbuf) (((le16_to_cpu(*(__le16 *)pbuf)) >> 7) & 0x1) 263 #define GetAid(pbuf) (le16_to_cpu(*(__le16 *)((size_t)(pbuf) + 2)) & 0x3fff) 494 (((*(unsigned short *)(pbuf)) & le16_to_cpu(_ORDER_)) != 0)
|
H A D | rtl8188e_hal.h | 72 ((le16_to_cpu(_pFwHdr->signature)&0xFFF0) == 0x92C0 || \ 73 (le16_to_cpu(_pFwHdr->signature)&0xFFF0) == 0x88C0 || \ 74 (le16_to_cpu(_pFwHdr->signature)&0xFFF0) == 0x2300 || \ 75 (le16_to_cpu(_pFwHdr->signature)&0xFFF0) == 0x88E0)
|
/linux-4.4.14/drivers/soc/qcom/ |
H A D | smem.c | 275 return p + sizeof(*e) + le16_to_cpu(e->padding_hdr) + private_entry_next() 283 return p + sizeof(*e) + le16_to_cpu(e->padding_hdr); entry_to_item() 315 if (le16_to_cpu(hdr->item) == item) qcom_smem_alloc_private() 474 if (le16_to_cpu(e->item) == item) { qcom_smem_get_private() 477 le16_to_cpu(e->padding_data); qcom_smem_get_private() 595 host0 = le16_to_cpu(entry->host0); qcom_smem_enumerate_partitions() 596 host1 = le16_to_cpu(entry->host1); qcom_smem_enumerate_partitions() 627 host0 = le16_to_cpu(header->host0); qcom_smem_enumerate_partitions() 628 host1 = le16_to_cpu(header->host1); qcom_smem_enumerate_partitions()
|
/linux-4.4.14/fs/nilfs2/ |
H A D | the_nilfs.c | 124 dat_entry_size = le16_to_cpu(sbp[0]->s_dat_entry_size); nilfs_load_super_root() 125 checkpoint_size = le16_to_cpu(sbp[0]->s_checkpoint_size); nilfs_load_super_root() 126 segment_usage_size = le16_to_cpu(sbp[0]->s_segment_usage_size); nilfs_load_super_root() 395 le16_to_cpu(sbp->s_minor_rev_level), nilfs_store_disk_layout() 399 nilfs->ns_sbsize = le16_to_cpu(sbp->s_bytes); nilfs_store_disk_layout() 403 nilfs->ns_inode_size = le16_to_cpu(sbp->s_inode_size); nilfs_store_disk_layout() 443 if (!sbp || le16_to_cpu(sbp->s_magic) != NILFS_SUPER_MAGIC) nilfs_valid_sb() 445 bytes = le16_to_cpu(sbp->s_bytes); nilfs_valid_sb() 639 nilfs->ns_mount_state = le16_to_cpu(sbp->s_state); init_nilfs()
|
/linux-4.4.14/fs/ubifs/ |
H A D | commit.c | 545 d->old_zroot_level = le16_to_cpu(idx->level); dbg_old_index_check_init() 613 child_cnt = le16_to_cpu(idx->child_cnt); dbg_check_old_index() 621 if (le16_to_cpu(idx->level) != d->old_zroot_level) { dbg_check_old_index() 630 last_level = le16_to_cpu(idx->level) + 1; dbg_check_old_index() 636 if (le16_to_cpu(idx->level) != last_level - 1) { dbg_check_old_index() 666 if (le16_to_cpu(idx->level) == 0) { dbg_check_old_index() 680 if (iip + 1 < le16_to_cpu(idx->child_cnt)) { dbg_check_old_index() 694 last_level = le16_to_cpu(idx->level); dbg_check_old_index() 701 if (iip + 1 < le16_to_cpu(idx->child_cnt)) { dbg_check_old_index()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/ |
H A D | qlge_dbg.c | 1658 pr_err("wqicb->len = 0x%x\n", le16_to_cpu(wqicb->len)); ql_dump_wqicb() 1659 pr_err("wqicb->flags = %x\n", le16_to_cpu(wqicb->flags)); ql_dump_wqicb() 1661 le16_to_cpu(wqicb->cq_id_rss)); ql_dump_wqicb() 1662 pr_err("wqicb->rid = 0x%x\n", le16_to_cpu(wqicb->rid)); ql_dump_wqicb() 1710 pr_err("ricb->mask = 0x%.04x\n", le16_to_cpu(ricb->mask)); ql_dump_ricb() 1728 pr_err("cqicb->len = %d\n", le16_to_cpu(cqicb->len)); ql_dump_cqicb() 1734 le16_to_cpu(cqicb->pkt_delay)); ql_dump_cqicb() 1736 le16_to_cpu(cqicb->irq_delay)); ql_dump_cqicb() 1740 le16_to_cpu(cqicb->lbq_buf_size)); ql_dump_cqicb() 1742 le16_to_cpu(cqicb->lbq_len)); ql_dump_cqicb() 1746 le16_to_cpu(cqicb->sbq_buf_size)); ql_dump_cqicb() 1748 le16_to_cpu(cqicb->sbq_len)); ql_dump_cqicb() 1913 le16_to_cpu(ob_mac_tso_iocb->mss)); ql_dump_ob_mac_iocb() 1915 le16_to_cpu(ob_mac_tso_iocb->total_hdrs_len)); ql_dump_ob_mac_iocb() 1917 le16_to_cpu(ob_mac_tso_iocb->net_trans_offset)); ql_dump_ob_mac_iocb() 1921 le16_to_cpu(ob_mac_iocb->frame_len)); ql_dump_ob_mac_iocb() 1922 frame_len = le16_to_cpu(ob_mac_iocb->frame_len); ql_dump_ob_mac_iocb() 2010 le16_to_cpu(ib_mac_rsp->vlan_id)); ql_dump_ib_mac_rsp()
|
/linux-4.4.14/sound/usb/ |
H A D | quirks.c | 190 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); create_fixed_stream_quirk() 472 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); create_uaxx_quirk() 579 if (le16_to_cpu(get_cfg_desc(config)->wTotalLength) == EXTIGY_FIRMWARE_SIZE_OLD || snd_usb_extigy_boot_quirk() 580 le16_to_cpu(get_cfg_desc(config)->wTotalLength) == EXTIGY_FIRMWARE_SIZE_NEW) { snd_usb_extigy_boot_quirk() 596 le16_to_cpu(get_cfg_desc(config)->wTotalLength)); snd_usb_extigy_boot_quirk() 806 fwsize = le16_to_cpu(get_cfg_desc(config)->wTotalLength); snd_usb_mbox2_boot_quirk() 845 le16_to_cpu(get_cfg_desc(config)->wTotalLength)); snd_usb_mbox2_boot_quirk() 989 u32 id = USB_ID(le16_to_cpu(dev->descriptor.idVendor), snd_usb_apply_boot_quirk() 990 le16_to_cpu(dev->descriptor.idProduct)); snd_usb_apply_boot_quirk() 1203 if ((le16_to_cpu(ep->chip->dev->descriptor.idVendor) == 0x23ba) && snd_usb_endpoint_start_quirk() 1226 switch (le16_to_cpu(dev->descriptor.idVendor)) { snd_usb_set_interface_quirk() 1242 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x23ba) && snd_usb_ctl_msg_quirk() 1250 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x0644) && snd_usb_ctl_msg_quirk() 1257 if (is_marantz_denon_dac(USB_ID(le16_to_cpu(dev->descriptor.idVendor), snd_usb_ctl_msg_quirk() 1258 le16_to_cpu(dev->descriptor.idProduct))) snd_usb_ctl_msg_quirk() 1265 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1686) && snd_usb_ctl_msg_quirk() 1266 (le16_to_cpu(dev->descriptor.idProduct) == 0x00dd) && snd_usb_ctl_msg_quirk() 1283 if (le16_to_cpu(chip->dev->descriptor.idVendor) == 0x23ba) { snd_usb_interface_dsd_format_quirks()
|
/linux-4.4.14/drivers/mtd/chips/ |
H A D | cfi_probe.c | 186 cfi->cfiq->P_ID = le16_to_cpu(cfi->cfiq->P_ID); cfi_chip_setup() 188 cfi->cfiq->P_ADR = le16_to_cpu(cfi->cfiq->P_ADR); cfi_chip_setup() 189 cfi->cfiq->A_ID = le16_to_cpu(cfi->cfiq->A_ID); cfi_chip_setup() 190 cfi->cfiq->A_ADR = le16_to_cpu(cfi->cfiq->A_ADR); cfi_chip_setup() 191 cfi->cfiq->InterfaceDesc = le16_to_cpu(cfi->cfiq->InterfaceDesc); cfi_chip_setup() 192 cfi->cfiq->MaxBufWriteSize = le16_to_cpu(cfi->cfiq->MaxBufWriteSize); cfi_chip_setup()
|
/linux-4.4.14/drivers/media/pci/saa7164/ |
H A D | saa7164-bus.c | 297 msg->size = le16_to_cpu((__force __le16)msg->size); saa7164_bus_set() 299 msg->controlselector = le16_to_cpu((__force __le16)msg->controlselector); saa7164_bus_set() 393 msg_tmp.size = le16_to_cpu((__force __le16)msg_tmp.size); saa7164_bus_get() 395 msg_tmp.controlselector = le16_to_cpu((__force __le16)msg_tmp.controlselector); saa7164_bus_get() 478 msg->size = le16_to_cpu((__force __le16)msg->size); saa7164_bus_get() 480 msg->controlselector = le16_to_cpu((__force __le16)msg->controlselector); saa7164_bus_get()
|
/linux-4.4.14/fs/exofs/ |
H A D | dir.c | 102 rec_len = le16_to_cpu(p->rec_len); exofs_check_page() 189 return (struct exofs_dir_entry *)((char *)p + le16_to_cpu(p->rec_len)); exofs_next_entry() 296 ctx->pos += le16_to_cpu(de->rec_len); exofs_readdir() 404 unsigned len = le16_to_cpu(de->rec_len); exofs_set_link() 472 rec_len = le16_to_cpu(de->rec_len); exofs_add_link() 526 unsigned to = ((char *)dir - kaddr) + le16_to_cpu(dir->rec_len); exofs_delete_entry()
|
/linux-4.4.14/sound/usb/usx2y/ |
H A D | usbusx2y.c | 362 le16_to_cpu(device->descriptor.idVendor), usX2Y_create_card() 363 le16_to_cpu(device->descriptor.idProduct), usX2Y_create_card() 381 if (le16_to_cpu(device->descriptor.idVendor) != 0x1604 || usX2Y_usb_probe() 382 (le16_to_cpu(device->descriptor.idProduct) != USB_ID_US122 && usX2Y_usb_probe() 383 le16_to_cpu(device->descriptor.idProduct) != USB_ID_US224 && usX2Y_usb_probe() 384 le16_to_cpu(device->descriptor.idProduct) != USB_ID_US428)) usX2Y_usb_probe()
|
/linux-4.4.14/drivers/net/wireless/ |
H A D | zd1201.c | 234 framelen = le16_to_cpu(*(__le16*)&data[4]); zd1201_usbrx() 235 infotype = le16_to_cpu(*(__le16*)&data[6]); zd1201_usbrx() 240 linkstatus = le16_to_cpu(*(__le16*)&data[8]); zd1201_usbrx() 260 short status = le16_to_cpu(*(__le16*)(data+8)); zd1201_usbrx() 298 copylen = le16_to_cpu(*(__le16*)&data[i+2]); zd1201_usbrx() 320 fc = le16_to_cpu(*(__le16 *)&data[datalen-16]); zd1201_usbrx() 321 seq = le16_to_cpu(*(__le16 *)&data[datalen-24]); zd1201_usbrx() 433 code = le16_to_cpu(*(__le16*)(&zd->rxdata[4])); zd1201_getconfig() 434 rid_fid = le16_to_cpu(*(__le16*)(&zd->rxdata[6])); zd1201_getconfig() 435 length = le16_to_cpu(*(__le16*)(&zd->rxdata[8])); zd1201_getconfig() 584 if (!zd->rxlen || le16_to_cpu(*(__le16*)&zd->rxdata[6]) != rid) { zd1201_setconfig() 604 *val = le16_to_cpu(zdval); zd1201_getconfig16() 642 max = le16_to_cpu(zdmax); zd1201_drvr_start() 1095 /*zd->iwstats.qual.qual = le16_to_cpu(((__le16 *)buffer)[0]);*/ zd1201_get_wap() 1096 zd->iwstats.qual.level = le16_to_cpu(((__le16 *)buffer)[1]); zd1201_get_wap() 1097 /*zd->iwstats.qual.noise = le16_to_cpu(((__le16 *)buffer)[2]);*/ zd1201_get_wap() 1138 if (le16_to_cpu(*(__le16*)&zd->rxdata[2]) != ZD1201_INQ_SCANRESULTS) zd1201_get_scan()
|
H A D | at76c50x-usb.c | 1026 wiphy_name(priv->hw->wiphy), le16_to_cpu(m->beacon_period), at76_dump_mib_mac_mgmt() 1027 le16_to_cpu(m->CFP_max_duration), at76_dump_mib_mac_mgmt() 1028 le16_to_cpu(m->medium_occupancy_limit), at76_dump_mib_mac_mgmt() 1029 le16_to_cpu(m->station_id), le16_to_cpu(m->ATIM_window), at76_dump_mib_mac_mgmt() 1064 le16_to_cpu(m->frag_threshold), le16_to_cpu(m->rts_threshold), at76_dump_mib_mac() 1065 le16_to_cpu(m->cwmin), le16_to_cpu(m->cwmax), at76_dump_mib_mac() 1067 m->scan_channel, le16_to_cpu(m->probe_delay), at76_dump_mib_mac() 1068 le16_to_cpu(m->min_channel_time), at76_dump_mib_mac() 1069 le16_to_cpu(m->max_channel_time), at76_dump_mib_mac() 1070 le16_to_cpu(m->listen_interval), at76_dump_mib_mac() 1098 le16_to_cpu(m->slot_time), le16_to_cpu(m->sifs_time), at76_dump_mib_phy() 1099 le16_to_cpu(m->preamble_length), at76_dump_mib_phy() 1100 le16_to_cpu(m->plcp_header_length), at76_dump_mib_phy() 1101 le16_to_cpu(m->mpdu_max_length), at76_dump_mib_phy() 1102 le16_to_cpu(m->cca_mode_supported), m->operation_rate_set[0], at76_dump_mib_phy() 1586 skb_trim(priv->rx_skb, le16_to_cpu(buf->wlength)); at76_rx_tasklet() 1820 wiphy_name(priv->hw->wiphy), le16_to_cpu(tx_buffer->wlength), at76_mac80211_tx()
|
H A D | airo.c | 1333 ai->micstats.enabled = (le16_to_cpu(mic_rid.state) & 0x00FF) ? 1 : 0; micinit() 2055 if (le16_to_cpu(status) & 2) /* Too many retries */ get_tx_error() 2057 if (le16_to_cpu(status) & 4) /* Transmit lifetime exceeded */ get_tx_error() 2059 if (le16_to_cpu(status) & 8) /* Aid fail */ get_tx_error() 2061 if (le16_to_cpu(status) & 0x10) /* MAC disabled */ get_tx_error() 2063 if (le16_to_cpu(status) & 0x20) /* Association lost */ get_tx_error() 2069 if ((le16_to_cpu(status) & 2) || get_tx_error() 2070 (le16_to_cpu(status) & 4)) { get_tx_error() 2877 ((le16_to_cpu(cap_rid.softVer) >> 8) & 0xF), _init_airo_card() 2878 (le16_to_cpu(cap_rid.softVer) & 0xFF), _init_airo_card() 2879 le16_to_cpu(cap_rid.softSubVer)); _init_airo_card() 2883 if (le16_to_cpu(cap_rid.softVer) > 0x530 _init_airo_card() 2884 || (le16_to_cpu(cap_rid.softVer) == 0x530 _init_airo_card() 2885 && le16_to_cpu(cap_rid.softSubVer) >= 17)) { _init_airo_card() 3160 u16 fc = le16_to_cpu(ctl); header_len() 3249 status = le16_to_cpu(IN4500(ai, LINKSTAT)); airo_handle_link() 3311 if (le16_to_cpu(hdr.status) & 2) airo_handle_rx() 3319 len = le16_to_cpu(hdr.len); airo_handle_rx() 3349 gap = le16_to_cpu(v); airo_handle_rx() 3725 if (le16_to_cpu(hdr.status) & 2) mpi_receive_802_11() 3729 len = le16_to_cpu(hdr.len); mpi_receive_802_11() 3883 if (le16_to_cpu(cap_rid.len) >= sizeof(cap_rid) && setup_card() 4176 len = min(len, (int)le16_to_cpu(*(__le16*)pBuf)) - 2; PC4500_readrid() 4668 mode = le16_to_cpu(status_rid.mode); proc_status_open() 4692 le16_to_cpu(status_rid.mode), proc_status_open() 4693 le16_to_cpu(status_rid.normalizedSignalStrength), proc_status_open() 4694 le16_to_cpu(status_rid.signalQuality), proc_status_open() 4695 le16_to_cpu(status_rid.SSIDlen), proc_status_open() 4698 le16_to_cpu(status_rid.channel), proc_status_open() 4699 le16_to_cpu(status_rid.currentXmitRate) / 2, proc_status_open() 4704 le16_to_cpu(cap_rid.radioType), proc_status_open() 4705 le16_to_cpu(cap_rid.country), proc_status_open() 4706 le16_to_cpu(cap_rid.hardVer), proc_status_open() 4707 le16_to_cpu(cap_rid.softVer), proc_status_open() 4708 le16_to_cpu(cap_rid.softSubVer), proc_status_open() 4709 le16_to_cpu(cap_rid.bootBlockVer)); proc_status_open() 4748 len = le16_to_cpu(stats.len); proc_stats_rid_open() 4787 return (le16_to_cpu(ai->config.rmode) & le16_to_cpu(RXMODE_MASK)) >= sniffing_mode() 4788 le16_to_cpu(RXMODE_RFMON); sniffing_mode() 5054 le16_to_cpu(ai->config.channelSet), proc_config_open() 5055 le16_to_cpu(ai->config.txPower) proc_config_open() 5069 le16_to_cpu(ai->config.longRetryLimit), proc_config_open() 5070 le16_to_cpu(ai->config.shortRetryLimit), proc_config_open() 5071 le16_to_cpu(ai->config.rtsThres), proc_config_open() 5072 le16_to_cpu(ai->config.txLifetime), proc_config_open() 5073 le16_to_cpu(ai->config.rxLifetime), proc_config_open() 5078 le16_to_cpu(ai->config.fragThresh), proc_config_open() 5185 if (le16_to_cpu(wkr.kindex) == index) { get_wep_key() 5186 int klen = min_t(int, buflen, le16_to_cpu(wkr.klen)); get_wep_key() 5350 le16_to_cpu(wkr.kindex), proc_wepkey_open() 5351 le16_to_cpu(wkr.klen)); proc_wepkey_open() 5390 size_t len = le16_to_cpu(SSID_rid.ssids[i].len); proc_SSID_open() 5491 le16_to_cpu(BSSList_rid.dBm)); proc_BSSList_open() 5493 le16_to_cpu(BSSList_rid.dsChannel), proc_BSSList_open() 5756 sq = le16_to_cpu(status_rid->signalQuality); airo_get_quality() 5848 ch = le16_to_cpu(status_rid.channel); airo_get_freq() 5924 memcpy(extra, status_rid.SSID, le16_to_cpu(status_rid.SSIDlen)); airo_get_essid() 5928 dwrq->length = le16_to_cpu(status_rid.SSIDlen); airo_get_essid() 6116 vwrq->value = le16_to_cpu(status_rid.currentXmitRate) * 500000; airo_get_rate() 6160 vwrq->value = le16_to_cpu(local->config.rtsThres); airo_get_rts() 6204 vwrq->value = le16_to_cpu(local->config.fragThresh); airo_get_frag() 6804 vwrq->value = le16_to_cpu(local->config.txPower); airo_get_txpow() 6867 vwrq->value = le16_to_cpu(local->config.txLifetime) * 1024; airo_get_retry() 6870 vwrq->value = le16_to_cpu(local->config.longRetryLimit); airo_get_retry() 6873 vwrq->value = le16_to_cpu(local->config.shortRetryLimit); airo_get_retry() 6981 range->txpower[i] = le16_to_cpu(cap_rid.txPowerLevels[i]); airo_get_range() 7081 vwrq->value = le16_to_cpu(local->config.fastListenDelay) * 1024; airo_get_power() 7084 vwrq->value = le16_to_cpu(local->config.fastListenInterval) * 1024; airo_get_power() 7126 vwrq->value = le16_to_cpu(local->config.rssiThreshold); airo_get_sens() 7161 dBm = le16_to_cpu(BSSList.dBm); airo_get_aplist() 7315 iwe.u.freq.m = le16_to_cpu(bss->dsChannel); airo_translate_scan() 7322 dBm = le16_to_cpu(bss->dBm); airo_translate_scan() 7729 local->wstats.status = le16_to_cpu(status_rid.mode); airo_read_wireless_stats() 7735 le16_to_cpu(status_rid.sigQuality)); airo_read_wireless_stats() 7738 le16_to_cpu(status_rid.normalizedSignalStrength); airo_read_wireless_stats() 7741 (le16_to_cpu(status_rid.normalizedSignalStrength) + 321) / 2; airo_read_wireless_stats() 7744 if (le16_to_cpu(status_rid.len) >= 124) { airo_read_wireless_stats()
|
/linux-4.4.14/drivers/usb/dwc3/ |
H A D | ep0.c | 322 u32 windex = le16_to_cpu(wIndex_le); dwc3_wIndex_to_dep() 411 wValue = le16_to_cpu(ctrl->wValue); dwc3_ep0_handle_feature() 412 wIndex = le16_to_cpu(ctrl->wIndex); dwc3_ep0_handle_feature() 516 addr = le16_to_cpu(ctrl->wValue); dwc3_ep0_set_address() 558 cfg = le16_to_cpu(ctrl->wValue); dwc3_ep0_set_config() 625 dwc->u2sel = le16_to_cpu(timing.u2sel); dwc3_ep0_set_sel_cmpl() 626 dwc->u2pel = le16_to_cpu(timing.u2pel); dwc3_ep0_set_sel_cmpl() 658 wValue = le16_to_cpu(ctrl->wValue); dwc3_ep0_set_sel() 659 wLength = le16_to_cpu(ctrl->wLength); dwc3_ep0_set_sel() 690 wValue = le16_to_cpu(ctrl->wValue); dwc3_ep0_set_isoch_delay() 691 wLength = le16_to_cpu(ctrl->wLength); dwc3_ep0_set_isoch_delay() 692 wIndex = le16_to_cpu(ctrl->wIndex); dwc3_ep0_set_isoch_delay() 760 len = le16_to_cpu(ctrl->wLength); dwc3_ep0_inspect_setup()
|
H A D | trace.h | 101 le16_to_cpu(__entry->wValue), le16_to_cpu(__entry->wIndex), 102 le16_to_cpu(__entry->wLength)
|
/linux-4.4.14/drivers/mtd/ |
H A D | nftlmount.c | 105 if (le16_to_cpu(h1.EraseMark | h1.EraseMark1) != ERASE_MARK) { find_boot_record() 108 le16_to_cpu(h1.EraseMark), le16_to_cpu(h1.EraseMark1)); find_boot_record() 177 nftl->nb_boot_blocks = le16_to_cpu(mh->FirstPhysicalEUN); find_boot_record() 197 nftl->nb_blocks = le16_to_cpu(mh->NumEraseUnits) + le16_to_cpu(mh->FirstPhysicalEUN); find_boot_record() 320 erase_mark = le16_to_cpu ((uci.EraseMark | uci.EraseMark1)); NFTL_formatblock() 507 erase_mark = le16_to_cpu ((h1.EraseMark | h1.EraseMark1)); check_and_mark_free_block() 566 return le16_to_cpu((uci.FoldMark | uci.FoldMark1)); get_fold_mark() 614 logical_block = le16_to_cpu ((h0.VirtUnitNum | h0.SpareVirtUnitNum)); NFTL_mount() 615 rep_block = le16_to_cpu ((h0.ReplUnitNum | h0.SpareReplUnitNum)); NFTL_mount() 617 erase_mark = le16_to_cpu ((h1.EraseMark | h1.EraseMark1)); NFTL_mount() 773 s->LastFreeEUN = le16_to_cpu(s->MediaHdr.FirstPhysicalEUN); NFTL_mount()
|
H A D | ftl.c | 185 (header.NumTransferUnits >= le16_to_cpu(header.NumEraseUnits))) { scan_header() 208 part->DataUnits = le16_to_cpu(part->header.NumEraseUnits) - build_maps() 223 for (i = 0; i < le16_to_cpu(part->header.NumEraseUnits); i++) { build_maps() 224 offset = ((i + le16_to_cpu(part->header.FirstPhysicalEUN)) build_maps() 235 if (hdr_ok && (le16_to_cpu(header.LogicalEUN) < part->DataUnits) && build_maps() 236 (part->EUNInfo[le16_to_cpu(header.LogicalEUN)].Offset == 0xffffffff)) { build_maps() 237 part->EUNInfo[le16_to_cpu(header.LogicalEUN)].Offset = offset; build_maps() 238 part->EUNInfo[le16_to_cpu(header.LogicalEUN)].EraseCount = build_maps() 247 if (hdr_ok && (le16_to_cpu(header.LogicalEUN) == 0xffff)) { build_maps() 263 (xvalid+xtrans != le16_to_cpu(header.NumEraseUnits))) { build_maps()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | ampdu.c | 537 fbr_iscck = !(le16_to_cpu(txh->XtraFrameTypes) & 0x03); brcms_c_ampdu_add_frame() 583 uint fifo = le16_to_cpu(txh->TxFrameID) & TXFID_QUEUE_MASK; brcms_c_ampdu_add_frame() 614 mcl = le16_to_cpu(txh->MacTxControlLow); brcms_c_ampdu_add_frame() 663 fifo = le16_to_cpu(txh->TxFrameID) & TXFID_QUEUE_MASK; brcms_c_ampdu_finalize() 666 mcl = le16_to_cpu(txh->MacTxControlLow); brcms_c_ampdu_finalize() 677 fbr_iscck = ((le16_to_cpu(txh->XtraFrameTypes) & 0x3) == 0); brcms_c_ampdu_finalize() 689 mcl = le16_to_cpu(txh->MacTxControlLow); brcms_c_ampdu_finalize() 731 fbr_iscck = !(le16_to_cpu(txh->XtraFrameTypes) & 0x03); brcms_c_ampdu_finalize() 777 mch = le16_to_cpu(txh->MacTxControlHigh); brcms_c_ampdu_finalize() 941 mcl = le16_to_cpu(txh->MacTxControlLow); brcms_c_ampdu_dotxstatus_complete() 944 seq = le16_to_cpu(h->seq_ctrl) >> SEQNUM_SHIFT; brcms_c_ampdu_dotxstatus_complete() 950 mimoantsel = le16_to_cpu(txh->ABI_MimoAntSel); brcms_c_ampdu_dotxstatus_complete() 1076 mcl = le16_to_cpu(txh->MacTxControlLow); brcms_c_ampdu_dotxstatus()
|
/linux-4.4.14/drivers/scsi/ |
H A D | nsp32_io.h | 92 return le16_to_cpu(readw(ptr)); nsp32_mmio_read2() 210 return le16_to_cpu(readw(data_ptr)); nsp32_mmio_index_read2()
|
/linux-4.4.14/drivers/isdn/hisax/ |
H A D | st5481_init.c | 66 le16_to_cpu(dev->descriptor.idVendor), probe_st5481() 67 le16_to_cpu(dev->descriptor.idProduct), probe_st5481()
|
/linux-4.4.14/drivers/net/wireless/rsi/ |
H A D | rsi_91x_pkt.c | 48 seq_num = (le16_to_cpu(tmp_hdr->seq_ctrl) >> 4); rsi_send_data_pkt() 180 msg[6] = cpu_to_le16(le16_to_cpu(wh->seq_ctrl) >> 4); rsi_send_mgmt_pkt()
|
H A D | rsi_mgmt.h | 266 return (le16_to_cpu(*(__le16 *)&addr[offset]) & 0x7000) >> 12; rsi_get_queueno() 271 return (le16_to_cpu(*(__le16 *)&addr[offset])) & 0x0fff; rsi_get_length() 276 return le16_to_cpu(*((__le16 *)&addr[offset + 4])) & 0x00ff; rsi_get_extended_desc()
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.c | 326 adapter->phy.link_speed = le16_to_cpu(evt->qos_link_speed) * 10; be_async_grp5_qos_speed_process() 337 adapter->pvid = le16_to_cpu(evt->tag) & VLAN_VID_MASK; be_async_grp5_pvid_state_process() 396 adapter->qnq_vid = le16_to_cpu(evt->vlan_tag); be_async_dbg_evt_process() 969 eqo->q.id = le16_to_cpu(resp->eq_id); be_cmd_eq_create() 971 (ver == 2) ? le16_to_cpu(resp->msix_idx) : eqo->idx; be_cmd_eq_create() 1155 cq->id = le16_to_cpu(resp->cq_id); be_cmd_cq_create() 1230 mccq->id = le16_to_cpu(resp->id); be_cmd_mccq_ext_create() 1274 mccq->id = le16_to_cpu(resp->id); be_cmd_mccq_org_create() 1333 txq->id = le16_to_cpu(resp->cid); be_cmd_txq_create() 1378 rxq->id = le16_to_cpu(resp->id); be_cmd_rxq_create() 1674 le16_to_cpu(resp->link_speed) * 10 : be_cmd_link_status_query() 2064 *tx_fc = le16_to_cpu(resp->tx_flow_control); be_cmd_get_flow_control() 2065 *rx_fc = le16_to_cpu(resp->rx_flow_control); be_cmd_get_flow_control() 2803 adapter->phy.phy_type = le16_to_cpu(resp_phy_info->phy_type); be_cmd_get_phy_info() 2805 le16_to_cpu(resp_phy_info->interface_type); be_cmd_get_phy_info() 2807 le16_to_cpu(resp_phy_info->auto_speeds_supported); be_cmd_get_phy_info() 2809 le16_to_cpu(resp_phy_info->fixed_speeds_supported); be_cmd_get_phy_info() 3101 mac_addr_size = le16_to_cpu(mac_entry->mac_addr_size); be_cmd_get_mac_from_list() 3324 *pvid = le16_to_cpu(vid); be_cmd_get_hsw_config() 3656 res->max_uc_mac = le16_to_cpu(desc->unicast_mac_count); be_copy_nic_desc() 3657 res->max_vlans = le16_to_cpu(desc->vlan_count); be_copy_nic_desc() 3658 res->max_mcast_mac = le16_to_cpu(desc->mcast_mac_count); be_copy_nic_desc() 3659 res->max_tx_qs = le16_to_cpu(desc->txq_count); be_copy_nic_desc() 3660 res->max_rss_qs = le16_to_cpu(desc->rssq_count); be_copy_nic_desc() 3661 res->max_rx_qs = le16_to_cpu(desc->rq_count); be_copy_nic_desc() 3662 res->max_evt_qs = le16_to_cpu(desc->eq_count); be_copy_nic_desc() 3663 res->max_cq_count = le16_to_cpu(desc->cq_count); be_copy_nic_desc() 3664 res->max_iface_count = le16_to_cpu(desc->iface_count); be_copy_nic_desc() 3665 res->max_mcc_count = le16_to_cpu(desc->mcc_count); be_copy_nic_desc() 3781 desc_count = le16_to_cpu(resp->desc_count); be_cmd_get_profile_config() 3786 res->max_vfs = le16_to_cpu(pcie->num_vfs); be_cmd_get_profile_config() 4255 *profile_id = le16_to_cpu(resp->active_profile_id); be_cmd_get_active_profile()
|
/linux-4.4.14/net/mac802154/ |
H A D | trace.h | 167 le16_to_cpu(__entry->short_addr)) 182 le16_to_cpu(__entry->pan_id))
|
/linux-4.4.14/fs/ufs/ |
H A D | swab.h | 83 return le16_to_cpu((__force __le16)n); fs16_to_cpu()
|
/linux-4.4.14/drivers/usb/isp1760/ |
H A D | isp1760-udc.c | 217 *(u16 *)buf = le16_to_cpu(readw(udc->regs + DC_DATAPORT)); isp1760_udc_receive() 472 ep = isp1760_udc_find_ep(udc, le16_to_cpu(req->wIndex)); isp1760_udc_get_status() 540 u16 index = le16_to_cpu(req->wIndex); isp1760_ep0_setup_standard() 584 u16 index = le16_to_cpu(req->wIndex); isp1760_ep0_setup_standard() 615 return isp1760_udc_set_address(udc, le16_to_cpu(req->wValue)); isp1760_ep0_setup_standard() 687 udc->ep0_length = le16_to_cpu(req.r.wLength); isp1760_ep0_setup() 694 le16_to_cpu(req.r.wValue), le16_to_cpu(req.r.wIndex), isp1760_ep0_setup() 695 le16_to_cpu(req.r.wLength)); isp1760_ep0_setup() 727 le16_to_cpu(desc->wMaxPacketSize) > ep->maxpacket) { isp1760_ep_enable() 732 le16_to_cpu(desc->wMaxPacketSize), ep->maxpacket); isp1760_ep_enable() 756 uep->maxpacket = le16_to_cpu(desc->wMaxPacketSize); isp1760_ep_enable()
|
/linux-4.4.14/drivers/hid/ |
H A D | hid-elo.c | 188 u16 fw_lvl = le16_to_cpu(dev->descriptor.bcdDevice); elo_broken_firmware() 199 child_vid = le16_to_cpu(child->descriptor.idVendor); usb_hub_for_each_child() 200 child_pid = le16_to_cpu(child->descriptor.idProduct); usb_hub_for_each_child()
|
/linux-4.4.14/drivers/hid/i2c-hid/ |
H A D | i2c-hid.c | 243 u16 readRegister = le16_to_cpu(ihid->hdesc.wDataRegister); i2c_hid_get_report() 282 u16 dataRegister = le16_to_cpu(ihid->hdesc.wDataRegister); i2c_hid_set_or_send_report() 283 u16 outputRegister = le16_to_cpu(ihid->hdesc.wOutputRegister); i2c_hid_set_or_send_report() 284 u16 maxOutputLength = le16_to_cpu(ihid->hdesc.wMaxOutputLength); i2c_hid_set_or_send_report() 382 int size = le16_to_cpu(ihid->hdesc.wMaxInputLength); i2c_hid_get_input() 650 rsize = le16_to_cpu(hdesc->wReportDescLength); i2c_hid_parse() 834 if (le16_to_cpu(hdesc->bcdVersion) != 0x0100) { i2c_hid_fetch_hid_descriptor() 837 le16_to_cpu(hdesc->bcdVersion)); i2c_hid_fetch_hid_descriptor() 842 dsize = le16_to_cpu(hdesc->wHIDDescLength); i2c_hid_fetch_hid_descriptor() 1029 hid->version = le16_to_cpu(ihid->hdesc.bcdVersion); i2c_hid_probe() 1030 hid->vendor = le16_to_cpu(ihid->hdesc.wVendorID); i2c_hid_probe() 1031 hid->product = le16_to_cpu(ihid->hdesc.wProductID); i2c_hid_probe()
|
/linux-4.4.14/sound/usb/line6/ |
H A D | playback.c | 40 short pv = le16_to_cpu(*p); change_volume() 126 short pov = le16_to_cpu(*po); add_monitor_signal() 127 short piv = le16_to_cpu(*pi); add_monitor_signal()
|
/linux-4.4.14/drivers/staging/lustre/lustre/lov/ |
H A D | lov_pack.c | 64 le16_to_cpu(lmm->lmm_stripe_count), lov_dump_lmm_common() 65 le16_to_cpu(lmm->lmm_layout_gen)); lov_dump_lmm_common() 92 le16_to_cpu(lmm->lmm_stripe_count)); lov_dump_lmm_v1() 100 le16_to_cpu(lmm->lmm_stripe_count)); lov_dump_lmm_v3() 173 stripe_count = le16_to_cpu((*lmmp)->lmm_stripe_count); lov_packmd()
|
/linux-4.4.14/drivers/mfd/ |
H A D | dln2.c | 272 handle = le16_to_cpu(hdr->handle); dln2_rx() 273 id = le16_to_cpu(hdr->id); dln2_rx() 274 echo = le16_to_cpu(hdr->echo); dln2_rx() 275 size = le16_to_cpu(hdr->size); dln2_rx() 482 size = le16_to_cpu(rsp->hdr.size); _dln2_transfer() 489 if (le16_to_cpu(rsp->result) > 0x80) { _dln2_transfer() 491 handle, le16_to_cpu(rsp->result)); _dln2_transfer()
|
/linux-4.4.14/net/wireless/ |
H A D | mlme.c | 31 u16 status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code); cfg80211_rx_assoc_resp() 70 u16 reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); cfg80211_process_deauth() 89 u16 reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); cfg80211_process_disassoc() 419 u16 frame_type = le16_to_cpu(reg->frame_type); cfg80211_process_mlme_unregistrations() 476 if (frame_type != le16_to_cpu(reg->frame_type)) cfg80211_mlme_register_mgmt() 577 stype = le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE; cfg80211_mlme_mgmt_tx() 671 stype = (le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE) >> 4; cfg80211_rx_mgmt()
|
/linux-4.4.14/drivers/usb/chipidea/ |
H A D | udc.c | 882 dir = (le16_to_cpu(setup->wIndex) & USB_ENDPOINT_DIR_MASK) ? 884 num = le16_to_cpu(setup->wIndex) & USB_ENDPOINT_NUMBER_MASK; 1030 le16_to_cpu(req.wValue) == 1034 num = le16_to_cpu(req.wIndex); 1049 le16_to_cpu(req.wValue) == 1064 if (le16_to_cpu(req.wLength) != 2 || 1065 le16_to_cpu(req.wValue) != 0) 1072 if (le16_to_cpu(req.wLength) != 0 || 1073 le16_to_cpu(req.wIndex) != 0) 1075 ci->address = (u8)le16_to_cpu(req.wValue); 1081 le16_to_cpu(req.wValue) == 1085 num = le16_to_cpu(req.wIndex); 1099 switch (le16_to_cpu(req.wValue)) { 1105 tmode = le16_to_cpu(req.wIndex) >> 8;
|
/linux-4.4.14/drivers/usb/serial/ |
H A D | usb-serial.c | 468 le16_to_cpu(serial->dev->descriptor.idVendor), serial_proc_show() 469 le16_to_cpu(serial->dev->descriptor.idProduct)); serial_proc_show() 821 if (((le16_to_cpu(dev->descriptor.idVendor) == PL2303_VENDOR_ID) && usb_serial_probe() 822 (le16_to_cpu(dev->descriptor.idProduct) == PL2303_PRODUCT_ID)) || usb_serial_probe() 823 ((le16_to_cpu(dev->descriptor.idVendor) == ATEN_VENDOR_ID) && usb_serial_probe() 824 (le16_to_cpu(dev->descriptor.idProduct) == ATEN_PRODUCT_ID)) || usb_serial_probe() 825 ((le16_to_cpu(dev->descriptor.idVendor) == ALCOR_VENDOR_ID) && usb_serial_probe() 826 (le16_to_cpu(dev->descriptor.idProduct) == ALCOR_PRODUCT_ID)) || usb_serial_probe() 827 ((le16_to_cpu(dev->descriptor.idVendor) == SIEMENS_VENDOR_ID) && usb_serial_probe() 828 (le16_to_cpu(dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_EF81))) { usb_serial_probe()
|
/linux-4.4.14/drivers/message/fusion/ |
H A D | mptsas.c | 143 ioc->name, le16_to_cpu(phy_data->AttachedDeviceHandle))); mptsas_print_phy_data() 145 ioc->name, le16_to_cpu(phy_data->ControllerDevHandle))); mptsas_print_phy_data() 171 le16_to_cpu(pg0->AttachedDevHandle))); mptsas_print_phy_pg0() 213 ioc->name, le16_to_cpu(pg0->DevHandle))); mptsas_print_device_pg0() 215 ioc->name, le16_to_cpu(pg0->ParentDevHandle))); mptsas_print_device_pg0() 217 ioc->name, le16_to_cpu(pg0->EnclosureHandle))); mptsas_print_device_pg0() 219 ioc->name, le16_to_cpu(pg0->Slot))); mptsas_print_device_pg0() 229 ioc->name, le16_to_cpu(pg0->AccessStatus))); mptsas_print_device_pg0() 233 ioc->name, le16_to_cpu(pg0->Flags))); mptsas_print_device_pg0() 253 ioc->name, le16_to_cpu(pg1->OwnerDevHandle))); mptsas_print_expander_pg1() 256 le16_to_cpu(pg1->AttachedDevHandle))); mptsas_print_expander_pg1() 1216 le16_to_cpu(pScsiTmReply->IOCStatus), mptsas_taskmgmt_complete() 1392 enclosure->enclosure_handle = le16_to_cpu(buffer->EnclosureHandle); mptsas_sas_enclosure_pg0() 1393 enclosure->flags = le16_to_cpu(buffer->Flags); mptsas_sas_enclosure_pg0() 1394 enclosure->num_slot = le16_to_cpu(buffer->NumSlots); mptsas_sas_enclosure_pg0() 1395 enclosure->start_slot = le16_to_cpu(buffer->StartSlot); mptsas_sas_enclosure_pg0() 2415 le16_to_cpu(buffer->NvdataVersionPersistent); mptsas_sas_io_unit_pg0() 2417 le16_to_cpu(buffer->NvdataVersionDefault); mptsas_sas_io_unit_pg0() 2428 le16_to_cpu(buffer->PhyData[i].ControllerDevHandle); mptsas_sas_io_unit_pg0() 2482 le16_to_cpu(buffer->IODeviceMissingDelay); mptsas_sas_io_unit_pg1() 2549 phy_info->identify.handle = le16_to_cpu(buffer->OwnerDevHandle); mptsas_sas_phy_pg0() 2550 phy_info->attached.handle = le16_to_cpu(buffer->AttachedDevHandle); mptsas_sas_phy_pg0() 2617 device_info->handle = le16_to_cpu(buffer->DevHandle); mptsas_sas_device_pg0() 2618 device_info->handle_parent = le16_to_cpu(buffer->ParentDevHandle); mptsas_sas_device_pg0() 2620 le16_to_cpu(buffer->EnclosureHandle); mptsas_sas_device_pg0() 2621 device_info->slot = le16_to_cpu(buffer->Slot); mptsas_sas_device_pg0() 2631 device_info->flags = le16_to_cpu(buffer->Flags); mptsas_sas_device_pg0() 2709 le16_to_cpu(buffer->DevHandle); mptsas_sas_expander_pg0() 2713 le16_to_cpu(buffer->ParentDevHandle); mptsas_sas_expander_pg0() 2786 phy_info->identify.handle = le16_to_cpu(buffer->OwnerDevHandle); mptsas_sas_expander_pg1() 2787 phy_info->attached.handle = le16_to_cpu(buffer->AttachedDevHandle); mptsas_sas_expander_pg1() 2937 if (le16_to_cpu(smprep->ResponseDataLength) != mptsas_exp_repmanufacture_info() 3437 le16_to_cpu(expander_data->DevHandle); mptsas_expander_event_add() 3441 le16_to_cpu(expander_data->ParentDevHandle); mptsas_expander_event_add() 3626 le16_to_cpu(expander_data->DevHandle); mptsas_send_expander_event() 3630 le16_to_cpu(expander_data->ParentDevHandle); mptsas_send_expander_event() 3714 le16_to_cpu(link_data->DevHandle)); mptsas_send_link_status_event() 4042 current_depth = le16_to_cpu(qfull_data->CurrentDepth); mptsas_handle_queue_full_event() 4603 hot_plug_info.handle = le16_to_cpu(sas_event_data->DevHandle); mptsas_send_sas_event() 5011 ioc_stat = le16_to_cpu(reply->IOCStatus); mptsas_event_process()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | msgbuf.c | 842 (s16)le16_to_cpu(ioctl_resp->compl_hdr.status); brcmf_msgbuf_process_ioctl_complete() 843 msgbuf->ioctl_resp_ret_len = le16_to_cpu(ioctl_resp->resp_len); brcmf_msgbuf_process_ioctl_complete() 865 flowid = le16_to_cpu(tx_status->compl_hdr.flow_ring_id); brcmf_msgbuf_process_txstatus() 1104 buflen = le16_to_cpu(event->event_data_len); brcmf_msgbuf_process_event() 1136 data_offset = le16_to_cpu(rx_complete->data_offset); brcmf_msgbuf_process_rx_complete() 1137 buflen = le16_to_cpu(rx_complete->data_len); brcmf_msgbuf_process_rx_complete() 1166 flowid = le16_to_cpu(flowring_create_resp->compl_hdr.flow_ring_id); brcmf_msgbuf_process_flow_ring_create_response() 1168 status = le16_to_cpu(flowring_create_resp->compl_hdr.status); brcmf_msgbuf_process_flow_ring_create_response() 1194 flowid = le16_to_cpu(flowring_delete_resp->compl_hdr.flow_ring_id); brcmf_msgbuf_process_flow_ring_delete_response() 1196 status = le16_to_cpu(flowring_delete_resp->compl_hdr.status); brcmf_msgbuf_process_flow_ring_delete_response()
|