| /linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | process_pptables_v1_0.c | 182 record->us_vdd = le16_to_cpu(atom_record->usVdd); in get_vddc_lookup_table() 183 record->us_cac_low = le16_to_cpu(atom_record->usCACLow); in get_vddc_lookup_table() 184 record->us_cac_mid = le16_to_cpu(atom_record->usCACMid); in get_vddc_lookup_table() 185 record->us_cac_high = le16_to_cpu(atom_record->usCACHigh); in get_vddc_lookup_table() 213 = le16_to_cpu(atom_ppm_table->usCpuCoreNumber); in get_platform_power_management_table() 254 le16_to_cpu(powerplay_table->usUlvVoltageOffset); in init_dpm_2_parameters() 261 le16_to_cpu(powerplay_table->usPowerControlLimit); in init_dpm_2_parameters() 280 le16_to_cpu(powerplay_table->usVddcLookupTableOffset)); in init_dpm_2_parameters() 289 le16_to_cpu(powerplay_table->usVddgfxLookupTableOffset)); in init_dpm_2_parameters() 298 (((unsigned long)powerplay_table) + le16_to_cpu(powerplay_table->usPPMTableOffset)); in init_dpm_2_parameters() [all …]
|
| H A D | vega10_processpptables.c | 73 le16_to_cpu(powerplay_table->usStateArrayOffset)); in check_powerplay_tables() 130 le16_to_cpu(powerplay_table->usThermalControllerOffset)); in init_thermal_controller() 165 le16_to_cpu(powerplay_table->usFanTableOffset)); in init_thermal_controller() 177 le16_to_cpu(fan_table_v1->usFanOutputSensitivity); in init_thermal_controller() 179 le16_to_cpu(fan_table_v1->usFanRPMMax); in init_thermal_controller() 181 le16_to_cpu(fan_table_v1->usThrottlingRPM); in init_thermal_controller() 183 le16_to_cpu(fan_table_v1->usFanAcousticLimit); in init_thermal_controller() 185 le16_to_cpu(fan_table_v1->usTargetTemperature); in init_thermal_controller() 187 le16_to_cpu(fan_table_v1->usMinimumPWMLimit); in init_thermal_controller() 189 le16_to_cpu(fan_table_v1->usTargetGfxClk); in init_thermal_controller() [all …]
|
| H A D | processpptables.c | 55 if (le16_to_cpu(powerplay_table->usTableSize) >= in get_vce_table_offset() 64 le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset)); in get_vce_table_offset() 65 if (le16_to_cpu(extended_header->usSize) >= in get_vce_table_offset() 67 vce_table_offset = le16_to_cpu(extended_header->usVCETableOffset); in get_vce_table_offset() 157 if (le16_to_cpu(powerplay_table->usTableSize) >= in get_uvd_table_offset() 165 le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset)); in get_uvd_table_offset() 166 if (le16_to_cpu(extended_header->usSize) >= in get_uvd_table_offset() 168 uvd_table_offset = le16_to_cpu(extended_header->usUVDTableOffset); in get_uvd_table_offset() 222 if (le16_to_cpu(powerplay_table->usTableSize) >= in get_samu_table_offset() 230 le16_to_cpu(powerplay_table3->usExtendendedHeaderOffset)); in get_samu_table_offset() [all …]
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_cmdresp.c | 45 switch (le16_to_cpu(resp->command)) { in mwifiex_process_cmdresp_error() 50 resp->result, le16_to_cpu(pm->action)); in mwifiex_process_cmdresp_error() 52 if (le16_to_cpu(pm->action) == EN_AUTO_PS && in mwifiex_process_cmdresp_error() 53 (le16_to_cpu(pm->params.ps_bitmap) & BITMAP_STA_PS) && in mwifiex_process_cmdresp_error() 103 priv->data_rssi_last = le16_to_cpu(rssi_info_rsp->data_rssi_last); in mwifiex_ret_802_11_rssi_info() 104 priv->data_nf_last = le16_to_cpu(rssi_info_rsp->data_nf_last); in mwifiex_ret_802_11_rssi_info() 106 priv->data_rssi_avg = le16_to_cpu(rssi_info_rsp->data_rssi_avg); in mwifiex_ret_802_11_rssi_info() 107 priv->data_nf_avg = le16_to_cpu(rssi_info_rsp->data_nf_avg); in mwifiex_ret_802_11_rssi_info() 109 priv->bcn_rssi_last = le16_to_cpu(rssi_info_rsp->bcn_rssi_last); in mwifiex_ret_802_11_rssi_info() 110 priv->bcn_nf_last = le16_to_cpu(rssi_info_rsp->bcn_nf_last); in mwifiex_ret_802_11_rssi_info() [all …]
|
| H A D | ie.c | 41 mask = le16_to_cpu(priv->mgmt_ie[i].mgmt_subtype_mask); in mwifiex_ie_get_autoidx() 42 len = le16_to_cpu(ie->ie_length); in mwifiex_ie_get_autoidx() 77 input_len = le16_to_cpu(ie_list->len); in mwifiex_update_autoindex_ies() 84 tlv_len = le16_to_cpu(ie->ie_length); in mwifiex_update_autoindex_ies() 89 index = le16_to_cpu(ie->ie_index); in mwifiex_update_autoindex_ies() 90 mask = le16_to_cpu(ie->mgmt_subtype_mask); in mwifiex_update_autoindex_ies() 100 memcpy(tmp, &ie->ie_buffer, le16_to_cpu(ie->ie_length)); in mwifiex_update_autoindex_ies() 123 le16_to_cpu( in mwifiex_update_autoindex_ies() 161 le16_to_cpu(beacon_ie->ie_length); in mwifiex_update_uap_custom_ie() 168 le16_to_cpu(pr_ie->ie_length); in mwifiex_update_uap_custom_ie() [all …]
|
| /linux/fs/smb/server/ |
| H A D | smb2misc.c | 99 *off = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferOffset); in smb2_get_data_area_len() 100 *len = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferLength); in smb2_get_data_area_len() 104 le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathOffset), in smb2_get_data_area_len() 106 *len = le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathLength); in smb2_get_data_area_len() 112 le16_to_cpu(((struct smb2_create_req *)hdr)->NameOffset), in smb2_get_data_area_len() 115 le16_to_cpu(((struct smb2_create_req *)hdr)->NameLength); in smb2_get_data_area_len() 135 le16_to_cpu(((struct smb2_query_info_req *)hdr)->InputBufferOffset), in smb2_get_data_area_len() 141 le16_to_cpu(((struct smb2_set_info_req *)hdr)->BufferOffset), in smb2_get_data_area_len() 146 *off = le16_to_cpu(((struct smb2_read_req *)hdr)->ReadChannelInfoOffset); in smb2_get_data_area_len() 147 *len = le16_to_cpu(((struct smb2_read_req *)hdr)->ReadChannelInfoLength); in smb2_get_data_area_len() [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_atombios.c | 45 i2c.mask_clk_reg = le16_to_cpu(gpio->usClkMaskRegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio() 46 i2c.mask_data_reg = le16_to_cpu(gpio->usDataMaskRegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio() 47 i2c.en_clk_reg = le16_to_cpu(gpio->usClkEnRegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio() 48 i2c.en_data_reg = le16_to_cpu(gpio->usDataEnRegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio() 49 i2c.y_clk_reg = le16_to_cpu(gpio->usClkY_RegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio() 50 i2c.y_data_reg = le16_to_cpu(gpio->usDataY_RegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio() 51 i2c.a_clk_reg = le16_to_cpu(gpio->usClkA_RegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio() 52 i2c.a_data_reg = le16_to_cpu(gpio->usDataA_RegisterIndex); in amdgpu_atombios_get_bus_rec_for_i2c_gpio() 204 gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex); in amdgpu_atombios_lookup_gpio() 303 le16_to_cpu(obj_header->usDisplayPathTableOffset)); in amdgpu_atombios_has_dce_engine_info() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | legacy_dpm.c | 147 adev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in amdgpu_get_platform_caps() 148 adev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in amdgpu_get_platform_caps() 173 amdgpu_table->entries[i].clk = le16_to_cpu(entry->usClockLow) | in amdgpu_parse_clk_voltage_dep_table() 175 amdgpu_table->entries[i].v = le16_to_cpu(entry->usVoltage); in amdgpu_parse_clk_voltage_dep_table() 211 if (le16_to_cpu(power_info->pplib.usTableSize) >= in amdgpu_parse_extended_power_table() 215 le16_to_cpu(power_info->pplib3.usFanTableOffset)); in amdgpu_parse_extended_power_table() 217 adev->pm.dpm.fan.t_min = le16_to_cpu(fan_info->fan.usTMin); in amdgpu_parse_extended_power_table() 218 adev->pm.dpm.fan.t_med = le16_to_cpu(fan_info->fan.usTMed); in amdgpu_parse_extended_power_table() 219 adev->pm.dpm.fan.t_high = le16_to_cpu(fan_info->fan.usTHigh); in amdgpu_parse_extended_power_table() 220 adev->pm.dpm.fan.pwm_min = le16_to_cpu(fan_info->fan.usPWMMin); in amdgpu_parse_extended_power_table() [all …]
|
| /linux/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)); in radeon_ucode_print_common_hdr() 36 DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor)); in radeon_ucode_print_common_hdr() 37 DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major)); in radeon_ucode_print_common_hdr() 38 DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor)); in radeon_ucode_print_common_hdr() 48 uint16_t version_major = le16_to_cpu(hdr->header_version_major); in radeon_ucode_print_mc_hdr() 49 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); in radeon_ucode_print_mc_hdr() 69 uint16_t version_major = le16_to_cpu(hdr->header_version_major); in radeon_ucode_print_smc_hdr() 70 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); in radeon_ucode_print_smc_hdr() 87 uint16_t version_major = le16_to_cpu(hdr->header_version_major); in radeon_ucode_print_gfx_hdr() 88 uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); in radeon_ucode_print_gfx_hdr() [all …]
|
| H A D | r600_dpm.c | 831 radeon_table->entries[i].clk = le16_to_cpu(entry->usClockLow) | in r600_parse_clk_voltage_dep_table() 833 radeon_table->entries[i].v = le16_to_cpu(entry->usVoltage); in r600_parse_clk_voltage_dep_table() 856 rdev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in r600_get_platform_caps() 857 rdev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in r600_get_platform_caps() 887 if (le16_to_cpu(power_info->pplib.usTableSize) >= in r600_parse_extended_power_table() 891 le16_to_cpu(power_info->pplib3.usFanTableOffset)); in r600_parse_extended_power_table() 893 rdev->pm.dpm.fan.t_min = le16_to_cpu(fan_info->fan.usTMin); in r600_parse_extended_power_table() 894 rdev->pm.dpm.fan.t_med = le16_to_cpu(fan_info->fan.usTMed); in r600_parse_extended_power_table() 895 rdev->pm.dpm.fan.t_high = le16_to_cpu(fan_info->fan.usTHigh); in r600_parse_extended_power_table() 896 rdev->pm.dpm.fan.pwm_min = le16_to_cpu(fan_info->fan.usPWMMin); in r600_parse_extended_power_table() [all …]
|
| H A D | radeon_atombios.c | 55 if ((le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x0018) || in radeon_lookup_i2c_gpio_quirks() 56 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x0019) || in radeon_lookup_i2c_gpio_quirks() 57 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x001a)) { in radeon_lookup_i2c_gpio_quirks() 66 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x1936) && in radeon_lookup_i2c_gpio_quirks() 79 (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x1fda) && in radeon_lookup_i2c_gpio_quirks() 91 i2c.mask_clk_reg = le16_to_cpu(gpio->usClkMaskRegisterIndex) * 4; in radeon_get_bus_rec_for_i2c_gpio() 92 i2c.mask_data_reg = le16_to_cpu(gpio->usDataMaskRegisterIndex) * 4; in radeon_get_bus_rec_for_i2c_gpio() 93 i2c.en_clk_reg = le16_to_cpu(gpio->usClkEnRegisterIndex) * 4; in radeon_get_bus_rec_for_i2c_gpio() 94 i2c.en_data_reg = le16_to_cpu(gpio->usDataEnRegisterIndex) * 4; in radeon_get_bus_rec_for_i2c_gpio() 95 i2c.y_clk_reg = le16_to_cpu(gpio->usClkY_RegisterIndex) * 4; in radeon_get_bus_rec_for_i2c_gpio() [all …]
|
| /linux/drivers/usb/core/ |
| H A D | otg_productlist.h | 46 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && in is_targeted() 47 le16_to_cpu(dev->descriptor.idProduct) == 0xbadd)) in is_targeted() 51 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && in is_targeted() 52 le16_to_cpu(dev->descriptor.idProduct) == 0x0200)) in is_targeted() 60 id->idVendor != le16_to_cpu(dev->descriptor.idVendor)) in is_targeted() 64 id->idProduct != le16_to_cpu(dev->descriptor.idProduct)) in is_targeted() 70 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice))) in is_targeted() 74 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice))) in is_targeted() 97 le16_to_cpu(dev->descriptor.idVendor), in is_targeted() 98 le16_to_cpu(dev->descriptor.idProduct)); in is_targeted()
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_tlv.c | 59 attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32); in fbnic_tlv_attr_put_flag() 64 attr = &msg[le16_to_cpu(msg->hdr.len)]; in fbnic_tlv_attr_put_flag() 72 FBNIC_TLV_MSG_SIZE(le16_to_cpu(hdr.len))); in fbnic_tlv_attr_put_flag() 101 attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32); in fbnic_tlv_attr_put_value() 106 attr = &msg[le16_to_cpu(msg->hdr.len)]; in fbnic_tlv_attr_put_value() 121 FBNIC_TLV_MSG_SIZE(le16_to_cpu(hdr.len))); in fbnic_tlv_attr_put_value() 190 attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32); in fbnic_tlv_attr_put_string() 211 le16_to_cpu(attr->hdr.len) - sizeof(*attr)); in fbnic_tlv_attr_get_unsigned() 232 shift = (8 + sizeof(*attr) - le16_to_cpu(attr->hdr.len)) * 8; in fbnic_tlv_attr_get_signed() 236 le16_to_cpu(attr->hdr.len) - sizeof(*attr)); in fbnic_tlv_attr_get_signed() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/bios/ |
| H A D | bios_parser.c | 155 le16_to_cpu(bp->object_info_tbl.v1_1->usConnectorObjectTableOffset)); in bios_parser_get_connectors_number() 168 + le16_to_cpu(bp->object_info_tbl.v1_1->usConnectorObjectTableOffset); in bios_parser_get_connector_id() 182 id = le16_to_cpu(tbl->asObjects[i].usObjectID); in bios_parser_get_connector_id() 234 offset = le16_to_cpu(object->usRecordOffset) in bios_parser_get_i2c_info() 297 offset = le16_to_cpu(object->usRecordOffset) in bios_parser_get_device_tag_record() 359 device_type_from_device_id(le16_to_cpu(device_tag->usDeviceID)); in bios_parser_get_device_tag() 437 le16_to_cpu(firmware_info->usReferenceClock) * 10; in get_firmware_info_v1_4() 439 le16_to_cpu(firmware_info->usMinPixelClockPLL_Input) * 10; in get_firmware_info_v1_4() 441 le16_to_cpu(firmware_info->usMaxPixelClockPLL_Input) * 10; in get_firmware_info_v1_4() 446 info->max_pixel_clock = le16_to_cpu(firmware_info->usMaxPixelClock) * 10; in get_firmware_info_v1_4() [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_onfi.c | 47 len = le16_to_cpu(p->ext_param_page_length) * 16; in nand_flash_detect_ext_param_page() 64 != le16_to_cpu(ep->crc))) { in nand_flash_detect_ext_param_page() 189 if (crc == le16_to_cpu(pbuf[i].crc)) { in nand_onfi_detect() 207 if (crc != le16_to_cpu(pbuf->crc)) { in nand_onfi_detect() 219 val = le16_to_cpu(p->revision); in nand_onfi_detect() 256 memorg->oobsize = le16_to_cpu(p->spare_bytes_per_page); in nand_onfi_detect() 268 if (le16_to_cpu(p->features) & ONFI_FEATURE_16_BIT_BUS) in nand_onfi_detect() 279 (le16_to_cpu(p->features) & ONFI_FEATURE_EXT_PARAM_PAGE)) { in nand_onfi_detect() 298 if (le16_to_cpu(p->opt_cmd) & ONFI_OPT_CMD_SET_GET_FEATURES) { in nand_onfi_detect() 306 if (le16_to_cpu(p->opt_cmd) & ONFI_OPT_CMD_READ_CACHE) in nand_onfi_detect() [all …]
|
| /linux/drivers/scsi/snic/ |
| H A D | wq_enet_desc.h | 62 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; in wq_enet_desc_dec() 63 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec() 65 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> in wq_enet_desc_dec() 67 *header_length = le16_to_cpu(desc->header_length_flags) & in wq_enet_desc_dec() 69 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 71 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 73 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 75 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 77 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 79 *vlan_tag = le16_to_cpu(desc->vlan_tag); in wq_enet_desc_dec()
|
| /linux/drivers/scsi/fnic/ |
| H A D | wq_enet_desc.h | 64 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; in wq_enet_desc_dec() 65 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec() 67 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> in wq_enet_desc_dec() 69 *header_length = le16_to_cpu(desc->header_length_flags) & in wq_enet_desc_dec() 71 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 73 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 75 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 77 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 79 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 81 *vlan_tag = le16_to_cpu(desc->vlan_tag); in wq_enet_desc_dec()
|
| /linux/drivers/net/ethernet/cisco/enic/ |
| H A D | wq_enet_desc.h | 65 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; in wq_enet_desc_dec() 66 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec() 68 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> in wq_enet_desc_dec() 70 *header_length = le16_to_cpu(desc->header_length_flags) & in wq_enet_desc_dec() 72 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 74 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 76 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 78 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 80 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec() 82 *vlan_tag = le16_to_cpu(desc->vlan_tag); in wq_enet_desc_dec()
|
| /linux/fs/ocfs2/ |
| H A D | suballoc.c | 151 return (u32)le16_to_cpu(cl->cl_cpg) * (u32)le16_to_cpu(cl->cl_bpc); in ocfs2_bits_per_group() 186 if (le16_to_cpu(gd->bg_free_bits_count) > le16_to_cpu(gd->bg_bits)) { in ocfs2_validate_gd_self() 189 le16_to_cpu(gd->bg_bits), in ocfs2_validate_gd_self() 190 le16_to_cpu(gd->bg_free_bits_count)); in ocfs2_validate_gd_self() 193 if (le16_to_cpu(gd->bg_bits) > (8 * le16_to_cpu(gd->bg_size))) { in ocfs2_validate_gd_self() 196 le16_to_cpu(gd->bg_bits), in ocfs2_validate_gd_self() 197 8 * le16_to_cpu(gd->bg_size)); in ocfs2_validate_gd_self() 218 max_bits = le16_to_cpu(di->id2.i_chain.cl_cpg) * le16_to_cpu(di->id2.i_chain.cl_bpc); in ocfs2_validate_gd_parent() 219 if (le16_to_cpu(gd->bg_bits) > max_bits) { in ocfs2_validate_gd_parent() 222 le16_to_cpu(gd->bg_bits)); in ocfs2_validate_gd_parent() [all …]
|
| /linux/fs/hpfs/ |
| H A D | map.c | 80 cpi = le16_to_cpu(cp->array[0].index); in hpfs_load_code_page() 89 if (le16_to_cpu(cpd->offs[cpi]) > 0x178) { in hpfs_load_code_page() 94 ptr = (unsigned char *)cpd + le16_to_cpu(cpd->offs[cpi]) + 6; in hpfs_load_code_page() 187 if (le16_to_cpu(fnode->btree.first_free) != in hpfs_map_fnode() 195 if (le16_to_cpu(fnode->ea_size_s) && (le16_to_cpu(fnode->ea_offs) < 0xc4 || in hpfs_map_fnode() 196 …le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s) > 0x2… in hpfs_map_fnode() 200 le16_to_cpu(fnode->ea_offs), le16_to_cpu(fnode->ea_size_s)); in hpfs_map_fnode() 240 if (le16_to_cpu(anode->btree.first_free) != in hpfs_map_anode() 286 …if (le16_to_cpu(de->length) > 292 || (le16_to_cpu(de->length) < 32) || (le16_to_cpu(de->length) & … in hpfs_map_dnode() 290 if (((31 + de->namelen + de->down*4 + 3) & ~3) != le16_to_cpu(de->length)) { in hpfs_map_dnode() [all …]
|
| /linux/drivers/scsi/mpt3sas/ |
| H A D | mpt3sas_warpdrive.c | 66 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _warpdrive_disable_ddio() 70 handle = le16_to_cpu(vol_pg1.DevHandle); in _warpdrive_disable_ddio() 97 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in mpt3sas_get_num_volumes() 102 handle = le16_to_cpu(vol_pg1.DevHandle); in mpt3sas_get_num_volumes() 172 le16_to_cpu(pd_pg0.DevHandle) == in mpt3sas_init_warpdrive_properties() 184 le16_to_cpu(pd_pg0.DevHandle), in mpt3sas_init_warpdrive_properties() 189 raid_device->pd_handle[count] = le16_to_cpu(pd_pg0.DevHandle); in mpt3sas_init_warpdrive_properties() 200 le16_to_cpu(vol_pg0->BlockSize)) / 1024, in mpt3sas_init_warpdrive_properties() 201 le16_to_cpu(vol_pg0->BlockSize)); in mpt3sas_init_warpdrive_properties() 211 le16_to_cpu(vol_pg0->BlockSize)) / 1024); in mpt3sas_init_warpdrive_properties() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | fslog.c | 383 return le16_to_cpu(rt->used) * le16_to_cpu(rt->size) + in bytes_per_rt() 390 u16 t16 = le16_to_cpu(lr->lcns_follow); in lrh_length() 416 const struct CLIENT_REC *cr = ca + le16_to_cpu(next_client); in oldest_client_lsn() 445 if (le16_to_cpu(rhdr->major_ver) <= 1 && !rhdr->minor_ver) in is_rst_page_hdr_valid() 448 if (le16_to_cpu(rhdr->major_ver) > 2) in is_rst_page_hdr_valid() 451 ro = le16_to_cpu(rhdr->ra_off); in is_rst_page_hdr_valid() 456 end_usa += le16_to_cpu(rhdr->rhdr.fix_off); in is_rst_page_hdr_valid() 469 u16 ro = le16_to_cpu(rhdr->ra_off); in is_rst_area_valid() 477 cl = le16_to_cpu(ra->log_clients); in is_rst_area_valid() 482 off = le16_to_cpu(ra->client_off); in is_rst_area_valid() [all …]
|
| /linux/include/soc/fsl/ |
| H A D | dpaa2-fd.h | 184 return !!((le16_to_cpu(fd->simple.format_offset) >> in dpaa2_fd_short_len() 220 return le16_to_cpu(fd->simple.format_offset) & FD_OFFSET_MASK; in dpaa2_fd_get_offset() 243 return (enum dpaa2_fd_format)((le16_to_cpu(fd->simple.format_offset) in dpaa2_fd_get_format() 268 return le16_to_cpu(fd->simple.bpid) & FD_BPID_MASK; in dpaa2_fd_get_bpid() 327 return !!((le16_to_cpu(sg->format_offset) >> SG_SHORT_LEN_FLAG_SHIFT) in dpaa2_sg_short_len() 363 return le16_to_cpu(sg->format_offset) & SG_OFFSET_MASK; in dpaa2_sg_get_offset() 387 return (enum dpaa2_sg_format)((le16_to_cpu(sg->format_offset) in dpaa2_sg_get_format() 411 return le16_to_cpu(sg->bpid) & SG_BPID_MASK; in dpaa2_sg_get_bpid() 433 return !!(le16_to_cpu(sg->format_offset) >> SG_FINAL_FLAG_SHIFT); in dpaa2_sg_is_final() 562 return !!((le16_to_cpu(fle->format_offset) >> in dpaa2_fl_short_len() [all …]
|
| /linux/drivers/net/wireless/ti/wl18xx/ |
| H A D | event.c | 134 le16_to_cpu(mbox->time_sync_tsf_high_msb), in wl18xx_process_mailbox_events() 135 le16_to_cpu(mbox->time_sync_tsf_high_lsb), in wl18xx_process_mailbox_events() 136 le16_to_cpu(mbox->time_sync_tsf_low_msb), in wl18xx_process_mailbox_events() 137 le16_to_cpu(mbox->time_sync_tsf_low_lsb)); in wl18xx_process_mailbox_events() 164 le16_to_cpu(mbox->rx_ba_role_id_bitmap), in wl18xx_process_mailbox_events() 165 le16_to_cpu(mbox->rx_ba_allowed_bitmap)); in wl18xx_process_mailbox_events() 169 le16_to_cpu(mbox->bss_loss_bitmap)); in wl18xx_process_mailbox_events() 173 le16_to_cpu(mbox->channel_switch_role_id_bitmap), in wl18xx_process_mailbox_events() 185 le16_to_cpu(mbox->tx_retry_exceeded_bitmap)); in wl18xx_process_mailbox_events() 189 le16_to_cpu(mbox->inactive_sta_bitmap)); in wl18xx_process_mailbox_events()
|
| /linux/fs/ext2/ |
| H A D | ialloc.c | 210 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) in find_group_dir() 213 (le16_to_cpu(desc->bg_free_blocks_count) > in find_group_dir() 214 le16_to_cpu(best_desc->bg_free_blocks_count))) { in find_group_dir() 285 if (le16_to_cpu(desc->bg_used_dirs_count) >= best_ndir) in find_group_orlov() 287 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) in find_group_orlov() 289 if (le16_to_cpu(desc->bg_free_blocks_count) < avefreeb) in find_group_orlov() 292 best_ndir = le16_to_cpu(desc->bg_used_dirs_count); in find_group_orlov() 325 if (le16_to_cpu(desc->bg_used_dirs_count) >= max_dirs) in find_group_orlov() 327 if (le16_to_cpu(desc->bg_free_inodes_count) < min_inodes) in find_group_orlov() 329 if (le16_to_cpu(desc->bg_free_blocks_count) < min_blocks) in find_group_orlov() [all …]
|