Lines Matching refs:cpu_to_le32

108 	init->InitStructRevision = cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION);  in aac_alloc_comm()
110 init->InitStructRevision = cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_4); in aac_alloc_comm()
111 init->Sa_MSIXVectors = cpu_to_le32(Sa_MINIPORT_REVISION); in aac_alloc_comm()
112 init->fsrev = cpu_to_le32(dev->fsrev); in aac_alloc_comm()
121 init->AdapterFibsPhysicalAddress = cpu_to_le32((u32)phys); in aac_alloc_comm()
122 init->AdapterFibsSize = cpu_to_le32(fibsize); in aac_alloc_comm()
123 init->AdapterFibAlign = cpu_to_le32(sizeof(struct hw_fib)); in aac_alloc_comm()
133 init->HostPhysMemPages = cpu_to_le32(aac_max_hostphysmempages); in aac_alloc_comm()
135 init->HostPhysMemPages = cpu_to_le32(AAC_MAX_HOSTPHYSMEMPAGES); in aac_alloc_comm()
137 init->InitFlags = cpu_to_le32(INITFLAGS_DRIVER_USES_UTC_TIME | in aac_alloc_comm()
139 init->MaxIoCommands = cpu_to_le32(dev->scsi_host_ptr->can_queue + AAC_NUM_MGT_FIB); in aac_alloc_comm()
140 init->MaxIoSize = cpu_to_le32(dev->scsi_host_ptr->max_sectors << 9); in aac_alloc_comm()
141 init->MaxFibSize = cpu_to_le32(dev->max_fib_size); in aac_alloc_comm()
142 init->MaxNumAif = cpu_to_le32(dev->max_num_aif); in aac_alloc_comm()
145 init->InitFlags |= cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED); in aac_alloc_comm()
148 init->InitStructRevision = cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_6); in aac_alloc_comm()
149 init->InitFlags |= cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED | in aac_alloc_comm()
151 init->HostRRQ_AddrHigh = cpu_to_le32((u32)((u64)dev->host_rrq_pa >> 32)); in aac_alloc_comm()
152 init->HostRRQ_AddrLow = cpu_to_le32((u32)(dev->host_rrq_pa & 0xffffffff)); in aac_alloc_comm()
155 init->InitStructRevision = cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_7); in aac_alloc_comm()
156 init->InitFlags |= cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED | in aac_alloc_comm()
158 init->HostRRQ_AddrHigh = cpu_to_le32((u32)((u64)dev->host_rrq_pa >> 32)); in aac_alloc_comm()
159 init->HostRRQ_AddrLow = cpu_to_le32((u32)(dev->host_rrq_pa & 0xffffffff)); in aac_alloc_comm()
161 init->Sa_MSIXVectors = cpu_to_le32(dev->max_msix); in aac_alloc_comm()
182 init->CommHeaderAddress = cpu_to_le32((u32)phys); in aac_alloc_comm()
192 init->printfbuf = cpu_to_le32(phys); in aac_alloc_comm()
193 init->printfbufsiz = cpu_to_le32(printfbufsiz); in aac_alloc_comm()
209 *(q->headers.producer) = cpu_to_le32(qsize); in aac_queue_init()
210 *(q->headers.consumer) = cpu_to_le32(qsize); in aac_queue_init()
234 cmd->command = cpu_to_le32(VM_CloseAll); in aac_send_shutdown()
235 cmd->cid = cpu_to_le32(0xfffffffe); in aac_send_shutdown()