| /linux/fs/ext4/ |
| H A D | ext4_extents.h | 91 (sizeof(struct ext4_extent) * le16_to_cpu((hdr)->eh_max))) 160 (le16_to_cpu((__path__)->p_hdr->eh_entries) \ 161 < le16_to_cpu((__path__)->p_hdr->eh_max)) 163 (EXT_FIRST_EXTENT((__hdr__)) + le16_to_cpu((__hdr__)->eh_entries) - 1) 165 (EXT_FIRST_INDEX((__hdr__)) + le16_to_cpu((__hdr__)->eh_entries) - 1) 167 ((le16_to_cpu((__hdr__)->eh_max)) ? \ 168 ((EXT_FIRST_EXTENT((__hdr__)) + le16_to_cpu((__hdr__)->eh_max) - 1)) \ 171 ((le16_to_cpu((__hdr__)->eh_max)) ? \ 172 ((EXT_FIRST_INDEX((__hdr__)) + le16_to_cpu((__hdr__)->eh_max) - 1)) \ 187 return le16_to_cpu(ext_inode_hdr(inode)->eh_depth); in ext_depth() [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 …]
|
| H A D | cmdevt.c | 132 le16_to_cpu(host_cmd->command), in mwifiex_recycle_cmd_node() 186 cmd_code = le16_to_cpu(host_cmd->command); in mwifiex_dnld_cmd_to_fw() 188 cmd_size = le16_to_cpu(host_cmd->size); in mwifiex_dnld_cmd_to_fw() 231 cmd_size, le16_to_cpu(host_cmd->seq_num)); in mwifiex_dnld_cmd_to_fw() 317 le16_to_cpu(sleep_cfm_buf->command), in mwifiex_dnld_sleep_confirm_cmd() 318 le16_to_cpu(sleep_cfm_buf->action), in mwifiex_dnld_sleep_confirm_cmd() 319 le16_to_cpu(sleep_cfm_buf->size), in mwifiex_dnld_sleep_confirm_cmd() 320 le16_to_cpu(sleep_cfm_buf->seq_num)); in mwifiex_dnld_sleep_confirm_cmd() 322 le16_to_cpu(sleep_cfm_buf->size)); in mwifiex_dnld_sleep_confirm_cmd() 358 if (!le16_to_cpu(sleep_cfm_buf->resp_ctrl)) in mwifiex_dnld_sleep_confirm_cmd() [all …]
|
| H A D | uap_txrx.c | 95 rx_pkt_hdr = (void *)uap_rx_pd + le16_to_cpu(uap_rx_pd->rx_pkt_offset); in mwifiex_uap_queue_bridged_pkt() 107 le16_to_cpu(uap_rx_pd->rx_pkt_offset) > skb->len) { in mwifiex_uap_queue_bridged_pkt() 110 skb->len, le16_to_cpu(uap_rx_pd->rx_pkt_offset)); in mwifiex_uap_queue_bridged_pkt() 242 rx_pkt_hdr = (void *)uap_rx_pd + le16_to_cpu(uap_rx_pd->rx_pkt_offset); in mwifiex_handle_uap_rx_forward() 385 rx_pkt_type = le16_to_cpu(uap_rx_pd->rx_pkt_type); in mwifiex_process_uap_rx_packet() 386 rx_pkt_hdr = (void *)uap_rx_pd + le16_to_cpu(uap_rx_pd->rx_pkt_offset); in mwifiex_process_uap_rx_packet() 388 if (le16_to_cpu(uap_rx_pd->rx_pkt_offset) + in mwifiex_process_uap_rx_packet() 392 skb->len, le16_to_cpu(uap_rx_pd->rx_pkt_offset)); in mwifiex_process_uap_rx_packet() 400 if ((le16_to_cpu(uap_rx_pd->rx_pkt_offset) + in mwifiex_process_uap_rx_packet() 401 le16_to_cpu(uap_rx_pd->rx_pkt_length)) > (u16) skb->len) { in mwifiex_process_uap_rx_packet() [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 | 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/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/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/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/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/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/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 …]
|
| H A D | upcase.c | 47 diff1 = le16_to_cpu(*s1) - le16_to_cpu(*s2); in ntfs_cmp_names() 59 diff2 = upcase_unicode_char(upcase, le16_to_cpu(*s1)) - in ntfs_cmp_names() 60 upcase_unicode_char(upcase, le16_to_cpu(*s2)); in ntfs_cmp_names() 84 diff1 = *s1 - le16_to_cpu(*s2); in ntfs_cmp_names_cpu() 97 upcase_unicode_char(upcase, le16_to_cpu(*s2)); in ntfs_cmp_names_cpu()
|
| /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/include/soc/fsl/ |
| H A D | dpaa2-fd.h | 185 return !!((le16_to_cpu(fd->simple.format_offset) >> in dpaa2_fd_short_len() 221 return le16_to_cpu(fd->simple.format_offset) & FD_OFFSET_MASK; in dpaa2_fd_get_offset() 244 return (enum dpaa2_fd_format)((le16_to_cpu(fd->simple.format_offset) in dpaa2_fd_get_format() 269 return le16_to_cpu(fd->simple.bpid) & FD_BPID_MASK; in dpaa2_fd_get_bpid() 328 return !!((le16_to_cpu(sg->format_offset) >> SG_SHORT_LEN_FLAG_SHIFT) in dpaa2_sg_short_len() 364 return le16_to_cpu(sg->format_offset) & SG_OFFSET_MASK; in dpaa2_sg_get_offset() 388 return (enum dpaa2_sg_format)((le16_to_cpu(sg->format_offset) in dpaa2_sg_get_format() 412 return le16_to_cpu(sg->bpid) & SG_BPID_MASK; in dpaa2_sg_get_bpid() 434 return !!(le16_to_cpu(sg->format_offset) >> SG_FINAL_FLAG_SHIFT); in dpaa2_sg_is_final() 563 return !!((le16_to_cpu(fl in dpaa2_fl_short_len() [all...] |
| /linux/drivers/net/wireless/nxp/nxpwifi/ |
| H A D | ie.c | 38 mask = le16_to_cpu(priv->mgmt_ie[i].mgmt_subtype_mask); in nxpwifi_ie_get_autoidx() 39 len = le16_to_cpu(ie->ie_length); in nxpwifi_ie_get_autoidx() 74 input_len = le16_to_cpu(ie_list->len); in nxpwifi_update_autoindex_ies() 81 tlv_len = le16_to_cpu(ie->ie_length); in nxpwifi_update_autoindex_ies() 86 index = le16_to_cpu(ie->ie_index); in nxpwifi_update_autoindex_ies() 87 mask = le16_to_cpu(ie->mgmt_subtype_mask); in nxpwifi_update_autoindex_ies() 97 memcpy(tmp, &ie->ie_buffer, le16_to_cpu(ie->ie_length)); in nxpwifi_update_autoindex_ies() 121 le16_to_cpu(priv->mgmt_ie[index].ie_length) + in nxpwifi_update_autoindex_ies() 155 le16_to_cpu(beacon_ie->ie_length); in nxpwifi_update_uap_custom_ie() 162 le16_to_cpu(pr_ie->ie_length); in nxpwifi_update_uap_custom_ie() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_mbx.c | 168 u16 vf_mbx_msg_subcode = le16_to_cpu(req->msg.vf_mbx_msg_subcode); in hclgevf_handle_mbx_response() 169 u16 vf_mbx_msg_code = le16_to_cpu(req->msg.vf_mbx_msg_code); in hclgevf_handle_mbx_response() 171 u16 resp_status = le16_to_cpu(req->msg.resp_status); in hclgevf_handle_mbx_response() 172 u16 match_id = le16_to_cpu(req->match_id); in hclgevf_handle_mbx_response() 211 le16_to_cpu(req->msg.code)); in hclgevf_handle_mbx_msg() 244 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler() 245 code = le16_to_cpu(req->msg.code); in hclgevf_mbx_handler() 326 opcode = le16_to_cpu(msg_q[0]); in hclgevf_mbx_async_handler() 330 link_status = le16_to_cpu(link_info->link_status); in hclgevf_mbx_async_handler() 332 duplex = (u8)le16_to_cpu(link_info->duplex); in hclgevf_mbx_async_handler() [all …]
|
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-ep0.c | 60 cfg = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_config() 93 addr = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_address() 107 pdev->device_address = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_address() 172 ep_sts = cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex)); in cdnsp_ep0_handle_status() 213 switch (le16_to_cpu(ctrl->wValue)) { in cdnsp_ep0_handle_feature_device() 238 tmode = le16_to_cpu(ctrl->wIndex); in cdnsp_ep0_handle_feature_device() 270 wValue = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_handle_feature_intf() 271 wIndex = le16_to_cpu(ctrl->wIndex); in cdnsp_ep0_handle_feature_intf() 304 wValue = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_handle_feature_endpoint() 305 pep = &pdev->eps[cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex))]; in cdnsp_ep0_handle_feature_endpoint() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnge/ |
| H A D | bnge_hwrm_lib.c | 66 fw_maj = le16_to_cpu(resp->hwrm_fw_major); in bnge_hwrm_ver_get() 67 fw_min = le16_to_cpu(resp->hwrm_fw_minor); in bnge_hwrm_ver_get() 68 fw_bld = le16_to_cpu(resp->hwrm_fw_build); in bnge_hwrm_ver_get() 69 fw_rsv = le16_to_cpu(resp->hwrm_fw_patch); in bnge_hwrm_ver_get() 84 bd->hwrm_cmd_timeout = le16_to_cpu(resp->def_req_timeout); in bnge_hwrm_ver_get() 87 bd->hwrm_cmd_max_timeout = le16_to_cpu(resp->max_req_timeout) * 1000; in bnge_hwrm_ver_get() 94 bd->hwrm_max_req_len = le16_to_cpu(resp->max_req_win_len); in bnge_hwrm_ver_get() 95 bd->hwrm_max_ext_req_len = le16_to_cpu(resp->max_ext_req_len); in bnge_hwrm_ver_get() 100 bd->chip_num = le16_to_cpu(resp->chip_num); in bnge_hwrm_ver_get() 308 next_type = le16_to_cpu(resp->next_valid_type); in bnge_hwrm_func_backing_store_qcaps() [all …]
|
| H A D | bnge_hwrm.c | 73 sentinel = bnge_cal_sentinel(ctx, le16_to_cpu(req->req_type)); in __hwrm_ctx_get() 76 (u32)le16_to_cpu(req->req_type)); in __hwrm_ctx_get() 135 req_type = le16_to_cpu(internal_req->req_type); in bnge_hwrm_req_replace() 160 (u32)le16_to_cpu(input->req_type)); in bnge_hwrm_req_hold() 264 u32 ring = le16_to_cpu(req->cmpl_ring); in bnge_hwrm_req_dbg() 265 u32 type = le16_to_cpu(req->req_type); in bnge_hwrm_req_dbg() 266 u32 tgt = le16_to_cpu(req->target_id); in bnge_hwrm_req_dbg() 267 u32 seq = le16_to_cpu(req->seq_id); in bnge_hwrm_req_dbg() 306 req_type = le16_to_cpu(ctx->req->req_type); in __hwrm_send_ctx() 353 if (le16_to_cpu(ctx->req->cmpl_ring) != INVALID_HW_RING_ID) { in __hwrm_send_ctx() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_hwrm.c | 113 sentinel = hwrm_calc_sentinel(ctx, le16_to_cpu(req->req_type)); in __hwrm_ctx() 117 (u32)le16_to_cpu(req->req_type)); in __hwrm_ctx() 225 req_type = le16_to_cpu(internal_req->req_type); in hwrm_req_replace() 289 (u32)le16_to_cpu(input->req_type)); in hwrm_req_hold() 423 u32 ring = le16_to_cpu(req->cmpl_ring); in hwrm_req_dbg() 424 u32 type = le16_to_cpu(req->req_type); in hwrm_req_dbg() 425 u32 tgt = le16_to_cpu(req->target_id); in hwrm_req_dbg() 426 u32 seq = le16_to_cpu(req->seq_id); in hwrm_req_dbg() 478 req_type = le16_to_cpu(ctx->req->req_type); in __hwrm_send() 498 if (le16_to_cpu(ctx->req->cmpl_ring) != INVALID_HW_RING_ID) { in __hwrm_send() [all …]
|