Lines Matching refs:cpu_to_le32
135 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()
471 hw_fib->header.XferState |= cpu_to_le32(ResponseExpected); in aac_fib_send()
478 hw_fib->header.SenderFibAddress = cpu_to_le32(((u32)(fibptr - dev->fibs)) << 2); in aac_fib_send()
488 hw_fib->header.XferState |= cpu_to_le32(SentFromHost); in aac_fib_send()
500 hw_fib->header.XferState |= cpu_to_le32(NormalPriority); in aac_fib_send()
699 *q->headers.consumer = cpu_to_le32(1); in aac_consumer_free()
765 if (hw_fib->header.XferState & cpu_to_le32(SentFromAdapter)) { in aac_fib_adapter_complete()
770 hw_fib->header.XferState |= cpu_to_le32(HostProcessed); in aac_fib_adapter_complete()
780 *(q->headers.producer) = cpu_to_le32(index + 1); in aac_fib_adapter_complete()
825 if((hw_fib->header.XferState & cpu_to_le32(SentFromHost)) && in aac_fib_complete()
826 (hw_fib->header.XferState & cpu_to_le32(AdapterProcessed))) in aac_fib_complete()
830 else if(hw_fib->header.XferState & cpu_to_le32(SentFromHost)) in aac_fib_complete()
837 } else if(hw_fib->header.XferState & cpu_to_le32(HostOwned)) { in aac_fib_complete()
938 cpu_to_le32(AifRawDeviceRemove)) ? DELETE : ADD; in aac_handle_aif()
1004 (((__le32 *)aifcmd->data)[1] == cpu_to_le32(3)); in aac_handle_aif()
1074 cpu_to_le32(AifEnAddJBOD)) ? ADD : DELETE; in aac_handle_aif()
1125 == cpu_to_le32(EM_DRIVE_INSERTION)) || in aac_handle_aif()
1127 == cpu_to_le32(EM_SES_DRIVE_INSERTION))) ? in aac_handle_aif()
1163 if (((__le32 *)aifcmd->data)[1] == cpu_to_le32(AifJobCtrZero) && in aac_handle_aif()
1165 ((__le32 *)aifcmd->data)[4] == cpu_to_le32(AifJobStsSuccess))) { in aac_handle_aif()
1180 if (((__le32 *)aifcmd->data)[1] == cpu_to_le32(AifJobCtrZero) && in aac_handle_aif()
1182 ((__le32 *)aifcmd->data)[4] == cpu_to_le32(AifJobStsRunning)) { in aac_handle_aif()
1344 if (!(fib->hw_fib_va->header.XferState & cpu_to_le32(NoResponseExpected | Async)) && in _aac_reset_adapter()
1345 (fib->hw_fib_va->header.XferState & cpu_to_le32(ResponseExpected))) { in _aac_reset_adapter()
1511 cmd->command = cpu_to_le32(VM_ContainerConfig); in aac_reset_adapter()
1512 cmd->type = cpu_to_le32(CT_PAUSE_IO); in aac_reset_adapter()
1513 cmd->timeout = cpu_to_le32(1); in aac_reset_adapter()
1514 cmd->min = cpu_to_le32(1); in aac_reset_adapter()
1515 cmd->noRescan = cpu_to_le32(1); in aac_reset_adapter()
1516 cmd->count = cpu_to_le32(0); in aac_reset_adapter()
1618 aif->command = cpu_to_le32(AifCmdEventNotify); in aac_check_health()
1619 aif->seqnum = cpu_to_le32(0xFFFFFFFF); in aac_check_health()
1620 ((__le32 *)aif->data)[0] = cpu_to_le32(AifEnExpEvent); in aac_check_health()
1621 ((__le32 *)aif->data)[1] = cpu_to_le32(AifExeFirmwarePanic); in aac_check_health()
1622 ((__le32 *)aif->data)[2] = cpu_to_le32(AifHighPriority); in aac_check_health()
1623 ((__le32 *)aif->data)[3] = cpu_to_le32(BlinkLED); in aac_check_health()
1736 if (aifcmd->command == cpu_to_le32(AifCmdDriverNotify)) { in aac_command_thread()
1739 *(__le32 *)hw_fib->data = cpu_to_le32(ST_OK); in aac_command_thread()
1753 cpu_to_le32(AifCmdEventNotify)) || in aac_command_thread()
1755 cpu_to_le32(AifCmdJobProgress))) { in aac_command_thread()
1875 *(__le32 *)hw_fib->data = cpu_to_le32(ST_OK); in aac_command_thread()
1943 *info = cpu_to_le32(now.tv_sec); in aac_command_thread()