Home
last modified time | relevance | path

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

12345

/linux-4.4.14/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.4.14/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.4.14/drivers/net/wireless/mwifiex/
Dsta_cmd.c50 cmd->command = cpu_to_le16(HostCmd_CMD_RSSI_INFO); in mwifiex_cmd_802_11_rssi_info()
51 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_rssi_info) + in mwifiex_cmd_802_11_rssi_info()
53 cmd->params.rssi_info.action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_rssi_info()
54 cmd->params.rssi_info.ndata = cpu_to_le16(priv->data_avg_factor); in mwifiex_cmd_802_11_rssi_info()
55 cmd->params.rssi_info.nbcn = cpu_to_le16(priv->bcn_avg_factor); in mwifiex_cmd_802_11_rssi_info()
89 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_CONTROL); in mwifiex_cmd_mac_control()
91 cpu_to_le16(sizeof(struct host_cmd_ds_mac_control) + S_DS_GEN); in mwifiex_cmd_mac_control()
92 mac_ctrl->action = cpu_to_le16(*action); in mwifiex_cmd_mac_control()
121 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SNMP_MIB); in mwifiex_cmd_802_11_snmp_mib()
122 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()
335 tlv_akmp->header.type = cpu_to_le16(TLV_TYPE_UAP_AKMP); in mwifiex_uap_bss_wpa()
336 tlv_akmp->header.len = cpu_to_le16(sizeof(struct host_cmd_tlv_akmp) - in mwifiex_uap_bss_wpa()
338 tlv_akmp->key_mgmt_operation = cpu_to_le16(bss_cfg->key_mgmt_operation); in mwifiex_uap_bss_wpa()
339 tlv_akmp->key_mgmt = cpu_to_le16(bss_cfg->key_mgmt); in mwifiex_uap_bss_wpa()
345 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); in mwifiex_uap_bss_wpa()
347 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - in mwifiex_uap_bss_wpa()
349 pwk_cipher->proto = cpu_to_le16(PROTOCOL_WPA); in mwifiex_uap_bss_wpa()
357 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); in mwifiex_uap_bss_wpa()
359 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()
256 ie_header.type = cpu_to_le16(TLV_TYPE_MGMT_IE); in mwifiex_cmd_append_wps_ie()
257 ie_header.len = cpu_to_le16(priv->wps_ie_len); in mwifiex_cmd_append_wps_ie()
303 ie_header.type = cpu_to_le16(TLV_TYPE_WAPI_IE); in mwifiex_cmd_append_wapi_ie()
304 ie_header.len = cpu_to_le16(priv->wapi_ie_len); in mwifiex_cmd_append_wapi_ie()
340 rsn_ie_tlv->header.type = cpu_to_le16((u16) priv->wpa_ie[0]); in mwifiex_append_rsn_ie_wpa_wpa2()
341 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()
223 cmd->command = cpu_to_le16(HostCmd_CMD_RECONFIGURE_TX_BUFF); in mwifiex_cmd_recfg_tx_buf()
225 cpu_to_le16(sizeof(struct host_cmd_ds_txbuf_cfg) + S_DS_GEN); in mwifiex_cmd_recfg_tx_buf()
226 tx_buf->action = cpu_to_le16(action); in mwifiex_cmd_recfg_tx_buf()
231 tx_buf->buff_size = cpu_to_le16(*buf_size); in mwifiex_cmd_recfg_tx_buf()
257 cmd->command = cpu_to_le16(HostCmd_CMD_AMSDU_AGGR_CTRL); in mwifiex_cmd_amsdu_aggr_ctrl()
258 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_amsdu_aggr_ctrl) in mwifiex_cmd_amsdu_aggr_ctrl()
260 amsdu_ctrl->action = cpu_to_le16(action); in mwifiex_cmd_amsdu_aggr_ctrl()
[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 …]
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()
385 gen_ie->ie_index = cpu_to_le16(gen_idx); in mwifiex_uap_parse_tail_ies()
386 gen_ie->mgmt_subtype_mask = cpu_to_le16(MGMT_MASK_BEACON | in mwifiex_uap_parse_tail_ies()
389 gen_ie->ie_length = cpu_to_le16(ie_len); in mwifiex_uap_parse_tail_ies()
431 gen_ie->ie_index = cpu_to_le16(priv->gen_idx); in mwifiex_del_mgmt_ies()
[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.c177 host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO in mwifiex_dnld_cmd_to_fw()
283 cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO in mwifiex_dnld_sleep_confirm_cmd()
566 cmd_ptr->command = cpu_to_le16(cmd_no); in mwifiex_send_cmd()
769 cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH))) { in mwifiex_exec_next_cmd()
832 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK); in mwifiex_process_cmdresp()
1196 if (phs_cfg->action == cpu_to_le16(HS_ACTIVATE) && in mwifiex_ret_802_11_hs_cfg()
1301 cmd->command = cpu_to_le16(command); in mwifiex_process_sleep_confirm_resp()
1302 cmd->seq_num = cpu_to_le16(seq_num); in mwifiex_process_sleep_confirm_resp()
1328 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_PS_MODE_ENH); in mwifiex_cmd_enh_power_mode()
1330 psmode_enh->action = cpu_to_le16(DIS_AUTO_PS); in mwifiex_cmd_enh_power_mode()
[all …]
Dscan.c519 cpu_to_le16((u16) user_scan_in-> in mwifiex_scan_create_channel_list()
523 cpu_to_le16(adapter->passive_scan_time); in mwifiex_scan_create_channel_list()
526 cpu_to_le16(adapter->active_scan_time); in mwifiex_scan_create_channel_list()
539 cpu_to_le16(adapter->specific_scan_time); in mwifiex_scan_create_channel_list()
574 rates_tlv->header.type = cpu_to_le16(WLAN_EID_SUPP_RATES); in mwifiex_append_rate_tlv()
575 rates_tlv->header.len = cpu_to_le16((u16) rates_size); in mwifiex_append_rate_tlv()
620 chan_tlv_out->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); in mwifiex_scan_channel_list()
882 bssid_tlv->header.type = cpu_to_le16(TLV_TYPE_BSSID); in mwifiex_config_scan()
883 bssid_tlv->header.len = cpu_to_le16(ETH_ALEN); in mwifiex_config_scan()
896 cpu_to_le16(TLV_TYPE_WILDCARDSSID); in mwifiex_config_scan()
[all …]
D11n_rxreorder.c434 cmd->command = cpu_to_le16(HostCmd_CMD_11N_ADDBA_REQ); in mwifiex_cmd_11n_addba_req()
435 cmd->size = cpu_to_le16(sizeof(*add_ba_req) + S_DS_GEN); in mwifiex_cmd_11n_addba_req()
481 cmd->command = cpu_to_le16(HostCmd_CMD_11N_ADDBA_RSP); in mwifiex_cmd_11n_addba_rsp_gen()
482 cmd->size = cpu_to_le16(sizeof(*add_ba_rsp) + S_DS_GEN); in mwifiex_cmd_11n_addba_rsp_gen()
493 add_ba_rsp->status_code = cpu_to_le16(ADDBA_RSP_STATUS_ACCEPT); in mwifiex_cmd_11n_addba_rsp_gen()
501 add_ba_rsp->block_ack_param_set = cpu_to_le16(block_ack_param_set); in mwifiex_cmd_11n_addba_rsp_gen()
505 cmd_addba_req->block_ack_param_set = cpu_to_le16(block_ack_param_set); in mwifiex_cmd_11n_addba_rsp_gen()
525 cmd->command = cpu_to_le16(HostCmd_CMD_11N_DELBA); in mwifiex_cmd_11n_delba()
526 cmd->size = cpu_to_le16(sizeof(*del_ba) + S_DS_GEN); in mwifiex_cmd_11n_delba()
773 cpu_to_le16((u16) event->tid << DELBA_TID_POS); in mwifiex_11n_ba_stream_timeout()
[all …]
Dsta_tx.c74 local_tx_pd->tx_pkt_length = cpu_to_le16((u16)(skb->len - in mwifiex_process_sta_txpd()
113 local_tx_pd->tx_pkt_type = cpu_to_le16(pkt_type); in mwifiex_process_sta_txpd()
117 local_tx_pd->tx_pkt_offset = cpu_to_le16(pkt_offset); in mwifiex_process_sta_txpd()
176 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()
Dtdls.c336 vht_oper->basic_mcs_set = cpu_to_le16(mcs_map_result); in mwifiex_tdls_add_vht_oper()
459 tf->u.setup_req.capability = cpu_to_le16(capab); in mwifiex_prep_tdls_encap_data()
495 tf->u.setup_resp.status_code = cpu_to_le16(status_code); in mwifiex_prep_tdls_encap_data()
497 tf->u.setup_resp.capability = cpu_to_le16(capab); in mwifiex_prep_tdls_encap_data()
533 tf->u.setup_cfm.status_code = cpu_to_le16(status_code); in mwifiex_prep_tdls_encap_data()
561 tf->u.teardown.reason_code = cpu_to_le16(status_code); in mwifiex_prep_tdls_encap_data()
707 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in mwifiex_construct_tdls_action_frame()
722 cpu_to_le16(capab); in mwifiex_construct_tdls_action_frame()
875 cap = cpu_to_le16(*(u16 *)pos); in mwifiex_process_tdls_action_frame()
885 cap = cpu_to_le16(*(u16 *)pos); in mwifiex_process_tdls_action_frame()
[all …]
/linux-4.4.14/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.4.14/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()
819 pSMB->MaxParameterCount = cpu_to_le16(2); in CIFSPOSIXDelFile()
832 pRqD->type = cpu_to_le16(type); in CIFSPOSIXDelFile()
833 pSMB->ParameterOffset = cpu_to_le16(param_offset); in CIFSPOSIXDelFile()
834 pSMB->DataOffset = cpu_to_le16(offset); in CIFSPOSIXDelFile()
837 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); in CIFSPOSIXDelFile()
840 pSMB->DataCount = cpu_to_le16(sizeof(struct unlink_psx_rq)); in CIFSPOSIXDelFile()
841 pSMB->TotalDataCount = cpu_to_le16(sizeof(struct unlink_psx_rq)); in CIFSPOSIXDelFile()
842 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()
313 #define SMB2_PREAUTH_INTEGRITY_CAPABILITIES cpu_to_le16(1)
314 #define SMB2_ENCRYPTION_CAPABILITIES cpu_to_le16(2)
320 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
321 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
322 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()
331 pneg_ctxt->DataLength = cpu_to_le16(6); in build_encrypt_ctxt()
[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.4.14/drivers/staging/rtl8712/
Dwifi.h154 *(unsigned short *)(pbuf) |= cpu_to_le16(_TO_DS_); \
161 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_TO_DS_)); \
165 *(unsigned short *)(pbuf) |= cpu_to_le16(_FROM_DS_); \
172 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_FROM_DS_)); \
179 *(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_FRAG_); \
186 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_)); \
190 *(unsigned short *)(pbuf) |= cpu_to_le16(_RETRY_); \
197 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_RETRY_)); \
201 *(unsigned short *)(pbuf) |= cpu_to_le16(_PWRMGT_); \
208 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_PWRMGT_)); \
[all …]
Dieee80211.c181 *(u16 *)ie = cpu_to_le16((u16)pdev_network->Configuration.BeaconPeriod); in r8712_generate_ie()
186 *(u16 *)ie |= cpu_to_le16(cap_IBSS); in r8712_generate_ie()
188 *(u16 *)ie |= cpu_to_le16(cap_ShortPremble); in r8712_generate_ie()
190 *(u16 *)ie |= cpu_to_le16(cap_Privacy); in r8712_generate_ie()
/linux-4.4.14/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 …]
Dieee802154.h231 return (fc & cpu_to_le16(IEEE802154_FCTL_FTYPE)) == in ieee802154_is_data()
232 cpu_to_le16(IEEE802154_FTYPE_DATA); in ieee802154_is_data()
241 return fc & cpu_to_le16(IEEE802154_FCTL_ACKREQ); in ieee802154_is_ackreq()
250 return fc & cpu_to_le16(IEEE802154_FCTL_INTRA_PAN); in ieee802154_is_intra_pan()
Dext2_fs.h36 if (*(__le16 *)(p + EXT2_SB_MAGIC_OFFSET) != cpu_to_le16(EXT2_SUPER_MAGIC)) in ext2_image_size()
/linux-4.4.14/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()
361 setup->mac_mode = cpu_to_le16(mode); in p54_setup_mac()
370 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.4.14/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),
329 device_desc.idVendor = cpu_to_le16(EEM_VENDOR_NUM); in eth_bind()
330 device_desc.idProduct = cpu_to_le16(EEM_PRODUCT_NUM); in eth_bind()
357 device_desc.idVendor = cpu_to_le16(SIMPLE_VENDOR_NUM); in eth_bind()
358 device_desc.idProduct = cpu_to_le16(SIMPLE_PRODUCT_NUM); in eth_bind()
391 device_desc.idVendor = cpu_to_le16(RNDIS_VENDOR_NUM); in eth_bind()
392 device_desc.idProduct = cpu_to_le16(RNDIS_PRODUCT_NUM); in eth_bind()
Dserial.c68 .bcdUSB = cpu_to_le16(0x0200),
73 .idVendor = cpu_to_le16(GS_VENDOR_ID),
75 .bcdDevice = cpu_to_le16(GS_VERSION_NUM),
256 cpu_to_le16(GS_CDC_PRODUCT_ID); in init()
262 cpu_to_le16(GS_CDC_OBEX_PRODUCT_ID); in init()
268 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),
Dgmidi.c89 .bcdUSB = cpu_to_le16(0x0200),
91 .idVendor = cpu_to_le16(DRIVER_VENDOR_NUM),
92 .idProduct = cpu_to_le16(DRIVER_PRODUCT_NUM),
Ddbgp.c38 .bcdUSB = cpu_to_le16(0x0200),
40 .idVendor = cpu_to_le16(DRIVER_VENDOR_ID),
41 .idProduct = cpu_to_le16(DRIVER_PRODUCT_ID),
247 cpu_to_le16(USB_DEBUG_MAX_PACKET_SIZE); in dbgp_configure_endpoints()
256 cpu_to_le16(USB_DEBUG_MAX_PACKET_SIZE); in dbgp_configure_endpoints()
Dprinter.c74 .bcdUSB = cpu_to_le16(0x0200),
78 .idVendor = cpu_to_le16(PRINTER_VENDOR_NUM),
79 .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),
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),
Dmass_storage.c58 .bcdUSB = cpu_to_le16(0x0200),
62 .idVendor = cpu_to_le16(FSG_VENDOR_ID),
63 .idProduct = cpu_to_le16(FSG_PRODUCT_ID),
Dhid.c50 .bcdUSB = cpu_to_le16(0x0200),
61 .idVendor = cpu_to_le16(HIDG_VENDOR_NUM),
62 .idProduct = cpu_to_le16(HIDG_PRODUCT_NUM),
Dnokia.c92 .bcdUSB = cpu_to_le16(0x0200),
94 .idVendor = cpu_to_le16(NOKIA_VENDOR_ID),
95 .idProduct = cpu_to_le16(NOKIA_PRODUCT_ID),
96 .bcdDevice = cpu_to_le16(NOKIA_VERSION_NUM),
Daudio.c126 .bcdUSB = cpu_to_le16(0x200),
143 .idVendor = cpu_to_le16(AUDIO_VENDOR_NUM),
144 .idProduct = cpu_to_le16(AUDIO_PRODUCT_NUM),
/linux-4.4.14/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()
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Dwifi.h159 *(__le16 *)(pbuf) |= cpu_to_le16(_TO_DS_)
161 #define GetToDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_TO_DS_)) != 0)
164 *(__le16 *)(pbuf) &= (~cpu_to_le16(_TO_DS_))
167 *(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_)
169 #define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0)
172 *(__le16 *)(pbuf) &= (~cpu_to_le16(_FROM_DS_))
178 *(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_)
180 #define GetMFrag(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_FRAG_)) != 0)
183 *(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_))
186 *(__le16 *)(pbuf) |= cpu_to_le16(_RETRY_)
[all …]
/linux-4.4.14/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.c210 cpu_to_le16(0x8000); in hci_acl_create_connection()
218 cp.pkt_type = cpu_to_le16(conn->pkt_type); in hci_acl_create_connection()
241 clkoff_cp.handle = cpu_to_le16(conn->handle); in hci_disconnect()
261 cp.handle = cpu_to_le16(handle); in hci_add_sco()
262 cp.pkt_type = cpu_to_le16(conn->pkt_type); in hci_add_sco()
280 cp.handle = cpu_to_le16(handle); in hci_setup_sync()
284 cp.voice_setting = cpu_to_le16(conn->setting); in hci_setup_sync()
337 cp.handle = cpu_to_le16(conn->handle); in hci_le_conn_update()
338 cp.conn_interval_min = cpu_to_le16(min); in hci_le_conn_update()
339 cp.conn_interval_max = cpu_to_le16(max); 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.c271 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_frag()
272 cp.len_so_far = cpu_to_le16(loc_assoc->offset); in amp_read_loc_assoc_frag()
290 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc()
309 cp.len_so_far = cpu_to_le16(0); in amp_read_loc_assoc_final_data()
310 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_final_data()
372 cp->len_so_far = cpu_to_le16(ctrl->assoc_len_so_far); in amp_write_rem_assoc_frag()
373 cp->rem_len = cpu_to_le16(ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
555 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); in amp_create_logical_link()
562 cp.rx_flow_spec.msdu = cpu_to_le16(chan->remote_msdu); in amp_create_logical_link()
587 cp.log_handle = cpu_to_le16(hchan->handle); in amp_disconnect_logical_link()
Dhci_sock.c267 opcode = cpu_to_le16(HCI_MON_COMMAND_PKT); in hci_send_to_monitor()
270 opcode = cpu_to_le16(HCI_MON_EVENT_PKT); in hci_send_to_monitor()
274 opcode = cpu_to_le16(HCI_MON_ACL_RX_PKT); in hci_send_to_monitor()
276 opcode = cpu_to_le16(HCI_MON_ACL_TX_PKT); in hci_send_to_monitor()
280 opcode = cpu_to_le16(HCI_MON_SCO_RX_PKT); in hci_send_to_monitor()
282 opcode = cpu_to_le16(HCI_MON_SCO_TX_PKT); in hci_send_to_monitor()
285 opcode = cpu_to_le16(HCI_MON_VENDOR_DIAG); in hci_send_to_monitor()
299 hdr->index = cpu_to_le16(hdev->id); in hci_send_to_monitor()
300 hdr->len = cpu_to_le16(skb->len); in hci_send_to_monitor()
327 opcode = cpu_to_le16(HCI_MON_NEW_INDEX); in create_monitor_event()
[all …]
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Datombios_crtc.c55 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
56 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
57 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
58 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
65 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
66 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in amdgpu_atombios_crtc_overscan_setup()
68 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
69 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … in amdgpu_atombios_crtc_overscan_setup()
74 args.usOverscanRight = cpu_to_le16(amdgpu_crtc->h_border); in amdgpu_atombios_crtc_overscan_setup()
75 args.usOverscanLeft = cpu_to_le16(amdgpu_crtc->h_border); in amdgpu_atombios_crtc_overscan_setup()
[all …]
Datombios_encoders.c344 args.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dac()
413 args.dvo.sDVOEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
423 args.dvo_v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
429 args.dvo_v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
612 args.v1.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
647 args.v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
667 args.v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
799 args.v1.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
805 args.v1.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
807 args.v1.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
[all …]
Datombios_i2c.c46 u16 out = cpu_to_le16(0); in amdgpu_atombios_i2c_process_i2c_ch()
69 args.lpI2CDataOut = cpu_to_le16(out); in amdgpu_atombios_i2c_process_i2c_ch()
/linux-4.4.14/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.4.14/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.c487 scan_ch->channel = cpu_to_le16(channel); in iwl_get_channel_for_reset_scan()
490 cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); in iwl_get_channel_for_reset_scan()
492 cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); in iwl_get_channel_for_reset_scan()
536 scan_ch->channel = cpu_to_le16(channel); in iwl_get_channels_for_scan()
546 scan_ch->active_dwell = cpu_to_le16(active_dwell); in iwl_get_channels_for_scan()
547 scan_ch->passive_dwell = cpu_to_le16(passive_dwell); in iwl_get_channels_for_scan()
593 frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); in iwl_fill_probe_req()
715 scan->quiet_time = cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); in iwlagn_request_scan()
855 scan->rx_chain = cpu_to_le16(rx_chain); in iwlagn_request_scan()
877 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()
861 ctx->staging.rx_chain = cpu_to_le16(rx_chain); in iwlagn_set_rxon_chain()
899 out[i] = cpu_to_le16(p1k[i]); in iwlagn_convert_p1k()
952 tkip_tx_sc->iv16 = cpu_to_le16(seq.tkip.iv16); in iwlagn_wowlan_program_keys()
977 tkip_sc[i].iv16 = cpu_to_le16(seq.tkip.iv16); in iwlagn_wowlan_program_keys()
1115 wakeup_filter_cmd.non_qos_seq = cpu_to_le16(seq); in iwlagn_suspend()
1124 wakeup_filter_cmd.qos_seq[i] = cpu_to_le16(seq); in iwlagn_suspend()
1226 kek_kck_cmd.kck_len = cpu_to_le16(NL80211_KCK_LEN); in iwlagn_suspend()
[all …]
/linux-4.4.14/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.4.14/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()
1681 fe->fileLinkCount = cpu_to_le16(inode->i_nlink - 1); in udf_update_inode()
1683 fe->fileLinkCount = cpu_to_le16(inode->i_nlink); in udf_update_inode()
1736 fe->descTag.tagIdent = cpu_to_le16(TAG_IDENT_FE); in udf_update_inode()
[all …]
/linux-4.4.14/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.4.14/drivers/net/wireless/iwlwifi/mvm/
Dpower.c142 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { in iwl_mvm_power_log()
151 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK)) in iwl_mvm_power_log()
154 if (cmd->flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_log()
157 if (cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK)) { in iwl_mvm_power_log()
183 cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); in iwl_mvm_power_configure_uapsd()
207 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { in iwl_mvm_power_configure_uapsd()
212 cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); in iwl_mvm_power_configure_uapsd()
217 cmd->flags |= cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK); in iwl_mvm_power_configure_uapsd()
223 cmd->flags |= cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); in iwl_mvm_power_configure_uapsd()
224 cmd->snooze_interval = cpu_to_le16(IWL_MVM_PS_SNOOZE_INTERVAL); in iwl_mvm_power_configure_uapsd()
[all …]
Dscan.c163 return cpu_to_le16(rx_chain); in iwl_mvm_scan_rx_chain()
599 cpu_to_le16(channels[i]->hw_value); in iwl_mvm_lmac_scan_cfg_channels()
600 channel_cfg[i].iter_count = cpu_to_le16(1); in iwl_mvm_lmac_scan_cfg_channels()
666 frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); in iwl_mvm_build_scan_probe()
676 params->preq.mac_header.len = cpu_to_le16(24 + 2); in iwl_mvm_build_scan_probe()
683 params->preq.band_data[0].offset = cpu_to_le16(pos - params->preq.buf); in iwl_mvm_build_scan_probe()
684 params->preq.band_data[0].len = cpu_to_le16(newpos - pos); in iwl_mvm_build_scan_probe()
689 params->preq.band_data[1].offset = cpu_to_le16(pos - params->preq.buf); in iwl_mvm_build_scan_probe()
691 cpu_to_le16(ies->len[IEEE80211_BAND_5GHZ]); in iwl_mvm_build_scan_probe()
695 params->preq.common_data.offset = cpu_to_le16(pos - params->preq.buf); in iwl_mvm_build_scan_probe()
[all …]
Dsta.c817 cmd.add_immediate_ba_ssn = cpu_to_le16(ssn); in iwl_mvm_sta_rx_agg()
880 cmd.tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg); in iwl_mvm_sta_tx_agg()
1257 key_flags = cpu_to_le16(keyidx); in iwl_mvm_send_sta_key()
1258 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_KEY_MAP); in iwl_mvm_send_sta_key()
1262 key_flags |= cpu_to_le16(STA_KEY_FLG_TKIP); in iwl_mvm_send_sta_key()
1265 cmd.tkip_rx_ttak[i] = cpu_to_le16(tkip_p1k[i]); in iwl_mvm_send_sta_key()
1269 key_flags |= cpu_to_le16(STA_KEY_FLG_CCM); in iwl_mvm_send_sta_key()
1273 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_13BYTES); in iwl_mvm_send_sta_key()
1276 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP); in iwl_mvm_send_sta_key()
1280 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()
665 mcc_resp->mcc = cpu_to_le16(mcc); in iwl_mvm_update_mcc()
Dtx.c156 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_ASSOC); in iwl_mvm_set_tx_cmd()
158 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE); in iwl_mvm_set_tx_cmd()
160 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT); in iwl_mvm_set_tx_cmd()
167 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT); in iwl_mvm_set_tx_cmd()
169 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE); in iwl_mvm_set_tx_cmd()
183 tx_cmd->len = cpu_to_le16((u16)skb->len); in iwl_mvm_set_tx_cmd()
489 hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG); in iwl_mvm_tx_skb()
490 hdr->seq_ctrl |= cpu_to_le16(seq_number); in iwl_mvm_tx_skb()
1116 .flush_ctl = cpu_to_le16(DUMP_TX_FIFO_FLUSH), in iwl_mvm_flush_tx_path()
/linux-4.4.14/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()
484 return cpu_to_le16((u16)uDurTime); in s_uGetRTSCTSDuration()
521 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); in s_uFillDataHead()
528 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, in s_uFillDataHead()
533 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, in s_uFillDataHead()
554 …buf->duration_a = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType, in s_uFillDataHead()
556 …buf->duration_b = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, PK_TYPE_1… in s_uFillDataHead()
[all …]
/linux-4.4.14/drivers/staging/vt6656/
Drxtx.c115 return cpu_to_le16(vnt_time_stampoff[priv->preamble_type % 2] in vnt_time_stamp_off()
143 return cpu_to_le16((u16)vnt_get_rsvtime(priv, pkt_type, in vnt_rxtx_rsvtime_le16()
182 return cpu_to_le16((u16)rrv_time); in vnt_get_rtscts_rsvtime_le()
187 return cpu_to_le16((u16)rrv_time); in vnt_get_rtscts_rsvtime_le()
203 return cpu_to_le16((u16)(priv->sifs + ack_time)); in vnt_get_duration_le()
250 return cpu_to_le16((u16)dur_time); in vnt_get_rtscts_duration_le()
284 __le16 dur = cpu_to_le16(priv->current_aid | BIT(14) | BIT(15)); in vnt_rxtx_datahead_g()
377 __le16 dur = cpu_to_le16(priv->current_aid | BIT(14) | BIT(15)); in vnt_rxtx_datahead_ab()
400 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS); in vnt_fill_ieee80211_rts()
556 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTS); in vnt_fill_cts_fb_head()
[all …]
/linux-4.4.14/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.4.14/drivers/net/ethernet/intel/i40e/
Di40e_common.c412 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_lut()
413 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_lut()
416 cpu_to_le16((u16)((vsi_id << in i40e_aq_get_set_rss_lut()
419 cmd_resp->vsi_id |= cpu_to_le16((u16)I40E_AQC_SET_RSS_LUT_VSI_VALID); in i40e_aq_get_set_rss_lut()
422 cmd_resp->flags |= cpu_to_le16((u16) in i40e_aq_get_set_rss_lut()
427 cmd_resp->flags |= cpu_to_le16((u16) in i40e_aq_get_set_rss_lut()
498 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_key()
499 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_key()
502 cpu_to_le16((u16)((vsi_id << in i40e_aq_get_set_rss_key()
505 cmd_resp->vsi_id |= cpu_to_le16((u16)I40E_AQC_SET_RSS_KEY_VSI_VALID); in i40e_aq_get_set_rss_key()
[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()
788 desc->flags &= ~cpu_to_le16(details->flags_dis); in i40e_asq_send_command()
789 desc->flags |= cpu_to_le16(details->flags_ena); in i40e_asq_send_command()
834 desc_on_ring->datalen = cpu_to_le16(buff_size); in i40e_asq_send_command()
929 desc->opcode = cpu_to_le16(opcode); in i40e_fill_default_direct_cmd_desc()
930 desc->flags = cpu_to_le16(I40E_AQ_FLAG_SI); in i40e_fill_default_direct_cmd_desc()
[all …]
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_iocb.c215 cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp)); in qla2x00_build_scsi_iocbs_32()
272 cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp)); in qla2x00_build_scsi_iocbs_64()
398 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); in qla2x00_start_scsi()
402 cmd_pkt->lun = cpu_to_le16(cmd->device->lun); in qla2x00_start_scsi()
403 cmd_pkt->control_flags = cpu_to_le16(CF_SIMPLE_TAG); in qla2x00_start_scsi()
522 mrk24->nport_handle = cpu_to_le16(loop_id); in __qla2x00_marker()
529 mrk->lun = cpu_to_le16((uint16_t)lun); in __qla2x00_marker()
610 cmd_pkt->control_flags = cpu_to_le16(CF_WRITE_DATA); in qla24xx_build_scsi_type_6_iocbs()
614 cmd_pkt->control_flags = cpu_to_le16(CF_READ_DATA); in qla24xx_build_scsi_type_6_iocbs()
723 cmd_pkt->task_mgmt_flags = cpu_to_le16(TMF_WRITE_DATA); in qla24xx_build_scsi_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()
2297 scsi_status = sts->scsi_status & cpu_to_le16((uint16_t)SS_MASK); in qlafx00_status_entry()
2342 lscsi_status = scsi_status & cpu_to_le16((uint16_t)STATUS_MASK); in qlafx00_status_entry()
2348 if (scsi_status & cpu_to_le16((uint16_t)SS_SENSE_LEN_VALID)) in qlafx00_status_entry()
2350 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER in qlafx00_status_entry()
2353 if (comp_status == cpu_to_le16((uint16_t)CS_DATA_UNDERRUN)) in qlafx00_status_entry()
2360 scsi_status & cpu_to_le16((uint16_t)SS_RESIDUAL_OVER)) in qlafx00_status_entry()
[all …]
Dqla_init.c2076 ha->init_cb->request_q_outpointer = cpu_to_le16(0); in qla2x00_config_rings()
2077 ha->init_cb->response_q_inpointer = cpu_to_le16(0); in qla2x00_config_rings()
2078 ha->init_cb->request_q_length = cpu_to_le16(req->length); in qla2x00_config_rings()
2079 ha->init_cb->response_q_length = cpu_to_le16(rsp->length); in qla2x00_config_rings()
2106 icb->request_q_outpointer = cpu_to_le16(0); in qla24xx_config_rings()
2107 icb->response_q_inpointer = cpu_to_le16(0); in qla24xx_config_rings()
2108 icb->request_q_length = cpu_to_le16(req->length); in qla24xx_config_rings()
2109 icb->response_q_length = cpu_to_le16(rsp->length); in qla24xx_config_rings()
2116 icb->atio_q_inpointer = cpu_to_le16(0); in qla24xx_config_rings()
2117 icb->atio_q_length = cpu_to_le16(ha->tgt.atio_q_length); in qla24xx_config_rings()
[all …]
Dqla_gs.c38 ms_pkt->control_flags = cpu_to_le16(CF_READ | CF_HEAD_TAG); in qla2x00_prep_ms_iocb()
39 ms_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla2x00_prep_ms_iocb()
40 ms_pkt->cmd_dsd_count = cpu_to_le16(1); in qla2x00_prep_ms_iocb()
41 ms_pkt->total_dsd_count = cpu_to_le16(2); in qla2x00_prep_ms_iocb()
77 ct_pkt->nport_handle = cpu_to_le16(NPH_SNS); in qla24xx_prep_ms_iocb()
78 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_iocb()
79 ct_pkt->cmd_dsd_count = cpu_to_le16(1); in qla24xx_prep_ms_iocb()
80 ct_pkt->rsp_dsd_count = cpu_to_le16(1); in qla24xx_prep_ms_iocb()
725 sns_cmd->p.cmd.buffer_length = cpu_to_le16(wc); in qla2x00_prep_sns_cmd()
728 sns_cmd->p.cmd.subcommand_length = cpu_to_le16(scmd_len); in qla2x00_prep_sns_cmd()
[all …]
Dqla_target.c1153 nack->u.isp24.srr_flags = cpu_to_le16(srr_flags); in qlt_send_notify_ack()
1277 ctio->timeout = cpu_to_le16(QLA_TGT_TIMEOUT); in qlt_24xx_retry_term_exchange()
1283 ctio->u.status1.flags = cpu_to_le16(CTIO7_FLAGS_STATUS_MODE_1 | in qlt_24xx_retry_term_exchange()
1285 ctio->u.status1.ox_id = cpu_to_le16(entry->fcp_hdr_le.ox_id); in qlt_24xx_retry_term_exchange()
1524 ctio->timeout = cpu_to_le16(QLA_TGT_TIMEOUT); in qlt_24xx_send_task_mgmt_ctio()
1531 cpu_to_le16(CTIO7_FLAGS_STATUS_MODE_1 | CTIO7_FLAGS_SEND_STATUS); in qlt_24xx_send_task_mgmt_ctio()
1533 ctio->u.status1.ox_id = cpu_to_le16(temp); in qlt_24xx_send_task_mgmt_ctio()
1535 cpu_to_le16(SS_RESPONSE_INFO_LEN_VALID); in qlt_24xx_send_task_mgmt_ctio()
1536 ctio->u.status1.response_len = cpu_to_le16(8); in qlt_24xx_send_task_mgmt_ctio()
1787 pkt->timeout = cpu_to_le16(QLA_TGT_TIMEOUT); in qlt_24xx_build_ctio_pkt()
[all …]
/linux-4.4.14/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.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c67 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_spoofchk()
131 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_mac()
162 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_vlan()
164 req.dflt_vlan = cpu_to_le16(vlan_tag); in bnxt_set_vf_vlan()
201 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_bw()
271 req.vf_id = cpu_to_le16(i); in bnxt_hwrm_func_vf_resource_free()
354 req.req_buf_num_pages = cpu_to_le16(bp->pf.hwrm_cmd_req_pages); in bnxt_hwrm_func_buf_rgtr()
355 req.req_buf_page_size = cpu_to_le16(BNXT_PAGE_SHIFT); in bnxt_hwrm_func_buf_rgtr()
356 req.req_buf_len = cpu_to_le16(BNXT_HWRM_REQ_MAX_SIZE); in bnxt_hwrm_func_buf_rgtr()
405 req.mru = cpu_to_le16(mtu); in bnxt_hwrm_func_cfg()
[all …]
/linux-4.4.14/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()
1548 (beacon->capability & cpu_to_le16(1 << 0xf)) ? '1' : '0', in libipw_process_probe_response()
1549 (beacon->capability & cpu_to_le16(1 << 0xe)) ? '1' : '0', in libipw_process_probe_response()
1550 (beacon->capability & cpu_to_le16(1 << 0xd)) ? '1' : '0', in libipw_process_probe_response()
1551 (beacon->capability & cpu_to_le16(1 << 0xc)) ? '1' : '0', in libipw_process_probe_response()
1552 (beacon->capability & cpu_to_le16(1 << 0xb)) ? '1' : '0', in libipw_process_probe_response()
1553 (beacon->capability & cpu_to_le16(1 << 0xa)) ? '1' : '0', in libipw_process_probe_response()
1554 (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.4.14/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 …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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),
553 uvc_control_header->wTotalLength = cpu_to_le16(control_size); in uvc_copy_descriptors()
567 uvc_streaming_header->wTotalLength = cpu_to_le16(streaming_size); in uvc_copy_descriptors()
615 cpu_to_le16(min(opts->streaming_maxpacket, 1023U)); in uvc_function_bind()
619 cpu_to_le16(max_packet_size | ((max_packet_mult - 1) << 11)); in uvc_function_bind()
622 uvc_ss_streaming_ep.wMaxPacketSize = cpu_to_le16(max_packet_size); in uvc_function_bind()
627 cpu_to_le16(max_packet_size * max_packet_mult * in uvc_function_bind()
779 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.c136 .bcdCDC = cpu_to_le16(0x0110),
170 .wMaxPacketSize = cpu_to_le16(GS_NOTIFY_MAXPACKET),
208 .wMaxPacketSize = cpu_to_le16(GS_NOTIFY_MAXPACKET),
216 .wMaxPacketSize = cpu_to_le16(512),
223 .wMaxPacketSize = cpu_to_le16(512),
244 .wMaxPacketSize = cpu_to_le16(1024),
251 .wMaxPacketSize = cpu_to_le16(1024),
514 notify->wValue = cpu_to_le16(value); in acm_cdc_notify()
515 notify->wIndex = cpu_to_le16(acm->ctrl_id); in acm_cdc_notify()
516 notify->wLength = cpu_to_le16(length); in acm_cdc_notify()
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_sourcesink.c113 .wMaxPacketSize = cpu_to_le16(1023),
123 .wMaxPacketSize = cpu_to_le16(1023),
147 .wMaxPacketSize = cpu_to_le16(512),
155 .wMaxPacketSize = cpu_to_le16(512),
163 .wMaxPacketSize = cpu_to_le16(1024),
172 .wMaxPacketSize = cpu_to_le16(1024),
196 .wMaxPacketSize = cpu_to_le16(1024),
213 .wMaxPacketSize = cpu_to_le16(1024),
230 .wMaxPacketSize = cpu_to_le16(1024),
240 .wBytesPerInterval = cpu_to_le16(1024),
[all …]
Df_serial.c85 .wMaxPacketSize = cpu_to_le16(512),
92 .wMaxPacketSize = cpu_to_le16(512),
106 .wMaxPacketSize = cpu_to_le16(1024),
113 .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.c109 .bcdCDC = cpu_to_le16(0x0120),
124 .bcdVersion = cpu_to_le16(0x0100),
135 .wMaxPacketSize = cpu_to_le16(512),
144 .wMaxPacketSize = cpu_to_le16(512),
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/scsi/snic/
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()
Dsnic_res.h36 req->u.icmnd.flags = cpu_to_le16(flags); in snic_icmnd_init()
55 req->u.itmf.flags = cpu_to_le16(flags); in snic_itmf_init()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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()
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Drtl8723a_cmd.c199 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); in ConstructBeacon()
287 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL); in ConstructPSPoll()
288 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); in ConstructPSPoll()
291 pwlanhdr->duration_id = cpu_to_le16(pmlmeinfo->aid | 0xc000); in ConstructPSPoll()
320 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); in ConstructNullFunctionData()
325 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_TODS); in ConstructNullFunctionData()
334 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ConstructNullFunctionData()
355 cpu_to_le16(IEEE80211_FTYPE_DATA | in ConstructNullFunctionData()
358 qoshdr->qos_ctrl = cpu_to_le16(AC & IEEE80211_QOS_CTL_TID_MASK); in ConstructNullFunctionData()
360 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.4.14/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 …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.c2026 cpu_to_le16( in qla4xxx_set_ipv6()
2030 cpu_to_le16( in qla4xxx_set_ipv6()
2043 init_fw_cb->ipv6_addtl_opts |= cpu_to_le16( in qla4xxx_set_ipv6()
2047 init_fw_cb->ipv6_addtl_opts &= cpu_to_le16( in qla4xxx_set_ipv6()
2065 cpu_to_le16(IPV6_OPT_IPV6_PROTOCOL_ENABLE); in qla4xxx_set_ipv6()
2069 cpu_to_le16(~IPV6_OPT_IPV6_PROTOCOL_ENABLE & in qla4xxx_set_ipv6()
2083 cpu_to_le16(IPV6_OPT_VLAN_TAGGING_ENABLE); in qla4xxx_set_ipv6()
2086 cpu_to_le16(~IPV6_OPT_VLAN_TAGGING_ENABLE); in qla4xxx_set_ipv6()
2090 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2098 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
[all …]
/linux-4.4.14/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.4.14/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()
297 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_ps_mgmt_xmit()
310 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_ps_mgmt_xmit()
342 req->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); in ieee80211_probe_req()
658 auth->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_AUTH in ieee80211_authentication_req()
661 auth->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_AUTH); in ieee80211_authentication_req()
663 auth->header.duration_id = cpu_to_le16(0x013a); in ieee80211_authentication_req()
673 auth->algorithm = cpu_to_le16(WLAN_AUTH_SHARED_KEY); in ieee80211_authentication_req()
677 auth->transaction = cpu_to_le16(ieee->associate_seq); in ieee80211_authentication_req()
[all …]
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_fusion.c633 IOCInitMessage->MsgVersion = cpu_to_le16(MPI2_VERSION); in megasas_ioc_init_fusion()
634 IOCInitMessage->HeaderVersion = cpu_to_le16(MPI2_HEADER_VERSION); in megasas_ioc_init_fusion()
635 IOCInitMessage->SystemRequestFrameSize = cpu_to_le16(MEGA_MPI2_RAID_DEFAULT_IO_FRAME_SIZE / 4); in megasas_ioc_init_fusion()
637 IOCInitMessage->ReplyDescriptorPostQueueDepth = cpu_to_le16(fusion->reply_q_depth); in megasas_ioc_init_fusion()
646 frame_hdr->flags = cpu_to_le16( in megasas_ioc_init_fusion()
777 dcmd->flags = cpu_to_le16(MFI_FRAME_DIR_WRITE); in megasas_sync_pd_seq_num()
783 dcmd->flags = cpu_to_le16(MFI_FRAME_DIR_READ); in megasas_sync_pd_seq_num()
868 dcmd->flags = cpu_to_le16(MFI_FRAME_DIR_READ); in megasas_get_ld_map_info()
968 dcmd->flags = cpu_to_le16(MFI_FRAME_DIR_WRITE); in megasas_sync_map_info()
1412 io_request->IoFlags = cpu_to_le16(32); /* Specify 32-byte cdb */ in megasas_set_pd_lba()
[all …]
/linux-4.4.14/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.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_adminq.c169 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_alloc_arq_bufs()
171 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40e_alloc_arq_bufs()
176 desc->datalen = cpu_to_le16((u16)bi->size); in i40e_alloc_arq_bufs()
721 desc->flags &= ~cpu_to_le16(details->flags_dis); in i40evf_asq_send_command()
722 desc->flags |= cpu_to_le16(details->flags_ena); in i40evf_asq_send_command()
767 desc_on_ring->datalen = cpu_to_le16(buff_size); in i40evf_asq_send_command()
863 desc->opcode = cpu_to_le16(opcode); in i40evf_fill_default_direct_cmd_desc()
864 desc->flags = cpu_to_le16(I40E_AQ_FLAG_SI); in i40evf_fill_default_direct_cmd_desc()
941 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40evf_clean_arq_element()
943 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40evf_clean_arq_element()
[all …]
Di40e_common.c412 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_lut()
413 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_lut()
416 cpu_to_le16((u16)((vsi_id << in i40e_aq_get_set_rss_lut()
419 cmd_resp->vsi_id |= cpu_to_le16((u16)I40E_AQC_SET_RSS_LUT_VSI_VALID); in i40e_aq_get_set_rss_lut()
422 cmd_resp->flags |= cpu_to_le16((u16) in i40e_aq_get_set_rss_lut()
427 cmd_resp->flags |= cpu_to_le16((u16) in i40e_aq_get_set_rss_lut()
498 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_key()
499 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_key()
502 cpu_to_le16((u16)((vsi_id << in i40e_aq_get_set_rss_key()
505 cmd_resp->vsi_id |= cpu_to_le16((u16)I40E_AQC_SET_RSS_KEY_VSI_VALID); in i40e_aq_get_set_rss_key()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/staging/rtl8192e/
Drtllib_tx.c231 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()
718 header.frame_ctl = cpu_to_le16(fc); in rtllib_xmit_inter()
744 header.qos_ctl = cpu_to_le16(qos_ctl & RTLLIB_QOS_TID); in rtllib_xmit_inter()
788 txb->payload_size = cpu_to_le16(bytes); in rtllib_xmit_inter()
827 frag_hdr->frame_ctl = cpu_to_le16( in rtllib_xmit_inter()
837 cpu_to_le16(rtllib_query_seqnum(ieee, skb_frag, in rtllib_xmit_inter()
840 cpu_to_le16(le16_to_cpu(frag_hdr->seq_ctl)<<4 | i); in rtllib_xmit_inter()
843 cpu_to_le16(ieee->seq_ctrl[0]<<4 | i); in rtllib_xmit_inter()
895 txb->payload_size = cpu_to_le16(skb->len); in rtllib_xmit_inter()
Drtllib_softmac.c233 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4); in softmac_mgmt_xmit()
250 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_mgmt_xmit()
308 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_ps_mgmt_xmit()
322 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); in softmac_ps_mgmt_xmit()
355 req->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_PROBE_REQ); in rtllib_probe_req()
793 auth->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_AUTH); in rtllib_authentication_req()
795 auth->header.frame_ctl |= cpu_to_le16(RTLLIB_FCTL_WEP); in rtllib_authentication_req()
797 auth->header.duration_id = cpu_to_le16(0x013a); in rtllib_authentication_req()
804 auth->algorithm = cpu_to_le16(WLAN_AUTH_SHARED_KEY); in rtllib_authentication_req()
807 auth->transaction = cpu_to_le16(ieee->associate_seq); in rtllib_authentication_req()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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()
262 ~cpu_to_le16(IEEE80211_VHT_MCS_NOT_SUPPORTED << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
263 vht_cap->vht_mcs.rx_mcs_map |= cpu_to_le16(peer_rx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
266 ~cpu_to_le16(IEEE80211_VHT_MCS_NOT_SUPPORTED << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
267 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()
Dtx.c122 return cpu_to_le16(32768); in ieee80211_duration()
203 return cpu_to_le16(dur); in ieee80211_duration()
780 __le16 ret = cpu_to_le16(*seq); in ieee80211_tx_next_seq()
824 hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number); in ieee80211_tx_h_sequence()
960 const __le16 morefrags = cpu_to_le16(IEEE80211_FCTL_MOREFRAGS); in ieee80211_tx_h_fragment()
979 hdr->seq_ctrl |= cpu_to_le16(fragnum & IEEE80211_SCTL_FRAG); in ieee80211_tx_h_fragment()
2031 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); in ieee80211_build_hdr()
2036 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_build_hdr()
2064 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_build_hdr()
2073 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_build_hdr()
[all …]
Dwpa.c325 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | in ccmp_special_blocks()
328 mask_fc &= ~cpu_to_le16(0x0070); in ccmp_special_blocks()
329 mask_fc |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); in ccmp_special_blocks()
579 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | in gcmp_special_blocks()
582 mask_fc &= ~cpu_to_le16(0x0070); in gcmp_special_blocks()
583 mask_fc |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); in gcmp_special_blocks()
895 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | IEEE80211_FCTL_PM | in bip_aad()
950 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_encrypt()
994 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_256_encrypt()
1139 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_gmac_encrypt()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.c419 dst->sg_count = cpu_to_le16((u16)nseg); in stex_map_sg()
420 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_map_sg()
451 dst->sg_count = cpu_to_le16((u16)nseg); in stex_ss_map_sg()
452 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_ss_map_sg()
498 req->tag = cpu_to_le16(tag); in stex_send_cmd()
515 req->tag = cpu_to_le16(tag); in stex_ss_send_cmd()
524 msg_h->timeout = cpu_to_le16(cmd->request->timeout/HZ); in stex_ss_send_cmd()
994 h->req_sz = cpu_to_le16(hba->rq_size); in stex_common_handshake()
995 h->req_cnt = cpu_to_le16(hba->rq_count+1); in stex_common_handshake()
996 h->status_sz = cpu_to_le16(sizeof(struct status_msg)); in stex_common_handshake()
[all …]
/linux-4.4.14/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.4.14/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.4.14/drivers/net/wireless/ath/wil6210/
Dwmi.c184 .len = cpu_to_le16(sizeof(cmd.wmi) + len), in __wmi_send()
188 .id = cpu_to_le16(cmdid), in __wmi_send()
247 cmd.hdr.seq = cpu_to_le16(++wil->wmi_seq); in __wmi_send()
872 .bcon_interval = cpu_to_le16(bi), in wmi_pcp_start()
1049 cmd->ie_len = cpu_to_le16(ie_len); in wmi_set_ie()
1102 .max_mpdu_size = cpu_to_le16(wil_mtu2macbuf(mtu_max)), in wmi_rx_chain_add()
1104 .ring_size = cpu_to_le16(vring->size), in wmi_rx_chain_add()
1109 .host_thrsh = cpu_to_le16(rx_ring_overflow_thrsh), in wmi_rx_chain_add()
1188 .disconnect_reason = cpu_to_le16(reason), in wmi_disconnect_sta()
1228 .ba_timeout = cpu_to_le16(timeout), in wmi_addba()
[all …]
/linux-4.4.14/drivers/usb/gadget/
Depautoconf.c99 desc->wMaxPacketSize = cpu_to_le16(ep->maxpacket_limit); in usb_ep_autoconfig_ss()
123 desc->wMaxPacketSize = cpu_to_le16(size); in usb_ep_autoconfig_ss()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.c937 cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
955 cpu_to_le16(elem->cmd_data.vlan_mac. in bnx2x_set_one_mac_e2()
985 hdr->client_id = cpu_to_le16(0xff); in bnx2x_vlan_mac_set_rdata_hdr_e1x()
999 cfg_entry->vlan_id = cpu_to_le16(vlan_id); in bnx2x_vlan_mac_set_cfg_entry_e1x()
1091 rule_entry->vlan.vlan = cpu_to_le16(vlan); in bnx2x_set_one_vlan_e2()
1105 rule_entry->vlan.vlan = cpu_to_le16(vlan); in bnx2x_set_one_vlan_e2()
1140 rule_entry->pair.vlan = cpu_to_le16(vlan); in bnx2x_set_one_vlan_mac_e2()
1145 rule_entry->pair.inner_mac = cpu_to_le16(inner_mac); in bnx2x_set_one_vlan_mac_e2()
1160 rule_entry->pair.vlan = cpu_to_le16(vlan); in bnx2x_set_one_vlan_mac_e2()
1164 rule_entry->pair.inner_mac = cpu_to_le16(inner_mac); in bnx2x_set_one_vlan_mac_e2()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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 …]
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dmac.h96 hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG); in ath10k_tx_h_seq_no()
97 hdr->seq_ctrl |= cpu_to_le16(arvif->tx_seq_no); in ath10k_tx_h_seq_no()
/linux-4.4.14/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.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_l2.c170 p_ramrod->mtu = cpu_to_le16(mtu); in qed_sp_vport_start()
177 p_ramrod->rx_mode.state = cpu_to_le16(rx_mode); in qed_sp_vport_start()
240 rss->capabilities = cpu_to_le16(capabilities); in qed_sp_vport_update_rss()
256 rss->indirection_table[i] = cpu_to_le16(abs_l2_queue); in qed_sp_vport_update_rss()
301 p_ramrod->rx_mode.state = cpu_to_le16(state); in qed_sp_update_accept_mode()
328 p_ramrod->tx_mode.state = cpu_to_le16(state); in qed_sp_update_accept_mode()
545 p_ramrod->sb_id = cpu_to_le16(params->sb); in qed_sp_eth_rxq_start_ramrod()
549 p_ramrod->rx_queue_id = cpu_to_le16(abs_rx_q_id); in qed_sp_eth_rxq_start_ramrod()
553 p_ramrod->bd_max_bytes = cpu_to_le16(bd_max_bytes); in qed_sp_eth_rxq_start_ramrod()
557 p_ramrod->num_of_pbl_pages = cpu_to_le16(cqe_pbl_size); in qed_sp_eth_rxq_start_ramrod()
[all …]
/linux-4.4.14/drivers/staging/rtl8723au/core/
Drtw_mlme_ext.c2389 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); in issue_beacon23a()
2543 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_RESP); in issue_probersp()
2549 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); in issue_probersp()
2697 pwlanhdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in _issue_probereq()
2713 cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); in _issue_probereq()
2844 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_AUTH); in issue_auth()
2845 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); in issue_auth()
2867 mgmt->u.auth.auth_alg = cpu_to_le16(val16); in issue_auth()
2871 cpu_to_le16((u16)psta->auth_seq); in issue_auth()
2874 mgmt->u.auth.status_code = cpu_to_le16(status); in issue_auth()
[all …]
/linux-4.4.14/net/mac802154/
Diface.c108 wpan_dev->pan_id = cpu_to_le16(sa->addr.pan_id); in mac802154_wpan_ioctl()
109 wpan_dev->short_addr = cpu_to_le16(sa->addr.short_addr); in mac802154_wpan_ioctl()
395 if (wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST) || in ieee802154_header_create()
396 wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_UNDEF) || in ieee802154_header_create()
397 wpan_dev->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in ieee802154_header_create()
587 wpan_dev->pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST); in ieee802154_setup_sdata()
588 wpan_dev->short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); in ieee802154_setup_sdata()
Drx.c64 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
73 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
78 cpu_to_le16(IEEE802154_ADDR_BROADCAST)) in ieee802154_subif_frame()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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()
/linux-4.4.14/drivers/net/can/
Djanz-ican3.c649 msg.len = cpu_to_le16(0); in ican3_msg_connect()
660 msg.len = cpu_to_le16(0); in ican3_msg_disconnect()
672 msg.len = cpu_to_le16(0); in ican3_msg_newhostif()
693 msg.len = cpu_to_le16(8); in ican3_msg_fasthostif()
727 msg.len = cpu_to_le16(5); in ican3_set_id_filter()
743 msg.len = cpu_to_le16(13); in ican3_set_id_filter()
784 msg.len = cpu_to_le16(4); in ican3_set_bus_state()
798 msg.len = cpu_to_le16(0); in ican3_set_bus_state()
806 msg.len = cpu_to_le16(4); in ican3_set_bus_state()
812 msg.len = cpu_to_le16(2); in ican3_set_bus_state()
[all …]
/linux-4.4.14/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.4.14/drivers/staging/lustre/lustre/obdclass/
Dacl.c73 d->e_tag = cpu_to_le16(s->e_tag); in lustre_ext_acl_cpu_to_le()
74 d->e_perm = cpu_to_le16(s->e_perm); in lustre_ext_acl_cpu_to_le()
90 d->e_tag = cpu_to_le16(s->e_tag); in lustre_posix_acl_cpu_to_le()
91 d->e_perm = cpu_to_le16(s->e_perm); in lustre_posix_acl_cpu_to_le()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ctx.c291 prq->valid_field_offset = cpu_to_le16(temp_u16); in qlcnic_82xx_fw_cmd_create_rx_ctx()
301 prq->num_rds_rings = cpu_to_le16(nrds_rings); in qlcnic_82xx_fw_cmd_create_rx_ctx()
302 prq->num_sds_rings = cpu_to_le16(nsds_rings); in qlcnic_82xx_fw_cmd_create_rx_ctx()
332 prq_sds[i].msi_index = cpu_to_le16(ahw->intr_tbl[i].id); in qlcnic_82xx_fw_cmd_create_rx_ctx()
334 prq_sds[i].msi_index = cpu_to_le16(i); in qlcnic_82xx_fw_cmd_create_rx_ctx()
467 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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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()
461 sbp[0]->s_state = cpu_to_le16(le16_to_cpu(sbp[0]->s_state) & in nilfs_resize_fs()
846 sbp[0]->s_max_mnt_count = cpu_to_le16(NILFS_DFL_MAX_MNT_COUNT); in nilfs_setup_super()
848 sbp[0]->s_mnt_count = cpu_to_le16(mnt_count + 1); in nilfs_setup_super()
853 cpu_to_le16(le16_to_cpu(sbp[0]->s_state) & ~NILFS_VALID_FS); in nilfs_setup_super()

12345