/third_party/NuttX/drivers/bch/ |
D | bchlib_read.c | 64 size_t nsectors; in bchlib_read() local 83 if (sector >= bch->nsectors) in bchlib_read() 125 if (sector >= bch->nsectors) in bchlib_read() 141 nsectors = len / bch->sectsize; in bchlib_read() 142 if (sector + nsectors > bch->nsectors) in bchlib_read() 144 nsectors = bch->nsectors - sector; in bchlib_read() 147 … ret = los_disk_read(bch->disk->disk_id, (void *)buffer, sector + bch->sectstart, nsectors, TRUE); in bchlib_read() 157 sector += nsectors; in bchlib_read() 158 nbytes = nsectors * bch->sectsize; in bchlib_read() 161 if (sector >= bch->nsectors) in bchlib_read()
|
D | bchlib_write.c | 48 size_t nsectors; in bchlib_write() local 67 if (sector >= bch->nsectors) in bchlib_write() 108 if (sector >= bch->nsectors) in bchlib_write() 124 nsectors = len / bch->sectsize; in bchlib_write() 125 if (sector + nsectors > bch->nsectors) in bchlib_write() 127 nsectors = bch->nsectors - sector; in bchlib_write() 142 sector + bch->sectstart, nsectors); in bchlib_write() 151 sector += nsectors; in bchlib_write() 152 nbytes = nsectors * bch->sectsize; in bchlib_write() 155 if (sector >= bch->nsectors) in bchlib_write()
|
D | bchlib_setup.c | 103 bch->nsectors = geo.geo_nsectors; in bchlib_setup() 114 bch->nsectors = part->sector_count; in bchlib_setup()
|
D | bch.h | 52 unsigned long long nsectors; /* Number of sectors supported by the device */ member
|
D | bchdev_driver.c | 197 newpos = (loff_t)bch->sectsize * bch->nsectors + offset; in bch_seek()
|
/third_party/NuttX/drivers/usbdev/gadget/ |
D | f_mass_storage_ram.c | 71 uint64_t start_sector, uint32_t nsectors) in ram_read() argument 78 if (start_sector + nsectors > sc->len / sector_size) in ram_read() 80 usb_err("start_sector = %llu, nsectors = %u\n", start_sector, nsectors); in ram_read() 84 status = usbd_copy_to_user(buffer, nsectors * sector_size, start_addr + in ram_read() 85 start_sector * sector_size, nsectors * sector_size); in ram_read() 91 return (ssize_t)nsectors; in ram_read() 95 uint64_t start_sector, uint32_t nsectors) in ram_write() argument 102 if (start_sector + nsectors > sc->len / sector_size) in ram_write() 104 usb_err("start_sector = %llu, nsectors = %u\n", start_sector, nsectors); in ram_write() 109 nsectors * sector_size, buffer, nsectors * sector_size); in ram_write() [all …]
|
D | f_mass_storage.c | 106 uint32_t nsectors); 111 uint32_t nsectors); 454 put_unaligned_be32((&buf[0]), fmass->caps[fmass->lun].nsectors); in done_scsi_read_format_capacities() 477 sectors = fmass->caps[fmass->lun].nsectors - 1; in done_scsi_read_capacity() 493 uintptr_t num_sectors = fmass->caps[fmass->lun].nsectors; in done_scsi_read() 596 uintptr_t num_sectors = fmass->caps[fmass->lun].nsectors; in done_scsi_write() 1149 cap->nsectors = 0; in fmass_dev_capacity() 1151 (void)los_part_ioctl(part->part_id, GET_SECTOR_COUNT, &cap->nsectors); in fmass_dev_capacity() 1152 cap->nsectors += part->sector_start; in fmass_dev_capacity() 1154 …TK("*** %d %d Bytes/Sector, Total %d Sectors ***\n", i, (int)cap->sectorsize, (int)cap->nsectors); in fmass_dev_capacity() [all …]
|
D | f_mass_storage.h | 190 size_t nsectors; /* Number of sectors on the device */ member
|
/third_party/FreeBSD/sys/dev/usb/storage/ |
D | umass.c | 2643 unsigned int nsectors, struct scsicmd_read16_s *cdb) in usbhost_readcdb16() argument 2650 usbhost_putbe32(rd16->xfrlen, nsectors); in usbhost_readcdb16() 2655 unsigned int nsectors, struct scsicmd_read10_s *cdb) in usbhost_readcdb10() argument 2662 usbhost_putbe16(rd10->xfrlen, nsectors); in usbhost_readcdb10() 2667 unsigned int nsectors, struct scsicmd_write16_s *cdb) in usbhost_writecbw16() argument 2673 usbhost_putbe32(wr16->xfrlen, nsectors); in usbhost_writecbw16() 2678 unsigned int nsectors, struct scsicmd_write10_s *cdb) in usbhost_writecbw10() argument 2684 usbhost_putbe16(wr10->xfrlen, nsectors); in usbhost_writecbw10() 2785 unsigned int nsectors, unsigned char *buf) in umass_read10() argument 2797 if ((sc->info.sectornum < (startsector + nsectors)) || (sc->info.sectorsize < blocksize)) in umass_read10() [all …]
|
/third_party/NuttX/fs/vfs/include/ |
D | driver.h | 75 unsigned long long start_sector, unsigned int nsectors); 77 unsigned long long start_sector, unsigned int nsectors);
|
/third_party/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/ |
D | ltp_tbio.c | 62 static int nsectors = 4096; variable 63 module_param(nsectors, int, 0444); 64 MODULE_PARM_DESC(nsectors, "The number of sectors"); 517 tbio_dev.size = nsectors * 512; in tbio_init() 548 set_capacity(tbio_dev.gd, nsectors); in tbio_init()
|
/third_party/NuttX/ |
D | ReleaseNotes | 33881 * [#8561](https://github.com/apache/nuttx/pull/8561) drivers: mtd/ramtron: change nsectors size to …
|