Lines Matching refs:cpu_to_le32

115 			cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_8);  in aac_alloc_comm()
116 init->r8.init_flags = cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED | in aac_alloc_comm()
120 cpu_to_le32(INITFLAGS_DRIVER_SUPPORTS_HBA_MODE); in aac_alloc_comm()
121 init->r8.rr_queue_count = cpu_to_le32(dev->max_msix); in aac_alloc_comm()
123 cpu_to_le32(dev->scsi_host_ptr->max_sectors << 9); in aac_alloc_comm()
130 init->r8.rrq[i].host_addr_high = cpu_to_le32( in aac_alloc_comm()
132 init->r8.rrq[i].host_addr_low = cpu_to_le32( in aac_alloc_comm()
144 cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION); in aac_alloc_comm()
147 cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_4); in aac_alloc_comm()
148 init->r7.no_of_msix_vectors = cpu_to_le32(SA_MINIPORT_REVISION); in aac_alloc_comm()
149 init->r7.fsrev = cpu_to_le32(dev->fsrev); in aac_alloc_comm()
158 init->r7.adapter_fibs_physical_address = cpu_to_le32((u32)phys); in aac_alloc_comm()
159 init->r7.adapter_fibs_size = cpu_to_le32(fibsize); in aac_alloc_comm()
160 init->r7.adapter_fib_align = cpu_to_le32(sizeof(struct hw_fib)); in aac_alloc_comm()
173 cpu_to_le32(aac_max_hostphysmempages); in aac_alloc_comm()
176 cpu_to_le32(AAC_MAX_HOSTPHYSMEMPAGES); in aac_alloc_comm()
179 cpu_to_le32(INITFLAGS_DRIVER_USES_UTC_TIME | in aac_alloc_comm()
182 cpu_to_le32(dev->scsi_host_ptr->can_queue + in aac_alloc_comm()
185 cpu_to_le32(dev->scsi_host_ptr->max_sectors << 9); in aac_alloc_comm()
186 init->r7.max_fib_size = cpu_to_le32(dev->max_fib_size); in aac_alloc_comm()
187 init->r7.max_num_aif = cpu_to_le32(dev->max_num_aif); in aac_alloc_comm()
191 cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED); in aac_alloc_comm()
195 cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_6); in aac_alloc_comm()
197 cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED | in aac_alloc_comm()
201 cpu_to_le32(upper_32_bits(dev->host_rrq_pa)); in aac_alloc_comm()
203 cpu_to_le32(lower_32_bits(dev->host_rrq_pa)); in aac_alloc_comm()
207 cpu_to_le32(ADAPTER_INIT_STRUCT_REVISION_7); in aac_alloc_comm()
209 cpu_to_le32(INITFLAGS_NEW_COMM_SUPPORTED | in aac_alloc_comm()
213 cpu_to_le32(upper_32_bits(dev->host_rrq_pa)); in aac_alloc_comm()
215 cpu_to_le32(lower_32_bits(dev->host_rrq_pa)); in aac_alloc_comm()
217 cpu_to_le32(dev->max_msix); in aac_alloc_comm()
241 init->r7.comm_header_address = cpu_to_le32((u32)phys); in aac_alloc_comm()
252 init->r7.printfbuf = cpu_to_le32(phys); in aac_alloc_comm()
253 init->r7.printfbufsiz = cpu_to_le32(printfbufsiz); in aac_alloc_comm()
270 *(q->headers.producer) = cpu_to_le32(qsize); in aac_queue_init()
271 *(q->headers.consumer) = cpu_to_le32(qsize); in aac_queue_init()
336 cmd->command = cpu_to_le32(VM_CloseAll); in aac_send_shutdown()
337 cmd->cid = cpu_to_le32(0xfffffffe); in aac_send_shutdown()