Searched refs:sector (Results 1 - 6 of 6) sorted by relevance

/broadcom-cfe-1.4.2/cfe/ui/
H A Dui_test_flash.c64 "-sectors;Display sector information");
99 flash_sector_t sector; local
135 printf("Flash sector information:\n");
139 sector.flash_sector_idx = idx;
140 res = cfe_ioctl(fd,IOCTL_FLASH_GETSECTORS,(uint8_t *) &sector,sizeof(flash_sector_t),&retlen,0);
145 if (sector.flash_sector_status == FLASH_SECTOR_INVALID) break;
147 sector.flash_sector_idx,
148 sector.flash_sector_offset,
149 sector.flash_sector_size);
/broadcom-cfe-1.4.2/cfe/dev/
H A Ddev_flash.c8 * the flash - the top sector is reserved for that purpose.
156 static int flash_sector_query(flashdrv_t *softc,flash_sector_t *sector);
249 * Write a single byte to the flash. The sector that the flash
299 * Write a single byte to the flash. The sector that the flash
335 * Erase a single sector in the flash device
339 * offset - offset in flash of sector to erase
359 * Send the "erase sector" qualifier - don't use FLASHCMD
376 * Write a single byte to the flash. The sector that the flash
414 * Write a single word to the flash. The sector that the flash
453 * Write a single byte to the flash. The sector tha
546 flash_sector_t sector; local
664 flash_sector_query(flashdrv_t *softc,flash_sector_t *sector) argument
925 flash_sector_t sector; local
[all...]
H A Ddev_newflash.c75 * Get the address of the flash sector buffer from the
142 static int flash_sector_query(flashdev_t *softc,flash_sector_t *sector);
303 flash_sector_t sector; local
316 sector.flash_sector_idx = 0;
319 res = flash_sector_query(softc,&sector);
321 if (sector.flash_sector_status == FLASH_SECTOR_INVALID) {
325 if ((sector.flash_sector_offset >= range->range_base) &&
326 (sector.flash_sector_offset <
332 sector.flash_sector_offset,
338 sector
388 flash_range_intersection(flash_sector_t *sector, flash_range_t *inrange, flash_range_t *outrange) argument
439 flash_sector_query(flashdev_t *softc,flash_sector_t *sector) argument
1242 flash_sector_t sector; local
[all...]
H A Ddev_ide_common.c82 * Given a sector size, return log2(size). We cheat; this is
84 * Explicitly using shifts and masks in sector number calculations
89 * size - sector size
588 * Read sector(s) from the device. This version is for ATAPI devs.
640 * Write sector(s) to the device. This version is for ATAPI disks
684 * Read sector(s) from the device.
734 * Write sector(s) from the device.
957 * read/write routines and the sector size.
1019 unsigned char sector[MAX_SECTORSIZE]; local
1031 res = (*softc->idecommon_readfunc)(softc,lba,1,PTR2HSADDR(sector));
1115 unsigned char sector[MAX_SECTORSIZE]; local
[all...]
/broadcom-cfe-1.4.2/cfe/usb/
H A Dusbmass.c289 * Reads a sector from the device.
293 * sectornum - sector number to read
294 * buffer - place to put sector we read
303 uint8_t *sector; local
312 sector = KMALLOC(64,32);
314 memset(sector,0,64);
353 memset(sector,0,18);
354 res = usb_make_sync_request(dev,softc->umass_inpipe,sector,
367 KFREE(sector);
376 * Reads a sector fro
394 uint8_t *sector; local
506 uint8_t *sector; local
598 uint8_t *sector; local
940 unsigned char sector[MAX_SECTORSIZE]; local
1044 unsigned char sector[MAX_SECTORSIZE]; local
[all...]
/broadcom-cfe-1.4.2/cfe/main/
H A Dcfe_fatfs.c290 * fat_readsector(fatfs,sector,numsec,buffer)
296 * sector - sector number
305 static int fat_readsector(fatfs_t *fatfs,int sector,int numsec,uint8_t *buffer) argument
309 res = cfe_readblk(fatfs->fat_fh,(sector+fatfs->fat_partstart)*SECTORSIZE,
333 xprintf("Bytes per sector %d\n",bpb->bpb_bytespersector);
366 fatfs->fat_partstart = 0; /* make sure we get real boot sector */
382 * Check the seal at the end of th sector
409 * boot (BPB) sector. Get that and we'll use it for an
484 * and the nasty case where a 12-bit FAT entry crosses a sector
887 int sector; local
930 int sector; local
1745 int sector; local
[all...]

Completed in 58 milliseconds