Searched refs:capacity (Results 1 - 25 of 95) sorted by relevance

1234

/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/usb/storage/
H A Dsddr09.h35 unsigned long capacity; /* Size of card in bytes */ member in struct:sddr09_card_info
H A Dprotocol.c108 unsigned long capacity; local
116 capacity = (dp[0]<<24) + (dp[1]<<16) + (dp[2]<<8) + (dp[3]);
117 US_DEBUGP("US: Fixing capacity: from %ld to %ld\n",
118 capacity+1, capacity);
119 capacity--;
120 dp[0] = (capacity >> 24);
121 dp[1] = (capacity >> 16);
122 dp[2] = (capacity >> 8);
123 dp[3] = (capacity);
[all...]
H A Dsddr55.c51 unsigned long capacity; /* Size of card in bytes */ member in struct:sddr55_card_info
696 US_DEBUGP("Reading capacity...\n");
784 if (!info->capacity)
787 numblocks = info->capacity >> (info->blockshift + info->pageshift);
919 unsigned long capacity; local
993 capacity = sddr55_get_capacity(us);
995 if (!capacity) {
1000 info->capacity = capacity;
1004 info->max_log_blks = ((info->capacity >> (inf
[all...]
H A Dsddr09.c52 int chipshift; /* 1<<cs bytes total capacity */
845 maxlba = info->capacity >> (info->pageshift + info->blockshift);
859 /* Not overflowing capacity? */
928 int numblocks = info->capacity >> (info->blockshift + info->pageshift);
1222 US_DEBUGP("Reading capacity...\n");
1284 if (!info->capacity)
1289 // of capacity:
1290 // (1<<6)*capacity/(1<<(b+p)) =
1291 // ((1<<6)*capacity)>>(b+p) =
1292 // capacity>>(
1566 unsigned long capacity; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/scsi/
H A Dscsicam.h17 extern int scsi_partsize(struct buffer_head *bh, unsigned long capacity,
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/scsi/
H A Dscsicam.h17 extern int scsi_partsize(struct buffer_head *bh, unsigned long capacity,
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/
H A Dsd.h27 unsigned capacity; /* size in blocks */ member in struct:scsi_disk
H A Dscsicam.c26 static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds,
47 int size = disk->capacity;
82 * capacity,unsigned int *cyls, unsigned int *hds, unsigned int *secs);
91 int scsi_partsize(struct buffer_head *bh, unsigned long capacity, argument
151 *cyls = capacity / ((end_head + 1) * end_sector);
163 * Function : static int setsize(unsigned long capacity,unsigned int *cyls,
167 * SCSI disk in terms of lost space of size capacity, storing
186 * setsize() converts a read capacity value to int 13h
196 static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds, argument
206 heads = capacity / tem
[all...]
H A Dsr.h23 unsigned capacity; /* size in blocks */ member in struct:__anon2599
H A Dsr.c169 /* If the disk changed, the capacity will now be different,
176 * If the disk changed, the capacity will now be different,
241 scsi_CDs[device_nr].capacity - error_sector < 4 *75)
603 scsi_CDs[i].capacity = 0x1fffff;
640 scsi_CDs[i].capacity = 0x1fffff;
644 scsi_CDs[i].capacity = 1 + ((buffer[0] << 24) |
663 scsi_CDs[i].capacity *= 4;
670 scsi_CDs[i].capacity = 0;
681 sr_sizes[i] = scsi_CDs[i].capacity >> (BLOCK_SIZE_BITS - 9);
769 scsi_CDs[i].cdi.capacity
[all...]
H A Dsd.c188 diskinfo[2] = rscsi_disks[DEVICE_NR(dev)].capacity >> 11;
221 diskinfo[2] = rscsi_disks[DEVICE_NR(dev)].capacity >> 11;
783 * If the device is offline, don't try and read capacity or any
844 rscsi_disks[i].capacity = 0x1fffff;
941 rscsi_disks[i].capacity = 0x1fffff;
956 rscsi_disks[i].capacity = 1 + ((buffer[0] << 24) |
982 rscsi_disks[i].capacity = 0;
1004 int sz = rscsi_disks[i].capacity * (hard_sector/256);
1013 nbuff, rscsi_disks[i].capacity,
1017 /* Rescale capacity t
[all...]
/asus-wl-520gu-7.0.1.45/src/router/pptp-client/
H A Dpqueue.h22 int capacity; member in struct:pqueue
H A Dpqueue.c43 if (newent->capacity >= packlen) {
59 } /* end if capacity >= packlen */
71 DEBUG_CMD(log("realloc capacity %d to %d",newent->capacity, packlen););
79 newent->capacity = packlen;
82 DEBUG_CMD(log("Recycle entry from freelist. Capacity: %d", newent->capacity););
92 newent->capacity = 0;
97 if ( ! newent->capacity ) {
107 newent->capacity = size;
108 } /* endif ! capacity */
[all...]
/asus-wl-520gu-7.0.1.45/src/router/library/libupnp-1.2.1/ixml/src/
H A Dixmlmembuf.c62 if( new_length <= m->capacity ) {
67 alloc_len = MAXVAL( m->size_inc, diff ) + m->capacity;
73 if( ( m->capacity - new_length ) <= m->size_inc ) {
94 m->capacity = alloc_len;
111 m->capacity = 0;
/asus-wl-520gu-7.0.1.45/src/router/library/libupnp-1.2.1/ixml/src/inc/
H A Dixmlmembuf.h51 size_t capacity; member in struct:__anon11970
/asus-wl-520gu-7.0.1.45/src/router/library/libupnp-1.2.1/upnp/src/genlib/util/
H A Dmembuffer.c177 m->capacity = 0;
208 if( new_length <= m->capacity ) {
213 alloc_len = MAXVAL( m->size_inc, diff ) + m->capacity;
219 if( ( m->capacity - new_length ) <= m->size_inc ) {
244 m->capacity = alloc_len;
574 m->capacity = buf_len;
/asus-wl-520gu-7.0.1.45/src/router/library/libupnp-1.2.1/upnp/src/inc/
H A Dmembuffer.h51 // note: Total length/capacity should not exceed MAX_INT
57 size_t capacity; // total allocated memory (read-only) member in struct:__anon11986
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/ide/
H A Dide-disk.c20 * Version 1.05 add capacity support for ATA3 >= 8GB
773 * Queries for true maximum capacity of the drive.
914 * Compute drive->capacity, the full capacity of the drive
917 * To compute capacity, this uses either of
930 unsigned long capacity = drive->cyl * drive->head * drive->sect; local
932 unsigned long long capacity_2 = capacity;
962 drive->capacity = (unsigned long) capacity_2;
964 /* Determine capacity, and use LBA if the drive properly supports it */
966 capacity
1327 unsigned long capacity; local
[all...]
H A Dide-geometry.c109 * compute total capacity C*H*S from that, and truncate to
115 total = DRIVER(drive)->capacity(drive);
H A Dmacide.c117 /* Fix breakage in ide-disk.c: drive capacity */
123 drive->capacity = drive->cyl*drive->head*drive->sect;
H A Dide-floppy.c61 * open an unformatted disk, or get the device capacity.
240 * Format capacity
293 idefloppy_capacity_descriptor_t capacity; /* Last format capacity */ member in struct:__anon1368
1355 * capacity parameters and use the LBA parameters instead.
1363 int capacity, lba_capacity; local
1378 capacity = page->cyls * page->heads * page->sectors * page->sector_size;
1381 drive->name, capacity / 1024, page->cyls, page->heads, page->sectors,
1389 if (capacity < lba_capacity) {
1390 printk (KERN_NOTICE "%s: The disk reports a capacity o
1865 unsigned long capacity = floppy->blocks * floppy->bs_factor; local
[all...]
H A Dide-cd.c80 * Read total cdrom capacity during open.
94 * 3.02 Sep 16, 1995 -- Stick total disk capacity in partition table as well.
283 * - Fix real capacity reporting.
349 * e.g. capacity commands or in-progress or
1878 static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, argument
1898 *capacity = 1 + be32_to_cpu(capbuf.lba);
2064 /* Now try to get the total cdrom capacity. */
2067 stat = cdrom_get_last_written(dev, &toc->capacity);
2069 stat = cdrom_read_capacity(drive, &toc->capacity, sense);
2071 toc->capacity
2931 unsigned long capacity; local
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/block/paride/
H A Dpf.c284 int capacity; /* Size of this volume in sectors */ member in struct:pf_unit
331 PF.capacity = 0;
466 if (PF.capacity < PF_FD_MAX) {
467 put_user(PF.capacity/(PF_FD_HDS*PF_FD_SPT),
472 put_user(PF.capacity/(PF_HD_HDS*PF_HD_SPT),
480 return put_user(PF.capacity,(long *) arg);
482 return put_user((u64)PF.capacity << 9,(u64 *)arg);
755 if (pf_atapi(unit,rc_cmd,8,buf,DBMSG("get capacity"))) {
759 PF.capacity = xl(buf,0) + 1;
762 PF.capacity
[all...]
H A Dpd.c299 int capacity; /* Size of this volume in sectors */ member in struct:pd_unit
376 PD.capacity = 0;
469 put_user(PD.capacity/(PD_LOG_HEADS*PD_LOG_SECTS),
555 grok_partitions(&pd_gendisk,unit,1<<PD_BITS,PD.capacity);
659 /* Don't use this call if the capacity is zero. */
778 PD.capacity = le32_to_cpu(*(u32*)(pd_scratch + 120));
780 PD.capacity = PD.sectors*PD.heads*PD.cylinders;
792 PD.capacity,PD.capacity/2048,
796 if (PD.capacity) pd_init_dev_parm
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/aacraid/
H A Dlinit.c401 * number of cylinders so as not to exceed drive capacity. In order for
424 if( disk->capacity >= 2 * 1024 * 1024 ) /* 1 GB in 512 byte sectors */
426 if( disk->capacity >= 4 * 1024 * 1024 ) /* 2 GB in 512 byte sectors */
443 param->cylinders = disk->capacity/(param->heads * param->sectors);
498 param->cylinders = disk->capacity / (param->heads * param->sectors);
524 * total capacity and the queue depth supported by the target device.

Completed in 369 milliseconds

1234