Home
last modified time | relevance | path

Searched refs:cpu_to_le32 (Results 1 – 200 of 1062) sorted by relevance

123456

/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dcoex_legacy.c116 cpu_to_le32(0xf0f0f0f0), /* 50% */
117 cpu_to_le32(0xc0c0c0c0), /* 25% */
118 cpu_to_le32(0xfcfcfcfc), /* 75% */
119 cpu_to_le32(0xfefefefe), /* 87.5% */
124 cpu_to_le32(0x40000000),
125 cpu_to_le32(0x00000000),
126 cpu_to_le32(0x44000000),
127 cpu_to_le32(0x00000000),
128 cpu_to_le32(0x40000000),
129 cpu_to_le32(0x00000000),
[all …]
Dcoex.c172 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
173 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
174 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
175 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
176 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
177 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
178 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
179 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
180 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
181 cpu_to_le32(0x00000000), cpu_to_le32(0x00000000),
[all …]
Dsf.c107 cpu_to_le32(SF_SINGLE_UNICAST_AGING_TIMER_DEF),
108 cpu_to_le32(SF_SINGLE_UNICAST_IDLE_TIMER_DEF)
111 cpu_to_le32(SF_AGG_UNICAST_AGING_TIMER_DEF),
112 cpu_to_le32(SF_AGG_UNICAST_IDLE_TIMER_DEF)
115 cpu_to_le32(SF_MCAST_AGING_TIMER_DEF),
116 cpu_to_le32(SF_MCAST_IDLE_TIMER_DEF)
119 cpu_to_le32(SF_BA_AGING_TIMER_DEF),
120 cpu_to_le32(SF_BA_IDLE_TIMER_DEF)
123 cpu_to_le32(SF_TX_RE_AGING_TIMER_DEF),
124 cpu_to_le32(SF_TX_RE_IDLE_TIMER_DEF)
[all …]
Dmac-ctxt.c638 cmd->protection_flags |= cpu_to_le32(ht_flag); in iwl_mvm_mac_ctxt_set_ht_flags()
643 cmd->protection_flags |= cpu_to_le32(ht_flag); in iwl_mvm_mac_ctxt_set_ht_flags()
666 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_cmd_common()
668 cmd->action = cpu_to_le32(action); in iwl_mvm_mac_ctxt_cmd_common()
673 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_P2P_STA); in iwl_mvm_mac_ctxt_cmd_common()
675 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_BSS_STA); in iwl_mvm_mac_ctxt_cmd_common()
678 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_GO); in iwl_mvm_mac_ctxt_cmd_common()
681 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_LISTENER); in iwl_mvm_mac_ctxt_cmd_common()
684 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_P2P_DEVICE); in iwl_mvm_mac_ctxt_cmd_common()
687 cmd->mac_type = cpu_to_le32(FW_MAC_TYPE_IBSS); in iwl_mvm_mac_ctxt_cmd_common()
[all …]
Dtime-event.c301 if (notif->action & cpu_to_le32(TE_V2_NOTIF_HOST_EVENT_START)) in iwl_mvm_te_handle_notif()
594 time_cmd.action = cpu_to_le32(FW_CTXT_ACTION_ADD); in iwl_mvm_protect_session()
596 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); in iwl_mvm_protect_session()
597 time_cmd.id = cpu_to_le32(TE_BSS_STA_AGGRESSIVE_ASSOC); in iwl_mvm_protect_session()
599 time_cmd.apply_time = cpu_to_le32(0); in iwl_mvm_protect_session()
602 time_cmd.max_delay = cpu_to_le32(max_delay); in iwl_mvm_protect_session()
604 time_cmd.interval = cpu_to_le32(1); in iwl_mvm_protect_session()
605 time_cmd.duration = cpu_to_le32(duration); in iwl_mvm_protect_session()
687 aux_cmd.event_unique_id = cpu_to_le32(uid); in iwl_mvm_remove_aux_roc_te()
688 aux_cmd.action = cpu_to_le32(FW_CTXT_ACTION_REMOVE); in iwl_mvm_remove_aux_roc_te()
[all …]
Dfw-api-power.h454 .bf_energy_delta = cpu_to_le32(IWL_BF_ENERGY_DELTA ## mode), \
456 cpu_to_le32(IWL_BF_ROAMING_ENERGY_DELTA ## mode), \
457 .bf_roaming_state = cpu_to_le32(IWL_BF_ROAMING_STATE ## mode), \
458 .bf_temp_threshold = cpu_to_le32(IWL_BF_TEMP_THRESHOLD ## mode), \
459 .bf_temp_fast_filter = cpu_to_le32(IWL_BF_TEMP_FAST_FILTER ## mode), \
460 .bf_temp_slow_filter = cpu_to_le32(IWL_BF_TEMP_SLOW_FILTER ## mode), \
461 .bf_debug_flag = cpu_to_le32(IWL_BF_DEBUG_FLAG ## mode), \
462 .bf_escape_timer = cpu_to_le32(IWL_BF_ESCAPE_TIMER ## mode), \
463 .ba_escape_timer = cpu_to_le32(IWL_BA_ESCAPE_TIMER ## mode)
Dphy-ctxt.c133 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(ctxt->id, in iwl_mvm_phy_ctxt_cmd_hdr()
135 cmd->action = cpu_to_le32(action); in iwl_mvm_phy_ctxt_cmd_hdr()
136 cmd->apply_time = cpu_to_le32(apply_time); in iwl_mvm_phy_ctxt_cmd_hdr()
173 cmd->rxchain_info = cpu_to_le32(iwl_mvm_get_valid_rx_ant(mvm) << in iwl_mvm_phy_ctxt_cmd_data()
175 cmd->rxchain_info |= cpu_to_le32(idle_cnt << PHY_RX_CHAIN_CNT_POS); in iwl_mvm_phy_ctxt_cmd_data()
176 cmd->rxchain_info |= cpu_to_le32(active_cnt << in iwl_mvm_phy_ctxt_cmd_data()
180 cmd->rxchain_info = cpu_to_le32(mvm->dbgfs_rx_phyinfo); in iwl_mvm_phy_ctxt_cmd_data()
183 cmd->txchain_info = cpu_to_le32(iwl_mvm_get_valid_tx_ant(mvm)); in iwl_mvm_phy_ctxt_cmd_data()
Dpower.c124 cpu_to_le32(vif->bss_conf.cqm_rssi_hyst); in iwl_mvm_beacon_filter_set_cqm_params()
127 cpu_to_le32(-vif->bss_conf.cqm_rssi_thold); in iwl_mvm_beacon_filter_set_cqm_params()
129 cmd->ba_enable_beacon_abort = cpu_to_le32(mvmvif->bf_data.ba_enabled); in iwl_mvm_beacon_filter_set_cqm_params()
235 cpu_to_le32(IWL_MVM_WOWLAN_PS_RX_DATA_TIMEOUT); in iwl_mvm_power_configure_uapsd()
237 cpu_to_le32(IWL_MVM_WOWLAN_PS_TX_DATA_TIMEOUT); in iwl_mvm_power_configure_uapsd()
240 cpu_to_le32(IWL_MVM_UAPSD_RX_DATA_TIMEOUT); in iwl_mvm_power_configure_uapsd()
242 cpu_to_le32(IWL_MVM_UAPSD_TX_DATA_TIMEOUT); in iwl_mvm_power_configure_uapsd()
359 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_power_build_cmd()
402 cpu_to_le32(IWL_MVM_WOWLAN_PS_RX_DATA_TIMEOUT); in iwl_mvm_power_build_cmd()
404 cpu_to_le32(IWL_MVM_WOWLAN_PS_TX_DATA_TIMEOUT); in iwl_mvm_power_build_cmd()
[all …]
Dquota.c169 cmd->quotas[i].quota = cpu_to_le32(quota); in iwl_mvm_adjust_quota_for_noa()
208 cmd.quotas[i].id_and_color = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_update_quotas()
258 cpu_to_le32(FW_CMD_ID_AND_COLOR(i, data.colors[i])); in iwl_mvm_update_quotas()
261 cmd.quotas[idx].quota = cpu_to_le32(0); in iwl_mvm_update_quotas()
270 cmd.quotas[idx].quota = cpu_to_le32(QUOTA_LOWLAT_MIN); in iwl_mvm_update_quotas()
273 cpu_to_le32(quota * data.n_interfaces[i]); in iwl_mvm_update_quotas()
279 cmd.quotas[idx].max_duration = cpu_to_le32(0); in iwl_mvm_update_quotas()
307 if (cmd.quotas[i].id_and_color == cpu_to_le32(FW_CTXT_INVALID)) in iwl_mvm_update_quotas()
Dscan.c169 return cpu_to_le32(PHY_BAND_24); in iwl_mvm_scan_rxon_flags()
171 return cpu_to_le32(PHY_BAND_5); in iwl_mvm_scan_rxon_flags()
186 return cpu_to_le32(IWL_RATE_1M_PLCP | RATE_MCS_CCK_MSK | in iwl_mvm_scan_rate_n_flags()
189 return cpu_to_le32(IWL_RATE_6M_PLCP | tx_ant); in iwl_mvm_scan_rate_n_flags()
573 tx_cmd[0].tx_flags = cpu_to_le32(TX_CMD_FLG_SEQ_CTL | in iwl_mvm_scan_fill_tx_cmd()
580 tx_cmd[1].tx_flags = cpu_to_le32(TX_CMD_FLG_SEQ_CTL | in iwl_mvm_scan_fill_tx_cmd()
603 cpu_to_le32(IWL_UNIFIED_SCAN_CHANNEL_PARTIAL | in iwl_mvm_lmac_scan_cfg_channels()
704 return cpu_to_le32(prio); in iwl_mvm_scan_priority()
707 return cpu_to_le32(IWL_SCAN_PRIORITY_LOW); in iwl_mvm_scan_priority()
710 return cpu_to_le32(IWL_SCAN_PRIORITY_MEDIUM); in iwl_mvm_scan_priority()
[all …]
Dbinding.c88 cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(phyctxt->id, in iwl_mvm_binding_cmd()
90 cmd.action = cpu_to_le32(action); in iwl_mvm_binding_cmd()
91 cmd.phy = cpu_to_le32(FW_CMD_ID_AND_COLOR(phyctxt->id, in iwl_mvm_binding_cmd()
95 cmd.macs[i] = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_binding_cmd()
97 cmd.macs[i] = cpu_to_le32(FW_CMD_ID_AND_COLOR(data->ids[i], in iwl_mvm_binding_cmd()
Dsta.c105 .mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color), in iwl_mvm_sta_send_to_fw()
107 .station_flags_msk = cpu_to_le32(STA_FLG_FAT_EN_MSK | in iwl_mvm_sta_send_to_fw()
115 add_sta_cmd.tfd_queue_msk = cpu_to_le32(mvm_sta->tfd_queue_msk); in iwl_mvm_sta_send_to_fw()
121 add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_FAT_EN_160MHZ); in iwl_mvm_sta_send_to_fw()
124 add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_FAT_EN_80MHZ); in iwl_mvm_sta_send_to_fw()
127 add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_FAT_EN_40MHZ); in iwl_mvm_sta_send_to_fw()
132 cpu_to_le32(STA_FLG_FAT_EN_20MHZ); in iwl_mvm_sta_send_to_fw()
138 add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_MIMO_EN_SISO); in iwl_mvm_sta_send_to_fw()
141 add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_MIMO_EN_MIMO2); in iwl_mvm_sta_send_to_fw()
144 add_sta_cmd.station_flags |= cpu_to_le32(STA_FLG_MIMO_EN_MIMO3); in iwl_mvm_sta_send_to_fw()
[all …]
Dtof.c77 tof_data->tof_cfg.sub_grp_cmd_id = cpu_to_le32(TOF_CONFIG_CMD); in iwl_mvm_tof_init()
82 cpu_to_le32(TOF_RESPONDER_CONFIG_CMD); in iwl_mvm_tof_init()
87 tof_data->range_req.sub_grp_cmd_id = cpu_to_le32(TOF_RANGE_REQ_CMD); in iwl_mvm_tof_init()
93 cpu_to_le32(TOF_RANGE_REQ_EXT_CMD); in iwl_mvm_tof_init()
146 .sub_grp_cmd_id = cpu_to_le32(TOF_RANGE_ABORT_CMD), in iwl_mvm_tof_range_abort_cmd()
Doffloading.c152 addrs[i].config_num = cpu_to_le32(j); in iwl_mvm_send_proto_offload()
158 cmd.v3s.num_valid_ipv6_addrs = cpu_to_le32(i); in iwl_mvm_send_proto_offload()
160 cmd.v3l.num_valid_ipv6_addrs = cpu_to_le32(i); in iwl_mvm_send_proto_offload()
213 common->enabled = cpu_to_le32(enabled); in iwl_mvm_send_proto_offload()
Dmac80211.c1014 (*dump_data)->type = cpu_to_le32(IWL_FW_ERROR_DUMP_RXF); in iwl_mvm_dump_fifos()
1015 (*dump_data)->len = cpu_to_le32(fifo_len + sizeof(*fifo_hdr)); in iwl_mvm_dump_fifos()
1017 fifo_hdr->fifo_num = cpu_to_le32(i); in iwl_mvm_dump_fifos()
1019 cpu_to_le32(iwl_trans_read_prph(mvm->trans, in iwl_mvm_dump_fifos()
1023 cpu_to_le32(iwl_trans_read_prph(mvm->trans, in iwl_mvm_dump_fifos()
1027 cpu_to_le32(iwl_trans_read_prph(mvm->trans, in iwl_mvm_dump_fifos()
1031 cpu_to_le32(iwl_trans_read_prph(mvm->trans, in iwl_mvm_dump_fifos()
1035 cpu_to_le32(iwl_trans_read_prph(mvm->trans, in iwl_mvm_dump_fifos()
1073 (*dump_data)->type = cpu_to_le32(IWL_FW_ERROR_DUMP_TXF); in iwl_mvm_dump_fifos()
1074 (*dump_data)->len = cpu_to_le32(fifo_len + sizeof(*fifo_hdr)); in iwl_mvm_dump_fifos()
[all …]
Dd3.c171 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_wowlan_program_keys()
230 tkip_tx_sc->iv32 = cpu_to_le32(seq.tkip.iv32); in iwl_mvm_wowlan_program_keys()
255 tkip_sc[i].iv32 = cpu_to_le32(seq.tkip.iv32); in iwl_mvm_wowlan_program_keys()
352 pattern_cmd->n_patterns = cpu_to_le32(wowlan->n_patterns); in iwl_mvm_send_patterns()
555 cfg->initial_sequence_number = cpu_to_le32(tcp->payload_seq.start); in iwl_mvm_send_remote_wake_cfg()
642 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id, in iwl_mvm_d3_reprogram()
644 binding_cmd.action = cpu_to_le32(FW_CTXT_ACTION_ADD); in iwl_mvm_d3_reprogram()
646 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id, in iwl_mvm_d3_reprogram()
648 binding_cmd.macs[0] = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_d3_reprogram()
651 binding_cmd.macs[i] = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_d3_reprogram()
[all …]
Dtdls.c140 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); in iwl_mvm_tdls_config()
159 cpu_to_le32(sta->tdls_initiator ? 1 : 0); in iwl_mvm_tdls_config()
412 cmd.timing.frame_timestamp = cpu_to_le32(timestamp); in iwl_mvm_tdls_config_channel_switch()
413 cmd.timing.switch_time = cpu_to_le32(switch_time); in iwl_mvm_tdls_config_channel_switch()
414 cmd.timing.switch_timeout = cpu_to_le32(switch_timeout); in iwl_mvm_tdls_config_channel_switch()
424 cmd.peer_sta_id = cpu_to_le32(mvmsta->sta_id); in iwl_mvm_tdls_config_channel_switch()
456 cpu_to_le32(TU_TO_US(vif->bss_conf.dtim_period * in iwl_mvm_tdls_config_channel_switch()
460 cmd.frame.switch_time_offset = cpu_to_le32(ch_sw_tm_ie + 2); in iwl_mvm_tdls_config_channel_switch()
Dfw.c82 #define UCODE_VALID_OK cpu_to_le32(0x1)
101 .valid = cpu_to_le32(valid_tx_ant), in iwl_send_tx_ant_cfg()
336 cpu_to_le32(PAGING_CMD_IS_SECURED | in iwl_send_paging_cmd()
340 .block_size = cpu_to_le32(BLOCK_2_EXP_SIZE), in iwl_send_paging_cmd()
341 .block_num = cpu_to_le32(mvm->num_of_paging_blk), in iwl_send_paging_cmd()
347 cpu_to_le32(mvm->fw_paging_db[blk_idx].fw_paging_phys >> in iwl_send_paging_cmd()
364 .item_id = cpu_to_le32(IWL_FW_ITEM_ID_PAGING), in iwl_trans_get_paging_item()
385 if (item_resp->item_id != cpu_to_le32(IWL_FW_ITEM_ID_PAGING)) { in iwl_trans_get_paging_item()
638 phy_cfg_cmd.phy_cfg = cpu_to_le32(iwl_mvm_get_phy_config(mvm)); in iwl_send_phy_cfg_cmd()
847 desc->trig_desc.type = cpu_to_le32(trig); in iwl_mvm_fw_dbg_collect()
[all …]
/linux-4.4.14/fs/ntfs/
Dusnjrnl.h119 USN_REASON_DATA_OVERWRITE = cpu_to_le32(0x00000001),
120 USN_REASON_DATA_EXTEND = cpu_to_le32(0x00000002),
121 USN_REASON_DATA_TRUNCATION = cpu_to_le32(0x00000004),
122 USN_REASON_NAMED_DATA_OVERWRITE = cpu_to_le32(0x00000010),
123 USN_REASON_NAMED_DATA_EXTEND = cpu_to_le32(0x00000020),
124 USN_REASON_NAMED_DATA_TRUNCATION= cpu_to_le32(0x00000040),
125 USN_REASON_FILE_CREATE = cpu_to_le32(0x00000100),
126 USN_REASON_FILE_DELETE = cpu_to_le32(0x00000200),
127 USN_REASON_EA_CHANGE = cpu_to_le32(0x00000400),
128 USN_REASON_SECURITY_CHANGE = cpu_to_le32(0x00000800),
[all …]
Dlayout.h106 magic_FILE = cpu_to_le32(0x454c4946), /* Mft entry. */
107 magic_INDX = cpu_to_le32(0x58444e49), /* Index buffer. */
108 magic_HOLE = cpu_to_le32(0x454c4f48), /* ? (NTFS 3.0+?) */
111 magic_RSTR = cpu_to_le32(0x52545352), /* Restart page. */
112 magic_RCRD = cpu_to_le32(0x44524352), /* Log record page. */
115 magic_CHKD = cpu_to_le32(0x444b4843), /* Modified by chkdsk. */
118 magic_BAAD = cpu_to_le32(0x44414142), /* Failed multi sector
124 magic_empty = cpu_to_le32(0xffffffff) /* Record is empty. */
469 AT_UNUSED = cpu_to_le32( 0),
470 AT_STANDARD_INFORMATION = cpu_to_le32( 0x10),
[all …]
Dendian.h70 return (__force sle32)cpu_to_le32(x); in cpu_to_sle32()
85 return (__force sle32)cpu_to_le32(*x); in cpu_to_sle32p()
/linux-4.4.14/include/uapi/linux/
Dncp.h74 #define RIM_NAME (cpu_to_le32(1))
75 #define RIM_SPACE_ALLOCATED (cpu_to_le32(2))
76 #define RIM_ATTRIBUTES (cpu_to_le32(4))
77 #define RIM_DATA_SIZE (cpu_to_le32(8))
78 #define RIM_TOTAL_SIZE (cpu_to_le32(0x10))
79 #define RIM_EXT_ATTR_INFO (cpu_to_le32(0x20))
80 #define RIM_ARCHIVE (cpu_to_le32(0x40))
81 #define RIM_MODIFY (cpu_to_le32(0x80))
82 #define RIM_CREATION (cpu_to_le32(0x100))
83 #define RIM_OWNING_NAMESPACE (cpu_to_le32(0x200))
[all …]
/linux-4.4.14/drivers/net/ethernet/3com/
Dtyphoon.h177 #define TYPHOON_TX_PF_NO_CRC cpu_to_le32(0x00000001)
178 #define TYPHOON_TX_PF_IP_CHKSUM cpu_to_le32(0x00000002)
179 #define TYPHOON_TX_PF_TCP_CHKSUM cpu_to_le32(0x00000004)
180 #define TYPHOON_TX_PF_TCP_SEGMENT cpu_to_le32(0x00000008)
181 #define TYPHOON_TX_PF_INSERT_VLAN cpu_to_le32(0x00000010)
182 #define TYPHOON_TX_PF_IPSEC cpu_to_le32(0x00000020)
183 #define TYPHOON_TX_PF_VLAN_PRIORITY cpu_to_le32(0x00000040)
184 #define TYPHOON_TX_PF_UDP_CHKSUM cpu_to_le32(0x00000080)
185 #define TYPHOON_TX_PF_PAD_FRAME cpu_to_le32(0x00000100)
186 #define TYPHOON_TX_PF_RESERVED cpu_to_le32(0x00000e00)
[all …]
Dtyphoon.c535 indexes->respCleared = cpu_to_le32(cleared); in typhoon_process_response()
707 tcpd->respAddrLo = cpu_to_le32(tcpd_offset); in typhoon_tso_fill()
708 tcpd->bytesTx = cpu_to_le32(skb->len); in typhoon_tso_fill()
776 cpu_to_le32(htons(skb_vlan_tag_get(skb)) << in typhoon_start_tx()
798 txd->frag.addr = cpu_to_le32(skb_dma); in typhoon_start_tx()
809 txd->frag.addr = cpu_to_le32(skb_dma); in typhoon_start_tx()
827 txd->frag.addr = cpu_to_le32(skb_dma); in typhoon_start_tx()
886 xp_cmd.parm2 = cpu_to_le32(mc_filter[0]); in typhoon_set_rx_mode()
887 xp_cmd.parm3 = cpu_to_le32(mc_filter[1]); in typhoon_set_rx_mode()
1189 iface->ringIndex = cpu_to_le32(shared_dma); in typhoon_init_interface()
[all …]
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Drtl8723au_xmit.c51 ptxdesc->txdw7 &= cpu_to_le32(0xffff0000); in rtl8192cu_cal_txdesc_chksum()
56 ptxdesc->txdw7 |= cpu_to_le32(0x0000ffff&checksum); in rtl8192cu_cal_txdesc_chksum()
66 ptxdesc->txdw1 |= cpu_to_le32((0x01<<22)&0x00c00000); in fill_txdesc_sectype()
70 ptxdesc->txdw1 |= cpu_to_le32((0x01<<22)&0x00c00000); in fill_txdesc_sectype()
73 ptxdesc->txdw1 |= cpu_to_le32((0x03<<22)&0x00c00000); in fill_txdesc_sectype()
88 *pdw |= cpu_to_le32(BIT(12)); in fill_txdesc_vcs()
91 *pdw |= cpu_to_le32(BIT(11)); in fill_txdesc_vcs()
99 *pdw |= cpu_to_le32(BIT(13)); in fill_txdesc_vcs()
103 *pdw |= (pattrib->bwmode&HT_CHANNEL_WIDTH_40) ? cpu_to_le32(BIT(27)) : 0; in fill_txdesc_vcs()
106 *pdw |= cpu_to_le32((0x01<<28)&0x30000000); in fill_txdesc_vcs()
[all …]
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Drtl8188eu_xmit.c56 ptxdesc->txdw7 &= cpu_to_le32(0xffff0000); in rtl8188eu_cal_txdesc_chksum()
60 ptxdesc->txdw7 |= cpu_to_le32(0x0000ffff & checksum); in rtl8188eu_cal_txdesc_chksum()
75 ptxdesc->txdw0 |= cpu_to_le32(OWN | FSG | LSG); /* own, bFirstSeg, bLastSeg; */ in rtl8188e_fill_fake_txdesc()
77 …ptxdesc->txdw0 |= cpu_to_le32(((TXDESC_SIZE+OFFSET_SZ)<<OFFSET_SHT)&0x00ff0000); /* 32 bytes for T… in rtl8188e_fill_fake_txdesc()
79 ptxdesc->txdw0 |= cpu_to_le32(BufferLen&0x0000ffff); /* Buffer size + command header */ in rtl8188e_fill_fake_txdesc()
82 ptxdesc->txdw1 |= cpu_to_le32((QSLT_MGNT<<QSEL_SHT)&0x00001f00); /* Fixed queue of Mgnt queue */ in rtl8188e_fill_fake_txdesc()
86 ptxdesc->txdw1 |= cpu_to_le32(NAVUSEHDR); in rtl8188e_fill_fake_txdesc()
88 ptxdesc->txdw4 |= cpu_to_le32(BIT(7)); /* Hw set sequence number */ in rtl8188e_fill_fake_txdesc()
89 ptxdesc->txdw3 |= cpu_to_le32((8 << 28)); /* set bit3 to 1. Suugested by TimChen. 2009.12.29. */ in rtl8188e_fill_fake_txdesc()
93 ptxdesc->txdw2 |= cpu_to_le32(BIT(23)); /* BT NULL */ in rtl8188e_fill_fake_txdesc()
[all …]
/linux-4.4.14/fs/dlm/
Dutil.c27 hd->h_version = cpu_to_le32(hd->h_version); in header_out()
28 hd->h_lockspace = cpu_to_le32(hd->h_lockspace); in header_out()
29 hd->h_nodeid = cpu_to_le32(hd->h_nodeid); in header_out()
90 ms->m_type = cpu_to_le32(ms->m_type); in dlm_message_out()
91 ms->m_nodeid = cpu_to_le32(ms->m_nodeid); in dlm_message_out()
92 ms->m_pid = cpu_to_le32(ms->m_pid); in dlm_message_out()
93 ms->m_lkid = cpu_to_le32(ms->m_lkid); in dlm_message_out()
94 ms->m_remid = cpu_to_le32(ms->m_remid); in dlm_message_out()
95 ms->m_parent_lkid = cpu_to_le32(ms->m_parent_lkid); in dlm_message_out()
96 ms->m_parent_remid = cpu_to_le32(ms->m_parent_remid); in dlm_message_out()
[all …]
Drcom.c77 rs->rs_flags = cpu_to_le32(flags); in set_rcom_status()
87 rf->rf_lvblen = cpu_to_le32(ls->ls_lvblen); in set_rcom_config()
88 rf->rf_lsflags = cpu_to_le32(ls->ls_exflags); in set_rcom_config()
92 rf->rf_generation = cpu_to_le32(ls->ls_generation); in set_rcom_config()
392 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock()
393 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock()
394 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); in pack_rcom_lock()
395 rl->rl_flags = cpu_to_le32(lkb->lkb_flags); in pack_rcom_lock()
396 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock()
495 rf->rf_lvblen = cpu_to_le32(~0U); in dlm_send_ls_not_ready()
/linux-4.4.14/drivers/usb/gadget/function/
Drndis.c70 static const __le32 rndis_driver_version = cpu_to_le32(1);
203 resp->InformationBufferOffset = cpu_to_le32(16); in gen_ndis_query_resp()
218 outbuf[i] = cpu_to_le32(oid_supported_list[i]); in gen_ndis_query_resp()
231 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
238 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
246 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
254 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
264 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
266 *outbuf = cpu_to_le32(params->speed); in gen_ndis_query_resp()
274 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
[all …]
/linux-4.4.14/fs/cifs/
Dsmb2pdu.h88 #define SMB2_PROTO_NUMBER cpu_to_le32(0x424d53fe)
142 #define SMB2_FLAGS_SERVER_TO_REDIR cpu_to_le32(0x00000001)
143 #define SMB2_FLAGS_ASYNC_COMMAND cpu_to_le32(0x00000002)
144 #define SMB2_FLAGS_RELATED_OPERATIONS cpu_to_le32(0x00000004)
145 #define SMB2_FLAGS_SIGNED cpu_to_le32(0x00000008)
146 #define SMB2_FLAGS_DFS_OPERATIONS cpu_to_le32(0x10000000)
357 #define SMB2_SHARE_CAP_DFS cpu_to_le32(0x00000008) /* all dialects */
358 #define SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY cpu_to_le32(0x00000010) /* 3.0 */
359 #define SMB2_SHARE_CAP_SCALEOUT cpu_to_le32(0x00000020) /* 3.0 */
360 #define SMB2_SHARE_CAP_CLUSTER cpu_to_le32(0x00000040) /* 3.0 */
[all …]
Dntlmssp.h24 #define NtLmNegotiate cpu_to_le32(1)
25 #define NtLmChallenge cpu_to_le32(2)
26 #define NtLmAuthenticate cpu_to_le32(3)
27 #define UnknownMessage cpu_to_le32(8)
Dsmb2pdu.c107 hdr->ProcessId = cpu_to_le32((__u16)current->tgid); in smb2_hdr_assemble()
348 req->NegotiateContextOffset = cpu_to_le32(OFFSET_OF_NEG_CONTEXT); in assemble_neg_contexts()
415 req->Capabilities = cpu_to_le32(ses->server->vals->req_capabilities); in SMB2_negotiate()
525 cpu_to_le32(tcon->ses->server->vals->req_capabilities); in smb3_validate_negotiate()
1069 buf->ccontext.DataLength = cpu_to_le32(16); in create_durable_buf()
1092 buf->ccontext.DataLength = cpu_to_le32(16); in create_reconnect_durable_buf()
1148 req->CreateContextsOffset = cpu_to_le32( in add_lease_context()
1169 buf->ccontext.DataLength = cpu_to_le32(sizeof(struct durable_context_v2)); in create_durable_v2_buf()
1175 buf->dcontext.Flags = cpu_to_le32(SMB2_DHANDLE_FLAG_PERSISTENT); in create_durable_v2_buf()
1201 cpu_to_le32(sizeof(struct durable_reconnect_context_v2)); in create_reconnect_durable_v2_buf()
[all …]
Dcifssmb.c1048 pdata->PosixOpenFlags = cpu_to_le32(posix_flags); in CIFSPOSIXCreate()
1049 pdata->OpenFlags = cpu_to_le32(*pOplock); in CIFSPOSIXCreate()
1089 if (cpu_to_le32(FILE_CREATE) == psx_rsp->CreateAction) in CIFSPOSIXCreate()
1093 pRetData->Type = cpu_to_le32(-1); /* unknown */ in CIFSPOSIXCreate()
1099 pRetData->Type = cpu_to_le32(-1); in CIFSPOSIXCreate()
1256 cpu_to_le32(le16_to_cpu(pSMBr->FileAttributes)); in SMBLegacyOpen()
1261 pfile_info->NumberOfLinks = cpu_to_le32(1); in SMBLegacyOpen()
1321 req->OpenFlags = cpu_to_le32(REQ_OPLOCK); in CIFS_open()
1323 req->OpenFlags = cpu_to_le32(REQ_BATCHOPLOCK); in CIFS_open()
1325 req->DesiredAccess = cpu_to_le32(desired_access); in CIFS_open()
[all …]
Dsess.c355 sec_blob->NegotiateFlags = cpu_to_le32(flags); in build_ntlmssp_negotiate_blob()
395 sec_blob->NegotiateFlags = cpu_to_le32(flags); in build_ntlmssp_auth_blob()
398 cpu_to_le32(sizeof(AUTHENTICATE_MESSAGE)); in build_ntlmssp_auth_blob()
402 sec_blob->NtChallengeResponse.BufferOffset = cpu_to_le32(tmp - pbuffer); in build_ntlmssp_auth_blob()
426 sec_blob->DomainName.BufferOffset = cpu_to_le32(tmp - pbuffer); in build_ntlmssp_auth_blob()
435 sec_blob->DomainName.BufferOffset = cpu_to_le32(tmp - pbuffer); in build_ntlmssp_auth_blob()
442 sec_blob->UserName.BufferOffset = cpu_to_le32(tmp - pbuffer); in build_ntlmssp_auth_blob()
451 sec_blob->UserName.BufferOffset = cpu_to_le32(tmp - pbuffer); in build_ntlmssp_auth_blob()
457 sec_blob->WorkstationName.BufferOffset = cpu_to_le32(tmp - pbuffer); in build_ntlmssp_auth_blob()
466 sec_blob->SessionKey.BufferOffset = cpu_to_le32(tmp - pbuffer); in build_ntlmssp_auth_blob()
[all …]
/linux-4.4.14/drivers/staging/rtl8712/
Drtl8712_xmit.c267 ptx_desc->txdw0 = cpu_to_le32(CMD_HDR_SZ & 0xffff); in r8712_construct_txaggr_cmd_desc()
269 cpu_to_le32(((TXDESC_SIZE + OFFSET_SZ) << OFFSET_SHT) & in r8712_construct_txaggr_cmd_desc()
271 ptx_desc->txdw0 |= cpu_to_le32(OWN | FSG | LSG); in r8712_construct_txaggr_cmd_desc()
274 ptx_desc->txdw1 |= cpu_to_le32((0x13 << QSEL_SHT) & 0x00001f00); in r8712_construct_txaggr_cmd_desc()
290 pcmd_hdr->cmd_dw0 = cpu_to_le32((GEN_CMD_CODE(_AMSDU_TO_AMPDU) << 16) | in r8712_construct_txaggr_cmd_hdr()
330 ptx_desc->txdw0 = cpu_to_le32((ptx_desc->txdw0 & 0xffff0000) | in r8712_append_mpdu_unit()
388 pcmd_hdr->cmd_dw0 = cpu_to_le32(((total_length - CMD_HDR_SZ) & in r8712_dump_aggr_xframe()
393 pcmd_hdr->cmd_dw1 = cpu_to_le32((pxmitbuf->aggr_nr & 0xff)| in r8712_dump_aggr_xframe()
402 ptxdesc->txdw0 |= cpu_to_le32 in r8712_dump_aggr_xframe()
407 ptxdesc->txdw0 |= cpu_to_le32 in r8712_dump_aggr_xframe()
[all …]
Drtl871x_cmd.c240 psurveyPara->bsslimit = cpu_to_le32(48); in r8712_sitesurvey_cmd()
241 psurveyPara->passive_mode = cpu_to_le32(pmlmepriv->passive_mode); in r8712_sitesurvey_cmd()
246 psurveyPara->ss_ssidlen = cpu_to_le32(pssid->SsidLength); in r8712_sitesurvey_cmd()
571 psecnetwork->Length = cpu_to_le32(psecnetwork->Length); in r8712_joinbss_cmd()
572 psecnetwork->Ssid.SsidLength = cpu_to_le32( in r8712_joinbss_cmd()
574 psecnetwork->Privacy = cpu_to_le32(psecnetwork->Privacy); in r8712_joinbss_cmd()
575 psecnetwork->Rssi = cpu_to_le32(psecnetwork->Rssi); in r8712_joinbss_cmd()
576 psecnetwork->NetworkTypeInUse = cpu_to_le32( in r8712_joinbss_cmd()
578 psecnetwork->Configuration.ATIMWindow = cpu_to_le32( in r8712_joinbss_cmd()
580 psecnetwork->Configuration.BeaconPeriod = cpu_to_le32( in r8712_joinbss_cmd()
[all …]
Dhal_init.c198 ptx_desc->txdw0 |= cpu_to_le32(BIT(28)); in rtl8712_dl_fw()
200 ptx_desc->txdw0 |= cpu_to_le32(dump_imem_sz & in rtl8712_dl_fw()
227 ptx_desc->txdw0 |= cpu_to_le32(BIT(28)); in rtl8712_dl_fw()
229 ptx_desc->txdw0 |= cpu_to_le32(dump_emem_sz & in rtl8712_dl_fw()
281 ptx_desc->txdw0 |= cpu_to_le32(fwhdr.fw_priv_sz & 0x0000ffff); in rtl8712_dl_fw()
282 ptx_desc->txdw0 |= cpu_to_le32(BIT(28)); in rtl8712_dl_fw()
Drtl8712_cmd.c348 pdesc->txdw0 |= cpu_to_le32((wr_sz - TXDESC_SIZE) & in r8712_cmd_thread()
358 pdesc->txdw0 |= cpu_to_le32(((TXDESC_SIZE + in r8712_cmd_thread()
362 pdesc->txdw0 |= cpu_to_le32(((TXDESC_SIZE + in r8712_cmd_thread()
367 pdesc->txdw0 |= cpu_to_le32(OWN | FSG | LSG); in r8712_cmd_thread()
368 pdesc->txdw1 |= cpu_to_le32((0x13 << QSEL_SHT) & in r8712_cmd_thread()
371 *pcmdbuf = cpu_to_le32((cmdsz & 0x0000ffff) | in r8712_cmd_thread()
Dusb_ops.c113 data = cpu_to_le32(data & 0x000000ff); in usb_write8()
134 data = cpu_to_le32(data & 0x0000ffff); in usb_write16()
154 data = cpu_to_le32(val); in usb_write32()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_vce.c364 ib.ptr[ib.length_dw++] = cpu_to_le32(0x0000000c); /* len */ in radeon_vce_get_create_msg()
365 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); /* session cmd */ in radeon_vce_get_create_msg()
366 ib.ptr[ib.length_dw++] = cpu_to_le32(handle); in radeon_vce_get_create_msg()
368 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000030); /* len */ in radeon_vce_get_create_msg()
369 ib.ptr[ib.length_dw++] = cpu_to_le32(0x01000001); /* create cmd */ in radeon_vce_get_create_msg()
370 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000000); in radeon_vce_get_create_msg()
371 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000042); in radeon_vce_get_create_msg()
372 ib.ptr[ib.length_dw++] = cpu_to_le32(0x0000000a); in radeon_vce_get_create_msg()
373 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000001); in radeon_vce_get_create_msg()
374 ib.ptr[ib.length_dw++] = cpu_to_le32(0x00000080); in radeon_vce_get_create_msg()
[all …]
Dradeon_uvd.c745 msg[0] = cpu_to_le32(0x00000de4); in radeon_uvd_get_create_msg()
746 msg[1] = cpu_to_le32(0x00000000); in radeon_uvd_get_create_msg()
747 msg[2] = cpu_to_le32(handle); in radeon_uvd_get_create_msg()
748 msg[3] = cpu_to_le32(0x00000000); in radeon_uvd_get_create_msg()
749 msg[4] = cpu_to_le32(0x00000000); in radeon_uvd_get_create_msg()
750 msg[5] = cpu_to_le32(0x00000000); in radeon_uvd_get_create_msg()
751 msg[6] = cpu_to_le32(0x00000000); in radeon_uvd_get_create_msg()
752 msg[7] = cpu_to_le32(0x00000780); in radeon_uvd_get_create_msg()
753 msg[8] = cpu_to_le32(0x00000440); in radeon_uvd_get_create_msg()
754 msg[9] = cpu_to_le32(0x00000000); in radeon_uvd_get_create_msg()
[all …]
/linux-4.4.14/drivers/usb/gadget/legacy/
Dwebcam.c102 .dwClockFrequency = cpu_to_le32(48000000),
195 .dwMinBitRate = cpu_to_le32(18432000),
196 .dwMaxBitRate = cpu_to_le32(55296000),
197 .dwMaxVideoFrameBufferSize = cpu_to_le32(460800),
198 .dwDefaultFrameInterval = cpu_to_le32(666666),
200 .dwFrameInterval[0] = cpu_to_le32(666666),
201 .dwFrameInterval[1] = cpu_to_le32(1000000),
202 .dwFrameInterval[2] = cpu_to_le32(5000000),
213 .dwMinBitRate = cpu_to_le32(29491200),
214 .dwMaxBitRate = cpu_to_le32(29491200),
[all …]
/linux-4.4.14/drivers/net/wireless/iwlegacy/
Dcommands.h381 #define UCODE_VALID_OK cpu_to_le32(0x1)
568 #define RXON_FLG_BAND_24G_MSK cpu_to_le32(1 << 0)
569 #define RXON_FLG_CCK_MSK cpu_to_le32(1 << 1)
571 #define RXON_FLG_AUTO_DETECT_MSK cpu_to_le32(1 << 2)
573 #define RXON_FLG_TGG_PROTECT_MSK cpu_to_le32(1 << 3)
575 #define RXON_FLG_SHORT_SLOT_MSK cpu_to_le32(1 << 4)
576 #define RXON_FLG_SHORT_PREAMBLE_MSK cpu_to_le32(1 << 5)
578 #define RXON_FLG_DIS_DIV_MSK cpu_to_le32(1 << 7)
579 #define RXON_FLG_ANT_SEL_MSK cpu_to_le32(0x0f00)
580 #define RXON_FLG_ANT_A_MSK cpu_to_le32(1 << 8)
[all …]
/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_vq.c249 if (resp->type != cpu_to_le32(VIRTIO_GPU_RESP_OK_NODATA)) in virtio_gpu_dequeue_ctrl_func()
251 if (resp->flags & cpu_to_le32(VIRTIO_GPU_FLAG_FENCE)) { in virtio_gpu_dequeue_ctrl_func()
432 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_2D); in virtio_gpu_cmd_create_resource()
433 cmd_p->resource_id = cpu_to_le32(resource_id); in virtio_gpu_cmd_create_resource()
434 cmd_p->format = cpu_to_le32(format); in virtio_gpu_cmd_create_resource()
435 cmd_p->width = cpu_to_le32(width); in virtio_gpu_cmd_create_resource()
436 cmd_p->height = cpu_to_le32(height); in virtio_gpu_cmd_create_resource()
450 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_UNREF); in virtio_gpu_cmd_unref_resource()
451 cmd_p->resource_id = cpu_to_le32(resource_id); in virtio_gpu_cmd_unref_resource()
465 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING); in virtio_gpu_cmd_resource_inval_backing()
[all …]
Dvirtgpu_ioctl.c36 dst->x = cpu_to_le32(src->x); in convert_to_hw_box()
37 dst->y = cpu_to_le32(src->y); in convert_to_hw_box()
38 dst->z = cpu_to_le32(src->z); in convert_to_hw_box()
39 dst->w = cpu_to_le32(src->w); in convert_to_hw_box()
40 dst->h = cpu_to_le32(src->h); in convert_to_hw_box()
41 dst->d = cpu_to_le32(src->d); in convert_to_hw_box()
286 rc_3d.resource_id = cpu_to_le32(res_id); in virtio_gpu_resource_create_ioctl()
287 rc_3d.target = cpu_to_le32(rc->target); in virtio_gpu_resource_create_ioctl()
288 rc_3d.format = cpu_to_le32(rc->format); in virtio_gpu_resource_create_ioctl()
289 rc_3d.bind = cpu_to_le32(rc->bind); in virtio_gpu_resource_create_ioctl()
[all …]
Dvirtgpu_display.c52 output->cursor.hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_UPDATE_CURSOR); in virtio_gpu_hide_cursor()
90 cpu_to_le32(64), in virtio_gpu_crtc_cursor_set()
91 cpu_to_le32(64), in virtio_gpu_crtc_cursor_set()
102 output->cursor.hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_UPDATE_CURSOR); in virtio_gpu_crtc_cursor_set()
103 output->cursor.resource_id = cpu_to_le32(qobj->hw_res_handle); in virtio_gpu_crtc_cursor_set()
104 output->cursor.hot_x = cpu_to_le32(hot_x); in virtio_gpu_crtc_cursor_set()
105 output->cursor.hot_y = cpu_to_le32(hot_y); in virtio_gpu_crtc_cursor_set()
121 output->cursor.hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_MOVE_CURSOR); in virtio_gpu_crtc_cursor_move()
122 output->cursor.pos.x = cpu_to_le32(x); in virtio_gpu_crtc_cursor_move()
123 output->cursor.pos.y = cpu_to_le32(y); in virtio_gpu_crtc_cursor_move()
[all …]
/linux-4.4.14/drivers/scsi/aacraid/
Dcomminit.c106 init->InitStructRevision = cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION); in aac_alloc_comm()
108 init->InitStructRevision = cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_4); in aac_alloc_comm()
109 init->Sa_MSIXVectors = cpu_to_le32(Sa_MINIPORT_REVISION); in aac_alloc_comm()
110 init->fsrev = cpu_to_le32(dev->fsrev); in aac_alloc_comm()
119 init->AdapterFibsPhysicalAddress = cpu_to_le32((u32)phys); in aac_alloc_comm()
120 init->AdapterFibsSize = cpu_to_le32(fibsize); in aac_alloc_comm()
121 init->AdapterFibAlign = cpu_to_le32(sizeof(struct hw_fib)); in aac_alloc_comm()
131 init->HostPhysMemPages = cpu_to_le32(aac_max_hostphysmempages); in aac_alloc_comm()
133 init->HostPhysMemPages = cpu_to_le32(AAC_MAX_HOSTPHYSMEMPAGES); in aac_alloc_comm()
135 init->InitFlags = cpu_to_le32(INITFLAGS_DRIVER_USES_UTC_TIME | in aac_alloc_comm()
[all …]
Ddpcsup.c102 *(__le32 *)hwfib->data = cpu_to_le32(ST_OK); in aac_response_normal()
103 hwfib->header.XferState |= cpu_to_le32(AdapterProcessed); in aac_response_normal()
112 if (*pstatus & cpu_to_le32(0xffff0000)) in aac_response_normal()
113 *pstatus = cpu_to_le32(ST_OK); in aac_response_normal()
115 if (hwfib->header.XferState & cpu_to_le32(NoResponseExpected | Async)) in aac_response_normal()
117 if (hwfib->header.XferState & cpu_to_le32(NoResponseExpected)) in aac_response_normal()
224 *(__le32 *)hw_fib->data = cpu_to_le32(ST_OK); in aac_command_normal()
255 cpu_to_le32(NoMoreAifDataAvailable)) { in aac_aif_callback()
265 cmd->command = cpu_to_le32(AifReqEvent); in aac_aif_callback()
337 cmd->command = cpu_to_le32(AifReqEvent); in aac_intr_normal()
[all …]
Dcommsup.c135 dev->init->MaxIoCommands = cpu_to_le32((dev->scsi_host_ptr->can_queue + AAC_NUM_MGT_FIB) >> 1); in aac_fib_setup()
171 hw_fib->header.XferState = cpu_to_le32(0xffffffff); in aac_fib_setup()
274 …hw_fib->header.XferState = cpu_to_le32(HostOwned | FibInitialized | FibEmpty | FastResponseCapable… in aac_fib_init()
275 hw_fib->header.u.ReceiverFibAddress = cpu_to_le32(fibptr->hw_fib_pa); in aac_fib_init()
388 entry->size = cpu_to_le32(le16_to_cpu(hw_fib->header.Size)); in aac_queue_get()
397 entry->size = cpu_to_le32(le16_to_cpu(hw_fib->header.Size)); in aac_queue_get()
408 entry->addr = cpu_to_le32(fibptr->hw_fib_pa); in aac_queue_get()
448 if (!(hw_fib->header.XferState & cpu_to_le32(HostOwned))) in aac_fib_send()
465 hw_fib->header.XferState |= cpu_to_le32(Async | ResponseExpected); in aac_fib_send()
468 hw_fib->header.XferState |= cpu_to_le32(NoResponseExpected); in aac_fib_send()
[all …]
Daachba.c359 dinfo->command = cpu_to_le32(VM_ContainerConfig); in aac_get_config_status()
360 dinfo->type = cpu_to_le32(CT_GET_CONFIG_STATUS); in aac_get_config_status()
361 dinfo->count = cpu_to_le32(sizeof(((struct aac_get_config_status_resp *)NULL)->data)); in aac_get_config_status()
398 dinfo->command = cpu_to_le32(VM_ContainerConfig); in aac_get_config_status()
399 dinfo->type = cpu_to_le32(CT_COMMIT_CONFIG); in aac_get_config_status()
453 dinfo->command = cpu_to_le32(VM_ContainerConfig); in aac_get_containers()
454 dinfo->type = cpu_to_le32(CT_GET_CONTAINER_COUNT); in aac_get_containers()
566 dinfo->command = cpu_to_le32(VM_ContainerConfig); in aac_get_container_name()
567 dinfo->type = cpu_to_le32(CT_READ_NAME); in aac_get_container_name()
568 dinfo->cid = cpu_to_le32(scmd_id(scsicmd)); in aac_get_container_name()
[all …]
Dcommctrl.c447 response.version = cpu_to_le32(version); in check_revision()
449 response.build = cpu_to_le32(AAC_DRIVER_BUILD); in check_revision()
451 response.build = cpu_to_le32(9999); in check_revision()
503 srbfib->hw_fib_va->header.XferState &= ~cpu_to_le32(FastResponseCapable); in aac_send_raw_srb()
537 srbcmd->function = cpu_to_le32(SRBF_ExecuteScsi); // Force this in aac_send_raw_srb()
538 srbcmd->channel = cpu_to_le32(user_srbcmd->channel); in aac_send_raw_srb()
539 srbcmd->id = cpu_to_le32(user_srbcmd->id); in aac_send_raw_srb()
540 srbcmd->lun = cpu_to_le32(user_srbcmd->lun); in aac_send_raw_srb()
541 srbcmd->timeout = cpu_to_le32(user_srbcmd->timeout); in aac_send_raw_srb()
542 srbcmd->flags = cpu_to_le32(flags); in aac_send_raw_srb()
[all …]
Daacraid.h1018 #define AAC_FEATURE_FALCON cpu_to_le32(0x00000010)
1019 #define AAC_FEATURE_JBOD cpu_to_le32(0x08000000)
1021 #define AAC_OPTION_MU_RESET cpu_to_le32(0x00000001)
1022 #define AAC_OPTION_IGNORE_RESET cpu_to_le32(0x00000002)
1023 #define AAC_OPTION_POWER_MANAGEMENT cpu_to_le32(0x00000004)
1024 #define AAC_OPTION_DOORBELL_RESET cpu_to_le32(0x00004000)
1026 #define AAC_OPTION_VARIABLE_BLOCK_SIZE cpu_to_le32(0x00040000)
1028 #define AAC_OPTION_SUPPORTED_240_VOLUMES cpu_to_le32(0x10000000)
1072 #define AAC_OPT_SNAPSHOT cpu_to_le32(1)
1073 #define AAC_OPT_CLUSTERS cpu_to_le32(1<<1)
[all …]
/linux-4.4.14/fs/ubifs/
Dsb.c169 sup->flags = cpu_to_le32(sup_flags); in create_default_filesystem()
170 sup->min_io_size = cpu_to_le32(c->min_io_size); in create_default_filesystem()
171 sup->leb_size = cpu_to_le32(c->leb_size); in create_default_filesystem()
172 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem()
173 sup->max_leb_cnt = cpu_to_le32(c->max_leb_cnt); in create_default_filesystem()
175 sup->log_lebs = cpu_to_le32(log_lebs); in create_default_filesystem()
176 sup->lpt_lebs = cpu_to_le32(lpt_lebs); in create_default_filesystem()
177 sup->orph_lebs = cpu_to_le32(orph_lebs); in create_default_filesystem()
178 sup->jhead_cnt = cpu_to_le32(DEFAULT_JHEADS_CNT); in create_default_filesystem()
179 sup->fanout = cpu_to_le32(DEFAULT_FANOUT); in create_default_filesystem()
[all …]
Dcommit.c174 c->mst_node->log_lnum = cpu_to_le32(new_ltail_lnum); in do_commit()
175 c->mst_node->root_lnum = cpu_to_le32(zroot.lnum); in do_commit()
176 c->mst_node->root_offs = cpu_to_le32(zroot.offs); in do_commit()
177 c->mst_node->root_len = cpu_to_le32(zroot.len); in do_commit()
178 c->mst_node->ihead_lnum = cpu_to_le32(c->ihead_lnum); in do_commit()
179 c->mst_node->ihead_offs = cpu_to_le32(c->ihead_offs); in do_commit()
181 c->mst_node->lpt_lnum = cpu_to_le32(c->lpt_lnum); in do_commit()
182 c->mst_node->lpt_offs = cpu_to_le32(c->lpt_offs); in do_commit()
183 c->mst_node->nhead_lnum = cpu_to_le32(c->nhead_lnum); in do_commit()
184 c->mst_node->nhead_offs = cpu_to_le32(c->nhead_offs); in do_commit()
[all …]
Dkey.h114 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
115 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
194 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash()
195 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
245 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash()
246 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()
442 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write()
443 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write()
458 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write_idx()
459 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write_idx()
Djournal.c467 ino->atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in pack_inode()
469 ino->ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in pack_inode()
471 ino->mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in pack_inode()
472 ino->uid = cpu_to_le32(i_uid_read(inode)); in pack_inode()
473 ino->gid = cpu_to_le32(i_gid_read(inode)); in pack_inode()
474 ino->mode = cpu_to_le32(inode->i_mode); in pack_inode()
475 ino->flags = cpu_to_le32(ui->flags); in pack_inode()
477 ino->nlink = cpu_to_le32(inode->i_nlink); in pack_inode()
479 ino->data_len = cpu_to_le32(ui->data_len); in pack_inode()
480 ino->xattr_cnt = cpu_to_le32(ui->xattr_cnt); in pack_inode()
[all …]
/linux-4.4.14/drivers/media/pci/tw68/
Dtw68-risc.c50 *(rp++) = cpu_to_le32(RISC_JUMP); in tw68_risc_field()
56 *(rp++) = cpu_to_le32(RISC_SYNCO); in tw68_risc_field()
58 *(rp++) = cpu_to_le32(RISC_SYNCE); in tw68_risc_field()
71 *(rp++) = cpu_to_le32(RISC_LINESTART | in tw68_risc_field()
73 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field()
85 *(rp++) = cpu_to_le32(RISC_LINESTART | in tw68_risc_field()
88 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field()
93 *(rp++) = cpu_to_le32(RISC_INLINE | in tw68_risc_field()
96 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in tw68_risc_field()
103 *(rp++) = cpu_to_le32(RISC_INLINE | in tw68_risc_field()
[all …]
/linux-4.4.14/drivers/net/wireless/p54/
Dp54usb.c291 return cpu_to_le32(chk); in p54u_lm87_chksum()
344 reg->addr = cpu_to_le32(P54U_DEV_BASE); in p54u_tx_net2280()
345 reg->val = cpu_to_le32(ISL38XX_DEV_INT_DATA); in p54u_tx_net2280()
526 hdr->fw_load_addr = cpu_to_le32(ISL38XX_DEV_FIRMWARE_ADDR); in p54u_upload_firmware_3887()
527 hdr->fw_length = cpu_to_le32(priv->fw->size); in p54u_upload_firmware_3887()
528 hdr->crc = cpu_to_le32(~crc32_le(~0, (void *)&hdr->fw_load_addr, in p54u_upload_firmware_3887()
569 *((__le32 *)buf) = cpu_to_le32(~crc32_le(~0, priv->fw->data, in p54u_upload_firmware_3887()
643 cpu_to_le32((u32)(unsigned long)addr), data);\ in p54u_upload_firmware_net2280()
651 cpu_to_le32((u32)(unsigned long)addr), &reg);\ in p54u_upload_firmware_net2280()
658 reg |= cpu_to_le32(P54U_BRG_POWER_DOWN); in p54u_upload_firmware_net2280()
[all …]
Dp54pci.c59 P54P_WRITE(int_enable, cpu_to_le32(0)); in p54p_upload_firmware()
64 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RESET); in p54p_upload_firmware()
65 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RAMBOOT); in p54p_upload_firmware()
70 reg |= cpu_to_le32(ISL38XX_CTRL_STAT_RESET); in p54p_upload_firmware()
75 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RESET); in p54p_upload_firmware()
98 P54P_WRITE(direct_mem_base, cpu_to_le32(device_addr)); in p54p_upload_firmware()
112 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_CLKRUN); in p54p_upload_firmware()
113 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RESET); in p54p_upload_firmware()
114 reg |= cpu_to_le32(ISL38XX_CTRL_STAT_RAMBOOT); in p54p_upload_firmware()
119 reg |= cpu_to_le32(ISL38XX_CTRL_STAT_RESET); in p54p_upload_firmware()
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Dlib.c163 flush_cmd_v3.queue_control = cpu_to_le32(queue_control); in iwlagn_txfifo_flush()
194 cpu_to_le32(0xaaaaaaaa),
195 cpu_to_le32(0xaaaaaaaa),
196 cpu_to_le32(0xaeaaaaaa),
197 cpu_to_le32(0xaaaaaaaa),
198 cpu_to_le32(0xcc00ff28),
199 cpu_to_le32(0x0000aaaa),
200 cpu_to_le32(0xcc00aaaa),
201 cpu_to_le32(0x0000aaaa),
202 cpu_to_le32(0xc0004000),
[all …]
Dcommands.h377 #define UCODE_VALID_OK cpu_to_le32(0x1)
536 #define RXON_FLG_BAND_24G_MSK cpu_to_le32(1 << 0)
537 #define RXON_FLG_CCK_MSK cpu_to_le32(1 << 1)
539 #define RXON_FLG_AUTO_DETECT_MSK cpu_to_le32(1 << 2)
541 #define RXON_FLG_TGG_PROTECT_MSK cpu_to_le32(1 << 3)
543 #define RXON_FLG_SHORT_SLOT_MSK cpu_to_le32(1 << 4)
544 #define RXON_FLG_SHORT_PREAMBLE_MSK cpu_to_le32(1 << 5)
546 #define RXON_FLG_DIS_DIV_MSK cpu_to_le32(1 << 7)
547 #define RXON_FLG_ANT_SEL_MSK cpu_to_le32(0x0f00)
548 #define RXON_FLG_ANT_A_MSK cpu_to_le32(1 << 8)
[all …]
Dpower.c73 #define ASLP_TOUT(T) cpu_to_le32(T)
75 #define SLP_TOUT(T) cpu_to_le32((T) * TU_TO_USEC)
76 #define SLP_VEC(X0, X1, X2, X3, X4) {cpu_to_le32(X0), \
77 cpu_to_le32(X1), \
78 cpu_to_le32(X2), \
79 cpu_to_le32(X3), \
80 cpu_to_le32(X4)}
205 cpu_to_le32(period * (skip + 1)); in iwl_static_sleep_cmd()
210 cpu_to_le32((slp_itrvl / period) * period); in iwl_static_sleep_cmd()
233 cpu_to_le32(IWL_CONN_MAX_LISTEN_INTERVAL); in iwl_static_sleep_cmd()
[all …]
/linux-4.4.14/drivers/net/usb/
Drndis_host.c190 msg->msg_type = cpu_to_le32(RNDIS_MSG_KEEPALIVE_C); in rndis_command()
191 msg->msg_len = cpu_to_le32(sizeof *msg); in rndis_command()
192 msg->status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_command()
255 u.get->msg_type = cpu_to_le32(RNDIS_MSG_QUERY); in rndis_query()
256 u.get->msg_len = cpu_to_le32(sizeof *u.get + in_len); in rndis_query()
257 u.get->oid = cpu_to_le32(oid); in rndis_query()
258 u.get->len = cpu_to_le32(in_len); in rndis_query()
259 u.get->offset = cpu_to_le32(20); in rndis_query()
328 u.init->msg_type = cpu_to_le32(RNDIS_MSG_INIT); in generic_rndis_bind()
329 u.init->msg_len = cpu_to_le32(sizeof *u.init); in generic_rndis_bind()
[all …]
Dlg-vl600.c305 packet->len = cpu_to_le32(orig_len); in vl600_tx_fixup()
309 frame->len = cpu_to_le32(full_len); in vl600_tx_fixup()
310 frame->serial = cpu_to_le32(serial++); in vl600_tx_fixup()
311 frame->pkt_cnt = cpu_to_le32(1); in vl600_tx_fixup()
/linux-4.4.14/fs/jfs/
Djfs_imap.c240 dinom_le->in_freeiag = cpu_to_le32(imp->im_freeiag); in diSync()
241 dinom_le->in_nextiag = cpu_to_le32(imp->im_nextiag); in diSync()
242 dinom_le->in_numinos = cpu_to_le32(atomic_read(&imp->im_numinos)); in diSync()
243 dinom_le->in_numfree = cpu_to_le32(atomic_read(&imp->im_numfree)); in diSync()
244 dinom_le->in_nbperiext = cpu_to_le32(imp->im_nbperiext); in diSync()
245 dinom_le->in_l2nbperiext = cpu_to_le32(imp->im_l2nbperiext); in diSync()
248 cpu_to_le32(imp->im_agctl[index].inofree); in diSync()
250 cpu_to_le32(imp->im_agctl[index].extfree); in diSync()
252 cpu_to_le32(imp->im_agctl[index].numinos); in diSync()
254 cpu_to_le32(imp->im_agctl[index].numfree); in diSync()
[all …]
Djfs_mount.c341 if ((j_sb->s_flag & cpu_to_le32(JFS_BAD_SAIT)) != in chkSuper()
342 cpu_to_le32(JFS_BAD_SAIT)) { in chkSuper()
356 j_sb->s_flag |= cpu_to_le32(JFS_BAD_SAIT); in chkSuper()
359 if ((j_sb->s_flag & cpu_to_le32(JFS_GROUPCOMMIT)) != in chkSuper()
360 cpu_to_le32(JFS_GROUPCOMMIT)) in chkSuper()
361 j_sb->s_flag |= cpu_to_le32(JFS_GROUPCOMMIT); in chkSuper()
364 if (j_sb->s_state != cpu_to_le32(FM_CLEAN) && in chkSuper()
435 j_sb->s_state = cpu_to_le32(state); in updateSuper()
440 j_sb->s_logdev = cpu_to_le32(new_encode_dev(sbi->log->bdev->bd_dev)); in updateSuper()
441 j_sb->s_logserial = cpu_to_le32(sbi->log->serial); in updateSuper()
[all …]
Djfs_types.h74 pxd->len_addr = (pxd->len_addr & cpu_to_le32(~0xffffff)) | in PXDlength()
75 cpu_to_le32(len & 0xffffff); in PXDlength()
80 pxd->len_addr = (pxd->len_addr & cpu_to_le32(0xffffff)) | in PXDaddress()
81 cpu_to_le32((addr >> 32)<<24); in PXDaddress()
82 pxd->addr2 = cpu_to_le32(addr & 0xffffffff); in PXDaddress()
129 #define DXDsize(dxd, size32) ((dxd)->size = cpu_to_le32(size32))
Djfs_dmap.c285 dbmp_le->dn_l2nbperpage = cpu_to_le32(bmp->db_l2nbperpage); in dbSync()
286 dbmp_le->dn_numag = cpu_to_le32(bmp->db_numag); in dbSync()
287 dbmp_le->dn_maxlevel = cpu_to_le32(bmp->db_maxlevel); in dbSync()
288 dbmp_le->dn_maxag = cpu_to_le32(bmp->db_maxag); in dbSync()
289 dbmp_le->dn_agpref = cpu_to_le32(bmp->db_agpref); in dbSync()
290 dbmp_le->dn_aglevel = cpu_to_le32(bmp->db_aglevel); in dbSync()
291 dbmp_le->dn_agheight = cpu_to_le32(bmp->db_agheight); in dbSync()
292 dbmp_le->dn_agwidth = cpu_to_le32(bmp->db_agwidth); in dbSync()
293 dbmp_le->dn_agstart = cpu_to_le32(bmp->db_agstart); in dbSync()
294 dbmp_le->dn_agl2size = cpu_to_le32(bmp->db_agl2size); in dbSync()
[all …]
Djfs_logmgr.c657 lp->h.page = lp->t.page = cpu_to_le32(lspn + 1); in lmNextPage()
989 lrd.log.syncpt.sync = cpu_to_le32(log->sync); in lmLogSync()
1317 if (logsuper->magic != cpu_to_le32(LOGMAGIC)) { in lmLogInit()
1324 if (logsuper->state != cpu_to_le32(LOGREDONE)) { in lmLogInit()
1402 logsuper->state = cpu_to_le32(LOGMOUNT); in lmLogInit()
1404 logsuper->serial = cpu_to_le32(log->serial); in lmLogInit()
1695 logsuper->state = cpu_to_le32(LOGREDONE); in lmLogShutdown()
1696 logsuper->end = cpu_to_le32(lsn); in lmLogShutdown()
2413 logsuper->magic = cpu_to_le32(LOGMAGIC); in lmLogFormat()
2414 logsuper->version = cpu_to_le32(LOGVERSION); in lmLogFormat()
[all …]
/linux-4.4.14/drivers/media/pci/bt8xx/
Dbttv-risc.c71 *(rp++) = cpu_to_le32(BT848_RISC_SYNC|BT848_FIFO_STATUS_FM1); in bttv_risc_packed()
72 *(rp++) = cpu_to_le32(0); in bttv_risc_packed()
75 *(rp++) = cpu_to_le32(BT848_RISC_SKIP | BT848_RISC_SOL | in bttv_risc_packed()
91 *(rp++)=cpu_to_le32(BT848_RISC_WRITE|BT848_RISC_SOL| in bttv_risc_packed()
93 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in bttv_risc_packed()
98 *(rp++)=cpu_to_le32(BT848_RISC_WRITE|BT848_RISC_SOL| in bttv_risc_packed()
100 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in bttv_risc_packed()
105 *(rp++)=cpu_to_le32(BT848_RISC_WRITE| in bttv_risc_packed()
107 *(rp++)=cpu_to_le32(sg_dma_address(sg)); in bttv_risc_packed()
111 *(rp++)=cpu_to_le32(BT848_RISC_WRITE|BT848_RISC_EOL| in bttv_risc_packed()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlustre_disk.h272 buf->lsd_feature_compat = cpu_to_le32(lsd->lsd_feature_compat); in lsd_cpu_to_le()
273 buf->lsd_feature_rocompat = cpu_to_le32(lsd->lsd_feature_rocompat); in lsd_cpu_to_le()
274 buf->lsd_feature_incompat = cpu_to_le32(lsd->lsd_feature_incompat); in lsd_cpu_to_le()
275 buf->lsd_server_size = cpu_to_le32(lsd->lsd_server_size); in lsd_cpu_to_le()
276 buf->lsd_client_start = cpu_to_le32(lsd->lsd_client_start); in lsd_cpu_to_le()
280 buf->lsd_catalog_ogen = cpu_to_le32(lsd->lsd_catalog_ogen); in lsd_cpu_to_le()
282 buf->lsd_osd_index = cpu_to_le32(lsd->lsd_osd_index); in lsd_cpu_to_le()
283 buf->lsd_padding1 = cpu_to_le32(lsd->lsd_padding1); in lsd_cpu_to_le()
284 buf->lsd_start_epoch = cpu_to_le32(lsd->lsd_start_epoch); in lsd_cpu_to_le()
287 buf->lsd_trans_table_time = cpu_to_le32(lsd->lsd_trans_table_time); in lsd_cpu_to_le()
[all …]
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_vda.c112 rq->vrq->flash.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
127 cpu_to_le32(vi->cmd.cli.cmd_rsp_len); in esas2r_process_vda_ioctl()
128 rq->vrq->cli.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
169 rq->vrq->mgt.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
173 cpu_to_le32(payldlen); in esas2r_process_vda_ioctl()
187 rq->vrq->mgt.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
201 cpu_to_le32(vi->cmd.mgt.dev_index); in esas2r_process_vda_ioctl()
221 rq->vrq->cfg.length = cpu_to_le32(vi->cmd.cfg.data_length); in esas2r_process_vda_ioctl()
308 cpu_to_le32(sizeof(struct atto_vda_cfg_init)); in esas2r_complete_vda_ioctl()
365 vrq->length = cpu_to_le32(length); in esas2r_build_flash_req()
[all …]
Desas2r_io.c168 element->length = cpu_to_le32(rq->vda_req_sz); in esas2r_start_vda_request()
257 sgc->sge.a64.last->length = cpu_to_le32( in esas2r_build_sg_list_sge()
270 cpu_to_le32( in esas2r_build_sg_list_sge()
309 sgc->sge.a64.curr->length = cpu_to_le32(SGE_ADDR_64 | len); in esas2r_build_sg_list_sge()
310 sgc->sge.a64.curr->address = cpu_to_le32(addr); in esas2r_build_sg_list_sge()
328 sgc->sge.a64.last->length |= cpu_to_le32(SGE_LAST); in esas2r_build_sg_list_sge()
335 sgc->sge.a64.chain->length |= cpu_to_le32( in esas2r_build_sg_list_sge()
418 sgc->sge.prd.curr->ctl_len = cpu_to_le32( in esas2r_build_prd_iblk()
439 sgc->sge.prd.chain->ctl_len |= cpu_to_le32( in esas2r_build_prd_iblk()
469 sgc->sge.prd.chain->ctl_len = cpu_to_le32(PRD_CHAIN); in esas2r_build_prd_iblk()
[all …]
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_iocb.c111 *((uint32_t *)(&cont_pkt->entry_type)) = cpu_to_le32(CONTINUE_TYPE); in qla2x00_prep_cont_type0_iocb()
140 cpu_to_le32(CONTINUE_A64_TYPE_FX00) : in qla2x00_prep_cont_type1_iocb()
141 cpu_to_le32(CONTINUE_A64_TYPE); in qla2x00_prep_cont_type1_iocb()
206 cpu_to_le32(COMMAND_TYPE); in qla2x00_build_scsi_iocbs_32()
210 cmd_pkt->byte_count = cpu_to_le32(0); in qla2x00_build_scsi_iocbs_32()
236 *cur_dsd++ = cpu_to_le32(sg_dma_address(sg)); in qla2x00_build_scsi_iocbs_32()
237 *cur_dsd++ = cpu_to_le32(sg_dma_len(sg)); in qla2x00_build_scsi_iocbs_32()
263 *((uint32_t *)(&cmd_pkt->entry_type)) = cpu_to_le32(COMMAND_A64_TYPE); in qla2x00_build_scsi_iocbs_64()
267 cmd_pkt->byte_count = cpu_to_le32(0); in qla2x00_build_scsi_iocbs_64()
295 *cur_dsd++ = cpu_to_le32(LSD(sle_dma)); in qla2x00_build_scsi_iocbs_64()
[all …]
Dqla_gs.c42 ms_pkt->rsp_bytecount = cpu_to_le32(rsp_size); in qla2x00_prep_ms_iocb()
43 ms_pkt->req_bytecount = cpu_to_le32(req_size); in qla2x00_prep_ms_iocb()
45 ms_pkt->dseg_req_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla2x00_prep_ms_iocb()
46 ms_pkt->dseg_req_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla2x00_prep_ms_iocb()
49 ms_pkt->dseg_rsp_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla2x00_prep_ms_iocb()
50 ms_pkt->dseg_rsp_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla2x00_prep_ms_iocb()
81 ct_pkt->rsp_byte_count = cpu_to_le32(rsp_size); in qla24xx_prep_ms_iocb()
82 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla24xx_prep_ms_iocb()
84 ct_pkt->dseg_0_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
85 ct_pkt->dseg_0_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
[all …]
/linux-4.4.14/fs/hpfs/
Dinode.c154 ea = cpu_to_le32(i_uid_read(i)); in hpfs_write_inode_ea()
159 ea = cpu_to_le32(i_gid_read(i)); in hpfs_write_inode_ea()
168 ea = cpu_to_le32(i->i_mode); in hpfs_write_inode_ea()
174 ea = cpu_to_le32(new_encode_dev(i->i_rdev)); in hpfs_write_inode_ea()
223 fnode->file_size = cpu_to_le32(i->i_size); in hpfs_write_inode_nolock()
224 if (de) de->file_size = cpu_to_le32(i->i_size); in hpfs_write_inode_nolock()
226 fnode->file_size = cpu_to_le32(0); in hpfs_write_inode_nolock()
227 if (de) de->file_size = cpu_to_le32(0); in hpfs_write_inode_nolock()
231 de->write_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_mtime.tv_sec)); in hpfs_write_inode_nolock()
232 de->read_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_atime.tv_sec)); in hpfs_write_inode_nolock()
[all …]
Danode.c87 btree->u.internal[n].file_secno = cpu_to_le32(-1); in hpfs_add_sector_to_btree()
131 anode->up = cpu_to_le32(node); in hpfs_add_sector_to_btree()
141 btree->u.internal[0].file_secno = cpu_to_le32(-1); in hpfs_add_sector_to_btree()
142 btree->u.internal[0].down = cpu_to_le32(na); in hpfs_add_sector_to_btree()
157 btree->u.external[n].disk_secno = cpu_to_le32(se); in hpfs_add_sector_to_btree()
158 btree->u.external[n].file_secno = cpu_to_le32(fs); in hpfs_add_sector_to_btree()
159 btree->u.external[n].length = cpu_to_le32(1); in hpfs_add_sector_to_btree()
178 btree->u.internal[n].file_secno = cpu_to_le32(-1); in hpfs_add_sector_to_btree()
179 btree->u.internal[n].down = cpu_to_le32(na); in hpfs_add_sector_to_btree()
180 btree->u.internal[n-1].file_secno = cpu_to_le32(fs); in hpfs_add_sector_to_btree()
[all …]
Dnamei.c51 dee.fnode = cpu_to_le32(fno); in hpfs_mkdir()
52 …dee.creation_date = dee.write_date = dee.read_date = cpu_to_le32(gmt_to_local(dir->i_sb, get_secon… in hpfs_mkdir()
83 fnode->up = cpu_to_le32(dir->i_ino); in hpfs_mkdir()
88 fnode->u.external[0].disk_secno = cpu_to_le32(dno); in hpfs_mkdir()
89 fnode->u.external[0].file_secno = cpu_to_le32(-1); in hpfs_mkdir()
91 dnode->up = cpu_to_le32(fno); in hpfs_mkdir()
93 …de->creation_date = de->write_date = de->read_date = cpu_to_le32(gmt_to_local(dir->i_sb, get_secon… in hpfs_mkdir()
97 de->fnode = cpu_to_le32(fno); in hpfs_mkdir()
152 dee.fnode = cpu_to_le32(fno); in hpfs_create()
153 …dee.creation_date = dee.write_date = dee.read_date = cpu_to_le32(gmt_to_local(dir->i_sb, get_secon… in hpfs_create()
[all …]
Dalloc.c185 bmp[(ret & 0x3fff) >> 5] &= cpu_to_le32(~(((1 << n) - 1) << (ret & 0x1f))); in alloc_in_bmp()
301 bmp[(sec & 0x3fff) >> 5] &= cpu_to_le32(~(1 << (sec & 0x1f))); in hpfs_alloc_if_possible()
337 bmp[(sec & 0x3fff) >> 5] |= cpu_to_le32(1 << (sec & 0x1f)); in hpfs_free_sectors()
420 bmp[ssec >> 5] |= cpu_to_le32(1 << (ssec & 0x1f)); in hpfs_free_dnode()
443 d->magic = cpu_to_le32(DNODE_MAGIC); in hpfs_alloc_dnode()
444 d->first_free = cpu_to_le32(52); in hpfs_alloc_dnode()
449 d->self = cpu_to_le32(*dno); in hpfs_alloc_dnode()
463 f->magic = cpu_to_le32(FNODE_MAGIC); in hpfs_alloc_fnode()
480 a->magic = cpu_to_le32(ANODE_MAGIC); in hpfs_alloc_anode()
481 a->self = cpu_to_le32(*ano); in hpfs_alloc_anode()
/linux-4.4.14/drivers/crypto/marvell/
Dcesa.h165 cpu_to_le32((CESA_SA_DATA_SRAM_OFFSET + (offset)) | \
169 cpu_to_le32((CESA_SA_CRYPT_IV_SRAM_OFFSET + (offset)) | \
173 cpu_to_le32(CESA_SA_CRYPT_KEY_SRAM_OFFSET + (offset))
176 cpu_to_le32(CESA_SA_DATA_SRAM_OFFSET + (offset))
177 #define CESA_SA_DESC_MAC_DATA_MSK cpu_to_le32(GENMASK(15, 0))
179 #define CESA_SA_DESC_MAC_TOTAL_LEN(total_len) cpu_to_le32((total_len) << 16)
180 #define CESA_SA_DESC_MAC_TOTAL_LEN_MSK cpu_to_le32(GENMASK(31, 16))
185 cpu_to_le32(CESA_SA_MAC_DIG_SRAM_OFFSET + (offset))
186 #define CESA_SA_DESC_MAC_DIGEST_MSK cpu_to_le32(GENMASK(15, 0))
188 #define CESA_SA_DESC_MAC_FRAG_LEN(frag_len) cpu_to_le32((frag_len) << 16)
[all …]
Dtdma.c86 tdma->dst = cpu_to_le32(tdma->dst + engine->sram_dma); in mv_cesa_dma_prepare()
89 tdma->src = cpu_to_le32(tdma->src + engine->sram_dma); in mv_cesa_dma_prepare()
110 chain->last->next_dma = cpu_to_le32(dma_handle); in mv_cesa_dma_add_desc()
145 tdma->byte_cnt = cpu_to_le32(size | BIT(31)); in mv_cesa_dma_add_op()
146 tdma->src = cpu_to_le32(dma_handle); in mv_cesa_dma_add_op()
162 tdma->byte_cnt = cpu_to_le32(size | BIT(31)); in mv_cesa_dma_add_data_transfer()
191 tdma->byte_cnt = cpu_to_le32(BIT(31)); in mv_cesa_dma_add_dummy_end()
/linux-4.4.14/drivers/regulator/
Dqcom_smd-regulator.c65 req.key = cpu_to_le32(RPM_KEY_SWEN); in rpm_reg_enable()
66 req.nbytes = cpu_to_le32(sizeof(u32)); in rpm_reg_enable()
67 req.value = cpu_to_le32(1); in rpm_reg_enable()
89 req.key = cpu_to_le32(RPM_KEY_SWEN); in rpm_reg_disable()
90 req.nbytes = cpu_to_le32(sizeof(u32)); in rpm_reg_disable()
116 req.key = cpu_to_le32(RPM_KEY_UV); in rpm_reg_set_voltage()
117 req.nbytes = cpu_to_le32(sizeof(u32)); in rpm_reg_set_voltage()
118 req.value = cpu_to_le32(min_uV); in rpm_reg_set_voltage()
132 req.key = cpu_to_le32(RPM_KEY_MA); in rpm_reg_set_load()
133 req.nbytes = cpu_to_le32(sizeof(u32)); in rpm_reg_set_load()
[all …]
/linux-4.4.14/crypto/
Dtea.c86 out[0] = cpu_to_le32(y); in tea_encrypt()
87 out[1] = cpu_to_le32(z); in tea_encrypt()
116 out[0] = cpu_to_le32(y); in tea_decrypt()
117 out[1] = cpu_to_le32(z); in tea_decrypt()
152 out[0] = cpu_to_le32(y); in xtea_encrypt()
153 out[1] = cpu_to_le32(z); in xtea_encrypt()
174 out[0] = cpu_to_le32(y); in xtea_decrypt()
175 out[1] = cpu_to_le32(z); in xtea_decrypt()
196 out[0] = cpu_to_le32(y); in xeta_encrypt()
197 out[1] = cpu_to_le32(z); in xeta_encrypt()
[all …]
Daes_generic.c1364 dst[0] = cpu_to_le32(b0[0]); in aes_encrypt()
1365 dst[1] = cpu_to_le32(b0[1]); in aes_encrypt()
1366 dst[2] = cpu_to_le32(b0[2]); in aes_encrypt()
1367 dst[3] = cpu_to_le32(b0[3]); in aes_encrypt()
1436 dst[0] = cpu_to_le32(b0[0]); in aes_decrypt()
1437 dst[1] = cpu_to_le32(b0[1]); in aes_decrypt()
1438 dst[2] = cpu_to_le32(b0[2]); in aes_decrypt()
1439 dst[3] = cpu_to_le32(b0[3]); in aes_decrypt()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dacl.c75 d->e_id = cpu_to_le32(s->e_id); in lustre_ext_acl_cpu_to_le()
76 d->e_stat = cpu_to_le32(s->e_stat); in lustre_ext_acl_cpu_to_le()
92 d->e_id = cpu_to_le32(s->e_id); in lustre_posix_acl_cpu_to_le()
155 new->a_count = cpu_to_le32(count); in lustre_posix_acl_xattr_2ext()
160 new->a_entries[i].e_stat = cpu_to_le32(ES_UNK); in lustre_posix_acl_xattr_2ext()
186 new->a_version = cpu_to_le32(CFS_ACL_XATTR_VERSION); in lustre_posix_acl_xattr_filter()
345 cpu_to_le32(ES_MOD); in lustre_acl_xattr_merge2ext()
350 cpu_to_le32(ES_UNC); in lustre_acl_xattr_merge2ext()
354 cpu_to_le32(ES_ADD); in lustre_acl_xattr_merge2ext()
375 cpu_to_le32(ES_MOD); in lustre_acl_xattr_merge2ext()
[all …]
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-video-upstream.c105 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx25821_update_riscprogram()
109 *(rp++) = cpu_to_le32(RISC_NOOP); in cx25821_update_riscprogram()
114 *(rp++) = cpu_to_le32(RISC_READ | RISC_SOL | RISC_EOL | bpl); in cx25821_update_riscprogram()
115 *(rp++) = cpu_to_le32(out->_data_buf_phys_addr + offset); in cx25821_update_riscprogram()
116 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_update_riscprogram()
140 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx25821_risc_field_upstream()
144 *(rp++) = cpu_to_le32(RISC_NOOP); in cx25821_risc_field_upstream()
149 *(rp++) = cpu_to_le32(RISC_READ | RISC_SOL | RISC_EOL | bpl); in cx25821_risc_field_upstream()
150 *(rp++) = cpu_to_le32(databuf_phys_addr + offset); in cx25821_risc_field_upstream()
151 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_risc_field_upstream()
[all …]
Dcx25821-core.c1015 *(rp++) = cpu_to_le32(RISC_JUMP); in cx25821_risc_field()
1016 *(rp++) = cpu_to_le32(0); in cx25821_risc_field()
1017 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_risc_field()
1022 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx25821_risc_field()
1033 *(rp++) = cpu_to_le32(RISC_WRITE | RISC_SOL | RISC_EOL | in cx25821_risc_field()
1035 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field()
1036 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_risc_field()
1041 *(rp++) = cpu_to_le32(RISC_WRITE | RISC_SOL | in cx25821_risc_field()
1043 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field()
1044 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_risc_field()
[all …]
Dcx25821-audio-upstream.c115 *(rp++) = cpu_to_le32(RISC_READ | RISC_SOL | RISC_EOL | bpl); in cx25821_risc_field_upstream_audio()
116 *(rp++) = cpu_to_le32(databuf_phys_addr + offset); in cx25821_risc_field_upstream_audio()
117 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_risc_field_upstream_audio()
152 *(rp++) = cpu_to_le32(RISC_RESYNC | AUDIO_SYNC_LINE); in cx25821_risc_buffer_upstream_audio()
183 *(rp++) = cpu_to_le32(RISC_NOOP); in cx25821_risc_buffer_upstream_audio()
188 *(rp++) = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | risc_flag); in cx25821_risc_buffer_upstream_audio()
189 *(rp++) = cpu_to_le32(risc_phys_jump_addr); in cx25821_risc_buffer_upstream_audio()
190 *(rp++) = cpu_to_le32(0); in cx25821_risc_buffer_upstream_audio()
470 cpu_to_le32(RISC_NOOP); in cx25821_audio_upstream_irq()
474 *(rp++) = cpu_to_le32(RISC_JUMP | RISC_IRQ1 | in cx25821_audio_upstream_irq()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/carl9170/
Dcmd.c46 cpu_to_le32(reg), in carl9170_write_reg()
47 cpu_to_le32(val), in carl9170_write_reg()
71 offs[i] = cpu_to_le32(regs[i]); in carl9170_read_mreg()
161 cmd->bcn_ctrl.vif_id = cpu_to_le32(vif_id); in carl9170_bcn_ctrl()
162 cmd->bcn_ctrl.mode = cpu_to_le32(mode); in carl9170_bcn_ctrl()
163 cmd->bcn_ctrl.bcn_addr = cpu_to_le32(addr); in carl9170_bcn_ctrl()
164 cmd->bcn_ctrl.bcn_len = cpu_to_le32(len); in carl9170_bcn_ctrl()
220 cmd->psm.state = cpu_to_le32(state); in carl9170_powersave()
Dcmd.h66 __le32 rx_filter = cpu_to_le32(_rx_filter); in carl9170_rx_filter()
88 __ar->cmd_buf[2 * __nreg + 1] = cpu_to_le32(r); \
89 __ar->cmd_buf[2 * __nreg + 2] = cpu_to_le32(v); \
156 __cmd->wreg.regs[__nreg].addr = cpu_to_le32(r); \
157 __cmd->wreg.regs[__nreg].val = cpu_to_le32(v); \
/linux-4.4.14/drivers/net/ethernet/faraday/
Dftgmac100.c203 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_FRS); in ftgmac100_rxdes_first_segment()
208 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_LRS); in ftgmac100_rxdes_last_segment()
213 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_RXPKT_RDY); in ftgmac100_rxdes_packet_ready()
219 rxdes->rxdes0 &= cpu_to_le32(FTGMAC100_RXDES0_EDORR); in ftgmac100_rxdes_set_dma_own()
224 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_RX_ERR); in ftgmac100_rxdes_rx_error()
229 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_CRC_ERR); in ftgmac100_rxdes_crc_error()
234 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_FTL); in ftgmac100_rxdes_frame_too_long()
239 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_RUNT); in ftgmac100_rxdes_runt()
244 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_RX_ODD_NB); in ftgmac100_rxdes_odd_nibble()
254 return rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_MULTICAST); in ftgmac100_rxdes_multicast()
[all …]
Dftmac100.c205 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_FRS); in ftmac100_rxdes_first_segment()
210 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_LRS); in ftmac100_rxdes_last_segment()
215 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RXDMA_OWN); in ftmac100_rxdes_owned_by_dma()
221 rxdes->rxdes0 = cpu_to_le32(FTMAC100_RXDES0_RXDMA_OWN); in ftmac100_rxdes_set_dma_own()
226 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RX_ERR); in ftmac100_rxdes_rx_error()
231 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_CRC_ERR); in ftmac100_rxdes_crc_error()
236 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_FTL); in ftmac100_rxdes_frame_too_long()
241 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RUNT); in ftmac100_rxdes_runt()
246 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RX_ODD_NB); in ftmac100_rxdes_odd_nibble()
256 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_MULTICAST); in ftmac100_rxdes_multicast()
[all …]
/linux-4.4.14/drivers/soc/qcom/
Dsmd-rpm.c125 pkt->hdr.service_type = cpu_to_le32(RPM_SERVICE_TYPE_REQUEST); in qcom_rpm_smd_write()
126 pkt->hdr.length = cpu_to_le32(sizeof(struct qcom_rpm_request) + count); in qcom_rpm_smd_write()
128 pkt->req.msg_id = cpu_to_le32(msg_id++); in qcom_rpm_smd_write()
129 pkt->req.flags = cpu_to_le32(state); in qcom_rpm_smd_write()
130 pkt->req.type = cpu_to_le32(type); in qcom_rpm_smd_write()
131 pkt->req.id = cpu_to_le32(id); in qcom_rpm_smd_write()
132 pkt->req.data_len = cpu_to_le32(count); in qcom_rpm_smd_write()
/linux-4.4.14/security/selinux/ss/
Dpolicydb.c2528 buf[0] = cpu_to_le32(l->sens); in mls_write_level()
2556 buf[0] = cpu_to_le32(items-1); in mls_write_range_helper()
2557 buf[1] = cpu_to_le32(r->level[0].sens); in mls_write_range_helper()
2559 buf[2] = cpu_to_le32(r->level[1].sens); in mls_write_range_helper()
2590 buf[0] = cpu_to_le32(len); in sens_write()
2591 buf[1] = cpu_to_le32(levdatum->isalias); in sens_write()
2618 buf[0] = cpu_to_le32(len); in cat_write()
2619 buf[1] = cpu_to_le32(catdatum->value); in cat_write()
2620 buf[2] = cpu_to_le32(catdatum->isalias); in cat_write()
2643 buf[0] = cpu_to_le32(nel); in role_trans_write()
[all …]
Dconditional.c504 buf[0] = cpu_to_le32(booldatum->value); in cond_write_bool()
505 buf[1] = cpu_to_le32(booldatum->state); in cond_write_bool()
506 buf[2] = cpu_to_le32(len); in cond_write_bool()
537 buf[0] = cpu_to_le32(len); in cond_write_av_list()
562 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node()
570 buf[0] = cpu_to_le32(len); in cond_write_node()
576 buf[0] = cpu_to_le32(cur_expr->expr_type); in cond_write_node()
577 buf[1] = cpu_to_le32(cur_expr->bool); in cond_write_node()
603 buf[0] = cpu_to_le32(len); in cond_write_list()
/linux-4.4.14/drivers/scsi/pm8001/
Dpm8001_hwi.c1312 circularQ->consumer_index = cpu_to_le32(consumer_index); in pm8001_mpi_msg_free_get()
1361 pm8001_write_32((pMessage - 4), 0, cpu_to_le32(Header)); in pm8001_mpi_build_cmd()
1389 circularQ->producer_index = cpu_to_le32(producer_index); in pm8001_mpi_msg_free_set()
1404 circularQ->producer_index = cpu_to_le32(producer_index); in pm8001_mpi_msg_free_set()
1436 msgHeader_tmp = cpu_to_le32(header_tmp); in pm8001_mpi_msg_consume()
1484 circularQ->producer_index = cpu_to_le32(producer_index); in pm8001_mpi_msg_consume()
1749 task_abort.abort_all = cpu_to_le32(1); in pm8001_send_abort_all()
1750 task_abort.device_id = cpu_to_le32(pm8001_ha_dev->device_id); in pm8001_send_abort_all()
1751 task_abort.tag = cpu_to_le32(ccb_tag); in pm8001_send_abort_all()
1821 sata_cmd.tag = cpu_to_le32(ccb_tag); in pm8001_send_read_log()
[all …]
Dpm80xx_hwi.c81 *destination1 = cpu_to_le32(value); in pm80xx_pci_mem_copy()
863 payload.tag = cpu_to_le32(tag); in pm80xx_set_thermal_config()
905 payload.tag = cpu_to_le32(tag); in pm80xx_set_sas_protocol_timer_config()
1072 payload.tag = cpu_to_le32(tag); in pm80xx_encrypt_update()
1421 task_abort.abort_all = cpu_to_le32(1); in pm80xx_send_abort_all()
1422 task_abort.device_id = cpu_to_le32(pm8001_ha_dev->device_id); in pm80xx_send_abort_all()
1423 task_abort.tag = cpu_to_le32(ccb_tag); in pm80xx_send_abort_all()
1495 sata_cmd.tag = cpu_to_le32(ccb_tag); in pm80xx_send_read_log()
1496 sata_cmd.device_id = cpu_to_le32(pm8001_ha_dev->device_id); in pm80xx_send_read_log()
2847 payload.tag = cpu_to_le32(1); in pm80xx_hw_event_ack_req()
[all …]
/linux-4.4.14/fs/quota/
Dquota_v2.c163 dinfo.dqi_bgrace = cpu_to_le32(info->dqi_bgrace); in v2_write_file_info()
164 dinfo.dqi_igrace = cpu_to_le32(info->dqi_igrace); in v2_write_file_info()
166 dinfo.dqi_flags = cpu_to_le32(0); in v2_write_file_info()
168 dinfo.dqi_blocks = cpu_to_le32(qinfo->dqi_blocks); in v2_write_file_info()
169 dinfo.dqi_free_blk = cpu_to_le32(qinfo->dqi_free_blk); in v2_write_file_info()
170 dinfo.dqi_free_entry = cpu_to_le32(qinfo->dqi_free_entry); in v2_write_file_info()
207 d->dqb_ihardlimit = cpu_to_le32(m->dqb_ihardlimit); in v2r0_mem2diskdqb()
208 d->dqb_isoftlimit = cpu_to_le32(m->dqb_isoftlimit); in v2r0_mem2diskdqb()
209 d->dqb_curinodes = cpu_to_le32(m->dqb_curinodes); in v2r0_mem2diskdqb()
211 d->dqb_bhardlimit = cpu_to_le32(v2_stoqb(m->dqb_bhardlimit)); in v2r0_mem2diskdqb()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c393 *(__le32 *)bytes = cpu_to_le32(v); in do_rom_fast_read_words()
587 __le32 entries = cpu_to_le32(directory->num_entries); in nx_get_table_desc()
591 __le32 offs = cpu_to_le32(directory->findex) + in nx_get_table_desc()
592 (i * cpu_to_le32(directory->entry_size)); in nx_get_table_desc()
593 __le32 tab_type = cpu_to_le32(*((u32 *)&unirom[offs] + 8)); in nx_get_table_desc()
617 entries = cpu_to_le32(directory->num_entries); in netxen_nic_validate_header()
618 entry_size = cpu_to_le32(directory->entry_size); in netxen_nic_validate_header()
619 tab_size = cpu_to_le32(directory->findex) + (entries * entry_size); in netxen_nic_validate_header()
633 __le32 idx = cpu_to_le32(*((int *)&unirom[adapter->file_prd_off] + in netxen_nic_validate_bootld()
644 tab_size = cpu_to_le32(tab_desc->findex) + in netxen_nic_validate_bootld()
[all …]
Dnetxen_nic_ctx.c327 prq->capabilities[0] = cpu_to_le32(cap); in nx_fw_cmd_create_rx_ctx()
329 cpu_to_le32(NX_HOST_INT_CRB_MODE_SHARED); in nx_fw_cmd_create_rx_ctx()
331 cpu_to_le32(NX_HOST_RDS_CRB_MODE_UNIQUE); in nx_fw_cmd_create_rx_ctx()
335 prq->rds_ring_offset = cpu_to_le32(0); in nx_fw_cmd_create_rx_ctx()
339 prq->sds_ring_offset = cpu_to_le32(val); in nx_fw_cmd_create_rx_ctx()
349 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
350 prq_rds[i].ring_kind = cpu_to_le32(i); in nx_fw_cmd_create_rx_ctx()
362 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
475 prq->capabilities[0] = cpu_to_le32(temp); in nx_fw_cmd_create_tx_ctx()
478 cpu_to_le32(NX_HOST_INT_CRB_MODE_SHARED); in nx_fw_cmd_create_tx_ctx()
[all …]
/linux-4.4.14/fs/udf/
Dudfend.h21 out.logicalBlockNum = cpu_to_le32(in.logicalBlockNum); in cpu_to_lelb()
41 out.extLength = cpu_to_le32(in.extLength); in cpu_to_lesa()
42 out.extPosition = cpu_to_le32(in.extPosition); in cpu_to_lesa()
61 out.extLength = cpu_to_le32(in.extLength); in cpu_to_lela()
Dmisc.c95 eahd->descTag.tagLocation = cpu_to_le32( in udf_add_extendedattr()
97 eahd->impAttrLocation = cpu_to_le32(0xFFFFFFFF); in udf_add_extendedattr()
98 eahd->appAttrLocation = cpu_to_le32(0xFFFFFFFF); in udf_add_extendedattr()
111 cpu_to_le32(aal + size); in udf_add_extendedattr()
121 cpu_to_le32(ial + size); in udf_add_extendedattr()
132 cpu_to_le32(aal + size); in udf_add_extendedattr()
285 tptr->tagLocation = cpu_to_le32(loc); in udf_new_tag()
/linux-4.4.14/arch/mips/cavium-octeon/crypto/
Docteon-md5.c72 mctx->hash[0] = cpu_to_le32(MD5_H0); in octeon_md5_init()
73 mctx->hash[1] = cpu_to_le32(MD5_H1); in octeon_md5_init()
74 mctx->hash[2] = cpu_to_le32(MD5_H2); in octeon_md5_init()
75 mctx->hash[3] = cpu_to_le32(MD5_H3); in octeon_md5_init()
143 mctx->block[14] = cpu_to_le32(mctx->byte_count << 3); in octeon_md5_final()
144 mctx->block[15] = cpu_to_le32(mctx->byte_count >> 29); in octeon_md5_final()
/linux-4.4.14/fs/f2fs/
Dnode.h115 raw_ne->ino = cpu_to_le32(ni->ino); in raw_nat_from_node_info()
116 raw_ne->block_addr = cpu_to_le32(ni->blk_addr); in raw_nat_from_node_info()
226 rn->footer.nid = cpu_to_le32(nid); in fill_node_footer()
227 rn->footer.ino = cpu_to_le32(ino); in fill_node_footer()
230 rn->footer.flag = cpu_to_le32((ofs << OFFSET_BIT_SHIFT) | in fill_node_footer()
247 rn->footer.next_blkaddr = cpu_to_le32(blkaddr); in fill_node_footer_blkaddr()
327 rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); in set_nid()
329 rn->in.nid[off] = cpu_to_le32(nid); in set_nid()
382 rn->footer.flag = cpu_to_le32(flag); in set_cold_node()
393 rn->footer.flag = cpu_to_le32(flag); in set_mark()
Dinode.c67 cpu_to_le32(old_encode_dev(inode->i_rdev)); in __set_inode_rdev()
72 cpu_to_le32(new_encode_dev(inode->i_rdev)); in __set_inode_rdev()
234 ri->i_uid = cpu_to_le32(i_uid_read(inode)); in update_inode()
235 ri->i_gid = cpu_to_le32(i_gid_read(inode)); in update_inode()
236 ri->i_links = cpu_to_le32(inode->i_nlink); in update_inode()
250 ri->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in update_inode()
251 ri->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in update_inode()
252 ri->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in update_inode()
253 ri->i_current_depth = cpu_to_le32(F2FS_I(inode)->i_current_depth); in update_inode()
254 ri->i_xattr_nid = cpu_to_le32(F2FS_I(inode)->i_xattr_nid); in update_inode()
[all …]
Dcheckpoint.c576 orphan_blk->ino[nentries++] = cpu_to_le32(orphan->ino); in write_orphan_inodes()
586 orphan_blk->entry_count = cpu_to_le32(nentries); in write_orphan_inodes()
598 orphan_blk->entry_count = cpu_to_le32(nentries); in write_orphan_inodes()
959 ckpt->free_segment_count = cpu_to_le32(free_segments(sbi)); in do_checkpoint()
962 cpu_to_le32(curseg_segno(sbi, i + CURSEG_HOT_NODE)); in do_checkpoint()
970 cpu_to_le32(curseg_segno(sbi, i + CURSEG_HOT_DATA)); in do_checkpoint()
977 ckpt->valid_node_count = cpu_to_le32(valid_node_count(sbi)); in do_checkpoint()
978 ckpt->valid_inode_count = cpu_to_le32(valid_inode_count(sbi)); in do_checkpoint()
979 ckpt->next_free_nid = cpu_to_le32(last_nid); in do_checkpoint()
989 ckpt->cp_pack_start_sum = cpu_to_le32(1 + cp_payload_blks + in do_checkpoint()
[all …]
/linux-4.4.14/tools/usb/
Dffs-test.c48 #define cpu_to_le32(x) htole32(x) macro
120 .magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2),
121 .flags = cpu_to_le32(FUNCTIONFS_HAS_FS_DESC |
123 .length = cpu_to_le32(sizeof descriptors),
125 .fs_count = cpu_to_le32(3),
149 .hs_count = cpu_to_le32(3),
248 out->header.magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC); in descs_to_legacy()
249 out->header.length = cpu_to_le32(length); in descs_to_legacy()
250 out->header.fs_count = cpu_to_le32(fs_count); in descs_to_legacy()
251 out->header.hs_count = cpu_to_le32(hs_count); in descs_to_legacy()
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wl18xx/
Dacx.c46 bitmap_conf->host_cfg_bitmap = cpu_to_le32(host_cfg_bitmap); in wl18xx_acx_host_if_cfg_bitmap()
47 bitmap_conf->host_sdio_block_size = cpu_to_le32(sdio_blk_size); in wl18xx_acx_host_if_cfg_bitmap()
48 bitmap_conf->extra_mem_blocks = cpu_to_le32(extra_mem_blks); in wl18xx_acx_host_if_cfg_bitmap()
49 bitmap_conf->length_field_size = cpu_to_le32(len_field_size); in wl18xx_acx_host_if_cfg_bitmap()
185 acx->ht_capabilites = cpu_to_le32(ht_capabilites); in wl18xx_acx_set_peer_cap()
186 acx->supported_rates = cpu_to_le32(rate_set); in wl18xx_acx_set_peer_cap()
300 acx->dynamic_fw_traces = cpu_to_le32(wl->dynamic_fw_traces); in wl18xx_acx_dynamic_fw_traces()
Dcmd.c72 cmd->local_supported_rates = cpu_to_le32(supported_rates); in wl18xx_cmd_channel_switch()
101 cmd->group_id_bitmask = cpu_to_le32(group_bitmap); in wl18xx_cmd_smart_config_start()
160 cmd->group_id = cpu_to_le32(group_id); in wl18xx_cmd_smart_config_set_group_key()
/linux-4.4.14/drivers/power/reset/
Dat91-reset.c78 "r" cpu_to_le32(AT91_SDRAMC_LPCB_POWER_DOWN), in at91sam9260_restart()
79 "r" cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST)); in at91sam9260_restart()
121 "r" cpu_to_le32(AT91_DDRSDRC_LPCB_POWER_DOWN), in at91sam9g45_restart()
122 "r" cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST) in at91sam9g45_restart()
131 writel(cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST), in sama5d3_restart()
/linux-4.4.14/drivers/net/ethernet/packetengines/
Dyellowfin.c735 cpu_to_le32(CMD_RX_BUF | INTR_ALWAYS | yp->rx_buf_sz); in yellowfin_init_ring()
736 yp->rx_ring[i].branch_addr = cpu_to_le32(yp->rx_ring_dma + in yellowfin_init_ring()
746 yp->rx_ring[i].addr = cpu_to_le32(pci_map_single(yp->pci_dev, in yellowfin_init_ring()
754 yp->rx_ring[i-1].dbdma_cmd = cpu_to_le32(CMD_STOP); in yellowfin_init_ring()
762 yp->tx_ring[i].dbdma_cmd = cpu_to_le32(CMD_STOP); in yellowfin_init_ring()
763 yp->tx_ring[i].branch_addr = cpu_to_le32(yp->tx_ring_dma + in yellowfin_init_ring()
767 yp->tx_ring[--i].dbdma_cmd = cpu_to_le32(CMD_STOP | BRANCH_ALWAYS); in yellowfin_init_ring()
775 yp->tx_ring[j].dbdma_cmd = cpu_to_le32(CMD_STOP); in yellowfin_init_ring()
776 yp->tx_ring[j].branch_addr = cpu_to_le32(yp->tx_ring_dma + in yellowfin_init_ring()
781 cpu_to_le32(CMD_TXSTATUS | sizeof(*yp->tx_status)); in yellowfin_init_ring()
[all …]
Dhamachi.c204 #define cpu_to_leXX(addr) cpu_to_le32(addr)
1002 if (hmp->tx_ring[entry].status_n_length & cpu_to_le32(DescOwn)) in hamachi_tx()
1016 cpu_to_le32(DescEndRing); in hamachi_tx()
1082 hmp->rx_ring[i].status_n_length &= cpu_to_le32(~DescOwn); in hamachi_tx_timeout()
1092 cpu_to_le32(DescEndRing) | in hamachi_tx_timeout()
1094 cpu_to_le32(0x0000ffff)); in hamachi_tx_timeout()
1096 hmp->tx_ring[i].status_n_length &= cpu_to_le32(0x0000ffff); in hamachi_tx_timeout()
1139 hmp->rx_ring[i].status_n_length = cpu_to_le32(DescOwn | in hamachi_tx_timeout()
1144 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); in hamachi_tx_timeout()
1192 hmp->rx_ring[i].status_n_length = cpu_to_le32(DescOwn | in hamachi_init_ring()
[all …]
/linux-4.4.14/drivers/net/wireless/
Drndis_wlan.c179 NDIS_80211_ADDKEY_8021X_AUTH = cpu_to_le32(1 << 28),
180 NDIS_80211_ADDKEY_SET_INIT_RECV_SEQ = cpu_to_le32(1 << 29),
181 NDIS_80211_ADDKEY_PAIRWISE_KEY = cpu_to_le32(1 << 30),
182 NDIS_80211_ADDKEY_TRANSMIT_KEY = cpu_to_le32(1 << 31)
186 NDIS_80211_ADDWEP_PERCLIENT_KEY = cpu_to_le32(1 << 30),
187 NDIS_80211_ADDWEP_TRANSMIT_KEY = cpu_to_le32(1 << 31)
197 NDIS_80211_PMKID_CAND_PREAUTH = cpu_to_le32(1 << 0)
733 u.get->msg_type = cpu_to_le32(RNDIS_MSG_QUERY); in rndis_query_oid()
734 u.get->msg_len = cpu_to_le32(sizeof *u.get); in rndis_query_oid()
735 u.get->oid = cpu_to_le32(oid); in rndis_query_oid()
[all …]
Dmwl8k.c967 rxd->next_rxd_phys_addr = cpu_to_le32(next_dma_addr); in mwl8k_rxd_ap_init()
976 rxd->pkt_phys_addr = cpu_to_le32(addr); in mwl8k_rxd_ap_refill()
1077 rxd->next_rxd_phys_addr = cpu_to_le32(next_dma_addr); in mwl8k_rxd_sta_init()
1086 rxd->pkt_phys_addr = cpu_to_le32(addr); in mwl8k_rxd_sta_refill()
1474 cpu_to_le32(txq->txd_dma + nexti * sizeof(*tx_desc)); in mwl8k_txq_init()
1686 ~cpu_to_le32(MWL8K_TXD_STATUS_FW_OWNED); in mwl8k_txq_reclaim()
2084 tx->pkt_phys_addr = cpu_to_le32(dma); in mwl8k_txq_xmit()
2093 tx->timestamp = cpu_to_le32(ioread32(priv->regs + in mwl8k_txq_xmit()
2099 tx->status = cpu_to_le32(MWL8K_TXD_STATUS_FW_OWNED | txstatus); in mwl8k_txq_xmit()
2456 cmd->ps_cookie = cpu_to_le32(priv->cookie_dma); in mwl8k_cmd_get_hw_spec_sta()
[all …]
/linux-4.4.14/fs/ocfs2/
Dexport.c212 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
213 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
214 fh[2] = cpu_to_le32(generation); in ocfs2_encode_fh()
220 fh[3] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
221 fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
222 fh[5] = cpu_to_le32(generation); in ocfs2_encode_fh()
Dinode.c287 BUG_ON(!(fe->i_flags & cpu_to_le32(OCFS2_VALID_FL))); in ocfs2_populate_inode()
327 if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) { in ocfs2_populate_inode()
332 if (fe->i_flags & cpu_to_le32(OCFS2_LOCAL_ALLOC_FL)) { in ocfs2_populate_inode()
334 } else if (fe->i_flags & cpu_to_le32(OCFS2_BITMAP_FL)) { in ocfs2_populate_inode()
336 } else if (fe->i_flags & cpu_to_le32(OCFS2_QUOTA_FL)) { in ocfs2_populate_inode()
338 } else if (fe->i_flags & cpu_to_le32(OCFS2_SUPER_BLOCK_FL)) { in ocfs2_populate_inode()
521 mlog_bug_on_msg(!!(fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) != in ocfs2_read_locked_inode()
667 di->i_flags &= cpu_to_le32(~(OCFS2_VALID_FL | OCFS2_ORPHANED_FL)); in ocfs2_remove_inode()
892 if (!(di->i_flags & cpu_to_le32(OCFS2_ORPHANED_FL)) && in ocfs2_query_inode_wipe()
1032 if (unlikely(di->i_flags & cpu_to_le32(OCFS2_DIO_ORPHANED_FL))) { in ocfs2_delete_inode()
[all …]
/linux-4.4.14/drivers/scsi/
Dhptiop.c201 req->header.result = cpu_to_le32(IOP_RESULT_SUCCESS); in hptiop_request_callback_mv()
335 reqhdr->flags |= cpu_to_le32(IOP_REQUEST_FLAG_SYNC_REQUEST); in iop_send_sync_request_mv()
356 reqhdr->flags |= cpu_to_le32(IOP_REQUEST_FLAG_SYNC_REQUEST); in iop_send_sync_request_mvfrey()
441 req->header.flags = cpu_to_le32(IOP_REQUEST_FLAG_OUTPUT_CONTEXT); in iop_get_config_mv()
442 req->header.type = cpu_to_le32(IOP_REQUEST_TYPE_GET_CONFIG); in iop_get_config_mv()
444 cpu_to_le32(sizeof(struct hpt_iop_request_get_config)); in iop_get_config_mv()
445 req->header.result = cpu_to_le32(IOP_RESULT_PENDING); in iop_get_config_mv()
446 req->header.context = cpu_to_le32(IOP_REQUEST_TYPE_GET_CONFIG<<5); in iop_get_config_mv()
518 req->header.flags = cpu_to_le32(IOP_REQUEST_FLAG_OUTPUT_CONTEXT); in iop_set_config_mv()
519 req->header.type = cpu_to_le32(IOP_REQUEST_TYPE_SET_CONFIG); in iop_set_config_mv()
[all …]
Da100u2w.c391 data32 = cpu_to_le32(0); /* Initial FW address to 0 */ in orc_load_firmware()
462 scb->sg_addr = cpu_to_le32((u32) escb_phys); in setup_SCBs()
463 scb->sense_addr = cpu_to_le32((u32) escb_phys); in setup_SCBs()
645 scb->xferlen = cpu_to_le32(0); in orc_device_reset()
646 scb->sg_len = cpu_to_le32(0); in orc_device_reset()
861 scb->sg_len = cpu_to_le32(0); in inia100_build_scb()
863 scb->xferlen = cpu_to_le32((u32) scsi_bufflen(cmd)); in inia100_build_scb()
873 scb->sg_len = cpu_to_le32((u32) (count_sg * 8)); in inia100_build_scb()
875 sgent->base = cpu_to_le32((u32) sg_dma_address(sg)); in inia100_build_scb()
876 sgent->length = cpu_to_le32((u32) sg_dma_len(sg)); in inia100_build_scb()
[all …]
/linux-4.4.14/fs/ceph/
Dioctl.c117 cpu_to_le32(l.stripe_unit); in ceph_ioctl_set_layout()
119 cpu_to_le32(l.stripe_count); in ceph_ioctl_set_layout()
121 cpu_to_le32(l.object_size); in ceph_ioctl_set_layout()
122 req->r_args.setlayout.layout.fl_pg_pool = cpu_to_le32(l.data_pool); in ceph_ioctl_set_layout()
161 cpu_to_le32(l.stripe_unit); in ceph_ioctl_set_layout_policy()
163 cpu_to_le32(l.stripe_count); in ceph_ioctl_set_layout_policy()
165 cpu_to_le32(l.object_size); in ceph_ioctl_set_layout_policy()
167 cpu_to_le32(l.data_pool); in ceph_ioctl_set_layout_policy()
/linux-4.4.14/fs/bfs/
Dinode.c135 di->i_vtype = cpu_to_le32(BFS_VDIR); in bfs_write_inode()
137 di->i_vtype = cpu_to_le32(BFS_VREG); in bfs_write_inode()
140 di->i_mode = cpu_to_le32(inode->i_mode); in bfs_write_inode()
141 di->i_uid = cpu_to_le32(i_uid_read(inode)); in bfs_write_inode()
142 di->i_gid = cpu_to_le32(i_gid_read(inode)); in bfs_write_inode()
143 di->i_nlink = cpu_to_le32(inode->i_nlink); in bfs_write_inode()
144 di->i_atime = cpu_to_le32(inode->i_atime.tv_sec); in bfs_write_inode()
145 di->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); in bfs_write_inode()
146 di->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); in bfs_write_inode()
148 di->i_sblock = cpu_to_le32(i_sblock); in bfs_write_inode()
[all …]
/linux-4.4.14/drivers/firmware/
Dqcom_scm-32.c118 cmd->len = cpu_to_le32(len); in alloc_qcom_scm_command()
120 cmd->buf_offset = cpu_to_le32(offset); in alloc_qcom_scm_command()
121 cmd->resp_hdr_offset = cpu_to_le32(offset + cmd_size); in alloc_qcom_scm_command()
279 cmd->id = cpu_to_le32((svc_id << 10) | cmd_id); in qcom_scm_call()
391 cmd.addr = cpu_to_le32(addr); in qcom_scm_set_boot_addr()
392 cmd.flags = cpu_to_le32(flags); in qcom_scm_set_boot_addr()
483 __le32 svc_cmd = cpu_to_le32((svc_id << 10) | cmd_id); in __qcom_scm_is_call_available()
/linux-4.4.14/arch/parisc/lib/
Dio.c253 *(unsigned int *)p = cpu_to_le32(inl(port)); in insl()
261 l = cpu_to_le32(inl(port)); in insl()
267 l2 = cpu_to_le32(inl(port)); in insl()
277 l = cpu_to_le32(inl(port)); in insl()
284 l2 = cpu_to_le32(inl(port)); in insl()
294 l = cpu_to_le32(inl(port)); in insl()
299 l2 = cpu_to_le32(inl(port)); in insl()
/linux-4.4.14/drivers/scsi/qla4xxx/
Dql4_iocb.c186 cur_dsd->base.addrLow = cpu_to_le32(LSDW(sle_dma)); in qla4xxx_build_scsi_iocbs()
187 cur_dsd->base.addrHigh = cpu_to_le32(MSDW(sle_dma)); in qla4xxx_build_scsi_iocbs()
188 cur_dsd->count = cpu_to_le32(sg_dma_len(sg)); in qla4xxx_build_scsi_iocbs()
325 cmd_entry->handle = cpu_to_le32(index); in qla4xxx_send_command_to_isp()
329 cmd_entry->ttlByteCnt = cpu_to_le32(scsi_bufflen(cmd)); in qla4xxx_send_command_to_isp()
417 cpu_to_le32(LSDW(task_data->req_dma)); in qla4xxx_send_passthru0()
419 cpu_to_le32(MSDW(task_data->req_dma)); in qla4xxx_send_passthru0()
421 cpu_to_le32(task->data_count + in qla4xxx_send_passthru0()
426 cpu_to_le32(LSDW(task_data->resp_dma)); in qla4xxx_send_passthru0()
428 cpu_to_le32(MSDW(task_data->resp_dma)); in qla4xxx_send_passthru0()
[all …]
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_uvd.c950 msg[0] = cpu_to_le32(0x00000de4); in amdgpu_uvd_get_create_msg()
951 msg[1] = cpu_to_le32(0x00000000); in amdgpu_uvd_get_create_msg()
952 msg[2] = cpu_to_le32(handle); in amdgpu_uvd_get_create_msg()
953 msg[3] = cpu_to_le32(0x00000000); in amdgpu_uvd_get_create_msg()
954 msg[4] = cpu_to_le32(0x00000000); in amdgpu_uvd_get_create_msg()
955 msg[5] = cpu_to_le32(0x00000000); in amdgpu_uvd_get_create_msg()
956 msg[6] = cpu_to_le32(0x00000000); in amdgpu_uvd_get_create_msg()
957 msg[7] = cpu_to_le32(0x00000780); in amdgpu_uvd_get_create_msg()
958 msg[8] = cpu_to_le32(0x00000440); in amdgpu_uvd_get_create_msg()
959 msg[9] = cpu_to_le32(0x00000000); in amdgpu_uvd_get_create_msg()
[all …]
/linux-4.4.14/fs/ext2/
Dxattr.c179 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_get()
180 HDR(bh)->h_blocks != cpu_to_le32(1)) { in ext2_xattr_get()
268 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_list()
269 HDR(bh)->h_blocks != cpu_to_le32(1)) { in ext2_xattr_list()
402 if (header->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_set()
403 header->h_blocks != cpu_to_le32(1)) { in ext2_xattr_set()
489 if (header->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set()
506 header->h_refcount = cpu_to_le32(1); in ext2_xattr_set()
520 header->h_magic = cpu_to_le32(EXT2_XATTR_MAGIC); in ext2_xattr_set()
521 header->h_blocks = header->h_refcount = cpu_to_le32(1); in ext2_xattr_set()
[all …]
Dext2.h512 ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) )
514 ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) )
516 ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) )
518 EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask)
520 EXT2_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask)
522 EXT2_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(mask)
524 EXT2_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(mask)
526 EXT2_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_le32(mask)
528 EXT2_SB(sb)->s_es->s_feature_incompat &= ~cpu_to_le32(mask)
Dinode.c490 branch[0].key = cpu_to_le32(new_blocks[0]); in ext2_alloc_branch()
509 branch[n].key = cpu_to_le32(new_blocks[n]); in ext2_alloc_branch()
519 *(branch[n].p + i) = cpu_to_le32(++current_block); in ext2_alloc_branch()
576 *(where->p + i ) = cpu_to_le32(current_block++); in ext2_splice_branch()
1490 raw_inode->i_size = cpu_to_le32(inode->i_size); in __ext2_write_inode()
1491 raw_inode->i_atime = cpu_to_le32(inode->i_atime.tv_sec); in __ext2_write_inode()
1492 raw_inode->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); in __ext2_write_inode()
1493 raw_inode->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); in __ext2_write_inode()
1495 raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); in __ext2_write_inode()
1496 raw_inode->i_dtime = cpu_to_le32(ei->i_dtime); in __ext2_write_inode()
[all …]
Dacl.c30 cpu_to_le32(EXT2_ACL_VERSION)) in ext2_acl_from_disk()
102 ext_acl->a_version = cpu_to_le32(EXT2_ACL_VERSION); in ext2_acl_to_disk()
111 entry->e_id = cpu_to_le32( in ext2_acl_to_disk()
116 entry->e_id = cpu_to_le32( in ext2_acl_to_disk()
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_hw.c30 #define QED_BAR_INVALID_OFFSET (cpu_to_le32(-1))
159 p_ptt->pxp.offset = cpu_to_le32(new_hw_addr >> 2); in qed_ptt_set_win()
396 p_hwfn->dmae_info.p_dmae_cmd->opcode = cpu_to_le32(opcode); in qed_dmae_opcode()
592 cmd->src_addr_hi = cpu_to_le32(upper_32_bits(src_addr)); in qed_dmae_execute_sub_operation()
593 cmd->src_addr_lo = cpu_to_le32(lower_32_bits(src_addr)); in qed_dmae_execute_sub_operation()
597 cmd->src_addr_hi = cpu_to_le32(upper_32_bits(phys)); in qed_dmae_execute_sub_operation()
598 cmd->src_addr_lo = cpu_to_le32(lower_32_bits(phys)); in qed_dmae_execute_sub_operation()
610 cmd->dst_addr_hi = cpu_to_le32(upper_32_bits(dst_addr)); in qed_dmae_execute_sub_operation()
611 cmd->dst_addr_lo = cpu_to_le32(lower_32_bits(dst_addr)); in qed_dmae_execute_sub_operation()
615 cmd->dst_addr_hi = cpu_to_le32(upper_32_bits(phys)); in qed_dmae_execute_sub_operation()
[all …]
/linux-4.4.14/drivers/md/
Ddm-cache-metadata.c158 disk_super->csum = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_prepare_for_write()
196 csum_le = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_check()
337 disk_super->version = cpu_to_le32(MAX_CACHE_VERSION); in __write_initial_superblock()
349 disk_super->metadata_block_size = cpu_to_le32(DM_CACHE_METADATA_BLOCK_SIZE); in __write_initial_superblock()
350 disk_super->data_block_size = cpu_to_le32(cmd->data_block_size); in __write_initial_superblock()
351 disk_super->cache_blocks = cpu_to_le32(0); in __write_initial_superblock()
353 disk_super->read_hits = cpu_to_le32(0); in __write_initial_superblock()
354 disk_super->read_misses = cpu_to_le32(0); in __write_initial_superblock()
355 disk_super->write_hits = cpu_to_le32(0); in __write_initial_superblock()
356 disk_super->write_misses = cpu_to_le32(0); in __write_initial_superblock()
[all …]
Dmd-cluster.c577 cmsg->slot = cpu_to_le32(slot); in __sendmsg()
796 cmsg.type = cpu_to_le32(BITMAP_NEEDS_SYNC); in resync_bitmap()
852 cmsg.type = cpu_to_le32(METADATA_UPDATED); in metadata_update_finish()
861 cmsg.raid_slot = cpu_to_le32(raid_slot); in metadata_update_finish()
890 cmsg.type = cpu_to_le32(RESYNCING); in resync_info_update()
942 cmsg.type = cpu_to_le32(NEWDISK); in add_new_disk()
944 cmsg.raid_slot = cpu_to_le32(rdev->desc_nr); in add_new_disk()
987 cmsg.type = cpu_to_le32(REMOVE); in remove_disk()
988 cmsg.raid_slot = cpu_to_le32(rdev->desc_nr); in remove_disk()
1000 cmsg.type = cpu_to_le32(RE_ADD); in gather_bitmaps()
[all …]
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c741 req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr)); in be_wrb_cmd_hdr_prepare()
749 sge->pa_hi = cpu_to_le32(upper_32_bits(mem->dma)); in be_wrb_cmd_hdr_prepare()
750 sge->pa_lo = cpu_to_le32(mem->dma & 0xFFFFFFFF); in be_wrb_cmd_hdr_prepare()
751 sge->len = cpu_to_le32(mem->size); in be_wrb_cmd_hdr_prepare()
764 pages[i].lo = cpu_to_le32(dma & 0xFFFFFFFF); in be_cmd_page_addrs_prepare()
765 pages[i].hi = cpu_to_le32(upper_32_bits(dma)); in be_cmd_page_addrs_prepare()
836 if (wrb->embedded & cpu_to_le32(MCC_WRB_EMBEDDED_MASK)) in be_cmd_copy()
1004 req->pmac_id = cpu_to_le32(pmac_id); in be_cmd_mac_addr_query()
1042 req->if_id = cpu_to_le32(if_id); in be_cmd_pmac_add()
1085 req->if_id = cpu_to_le32(if_id); in be_cmd_pmac_del()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlov_pack.c192 lmmv3->lmm_magic = cpu_to_le32(LOV_MAGIC_V3); in lov_packmd()
194 lmmv1->lmm_magic = cpu_to_le32(LOV_MAGIC_V1); in lov_packmd()
203 lmmv1->lmm_stripe_size = cpu_to_le32(lsm->lsm_stripe_size); in lov_packmd()
205 lmmv1->lmm_pattern = cpu_to_le32(lsm->lsm_pattern); in lov_packmd()
224 lmm_objects[i].l_ost_gen = cpu_to_le32(loi->loi_ost_gen); in lov_packmd()
225 lmm_objects[i].l_ost_idx = cpu_to_le32(loi->loi_ost_idx); in lov_packmd()
445 if ((cpu_to_le32(LOV_MAGIC) != LOV_MAGIC) && in lov_getstripe()
446 ((lmmk->lmm_magic == cpu_to_le32(LOV_MAGIC_V1)) || in lov_getstripe()
447 (lmmk->lmm_magic == cpu_to_le32(LOV_MAGIC_V3)))) { in lov_getstripe()
/linux-4.4.14/drivers/media/common/saa7146/
Dsaa7146_i2c.c61 op[h1] |= cpu_to_le32( (u8)addr << ((3-h2)*8)); in saa7146_i2c_msg_prepare()
62 op[h1] |= cpu_to_le32(SAA7146_I2C_START << ((3-h2)*2)); in saa7146_i2c_msg_prepare()
69 op[h1] |= cpu_to_le32( (u32)((u8)m[i].buf[j]) << ((3-h2)*8)); in saa7146_i2c_msg_prepare()
70 op[h1] |= cpu_to_le32( SAA7146_I2C_CONT << ((3-h2)*2)); in saa7146_i2c_msg_prepare()
80 op[h1] &= ~cpu_to_le32(0x2 << ((3-h2)*2)); in saa7146_i2c_msg_prepare()
81 op[h1] |= cpu_to_le32(SAA7146_I2C_STOP << ((3-h2)*2)); in saa7146_i2c_msg_prepare()
287 *dword = cpu_to_le32(saa7146_read(dev, I2C_TRANSFER)); in saa7146_i2c_writeout()
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-vbi.c203 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue()
204 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue()
205 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in buffer_queue()
206 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in buffer_queue()
216 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in buffer_queue()
222 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in buffer_queue()
Dcx23885-core.c587 if (risc->cpu[i] == cpu_to_le32(RISC_JUMP)) in cx23885_risc_disasm()
1069 *(rp++) = cpu_to_le32(RISC_JUMP); in cx23885_risc_field()
1070 *(rp++) = cpu_to_le32(0); in cx23885_risc_field()
1071 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx23885_risc_field()
1076 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx23885_risc_field()
1093 *(rp++) = cpu_to_le32(RISC_WRITE|sol|RISC_EOL|bpl); in cx23885_risc_field()
1094 *(rp++) = cpu_to_le32(sg_dma_address(sg)+offset); in cx23885_risc_field()
1095 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx23885_risc_field()
1100 *(rp++) = cpu_to_le32(RISC_WRITE|sol| in cx23885_risc_field()
1102 *(rp++) = cpu_to_le32(sg_dma_address(sg)+offset); in cx23885_risc_field()
[all …]
/linux-4.4.14/drivers/block/
Dsx8.c614 ioc->handle = cpu_to_le32(TAG_ENCODE(idx)); in carm_array_info()
615 ioc->data_addr = cpu_to_le32(msg_data); in carm_array_info()
682 st->handle = cpu_to_le32(TAG_ENCODE(idx)); in carm_fill_sync_time()
683 st->timestamp = cpu_to_le32(tv.tv_sec); in carm_fill_sync_time()
696 ab->handle = cpu_to_le32(TAG_ENCODE(idx)); in carm_fill_alloc_buf()
699 ab->addr = cpu_to_le32(host->shm_dma + (PDC_SHM_SIZE >> 1)); in carm_fill_alloc_buf()
700 ab->len = cpu_to_le32(PDC_SHM_SIZE >> 1); in carm_fill_alloc_buf()
701 ab->evt_pool = cpu_to_le32(host->shm_dma + (16 * 1024)); in carm_fill_alloc_buf()
702 ab->n_evt = cpu_to_le32(1024); in carm_fill_alloc_buf()
703 ab->rbuf_pool = cpu_to_le32(host->shm_dma); in carm_fill_alloc_buf()
[all …]
/linux-4.4.14/arch/powerpc/crypto/
Dmd5-glue.c104 dst[0] = cpu_to_le32(sctx->hash[0]); in ppc_md5_final()
105 dst[1] = cpu_to_le32(sctx->hash[1]); in ppc_md5_final()
106 dst[2] = cpu_to_le32(sctx->hash[2]); in ppc_md5_final()
107 dst[3] = cpu_to_le32(sctx->hash[3]); in ppc_md5_final()
/linux-4.4.14/drivers/usb/host/
Doxu210hp.h193 #define QTD_NEXT(dma) cpu_to_le32((u32)dma)
238 #define QTD_MASK cpu_to_le32 (~0x1f)
243 #define Q_NEXT_TYPE(dma) ((dma) & cpu_to_le32 (3 << 1))
246 #define Q_TYPE_QH cpu_to_le32 (1 << 1)
249 #define QH_NEXT(dma) (cpu_to_le32(((u32)dma)&~0x01f)|Q_TYPE_QH)
252 #define EHCI_LIST_END cpu_to_le32(1) /* "null pointer" to hw */
Dxhci-mem.c60 seg->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE); in xhci_segment_alloc()
120 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
145 &= ~cpu_to_le32(LINK_TOGGLE); in xhci_link_rings()
147 |= cpu_to_le32(LINK_TOGGLE); in xhci_link_rings()
388 cpu_to_le32(LINK_TOGGLE); in xhci_ring_alloc()
438 cpu_to_le32(TRB_CYCLE); in xhci_reinit_cached_ring()
776 ep_ctx->ep_info &= cpu_to_le32(~EP_MAXPSTREAMS_MASK); in xhci_setup_streams_ep_input_ctx()
777 ep_ctx->ep_info |= cpu_to_le32(EP_MAXPSTREAMS(max_primary_streams) in xhci_setup_streams_ep_input_ctx()
791 ep_ctx->ep_info &= cpu_to_le32(~(EP_MAXPSTREAMS_MASK | EP_HAS_LSA)); in xhci_setup_no_streams_ep_input_ctx()
1108 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1) | udev->route); in xhci_setup_addressable_virt_dev()
[all …]
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_base.c1071 abort_fr->abort_context = cpu_to_le32(cmd_to_abort->index); in megasas_issue_blocked_abort_cmd()
1073 cpu_to_le32(lower_32_bits(cmd_to_abort->frame_phys_addr)); in megasas_issue_blocked_abort_cmd()
1075 cpu_to_le32(upper_32_bits(cmd_to_abort->frame_phys_addr)); in megasas_issue_blocked_abort_cmd()
1122 mfi_sgl->sge32[i].length = cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl32()
1123 mfi_sgl->sge32[i].phys_addr = cpu_to_le32(sg_dma_address(os_sgl)); in megasas_make_sgl32()
1151 mfi_sgl->sge64[i].length = cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl64()
1180 cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl_skinny()
1183 mfi_sgl->sge_skinny[i].flag = cpu_to_le32(0); in megasas_make_sgl_skinny()
1293 pthru->data_xfer_len = cpu_to_le32(scsi_bufflen(scp)); in megasas_build_dcdb()
1334 cpu_to_le32(upper_32_bits(cmd->sense_phys_addr)); in megasas_build_dcdb()
[all …]
Dmegaraid_sas_fusion.c682 cpu_to_le32(upper_32_bits(ioc_init_handle)); in megasas_ioc_init_fusion()
684 cpu_to_le32(lower_32_bits(ioc_init_handle)); in megasas_ioc_init_fusion()
685 init_frame->data_xfer_len = cpu_to_le32(sizeof(struct MPI2_IOC_INIT_REQUEST)); in megasas_ioc_init_fusion()
687 req_desc.u.low = cpu_to_le32(lower_32_bits(cmd->frame_phys_addr)); in megasas_ioc_init_fusion()
688 req_desc.u.high = cpu_to_le32(upper_32_bits(cmd->frame_phys_addr)); in megasas_ioc_init_fusion()
770 dcmd->data_xfer_len = cpu_to_le32(pd_seq_map_sz); in megasas_sync_pd_seq_num()
771 dcmd->opcode = cpu_to_le32(MR_DCMD_SYSTEM_PD_MAP_GET_INFO); in megasas_sync_pd_seq_num()
772 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(pd_seq_h); in megasas_sync_pd_seq_num()
773 dcmd->sgl.sge32[0].length = cpu_to_le32(pd_seq_map_sz); in megasas_sync_pd_seq_num()
863 __func__, cpu_to_le32(size_map_info)); in megasas_get_ld_map_info()
[all …]
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dfwil.c171 __le32 data_le = cpu_to_le32(data); in brcmf_fil_cmd_int_set()
185 __le32 data_le = cpu_to_le32(*data); in brcmf_fil_cmd_int_get()
278 __le32 data_le = cpu_to_le32(data); in brcmf_fil_iovar_int_set()
286 __le32 data_le = cpu_to_le32(*data); in brcmf_fil_iovar_int_get()
329 bssidx_le = cpu_to_le32(bssidx); in brcmf_create_bsscfg()
403 __le32 data_le = cpu_to_le32(data); in brcmf_fil_bsscfg_int_set()
412 __le32 data_le = cpu_to_le32(*data); in brcmf_fil_bsscfg_int_get()
Dcfg80211.c423 key_le->index = cpu_to_le32(key->index); in convert_key_from_CPU()
424 key_le->len = cpu_to_le32(key->len); in convert_key_from_CPU()
425 key_le->algo = cpu_to_le32(key->algo); in convert_key_from_CPU()
426 key_le->flags = cpu_to_le32(key->flags); in convert_key_from_CPU()
427 key_le->rxiv.hi = cpu_to_le32(key->rxiv.hi); in convert_key_from_CPU()
429 key_le->iv_initialized = cpu_to_le32(key->iv_initialized); in convert_key_from_CPU()
514 mbss_ssid_le.bsscfgidx = cpu_to_le32(bsscfgidx); in brcmf_cfg80211_request_ap_if()
515 mbss_ssid_le.SSID_len = cpu_to_le32(5); in brcmf_cfg80211_request_ap_if()
692 params_le.channel_num = cpu_to_le32(1); in brcmf_notify_escan_complete()
693 params_le.nprobes = cpu_to_le32(1); in brcmf_notify_escan_complete()
[all …]
Dp2p.c704 sparams->ssid_le.SSID_len = cpu_to_le32(ssid.SSID_len); in brcmf_p2p_escan()
705 sparams->home_time = cpu_to_le32(P2PAPI_SCAN_HOME_TIME_MS); in brcmf_p2p_escan()
735 sparams->active_time = cpu_to_le32(active); in brcmf_p2p_escan()
736 sparams->nprobes = cpu_to_le32(nprobes); in brcmf_p2p_escan()
737 sparams->passive_time = cpu_to_le32(-1); in brcmf_p2p_escan()
738 sparams->channel_num = cpu_to_le32(num_chans & in brcmf_p2p_escan()
744 p2p_params->eparams.version = cpu_to_le32(BRCMF_ESCAN_REQ_VERSION); in brcmf_p2p_escan()
1574 af_params->dwell_time = cpu_to_le32(P2P_AF_MED_DWELL_TIME); in brcmf_p2p_pub_af_tx()
1579 af_params->dwell_time = cpu_to_le32(P2P_AF_MED_DWELL_TIME); in brcmf_p2p_pub_af_tx()
1588 af_params->dwell_time = cpu_to_le32(P2P_AF_MIN_DWELL_TIME); in brcmf_p2p_pub_af_tx()
[all …]
Dmsgbuf.c444 request->msg.request_id = cpu_to_le32(BRCMF_IOCTL_REQ_PKTID); in brcmf_msgbuf_tx_ioctl()
445 request->cmd = cpu_to_le32(cmd); in brcmf_msgbuf_tx_ioctl()
451 request->req_buf_addr.high_addr = cpu_to_le32(msgbuf->ioctbuf_phys_hi); in brcmf_msgbuf_tx_ioctl()
452 request->req_buf_addr.low_addr = cpu_to_le32(msgbuf->ioctbuf_phys_lo); in brcmf_msgbuf_tx_ioctl()
614 create->flow_ring_addr.high_addr = cpu_to_le32(address >> 32); in brcmf_msgbuf_flowring_create_worker()
615 create->flow_ring_addr.low_addr = cpu_to_le32(address & 0xffffffff); in brcmf_msgbuf_flowring_create_worker()
727 tx_msghdr->msg.request_id = cpu_to_le32(pktid); in brcmf_msgbuf_txflow()
736 tx_msghdr->data_buf_addr.high_addr = cpu_to_le32(address >> 32); in brcmf_msgbuf_txflow()
738 cpu_to_le32(address & 0xffffffff); in brcmf_msgbuf_txflow()
930 cpu_to_le32(address >> 32); in brcmf_msgbuf_rxbuf_data_post()
[all …]
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes_mgt.c87 cpu_to_le32(mgtvnic->nesvnic->max_frame_size); in nes_replenish_mgt_rq()
90 cpu_to_le32((u32)bus_address); in nes_replenish_mgt_rq()
92 cpu_to_le32((u32)((u64)bus_address >> 32)); in nes_replenish_mgt_rq()
669 cpu_to_le32((u32)PCI_FUNC(nesdev->pcidev->devfn) << 24); in nes_chg_qh_handler()
681 nesqp->nesqp_context->hte_index = cpu_to_le32(nesqp->hte_index); in nes_chg_qh_handler()
682 nesqp->nesqp_context->ip0 = cpu_to_le32(0x7f000001); in nes_chg_qh_handler()
683 nesqp->nesqp_context->rcv_nxt = cpu_to_le32(nesqp->pau_rcv_nxt); in nes_chg_qh_handler()
950 cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX] = cpu_to_le32( in nes_init_mgt_qp()
953 cqp_wqe->wqe_words[NES_CQP_WQE_ID_IDX] = cpu_to_le32( in nes_init_mgt_qp()
959 cqp_wqe->wqe_words[NES_CQP_CQ_WQE_CQ_CONTEXT_LOW_IDX] = cpu_to_le32((u32)(u64temp >> 1)); in nes_init_mgt_qp()
[all …]
Dnes_verbs.c118 cpu_to_le32( NES_CQP_ALLOCATE_STAG | NES_CQP_STAG_RIGHTS_REMOTE_READ | in nes_alloc_mw()
338 cpu_to_le32((u32)(region_length >> 8) & 0xff000000); in alloc_fast_reg_mr()
340 cpu_to_le32(nespd->pd_id & 0x00007fff); in alloc_fast_reg_mr()
347 cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX] |= cpu_to_le32(NES_CQP_STAG_PBL_BLK_SIZE); in alloc_fast_reg_mr()
1253 nesqp->nesqp_context->misc |= cpu_to_le32((u32)PCI_FUNC(nesdev->pcidev->devfn) << in nes_create_qp()
1255 nesqp->nesqp_context->misc |= cpu_to_le32((u32)nesqp->hwqp.rq_encoded_size << in nes_create_qp()
1257 nesqp->nesqp_context->misc |= cpu_to_le32((u32)nesqp->hwqp.sq_encoded_size << in nes_create_qp()
1260 nesqp->nesqp_context->misc |= cpu_to_le32(NES_QPCONTEXT_MISC_PRIV_EN); in nes_create_qp()
1261 nesqp->nesqp_context->misc |= cpu_to_le32(NES_QPCONTEXT_MISC_FAST_REGISTER_EN); in nes_create_qp()
1263 nesqp->nesqp_context->cqs = cpu_to_le32(nesqp->nesscq->hw_cq.cq_number + in nes_create_qp()
[all …]
Dnes_hw.c1088 cpu_to_le32((PCI_FUNC(nesdev->pcidev->devfn) << 12) + (2 << 10)); in nes_init_cqp()
1090 cqp_qp_context->context_words[2] = cpu_to_le32((u32)nesdev->cqp.sq_pbase); in nes_init_cqp()
1091 cqp_qp_context->context_words[3] = cpu_to_le32(((u64)nesdev->cqp.sq_pbase) >> 32); in nes_init_cqp()
1130 cpu_to_le32((u32)(u64temp >> 1)); in nes_init_cqp()
1132 cpu_to_le32(((u32)((u64temp) >> 33)) & 0x7FFFFFFF); in nes_init_cqp()
1236 cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX] = cpu_to_le32(NES_CQP_DESTROY_AEQ | in nes_destroy_cqp()
1244 cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX] = cpu_to_le32(NES_CQP_DESTROY_CEQ | in nes_destroy_cqp()
1251 cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX] = cpu_to_le32(NES_CQP_DESTROY_CEQ | in nes_destroy_cqp()
1258 cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX] = cpu_to_le32(NES_CQP_DESTROY_CQ); in nes_destroy_cqp()
1259 cqp_wqe->wqe_words[NES_CQP_WQE_ID_IDX] = cpu_to_le32(nesdev->ccq.cq_number | in nes_destroy_cqp()
[all …]
Dnes_cm.c790 cpu_to_le32(NES_IWARP_SQ_OP_RDMAW); in build_rdma0_msg()
803 cpu_to_le32(NES_IWARP_SQ_OP_RDMAR); in build_rdma0_msg()
818 nesqp->nesqp_context->ird_ord_sizes &= cpu_to_le32(~(NES_QPCONTEXT_ORDIRD_LSMM_PRESENT | in build_rdma0_msg()
2935 nesqp->nesqp_context->misc |= cpu_to_le32(NES_QPCONTEXT_MISC_IPV4 | in nes_cm_init_tsa_conn()
2940 nesqp->nesqp_context->misc |= cpu_to_le32(NES_QPCONTEXT_MISC_WSCALE); in nes_cm_init_tsa_conn()
2942 nesqp->nesqp_context->misc2 |= cpu_to_le32(64 << NES_QPCONTEXT_MISC2_TTL_SHIFT); in nes_cm_init_tsa_conn()
2944 nesqp->nesqp_context->misc2 |= cpu_to_le32( in nes_cm_init_tsa_conn()
2947 nesqp->nesqp_context->mss |= cpu_to_le32(((u32)cm_node->tcp_cntxt.mss) << 16); in nes_cm_init_tsa_conn()
2949 nesqp->nesqp_context->tcp_state_flow_label |= cpu_to_le32( in nes_cm_init_tsa_conn()
2952 nesqp->nesqp_context->pd_index_wscale |= cpu_to_le32( in nes_cm_init_tsa_conn()
[all …]
/linux-4.4.14/fs/reiserfs/
Dreiserfs.h116 #define set_sb_block_count(sbp,v) ((sbp)->s_v1.s_block_count = cpu_to_le32(v))
118 #define set_sb_free_blocks(sbp,v) ((sbp)->s_v1.s_free_blocks = cpu_to_le32(v))
120 #define set_sb_root_block(sbp,v) ((sbp)->s_v1.s_root_block = cpu_to_le32(v))
125 ((sbp)->s_v1.s_journal.jp_journal_1st_block = cpu_to_le32(v))
129 ((sbp)->s_v1.s_journal.jp_journal_dev = cpu_to_le32(v))
133 ((sbp)->s_v1.s_journal.jp_journal_size = cpu_to_le32(v))
137 ((sbp)->s_v1.s_journal.jp_journal_trans_max = cpu_to_le32(v))
141 ((sbp)->s_v1.s_journal.jp_journal_magic = cpu_to_le32(v))
145 ((sbp)->s_v1.s_journal.jp_journal_max_batch = cpu_to_le32(v))
149 ((sbp)->s_v1.s_journal.jp_journal_max_commit_age = cpu_to_le32(v))
[all …]
Dobjectid.c76 map[1] = cpu_to_le32(unused_objectid + 1); in reiserfs_get_unused_objectid()
167 map[i + 1] = cpu_to_le32(objectid_to_release); in reiserfs_release_objectid()
168 map[i + 2] = cpu_to_le32(objectid_to_release + 1); in reiserfs_release_objectid()
/linux-4.4.14/drivers/net/wireless/libertas_tf/
Dif_usb.c314 fwdata->seqnum = cpu_to_le32(++cardp->fwseqnum); in if_usb_send_fw_pkt()
320 if (fwdata->hdr.dnldcmd == cpu_to_le32(FW_HAS_DATA_TO_RECV)) { in if_usb_send_fw_pkt()
325 } else if (fwdata->hdr.dnldcmd == cpu_to_le32(FW_HAS_LAST_BLOCK)) { in if_usb_send_fw_pkt()
350 *(__le32 *)cardp->ep_out_buf = cpu_to_le32(CMD_TYPE_REQUEST); in if_usb_reset_device()
490 if (tmp[0] == cpu_to_le32(CMD_TYPE_INDICATION) && in if_usb_receive_fwload()
491 tmp[1] == cpu_to_le32(MACREG_INT_CODE_FIRMWARE_READY)) { in if_usb_receive_fwload()
517 if (bcmdresp.magic != cpu_to_le32(BOOT_CMD_MAGIC_NUMBER)) { in if_usb_receive_fwload()
518 if (bcmdresp.magic == cpu_to_le32(CMD_TYPE_REQUEST) || in if_usb_receive_fwload()
519 bcmdresp.magic == cpu_to_le32(CMD_TYPE_DATA) || in if_usb_receive_fwload()
520 bcmdresp.magic == cpu_to_le32(CMD_TYPE_INDICATION)) { in if_usb_receive_fwload()
[all …]
/linux-4.4.14/arch/sparc/crypto/
Dmd5_glue.c36 mctx->hash[0] = cpu_to_le32(MD5_H0); in md5_sparc64_init()
37 mctx->hash[1] = cpu_to_le32(MD5_H1); in md5_sparc64_init()
38 mctx->hash[2] = cpu_to_le32(MD5_H2); in md5_sparc64_init()
39 mctx->hash[3] = cpu_to_le32(MD5_H3); in md5_sparc64_init()
/linux-4.4.14/sound/pci/echoaudio/
Dmia_dsp.c142 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
143 chip->comm_page->control_register = cpu_to_le32(control_reg); in set_sample_rate()
218 cpu_to_le32(DSP_FLAG_PROFESSIONAL_SPDIF); in set_professional_spdif()
221 ~cpu_to_le32(DSP_FLAG_PROFESSIONAL_SPDIF); in set_professional_spdif()
Dlayla20_dsp.c169 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
179 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
283 cpu_to_le32(DSP_FLAG_PROFESSIONAL_SPDIF); in set_professional_spdif()
286 ~cpu_to_le32(DSP_FLAG_PROFESSIONAL_SPDIF); in set_professional_spdif()
Dechoaudio_dsp.c540 chip->comm_page->nominal_level_mask |= cpu_to_le32(1 << index); in set_nominal_level()
542 chip->comm_page->nominal_level_mask &= ~cpu_to_le32(1 << index); in set_nominal_level()
868 chip->comm_page->cmd_start |= cpu_to_le32(channel_mask); in start_transport()
893 chip->comm_page->cmd_stop |= cpu_to_le32(channel_mask); in pause_transport()
919 chip->comm_page->cmd_stop |= cpu_to_le32(channel_mask); in stop_transport()
920 chip->comm_page->cmd_reset |= cpu_to_le32(channel_mask); in stop_transport()
991 cpu_to_le32(sizeof(struct comm_page)); in init_dsp_comm_page()
994 cpu_to_le32(DSP_MIDI_OUT_FIFO_SIZE); in init_dsp_comm_page()
995 chip->comm_page->sample_rate = cpu_to_le32(44100); in init_dsp_comm_page()
1126 cpu_to_le32(pipe->sgpage.addr); in sglist_init()
[all …]
Dechoaudio_3g.c43 chip->comm_page->ext_box_status = cpu_to_le32(E3G_ASIC_NOT_LOADED); in check_asic_status()
82 ctl = cpu_to_le32(ctl); in write_control_reg()
83 frq = cpu_to_le32(frq); in write_control_reg()
265 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
315 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
Dgina20_dsp.c131 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
209 cpu_to_le32(DSP_FLAG_PROFESSIONAL_SPDIF); in set_professional_spdif()
212 ~cpu_to_le32(DSP_FLAG_PROFESSIONAL_SPDIF); in set_professional_spdif()
/linux-4.4.14/drivers/atm/
Dnicstar.h167 ((ns_rsqep)->word_4 = cpu_to_le32(0x00000000))
231 (cpu_to_le32((flags) | (m) << 23 | (n) << 16 | (buflen)))
233 (cpu_to_le32((flags) | (buflen) | 0x00810000))
235 (cpu_to_le32((control) << 16 | (pdulen)))
237 (cpu_to_le32((gfc) << 28 | (vpi) << 20 | (vci) << 4 | (pt) << 1 | (clp)))
244 (cpu_to_le32(NS_SCQE_TYPE_TSR | (flags)))
246 (cpu_to_le32((scdi) << 16 | 0x00008000 | (scqi)))
282 ((ns_tsip)->word_2 = cpu_to_le32(NS_TSI_EMPTY))
/linux-4.4.14/drivers/ide/
Dide-dma-sff.c142 *table++ = cpu_to_le32(cur_addr); in ide_build_dmatable()
149 *table++ = cpu_to_le32(0x8000); in ide_build_dmatable()
150 *table++ = cpu_to_le32(cur_addr + 0x8000); in ide_build_dmatable()
153 *table++ = cpu_to_le32(xcount); in ide_build_dmatable()
161 *--table |= cpu_to_le32(0x80000000); in ide_build_dmatable()
/linux-4.4.14/arch/mips/include/asm/mach-ip27/
Dmangle-port.h21 # define __mem_ioswabl(a, x) cpu_to_le32(x)
23 # define __mem_ioswabq(a, x) cpu_to_le32(x)
/linux-4.4.14/arch/mips/include/asm/mach-ip32/
Dmangle-port.h22 # define __mem_ioswabl(a, x) cpu_to_le32(x)
24 # define __mem_ioswabq(a, x) cpu_to_le32(x)
/linux-4.4.14/drivers/net/wireless/libertas/
Dif_usb.c362 fwdata->seqnum = cpu_to_le32(++cardp->fwseqnum); in if_usb_send_fw_pkt()
368 if (fwdata->hdr.dnldcmd == cpu_to_le32(FW_HAS_DATA_TO_RECV)) { in if_usb_send_fw_pkt()
372 } else if (fwdata->hdr.dnldcmd == cpu_to_le32(FW_HAS_LAST_BLOCK)) { in if_usb_send_fw_pkt()
392 *(__le32 *)cardp->ep_out_buf = cpu_to_le32(CMD_TYPE_REQUEST); in if_usb_reset_device()
514 if (tmp[0] == cpu_to_le32(CMD_TYPE_INDICATION) && in if_usb_receive_fwload()
515 tmp[1] == cpu_to_le32(MACREG_INT_CODE_FIRMWARE_READY)) { in if_usb_receive_fwload()
538 if (bootcmdresp.magic != cpu_to_le32(BOOT_CMD_MAGIC_NUMBER)) { in if_usb_receive_fwload()
539 if (bootcmdresp.magic == cpu_to_le32(CMD_TYPE_REQUEST) || in if_usb_receive_fwload()
540 bootcmdresp.magic == cpu_to_le32(CMD_TYPE_DATA) || in if_usb_receive_fwload()
541 bootcmdresp.magic == cpu_to_le32(CMD_TYPE_INDICATION)) { in if_usb_receive_fwload()
[all …]
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dxircom_cb.c407 card->tx_buffer[4*desc+1] = cpu_to_le32(skb->len); in xircom_start_xmit()
409 card->tx_buffer[4*desc+1] |= cpu_to_le32(1<<25); in xircom_start_xmit()
411 card->tx_buffer[4*desc+1] |= cpu_to_le32(0xF0000000); in xircom_start_xmit()
417 card->tx_buffer[4*desc] = cpu_to_le32(0x80000000); in xircom_start_xmit()
419 if (card->tx_buffer[nextdescriptor*4] & cpu_to_le32(0x8000000)) { in xircom_start_xmit()
575 card->rx_buffer[i*4 + 0] = cpu_to_le32(0x80000000); in setup_descriptors()
577 card->rx_buffer[i*4 + 1] = cpu_to_le32(1536); in setup_descriptors()
579 card->rx_buffer[i*4 + 1] |= cpu_to_le32(1 << 25); in setup_descriptors()
585 card->rx_buffer[i*4 + 2] = cpu_to_le32(address + bufferoffsets[i]); in setup_descriptors()
603 card->tx_buffer[i*4 + 1] = cpu_to_le32(1536); in setup_descriptors()
[all …]
Duli526x.c629 txptr->tdes1 = cpu_to_le32(0xe1000000 | skb->len); in uli526x_start_xmit()
636 txptr->tdes0 = cpu_to_le32(0x80000000); /* Set owner bit */ in uli526x_start_xmit()
1281 if (!(rxptr->rdes0 & cpu_to_le32(0x80000000))) { in uli526x_reuse_skb()
1283 rxptr->rdes2 = cpu_to_le32(pci_map_single(db->pdev, in uli526x_reuse_skb()
1288 rxptr->rdes0 = cpu_to_le32(0x80000000); in uli526x_reuse_skb()
1331 tmp_tx->tdes0 = cpu_to_le32(0); in uli526x_descriptor_init()
1332 tmp_tx->tdes1 = cpu_to_le32(0x81000000); /* IC, chain */ in uli526x_descriptor_init()
1333 tmp_tx->tdes2 = cpu_to_le32(tmp_buf_dma); in uli526x_descriptor_init()
1335 tmp_tx->tdes3 = cpu_to_le32(tmp_tx_dma); in uli526x_descriptor_init()
1340 (--tmp_tx)->tdes3 = cpu_to_le32(db->first_tx_desc_dma); in uli526x_descriptor_init()
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dacx.c186 acx->lifetime = cpu_to_le32(wl->conf.rx.rx_msdu_life_time); in wl1271_acx_rx_msdu_life_time()
341 dco->timeout = cpu_to_le32(c->timeout); in wl1271_acx_dco_itrim_params()
476 acx->synch_fail_thold = cpu_to_le32(threshold); in wl1271_acx_conn_monit_params()
477 acx->bss_lose_timeout = cpu_to_le32(timeout); in wl1271_acx_conn_monit_params()
538 param->params[i] = cpu_to_le32(c->params[i]); in wl12xx_acx_sg_cfg()
649 mask->high_event_mask = cpu_to_le32(0xffffffff); in wl1271_acx_event_mbox_mask()
650 mask->event_mask = cpu_to_le32(event_mask); in wl1271_acx_event_mbox_mask()
756 acx->rate_policy_idx = cpu_to_le32(wlvif->sta.basic_rate_idx); in wl1271_acx_sta_rate_policies()
757 acx->rate_policy.enabled_rates = cpu_to_le32(wlvif->basic_rate); in wl1271_acx_sta_rate_policies()
769 acx->rate_policy_idx = cpu_to_le32(wlvif->sta.ap_rate_idx); in wl1271_acx_sta_rate_policies()
[all …]
/linux-4.4.14/arch/sh/include/mach-common/mach/
Dmangle-port.h43 # define __mem_ioswabl(x) cpu_to_le32(x)
45 # define __mem_ioswabq(x) cpu_to_le32(x)
/linux-4.4.14/drivers/ata/
Dsata_promise.h57 buf32[0] = cpu_to_le32(PDC_PKT_READ); in pdc_pkt_header()
63 buf32[0] = cpu_to_le32(PDC_PKT_NODATA); in pdc_pkt_header()
71 buf32[1] = cpu_to_le32(sg_table); /* S/G table addr */ in pdc_pkt_header()
/linux-4.4.14/drivers/net/wimax/i2400m/
Di2400m.h202 .address = cpu_to_le32(a), \
203 .data = cpu_to_le32(d) \
732 return cpu_to_le32( in i2400m_brh_command()
744 hdr->command = cpu_to_le32( in i2400m_brh_set_opcode()
851 pld->val = cpu_to_le32( in i2400m_pld_set()
Dusb.c282 cpu_to_le32(I2400M_WARM_RESET_BARKER), in i2400mu_bus_reset()
283 cpu_to_le32(I2400M_WARM_RESET_BARKER), in i2400mu_bus_reset()
284 cpu_to_le32(I2400M_WARM_RESET_BARKER), in i2400mu_bus_reset()
285 cpu_to_le32(I2400M_WARM_RESET_BARKER), in i2400mu_bus_reset()
288 cpu_to_le32(I2400M_COLD_RESET_BARKER), in i2400mu_bus_reset()
289 cpu_to_le32(I2400M_COLD_RESET_BARKER), in i2400mu_bus_reset()
290 cpu_to_le32(I2400M_COLD_RESET_BARKER), in i2400mu_bus_reset()
291 cpu_to_le32(I2400M_COLD_RESET_BARKER), in i2400mu_bus_reset()
/linux-4.4.14/drivers/scsi/snic/
Dsnic_res.h42 req->u.icmnd.data_len = cpu_to_le32(data_len); in snic_icmnd_init()
44 req->u.icmnd.sense_len = cpu_to_le32(sense_len); in snic_icmnd_init()
57 req->u.itmf.req_id = cpu_to_le32(req_id); in snic_itmf_init()
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-vbi.c172 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 8); in buffer_queue()
173 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in buffer_queue()
174 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 8); in buffer_queue()
183 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in buffer_queue()
186 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in buffer_queue()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c396 *buffer++ = cpu_to_le32(addr); in qlcnic_dump_crb()
397 *buffer++ = cpu_to_le32(data); in qlcnic_dump_crb()
512 *buffer++ = cpu_to_le32(val); in qlcnic_dump_mux()
513 *buffer++ = cpu_to_le32(data); in qlcnic_dump_mux()
534 *buffer++ = cpu_to_le32(data); in qlcnic_dump_que()
553 *buffer++ = cpu_to_le32(data); in qlcnic_dump_ocm()
583 *buffer++ = cpu_to_le32(val); in qlcnic_read_rom()
605 *buffer++ = cpu_to_le32(data); in qlcnic_dump_l1_cache()
652 *buffer++ = cpu_to_le32(data); in qlcnic_dump_l2_cache()
701 *buffer++ = cpu_to_le32(data); in qlcnic_read_memory_test_agent()
[all …]
/linux-4.4.14/drivers/net/wireless/mwifiex/
D11ac.c105 cpu_to_le32(adapter->usr_dot_11ac_dev_cap_a); in mwifiex_fill_vht_cap_info()
108 cpu_to_le32(adapter->usr_dot_11ac_dev_cap_bg); in mwifiex_fill_vht_cap_info()
277 vhtcfg->cap_info = cpu_to_le32(cfg->cap_info); in mwifiex_cmd_11ac_cfg()
278 vhtcfg->mcs_tx_set = cpu_to_le32(cfg->mcs_tx_set); in mwifiex_cmd_11ac_cfg()
279 vhtcfg->mcs_rx_set = cpu_to_le32(cfg->mcs_rx_set); in mwifiex_cmd_11ac_cfg()
Dsta_ioctl.c424 cpu_to_le32(hs_cfg->conditions); in mwifiex_set_hs_params()
427 cpu_to_le32(hs_cfg->conditions); in mwifiex_set_hs_params()
432 cpu_to_le32(HS_CFG_CANCEL)) { in mwifiex_set_hs_params()
448 cpu_to_le32(prev_cond); in mwifiex_set_hs_params()
451 cpu_to_le32(hs_cfg->conditions); in mwifiex_set_hs_params()
669 txp_cfg->mode = cpu_to_le32(1); in mwifiex_set_tx_power()
1058 ver.l = cpu_to_le32(adapter->fw_release_number); in mwifiex_drv_get_driver_version()
1147 roc_cfg.duration = cpu_to_le32(duration); in mwifiex_remain_on_chan_cfg()
1227 reg_rw.type = cpu_to_le32(reg_type); in mwifiex_reg_write()
1228 reg_rw.offset = cpu_to_le32(reg_offset); in mwifiex_reg_write()
[all …]
Dsta_tx.c95 cpu_to_le32(priv->wmm.user_pri_pkt_tx_ctrl[local_tx_pd-> in mwifiex_process_sta_txpd()
124 local_tx_pd->tx_control = cpu_to_le32(priv->pkt_tx_ctrl); in mwifiex_process_sta_txpd()
173 local_tx_pd->tx_control = cpu_to_le32(priv->pkt_tx_ctrl); in mwifiex_send_null_packet()
/linux-4.4.14/arch/mips/include/asm/mach-generic/
Dmangle-port.h46 # define __mem_ioswabl(a, x) cpu_to_le32(x)
48 # define __mem_ioswabq(a, x) cpu_to_le32(x)
/linux-4.4.14/drivers/scsi/be2iscsi/
Dbe_mgmt.c182 req->num_eq = cpu_to_le32(num); in be_cmd_modify_eq_delay()
184 req->delay[i].eq_id = cpu_to_le32(set_eqd[i].eq_id); in be_cmd_modify_eq_delay()
187 cpu_to_le32(set_eqd[i].delay_multiplier); in be_cmd_modify_eq_delay()
309 sge->pa_hi = cpu_to_le32(upper_32_bits(nonemb_cmd->dma)); in mgmt_get_session_info()
310 sge->pa_lo = cpu_to_le32(nonemb_cmd->dma & 0xFFFFFFFF); in mgmt_get_session_info()
311 sge->len = cpu_to_le32(nonemb_cmd->size); in mgmt_get_session_info()
448 sge->pa_hi = cpu_to_le32(upper_32_bits(nonemb_cmd.dma)); in mgmt_check_supported_fw()
449 sge->pa_lo = cpu_to_le32(nonemb_cmd.dma & 0xFFFFFFFF); in mgmt_check_supported_fw()
450 sge->len = cpu_to_le32(nonemb_cmd.size); in mgmt_check_supported_fw()
538 mcc_sge->pa_hi = cpu_to_le32(upper_32_bits(nonemb_cmd->dma)); in mgmt_vendor_specific_fw_cmd()
[all …]
/linux-4.4.14/fs/ext4/
Dext4.h756 return cpu_to_le32(extra | (time->tv_nsec << EXT4_EPOCH_BITS)); in ext4_encode_extra_time()
762 (extra & cpu_to_le32(EXT4_EPOCH_MASK)))) { in ext4_decode_extra_time()
784 (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); \
793 (raw_inode)->xtime = cpu_to_le32((einode)->xtime.tv_sec); \
1605 ((EXT4_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask)) != 0)
1607 ((EXT4_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask)) != 0)
1609 ((EXT4_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask)) != 0)
1611 EXT4_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask)
1613 EXT4_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask)
1615 EXT4_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(mask)
[all …]
Dacl.c27 cpu_to_le32(EXT4_ACL_VERSION)) in ext4_acl_from_disk()
100 ext_acl->a_version = cpu_to_le32(EXT4_ACL_VERSION); in ext4_acl_to_disk()
109 entry->e_id = cpu_to_le32( in ext4_acl_to_disk()
114 entry->e_id = cpu_to_le32( in ext4_acl_to_disk()
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dtc35815.c943 lp->rfd_base[i].fd.FDCtl = cpu_to_le32(FD_CownsFD); in tc35815_init_queues()
951 lp->tfd_base[i].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[i+1])); in tc35815_init_queues()
952 lp->tfd_base[i].fd.FDSystem = cpu_to_le32(0xffffffff); in tc35815_init_queues()
953 lp->tfd_base[i].fd.FDCtl = cpu_to_le32(0); in tc35815_init_queues()
955 lp->tfd_base[TX_FD_NUM-1].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[0])); in tc35815_init_queues()
961 lp->fbl_ptr->fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, lp->fbl_ptr)); in tc35815_init_queues()
962 lp->fbl_ptr->fd.FDCtl = cpu_to_le32(RX_BUF_NUM | FD_CownsFD); in tc35815_init_queues()
987 cpu_to_le32(lp->rx_skbs[i].skb_dma); in tc35815_init_queues()
990 cpu_to_le32(BD_CownsBD | (i << BD_RxBDID_SHIFT) | in tc35815_init_queues()
1024 lp->tfd_base[i].fd.FDSystem = cpu_to_le32(0xffffffff); in tc35815_clear_queues()
[all …]
/linux-4.4.14/drivers/usb/storage/
Dinitializers.c72 bcb->Signature = cpu_to_le32(US_BULK_CB_SIGN); in usb_stor_ucr61s2b_init()
74 bcb->DataTransferLength = cpu_to_le32(0); in usb_stor_ucr61s2b_init()
/linux-4.4.14/drivers/rapidio/devices/
Dtsi721_dma.c130 bd_ptr[bd_num].type_id = cpu_to_le32(DTYPE3 << 29); in tsi721_bdma_ch_init()
131 bd_ptr[bd_num].next_lo = cpu_to_le32((u64)bd_phys & in tsi721_bdma_ch_init()
133 bd_ptr[bd_num].next_hi = cpu_to_le32((u64)bd_phys >> 32); in tsi721_bdma_ch_init()
346 bd_ptr->type_id = cpu_to_le32((DTYPE1 << 29) | in tsi721_desc_fill_init()
348 bd_ptr->bcount = cpu_to_le32(((desc->rio_addr & 0x3) << 30) | in tsi721_desc_fill_init()
352 bd_ptr->raddr_lo = cpu_to_le32(rio_addr & 0xffffffff); in tsi721_desc_fill_init()
353 bd_ptr->raddr_hi = cpu_to_le32(rio_addr >> 32); in tsi721_desc_fill_init()
354 bd_ptr->t1.bufptr_lo = cpu_to_le32( in tsi721_desc_fill_init()
356 bd_ptr->t1.bufptr_hi = cpu_to_le32((u64)sg_dma_address(sg) >> 32); in tsi721_desc_fill_init()
371 bd_ptr->type_id |= cpu_to_le32(TSI721_DMAD_IOF); in tsi721_desc_fill_end()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c68 req.flags = cpu_to_le32(func_flags); in bnxt_set_vf_spoofchk()
132 req.flags = cpu_to_le32(vf->func_flags); in bnxt_set_vf_mac()
133 req.enables = cpu_to_le32(FUNC_CFG_REQ_ENABLES_DFLT_MAC_ADDR); in bnxt_set_vf_mac()
163 req.flags = cpu_to_le32(vf->func_flags); in bnxt_set_vf_vlan()
165 req.enables = cpu_to_le32(FUNC_CFG_REQ_ENABLES_DFLT_VLAN); in bnxt_set_vf_vlan()
202 req.flags = cpu_to_le32(vf->func_flags); in bnxt_set_vf_bw()
203 req.enables = cpu_to_le32(FUNC_CFG_REQ_ENABLES_MAX_BW); in bnxt_set_vf_bw()
204 req.max_bw = cpu_to_le32(max_tx_rate); in bnxt_set_vf_bw()
205 req.enables |= cpu_to_le32(FUNC_CFG_REQ_ENABLES_MIN_BW); in bnxt_set_vf_bw()
206 req.min_bw = cpu_to_le32(min_tx_rate); in bnxt_set_vf_bw()
[all …]
Dbnxt.h167 ((rxcmp)->rx_cmp_len_flags_type & cpu_to_le32(RX_CMP_FLAGS_RSS_VALID))
226 cpu_to_le32(RX_CMPL_ERRORS_BUFFER_ERROR_MASK | RX_CMPL_ERRORS_CRC_ERROR)
229 (cpu_to_le32(RX_CMP_FLAGS2_L4_CS_CALC | RX_CMP_FLAGS2_T_L4_CS_CALC))
232 (cpu_to_le32(RX_CMPL_ERRORS_L4_CS_ERROR | RX_CMPL_ERRORS_T_L4_CS_ERROR))
284 cpu_to_le32(RX_TPA_START_CMP_FLAGS_RSS_VALID))
353 cpu_to_le32(RX_TPA_END_CMP_FLAGS_PLACEMENT_GRO_JUMBO & \
361 ((rx_tpa_end)->rx_tpa_end_cmp_tsdelta & cpu_to_le32(RX_TPA_END_GRO_TS))
452 (!!((txcmp)->tx_cmp_errors_v & cpu_to_le32(TX_CMP_V)) == \
456 (!!((rxcmp1)->rx_cmp_cfa_code_errors_v2 & cpu_to_le32(RX_CMP_V)) ==\
460 (!!((agg)->rx_agg_cmp_v & cpu_to_le32(RX_AGG_CMP_V)) == \
/linux-4.4.14/drivers/nvdimm/
Dbtt.c131 mapping_le = cpu_to_le32(mapping); in btt_map_write()
271 ent[0].seq = cpu_to_le32(1); in btt_log_get_old()
429 log.lba = cpu_to_le32(i); in btt_log_init()
430 log.old_map = cpu_to_le32(arena->external_nlba + i); in btt_log_init()
431 log.new_map = cpu_to_le32(arena->external_nlba + i); in btt_log_init()
432 log.seq = cpu_to_le32(LOG_SEQ_INIT); in btt_log_init()
754 super->flags = cpu_to_le32(arena->flags); in btt_arena_write_layout()
757 super->external_lbasize = cpu_to_le32(arena->external_lbasize); in btt_arena_write_layout()
758 super->external_nlba = cpu_to_le32(arena->external_nlba); in btt_arena_write_layout()
759 super->internal_lbasize = cpu_to_le32(arena->internal_lbasize); in btt_arena_write_layout()
[all …]
/linux-4.4.14/drivers/macintosh/
Drack-meter.c187 cmd->phy_addr = cpu_to_le32(rm->dma_buf_p + in rackmeter_setup_dbdma()
189 cmd->cmd_dep = cpu_to_le32(0x02000000); in rackmeter_setup_dbdma()
194 cmd->phy_addr = cpu_to_le32(rm->dma_buf_p + in rackmeter_setup_dbdma()
200 cmd->phy_addr = cpu_to_le32(rm->dma_buf_p + in rackmeter_setup_dbdma()
202 cmd->cmd_dep = cpu_to_le32(0x01000000); in rackmeter_setup_dbdma()
207 cmd->phy_addr = cpu_to_le32(rm->dma_buf_p + in rackmeter_setup_dbdma()
209 cmd->cmd_dep = cpu_to_le32(rm->dma_buf_p); in rackmeter_setup_dbdma()
/linux-4.4.14/drivers/net/wireless/ti/wl12xx/
Dscan.c66 cpu_to_le32(c->min_dwell_time_active); in wl1271_get_scan_channels()
68 cpu_to_le32(c->max_dwell_time_active); in wl1271_get_scan_channels()
71 cpu_to_le32(c->dwell_time_passive); in wl1271_get_scan_channels()
73 cpu_to_le32(c->dwell_time_passive); in wl1271_get_scan_channels()
142 cmd->params.tx_rate = cpu_to_le32(basic_rate); in wl1271_scan_send()
169 trigger->timeout = cpu_to_le32(wl->conf.scan.split_scan_timeout); in wl1271_scan_send()
353 cfg->intervals[i] = cpu_to_le32(req->scan_plans[0].interval * in wl1271_scan_sched_scan_config()
/linux-4.4.14/fs/nilfs2/
Dsegbuf.c166 raw_sum->ss_magic = cpu_to_le32(NILFS_SEGSUM_MAGIC); in nilfs_segbuf_fill_in_segsum()
172 raw_sum->ss_nblocks = cpu_to_le32(segbuf->sb_sum.nblocks); in nilfs_segbuf_fill_in_segsum()
173 raw_sum->ss_nfinfo = cpu_to_le32(segbuf->sb_sum.nfinfo); in nilfs_segbuf_fill_in_segsum()
174 raw_sum->ss_sumbytes = cpu_to_le32(segbuf->sb_sum.sumbytes); in nilfs_segbuf_fill_in_segsum()
207 raw_sum->ss_sumsum = cpu_to_le32(crc); in nilfs_segbuf_fill_in_segsum_crc()
234 raw_sum->ss_datasum = cpu_to_le32(crc); in nilfs_segbuf_fill_in_data_crc()
251 raw_sr->sr_sum = cpu_to_le32(crc); in nilfs_segbuf_fill_in_super_root_crc()
/linux-4.4.14/arch/mips/include/asm/mach-cavium-octeon/
Dmangle-port.h68 # define __mem_ioswabl(a, x) cpu_to_le32(x)
70 # define __mem_ioswabq(a, x) cpu_to_le32(x)
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-udma.c80 dma->SGarray[i].size = cpu_to_le32(sg_dma_len(sg)); in ivtv_udma_fill_sg_array()
81 dma->SGarray[i].src = cpu_to_le32(sg_dma_address(sg)); in ivtv_udma_fill_sg_array()
82 dma->SGarray[i].dst = cpu_to_le32(buffer_offset); in ivtv_udma_fill_sg_array()
159 dma->SGarray[dma->SG_length - 1].size |= cpu_to_le32(0x80000000); in ivtv_udma_setup()
/linux-4.4.14/drivers/net/fddi/skfp/
Dhwmtm.c337 d2->r.rxd_rbctrl = cpu_to_le32(BMU_CHECK) ; in init_descr_ring()
340 d2->r.rxd_nrdadr = cpu_to_le32(phys) ; in init_descr_ring()
343 d1->r.rxd_rbctrl = cpu_to_le32(BMU_CHECK) ; in init_descr_ring()
346 d1->r.rxd_nrdadr = cpu_to_le32(phys) ; in init_descr_ring()
616 t->txd_tbctrl &= ~cpu_to_le32(BMU_OWN) ; in repair_txd_ring()
668 r->rxd_rbctrl &= ~cpu_to_le32(BMU_OWN) ; in repair_rxd_ring()
1144 while (rx_used && !(r->rxd_rbctrl & cpu_to_le32(BMU_ST_BUF))) { in process_receive()
1164 rxd->rxd_rbctrl &= cpu_to_le32(~BMU_STF) ; in process_receive()
1425 r->rxd_rbadr = cpu_to_le32(phys) ; in hwm_rx_frag()
1426 rbctrl = cpu_to_le32( (((__u32)frame_status & in hwm_rx_frag()
[all …]
/linux-4.4.14/include/linux/
Dnilfs2_fs.h541 cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | \
547 cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) & \
639 su->su_flags = cpu_to_le32(le32_to_cpu(su->su_flags) | \
646 cpu_to_le32(le32_to_cpu(su->su_flags) & \
664 su->su_nblocks = cpu_to_le32(0); in NILFS_SEGMENT_USAGE_FNS()
665 su->su_flags = cpu_to_le32(0); in NILFS_SEGMENT_USAGE_FNS()
/linux-4.4.14/drivers/md/persistent-data/
Ddm-btree.c103 node->header.nr_entries = cpu_to_le32(nr_entries + 1); in insert_at()
143 n->header.flags = cpu_to_le32(LEAF_NODE); in dm_btree_empty()
144 n->header.nr_entries = cpu_to_le32(0); in dm_btree_empty()
145 n->header.max_entries = cpu_to_le32(max_entries); in dm_btree_empty()
146 n->header.value_size = cpu_to_le32(info->value_type.size); in dm_btree_empty()
542 ln->header.nr_entries = cpu_to_le32(nr_left); in btree_split_sibling()
545 rn->header.nr_entries = cpu_to_le32(nr_right); in btree_split_sibling()
637 ln->header.nr_entries = cpu_to_le32(nr_left); in btree_split_beneath()
642 rn->header.nr_entries = cpu_to_le32(nr_right); in btree_split_beneath()
656 pn->header.flags = cpu_to_le32(INTERNAL_NODE); in btree_split_beneath()
[all …]
/linux-4.4.14/drivers/firewire/
Dnosy.c579 lynx->rcv_start_pcl->next = cpu_to_le32(lynx->rcv_pcl_bus); in add_card()
580 lynx->rcv_pcl->next = cpu_to_le32(PCL_NEXT_INVALID); in add_card()
581 lynx->rcv_pcl->async_error_next = cpu_to_le32(PCL_NEXT_INVALID); in add_card()
584 cpu_to_le32(PCL_CMD_RCV | PCL_BIGENDIAN | 2044); in add_card()
586 cpu_to_le32(lynx->rcv_buffer_bus + 4); in add_card()
591 cpu_to_le32(PCL_CMD_RCV | PCL_BIGENDIAN | 2048); in add_card()
592 lynx->rcv_pcl->buffer[i].pointer = cpu_to_le32(p); in add_card()
594 lynx->rcv_pcl->buffer[i - 1].control |= cpu_to_le32(PCL_LAST_BUFF); in add_card()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dwmi.c377 cpu_to_le32(WMI_IMPLICIT_PSTREAM_INACTIVITY_INT); in ath6kl_wmi_implicit_create_pstream()
816 cmd->beacon_intvl = cpu_to_le32(beacon_intvl); in ath6kl_wmi_ap_set_beacon_intvl_cmd()
832 cmd->dtim_period = cpu_to_le32(dtim_period); in ath6kl_wmi_ap_set_dtim_cmd()
1498 cmd.poll_time = cpu_to_le32(sq_thresh->polling_interval); in ath6kl_wmi_rssi_threshold_event_rx()
1614 cmd->rate = cpu_to_le32(rate); in ath6kl_wmi_set_txe_notify()
1615 cmd->pkts = cpu_to_le32(pkts); in ath6kl_wmi_set_txe_notify()
1616 cmd->intvl = cpu_to_le32(intvl); in ath6kl_wmi_set_txe_notify()
1731 cmd.poll_time = cpu_to_le32(sq_thresh->polling_interval); in ath6kl_wmi_snr_threshold_event_rx()
1891 cc->ctrl_flags = cpu_to_le32(ctrl_flags); in ath6kl_wmi_connect_cmd()
1978 sc->force_fg_scan = cpu_to_le32(force_fgscan); in ath6kl_wmi_startscan_cmd()
[all …]
/linux-4.4.14/drivers/net/wan/
Ddscc4.c183 #define TO_STATE_TX(len) cpu_to_le32(((len) & TxSizeMax) << 16)
184 #define TO_STATE_RX(len) cpu_to_le32((RX_MAX(len) % RxSizeMax) << 16)
306 #define Hold cpu_to_le32(0x40000000)
315 #define FrameAborted cpu_to_le32(0x00000200)
316 #define FrameEnd cpu_to_le32(0x80000000)
317 #define DataComplete cpu_to_le32(0x40000000)
322 #define HiDesc cpu_to_le32(0x20000000)
531 rx_fd->data = cpu_to_le32(pci_map_single(dpriv->pci_priv->pdev, in try_get_rx_skb()
596 (dpriv->iqtx[cur] & cpu_to_le32(Xpr))) in dscc4_xpr_ack()
687 rx_fd->end = cpu_to_le32(0xbabeface); in dscc4_rx_skb()
[all …]
/linux-4.4.14/arch/x86/crypto/
Dcrc32c-intel_glue.c149 *(__le32 *)out = ~cpu_to_le32(crc32c_intel_le_hw(*crcp, data, len)); in __crc32c_intel_finup()
207 *(__le32 *)out = ~cpu_to_le32(crc_pcl(data, len, *crcp)); in __crc32c_pcl_intel_finup()
211 ~cpu_to_le32(crc32c_intel_le_hw(*crcp, data, len)); in __crc32c_pcl_intel_finup()
/linux-4.4.14/arch/arm/mach-mvebu/
Dpm-board.c46 srcmd = cpu_to_le32(srcmd); in mvebu_armada_pm_enter()
47 ackcmd = cpu_to_le32(ackcmd); in mvebu_armada_pm_enter()

123456