Lines Matching refs:cpu_to_le32

106 	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()
137 init->MaxIoCommands = cpu_to_le32(dev->scsi_host_ptr->can_queue + AAC_NUM_MGT_FIB); in aac_alloc_comm()
138 init->MaxIoSize = cpu_to_le32(dev->scsi_host_ptr->max_sectors << 9); in aac_alloc_comm()
139 init->MaxFibSize = cpu_to_le32(dev->max_fib_size); in aac_alloc_comm()
140 init->MaxNumAif = cpu_to_le32(dev->max_num_aif); in aac_alloc_comm()
143 init->InitFlags |= cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED); in aac_alloc_comm()
146 init->InitStructRevision = cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_6); in aac_alloc_comm()
147 init->InitFlags |= cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED | in aac_alloc_comm()
149 init->HostRRQ_AddrHigh = cpu_to_le32((u32)((u64)dev->host_rrq_pa >> 32)); in aac_alloc_comm()
150 init->HostRRQ_AddrLow = cpu_to_le32((u32)(dev->host_rrq_pa & 0xffffffff)); in aac_alloc_comm()
153 init->InitStructRevision = cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_7); in aac_alloc_comm()
154 init->InitFlags |= cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED | in aac_alloc_comm()
156 init->HostRRQ_AddrHigh = cpu_to_le32((u32)((u64)dev->host_rrq_pa >> 32)); in aac_alloc_comm()
157 init->HostRRQ_AddrLow = cpu_to_le32((u32)(dev->host_rrq_pa & 0xffffffff)); in aac_alloc_comm()
159 init->Sa_MSIXVectors = cpu_to_le32(dev->max_msix); in aac_alloc_comm()
180 init->CommHeaderAddress = cpu_to_le32((u32)phys); in aac_alloc_comm()
190 init->printfbuf = cpu_to_le32(phys); in aac_alloc_comm()
191 init->printfbufsiz = cpu_to_le32(printfbufsiz); in aac_alloc_comm()
207 *(q->headers.producer) = cpu_to_le32(qsize); in aac_queue_init()
208 *(q->headers.consumer) = cpu_to_le32(qsize); in aac_queue_init()
232 cmd->command = cpu_to_le32(VM_CloseAll); in aac_send_shutdown()
233 cmd->cid = cpu_to_le32(0xfffffffe); in aac_send_shutdown()