(unsigned)le32_to_cpu(dresp->mnt[0].capacity))); 
((u64)le32_to_cpu(dresp->mnt[0].capacity)) + (((u64)le32_to_cpu(dresp->mnt[0].capacityhigh)) << 32))); 
int aac_get_containers(struct aac_dev *dev){	struct fsa_dev_info *fsa_dev_ptr;	u32 index; 	int status = 0;	struct fib * fibptr;	unsigned instance;	struct aac_get_container_count *dinfo;	struct aac_get_container_count_resp *dresp;	int maximum_num_containers = MAXIMUM_NUM_CONTAINERS;	instance = dev->scsi_host_ptr->unique_id;	if (!(fibptr = fib_alloc(dev)))		return -ENOMEM;	fib_init(fibptr);	dinfo = (struct aac_get_container_count *) fib_data(fibptr);	dinfo->command = cpu_to_le32(VM_ContainerConfig);	dinfo->type = cpu_to_le32(CT_GET_CONTAINER_COUNT);	status = fib_send(ContainerCommand,		    fibptr,		    sizeof (struct aac_get_container_count),		    FsaNormal,		    1, 1,		    NULL, NULL);	if (status >= 0) {		dresp = (struct aac_get_container_count_resp *)fib_data(fibptr);		maximum_num_containers = le32_to_cpu(dresp->ContainerSwitchEntries);		fib_complete(fibptr);	}	if (maximum_num_containers < MAXIMUM_NUM_CONTAINERS)		maximum_num_containers = MAXIMUM_NUM_CONTAINERS;	fsa_dev_ptr = (struct fsa_dev_info *) kmalloc(	  sizeof(*fsa_dev_ptr) * maximum_num_containers, GFP_KERNEL);	if (!fsa_dev_ptr) {		fib_free(fibptr);		return -ENOMEM;	}	memset(fsa_dev_ptr, 0, sizeof(*fsa_dev_ptr) * maximum_num_containers);	dev->fsa_dev = fsa_dev_ptr;	dev->maximum_num_containers = maximum_num_containers;	for (index = 0; index < dev->maximum_num_containers; index++) {		struct aac_query_mount *dinfo;		struct aac_mount *dresp;		fsa_dev_ptr[index].devname[0] = '\0';		fib_init(fibptr);		dinfo = (struct aac_query_mount *) fib_data(fibptr);		dinfo->command = cpu_to_le32(VM_NameServe);		dinfo->count = cpu_to_le32(index);		dinfo->type = cpu_to_le32(FT_FILESYS);		status = fib_send(ContainerCommand,				    fibptr,				    sizeof (struct aac_query_mount),				    FsaNormal,				    1, 1,				    NULL, NULL);		if (status < 0 ) {			printk(KERN_WARNING "aac_get_containers: SendFIB failed.\n");			break;		}		dresp = (struct aac_mount *)fib_data(fibptr);		dprintk ((KERN_DEBUG		  "VM_NameServe cid=%d status=%d vol=%d state=%d cap=%u\n",		  (int)index, (int)le32_to_cpu(dresp->status),		  (int)le32_to_cpu(dresp->mnt[0].vol),		  (int)le32_to_cpu(dresp->mnt[0].state),		  (unsigned)le32_to_cpu(dresp->mnt[0].capacity)));		if ((le32_to_cpu(dresp->status) == ST_OK) &&		    (le32_to_cpu(dresp->mnt[0].vol) != CT_NONE) &&		    (le32_to_cpu(dresp->mnt[0].state) != FSCS_HIDDEN)) {			fsa_dev_ptr[index].valid = 1;			fsa_dev_ptr[index].type = le32_to_cpu(dresp->mnt[0].vol);			fsa_dev_ptr[index].size = le32_to_cpu(dresp->mnt[0].capacity);			if (le32_to_cpu(dresp->mnt[0].state) & FSCS_READONLY)				    fsa_dev_ptr[index].ro = 1;		}		fib_complete(fibptr);		/*		 *	If there are no more containers, then stop asking.		 */		if ((index + 1) >= le32_to_cpu(dresp->count)){			break;		}	}	fib_free(fibptr);	return status;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/7a8cf29d69e077dfe90e327859201fd9b75a47ce/aachba.c/buggy/drivers/scsi/aacraid/aachba.c