Home
last modified time | relevance | path

Searched refs:cpu_to_le16 (Results 1 – 200 of 938) sorted by relevance

12345

/linux-4.1.27/drivers/net/ethernet/3com/
Dtyphoon.h206 #define TYPHOON_TSO_FIRST cpu_to_le16(0x1000)
207 #define TYPHOON_TSO_LAST cpu_to_le16(0x2000)
225 #define TYPHOON_IPSEC_GEN_IV cpu_to_le16(0x0000)
226 #define TYPHOON_IPSEC_USE_IV cpu_to_le16(0x0001)
273 #define TYPHOON_RX_FILTER_MASK cpu_to_le16(0x7fff)
274 #define TYPHOON_RX_FILTERED cpu_to_le16(0x8000)
276 #define TYPHOON_RX_OUTER_AH_GOOD cpu_to_le16(0x0001)
277 #define TYPHOON_RX_OUTER_ESP_GOOD cpu_to_le16(0x0002)
278 #define TYPHOON_RX_INNER_AH_GOOD cpu_to_le16(0x0004)
279 #define TYPHOON_RX_INNER_ESP_GOOD cpu_to_le16(0x0008)
[all …]
/linux-4.1.27/drivers/net/wireless/rsi/
Drsi_91x_mgmt.c22 .magic_number = cpu_to_le16(0x5aa5),
33 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_20 << 8)|
35 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_20),
38 .pll_reg_1 = cpu_to_le16((PLL960_P_VAL_20 << 8)|
40 .pll_reg_2 = cpu_to_le16(PLL960_M_VAL_20),
44 .pll_reg = cpu_to_le16(0x9f0),
48 .switch_clk_info = cpu_to_le16(BIT(3)),
49 .bbp_lmac_clk_reg_val = cpu_to_le16(0x121),
57 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_20 << 8)|
59 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_20),
[all …]
Drsi_91x_pkt.c64 frame_desc[6] |= cpu_to_le16(BIT(12)); in rsi_send_data_pkt()
73 frame_desc[6] |= cpu_to_le16(BIT(15)); in rsi_send_data_pkt()
76 frame_desc[0] = cpu_to_le16((skb->len - FRAME_DESC_SZ) | in rsi_send_data_pkt()
78 frame_desc[2] = cpu_to_le16((extnd_size) | (ieee80211_size) << 8); in rsi_send_data_pkt()
82 frame_desc[3] = cpu_to_le16(RATE_INFO_ENABLE); in rsi_send_data_pkt()
83 frame_desc[4] = cpu_to_le16(common->min_rate); in rsi_send_data_pkt()
86 frame_desc[5] = cpu_to_le16(FULL40M_ENABLE); in rsi_send_data_pkt()
91 cpu_to_le16(ENABLE_SHORTGI_RATE); in rsi_send_data_pkt()
96 frame_desc[6] |= cpu_to_le16(seq_num & 0xfff); in rsi_send_data_pkt()
97 frame_desc[7] = cpu_to_le16(((tx_params->tid & 0xf) << 4) | in rsi_send_data_pkt()
[all …]
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsta_cmd.c46 cmd->command = cpu_to_le16(HostCmd_CMD_RSSI_INFO); in mwifiex_cmd_802_11_rssi_info()
47 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_rssi_info) + in mwifiex_cmd_802_11_rssi_info()
49 cmd->params.rssi_info.action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_rssi_info()
50 cmd->params.rssi_info.ndata = cpu_to_le16(priv->data_avg_factor); in mwifiex_cmd_802_11_rssi_info()
51 cmd->params.rssi_info.nbcn = cpu_to_le16(priv->bcn_avg_factor); in mwifiex_cmd_802_11_rssi_info()
85 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_CONTROL); in mwifiex_cmd_mac_control()
87 cpu_to_le16(sizeof(struct host_cmd_ds_mac_control) + S_DS_GEN); in mwifiex_cmd_mac_control()
88 mac_ctrl->action = cpu_to_le16(*action); in mwifiex_cmd_mac_control()
116 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SNMP_MIB); in mwifiex_cmd_802_11_snmp_mib()
117 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_snmp_mib) in mwifiex_cmd_802_11_snmp_mib()
[all …]
Duap_cmd.c196 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params()
318 tlv_akmp->header.type = cpu_to_le16(TLV_TYPE_UAP_AKMP); in mwifiex_uap_bss_wpa()
319 tlv_akmp->header.len = cpu_to_le16(sizeof(struct host_cmd_tlv_akmp) - in mwifiex_uap_bss_wpa()
321 tlv_akmp->key_mgmt_operation = cpu_to_le16(bss_cfg->key_mgmt_operation); in mwifiex_uap_bss_wpa()
322 tlv_akmp->key_mgmt = cpu_to_le16(bss_cfg->key_mgmt); in mwifiex_uap_bss_wpa()
328 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); in mwifiex_uap_bss_wpa()
330 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - in mwifiex_uap_bss_wpa()
332 pwk_cipher->proto = cpu_to_le16(PROTOCOL_WPA); in mwifiex_uap_bss_wpa()
340 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); in mwifiex_uap_bss_wpa()
342 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - in mwifiex_uap_bss_wpa()
[all …]
Djoin.c61 ie_header.type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); in mwifiex_cmd_append_generic_ie()
62 ie_header.len = cpu_to_le16(priv->gen_ie_buf_len); in mwifiex_cmd_append_generic_ie()
115 tsf_tlv.header.type = cpu_to_le16(TLV_TYPE_TSFTIMESTAMP); in mwifiex_cmd_append_tsf_tlv()
116 tsf_tlv.header.len = cpu_to_le16(2 * sizeof(tsf_val)); in mwifiex_cmd_append_tsf_tlv()
253 ie_header.type = cpu_to_le16(TLV_TYPE_MGMT_IE); in mwifiex_cmd_append_wps_ie()
254 ie_header.len = cpu_to_le16(priv->wps_ie_len); in mwifiex_cmd_append_wps_ie()
299 ie_header.type = cpu_to_le16(TLV_TYPE_WAPI_IE); in mwifiex_cmd_append_wapi_ie()
300 ie_header.len = cpu_to_le16(priv->wapi_ie_len); in mwifiex_cmd_append_wapi_ie()
336 rsn_ie_tlv->header.type = cpu_to_le16((u16) priv->wpa_ie[0]); in mwifiex_append_rsn_ie_wpa_wpa2()
337 rsn_ie_tlv->header.type = cpu_to_le16( in mwifiex_append_rsn_ie_wpa_wpa2()
[all …]
D11n.c69 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in mwifiex_fill_cap_info()
70 ht_cap->extended_ht_cap_info = cpu_to_le16(ht_ext_cap); in mwifiex_fill_cap_info()
165 add_ba_rsp->ssn = cpu_to_le16((le16_to_cpu(add_ba_rsp->ssn)) in mwifiex_ret_11n_addba_req()
221 cmd->command = cpu_to_le16(HostCmd_CMD_RECONFIGURE_TX_BUFF); in mwifiex_cmd_recfg_tx_buf()
223 cpu_to_le16(sizeof(struct host_cmd_ds_txbuf_cfg) + S_DS_GEN); in mwifiex_cmd_recfg_tx_buf()
224 tx_buf->action = cpu_to_le16(action); in mwifiex_cmd_recfg_tx_buf()
228 tx_buf->buff_size = cpu_to_le16(*buf_size); in mwifiex_cmd_recfg_tx_buf()
254 cmd->command = cpu_to_le16(HostCmd_CMD_AMSDU_AGGR_CTRL); in mwifiex_cmd_amsdu_aggr_ctrl()
255 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_amsdu_aggr_ctrl) in mwifiex_cmd_amsdu_aggr_ctrl()
257 amsdu_ctrl->action = cpu_to_le16(action); in mwifiex_cmd_amsdu_aggr_ctrl()
[all …]
Die.c114 priv->mgmt_ie[index].ie_index = cpu_to_le16(index); in mwifiex_update_autoindex_ies()
116 cpu_to_le16(mask); in mwifiex_update_autoindex_ies()
118 ie->ie_index = cpu_to_le16(index); in mwifiex_update_autoindex_ies()
167 ap_custom_ie->type = cpu_to_le16(TLV_TYPE_MGMT_IE); in mwifiex_update_uap_custom_ie()
246 ie->mgmt_subtype_mask = cpu_to_le16(mask); in mwifiex_update_vs_ie()
247 ie->ie_index = cpu_to_le16(MWIFIEX_AUTO_IDX_MASK); in mwifiex_update_vs_ie()
335 gen_ie->ie_index = cpu_to_le16(gen_idx); in mwifiex_uap_set_head_tail_ies()
336 gen_ie->mgmt_subtype_mask = cpu_to_le16(MGMT_MASK_BEACON | in mwifiex_uap_set_head_tail_ies()
346 gen_ie->ie_length = cpu_to_le16(ie_len); in mwifiex_uap_set_head_tail_ies()
358 gen_ie->ie_length = cpu_to_le16(ie_len); in mwifiex_uap_set_head_tail_ies()
[all …]
D11ac.c139 vht_cap->supp_mcs.rx_mcs_map = cpu_to_le16(mcs_map_result); in mwifiex_fill_vht_cap_tlv()
142 vht_cap->supp_mcs.rx_highest = cpu_to_le16(tmp); in mwifiex_fill_vht_cap_tlv()
161 vht_cap->supp_mcs.tx_mcs_map = cpu_to_le16(mcs_map_result); in mwifiex_fill_vht_cap_tlv()
164 vht_cap->supp_mcs.tx_highest = cpu_to_le16(tmp); in mwifiex_fill_vht_cap_tlv()
191 vht_cap->header.type = cpu_to_le16(WLAN_EID_VHT_CAPABILITY); in mwifiex_cmd_append_11ac_tlv()
193 cpu_to_le16(sizeof(struct ieee80211_vht_cap)); in mwifiex_cmd_append_11ac_tlv()
210 cpu_to_le16(WLAN_EID_VHT_OPERATION); in mwifiex_cmd_append_11ac_tlv()
211 vht_op->header.len = cpu_to_le16(sizeof(*vht_op) - in mwifiex_cmd_append_11ac_tlv()
255 oper_ntf->header.type = cpu_to_le16(WLAN_EID_OPMODE_NOTIF); in mwifiex_cmd_append_11ac_tlv()
256 oper_ntf->header.len = cpu_to_le16(sizeof(u8)); in mwifiex_cmd_append_11ac_tlv()
[all …]
D11h.c55 cap->header.type = cpu_to_le16(WLAN_EID_PWR_CAPABILITY); in mwifiex_11h_process_infra_join()
56 cap->header.len = cpu_to_le16(2); in mwifiex_11h_process_infra_join()
62 constraint->header.type = cpu_to_le16(WLAN_EID_PWR_CONSTRAINT); in mwifiex_11h_process_infra_join()
63 constraint->header.len = cpu_to_le16(2); in mwifiex_11h_process_infra_join()
69 ie_header->type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); in mwifiex_11h_process_infra_join()
70 ie_header->len = cpu_to_le16(2 * sband->n_channels + 2); in mwifiex_11h_process_infra_join()
155 cmd->command = cpu_to_le16(HostCmd_CMD_CHAN_REPORT_REQUEST); in mwifiex_cmd_issue_chan_report_request()
156 cmd->size = cpu_to_le16(S_DS_GEN); in mwifiex_cmd_issue_chan_report_request()
159 cr_req->chan_desc.start_freq = cpu_to_le16(MWIFIEX_A_BAND_START_FREQ); in mwifiex_cmd_issue_chan_report_request()
Dcmdevt.c176 host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO in mwifiex_dnld_cmd_to_fw()
279 cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO in mwifiex_dnld_sleep_confirm_cmd()
547 cmd_ptr->command = cpu_to_le16(cmd_no); in mwifiex_send_cmd()
743 cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH))) { in mwifiex_exec_next_cmd()
814 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK); in mwifiex_process_cmdresp()
1154 if (phs_cfg->action == cpu_to_le16(HS_ACTIVATE) && in mwifiex_ret_802_11_hs_cfg()
1254 cmd->command = cpu_to_le16(command); in mwifiex_process_sleep_confirm_resp()
1255 cmd->seq_num = cpu_to_le16(seq_num); in mwifiex_process_sleep_confirm_resp()
1281 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_PS_MODE_ENH); in mwifiex_cmd_enh_power_mode()
1283 psmode_enh->action = cpu_to_le16(DIS_AUTO_PS); in mwifiex_cmd_enh_power_mode()
[all …]
Dscan.c513 cpu_to_le16((u16) user_scan_in-> in mwifiex_scan_create_channel_list()
517 cpu_to_le16(adapter->passive_scan_time); in mwifiex_scan_create_channel_list()
520 cpu_to_le16(adapter->active_scan_time); in mwifiex_scan_create_channel_list()
532 cpu_to_le16(adapter->specific_scan_time); in mwifiex_scan_create_channel_list()
566 rates_tlv->header.type = cpu_to_le16(WLAN_EID_SUPP_RATES); in mwifiex_append_rate_tlv()
567 rates_tlv->header.len = cpu_to_le16((u16) rates_size); in mwifiex_append_rate_tlv()
612 chan_tlv_out->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); in mwifiex_scan_channel_list()
871 bssid_tlv->header.type = cpu_to_le16(TLV_TYPE_BSSID); in mwifiex_config_scan()
872 bssid_tlv->header.len = cpu_to_le16(ETH_ALEN); in mwifiex_config_scan()
885 cpu_to_le16(TLV_TYPE_WILDCARDSSID); in mwifiex_config_scan()
[all …]
D11n_rxreorder.c433 cmd->command = cpu_to_le16(HostCmd_CMD_11N_ADDBA_REQ); in mwifiex_cmd_11n_addba_req()
434 cmd->size = cpu_to_le16(sizeof(*add_ba_req) + S_DS_GEN); in mwifiex_cmd_11n_addba_req()
480 cmd->command = cpu_to_le16(HostCmd_CMD_11N_ADDBA_RSP); in mwifiex_cmd_11n_addba_rsp_gen()
481 cmd->size = cpu_to_le16(sizeof(*add_ba_rsp) + S_DS_GEN); in mwifiex_cmd_11n_addba_rsp_gen()
492 add_ba_rsp->status_code = cpu_to_le16(ADDBA_RSP_STATUS_ACCEPT); in mwifiex_cmd_11n_addba_rsp_gen()
500 add_ba_rsp->block_ack_param_set = cpu_to_le16(block_ack_param_set); in mwifiex_cmd_11n_addba_rsp_gen()
504 cmd_addba_req->block_ack_param_set = cpu_to_le16(block_ack_param_set); in mwifiex_cmd_11n_addba_rsp_gen()
524 cmd->command = cpu_to_le16(HostCmd_CMD_11N_DELBA); in mwifiex_cmd_11n_delba()
525 cmd->size = cpu_to_le16(sizeof(*del_ba) + S_DS_GEN); in mwifiex_cmd_11n_delba()
769 cpu_to_le16((u16) event->tid << DELBA_TID_POS); in mwifiex_11n_ba_stream_timeout()
[all …]
Dsta_tx.c73 local_tx_pd->tx_pkt_length = cpu_to_le16((u16)(skb->len - in mwifiex_process_sta_txpd()
112 local_tx_pd->tx_pkt_type = cpu_to_le16(pkt_type); in mwifiex_process_sta_txpd()
116 local_tx_pd->tx_pkt_offset = cpu_to_le16(pkt_offset); in mwifiex_process_sta_txpd()
171 local_tx_pd->tx_pkt_offset = cpu_to_le16(sizeof(struct txpd)); in mwifiex_send_null_packet()
D11n_aggr.c124 local_tx_pd->tx_pkt_offset = cpu_to_le16(sizeof(struct txpd) + in mwifiex_11n_form_amsdu_txpd()
126 local_tx_pd->tx_pkt_type = cpu_to_le16(PKT_TYPE_AMSDU); in mwifiex_11n_form_amsdu_txpd()
127 local_tx_pd->tx_pkt_length = cpu_to_le16(skb->len - in mwifiex_11n_form_amsdu_txpd()
/linux-4.1.27/include/linux/usb/
Dassociation.h31 #define WUSB_AR_AssociationTypeId { .id = cpu_to_le16(0x0000), .len = cpu_to_le16(2) }
32 #define WUSB_AR_AssociationSubTypeId { .id = cpu_to_le16(0x0001), .len = cpu_to_le16(2) }
33 #define WUSB_AR_Length { .id = cpu_to_le16(0x0002), .len = cpu_to_le16(4) }
34 #define WUSB_AR_AssociationStatus { .id = cpu_to_le16(0x0004), .len = cpu_to_le16(4) }
35 #define WUSB_AR_LangID { .id = cpu_to_le16(0x0008), .len = cpu_to_le16(2) }
36 #define WUSB_AR_DeviceFriendlyName { .id = cpu_to_le16(0x000b), .len = cpu_to_le16(64) } /* max */
37 #define WUSB_AR_HostFriendlyName { .id = cpu_to_le16(0x000c), .len = cpu_to_le16(64) } /* max */
38 #define WUSB_AR_CHID { .id = cpu_to_le16(0x1000), .len = cpu_to_le16(16) }
39 #define WUSB_AR_CDID { .id = cpu_to_le16(0x1001), .len = cpu_to_le16(16) }
40 #define WUSB_AR_ConnectionContext { .id = cpu_to_le16(0x1002), .len = cpu_to_le16(48) }
[all …]
/linux-4.1.27/fs/cifs/
Dcifssmb.c508 cpu_to_le16(CIFS_CRYPTO_KEY_SIZE)) { in decode_lanman_negprot_rsp()
580 pSMB->ByteCount = cpu_to_le16(count); in CIFSSMBNegotiate()
818 pSMB->MaxParameterCount = cpu_to_le16(2); in CIFSPOSIXDelFile()
831 pRqD->type = cpu_to_le16(type); in CIFSPOSIXDelFile()
832 pSMB->ParameterOffset = cpu_to_le16(param_offset); in CIFSPOSIXDelFile()
833 pSMB->DataOffset = cpu_to_le16(offset); in CIFSPOSIXDelFile()
836 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); in CIFSPOSIXDelFile()
839 pSMB->DataCount = cpu_to_le16(sizeof(struct unlink_psx_rq)); in CIFSPOSIXDelFile()
840 pSMB->TotalDataCount = cpu_to_le16(sizeof(struct unlink_psx_rq)); in CIFSPOSIXDelFile()
841 pSMB->ParameterCount = cpu_to_le16(params); in CIFSPOSIXDelFile()
[all …]
Dcifs_unicode.c383 dest_char = cpu_to_le16(UNI_COLON); in convert_to_sfu_char()
386 dest_char = cpu_to_le16(UNI_ASTERISK); in convert_to_sfu_char()
389 dest_char = cpu_to_le16(UNI_QUESTION); in convert_to_sfu_char()
392 dest_char = cpu_to_le16(UNI_LESSTHAN); in convert_to_sfu_char()
395 dest_char = cpu_to_le16(UNI_GRTRTHAN); in convert_to_sfu_char()
398 dest_char = cpu_to_le16(UNI_PIPE); in convert_to_sfu_char()
413 dest_char = cpu_to_le16(SFM_COLON); in convert_to_sfm_char()
416 dest_char = cpu_to_le16(SFM_ASTERISK); in convert_to_sfm_char()
419 dest_char = cpu_to_le16(SFM_QUESTION); in convert_to_sfm_char()
422 dest_char = cpu_to_le16(SFM_LESSTHAN); in convert_to_sfm_char()
[all …]
Dsmb2misc.c72 /* SMB2_NEGOTIATE */ cpu_to_le16(65),
73 /* SMB2_SESSION_SETUP */ cpu_to_le16(9),
74 /* SMB2_LOGOFF */ cpu_to_le16(4),
75 /* SMB2_TREE_CONNECT */ cpu_to_le16(16),
76 /* SMB2_TREE_DISCONNECT */ cpu_to_le16(4),
77 /* SMB2_CREATE */ cpu_to_le16(89),
78 /* SMB2_CLOSE */ cpu_to_le16(60),
79 /* SMB2_FLUSH */ cpu_to_le16(4),
80 /* SMB2_READ */ cpu_to_le16(17),
81 /* SMB2_WRITE */ cpu_to_le16(17),
[all …]
Dsmb2pdu.h63 #define SMB2_NEGOTIATE cpu_to_le16(SMB2_NEGOTIATE_HE)
64 #define SMB2_SESSION_SETUP cpu_to_le16(SMB2_SESSION_SETUP_HE)
65 #define SMB2_LOGOFF cpu_to_le16(SMB2_LOGOFF_HE)
66 #define SMB2_TREE_CONNECT cpu_to_le16(SMB2_TREE_CONNECT_HE)
67 #define SMB2_TREE_DISCONNECT cpu_to_le16(SMB2_TREE_DISCONNECT_HE)
68 #define SMB2_CREATE cpu_to_le16(SMB2_CREATE_HE)
69 #define SMB2_CLOSE cpu_to_le16(SMB2_CLOSE_HE)
70 #define SMB2_FLUSH cpu_to_le16(SMB2_FLUSH_HE)
71 #define SMB2_READ cpu_to_le16(SMB2_READ_HE)
72 #define SMB2_WRITE cpu_to_le16(SMB2_WRITE_HE)
[all …]
Dsmb2pdu.c104 hdr->StructureSize = cpu_to_le16(64); in smb2_hdr_assemble()
106 hdr->CreditRequest = cpu_to_le16(2); /* BB make this dynamic */ in smb2_hdr_assemble()
116 hdr->CreditCharge = cpu_to_le16(1); in smb2_hdr_assemble()
140 pdu->StructureSize2 = cpu_to_le16(parmsize); in smb2_hdr_assemble()
349 req->Dialects[0] = cpu_to_le16(ses->server->vals->protocol_id); in SMB2_negotiate()
351 req->DialectCount = cpu_to_le16(1); /* One vers= at a time for now */ in SMB2_negotiate()
356 req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_REQUIRED); in SMB2_negotiate()
358 req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_ENABLED); in SMB2_negotiate()
389 if (rsp->DialectRevision == cpu_to_le16(SMB20_PROT_ID)) in SMB2_negotiate()
391 else if (rsp->DialectRevision == cpu_to_le16(SMB21_PROT_ID)) in SMB2_negotiate()
[all …]
Dsess.c45 pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, in cifs_ssetup_hdr()
48 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); in cifs_ssetup_hdr()
49 pSMB->req.VcNumber = cpu_to_le16(1); in cifs_ssetup_hdr()
414 cpu_to_le16(ses->auth_key.len - CIFS_SESS_KEY_SIZE); in build_ntlmssp_auth_blob()
416 cpu_to_le16(ses->auth_key.len - CIFS_SESS_KEY_SIZE); in build_ntlmssp_auth_blob()
436 sec_blob->DomainName.Length = cpu_to_le16(len); in build_ntlmssp_auth_blob()
437 sec_blob->DomainName.MaximumLength = cpu_to_le16(len); in build_ntlmssp_auth_blob()
452 sec_blob->UserName.Length = cpu_to_le16(len); in build_ntlmssp_auth_blob()
453 sec_blob->UserName.MaximumLength = cpu_to_le16(len); in build_ntlmssp_auth_blob()
467 sec_blob->SessionKey.Length = cpu_to_le16(CIFS_CPHTXT_SIZE); in build_ntlmssp_auth_blob()
[all …]
/linux-4.1.27/drivers/staging/rtl8712/
Dwifi.h163 *(unsigned short *)(pbuf) |= cpu_to_le16(_TO_DS_); \
170 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_TO_DS_)); \
174 *(unsigned short *)(pbuf) |= cpu_to_le16(_FROM_DS_); \
181 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_FROM_DS_)); \
188 *(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_FRAG_); \
195 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_)); \
199 *(unsigned short *)(pbuf) |= cpu_to_le16(_RETRY_); \
206 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_RETRY_)); \
210 *(unsigned short *)(pbuf) |= cpu_to_le16(_PWRMGT_); \
217 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_PWRMGT_)); \
[all …]
Dieee80211.c182 *(u16 *)ie = cpu_to_le16((u16)pdev_network->Configuration.BeaconPeriod); in r8712_generate_ie()
187 *(u16 *)ie |= cpu_to_le16(cap_IBSS); in r8712_generate_ie()
189 *(u16 *)ie |= cpu_to_le16(cap_ShortPremble); in r8712_generate_ie()
191 *(u16 *)ie |= cpu_to_le16(cap_Privacy); in r8712_generate_ie()
/linux-4.1.27/include/linux/
Dieee80211.h255 return (fc & cpu_to_le16(IEEE80211_FCTL_TODS)) != 0; in ieee80211_has_tods()
264 return (fc & cpu_to_le16(IEEE80211_FCTL_FROMDS)) != 0; in ieee80211_has_fromds()
273 __le16 tmp = cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS); in ieee80211_has_a4()
283 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREFRAGS)) != 0; in ieee80211_has_morefrags()
292 return (fc & cpu_to_le16(IEEE80211_FCTL_RETRY)) != 0; in ieee80211_has_retry()
301 return (fc & cpu_to_le16(IEEE80211_FCTL_PM)) != 0; in ieee80211_has_pm()
310 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREDATA)) != 0; in ieee80211_has_moredata()
319 return (fc & cpu_to_le16(IEEE80211_FCTL_PROTECTED)) != 0; in ieee80211_has_protected()
328 return (fc & cpu_to_le16(IEEE80211_FCTL_ORDER)) != 0; in ieee80211_has_order()
337 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == in ieee80211_is_mgmt()
[all …]
Dext2_fs.h36 if (*(__le16 *)(p + EXT2_SB_MAGIC_OFFSET) != cpu_to_le16(EXT2_SUPER_MAGIC)) in ext2_image_size()
/linux-4.1.27/drivers/net/wireless/p54/
Dfwio.c111 if (exp_if[i].if_id == cpu_to_le16(IF_ID_LMAC)) in p54_parse_firmware()
209 hdr->flags = cpu_to_le16(hdr_flags); in p54_alloc_skb()
210 hdr->len = cpu_to_le16(payload_len); in p54_alloc_skb()
211 hdr->type = cpu_to_le16(type); in p54_alloc_skb()
242 eeprom_hdr->v1.offset = cpu_to_le16(offset); in p54_download_eeprom()
243 eeprom_hdr->v1.len = cpu_to_le16(len); in p54_download_eeprom()
246 eeprom_hdr->v2.len = cpu_to_le16(len); in p54_download_eeprom()
277 tim->entry[0] = cpu_to_le16(set ? (aid | 0x8000) : aid); in p54_update_beacon_tim()
362 setup->mac_mode = cpu_to_le16(mode); in p54_setup_mac()
371 setup->v1.max_rx = cpu_to_le16(priv->rx_mtu); in p54_setup_mac()
[all …]
Dp54.h106 queue.aifs = cpu_to_le16(ai_fs); \
107 queue.cwmin = cpu_to_le16(cw_min); \
108 queue.cwmax = cpu_to_le16(cw_max); \
109 queue.txop = cpu_to_le16(_txop); \
Dp54spi.c66 addr = cpu_to_le16(address << 8 | SPI_ADRS_READ_BIT_15); in p54spi_spi_read()
91 addr = cpu_to_le16(address << 8); in p54spi_spi_write()
106 last_word = cpu_to_le16(((u8 *)buf)[len - 1]); in p54spi_spi_write()
157 cpu_to_le16(SPI_DMA_WRITE_CTRL_ENABLE)); in p54spi_spi_write_dma()
159 p54spi_write16(priv, SPI_ADRS_DMA_WRITE_LEN, cpu_to_le16(len)); in p54spi_spi_write_dma()
228 p54spi_write16(priv, SPI_ADRS_DEV_CTRL_STAT, cpu_to_le16( in p54spi_upload_firmware()
234 p54spi_write16(priv, SPI_ADRS_DEV_CTRL_STAT, cpu_to_le16( in p54spi_upload_firmware()
260 p54spi_write16(priv, SPI_ADRS_DEV_CTRL_STAT, cpu_to_le16( in p54spi_upload_firmware()
266 p54spi_write16(priv, SPI_ADRS_DEV_CTRL_STAT, cpu_to_le16( in p54spi_upload_firmware()
/linux-4.1.27/drivers/usb/gadget/legacy/
Dwebcam.c80 .bcdUSB = cpu_to_le16(0x0200),
85 .idVendor = cpu_to_le16(WEBCAM_VENDOR_ID),
86 .idProduct = cpu_to_le16(WEBCAM_PRODUCT_ID),
87 .bcdDevice = cpu_to_le16(WEBCAM_DEVICE_BCD),
100 .bcdUVC = cpu_to_le16(0x0100),
112 .wTerminalType = cpu_to_le16(0x0201),
115 .wObjectiveFocalLengthMin = cpu_to_le16(0),
116 .wObjectiveFocalLengthMax = cpu_to_le16(0),
117 .wOcularFocalLength = cpu_to_le16(0),
130 .wMaxMultiplier = cpu_to_le16(16*1024),
[all …]
Dether.c154 .bcdUSB = cpu_to_le16 (0x0200),
165 .idVendor = cpu_to_le16 (CDC_VENDOR_NUM),
166 .idProduct = cpu_to_le16 (CDC_PRODUCT_NUM),
342 device_desc.idVendor = cpu_to_le16(EEM_VENDOR_NUM); in eth_bind()
343 device_desc.idProduct = cpu_to_le16(EEM_PRODUCT_NUM); in eth_bind()
370 device_desc.idVendor = cpu_to_le16(SIMPLE_VENDOR_NUM); in eth_bind()
371 device_desc.idProduct = cpu_to_le16(SIMPLE_PRODUCT_NUM); in eth_bind()
404 device_desc.idVendor = cpu_to_le16(RNDIS_VENDOR_NUM); in eth_bind()
405 device_desc.idProduct = cpu_to_le16(RNDIS_PRODUCT_NUM); in eth_bind()
Dserial.c69 .bcdUSB = cpu_to_le16(0x0200),
74 .idVendor = cpu_to_le16(GS_VENDOR_ID),
76 .bcdDevice = cpu_to_le16(GS_VERSION_NUM),
252 cpu_to_le16(GS_CDC_PRODUCT_ID); in init()
258 cpu_to_le16(GS_CDC_OBEX_PRODUCT_ID); in init()
264 cpu_to_le16(GS_PRODUCT_ID); in init()
Dncm.c52 .bcdUSB = cpu_to_le16 (0x0200),
63 .idVendor = cpu_to_le16 (CDC_VENDOR_NUM),
64 .idProduct = cpu_to_le16 (CDC_PRODUCT_NUM),
Dprinter.c76 .bcdUSB = cpu_to_le16(0x0200),
80 .idVendor = cpu_to_le16(PRINTER_VENDOR_NUM),
81 .idProduct = cpu_to_le16(PRINTER_PRODUCT_NUM),
Dcdc2.c46 .bcdUSB = cpu_to_le16(0x0200),
54 .idVendor = cpu_to_le16(CDC_VENDOR_NUM),
55 .idProduct = cpu_to_le16(CDC_PRODUCT_NUM),
Dmass_storage.c58 .bcdUSB = cpu_to_le16(0x0200),
62 .idVendor = cpu_to_le16(FSG_VENDOR_ID),
63 .idProduct = cpu_to_le16(FSG_PRODUCT_ID),
Dacm_ms.c43 .bcdUSB = cpu_to_le16(0x0200),
52 .idVendor = cpu_to_le16(ACM_MS_VENDOR_NUM),
53 .idProduct = cpu_to_le16(ACM_MS_PRODUCT_NUM),
Dhid.c51 .bcdUSB = cpu_to_le16(0x0200),
62 .idVendor = cpu_to_le16(HIDG_VENDOR_NUM),
63 .idProduct = cpu_to_le16(HIDG_PRODUCT_NUM),
Dzero.c116 .bcdUSB = cpu_to_le16(0x0200),
119 .idVendor = cpu_to_le16(DRIVER_VENDOR_NUM),
120 .idProduct = cpu_to_le16(DRIVER_PRODUCT_NUM),
Dmulti.c70 .bcdUSB = cpu_to_le16(0x0200),
77 .idVendor = cpu_to_le16(MULTI_VENDOR_NUM),
78 .idProduct = cpu_to_le16(MULTI_PRODUCT_NUM),
/linux-4.1.27/drivers/net/wireless/libertas/
Dcmd.c97 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_update_hw_spec()
197 cmd_config.hdr.size = cpu_to_le16(sizeof(cmd_config)); in lbs_host_sleep_cfg()
242 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_set_ps_mode()
243 cmd.action = cpu_to_le16(cmd_action); in lbs_set_ps_mode()
247 cmd.multipledtim = cpu_to_le16(1); /* Default DTIM multiple */ in lbs_set_ps_mode()
280 cmd.error = cpu_to_le16(sp->sp_error); in lbs_cmd_802_11_sleep_params()
281 cmd.offset = cpu_to_le16(sp->sp_offset); in lbs_cmd_802_11_sleep_params()
282 cmd.stabletime = cpu_to_le16(sp->sp_stabletime); in lbs_cmd_802_11_sleep_params()
285 cmd.reserved = cpu_to_le16(sp->sp_reserved); in lbs_cmd_802_11_sleep_params()
287 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_cmd_802_11_sleep_params()
[all …]
Dcfg.c173 ssid_tlv->header.type = cpu_to_le16(TLV_TYPE_SSID); in lbs_add_ssid_tlv()
174 ssid_tlv->header.len = cpu_to_le16(ssid_len); in lbs_add_ssid_tlv()
210 header->type = cpu_to_le16(TLV_TYPE_CHANLIST); in lbs_add_channel_list_tlv()
211 header->len = cpu_to_le16(chanscanparamsize); in lbs_add_channel_list_tlv()
225 param->maxscantime = cpu_to_le16(LBS_DWELL_ACTIVE); in lbs_add_channel_list_tlv()
228 param->maxscantime = cpu_to_le16(LBS_DWELL_PASSIVE); in lbs_add_channel_list_tlv()
260 rate_tlv->header.type = cpu_to_le16(TLV_TYPE_RATES); in lbs_add_supported_rates_tlv()
264 rate_tlv->header.len = cpu_to_le16(i); in lbs_add_supported_rates_tlv()
310 rate_tlv->header.type = cpu_to_le16(TLV_TYPE_RATES); in lbs_add_common_rates_tlv()
331 rate_tlv->header.len = cpu_to_le16(n); in lbs_add_common_rates_tlv()
[all …]
Dethtool.c52 cmd.hdr.size = cpu_to_le16(sizeof(struct cmd_ds_802_11_eeprom_access) - in lbs_ethtool_get_eeprom()
54 cmd.action = cpu_to_le16(CMD_ACT_GET); in lbs_ethtool_get_eeprom()
55 cmd.offset = cpu_to_le16(eeprom->offset); in lbs_ethtool_get_eeprom()
56 cmd.len = cpu_to_le16(eeprom->len); in lbs_ethtool_get_eeprom()
Dmesh.c31 cmd->hdr.command = cpu_to_le16(CMD_MESH_ACCESS); in lbs_mesh_access()
32 cmd->hdr.size = cpu_to_le16(sizeof(*cmd)); in lbs_mesh_access()
35 cmd->action = cpu_to_le16(cmd_action); in lbs_mesh_access()
60 cmd->hdr.command = cpu_to_le16(command); in __lbs_mesh_config_send()
61 cmd->hdr.size = cpu_to_le16(sizeof(struct cmd_ds_mesh_config)); in __lbs_mesh_config_send()
64 cmd->type = cpu_to_le16(type); in __lbs_mesh_config_send()
65 cmd->action = cpu_to_le16(action); in __lbs_mesh_config_send()
98 cmd.channel = cpu_to_le16(chan); in lbs_mesh_config()
117 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie_val)); in lbs_mesh_config()
390 cmd.length = cpu_to_le16(sizeof(uint32_t)); in bootflag_set()
[all …]
Ddebugfs.c214 if (tlv_h->type == cpu_to_le16(tlv_type)) in lbs_tlv_find()
248 subscribed->hdr.size = cpu_to_le16(sizeof(*subscribed)); in lbs_threshold_read()
249 subscribed->action = cpu_to_le16(CMD_ACT_GET); in lbs_threshold_read()
310 events->hdr.size = cpu_to_le16(sizeof(*events)); in lbs_threshold_write()
311 events->action = cpu_to_le16(CMD_ACT_GET); in lbs_threshold_write()
328 events->action = cpu_to_le16(CMD_ACT_SET); in lbs_threshold_write()
329 events->events = cpu_to_le16(new_mask); in lbs_threshold_write()
330 tlv->header.type = cpu_to_le16(tlv_type); in lbs_threshold_write()
331 tlv->header.len = cpu_to_le16(sizeof(*tlv) - sizeof(tlv->header)); in lbs_threshold_write()
337 events->hdr.size = cpu_to_le16(sizeof(events->hdr) + 4 + sizeof(*tlv)); in lbs_threshold_write()
Dmain.c139 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_start_iface()
140 cmd.action = cpu_to_le16(CMD_ACT_SET); in lbs_start_iface()
412 mcast_cmd.action = cpu_to_le16(CMD_ACT_SET); in lbs_update_mcast()
413 mcast_cmd.hdr.size = cpu_to_le16(size); in lbs_update_mcast()
414 mcast_cmd.nr_of_adrs = cpu_to_le16(nr_addrs); in lbs_update_mcast()
832 cmd.size = cpu_to_le16(sizeof(cmd)); in auto_deepsleep_timer_fn()
1205 confirm_sleep.hdr.command = cpu_to_le16(CMD_802_11_PS_MODE); in lbs_init_module()
1206 confirm_sleep.hdr.size = cpu_to_le16(sizeof(confirm_sleep)); in lbs_init_module()
1207 confirm_sleep.action = cpu_to_le16(PS_MODE_ACTION_SLEEP_CONFIRMED); in lbs_init_module()
Dif_usb.c138 b2_cmd.hdr.size = cpu_to_le16(sizeof(b2_cmd)); in if_usb_setup_firmware()
150 wake_method.hdr.size = cpu_to_le16(sizeof(wake_method)); in if_usb_setup_firmware()
151 wake_method.action = cpu_to_le16(CMD_ACT_GET); in if_usb_setup_firmware()
394 cmd->command = cpu_to_le16(CMD_802_11_RESET); in if_usb_reset_device()
395 cmd->size = cpu_to_le16(sizeof(cmd)); in if_usb_reset_device()
396 cmd->result = cpu_to_le16(0); in if_usb_reset_device()
397 cmd->seqnum = cpu_to_le16(0x5a5a); in if_usb_reset_device()
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Dwifi.h248 *(__le16 *)(pbuf) |= cpu_to_le16(_TO_DS_)
250 #define GetToDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_TO_DS_)) != 0)
253 *(__le16 *)(pbuf) &= (~cpu_to_le16(_TO_DS_))
256 *(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_)
258 #define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0)
261 *(__le16 *)(pbuf) &= (~cpu_to_le16(_FROM_DS_))
267 *(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_)
269 #define GetMFrag(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_FRAG_)) != 0)
272 *(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_))
275 *(__le16 *)(pbuf) |= cpu_to_le16(_RETRY_)
[all …]
/linux-4.1.27/net/bluetooth/
Dmgmt_util.c41 hdr->opcode = cpu_to_le16(event); in mgmt_send_event()
43 hdr->index = cpu_to_le16(hdev->id); in mgmt_send_event()
45 hdr->index = cpu_to_le16(MGMT_INDEX_NONE); in mgmt_send_event()
46 hdr->len = cpu_to_le16(data_len); in mgmt_send_event()
75 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_STATUS); in mgmt_cmd_status()
76 hdr->index = cpu_to_le16(index); in mgmt_cmd_status()
77 hdr->len = cpu_to_le16(sizeof(*ev)); in mgmt_cmd_status()
81 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_status()
106 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_COMPLETE); in mgmt_cmd_complete()
107 hdr->index = cpu_to_le16(index); in mgmt_cmd_complete()
[all …]
Dhci_conn.c93 cpu_to_le16(0x8000); in hci_acl_create_connection()
101 cp.pkt_type = cpu_to_le16(conn->pkt_type); in hci_acl_create_connection()
148 clkoff_cp.handle = cpu_to_le16(conn->handle); in hci_disconnect()
155 cp.handle = cpu_to_le16(conn->handle); in hci_disconnect()
186 cp.handle = cpu_to_le16(handle); in hci_add_sco()
187 cp.pkt_type = cpu_to_le16(conn->pkt_type); in hci_add_sco()
205 cp.handle = cpu_to_le16(handle); in hci_setup_sync()
209 cp.voice_setting = cpu_to_le16(conn->setting); in hci_setup_sync()
262 cp.handle = cpu_to_le16(conn->handle); in hci_le_conn_update()
263 cp.conn_interval_min = cpu_to_le16(min); in hci_le_conn_update()
[all …]
Dl2cap_core.c204 if (!__l2cap_global_chan_by_addr(cpu_to_le16(p), src)) { in l2cap_add_psm()
205 chan->psm = cpu_to_le16(p); in l2cap_add_psm()
206 chan->sport = cpu_to_le16(p); in l2cap_add_psm()
679 rsp.dcid = cpu_to_le16(chan->scid); in l2cap_chan_le_connect_reject()
680 rsp.mtu = cpu_to_le16(chan->imtu); in l2cap_chan_le_connect_reject()
681 rsp.mps = cpu_to_le16(chan->mps); in l2cap_chan_le_connect_reject()
682 rsp.credits = cpu_to_le16(chan->rx_credits); in l2cap_chan_le_connect_reject()
683 rsp.result = cpu_to_le16(result); in l2cap_chan_le_connect_reject()
702 rsp.scid = cpu_to_le16(chan->dcid); in l2cap_chan_connect_reject()
703 rsp.dcid = cpu_to_le16(chan->scid); in l2cap_chan_connect_reject()
[all …]
Damp.c231 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_frag()
232 cp.len_so_far = cpu_to_le16(loc_assoc->offset); in amp_read_loc_assoc_frag()
244 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc()
257 cp.len_so_far = cpu_to_le16(0); in amp_read_loc_assoc_final_data()
258 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_final_data()
301 cp->len_so_far = cpu_to_le16(ctrl->assoc_len_so_far); in amp_write_rem_assoc_frag()
302 cp->rem_len = cpu_to_le16(ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
433 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); in amp_create_logical_link()
440 cp.rx_flow_spec.msdu = cpu_to_le16(chan->remote_msdu); in amp_create_logical_link()
465 cp.log_handle = cpu_to_le16(hchan->handle); in amp_disconnect_logical_link()
Dhci_sock.c265 opcode = cpu_to_le16(HCI_MON_COMMAND_PKT); in hci_send_to_monitor()
268 opcode = cpu_to_le16(HCI_MON_EVENT_PKT); in hci_send_to_monitor()
272 opcode = cpu_to_le16(HCI_MON_ACL_RX_PKT); in hci_send_to_monitor()
274 opcode = cpu_to_le16(HCI_MON_ACL_TX_PKT); in hci_send_to_monitor()
278 opcode = cpu_to_le16(HCI_MON_SCO_RX_PKT); in hci_send_to_monitor()
280 opcode = cpu_to_le16(HCI_MON_SCO_TX_PKT); in hci_send_to_monitor()
294 hdr->index = cpu_to_le16(hdev->id); in hci_send_to_monitor()
295 hdr->len = cpu_to_le16(skb->len); in hci_send_to_monitor()
321 opcode = cpu_to_le16(HCI_MON_NEW_INDEX); in create_monitor_event()
329 opcode = cpu_to_le16(HCI_MON_DEL_INDEX); in create_monitor_event()
[all …]
/linux-4.1.27/drivers/net/wireless/libertas_tf/
Dcmd.c92 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbtf_update_hw_spec()
160 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbtf_set_channel()
161 cmd.action = cpu_to_le16(CMD_OPT_802_11_RF_CHANNEL_SET); in lbtf_set_channel()
162 cmd.channel = cpu_to_le16(channel); in lbtf_set_channel()
181 cmd.hdr.size = cpu_to_le16(size); in lbtf_beacon_set()
182 cmd.len = cpu_to_le16(beacon->len); in lbtf_beacon_set()
197 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbtf_beacon_ctrl()
198 cmd.action = cpu_to_le16(CMD_ACT_SET); in lbtf_beacon_ctrl()
199 cmd.beacon_enable = cpu_to_le16(beacon_enable); in lbtf_beacon_ctrl()
200 cmd.beacon_period = cpu_to_le16(beacon_int); in lbtf_beacon_ctrl()
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dcommands.h519 #define RXON_RX_CHAIN_DRIVER_FORCE_MSK cpu_to_le16(0x1 << 0)
521 #define RXON_RX_CHAIN_VALID_MSK cpu_to_le16(0x7 << 1)
523 #define RXON_RX_CHAIN_FORCE_SEL_MSK cpu_to_le16(0x7 << 4)
525 #define RXON_RX_CHAIN_FORCE_MIMO_SEL_MSK cpu_to_le16(0x7 << 7)
527 #define RXON_RX_CHAIN_CNT_MSK cpu_to_le16(0x3 << 10)
529 #define RXON_RX_CHAIN_MIMO_CNT_MSK cpu_to_le16(0x3 << 12)
531 #define RXON_RX_CHAIN_MIMO_FORCE_MSK cpu_to_le16(0x1 << 14)
814 #define STA_KEY_FLG_ENCRYPT_MSK cpu_to_le16(0x0007)
815 #define STA_KEY_FLG_NO_ENC cpu_to_le16(0x0000)
816 #define STA_KEY_FLG_WEP cpu_to_le16(0x0001)
[all …]
Dscan.c496 scan_ch->channel = cpu_to_le16(channel); in iwl_get_channel_for_reset_scan()
499 cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); in iwl_get_channel_for_reset_scan()
501 cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); in iwl_get_channel_for_reset_scan()
545 scan_ch->channel = cpu_to_le16(channel); in iwl_get_channels_for_scan()
555 scan_ch->active_dwell = cpu_to_le16(active_dwell); in iwl_get_channels_for_scan()
556 scan_ch->passive_dwell = cpu_to_le16(passive_dwell); in iwl_get_channels_for_scan()
602 frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); in iwl_fill_probe_req()
724 scan->quiet_time = cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); in iwlagn_request_scan()
864 scan->rx_chain = cpu_to_le16(rx_chain); in iwlagn_request_scan()
886 scan->tx_cmd.len = cpu_to_le16(cmd_len); in iwlagn_request_scan()
[all …]
Dcalib.c435 cpu_to_le16((u16)data->auto_corr_ofdm); in iwl_prepare_legacy_sensitivity_tbl()
437 cpu_to_le16((u16)data->auto_corr_ofdm_mrc); in iwl_prepare_legacy_sensitivity_tbl()
439 cpu_to_le16((u16)data->auto_corr_ofdm_x1); in iwl_prepare_legacy_sensitivity_tbl()
441 cpu_to_le16((u16)data->auto_corr_ofdm_mrc_x1); in iwl_prepare_legacy_sensitivity_tbl()
444 cpu_to_le16((u16)data->auto_corr_cck); in iwl_prepare_legacy_sensitivity_tbl()
446 cpu_to_le16((u16)data->auto_corr_cck_mrc); in iwl_prepare_legacy_sensitivity_tbl()
449 cpu_to_le16((u16)data->nrg_th_cck); in iwl_prepare_legacy_sensitivity_tbl()
451 cpu_to_le16((u16)data->nrg_th_ofdm); in iwl_prepare_legacy_sensitivity_tbl()
454 cpu_to_le16(data->barker_corr_th_min); in iwl_prepare_legacy_sensitivity_tbl()
456 cpu_to_le16(data->barker_corr_th_min_mrc); in iwl_prepare_legacy_sensitivity_tbl()
[all …]
Dlib.c141 .flush_control = cpu_to_le16(IWL_DROP_ALL), in iwlagn_txfifo_flush()
144 .flush_control = cpu_to_le16(IWL_DROP_ALL), in iwlagn_txfifo_flush()
164 flush_cmd_v2.queue_control = cpu_to_le16((u16)queue_control); in iwlagn_txfifo_flush()
863 ctx->staging.rx_chain = cpu_to_le16(rx_chain); in iwlagn_set_rxon_chain()
901 out[i] = cpu_to_le16(p1k[i]); in iwlagn_convert_p1k()
954 tkip_tx_sc->iv16 = cpu_to_le16(seq.tkip.iv16); in iwlagn_wowlan_program_keys()
979 tkip_sc[i].iv16 = cpu_to_le16(seq.tkip.iv16); in iwlagn_wowlan_program_keys()
1117 wakeup_filter_cmd.non_qos_seq = cpu_to_le16(seq); in iwlagn_suspend()
1126 wakeup_filter_cmd.qos_seq[i] = cpu_to_le16(seq); in iwlagn_suspend()
1225 kek_kck_cmd.kck_len = cpu_to_le16(NL80211_KCK_LEN); in iwlagn_suspend()
[all …]
/linux-4.1.27/fs/ntfs/
Dlayout.h250 MFT_RECORD_IN_USE = cpu_to_le16(0x0001),
251 MFT_RECORD_IS_DIRECTORY = cpu_to_le16(0x0002),
606 ATTR_IS_COMPRESSED = cpu_to_le16(0x0001),
607 ATTR_COMPRESSION_MASK = cpu_to_le16(0x00ff), /* Compression method
610 ATTR_IS_ENCRYPTED = cpu_to_le16(0x4000),
611 ATTR_IS_SPARSE = cpu_to_le16(0x8000),
1698 SE_OWNER_DEFAULTED = cpu_to_le16(0x0001),
1699 SE_GROUP_DEFAULTED = cpu_to_le16(0x0002),
1700 SE_DACL_PRESENT = cpu_to_le16(0x0004),
1701 SE_DACL_DEFAULTED = cpu_to_le16(0x0008),
[all …]
Dlogfile.h107 #define LOGFILE_NO_CLIENT cpu_to_le16(0xffff)
115 RESTART_VOLUME_IS_CLEAN = cpu_to_le16(0x0002),
116 RESTART_SPACE_FILLER = cpu_to_le16(0xffff), /* gcc: Force enum bit width to 16. */
Dsuper.c448 flags = vol->vol_flags & cpu_to_le16(~le16_to_cpu(flags)); in ntfs_clear_volume_flags()
650 if (!silent && b->end_of_sector_marker != cpu_to_le16(0xaa55)) in is_boot_sector_ntfs()
1274 static const ntfschar hiberfil[13] = { cpu_to_le16('h'), in check_windows_hibernation_status()
1275 cpu_to_le16('i'), cpu_to_le16('b'), in check_windows_hibernation_status()
1276 cpu_to_le16('e'), cpu_to_le16('r'), in check_windows_hibernation_status()
1277 cpu_to_le16('f'), cpu_to_le16('i'), in check_windows_hibernation_status()
1278 cpu_to_le16('l'), cpu_to_le16('.'), in check_windows_hibernation_status()
1279 cpu_to_le16('s'), cpu_to_le16('y'), in check_windows_hibernation_status()
1280 cpu_to_le16('s'), 0 }; in check_windows_hibernation_status()
1368 static const ntfschar Quota[7] = { cpu_to_le16('$'), in load_and_init_quota()
[all …]
Dupcase.c77 uc[i] = cpu_to_le16(i); in generate_default_upcase()
85 uc[uc_word_table[r][0]] = cpu_to_le16(uc_word_table[r][1]); in generate_default_upcase()
Dendian.h65 return (__force sle16)cpu_to_le16(x); in cpu_to_sle16()
80 return (__force sle16)cpu_to_le16(*x); in cpu_to_sle16p()
/linux-4.1.27/fs/udf/
Dmisc.c78 cpu_to_le16(TAG_IDENT_EAHD) || in udf_add_extendedattr()
88 eahd->descTag.tagIdent = cpu_to_le16(TAG_IDENT_EAHD); in udf_add_extendedattr()
90 eahd->descTag.descVersion = cpu_to_le16(3); in udf_add_extendedattr()
92 eahd->descTag.descVersion = cpu_to_le16(2); in udf_add_extendedattr()
94 cpu_to_le16(sbi->s_serial_number); in udf_add_extendedattr()
137 eahd->descTag.descCRCLength = cpu_to_le16(crclen); in udf_add_extendedattr()
138 eahd->descTag.descCRC = cpu_to_le16(crc_itu_t(0, (char *)eahd + in udf_add_extendedattr()
166 cpu_to_le16(TAG_IDENT_EAHD) || in udf_get_extendedattr()
238 if (tag_p->descVersion != cpu_to_le16(0x0002U) && in udf_read_tagged()
239 tag_p->descVersion != cpu_to_le16(0x0003U)) { in udf_read_tagged()
[all …]
Dinode.c1328 if (fe->icbTag.strategyType == cpu_to_le16(4096)) { in udf_read_inode()
1355 } else if (fe->icbTag.strategyType != cpu_to_le16(4)) { in udf_read_inode()
1360 if (fe->icbTag.strategyType == cpu_to_le16(4)) in udf_read_inode()
1373 if (fe->descTag.tagIdent == cpu_to_le16(TAG_IDENT_EFE)) { in udf_read_inode()
1383 } else if (fe->descTag.tagIdent == cpu_to_le16(TAG_IDENT_FE)) { in udf_read_inode()
1392 } else if (fe->descTag.tagIdent == cpu_to_le16(TAG_IDENT_USE)) { in udf_read_inode()
1654 use->descTag.tagIdent = cpu_to_le16(TAG_IDENT_USE); in udf_update_inode()
1659 use->descTag.descCRCLength = cpu_to_le16(crclen); in udf_update_inode()
1660 use->descTag.descCRC = cpu_to_le16(crc_itu_t(0, (char *)use + in udf_update_inode()
1689 fe->fileLinkCount = cpu_to_le16(inode->i_nlink - 1); in udf_update_inode()
[all …]
Dudftime.c131 dest->typeAndTimezone = cpu_to_le16(0x1000 | (offset & 0x0FFF)); in udf_time_to_disk_stamp()
154 dest->year = cpu_to_le16(y); in udf_time_to_disk_stamp()
/linux-4.1.27/drivers/net/ethernet/via/
Dvia-velocity.h74 #define RSR_DETAG cpu_to_le16(0x0080)
75 #define RSR_SNTAG cpu_to_le16(0x0040)
76 #define RSR_RXER cpu_to_le16(0x0020)
77 #define RSR_RL cpu_to_le16(0x0010)
78 #define RSR_CE cpu_to_le16(0x0008)
79 #define RSR_FAE cpu_to_le16(0x0004)
80 #define RSR_CRC cpu_to_le16(0x0002)
81 #define RSR_VIDM cpu_to_le16(0x0001)
87 #define RSR_RXOK cpu_to_le16(0x8000) // rx OK
88 #define RSR_PFT cpu_to_le16(0x4000) // Perfect filtering address match
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dpower.c139 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { in iwl_mvm_power_log()
148 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK)) in iwl_mvm_power_log()
151 if (cmd->flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_log()
154 if (cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK)) { in iwl_mvm_power_log()
180 cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); in iwl_mvm_power_configure_uapsd()
204 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { in iwl_mvm_power_configure_uapsd()
209 cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); in iwl_mvm_power_configure_uapsd()
214 cmd->flags |= cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK); in iwl_mvm_power_configure_uapsd()
220 cmd->flags |= cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); in iwl_mvm_power_configure_uapsd()
221 cmd->snooze_interval = cpu_to_le16(IWL_MVM_PS_SNOOZE_INTERVAL); in iwl_mvm_power_configure_uapsd()
[all …]
Dscan.c116 return cpu_to_le16(rx_chain); in iwl_mvm_scan_rx_chain()
664 cpu_to_le16(channels[i]->hw_value); in iwl_mvm_lmac_scan_cfg_channels()
665 channel_cfg[i].iter_count = cpu_to_le16(1); in iwl_mvm_lmac_scan_cfg_channels()
729 frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); in iwl_mvm_build_unified_scan_probe()
739 preq->mac_header.len = cpu_to_le16(24 + 2); in iwl_mvm_build_unified_scan_probe()
746 preq->band_data[0].offset = cpu_to_le16(pos - preq->buf); in iwl_mvm_build_unified_scan_probe()
747 preq->band_data[0].len = cpu_to_le16(newpos - pos); in iwl_mvm_build_unified_scan_probe()
752 preq->band_data[1].offset = cpu_to_le16(pos - preq->buf); in iwl_mvm_build_unified_scan_probe()
753 preq->band_data[1].len = cpu_to_le16(ies->len[IEEE80211_BAND_5GHZ]); in iwl_mvm_build_unified_scan_probe()
757 preq->common_data.offset = cpu_to_le16(pos - preq->buf); in iwl_mvm_build_unified_scan_probe()
[all …]
Dsta.c809 cmd.add_immediate_ba_ssn = cpu_to_le16(ssn); in iwl_mvm_sta_rx_agg()
872 cmd.tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg); in iwl_mvm_sta_tx_agg()
1203 key_flags = cpu_to_le16(keyidx); in iwl_mvm_send_sta_key()
1204 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_KEY_MAP); in iwl_mvm_send_sta_key()
1208 key_flags |= cpu_to_le16(STA_KEY_FLG_TKIP); in iwl_mvm_send_sta_key()
1211 cmd.tkip_rx_ttak[i] = cpu_to_le16(tkip_p1k[i]); in iwl_mvm_send_sta_key()
1215 key_flags |= cpu_to_le16(STA_KEY_FLG_CCM); in iwl_mvm_send_sta_key()
1219 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_13BYTES); in iwl_mvm_send_sta_key()
1222 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP); in iwl_mvm_send_sta_key()
1226 key_flags |= cpu_to_le16(STA_KEY_FLG_EXT); in iwl_mvm_send_sta_key()
[all …]
Dnvm.c99 .offset = cpu_to_le16(offset), in iwl_nvm_write_chunk()
100 .length = cpu_to_le16(length), in iwl_nvm_write_chunk()
101 .type = cpu_to_le16(section), in iwl_nvm_write_chunk()
120 .offset = cpu_to_le16(offset), in iwl_nvm_read_chunk()
121 .length = cpu_to_le16(length), in iwl_nvm_read_chunk()
122 .type = cpu_to_le16(section), in iwl_nvm_read_chunk()
626 .mcc = cpu_to_le16(alpha2[0] << 8 | alpha2[1]), in iwl_mvm_update_mcc()
671 mcc_resp->mcc = cpu_to_le16(mcc); in iwl_mvm_update_mcc()
/linux-4.1.27/drivers/staging/vt6655/
Drxtx.c157 return cpu_to_le16(wTimeStampOff[priv->byPreambleType % 2] in vnt_time_stamp_off()
193 return cpu_to_le16((u16)s_uGetTxRsvTime(priv, pkt_type, in vnt_rxtx_rsvtime_le16()
227 return cpu_to_le16((u16)uRrvTime); in s_uGetRTSCTSRsvTime()
232 return cpu_to_le16((u16)uRrvTime); in s_uGetRTSCTSRsvTime()
485 return cpu_to_le16((u16)uDurTime); in s_uGetRTSCTSDuration()
522 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); in s_uFillDataHead()
529 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, in s_uFillDataHead()
534 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, in s_uFillDataHead()
555 …buf->duration_a = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType, in s_uFillDataHead()
557 …buf->duration_b = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, PK_TYPE_1… in s_uFillDataHead()
[all …]
/linux-4.1.27/drivers/staging/vt6656/
Drxtx.c109 return cpu_to_le16(vnt_time_stampoff[priv->preamble_type % 2] in vnt_time_stamp_off()
137 return cpu_to_le16((u16)vnt_get_rsvtime(priv, pkt_type, in vnt_rxtx_rsvtime_le16()
176 return cpu_to_le16((u16)rrv_time); in vnt_get_rtscts_rsvtime_le()
181 return cpu_to_le16((u16)rrv_time); in vnt_get_rtscts_rsvtime_le()
197 return cpu_to_le16((u16)(priv->sifs + ack_time)); in vnt_get_duration_le()
244 return cpu_to_le16((u16)dur_time); in vnt_get_rtscts_duration_le()
278 __le16 dur = cpu_to_le16(priv->current_aid | BIT(14) | BIT(15)); in vnt_rxtx_datahead_g()
371 __le16 dur = cpu_to_le16(priv->current_aid | BIT(14) | BIT(15)); in vnt_rxtx_datahead_ab()
394 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS); in vnt_fill_ieee80211_rts()
550 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTS); in vnt_fill_cts_fb_head()
[all …]
/linux-4.1.27/drivers/net/wimax/i2400m/
Dcontrol.c532 if (l3l4_hdr->status == cpu_to_le16(I2400M_MS_DONE_OK)) { in i2400m_report_hook()
875 cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_ENTER_POWERSAVE); in i2400m_cmd_enter_powersave()
876 cmd->hdr.length = cpu_to_le16(sizeof(*cmd) - sizeof(cmd->hdr)); in i2400m_cmd_enter_powersave()
877 cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_cmd_enter_powersave()
878 cmd->tlv.type = cpu_to_le16(I2400M_TLV_TYPE_WAKEUP_MODE); in i2400m_cmd_enter_powersave()
879 cmd->tlv.length = cpu_to_le16(sizeof(cmd->val)); in i2400m_cmd_enter_powersave()
943 cmd->type = cpu_to_le16(I2400M_MT_GET_DEVICE_INFO); in i2400m_get_device_info()
945 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_get_device_info()
1026 cmd->type = cpu_to_le16(I2400M_MT_GET_LM_VERSION); in i2400m_firmware_check()
1028 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_firmware_check()
[all …]
Dop-rfkill.c103 cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_RF_CONTROL); in i2400m_op_rfkill_sw_toggle()
105 cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION); in i2400m_op_rfkill_sw_toggle()
106 cmd->sw_rf.hdr.type = cpu_to_le16(I2400M_TLV_RF_OPERATION); in i2400m_op_rfkill_sw_toggle()
107 cmd->sw_rf.hdr.length = cpu_to_le16(sizeof(cmd->sw_rf.status)); in i2400m_op_rfkill_sw_toggle()
/linux-4.1.27/drivers/media/usb/as102/
Das10x_cmd_cfg.c46 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_get_context()
47 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_get_context()
48 pcmd->body.context.req.type = cpu_to_le16(GET_CONTEXT_DATA); in as10x_cmd_get_context()
102 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_set_context()
105 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_set_context()
106 pcmd->body.context.req.type = cpu_to_le16(SET_CONTEXT_DATA); in as10x_cmd_set_context()
157 cpu_to_le16(CONTROL_PROC_ELNA_CHANGE_MODE); in as10x_cmd_eLNA_change_mode()
Das10x_cmd_stream.c42 cpu_to_le16(CONTROL_PROC_SETFILTER); in as10x_cmd_add_PID_filter()
43 pcmd->body.add_pid_filter.req.pid = cpu_to_le16(filter->pid); in as10x_cmd_add_PID_filter()
99 cpu_to_le16(CONTROL_PROC_REMOVEFILTER); in as10x_cmd_del_PID_filter()
100 pcmd->body.del_pid_filter.req.pid = cpu_to_le16(pid_value); in as10x_cmd_del_PID_filter()
143 cpu_to_le16(CONTROL_PROC_START_STREAMING); in as10x_cmd_start_streaming()
186 cpu_to_le16(CONTROL_PROC_STOP_STREAMING); in as10x_cmd_stop_streaming()
Das10x_cmd.c40 pcmd->body.turn_on.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNON); in as10x_cmd_turn_on()
81 pcmd->body.turn_off.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNOFF); in as10x_cmd_turn_off()
123 preq->body.set_tune.req.proc_id = cpu_to_le16(CONTROL_PROC_SETTUNE); in as10x_cmd_set_tune()
179 cpu_to_le16(CONTROL_PROC_GETTUNESTAT); in as10x_cmd_get_tune_status()
231 cpu_to_le16(CONTROL_PROC_GETTPS); in as10x_cmd_get_tps()
290 cpu_to_le16(CONTROL_PROC_GET_DEMOD_STATS); in as10x_cmd_get_demod_stats()
350 cpu_to_le16(CONTROL_PROC_GET_IMPULSE_RESP); in as10x_cmd_get_impulse_resp()
387 pcmd->header.req_id = cpu_to_le16(xid); in as10x_cmd_build()
388 pcmd->header.prog = cpu_to_le16(SERVICE_PROG_ID); in as10x_cmd_build()
389 pcmd->header.version = cpu_to_le16(SERVICE_PROG_VERSION); in as10x_cmd_build()
[all …]
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dipw2200.h271 #define QOS_TX0_CW_MIN_OFDM cpu_to_le16(CW_MIN_OFDM)
272 #define QOS_TX1_CW_MIN_OFDM cpu_to_le16(CW_MIN_OFDM)
273 #define QOS_TX2_CW_MIN_OFDM cpu_to_le16((CW_MIN_OFDM + 1)/2 - 1)
274 #define QOS_TX3_CW_MIN_OFDM cpu_to_le16((CW_MIN_OFDM + 1)/4 - 1)
276 #define QOS_TX0_CW_MIN_CCK cpu_to_le16(CW_MIN_CCK)
277 #define QOS_TX1_CW_MIN_CCK cpu_to_le16(CW_MIN_CCK)
278 #define QOS_TX2_CW_MIN_CCK cpu_to_le16((CW_MIN_CCK + 1)/2 - 1)
279 #define QOS_TX3_CW_MIN_CCK cpu_to_le16((CW_MIN_CCK + 1)/4 - 1)
281 #define QOS_TX0_CW_MAX_OFDM cpu_to_le16(CW_MAX_OFDM)
282 #define QOS_TX1_CW_MAX_OFDM cpu_to_le16(CW_MAX_OFDM)
[all …]
Dlibipw_rx.c1026 qos_param->cw_min[i] = cpu_to_le16((1 << cw_min) - 1); in libipw_qos_convert_ac_to_parameters()
1029 qos_param->cw_max[i] = cpu_to_le16((1 << cw_max) - 1); in libipw_qos_convert_ac_to_parameters()
1035 qos_param->tx_op_limit[i] = cpu_to_le16(txop); in libipw_qos_convert_ac_to_parameters()
1550 (beacon->capability & cpu_to_le16(1 << 0xf)) ? '1' : '0', in libipw_process_probe_response()
1551 (beacon->capability & cpu_to_le16(1 << 0xe)) ? '1' : '0', in libipw_process_probe_response()
1552 (beacon->capability & cpu_to_le16(1 << 0xd)) ? '1' : '0', in libipw_process_probe_response()
1553 (beacon->capability & cpu_to_le16(1 << 0xc)) ? '1' : '0', in libipw_process_probe_response()
1554 (beacon->capability & cpu_to_le16(1 << 0xb)) ? '1' : '0', in libipw_process_probe_response()
1555 (beacon->capability & cpu_to_le16(1 << 0xa)) ? '1' : '0', in libipw_process_probe_response()
1556 (beacon->capability & cpu_to_le16(1 << 0x9)) ? '1' : '0', in libipw_process_probe_response()
[all …]
Dlibipw_tx.c340 header.qos_ctl |= cpu_to_le16(skb->priority & LIBIPW_QCTL_TID); in libipw_xmit()
342 header.frame_ctl = cpu_to_le16(fc); in libipw_xmit()
449 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS); in libipw_xmit()
455 header.frame_ctl = cpu_to_le16(fc); in libipw_xmit()
481 cpu_to_le16(fc | IEEE80211_FCTL_MOREFRAGS); in libipw_xmit()
/linux-4.1.27/drivers/net/wireless/
Dmwl8k.c646 cmd->code = cpu_to_le16(MWL8K_CMD_CODE_DNLD); in mwl8k_load_fw_image()
656 cmd->length = cpu_to_le16(block_size); in mwl8k_load_fw_image()
881 tr->fwlen = cpu_to_le16(skb->len - sizeof(*tr) + tail_pad); in mwl8k_add_dma_header()
975 rxd->pkt_len = cpu_to_le16(len); in mwl8k_rxd_ap_refill()
1085 rxd->pkt_len = cpu_to_le16(len); in mwl8k_rxd_sta_refill()
1929 wh->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG); in mwl8k_txq_xmit()
1930 wh->seq_ctrl |= cpu_to_le16(mwl8k_vif->seqno); in mwl8k_txq_xmit()
2083 tx->qos_control = cpu_to_le16(qos); in mwl8k_txq_xmit()
2085 tx->pkt_len = cpu_to_le16(skb->len); in mwl8k_txq_xmit()
2452 cmd->header.code = cpu_to_le16(MWL8K_CMD_GET_HW_SPEC); in mwl8k_cmd_get_hw_spec_sta()
[all …]
Dairo.c527 #define MOD_DEFAULT cpu_to_le16(0)
528 #define MOD_CCK cpu_to_le16(1)
529 #define MOD_MOK cpu_to_le16(2)
536 #define MODE_STA_IBSS cpu_to_le16(0)
537 #define MODE_STA_ESS cpu_to_le16(1)
538 #define MODE_AP cpu_to_le16(2)
539 #define MODE_AP_RPTR cpu_to_le16(3)
540 #define MODE_CFG_MASK cpu_to_le16(0xff)
541 #define MODE_ETHERNET_HOST cpu_to_le16(0<<8) /* rx payloads converted */
542 #define MODE_LLC_HOST cpu_to_le16(1<<8) /* rx payloads left as is */
[all …]
Dzd1201.c166 *((__le16*)&command[4]) = cpu_to_le16(cmd); in zd1201_docmd()
167 *((__le16*)&command[6]) = cpu_to_le16(parm0); in zd1201_docmd()
168 *((__le16*)&command[8]) = cpu_to_le16(parm1); in zd1201_docmd()
169 *((__le16*)&command[10])= cpu_to_le16(parm2); in zd1201_docmd()
544 *(__le16*)&request[4] = cpu_to_le16((len-2+1)/2); in zd1201_setconfig()
545 *(__le16*)&request[6] = cpu_to_le16(rid); in zd1201_setconfig()
572 cpu_to_le16(ZD1201_CMDCODE_ACCESS|ZD1201_ACCESSBIT); in zd1201_setconfig()
573 *((__le16*)&request[6]) = cpu_to_le16(rid); in zd1201_setconfig()
574 *((__le16*)&request[8]) = cpu_to_le16(0); in zd1201_setconfig()
575 *((__le16*)&request[10]) = cpu_to_le16(0); in zd1201_setconfig()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_common.c607 desc.flags |= cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_aq_mac_address_read()
634 cmd_data->command_flags = cpu_to_le16(flags); in i40e_aq_mac_address_write()
635 cmd_data->mac_sah = cpu_to_le16((u16)mac_addr[0] << 8 | mac_addr[1]); in i40e_aq_mac_address_write()
1226 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_phy_capabilities()
1228 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); in i40e_aq_get_phy_capabilities()
1444 resp->command_flags = cpu_to_le16(command_flags); in i40e_aq_get_link_info()
1482 if (resp->command_flags & cpu_to_le16(I40E_AQ_LSE_ENABLE)) in i40e_aq_get_link_info()
1522 cmd->event_mask = cpu_to_le16(mask); in i40e_aq_set_phy_int_mask()
1552 cmd->uplink_seid = cpu_to_le16(vsi_ctx->uplink_seid); in i40e_aq_add_vsi()
1555 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in i40e_aq_add_vsi()
[all …]
Di40e_adminq.c41 return (desc->opcode == cpu_to_le16(i40e_aqc_opc_nvm_erase)) || in i40e_is_nvm_update_op()
42 (desc->opcode == cpu_to_le16(i40e_aqc_opc_nvm_update)); in i40e_is_nvm_update_op()
182 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_alloc_arq_bufs()
184 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40e_alloc_arq_bufs()
189 desc->datalen = cpu_to_le16((u16)bi->size); in i40e_alloc_arq_bufs()
779 desc->flags &= ~cpu_to_le16(details->flags_dis); in i40e_asq_send_command()
780 desc->flags |= cpu_to_le16(details->flags_ena); in i40e_asq_send_command()
827 desc_on_ring->datalen = cpu_to_le16(buff_size); in i40e_asq_send_command()
919 desc->opcode = cpu_to_le16(opcode); in i40e_fill_default_direct_cmd_desc()
920 desc->flags = cpu_to_le16(I40E_AQ_FLAG_SI); in i40e_fill_default_direct_cmd_desc()
[all …]
/linux-4.1.27/drivers/gpu/drm/radeon/
Datombios_crtc.c51 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup()
52 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup()
53 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup()
54 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup()
61 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup()
62 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in atombios_overscan_setup()
64 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup()
65 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … in atombios_overscan_setup()
70 args.usOverscanRight = cpu_to_le16(radeon_crtc->h_border); in atombios_overscan_setup()
71 args.usOverscanLeft = cpu_to_le16(radeon_crtc->h_border); in atombios_overscan_setup()
[all …]
Datombios_encoders.c390 args.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dac_setup()
446 args.sTVEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_tv_setup()
519 args.dvo.sDVOEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dvo_setup()
529 args.dvo_v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dvo_setup()
535 args.dvo_v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dvo_setup()
605 args.v1.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_digital_setup()
630 args.v2.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_digital_setup()
886 args.v1.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_encoder_setup2()
923 args.v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_encoder_setup2()
946 args.v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_encoder_setup2()
[all …]
Datombios_i2c.c45 u16 out = cpu_to_le16(0); in radeon_process_i2c_ch()
69 args.lpI2CDataOut = cpu_to_le16(out); in radeon_process_i2c_ch()
/linux-4.1.27/arch/parisc/lib/
Dio.c182 l = cpu_to_le16(inw(port)) << 16; in insw()
183 l |= cpu_to_le16(inw(port)); in insw()
188 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
193 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
199 l = cpu_to_le16(inw(port)) << 16; in insw()
200 l |= cpu_to_le16(inw(port)); in insw()
205 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
215 l = cpu_to_le16(inw(port)); in insw()
220 l2 = cpu_to_le16(inw(port)); in insw()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
Dcommands.h169 #define SEQ_HUGE_FRAME cpu_to_le16(0x4000)
170 #define SEQ_RX_FRAME cpu_to_le16(0x8000)
551 #define RXON_RX_CHAIN_DRIVER_FORCE_MSK cpu_to_le16(0x1 << 0)
553 #define RXON_RX_CHAIN_VALID_MSK cpu_to_le16(0x7 << 1)
555 #define RXON_RX_CHAIN_FORCE_SEL_MSK cpu_to_le16(0x7 << 4)
557 #define RXON_RX_CHAIN_FORCE_MIMO_SEL_MSK cpu_to_le16(0x7 << 7)
559 #define RXON_RX_CHAIN_CNT_MSK cpu_to_le16(0x3 << 10)
561 #define RXON_RX_CHAIN_MIMO_CNT_MSK cpu_to_le16(0x3 << 12)
563 #define RXON_RX_CHAIN_MIMO_FORCE_MSK cpu_to_le16(0x1 << 14)
871 #define STA_KEY_FLG_ENCRYPT_MSK cpu_to_le16(0x0007)
[all …]
D4965-calib.c360 cpu_to_le16((u16) data->auto_corr_ofdm); in il4965_prepare_legacy_sensitivity_tbl()
362 cpu_to_le16((u16) data->auto_corr_ofdm_mrc); in il4965_prepare_legacy_sensitivity_tbl()
364 cpu_to_le16((u16) data->auto_corr_ofdm_x1); in il4965_prepare_legacy_sensitivity_tbl()
366 cpu_to_le16((u16) data->auto_corr_ofdm_mrc_x1); in il4965_prepare_legacy_sensitivity_tbl()
369 cpu_to_le16((u16) data->auto_corr_cck); in il4965_prepare_legacy_sensitivity_tbl()
371 cpu_to_le16((u16) data->auto_corr_cck_mrc); in il4965_prepare_legacy_sensitivity_tbl()
373 tbl[HD_MIN_ENERGY_CCK_DET_IDX] = cpu_to_le16((u16) data->nrg_th_cck); in il4965_prepare_legacy_sensitivity_tbl()
374 tbl[HD_MIN_ENERGY_OFDM_DET_IDX] = cpu_to_le16((u16) data->nrg_th_ofdm); in il4965_prepare_legacy_sensitivity_tbl()
377 cpu_to_le16(data->barker_corr_th_min); in il4965_prepare_legacy_sensitivity_tbl()
379 cpu_to_le16(data->barker_corr_th_min_mrc); in il4965_prepare_legacy_sensitivity_tbl()
[all …]
Ddebug.c56 switch (fc & cpu_to_le16(IEEE80211_FCTL_STYPE)) { in il_update_stats()
57 case cpu_to_le16(IEEE80211_STYPE_ASSOC_REQ): in il_update_stats()
60 case cpu_to_le16(IEEE80211_STYPE_ASSOC_RESP): in il_update_stats()
63 case cpu_to_le16(IEEE80211_STYPE_REASSOC_REQ): in il_update_stats()
66 case cpu_to_le16(IEEE80211_STYPE_REASSOC_RESP): in il_update_stats()
69 case cpu_to_le16(IEEE80211_STYPE_PROBE_REQ): in il_update_stats()
72 case cpu_to_le16(IEEE80211_STYPE_PROBE_RESP): in il_update_stats()
75 case cpu_to_le16(IEEE80211_STYPE_BEACON): in il_update_stats()
78 case cpu_to_le16(IEEE80211_STYPE_ATIM): in il_update_stats()
81 case cpu_to_le16(IEEE80211_STYPE_DISASSOC): in il_update_stats()
[all …]
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_iocb.c216 cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp)); in qla2x00_build_scsi_iocbs_32()
274 cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp)); in qla2x00_build_scsi_iocbs_64()
401 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); in qla2x00_start_scsi()
405 cmd_pkt->lun = cpu_to_le16(cmd->device->lun); in qla2x00_start_scsi()
525 mrk24->nport_handle = cpu_to_le16(loop_id); in __qla2x00_marker()
532 mrk->lun = cpu_to_le16((uint16_t)lun); in __qla2x00_marker()
1332 cmd_pkt->fcp_cmnd_dseg_len = cpu_to_le16(fcp_cmnd_len); in qla24xx_build_scsi_crc_2_iocbs()
1386 crc_ctx_pkt->u.bundling.dseg_count = cpu_to_le16(tot_dsds - in qla24xx_build_scsi_crc_2_iocbs()
1392 crc_ctx_pkt->blk_size = cpu_to_le16(blk_size); in qla24xx_build_scsi_crc_2_iocbs()
1393 crc_ctx_pkt->prot_opts = cpu_to_le16(fw_prot_opts); in qla24xx_build_scsi_crc_2_iocbs()
[all …]
Dqla_mr.c1927 fdisc->u.fxiocb.req_func_type = cpu_to_le16(fx_type); in qlafx00_fx_disc()
2180 if (cpstatus != cpu_to_le16((uint16_t)CS_COMPLETE) || in qlafx00_tm_iocb_entry()
2181 (sstatus & cpu_to_le16((uint16_t)SS_RESPONSE_INFO_LEN_VALID))) in qlafx00_tm_iocb_entry()
2182 cpstatus = cpu_to_le16((uint16_t)CS_INCOMPLETE); in qlafx00_tm_iocb_entry()
2298 scsi_status = sts->scsi_status & cpu_to_le16((uint16_t)SS_MASK); in qlafx00_status_entry()
2343 lscsi_status = scsi_status & cpu_to_le16((uint16_t)STATUS_MASK); in qlafx00_status_entry()
2350 if (scsi_status & cpu_to_le16((uint16_t)SS_SENSE_LEN_VALID)) in qlafx00_status_entry()
2352 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER in qlafx00_status_entry()
2355 if (comp_status == cpu_to_le16((uint16_t)CS_DATA_UNDERRUN)) in qlafx00_status_entry()
2362 scsi_status & cpu_to_le16((uint16_t)SS_RESIDUAL_OVER)) in qlafx00_status_entry()
[all …]
/linux-4.1.27/fs/ext4/
Dext4_extents.h105 #define EXT4_EXT_MAGIC cpu_to_le16(0xf30a)
195 ext->ee_len |= cpu_to_le16(EXT_INIT_MAX_LEN); in ext4_ext_mark_unwritten()
213 ext->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ext)); in ext4_ext_mark_initialized()
251 ex->ee_start_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & in ext4_ext_store_pblock()
264 ix->ei_leaf_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & in ext4_idx_store_pblock()
Dbitmap.c51 gdp->bg_inode_bitmap_csum_lo = cpu_to_le16(csum & 0xFFFF); in ext4_inode_bitmap_csum_set()
53 gdp->bg_inode_bitmap_csum_hi = cpu_to_le16(csum >> 16); in ext4_inode_bitmap_csum_set()
94 gdp->bg_block_bitmap_csum_lo = cpu_to_le16(csum & 0xFFFF); in ext4_block_bitmap_csum_set()
96 gdp->bg_block_bitmap_csum_hi = cpu_to_le16(csum >> 16); in ext4_block_bitmap_csum_set()
/linux-4.1.27/fs/jfs/
Djfs_txnmgr.c1309 lrd->type = cpu_to_le16(LOG_COMMIT); in txCommit()
1449 lrd->log.redopage.type = cpu_to_le16(LOG_INODE); in diLog()
1450 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); in diLog()
1459 lrd->type = cpu_to_le16(LOG_REDOPAGE); in diLog()
1485 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT); in diLog()
1522 lrd->type = cpu_to_le16(LOG_UPDATEMAP); in diLog()
1528 cpu_to_le16(LOG_ALLOCPXD); in diLog()
1531 cpu_to_le16(LOG_FREEPXD); in diLog()
1532 lrd->log.updatemap.nxd = cpu_to_le16(1); in diLog()
1560 lrd->log.redopage.type = cpu_to_le16(LOG_DATA); in dataLog()
[all …]
Djfs_xtree.c718 sp->header.maxentry = cpu_to_le16(XTROOTMAXSLOT); in xtSplitUp()
1015 rp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtSplitPage()
1067 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + 1); in xtSplitPage()
1139 sp->header.nextindex = cpu_to_le16(middle + 1); in xtSplitPage()
1146 cpu_to_le16(XTENTRYSTART + righthalf); in xtSplitPage()
1169 sp->header.nextindex = cpu_to_le16(middle); in xtSplitPage()
1175 rp->header.nextindex = cpu_to_le16(XTENTRYSTART + in xtSplitPage()
1275 rp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtSplitRoot()
1276 rp->header.maxentry = cpu_to_le16(PSIZE >> L2XTSLOTSIZE); in xtSplitRoot()
1303 rp->header.nextindex = cpu_to_le16(nextindex + 1); in xtSplitRoot()
[all …]
Djfs_logmgr.c469 lvd->offset = cpu_to_le16(lv->offset); in lmWriteRecord()
470 lvd->length = cpu_to_le16(lv->length); in lmWriteRecord()
485 lrd->length = cpu_to_le16(len); in lmWriteRecord()
512 if (lrd->type & cpu_to_le16(LOG_COMMIT)) { in lmWriteRecord()
636 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); in lmNextPage()
658 lp->h.eor = lp->t.eor = cpu_to_le16(LOGPHDRSIZE); in lmNextPage()
797 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); in lmGCwrite()
805 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); in lmGCwrite()
889 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_eor); in lmPostGC()
987 lrd.type = cpu_to_le16(LOG_SYNCPT); in lmLogSync()
[all …]
/linux-4.1.27/drivers/usb/gadget/function/
Df_ecm.c135 .bcdCDC = cpu_to_le16(0x0110),
154 .wMaxSegmentSize = cpu_to_le16(ETH_FRAME_LEN),
155 .wNumberMCFilters = cpu_to_le16(0),
197 .wMaxPacketSize = cpu_to_le16(ECM_STATUS_BYTECOUNT),
244 .wMaxPacketSize = cpu_to_le16(ECM_STATUS_BYTECOUNT),
254 .wMaxPacketSize = cpu_to_le16(512),
263 .wMaxPacketSize = cpu_to_le16(512),
293 .wMaxPacketSize = cpu_to_le16(ECM_STATUS_BYTECOUNT),
304 .wBytesPerInterval = cpu_to_le16(ECM_STATUS_BYTECOUNT),
313 .wMaxPacketSize = cpu_to_le16(1024),
[all …]
Df_subset.c97 .bcdCDC = cpu_to_le16(0x0110),
105 .bcdVersion = cpu_to_le16(0x0100),
134 .wMaxSegmentSize = cpu_to_le16(ETH_FRAME_LEN),
135 .wNumberMCFilters = cpu_to_le16(0),
175 .wMaxPacketSize = cpu_to_le16(512),
183 .wMaxPacketSize = cpu_to_le16(512),
204 .wMaxPacketSize = cpu_to_le16(1024),
212 .wMaxPacketSize = cpu_to_le16(1024),
Df_uvc.c96 .wMaxPacketSize = cpu_to_le16(UVC_STATUS_MAX_PACKET_SIZE),
106 .wBytesPerInterval = cpu_to_le16(UVC_STATUS_MAX_PACKET_SIZE),
113 .wMaxTransferSize = cpu_to_le16(UVC_STATUS_MAX_PACKET_SIZE),
570 uvc_control_header->wTotalLength = cpu_to_le16(control_size); in uvc_copy_descriptors()
584 uvc_streaming_header->wTotalLength = cpu_to_le16(streaming_size); in uvc_copy_descriptors()
632 cpu_to_le16(min(opts->streaming_maxpacket, 1023U)); in uvc_function_bind()
636 cpu_to_le16(max_packet_size | ((max_packet_mult - 1) << 11)); in uvc_function_bind()
639 uvc_ss_streaming_ep.wMaxPacketSize = cpu_to_le16(max_packet_size); in uvc_function_bind()
644 cpu_to_le16(max_packet_size * max_packet_mult * in uvc_function_bind()
809 cd->wTerminalType = cpu_to_le16(0x0201); in uvc_alloc_inst()
[all …]
Df_ncm.c126 .wLength = cpu_to_le16(sizeof(ntb_parameters)),
127 .bmNtbFormatsSupported = cpu_to_le16(FORMATS_SUPPORTED),
129 .wNdpInDivisor = cpu_to_le16(4),
130 .wNdpInPayloadRemainder = cpu_to_le16(0),
131 .wNdpInAlignment = cpu_to_le16(4),
134 .wNdpOutDivisor = cpu_to_le16(4),
135 .wNdpOutPayloadRemainder = cpu_to_le16(0),
136 .wNdpOutAlignment = cpu_to_le16(4),
179 .bcdCDC = cpu_to_le16(0x0110),
198 .wMaxSegmentSize = cpu_to_le16(ETH_FRAME_LEN),
[all …]
Df_acm.c137 .bcdCDC = cpu_to_le16(0x0110),
171 .wMaxPacketSize = cpu_to_le16(GS_NOTIFY_MAXPACKET),
209 .wMaxPacketSize = cpu_to_le16(GS_NOTIFY_MAXPACKET),
217 .wMaxPacketSize = cpu_to_le16(512),
224 .wMaxPacketSize = cpu_to_le16(512),
245 .wMaxPacketSize = cpu_to_le16(1024),
252 .wMaxPacketSize = cpu_to_le16(1024),
519 notify->wValue = cpu_to_le16(value); in acm_cdc_notify()
520 notify->wIndex = cpu_to_le16(acm->ctrl_id); in acm_cdc_notify()
521 notify->wLength = cpu_to_le16(length); in acm_cdc_notify()
Df_sourcesink.c119 .wMaxPacketSize = cpu_to_le16(1023),
129 .wMaxPacketSize = cpu_to_le16(1023),
153 .wMaxPacketSize = cpu_to_le16(512),
161 .wMaxPacketSize = cpu_to_le16(512),
169 .wMaxPacketSize = cpu_to_le16(1024),
178 .wMaxPacketSize = cpu_to_le16(1024),
202 .wMaxPacketSize = cpu_to_le16(1024),
219 .wMaxPacketSize = cpu_to_le16(1024),
236 .wMaxPacketSize = cpu_to_le16(1024),
246 .wBytesPerInterval = cpu_to_le16(1024),
[all …]
Df_rndis.c131 .bcdCDC = cpu_to_le16(0x0110),
195 .wMaxPacketSize = cpu_to_le16(STATUS_BYTECOUNT),
241 .wMaxPacketSize = cpu_to_le16(STATUS_BYTECOUNT),
251 .wMaxPacketSize = cpu_to_le16(512),
260 .wMaxPacketSize = cpu_to_le16(512),
289 .wMaxPacketSize = cpu_to_le16(STATUS_BYTECOUNT),
300 .wBytesPerInterval = cpu_to_le16(STATUS_BYTECOUNT),
309 .wMaxPacketSize = cpu_to_le16(1024),
318 .wMaxPacketSize = cpu_to_le16(1024),
Df_serial.c86 .wMaxPacketSize = cpu_to_le16(512),
93 .wMaxPacketSize = cpu_to_le16(512),
107 .wMaxPacketSize = cpu_to_le16(1024),
114 .wMaxPacketSize = cpu_to_le16(1024),
Dstorage_common.c96 .wMaxPacketSize = cpu_to_le16(512),
106 .wMaxPacketSize = cpu_to_le16(512),
126 .wMaxPacketSize = cpu_to_le16(1024),
144 .wMaxPacketSize = cpu_to_le16(1024),
Df_obex.c111 .bcdCDC = cpu_to_le16(0x0120),
126 .bcdVersion = cpu_to_le16(0x0100),
137 .wMaxPacketSize = cpu_to_le16(512),
146 .wMaxPacketSize = cpu_to_le16(512),
Df_loopback.c95 .wMaxPacketSize = cpu_to_le16(512),
103 .wMaxPacketSize = cpu_to_le16(512),
120 .wMaxPacketSize = cpu_to_le16(1024),
136 .wMaxPacketSize = cpu_to_le16(1024),
/linux-4.1.27/drivers/scsi/fnic/
Dwq_enet_desc.h57 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); in wq_enet_desc_enc()
58 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << in wq_enet_desc_enc()
60 desc->header_length_flags = cpu_to_le16( in wq_enet_desc_enc()
67 desc->vlan_tag = cpu_to_le16(vlan_tag); in wq_enet_desc_enc()
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
Dwq_enet_desc.h59 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); in wq_enet_desc_enc()
60 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << in wq_enet_desc_enc()
62 desc->header_length_flags = cpu_to_le16( in wq_enet_desc_enc()
69 desc->vlan_tag = cpu_to_le16(vlan_tag); in wq_enet_desc_enc()
/linux-4.1.27/drivers/scsi/aic94xx/
Daic94xx_tmf.c176 scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long) in asd_clear_nexus_I_T()
228 scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long) in asd_clear_nexus_I_T_L()
243 scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long) in asd_clear_nexus_tag()
256 scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long) in asd_clear_nexus_index()
258 scb->clear_nexus.index = cpu_to_le16(tascb->tc_index); in asd_clear_nexus_index()
467 scb->abort_task.sister_scb = cpu_to_le16(0xFFFF); in asd_abort_task()
468 scb->abort_task.conn_handle = cpu_to_le16( in asd_abort_task()
471 scb->abort_task.index = cpu_to_le16((u16)tascb->tc_index); in asd_abort_task()
472 scb->abort_task.itnl_to = cpu_to_le16(ITNL_TIMEOUT_CONST); in asd_abort_task()
614 scb->ssp_tmf.sister_scb = cpu_to_le16(0xFFFF); in asd_initiate_ssp_tmf()
[all …]
Daic94xx_task.c393 scb->ata_task.sister_scb = cpu_to_le16(0xFFFF); in asd_build_ata_ascb()
394 scb->ata_task.conn_handle = cpu_to_le16( in asd_build_ata_ascb()
460 scb->smp_task.sister_scb = cpu_to_le16(0xFFFF); in asd_build_smp_ascb()
461 scb->smp_task.conn_handle = cpu_to_le16((u16) in asd_build_smp_ascb()
511 scb->ssp_task.sister_scb = cpu_to_le16(0xFFFF); in asd_build_ssp_ascb()
512 scb->ssp_task.conn_handle = cpu_to_le16( in asd_build_ssp_ascb()
/linux-4.1.27/drivers/atm/
Dsolos-pci.c214 header->size = cpu_to_le16(buflen); in solos_param_show()
215 header->vpi = cpu_to_le16(0); in solos_param_show()
216 header->vci = cpu_to_le16(0); in solos_param_show()
217 header->type = cpu_to_le16(PKT_COMMAND); in solos_param_show()
270 header->size = cpu_to_le16(buflen); in solos_param_store()
271 header->vpi = cpu_to_le16(0); in solos_param_store()
272 header->vci = cpu_to_le16(0); in solos_param_store()
273 header->type = cpu_to_le16(PKT_COMMAND); in solos_param_store()
485 header->size = cpu_to_le16(size); in send_command()
486 header->vpi = cpu_to_le16(0); in send_command()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
Dixgb_ee.c417 ee_map->init_ctrl_reg_1 = cpu_to_le16(EEPROM_ICW1_SIGNATURE_CLEAR); in ixgb_write_eeprom()
480 hw->eeprom[i] = cpu_to_le16(ee_data); in ixgb_get_eeprom_data()
487 ee_map->init_ctrl_reg_1 = cpu_to_le16(EEPROM_ICW1_SIGNATURE_CLEAR); in ixgb_get_eeprom_data()
491 if ((ee_map->init_ctrl_reg_1 & cpu_to_le16(EEPROM_ICW1_SIGNATURE_MASK)) in ixgb_get_eeprom_data()
492 != cpu_to_le16(EEPROM_ICW1_SIGNATURE_VALID)) { in ixgb_get_eeprom_data()
515 if ((ee_map->init_ctrl_reg_1 & cpu_to_le16(EEPROM_ICW1_SIGNATURE_MASK)) in ixgb_check_and_get_eeprom_data()
516 == cpu_to_le16(EEPROM_ICW1_SIGNATURE_VALID)) { in ixgb_check_and_get_eeprom_data()
/linux-4.1.27/include/linux/uwb/
Dspec.h349 ie->drp_control = cpu_to_le16(drp_control); in uwb_ie_drp_set_type()
356 ie->drp_control = cpu_to_le16(drp_control); in uwb_ie_drp_set_stream_index()
364 ie->drp_control = cpu_to_le16(drp_control); in uwb_ie_drp_set_reason_code()
371 ie->drp_control = cpu_to_le16(drp_control); in uwb_ie_drp_set_status()
378 ie->drp_control = cpu_to_le16(drp_control); in uwb_ie_drp_set_owner()
385 ie->drp_control = cpu_to_le16(drp_control); in uwb_ie_drp_set_tiebreaker()
392 ie->drp_control = cpu_to_le16(drp_control); in uwb_ie_drp_set_unsafe()
419 ie->relinquish_req_control = cpu_to_le16(ctrl); in uwb_ie_relinquish_req_set_reason_code()
/linux-4.1.27/drivers/input/misc/
Dpowermate.c129 pm->configcr->wValue = cpu_to_le16( SET_PULSE_ASLEEP ); in powermate_sync_state()
130 pm->configcr->wIndex = cpu_to_le16( pm->pulse_asleep ? 1 : 0 ); in powermate_sync_state()
133 pm->configcr->wValue = cpu_to_le16( SET_PULSE_AWAKE ); in powermate_sync_state()
134 pm->configcr->wIndex = cpu_to_le16( pm->pulse_awake ? 1 : 0 ); in powermate_sync_state()
165 pm->configcr->wValue = cpu_to_le16( (pm->pulse_table << 8) | SET_PULSE_MODE ); in powermate_sync_state()
166 pm->configcr->wIndex = cpu_to_le16( (arg << 8) | op ); in powermate_sync_state()
169 pm->configcr->wValue = cpu_to_le16( SET_STATIC_BRIGHTNESS ); in powermate_sync_state()
170 pm->configcr->wIndex = cpu_to_le16( pm->static_brightness ); in powermate_sync_state()
/linux-4.1.27/drivers/net/wireless/prism54/
Doid_mgt.c361 bss->age = cpu_to_le16(bss->age); in mgt_cpu_to_le()
362 bss->channel = cpu_to_le16(bss->channel); in mgt_cpu_to_le()
363 bss->capinfo = cpu_to_le16(bss->capinfo); in mgt_cpu_to_le()
364 bss->rates = cpu_to_le16(bss->rates); in mgt_cpu_to_le()
365 bss->basic_rates = cpu_to_le16(bss->basic_rates); in mgt_cpu_to_le()
379 freq->nr = cpu_to_le16(freq->nr); in mgt_cpu_to_le()
381 freq->mhz[i] = cpu_to_le16(freq->mhz[i]); in mgt_cpu_to_le()
386 mlme->id = cpu_to_le16(mlme->id); in mgt_cpu_to_le()
387 mlme->state = cpu_to_le16(mlme->state); in mgt_cpu_to_le()
388 mlme->code = cpu_to_le16(mlme->code); in mgt_cpu_to_le()
[all …]
/linux-4.1.27/drivers/s390/crypto/
Dzcrypt_cca_key.h169 key->t6_hdr.blen = cpu_to_le16(0x189); in zcrypt_type6_mex_key_de()
170 key->t6_hdr.ulen = cpu_to_le16(0x189 - 2); in zcrypt_type6_mex_key_de()
258 key->t6_hdr.ulen = cpu_to_le16(key->pubHdr.token_length + 4); in zcrypt_type6_mex_key_en()
259 key->t6_hdr.blen = cpu_to_le16(key->pubHdr.token_length + 6); in zcrypt_type6_mex_key_en()
305 key->t6_hdr.blen = cpu_to_le16(size); in zcrypt_type6_crt_key()
306 key->t6_hdr.ulen = cpu_to_le16(size - 2); in zcrypt_type6_crt_key()
Dzcrypt_pcicc.c197 msg->length = cpu_to_le16(vud_len + 2); in ICAMEX_msg_to_type6MEX_msg()
206 msg->length = cpu_to_le16(2 + vud_len); in ICAMEX_msg_to_type6MEX_msg()
224 msg->cprb.req_parml = cpu_to_le16(size - sizeof(msg->hdr) - in ICAMEX_msg_to_type6MEX_msg()
226 msg->cprb.rpl_parml = cpu_to_le16(msg->hdr.FromCardLen1); in ICAMEX_msg_to_type6MEX_msg()
267 msg->length = cpu_to_le16(2 + crt->inputdatalength); in ICACRT_msg_to_type6CRT_msg()
288 cpu_to_le16(size - sizeof(msg->hdr) - sizeof(msg->cprb)); in ICACRT_msg_to_type6CRT_msg()
/linux-4.1.27/drivers/staging/rtl8723au/hal/
Drtl8723a_cmd.c200 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); in ConstructBeacon()
288 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL); in ConstructPSPoll()
289 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); in ConstructPSPoll()
292 pwlanhdr->duration_id = cpu_to_le16(pmlmeinfo->aid | 0xc000); in ConstructPSPoll()
321 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); in ConstructNullFunctionData()
326 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_TODS); in ConstructNullFunctionData()
335 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ConstructNullFunctionData()
356 cpu_to_le16(IEEE80211_FTYPE_DATA | in ConstructNullFunctionData()
359 qoshdr->qos_ctrl = cpu_to_le16(AC & IEEE80211_QOS_CTL_TID_MASK); in ConstructNullFunctionData()
361 qoshdr->qos_ctrl |= cpu_to_le16(IEEE80211_QOS_CTL_EOSP); in ConstructNullFunctionData()
[all …]
Drtl8723au_recv.c202 cpu_to_le16(IEEE80211_FCTL_TODS | in update_recvframe_phyinfo()
204 case cpu_to_le16(IEEE80211_FCTL_TODS): in update_recvframe_phyinfo()
207 case cpu_to_le16(IEEE80211_FCTL_FROMDS): in update_recvframe_phyinfo()
210 case cpu_to_le16(0): in update_recvframe_phyinfo()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dacx.c275 rx_timeout->ps_poll_timeout = cpu_to_le16(wl->conf.rx.ps_poll_timeout); in wl1271_acx_service_period_timeout()
276 rx_timeout->upsd_timeout = cpu_to_le16(wl->conf.rx.upsd_timeout); in wl1271_acx_service_period_timeout()
313 rts->threshold = cpu_to_le16((u16)rts_threshold); in wl1271_acx_rts_threshold()
565 detection->rx_cca_threshold = cpu_to_le16(wl->conf.rx.rx_cca_threshold); in wl1271_acx_cca_threshold()
592 bb->beacon_rx_timeout = cpu_to_le16(wl->conf.conn.beacon_rx_timeout); in wl1271_acx_bcn_dtim_options()
593 bb->broadcast_timeout = cpu_to_le16(wl->conf.conn.broadcast_timeout); in wl1271_acx_bcn_dtim_options()
622 acx_aid->aid = cpu_to_le16(aid); in wl1271_acx_aid()
859 acx->cw_max = cpu_to_le16(cw_max); in wl1271_acx_ac_cfg()
861 acx->tx_op_limit = cpu_to_le16(txop); in wl1271_acx_ac_cfg()
932 acx->frag_threshold = cpu_to_le16((u16)frag_threshold); in wl1271_acx_frag_threshold()
[all …]
Dcmd.c71 cmd->id = cpu_to_le16(id); in __wlcore_cmd_send()
494 cmd->reason = cpu_to_le16(WLAN_REASON_UNSPECIFIED); in wl12xx_cmd_role_stop_dev()
531 cmd->sta.beacon_interval = cpu_to_le16(wlvif->beacon_int); in wl12xx_cmd_role_start_sta()
605 cmd->reason = cpu_to_le16(WLAN_REASON_UNSPECIFIED); in wl12xx_cmd_role_stop_sta()
658 cmd->ap.aging_period = cpu_to_le16(wl->conf.tx.ap_aging_period); in wl12xx_cmd_role_start_ap()
665 cmd->ap.beacon_interval = cpu_to_le16(wlvif->beacon_int); in wl12xx_cmd_role_start_ap()
780 cmd->ibss.beacon_interval = cpu_to_le16(wlvif->beacon_int); in wl12xx_cmd_role_start_ibss()
869 acx->id = cpu_to_le16(id); in wl1271_cmd_interrogate()
872 acx->len = cpu_to_le16(res_len - sizeof(*acx)); in wl1271_cmd_interrogate()
902 acx->id = cpu_to_le16(id); in wlcore_cmd_configure_failsafe()
[all …]
Dscan.c203 cpu_to_le16(dwell_time_dfs); in wlcore_scan_get_channels()
206 cpu_to_le16(dwell_time_passive); in wlcore_scan_get_channels()
210 cpu_to_le16(min_dwell_time_active); in wlcore_scan_get_channels()
212 cpu_to_le16(max_dwell_time_active); in wlcore_scan_get_channels()
/linux-4.1.27/drivers/uwb/i1480/dfu/
Dphy.c61 cmd->rccb.wCommand = cpu_to_le16(i1480_CMD_MPI_WRITE); in i1480_mpi_write()
62 cmd->size = cpu_to_le16(size); in i1480_mpi_write()
113 cmd->rccb.wCommand = cpu_to_le16(i1480_CMD_MPI_READ); in i1480_mpi_read()
114 cmd->size = cpu_to_le16(3*size); in i1480_mpi_read()
/linux-4.1.27/fs/fat/
Dmisc.c238 *date = cpu_to_le16((0 << 9) | (1 << 5) | 1); in fat_time_unix2fat()
244 *time = cpu_to_le16((23 << 11) | (59 << 5) | 29); in fat_time_unix2fat()
245 *date = cpu_to_le16((127 << 9) | (12 << 5) | 31); in fat_time_unix2fat()
258 *time = cpu_to_le16(tm.tm_hour << 11 | tm.tm_min << 5 | tm.tm_sec); in fat_time_unix2fat()
259 *date = cpu_to_le16(tm.tm_year << 9 | tm.tm_mon << 5 | tm.tm_mday); in fat_time_unix2fat()
/linux-4.1.27/drivers/scsi/qla4xxx/
Dql4_iocb.c105 marker_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); in qla4xxx_send_marker_iocb()
106 marker_entry->modifier = cpu_to_le16(mrkr_mod); in qla4xxx_send_marker_iocb()
130 cont_entry->hdr.systemDefined = (uint8_t) cpu_to_le16(ha->request_in); in qla4xxx_alloc_cont_entry()
326 cmd_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); in qla4xxx_send_command_to_isp()
331 cmd_entry->dataSegCnt = cpu_to_le16(tot_dsds); in qla4xxx_send_command_to_isp()
408 passthru_iocb->target = cpu_to_le16(ddb_entry->fw_ddb_index); in qla4xxx_send_passthru0()
409 passthru_iocb->timeout = cpu_to_le16(PT_DEFAULT_TIMEOUT); in qla4xxx_send_passthru0()
434 passthru_iocb->control_flags = cpu_to_le16(ctrl_flags); in qla4xxx_send_passthru0()
Dql4_os.c2027 cpu_to_le16( in qla4xxx_set_ipv6()
2031 cpu_to_le16( in qla4xxx_set_ipv6()
2044 init_fw_cb->ipv6_addtl_opts |= cpu_to_le16( in qla4xxx_set_ipv6()
2048 init_fw_cb->ipv6_addtl_opts &= cpu_to_le16( in qla4xxx_set_ipv6()
2066 cpu_to_le16(IPV6_OPT_IPV6_PROTOCOL_ENABLE); in qla4xxx_set_ipv6()
2070 cpu_to_le16(~IPV6_OPT_IPV6_PROTOCOL_ENABLE & in qla4xxx_set_ipv6()
2084 cpu_to_le16(IPV6_OPT_VLAN_TAGGING_ENABLE); in qla4xxx_set_ipv6()
2087 cpu_to_le16(~IPV6_OPT_VLAN_TAGGING_ENABLE); in qla4xxx_set_ipv6()
2091 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2099 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
[all …]
/linux-4.1.27/drivers/macintosh/
Drack-meter.c185 cmd->req_count = cpu_to_le16(4); in rackmeter_setup_dbdma()
186 cmd->command = cpu_to_le16(STORE_WORD | INTR_ALWAYS | KEY_SYSTEM); in rackmeter_setup_dbdma()
192 cmd->req_count = cpu_to_le16(SAMPLE_COUNT * 4); in rackmeter_setup_dbdma()
193 cmd->command = cpu_to_le16(OUTPUT_MORE); in rackmeter_setup_dbdma()
198 cmd->req_count = cpu_to_le16(4); in rackmeter_setup_dbdma()
199 cmd->command = cpu_to_le16(STORE_WORD | INTR_ALWAYS | KEY_SYSTEM); in rackmeter_setup_dbdma()
205 cmd->req_count = cpu_to_le16(SAMPLE_COUNT * 4); in rackmeter_setup_dbdma()
206 cmd->command = cpu_to_le16(OUTPUT_MORE | BR_ALWAYS); in rackmeter_setup_dbdma()
/linux-4.1.27/fs/ncpfs/
Dncplib_kernel.c434 ncp_add_word(server, cpu_to_le16(0x8006)); /* get all */ in ncp_obtain_info()
464 ncp_add_word(server, cpu_to_le16(0x8006)); /* get all */ in ncp_obtain_DOS_dir_base()
553 ncp_add_word(server, cpu_to_le16(0x8006)); /* get all */ in ncp_ObtainSpecificDirBase()
639 target->creationTime = target->modifyTime = cpu_to_le16(0x0000); in ncp_lookup_volume()
640 target->creationDate = target->modifyDate = target->lastAccessDate = cpu_to_le16(0x0C21); in ncp_lookup_volume()
659 ncp_add_word(server, cpu_to_le16(0x8006)); /* search attribs: all */ in ncp_modify_file_or_subdir_dos_info_path()
739 return ncp_DeleteNSEntry(server, 1, volnum, dirent, NULL, NW_NS_DOS, cpu_to_le16(0x8006)); in ncp_del_file_or_subdir2()
762 return ncp_DeleteNSEntry(server, 1, volnum, dirent, name, name_space, cpu_to_le16(0x8006)); in ncp_del_file_or_subdir()
768 dest[1] = cpu_to_le16(v0); in ConvertToNWfromDWORD()
769 dest[2] = cpu_to_le16(v1); in ConvertToNWfromDWORD()
[all …]
/linux-4.1.27/sound/ppc/
Dpmac.c243 chip->extra_dma.cmds->command = cpu_to_le16(DBDMA_STOP); in snd_pmac_pcm_prepare()
255 cp->req_count = cpu_to_le16(rec->period_size); in snd_pmac_pcm_prepare()
257 cp->xfer_status = cpu_to_le16(0); in snd_pmac_pcm_prepare()
261 cp->command = cpu_to_le16(DBDMA_NOP + BR_ALWAYS); in snd_pmac_pcm_prepare()
430 cp->xfer_status = cpu_to_le16(0); in snd_pmac_pcm_dead_xfer()
431 cp->req_count = cpu_to_le16(rec->period_size); in snd_pmac_pcm_dead_xfer()
441 cp->req_count = cpu_to_le16(res); in snd_pmac_pcm_dead_xfer()
442 cp->res_count = cpu_to_le16(0); in snd_pmac_pcm_dead_xfer()
443 cp->xfer_status = cpu_to_le16(0); in snd_pmac_pcm_dead_xfer()
449 cp->command = cpu_to_le16(OUTPUT_MORE | BR_ALWAYS | INTR_ALWAYS); in snd_pmac_pcm_dead_xfer()
[all …]
/linux-4.1.27/net/mac80211/
Dvht.c110 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(rxmcs_cap); in ieee80211_apply_vhtcap_overrides()
111 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(txmcs_cap); in ieee80211_apply_vhtcap_overrides()
247 ~cpu_to_le16(IEEE80211_VHT_MCS_NOT_SUPPORTED << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
248 vht_cap->vht_mcs.rx_mcs_map |= cpu_to_le16(peer_rx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
251 ~cpu_to_le16(IEEE80211_VHT_MCS_NOT_SUPPORTED << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
252 vht_cap->vht_mcs.tx_mcs_map |= cpu_to_le16(peer_tx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
Dmesh_ps.c34 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); in mps_qos_null_get()
206 hdr->frame_control &= cpu_to_le16(~IEEE80211_FCTL_PM); in ieee80211_mps_set_frame_flags()
208 hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); in ieee80211_mps_set_frame_flags()
378 cpu_to_le16(IEEE80211_FCTL_MOREDATA); in mpsp_trigger_send()
507 cpu_to_le16(IEEE80211_FCTL_MOREDATA); in mps_frame_deliver()
510 cpu_to_le16(~IEEE80211_FCTL_MOREDATA); in mps_frame_deliver()
Dht.c27 __le16 le_flag = cpu_to_le16(flag); in __check_htcap_disable()
39 __le16 le_flag = cpu_to_le16(flag); in __check_htcap_enable()
385 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_delba()
395 mgmt->u.action.u.delba.params = cpu_to_le16(params); in ieee80211_send_delba()
396 mgmt->u.action.u.delba.reason_code = cpu_to_le16(reason_code); in ieee80211_send_delba()
442 action_frame->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_send_smps_action()
Dwpa.c322 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | in ccmp_special_blocks()
325 mask_fc &= ~cpu_to_le16(0x0070); in ccmp_special_blocks()
326 mask_fc |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); in ccmp_special_blocks()
573 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | in gcmp_special_blocks()
576 mask_fc &= ~cpu_to_le16(0x0070); in gcmp_special_blocks()
577 mask_fc |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); in gcmp_special_blocks()
885 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | IEEE80211_FCTL_PM | in bip_aad()
940 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_encrypt()
984 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_256_encrypt()
1129 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_gmac_encrypt()
Dtx.c112 return cpu_to_le16(32768); in ieee80211_duration()
193 return cpu_to_le16(dur); in ieee80211_duration()
770 __le16 ret = cpu_to_le16(*seq); in ieee80211_tx_next_seq()
814 hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number); in ieee80211_tx_h_sequence()
950 const __le16 morefrags = cpu_to_le16(IEEE80211_FCTL_MOREFRAGS); in ieee80211_tx_h_fragment()
969 hdr->seq_ctrl |= cpu_to_le16(fragnum & IEEE80211_SCTL_FRAG); in ieee80211_tx_h_fragment()
2018 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); in ieee80211_build_hdr()
2023 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_build_hdr()
2051 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_build_hdr()
2060 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_build_hdr()
[all …]
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_softmac.c249 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4); in softmac_mgmt_xmit()
266 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_mgmt_xmit()
323 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_ps_mgmt_xmit()
337 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_ps_mgmt_xmit()
370 req->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_PROBE_REQ); in rtllib_probe_req()
812 auth->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_AUTH); in rtllib_authentication_req()
814 auth->header.frame_ctl |= cpu_to_le16(RTLLIB_FCTL_WEP); in rtllib_authentication_req()
816 auth->header.duration_id = cpu_to_le16(0x013a); in rtllib_authentication_req()
823 auth->algorithm = cpu_to_le16(WLAN_AUTH_SHARED_KEY); in rtllib_authentication_req()
826 auth->transaction = cpu_to_le16(ieee->associate_seq); in rtllib_authentication_req()
[all …]
Drtllib_tx.c235 txb->frag_size = cpu_to_le16(txb_size); in rtllib_alloc_txb()
626 txb->payload_size = cpu_to_le16(skb->len); in rtllib_xmit_inter()
717 header.frame_ctl = cpu_to_le16(fc); in rtllib_xmit_inter()
743 header.qos_ctl = cpu_to_le16(qos_ctl & RTLLIB_QOS_TID); in rtllib_xmit_inter()
787 txb->payload_size = cpu_to_le16(bytes); in rtllib_xmit_inter()
826 frag_hdr->frame_ctl = cpu_to_le16( in rtllib_xmit_inter()
836 cpu_to_le16(rtllib_query_seqnum(ieee, skb_frag, in rtllib_xmit_inter()
839 cpu_to_le16(le16_to_cpu(frag_hdr->seq_ctl)<<4 | i); in rtllib_xmit_inter()
842 cpu_to_le16(ieee->seq_ctrl[0]<<4 | i); in rtllib_xmit_inter()
894 txb->payload_size = cpu_to_le16(skb->len); in rtllib_xmit_inter()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_adminq.c180 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_alloc_arq_bufs()
182 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40e_alloc_arq_bufs()
187 desc->datalen = cpu_to_le16((u16)bi->size); in i40e_alloc_arq_bufs()
730 desc->flags &= ~cpu_to_le16(details->flags_dis); in i40evf_asq_send_command()
731 desc->flags |= cpu_to_le16(details->flags_ena); in i40evf_asq_send_command()
778 desc_on_ring->datalen = cpu_to_le16(buff_size); in i40evf_asq_send_command()
871 desc->opcode = cpu_to_le16(opcode); in i40evf_fill_default_direct_cmd_desc()
872 desc->flags = cpu_to_le16(I40E_AQ_FLAG_SI); in i40evf_fill_default_direct_cmd_desc()
942 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40evf_clean_arq_element()
944 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40evf_clean_arq_element()
[all …]
/linux-4.1.27/include/uapi/linux/
Dncp.h60 #define AR_READ (cpu_to_le16(1))
61 #define AR_WRITE (cpu_to_le16(2))
62 #define AR_EXCLUSIVE (cpu_to_le16(0x20))
/linux-4.1.27/drivers/net/wireless/orinoco/
Dorinoco_usb.c736 req->magic = cpu_to_le16(EZUSB_MAGIC); in ezusb_fill_req()
739 req->frame_type = cpu_to_le16(frame_type); in ezusb_fill_req()
740 req->size = cpu_to_le16(length + 4); in ezusb_fill_req()
741 req->crc = cpu_to_le16(build_crc(req)); in ezusb_fill_req()
742 req->hermes_len = cpu_to_le16(HERMES_BYTES_TO_RECLEN(length)); in ezusb_fill_req()
743 req->hermes_rid = cpu_to_le16(rid); in ezusb_fill_req()
1004 cpu_to_le16(cmd), in ezusb_doicmd_wait()
1005 cpu_to_le16(parm0), in ezusb_doicmd_wait()
1006 cpu_to_le16(parm1), in ezusb_doicmd_wait()
1007 cpu_to_le16(parm2), in ezusb_doicmd_wait()
[all …]
Dhw.c528 idbuf.len = cpu_to_le16(strlen(priv->desired_essid)); in orinoco_hw_program_rids()
549 idbuf.len = cpu_to_le16(strlen(priv->nick)); in orinoco_hw_program_rids()
836 keys[i].len = cpu_to_le16(LARGE_KEY_SIZE); in __orinoco_hw_setup_wepkeys()
838 keys[i].len = cpu_to_le16(SMALL_KEY_SIZE); in __orinoco_hw_setup_wepkeys()
840 keys[i].len = cpu_to_le16(0); in __orinoco_hw_setup_wepkeys()
1013 buf.idx = cpu_to_le16(key_idx); in __orinoco_hw_set_tkip_key()
1273 req[0] = cpu_to_le16(0x3fff); /* All channels */ in orinoco_hw_trigger_scan()
1274 req[1] = cpu_to_le16(0x0001); /* rate 1 Mbps */ in orinoco_hw_trigger_scan()
1285 idbuf.len = cpu_to_le16(len); in orinoco_hw_trigger_scan()
1339 buf.reason_code = cpu_to_le16(reason_code); in orinoco_hw_disassociate()
/linux-4.1.27/drivers/net/wireless/b43/
Dxmit.c286 (wlhdr->duration_id & cpu_to_le16(0x8000)) || in b43_generate_txhdr()
287 (wlhdr->duration_id == cpu_to_le16(0))) { in b43_generate_txhdr()
541 txhdr->phy_ctl1_rts = cpu_to_le16( in b43_generate_txhdr()
543 txhdr->phy_ctl1_rts_fb = cpu_to_le16( in b43_generate_txhdr()
551 txhdr->format_598.cookie = cpu_to_le16(cookie); in b43_generate_txhdr()
554 txhdr->format_351.cookie = cpu_to_le16(cookie); in b43_generate_txhdr()
557 txhdr->format_410.cookie = cpu_to_le16(cookie); in b43_generate_txhdr()
563 cpu_to_le16(b43_generate_tx_phy_ctl1(dev, rate)); in b43_generate_txhdr()
565 cpu_to_le16(b43_generate_tx_phy_ctl1(dev, rate_fb)); in b43_generate_txhdr()
570 txhdr->phy_ctl = cpu_to_le16(phy_ctl); in b43_generate_txhdr()
/linux-4.1.27/drivers/gpio/
Dgpio-dln2.c95 .pin = cpu_to_le16(pin), in dln2_gpio_pin_cmd()
105 .pin = cpu_to_le16(pin), in dln2_gpio_pin_val()
143 .pin = cpu_to_le16(pin), in dln2_gpio_pin_set_out_val()
158 .pin = cpu_to_le16(offset), in dln2_gpio_request()
239 .pin = cpu_to_le16(offset), in dln2_gpio_set_direction()
293 .pin = cpu_to_le16(pin), in dln2_gpio_set_event_cfg()
295 .period = cpu_to_le16(period), in dln2_gpio_set_event_cfg()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dmac.h67 hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG); in ath10k_tx_h_seq_no()
68 hdr->seq_ctrl |= cpu_to_le16(arvif->tx_seq_no); in ath10k_tx_h_seq_no()
/linux-4.1.27/fs/reiserfs/
Dreiserfs.h152 #define set_sb_blocksize(sbp,v) ((sbp)->s_v1.s_blocksize = cpu_to_le16(v))
154 #define set_sb_oid_maxsize(sbp,v) ((sbp)->s_v1.s_oid_maxsize = cpu_to_le16(v))
156 #define set_sb_oid_cursize(sbp,v) ((sbp)->s_v1.s_oid_cursize = cpu_to_le16(v))
158 #define set_sb_umount_state(sbp,v) ((sbp)->s_v1.s_umount_state = cpu_to_le16(v))
160 #define set_sb_fs_state(sbp,v) ((sbp)->s_v1.s_fs_state = cpu_to_le16(v))
166 #define set_sb_tree_height(sbp,v) ((sbp)->s_v1.s_tree_height = cpu_to_le16(v))
168 #define set_sb_bmap_nr(sbp,v) ((sbp)->s_v1.s_bmap_nr = cpu_to_le16(v))
170 #define set_sb_version(sbp,v) ((sbp)->s_v1.s_version = cpu_to_le16(v))
173 #define set_sb_mnt_count(sbp, v) ((sbp)->s_mnt_count = cpu_to_le16(v))
178 ((sbp)->s_v1.s_reserved_for_journal = cpu_to_le16(v))
[all …]
/linux-4.1.27/drivers/firewire/
Dohci.c676 d->res_count = cpu_to_le16(PAGE_SIZE); in ar_context_link_page()
751 if (next_res_count == cpu_to_le16(PAGE_SIZE)) { in ar_search_last_active_buffer()
764 if (next_res_count != cpu_to_le16(PAGE_SIZE)) in ar_search_last_active_buffer()
1024 d->req_count = cpu_to_le16(PAGE_SIZE); in ar_context_init()
1025 d->control = cpu_to_le16(DESCRIPTOR_INPUT_MORE | in ar_context_init()
1058 branch = d->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS); in find_branch_descriptor()
1061 if (z == 2 && branch == cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) in find_branch_descriptor()
1166 ctx->buffer_tail->buffer->control = cpu_to_le16(DESCRIPTOR_OUTPUT_LAST); in context_init()
1167 ctx->buffer_tail->buffer->transfer_status = cpu_to_le16(0x8011); in context_init()
1258 (ctx->prev->control & cpu_to_le16(DESCRIPTOR_CMD)) == in context_append()
[all …]
/linux-4.1.27/net/mac802154/
Dcfg.c122 if (pan_id == cpu_to_le16(IEEE802154_PAN_ID_BROADCAST)) in ieee802154_set_pan_id()
163 if (short_addr == cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC) || in ieee802154_set_short_addr()
164 short_addr == cpu_to_le16(IEEE802154_ADDR_SHORT_BROADCAST)) in ieee802154_set_short_addr()
Diface.c107 wpan_dev->pan_id = cpu_to_le16(sa->addr.pan_id); in mac802154_wpan_ioctl()
108 wpan_dev->short_addr = cpu_to_le16(sa->addr.short_addr); in mac802154_wpan_ioctl()
385 if (wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST) || in mac802154_header_create()
386 wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_UNDEF) || in mac802154_header_create()
387 wpan_dev->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in mac802154_header_create()
492 wpan_dev->pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST); in ieee802154_setup_sdata()
493 wpan_dev->short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); in ieee802154_setup_sdata()
Drx.c66 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
75 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
80 cpu_to_le16(IEEE802154_ADDR_BROADCAST)) in ieee802154_subif_frame()
/linux-4.1.27/fs/befs/
Dendian.h63 return (__force fs16)cpu_to_le16(n); in cpu_to_fs16()
94 run.start = cpu_to_le16(n.start); in cpu_to_fsrun()
95 run.len = cpu_to_le16(n.len); in cpu_to_fsrun()
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_sas_fusion.c663 IOCInitMessage->MsgVersion = cpu_to_le16(MPI2_VERSION); in megasas_ioc_init_fusion()
664 IOCInitMessage->HeaderVersion = cpu_to_le16(MPI2_HEADER_VERSION); in megasas_ioc_init_fusion()
665 IOCInitMessage->SystemRequestFrameSize = cpu_to_le16(MEGA_MPI2_RAID_DEFAULT_IO_FRAME_SIZE / 4); in megasas_ioc_init_fusion()
667 IOCInitMessage->ReplyDescriptorPostQueueDepth = cpu_to_le16(fusion->reply_q_depth); in megasas_ioc_init_fusion()
676 frame_hdr->flags |= cpu_to_le16(MFI_FRAME_DONT_POST_IN_REPLY_QUEUE); in megasas_ioc_init_fusion()
809 dcmd->flags = cpu_to_le16(MFI_FRAME_DIR_READ); in megasas_get_ld_map_info()
914 dcmd->flags = cpu_to_le16(MFI_FRAME_DIR_WRITE); in megasas_sync_map_info()
1349 io_request->IoFlags = cpu_to_le16(32); /* Specify 32-byte cdb */ in megasas_set_pd_lba()
1359 io_request->EEDPFlags = cpu_to_le16( in megasas_set_pd_lba()
1366 io_request->EEDPFlags = cpu_to_le16( in megasas_set_pd_lba()
[all …]
/linux-4.1.27/drivers/i2c/busses/
Di2c-viperboard.c128 rmsg->header.addr = cpu_to_le16(start + 0x4000); in vprbrd_i2c_read()
201 rmsg->header.tf1 = cpu_to_le16(len1); in vprbrd_i2c_read()
202 rmsg->header.tf2 = cpu_to_le16(len2); in vprbrd_i2c_read()
237 wmsg->header.addr = cpu_to_le16(start + 0x4000); in vprbrd_i2c_write()
300 amsg->len = cpu_to_le16(pmsg->len); in vprbrd_i2c_xfer()
325 amsg->len = cpu_to_le16(pmsg->len); in vprbrd_i2c_xfer()
/linux-4.1.27/drivers/media/usb/pwc/
Dpwc-uncompress.c51 raw_frame->type = cpu_to_le16(pdev->type); in pwc_decompress()
52 raw_frame->vbandlength = cpu_to_le16(pdev->vbandlength); in pwc_decompress()
/linux-4.1.27/drivers/uwb/
Die.c123 cmd->wCommand = cpu_to_le16(UWB_RC_CMD_GET_IE); in uwb_rc_get_ie()
213 uwb_rc->ies->rccb.wCommand = cpu_to_le16(UWB_RC_CMD_SET_IE); in uwb_rc_ie_setup()
261 rc->ies->wIELength = cpu_to_le16(length + new_ie_len); in uwb_rc_ie_add_one()
351 uwb_rc->ies->wIELength = cpu_to_le16(len); in uwb_rc_ie_cache_rm()
Dscan.c71 cmd->rccb.wCommand = cpu_to_le16(UWB_RC_CMD_SCAN); in uwb_rc_scan()
74 cmd->wStartTime = cpu_to_le16(bpst_offset); in uwb_rc_scan()
/linux-4.1.27/drivers/media/usb/gspca/
Dkinect.c151 chdr->cmd = cpu_to_le16(cmd); in send_cmd()
152 chdr->tag = cpu_to_le16(sd->cam_tag); in send_cmd()
153 chdr->len = cpu_to_le16(cmd_len / 2); in send_cmd()
217 cmd[0] = cpu_to_le16(reg); in write_register()
218 cmd[1] = cpu_to_le16(data); in write_register()
/linux-4.1.27/drivers/scsi/
D3w-sas.c328 cpu_to_le16(TW_REQ_LUN_IN(srb->device->lun, request_id)); in twl_scsiop_execute_scsi()
331 cpu_to_le16(TW_REQ_LUN_IN(0, request_id)); in twl_scsiop_execute_scsi()
348 …command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in twl_scsiop_execute_scsi()
356 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
429 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twl_aen_sync_time()
434 param->table_id = cpu_to_le16(TW_TIMEKEEP_TABLE | 0x8000); /* Controller time keep table */ in twl_aen_sync_time()
435 param->parameter_id = cpu_to_le16(0x3); /* SchedulerTime */ in twl_aen_sync_time()
436 param->parameter_size_bytes = cpu_to_le16(4); in twl_aen_sync_time()
695 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->request_id__lunl), request_id)); in twl_load_sgl()
701 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->sgl_entries__lunh), length ? 1 : 0)); in twl_load_sgl()
[all …]
D3w-9xxx.c494 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twa_aen_sync_time()
499 param->table_id = cpu_to_le16(TW_TIMEKEEP_TABLE | 0x8000); /* Controller time keep table */ in twa_aen_sync_time()
500 param->parameter_id = cpu_to_le16(0x3); /* SchedulerTime */ in twa_aen_sync_time()
501 param->parameter_size_bytes = cpu_to_le16(4); in twa_aen_sync_time()
1070 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twa_get_param()
1075 param->table_id = cpu_to_le16(table_id | 0x8000); in twa_get_param()
1076 param->parameter_id = cpu_to_le16(parameter_id); in twa_get_param()
1077 param->parameter_size_bytes = cpu_to_le16(parameter_size_bytes); in twa_get_param()
1129 tw_initconnect->message_credits = cpu_to_le16(message_credits); in twa_initconnection()
1139 tw_initconnect->fw_srl = cpu_to_le16(current_fw_srl); in twa_initconnection()
[all …]
Dstex.c426 dst->sg_count = cpu_to_le16((u16)nseg); in stex_map_sg()
427 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_map_sg()
458 dst->sg_count = cpu_to_le16((u16)nseg); in stex_ss_map_sg()
459 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_ss_map_sg()
505 req->tag = cpu_to_le16(tag); in stex_send_cmd()
522 req->tag = cpu_to_le16(tag); in stex_ss_send_cmd()
531 msg_h->timeout = cpu_to_le16(cmd->request->timeout/HZ); in stex_ss_send_cmd()
1001 h->req_sz = cpu_to_le16(hba->rq_size); in stex_common_handshake()
1002 h->req_cnt = cpu_to_le16(hba->rq_count+1); in stex_common_handshake()
1003 h->status_sz = cpu_to_le16(sizeof(struct status_msg)); in stex_common_handshake()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dwmi.c263 data_hdr->info3 |= cpu_to_le16(WMI_DATA_HDR_EOSP); in ath6kl_wmi_data_hdr_add()
265 data_hdr->info2 |= cpu_to_le16(meta_ver << WMI_DATA_HDR_META_SHIFT); in ath6kl_wmi_data_hdr_add()
266 data_hdr->info3 |= cpu_to_le16(if_idx & WMI_DATA_HDR_IF_IDX_MASK); in ath6kl_wmi_data_hdr_add()
403 sub_type = pwh->frame_control & cpu_to_le16(IEEE80211_FCTL_STYPE); in ath6kl_wmi_dot11_hdr_remove()
408 if (sub_type == cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) { in ath6kl_wmi_dot11_hdr_remove()
412 } else if (sub_type == cpu_to_le16(IEEE80211_STYPE_DATA)) { in ath6kl_wmi_dot11_hdr_remove()
772 cmd->info.params.lrssi_scan_period = cpu_to_le16(DEF_LRSSI_SCAN_PERIOD); in ath6kl_wmi_set_roam_lrssi_cmd()
1814 cmd_hdr->cmd_id = cpu_to_le16(cmd_id); in ath6kl_wmi_cmd_send()
1816 cmd_hdr->info1 = cpu_to_le16(info1); in ath6kl_wmi_cmd_send()
1890 cc->ch = cpu_to_le16(channel); in ath6kl_wmi_connect_cmd()
[all …]
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_softmac.c244 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4); in softmac_mgmt_xmit()
262 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_mgmt_xmit()
298 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_ps_mgmt_xmit()
311 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_ps_mgmt_xmit()
343 req->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); in ieee80211_probe_req()
680 auth->transaction = cpu_to_le16(ieee->associate_seq); in ieee80211_authentication_req()
683 auth->status = cpu_to_le16(WLAN_STATUS_SUCCESS); in ieee80211_authentication_req()
773 cpu_to_le16(ieee->current_network.beacon_interval); in ieee80211_probe_resp()
775 cpu_to_le16(ieee->current_network.capability & WLAN_CAPABILITY_IBSS); in ieee80211_probe_resp()
777cpu_to_le16(ieee->current_network.capability & WLAN_CAPABILITY_SHORT_PREAMBLE); //add short preamb… in ieee80211_probe_resp()
[all …]
/linux-4.1.27/drivers/usb/host/
Dfhci-hub.c278 cpu_to_le16(fhci->vroot_hub->hub.wHubStatus); in fhci_hub_control()
280 cpu_to_le16(fhci->vroot_hub->hub.wHubChange); in fhci_hub_control()
285 cpu_to_le16(fhci->vroot_hub->port.wPortStatus); in fhci_hub_control()
287 cpu_to_le16(fhci->vroot_hub->port.wPortChange); in fhci_hub_control()
Dohci-s3c2410.c251 desc->wHubCharacteristics &= ~cpu_to_le16(HUB_CHAR_LPSM); in ohci_s3c2410_hub_control()
252 desc->wHubCharacteristics |= cpu_to_le16( in ohci_s3c2410_hub_control()
256 desc->wHubCharacteristics &= ~cpu_to_le16( in ohci_s3c2410_hub_control()
258 desc->wHubCharacteristics |= cpu_to_le16( in ohci_s3c2410_hub_control()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dwmi.c183 .len = cpu_to_le16(sizeof(cmd.wmi) + len), in __wmi_send()
187 .id = cpu_to_le16(cmdid), in __wmi_send()
246 cmd.hdr.seq = cpu_to_le16(++wil->wmi_seq); in __wmi_send()
866 .bcon_interval = cpu_to_le16(bi), in wmi_pcp_start()
1032 cmd->ie_len = cpu_to_le16(ie_len); in wmi_set_ie()
1079 .max_mpdu_size = cpu_to_le16(wil_mtu2macbuf(mtu_max)), in wmi_rx_chain_add()
1081 .ring_size = cpu_to_le16(vring->size), in wmi_rx_chain_add()
1086 .host_thrsh = cpu_to_le16(rx_ring_overflow_thrsh), in wmi_rx_chain_add()
1163 .disconnect_reason = cpu_to_le16(reason), in wmi_disconnect_sta()
1178 .ba_timeout = cpu_to_le16(timeout), in wmi_addba()
[all …]
Dtxrx.c245 d->dma.length = cpu_to_le16(sz); in wil_vring_alloc_skb()
329 rtap_vendor->rtap.rthdr.it_len = cpu_to_le16(rtap_len); in wil_rx_add_radiotap_header()
337 rtap_vendor->rtap.chnl_freq = cpu_to_le16(ch ? ch->center_freq : 58320); in wil_rx_add_radiotap_header()
338 rtap_vendor->rtap.chnl_flags = cpu_to_le16(0); in wil_rx_add_radiotap_header()
353 rtap_vendor->vendor_skip = cpu_to_le16(sizeof(*d) + in wil_rx_add_radiotap_header()
684 cpu_to_le16(wil_mtu2macbuf(mtu_max)), in wil_vring_init_tx()
685 .ring_size = cpu_to_le16(size), in wil_vring_init_tx()
694 .priority = cpu_to_le16(0), in wil_vring_init_tx()
695 .timeslot_us = cpu_to_le16(0xfff), in wil_vring_init_tx()
760 cpu_to_le16(wil_mtu2macbuf(mtu_max)), in wil_vring_init_bcast()
[all …]
/linux-4.1.27/drivers/usb/gadget/
Depautoconf.c131 desc->wMaxPacketSize = cpu_to_le16(ep->maxpacket_limit); in ep_matches()
153 if ((desc->wMaxPacketSize & cpu_to_le16(3<<11))) { in ep_matches()
185 desc->wMaxPacketSize = cpu_to_le16(size); in ep_matches()
/linux-4.1.27/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c245 prc->sel_mask = cpu_to_le16(PUCAN_WRERRCNT_TE|PUCAN_WRERRCNT_RE); in pcan_usb_fd_build_restart_cmd()
264 puo->options = cpu_to_le16(PUCAN_OPTION_CANDFDISO); in pcan_usb_fd_build_restart_cmd()
337 cmd->idx = cpu_to_le16(i); in pcan_usb_fd_set_filter_std()
359 cmd->ucan_mask = cpu_to_le16(ucan_mask); in pcan_usb_fd_set_options()
360 cmd->usb_mask = cpu_to_le16(usb_mask); in pcan_usb_fd_set_options()
406 cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(bt->brp - 1)); in pcan_usb_fd_set_bittiming_slow()
425 cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(bt->brp - 1)); in pcan_usb_fd_set_bittiming_fast()
729 tx_msg->size = cpu_to_le16(tx_msg_size); in pcan_usb_fd_encode_msg()
730 tx_msg->type = cpu_to_le16(PUCAN_MSG_CAN_TX); in pcan_usb_fd_encode_msg()
759 tx_msg->flags = cpu_to_le16(tx_msg_flags); in pcan_usb_fd_encode_msg()
/linux-4.1.27/drivers/net/irda/
Dks959-sir.c309 kingsun->tx_setuprequest->wValue = cpu_to_le16(wraplen); in ks959_submit_tx_fragment()
310 kingsun->tx_setuprequest->wLength = cpu_to_le16(padlen); in ks959_submit_tx_fragment()
735 kingsun->rx_setuprequest->wValue = cpu_to_le16(0x0200); in ks959_probe()
737 kingsun->rx_setuprequest->wLength = cpu_to_le16(KINGSUN_RCV_FIFO_SIZE); in ks959_probe()
767 kingsun->speed_setuprequest->wValue = cpu_to_le16(0x0200); in ks959_probe()
768 kingsun->speed_setuprequest->wIndex = cpu_to_le16(0x0001); in ks959_probe()
770 cpu_to_le16(sizeof(struct ks959_speedparams)); in ks959_probe()
/linux-4.1.27/drivers/staging/wlan-ng/
Dhfa384x_usb.c1363 ctlx->outbuf.cmdreq.type = cpu_to_le16(HFA384x_USB_CMDREQ); in hfa384x_docmd()
1364 ctlx->outbuf.cmdreq.cmd = cpu_to_le16(cmd->cmd); in hfa384x_docmd()
1365 ctlx->outbuf.cmdreq.parm0 = cpu_to_le16(cmd->parm0); in hfa384x_docmd()
1366 ctlx->outbuf.cmdreq.parm1 = cpu_to_le16(cmd->parm1); in hfa384x_docmd()
1367 ctlx->outbuf.cmdreq.parm2 = cpu_to_le16(cmd->parm2); in hfa384x_docmd()
1453 ctlx->outbuf.rridreq.type = cpu_to_le16(HFA384x_USB_RRIDREQ); in hfa384x_dorrid()
1455 cpu_to_le16(sizeof(ctlx->outbuf.rridreq.rid)); in hfa384x_dorrid()
1456 ctlx->outbuf.rridreq.rid = cpu_to_le16(rid); in hfa384x_dorrid()
1534 ctlx->outbuf.wridreq.type = cpu_to_le16(HFA384x_USB_WRIDREQ); in hfa384x_dowrid()
1535 ctlx->outbuf.wridreq.frmlen = cpu_to_le16((sizeof in hfa384x_dowrid()
[all …]
Dp80211conv.c176 fc = cpu_to_le16(WLAN_SET_FC_FTYPE(WLAN_FTYPE_DATA) | in skb_ether_to_p80211()
186 fc |= cpu_to_le16(WLAN_SET_FC_TODS(1)); in skb_ether_to_p80211()
192 fc |= cpu_to_le16(WLAN_SET_FC_FROMDS(1)); in skb_ether_to_p80211()
220 fc |= cpu_to_le16(WLAN_SET_FC_ISWEP(1)); in skb_ether_to_p80211()
/linux-4.1.27/include/linux/byteorder/
Dgeneric.h89 #define cpu_to_le16 __cpu_to_le16 macro
145 *var = cpu_to_le16(le16_to_cpu(*var) + val); in le16_add_cpu()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_mlme_ext.c2396 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); in issue_beacon23a()
2551 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_RESP); in issue_probersp()
2557 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); in issue_probersp()
2705 pwlanhdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in _issue_probereq()
2721 cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); in _issue_probereq()
2852 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_AUTH); in issue_auth()
2853 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); in issue_auth()
2875 mgmt->u.auth.auth_alg = cpu_to_le16(val16); in issue_auth()
2879 cpu_to_le16((u16)psta->auth_seq); in issue_auth()
2882 mgmt->u.auth.status_code = cpu_to_le16(status); in issue_auth()
[all …]
/linux-4.1.27/drivers/usb/wusbcore/
Dcbaf.c238 .AssociationTypeId = cpu_to_le16(AR_TYPE_WUSB),
240 .AssociationSubTypeId = cpu_to_le16(AR_TYPE_WUSB_RETRIEVE_HOST_INFO),
260 hi->HostFriendlyName_hdr.len = cpu_to_le16(name_len); in cbaf_send_host_info()
496 .AssociationTypeId = cpu_to_le16(AR_TYPE_WUSB),
498 .AssociationSubTypeId = cpu_to_le16(AR_TYPE_WUSB_ASSOCIATE),
527 ccd->BandGroups = cpu_to_le16(cbaf->host_band_groups); in cbaf_cc_upload()
Drh.c187 descr->wHubCharacteristics = cpu_to_le16( in wusbhc_rh_get_hub_descr()
348 buf[0] = cpu_to_le16(wusb_port_by_idx(wusbhc, port_idx)->status); in wusbhc_rh_get_port_status()
349 buf[1] = cpu_to_le16(wusb_port_by_idx(wusbhc, port_idx)->change); in wusbhc_rh_get_port_status()
/linux-4.1.27/drivers/tty/serial/
Dicom.c238 (unsigned short int) cpu_to_le16(XMIT_BUFF_SZ); in get_port_memory()
247 (unsigned short int) cpu_to_le16(XMIT_BUFF_SZ); in get_port_memory()
265 (unsigned short int) cpu_to_le16(RCV_BUFF_SZ); in get_port_memory()
640 if (cpu_to_le16(ICOM_PORT->statStg->xmit[0].flags) & in icom_write()
659 cpu_to_le16(SA_FLAGS_READY_TO_XMIT); in icom_write()
661 cpu_to_le16(data_count); in icom_write()
720 cpu_to_le16(~SA_FLAGS_READY_TO_XMIT); in xmit_interrupt()
723 cpu_to_le16(icom_port->statStg->xmit[0].leLength); in xmit_interrupt()
753 status = cpu_to_le16(icom_port->statStg->rcv[rcv_buff].flags); in recv_interrupt()
758 count = cpu_to_le16(icom_port->statStg->rcv[rcv_buff].leLength); in recv_interrupt()
[all …]
/linux-4.1.27/fs/ocfs2/
Dblockcheck.c409 bc->bc_ecc = cpu_to_le16((u16)ecc); in ocfs2_block_check_compute()
464 bc->bc_ecc = cpu_to_le16(bc_ecc); in ocfs2_block_check_validate()
515 bc->bc_ecc = cpu_to_le16((u16)ecc); in ocfs2_block_check_compute_bhs()
595 bc->bc_ecc = cpu_to_le16(bc_ecc); in ocfs2_block_check_validate_bhs()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.c861 cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
879 cpu_to_le16(elem->cmd_data.vlan_mac. in bnx2x_set_one_mac_e2()
909 hdr->client_id = cpu_to_le16(0xff); in bnx2x_vlan_mac_set_rdata_hdr_e1x()
923 cfg_entry->vlan_id = cpu_to_le16(vlan_id); in bnx2x_vlan_mac_set_cfg_entry_e1x()
1015 rule_entry->vlan.vlan = cpu_to_le16(vlan); in bnx2x_set_one_vlan_e2()
1029 rule_entry->vlan.vlan = cpu_to_le16(vlan); in bnx2x_set_one_vlan_e2()
2194 cmd->state = cpu_to_le16(state); in bnx2x_rx_mode_set_cmd_state_e2()
3239 data->hdr.client_id = cpu_to_le16(0xff); in bnx2x_mcast_set_rdata_hdr_e1()
4073 data->capabilities = cpu_to_le16(caps); in bnx2x_setup_rss()
4330 gen_data->mtu = cpu_to_le16(params->mtu); in bnx2x_q_fill_init_general_data()
[all …]
/linux-4.1.27/net/decnet/
Ddn_nsp_out.c327 *ptr++ = cpu_to_le16(acknum); in dn_mk_ack_header()
328 *ptr++ = cpu_to_le16(ackcrs); in dn_mk_ack_header()
346 *(ptr++) = cpu_to_le16(cb->segnum); in dn_nsp_mk_data_header()
531 msg->segsize = cpu_to_le16(scp->segsize_loc); in dn_send_conn_conf()
570 *(__le16 *)msg = cpu_to_le16(reason); in dn_nsp_do_disc()
673 msg->segsize = cpu_to_le16(scp->segsize_loc); /* Max segment size */ in dn_nsp_send_conninit()
Ddn_neigh.c234 *((__le16 *)data) = cpu_to_le16(skb->len - 2); in dn_long_output()
279 *((__le16 *)data) = cpu_to_le16(skb->len - 2); in dn_short_output()
320 *((__le16 *)data) = cpu_to_le16(skb->len - 2); in dn_phase3_output()
324 sp->dstnode = cb->dst & cpu_to_le16(0x03ff); in dn_phase3_output()
325 sp->srcnode = cb->src & cpu_to_le16(0x03ff); in dn_phase3_output()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Dtx.c422 if (super->f.mac_control & cpu_to_le16(AR9170_TX_MAC_IMM_BA)) { in carl9170_tx_status_process_ampdu()
919 __le16 mac_tmp = cpu_to_le16(0); in carl9170_tx_apply_rateset()
925 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_AGGR); in carl9170_tx_apply_rateset()
928 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_PROT_RTS); in carl9170_tx_apply_rateset()
930 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_PROT_CTS); in carl9170_tx_apply_rateset()
1011 mac_tmp = cpu_to_le16(AR9170_TX_MAC_HW_DURATION | in carl9170_tx_prepare()
1013 mac_tmp |= cpu_to_le16((hw_queue << AR9170_TX_MAC_QOS_S) & in carl9170_tx_prepare()
1017 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_NO_ACK); in carl9170_tx_prepare()
1026 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_ENCR_RC4); in carl9170_tx_prepare()
1029 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_ENCR_AES); in carl9170_tx_prepare()
[all …]
Dmac.c484 key.user = cpu_to_le16(id); in carl9170_upload_key()
485 key.keyId = cpu_to_le16(keyidx); in carl9170_upload_key()
486 key.type = cpu_to_le16(ktype); in carl9170_upload_key()
499 key.user = cpu_to_le16(id); in carl9170_disable_key()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ctx.c293 prq->valid_field_offset = cpu_to_le16(temp_u16); in qlcnic_82xx_fw_cmd_create_rx_ctx()
303 prq->num_rds_rings = cpu_to_le16(nrds_rings); in qlcnic_82xx_fw_cmd_create_rx_ctx()
304 prq->num_sds_rings = cpu_to_le16(nsds_rings); in qlcnic_82xx_fw_cmd_create_rx_ctx()
334 prq_sds[i].msi_index = cpu_to_le16(ahw->intr_tbl[i].id); in qlcnic_82xx_fw_cmd_create_rx_ctx()
336 prq_sds[i].msi_index = cpu_to_le16(i); in qlcnic_82xx_fw_cmd_create_rx_ctx()
469 prq->msi_index = cpu_to_le16(msix_id); in qlcnic_82xx_fw_cmd_create_tx_ctx()
917 nic_info->pci_func = cpu_to_le16(nic->pci_func); in qlcnic_82xx_set_nic_info()
918 nic_info->op_mode = cpu_to_le16(nic->op_mode); in qlcnic_82xx_set_nic_info()
919 nic_info->phys_port = cpu_to_le16(nic->phys_port); in qlcnic_82xx_set_nic_info()
920 nic_info->switch_mode = cpu_to_le16(nic->switch_mode); in qlcnic_82xx_set_nic_info()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/
De100.c784 return cpu_to_le16(data); in e100_eeprom_read()
804 if (cpu_to_le16(0xBABA - checksum) != nic->eeprom[nic->eeprom_wc - 1]) { in e100_eeprom_load()
832 nic->eeprom[nic->eeprom_wc - 1] = cpu_to_le16(0xBABA - checksum); in e100_eeprom_save()
901 cb->command |= cpu_to_le16(cb_s); in e100_exec_cb()
903 cb->prev->command &= cpu_to_le16(~cb_s); in e100_exec_cb()
1081 nic->tx_command = cpu_to_le16(cb_tx | cb_tx_sf | in e100_get_defaults()
1087 nic->blank_rfd.size = cpu_to_le16(VLAN_ETH_FRAME_LEN + ETH_FCS_LEN); in e100_get_defaults()
1103 cb->command = cpu_to_le16(cb_config); in e100_configure()
1361 cb->command = cpu_to_le16(cb_ucode | cb_el); in e100_setup_ucode()
1388 while (!(cb->status & cpu_to_le16(cb_complete))) { in e100_load_ucode_wait()
[all …]
/linux-4.1.27/include/net/
Ddn_fib.h161 return cpu_to_le16(~((1 << (16 - n)) - 1)); in dnet_make_mask()
162 return cpu_to_le16(0); in dnet_make_mask()
/linux-4.1.27/drivers/usb/gadget/udc/bdc/
Dbdc_udc.c61 .wMaxPacketSize = cpu_to_le16(EP0_MAX_PKT_SIZE),
90 cpu_to_le16(EP0_MAX_PKT_SIZE); in bdc_uspc_connected()
102 bdc_gadget_ep0_desc.wMaxPacketSize = cpu_to_le16(64); in bdc_uspc_connected()
108 bdc_gadget_ep0_desc.wMaxPacketSize = cpu_to_le16(64); in bdc_uspc_connected()
114 bdc_gadget_ep0_desc.wMaxPacketSize = cpu_to_le16(8); in bdc_uspc_connected()
/linux-4.1.27/drivers/net/wireless/b43legacy/
Dxmit.c222 (wlhdr->duration_id & cpu_to_le16(0x8000)) || in generate_txhdr_fw3()
223 (wlhdr->duration_id == cpu_to_le16(0))) { in generate_txhdr_fw3()
349 txhdr->cookie = cpu_to_le16(cookie); in generate_txhdr_fw3()
353 txhdr->phy_ctl = cpu_to_le16(phy_ctl); in generate_txhdr_fw3()
497 fctl &= ~cpu_to_le16(IEEE80211_FCTL_PROTECTED); in b43legacy_rx()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dampdu.c618 txh->MacTxControlLow = cpu_to_le16(mcl); in brcms_c_ampdu_add_frame()
669 txh->MacTxControlLow = cpu_to_le16(mcl); in brcms_c_ampdu_finalize()
704 txh->MacTxControlLow = cpu_to_le16(mcl); in brcms_c_ampdu_finalize()
759 txh->MModeLen = cpu_to_le16(mmodelen); in brcms_c_ampdu_finalize()
765 txh->MModeFbrLen = cpu_to_le16(mmfbrlen); in brcms_c_ampdu_finalize()
772 txh->PreloadSize = cpu_to_le16(dma_len); in brcms_c_ampdu_finalize()
794 rts->duration = cpu_to_le16(durid); in brcms_c_ampdu_finalize()
801 txh->RTSDurFallback = cpu_to_le16(durid); in brcms_c_ampdu_finalize()
811 txh->MacTxControlHigh = cpu_to_le16(mch); in brcms_c_ampdu_finalize()
/linux-4.1.27/fs/nilfs2/
Dsuper.c88 sbp[0]->s_state |= cpu_to_le16(NILFS_ERROR_FS); in nilfs_set_error()
90 sbp[1]->s_state |= cpu_to_le16(NILFS_ERROR_FS); in nilfs_set_error()
271 if (sbp[0]->s_magic != cpu_to_le16(NILFS_SUPER_MAGIC)) { in nilfs_prepare_super()
273 sbp[1]->s_magic == cpu_to_le16(NILFS_SUPER_MAGIC)) { in nilfs_prepare_super()
281 sbp[1]->s_magic != cpu_to_le16(NILFS_SUPER_MAGIC)) { in nilfs_prepare_super()
336 sbp[0]->s_state = cpu_to_le16(nilfs->ns_mount_state); in nilfs_cleanup_super()
458 sbp[0]->s_state = cpu_to_le16(le16_to_cpu(sbp[0]->s_state) & in nilfs_resize_fs()
843 sbp[0]->s_max_mnt_count = cpu_to_le16(NILFS_DFL_MAX_MNT_COUNT); in nilfs_setup_super()
845 sbp[0]->s_mnt_count = cpu_to_le16(mnt_count + 1); in nilfs_setup_super()
850 cpu_to_le16(le16_to_cpu(sbp[0]->s_state) & ~NILFS_VALID_FS); in nilfs_setup_super()
/linux-4.1.27/fs/exofs/
Ddir.c463 de->rec_len = cpu_to_le16(chunk_size); in exofs_add_link()
503 de1->rec_len = cpu_to_le16(rec_len - name_len); in exofs_add_link()
504 de->rec_len = cpu_to_le16(name_len); in exofs_add_link()
559 pde->rec_len = cpu_to_le16(to - from); in exofs_delete_entry()
597 de->rec_len = cpu_to_le16(EXOFS_DIR_REC_LEN(1)); in exofs_make_empty()
604 de->rec_len = cpu_to_le16(chunk_size - EXOFS_DIR_REC_LEN(1)); in exofs_make_empty()
/linux-4.1.27/drivers/vfio/pci/
Dvfio_pci_config.c371 *(__le16 *)(&p->virt[off]) = cpu_to_le16(virt); in p_setw()
372 *(__le16 *)(&p->write[off]) = cpu_to_le16(write); in p_setw()
545 *virt_cmd &= cpu_to_le16(~mask); in vfio_basic_config_write()
546 *virt_cmd |= cpu_to_le16(new_cmd & mask); in vfio_basic_config_write()
857 *flags &= cpu_to_le16(~PCI_MSI_FLAGS_QMASK); in vfio_msi_config_read()
858 *flags |= cpu_to_le16(vdev->msi_qmax << 1); in vfio_msi_config_read()
895 *pflags = cpu_to_le16(flags); in vfio_msi_config_write()
1185 *wordp = cpu_to_le16(word); in vfio_fill_vconfig_bytes()
1280 *vstatus &= ~cpu_to_le16(PCI_STATUS_CAP_LIST); in vfio_cap_init()
1448 *(__le16 *)&vconfig[PCI_VENDOR_ID] = cpu_to_le16(pdev->vendor); in vfio_config_init()
[all …]
/linux-4.1.27/net/wireless/
Dutil.c371 if ((fc & cpu_to_le16(0x00E0)) == cpu_to_le16(0x00C0)) in ieee80211_hdrlen()
439 cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) { in ieee80211_data_to_8023()
440 case cpu_to_le16(IEEE80211_FCTL_TODS): in ieee80211_data_to_8023()
446 case cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS): in ieee80211_data_to_8023()
471 case cpu_to_le16(IEEE80211_FCTL_FROMDS): in ieee80211_data_to_8023()
493 case cpu_to_le16(0): in ieee80211_data_to_8023()
551 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); in ieee80211_data_from_8023()
557 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_data_from_8023()
566 fc |= cpu_to_le16(IEEE80211_FCTL_TODS); in ieee80211_data_from_8023()
586 fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA); in ieee80211_data_from_8023()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
Dcmd.c193 vbm->len = cpu_to_le16(bitmap_len + 5); in wl1251_cmd_vbm()
408 cmd->size = cpu_to_le16(buf_len); in wl1251_cmd_template_set()
450 cmd->params.scan_options |= cpu_to_le16(WL1251_SCAN_OPT_PRIORITY_HIGH); in wl1251_cmd_scan()
453 cmd->params.tx_rate = cpu_to_le16(1 << 1); /* 2 Mbps */ in wl1251_cmd_scan()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dbase.c217 ht_cap->mcs.rx_highest = cpu_to_le16(MAX_BIT_RATE_40MHZ_MCS15); in _rtl_init_hw_ht_capab()
228 cpu_to_le16(MAX_BIT_RATE_40MHZ_MCS15); in _rtl_init_hw_ht_capab()
237 cpu_to_le16(MAX_BIT_RATE_40MHZ_MCS7); in _rtl_init_hw_ht_capab()
276 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
278 cpu_to_le16(MAX_BIT_RATE_SHORT_GI_2NSS_80MHZ_MCS9); in _rtl_init_hw_vht_capab()
279 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
281 cpu_to_le16(MAX_BIT_RATE_SHORT_GI_2NSS_80MHZ_MCS9); in _rtl_init_hw_vht_capab()
310 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
312 cpu_to_le16(MAX_BIT_RATE_SHORT_GI_1NSS_80MHZ_MCS9); in _rtl_init_hw_vht_capab()
313 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dvga.h28 *addr = cpu_to_le16(val); in scr_writew()
/linux-4.1.27/arch/mips/include/asm/mach-ip27/
Dmangle-port.h19 # define __mem_ioswabw(a, x) cpu_to_le16(x)
/linux-4.1.27/arch/mips/include/asm/mach-ip32/
Dmangle-port.h20 # define __mem_ioswabw(a, x) cpu_to_le16(x)

12345