Home
last modified time | relevance | path

Searched refs:__le16_to_cpu (Results 1 – 71 of 71) sorted by relevance

/linux-4.1.27/fs/jfs/
Djfs_unicode.h77 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le()
81 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2); in UniStrncmp_le()
110 *ucs1++ = __le16_to_cpu(*ucs2++); in UniStrncpy_from_le()
/linux-4.1.27/net/bluetooth/
Dhci_event.c108 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery()
127 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy()
129 conn->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_link_policy()
151 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_link_policy()
168 hdev->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_def_link_policy()
423 setting = __le16_to_cpu(rp->voice_setting); in hci_cc_read_voice_setting()
554 hdev->hci_rev = __le16_to_cpu(rp->hci_rev); in hci_cc_read_local_version()
556 hdev->manufacturer = __le16_to_cpu(rp->manufacturer); in hci_cc_read_local_version()
557 hdev->lmp_subver = __le16_to_cpu(rp->lmp_subver); in hci_cc_read_local_version()
665 hdev->acl_mtu = __le16_to_cpu(rp->acl_mtu); in hci_cc_read_buffer_size()
[all …]
Dl2cap_core.c520 __le16_to_cpu(chan->psm), chan->dcid); in __l2cap_chan_add()
2168 __le16_to_cpu(chan->psm), len); in l2cap_create_connless_pdu()
3767 u16 dcid = 0, scid = __le16_to_cpu(req->scid); in l2cap_connect()
3770 BT_DBG("psm 0x%2.2x scid 0x%4.4x", __le16_to_cpu(psm), scid); in l2cap_connect()
3925 scid = __le16_to_cpu(rsp->scid); in l2cap_connect_create_rsp()
3926 dcid = __le16_to_cpu(rsp->dcid); in l2cap_connect_create_rsp()
3927 result = __le16_to_cpu(rsp->result); in l2cap_connect_create_rsp()
3928 status = __le16_to_cpu(rsp->status); in l2cap_connect_create_rsp()
4037 dcid = __le16_to_cpu(req->dcid); in l2cap_config_req()
4038 flags = __le16_to_cpu(req->flags); in l2cap_config_req()
[all …]
Dl2cap_sock.c117 __u16 psm = __le16_to_cpu(la.l2_psm); in l2cap_sock_bind()
129 err = l2cap_add_scid(chan, __le16_to_cpu(la.l2_cid)); in l2cap_sock_bind()
138 if (__le16_to_cpu(la.l2_psm) == L2CAP_PSM_3DSP) in l2cap_sock_bind()
142 if (__le16_to_cpu(la.l2_psm) == L2CAP_PSM_SDP || in l2cap_sock_bind()
143 __le16_to_cpu(la.l2_psm) == L2CAP_PSM_RFCOMM) in l2cap_sock_bind()
236 err = l2cap_chan_connect(chan, la.l2_psm, __le16_to_cpu(la.l2_cid), in l2cap_sock_connect()
Dhci_sock.c996 opcode = __le16_to_cpu(hdr->opcode); in hci_mgmt_cmd()
997 index = __le16_to_cpu(hdr->index); in hci_mgmt_cmd()
998 len = __le16_to_cpu(hdr->len); in hci_mgmt_cmd()
Dmgmt.c1781 timeout = __le16_to_cpu(cp->timeout); in set_discoverable()
2836 key_count = __le16_to_cpu(cp->key_count); in load_link_keys()
4359 uuid_count = __le16_to_cpu(cp->uuid_count); in start_service_discovery()
4638 source = __le16_to_cpu(cp->source); in set_device_id()
4647 hdev->devid_vendor = __le16_to_cpu(cp->vendor); in set_device_id()
4648 hdev->devid_product = __le16_to_cpu(cp->product); in set_device_id()
4649 hdev->devid_version = __le16_to_cpu(cp->version); in set_device_id()
4870 interval = __le16_to_cpu(cp->interval); in set_scan_params()
4876 window = __le16_to_cpu(cp->window); in set_scan_params()
5418 irk_count = __le16_to_cpu(cp->irk_count); in load_irks()
[all …]
Dhci_debugfs.c402 __le16_to_cpu(data->clock_offset), in inquiry_cache_show()
859 ltk->type, ltk->enc_size, __le16_to_cpu(ltk->ediv), in long_term_keys_show()
Dhci_core.c2517 u16 opcode = __le16_to_cpu(sent->opcode); in hci_cmd_timeout()
4005 handle = __le16_to_cpu(hdr->handle); in hci_acldata_packet()
4041 handle = __le16_to_cpu(hdr->handle); in hci_scodata_packet()
4084 opcode = __le16_to_cpu(sent->opcode); in hci_resend_last()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dhtc.c362 payload_len = __le16_to_cpu(hdr->len); in ath10k_htc_rx_completion_handler()
418 switch (__le16_to_cpu(msg->hdr.message_id)) { in ath10k_htc_rx_completion_handler()
593 message_id = __le16_to_cpu(msg->hdr.message_id); in ath10k_htc_wait_target()
594 credit_count = __le16_to_cpu(msg->ready.credit_count); in ath10k_htc_wait_target()
595 credit_size = __le16_to_cpu(msg->ready.credit_size); in ath10k_htc_wait_target()
716 message_id = __le16_to_cpu(msg->hdr.message_id); in ath10k_htc_connect_service()
717 service_id = __le16_to_cpu(resp_msg->service_id); in ath10k_htc_connect_service()
742 max_msg_size = __le16_to_cpu(resp_msg->max_msg_size); in ath10k_htc_connect_service()
760 conn_resp->max_msg_len = __le16_to_cpu(resp_msg->max_msg_size); in ath10k_htc_connect_service()
765 ep->max_ep_message_len = __le16_to_cpu(resp_msg->max_msg_size); in ath10k_htc_connect_service()
Dhtt_rx.c473 msdu_count = __le16_to_cpu(ev->msdu_count); in ath10k_htt_rx_pop_paddr_list()
494 skb_put(msdu, __le16_to_cpu(msdu_desc->msdu_len)); in ath10k_htt_rx_pop_paddr_list()
910 (__le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4, in ath10k_process_rx()
1496 fw_desc_len = __le16_to_cpu(rx->prefix.fw_rx_desc_bytes); in ath10k_htt_rx_handler()
1545 fw_desc_len = __le16_to_cpu(frag->fw_rx_desc_bytes); in ath10k_htt_rx_frag_handler()
1618 tx_done.msdu_id = __le16_to_cpu(msdu_id); in ath10k_htt_rx_frm_tx_compl()
1630 info0 = __le16_to_cpu(ev->info0); in ath10k_htt_rx_addba()
1670 info0 = __le16_to_cpu(ev->info0); in ath10k_htt_rx_delba()
1773 if (skb_tailroom(msdu) < __le16_to_cpu(rx->msdu_len)) { in ath10k_htt_rx_h_rx_offload()
1779 skb_put(msdu, __le16_to_cpu(rx->msdu_len)); in ath10k_htt_rx_h_rx_offload()
[all …]
Dce.c465 nbytes = __le16_to_cpu(sdesc.nbytes); in ath10k_ce_completed_recv_next_nolock()
481 *transfer_idp = MS(__le16_to_cpu(sdesc.flags), CE_DESC_FLAGS_META_DATA); in ath10k_ce_completed_recv_next_nolock()
483 if (__le16_to_cpu(sdesc.flags) & CE_DESC_FLAGS_BYTE_SWAP) in ath10k_ce_completed_recv_next_nolock()
621 *nbytesp = __le16_to_cpu(sdesc->nbytes); in ath10k_ce_completed_send_next_nolock()
622 *transfer_idp = MS(__le16_to_cpu(sdesc->flags), in ath10k_ce_completed_send_next_nolock()
674 *nbytesp = __le16_to_cpu(desc->nbytes); in ath10k_ce_cancel_send_next()
675 *transfer_idp = MS(__le16_to_cpu(desc->flags), in ath10k_ce_cancel_send_next()
Dspectral.c121 freq1 = __le16_to_cpu(phyerr->freq1); in ath10k_spectral_process_fft()
122 freq2 = __le16_to_cpu(phyerr->freq2); in ath10k_spectral_process_fft()
129 __le16_to_cpu(phyerr->nf_chains[chain_idx])); in ath10k_spectral_process_fft()
Dwmi-tlv.c87 tlv_tag = __le16_to_cpu(tlv->tag); in ath10k_wmi_tlv_iter()
88 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter()
160 return __le16_to_cpu((((const struct wmi_tlv *)ptr) - 1)->len); in ath10k_wmi_tlv_len()
244 if (len < sizeof(*item) + __le16_to_cpu(item->len)) { in ath10k_wmi_tlv_event_diag_data()
253 __le16_to_cpu(item->len), in ath10k_wmi_tlv_event_diag_data()
257 len -= roundup(__le16_to_cpu(item->len), 4); in ath10k_wmi_tlv_event_diag_data()
260 data += roundup(__le16_to_cpu(item->len), 4); in ath10k_wmi_tlv_event_diag_data()
Dhtt.h501 + roundup(__le16_to_cpu(rx_ind->prefix.fw_rx_desc_bytes), 4); in htt_rx_ind_get_mpdu_ranges()
Dmac.c1655 __le16_to_cpu(vht_cap->vht_mcs.rx_highest); in ath10k_peer_assoc_h_vht()
1657 __le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ath10k_peer_assoc_h_vht()
1659 __le16_to_cpu(vht_cap->vht_mcs.tx_highest); in ath10k_peer_assoc_h_vht()
1661 __le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); in ath10k_peer_assoc_h_vht()
Dpci.c1287 id = MS(__le16_to_cpu(ce_desc[i].flags), in ath10k_pci_tx_pipe_cleanup()
Dwmi.c2699 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_event_dfs()
2754 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_event_spectral_scan()
/linux-4.1.27/drivers/net/wireless/cw1200/
Dbh.c296 *ctrl_reg = __le16_to_cpu( in cw1200_bh_rx_helper()
300 wsm_len = __le16_to_cpu(wsm->len); in cw1200_bh_rx_helper()
309 wsm_id = __le16_to_cpu(wsm->id) & 0xFFF; in cw1200_bh_rx_helper()
310 wsm_seq = (__le16_to_cpu(wsm->id) >> 13) & 7; in cw1200_bh_rx_helper()
386 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper()
410 __le16_to_cpu(wsm->len)); in cw1200_bh_tx_helper()
Dwsm.c56 #define WSM_GET16(buf) __WSM_GET(buf, u16, __le16, __le16_to_cpu)
1104 cmd, __le16_to_cpu(((__le16 *)buf->begin)[2]), in wsm_cmd_send()
1314 wsm_buf.end = &wsm_buf.begin[__le16_to_cpu(wsm->len)]; in wsm_handle_rx()
1732 *tx_len = __le16_to_cpu(wsm->hdr.len); in wsm_get_tx()
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_main.c526 status = __le16_to_cpu(rx->status); in hostap_dump_rx_header()
534 fc = __le16_to_cpu(rx->frame_control); in hostap_dump_rx_header()
539 __le16_to_cpu(rx->duration_id), __le16_to_cpu(rx->seq_ctrl), in hostap_dump_rx_header()
540 __le16_to_cpu(rx->data_len), in hostap_dump_rx_header()
559 name, __le16_to_cpu(tx->status), tx->retry_count, tx->tx_rate, in hostap_dump_tx_header()
560 __le16_to_cpu(tx->tx_control), jiffies); in hostap_dump_tx_header()
562 fc = __le16_to_cpu(tx->frame_control); in hostap_dump_tx_header()
567 __le16_to_cpu(tx->duration_id), __le16_to_cpu(tx->seq_ctrl), in hostap_dump_tx_header()
568 __le16_to_cpu(tx->data_len), in hostap_dump_tx_header()
Dhostap_hw.c1063 __le16_to_cpu(comp.id), __le16_to_cpu(comp.major), in prism2_get_version_info()
1064 __le16_to_cpu(comp.minor), __le16_to_cpu(comp.variant)); in prism2_get_version_info()
2753 major = __le16_to_cpu(comp.major); in prism2_check_sta_fw_version()
2754 minor = __le16_to_cpu(comp.minor); in prism2_check_sta_fw_version()
2755 variant = __le16_to_cpu(comp.variant); in prism2_check_sta_fw_version()
Dhostap_ap.c1387 auth_alg = __le16_to_cpu(*pos); in handle_authen()
1389 auth_transaction = __le16_to_cpu(*pos); in handle_authen()
1391 status_code = __le16_to_cpu(*pos); in handle_authen()
1595 sta->capability = __le16_to_cpu(*pos); in handle_assoc()
1597 sta->listen_interval = __le16_to_cpu(*pos); in handle_assoc()
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/
Dtxrx.c65 fc = __le16_to_cpu(hdr->frame_control); in wcn36xx_rx_skb()
66 sn = IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl)); in wcn36xx_rx_skb()
290 skb, skb->len, __le16_to_cpu(hdr->frame_control), in wcn36xx_start_tx()
291 IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl)), in wcn36xx_start_tx()
/linux-4.1.27/fs/cifs/
Dcifs_unicode.h261 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le()
265 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2); in UniStrncmp_le()
294 *ucs1++ = __le16_to_cpu(*ucs2++); in UniStrncpy_le()
/linux-4.1.27/net/ieee802154/
Dtrace.h127 __le16_to_cpu(__entry->le16arg))
142 __le16_to_cpu(__entry->le16arg))
/linux-4.1.27/arch/microblaze/include/asm/
Dio.h64 #define in_le16(a) __le16_to_cpu(__raw_readw(a))
/linux-4.1.27/net/nfc/nci/
Drsp.c82 __le16_to_cpu(rsp_2->max_routing_table_size); in nci_core_init_rsp_packet()
86 __le16_to_cpu(rsp_2->max_size_for_large_params); in nci_core_init_rsp_packet()
Dntf.c109 nfca_poll->sens_res = __le16_to_cpu(*((__le16 *)data)); in nci_extract_rf_params_nfca_passive_poll()
/linux-4.1.27/drivers/usb/serial/
Dir-usb.c100 dev_dbg(dev, "bcdSpecRevision=%x\n", __le16_to_cpu(desc->bcdSpecRevision)); in irda_usb_dump_class_desc()
104 dev_dbg(dev, "wBaudRate=%x\n", __le16_to_cpu(desc->wBaudRate)); in irda_usb_dump_class_desc()
/linux-4.1.27/include/linux/byteorder/
Dgeneric.h90 #define le16_to_cpu __le16_to_cpu
/linux-4.1.27/drivers/staging/gdm724x/
Dgdm_mux.c172 packet_type = __le16_to_cpu(mux_header->packet_type); in up_to_host()
521 idVendor = __le16_to_cpu(usbdev->descriptor.idVendor); in gdm_mux_probe()
522 idProduct = __le16_to_cpu(usbdev->descriptor.idProduct); in gdm_mux_probe()
Dgdm_usb.c823 idVendor = __le16_to_cpu(usbdev->descriptor.idVendor); in gdm_usb_probe()
824 idProduct = __le16_to_cpu(usbdev->descriptor.idProduct); in gdm_usb_probe()
900 idVendor = __le16_to_cpu(usbdev->descriptor.idVendor); in gdm_usb_disconnect()
901 idProduct = __le16_to_cpu(usbdev->descriptor.idProduct); in gdm_usb_disconnect()
/linux-4.1.27/drivers/bluetooth/
Dbpa10x.c103 __le16_to_cpu(h->dlen); in bpa10x_recv()
120 __le16_to_cpu(h->dlen); in bpa10x_recv()
Dhci_ath.c218 if (__le16_to_cpu(hdr->opcode) == HCI_OP_ATH_SLEEP) in ath_enqueue()
Dhci_ll.c413 dlen = __le16_to_cpu(ah->dlen); in ll_recv()
Dbtuart_cs.c257 dlen = __le16_to_cpu(ah->dlen); in btuart_receive()
Dbt3c_cs.c307 dlen = __le16_to_cpu(ah->dlen); in bt3c_receive()
Dhci_bcsp.c215 if (hci_opcode_ogf(__le16_to_cpu(opcode)) == 0x3f) { in bcsp_prepare_pkt()
Dbfusb.c303 pkt_len = HCI_ACL_HDR_SIZE + __le16_to_cpu(hdr->dlen); in bfusb_recv_block()
Dbluecard_cs.c470 dlen = __le16_to_cpu(ah->dlen); in bluecard_receive()
Dbtmrvl_main.c63 opcode = __le16_to_cpu(ec->opcode); in btmrvl_check_evtpkt()
Dbtusb.c497 bt_cb(skb)->expect = __le16_to_cpu(dlen); in btusb_recv_bulk()
/linux-4.1.27/drivers/nfc/
Dnfcwilink.c292 __le16_to_cpu(((struct bts_file_action *)ptr)->type); in nfcwilink_download_fw()
294 __le16_to_cpu(((struct bts_file_action *)ptr)->len); in nfcwilink_download_fw()
/linux-4.1.27/include/uapi/linux/byteorder/
Dbig_endian.h35 #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) macro
Dlittle_endian.h35 #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) macro
/linux-4.1.27/drivers/usb/c67x00/
Dc67x00-sched.c130 #define td_ly_base_addr(td) (__le16_to_cpu((td)->ly_base_addr))
131 #define td_port_length(td) (__le16_to_cpu((td)->port_length))
132 #define td_next_td_addr(td) (__le16_to_cpu((td)->next_td_addr))
/linux-4.1.27/fs/nls/
Dnls_base.c180 return __le16_to_cpu(c); in get_utf16()
/linux-4.1.27/drivers/input/serio/
Dhyperv-keyboard.c166 scan_code = __le16_to_cpu(ks_msg->make_code); in hv_kbd_on_receive()
/linux-4.1.27/drivers/media/usb/go7007/
Dgo7007-fw.c1586 chunk_flags = __le16_to_cpu(src[0]); in go7007_construct_fw_image()
1587 chunk_len = __le16_to_cpu(src[1]); in go7007_construct_fw_image()
1596 ret = do_special(go, __le16_to_cpu(src[2]), in go7007_construct_fw_image()
Dgo7007-usb.c769 go->interrupt_data = __le16_to_cpu(regs[0]); in go7007_usb_readinterrupt_complete()
770 go->interrupt_value = __le16_to_cpu(regs[1]); in go7007_usb_readinterrupt_complete()
/linux-4.1.27/drivers/ide/
Dide-iops.c55 id[i] = __le16_to_cpu(id[i]); in ide_fix_driveid()
/linux-4.1.27/include/uapi/linux/usb/
Dch9.h605 return __le16_to_cpu(epd->wMaxPacketSize); in usb_endpoint_maxp()
/linux-4.1.27/drivers/usb/gadget/function/
Df_hid.c399 value = __le16_to_cpu(ctrl->wValue); in hidg_setup()
400 length = __le16_to_cpu(ctrl->wLength); in hidg_setup()
/linux-4.1.27/drivers/spi/
Dspi-orion.c321 put_unaligned(__le16_to_cpu(readl(rx_reg)), (*rx_buf)++); in orion_spi_write_read_16bit()
/linux-4.1.27/include/asm-generic/
Dio.h121 return __le16_to_cpu(__raw_readw(addr)); in readw()
/linux-4.1.27/drivers/misc/ti-st/
Dst_core.c296 __le16_to_cpu(*(unsigned short *)plen); in st_int_recv()
/linux-4.1.27/drivers/scsi/
Dqlogicpti.c499 csum += __le16_to_cpu(fw_data[i]); in qlogicpti_load_firmware()
561 param[2] = __le16_to_cpu(fw_data[i]); in qlogicpti_load_firmware()
Dqla1280.c1716 ha->fwstart = __le16_to_cpu(fw_data[2]); in qla1280_load_firmware_pio()
1726 mb[2] = __le16_to_cpu(fw_data[i]); in qla1280_load_firmware_pio()
1763 ha->fwstart = __le16_to_cpu(fw_data[2]); in qla1280_load_firmware_dma()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dwmi.c606 evt->agg_wsize, __le16_to_cpu(evt->ba_timeout), in wmi_evt_ba_status()
643 u16 reason = __le16_to_cpu(evt->reason); in wmi_evt_delba()
/linux-4.1.27/drivers/uwb/
Dhwa-rc.c799 version = __le16_to_cpu(descr->bcdRCIVersion); in hwarc_get_version()
/linux-4.1.27/drivers/tty/
Dnozomi.c449 *buf16 = __le16_to_cpu(readw(ptr)); in read_mem32()
462 *(buf16) = __le16_to_cpu(readw(ptr)); in read_mem32()
/linux-4.1.27/drivers/gpio/
Dgpio-mcp23s08.c248 vals[n] = __le16_to_cpu((__le16)vals[n]); in mcp23s17_read_regs()
/linux-4.1.27/drivers/usb/core/
Dsysfs.c781 srclen = __le16_to_cpu(udev->config[cfgno].desc. in read_descriptors()
/linux-4.1.27/net/nfc/
Ddigital_technology.c503 target->sens_res = __le16_to_cpu(*(__le16 *)resp->data); in digital_in_recv_sens_res()
/linux-4.1.27/drivers/usb/storage/
Disd200.c1062 id[i] = __le16_to_cpu(id[i]); in isd200_fix_driveid()
/linux-4.1.27/drivers/scsi/qla4xxx/
Dql4_mbx.c1616 __le16_to_cpu(chap_table->cookie))); in qla4xxx_get_chap()
1618 if (__le16_to_cpu(chap_table->cookie) != CHAP_VALID_COOKIE) { in qla4xxx_get_chap()
Dql4_os.c876 __le16_to_cpu(chap_table->cookie))); in qla4xxx_delete_chap()
878 if (__le16_to_cpu(chap_table->cookie) != CHAP_VALID_COOKIE) { in qla4xxx_delete_chap()
6085 idx = __le16_to_cpu(fw_ddb_entry->chap_tbl_idx); in qla4xxx_get_boot_target()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_wlan_util.c1278 if (__le16_to_cpu(pHT_caps->u.HT_cap_element.HT_caps_info) & (0x1 << bit_offset)) in support_short_GI()
/linux-4.1.27/net/bluetooth/rfcomm/
Dcore.c1390 d->mtu = __le16_to_cpu(pn->mtu); in rfcomm_apply_pn()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dmac80211.c332 __le16_to_cpu(resp->mcc)); in iwl_mvm_get_regdomain()
/linux-4.1.27/drivers/net/usb/
Dr8152.c1189 if (INTR_LINK & __le16_to_cpu(d[0])) { in intr_callback()