Home
last modified time | relevance | path

Searched refs:start_sector (Results 1 – 6 of 6) sorted by relevance

/components/drivers/usb/cherryusb/platform/uf2/
A Dbootuf2.c261 int boot2uf2_read_sector(uint32_t start_sector, uint8_t *buff, uint32_t sector_count) in boot2uf2_read_sector() argument
270 uint32_t sector_relative = start_sector; in boot2uf2_read_sector()
273 if (start_sector == BOOTUF2_SECTOR_DBR_END) { in boot2uf2_read_sector()
279 else if (start_sector < BOOTUF2_SECTOR_FAT_END(ctx->DBR)) { in boot2uf2_read_sector()
323 else if (start_sector < BOOTUF2_SECTOR_ROOT_END(ctx->DBR)) { in boot2uf2_read_sector()
369 else if (start_sector < BOOTUF2_SECTOR_DATA_END(ctx->DBR)) { in boot2uf2_read_sector()
398 start_sector++; in boot2uf2_read_sector()
406 int bootuf2_write_sector(uint32_t start_sector, const uint8_t *buff, uint32_t sector_count) in bootuf2_write_sector() argument
436 start_sector++; in bootuf2_write_sector()
A Dbootuf2.h208 int boot2uf2_read_sector(uint32_t start_sector, uint8_t *buff, uint32_t sector_count);
209 int bootuf2_write_sector(uint32_t start_sector, const uint8_t *buff, uint32_t sector_count);
/components/drivers/usb/cherryusb/class/msc/
A Dusbh_msc.h36 int usbh_msc_scsi_write10(struct usbh_msc *msc_class, uint32_t start_sector, const uint8_t *buffer,…
37 int usbh_msc_scsi_read10(struct usbh_msc *msc_class, uint32_t start_sector, const uint8_t *buffer, …
A Dusbd_msc.c43 uint32_t start_sector; member
519 …g_usbd_msc[busid].start_sector = GET_BE32(&g_usbd_msc[busid].cbw.CB[2]); /* Logical Block Address … in SCSI_read10()
522 …if ((g_usbd_msc[busid].start_sector + g_usbd_msc[busid].nsectors) > g_usbd_msc[busid].scsi_blk_nbr… in SCSI_read10()
552 …g_usbd_msc[busid].start_sector = GET_BE32(&g_usbd_msc[busid].cbw.CB[2]); /* Logical Block Address … in SCSI_read12()
555 …if ((g_usbd_msc[busid].start_sector + g_usbd_msc[busid].nsectors) > g_usbd_msc[busid].scsi_blk_nbr… in SCSI_read12()
587 …g_usbd_msc[busid].start_sector = GET_BE32(&g_usbd_msc[busid].cbw.CB[2]); /* Logical Block Address … in SCSI_write10()
616 …g_usbd_msc[busid].start_sector = GET_BE32(&g_usbd_msc[busid].cbw.CB[2]); /* Logical Block Address … in SCSI_write12()
637 USB_LOG_DBG("read lba:%d\r\n", g_usbd_msc[busid].start_sector); in SCSI_processRead()
646 …g_usbd_msc[busid].start_sector += (transfer_len / g_usbd_msc[busid].scsi_blk_size[g_usbd_msc[busid… in SCSI_processRead()
663 USB_LOG_DBG("write lba:%d\r\n", g_usbd_msc[busid].start_sector); in SCSI_processWrite()
[all …]
A Dusbh_msc.c397 int usbh_msc_scsi_write10(struct usbh_msc *msc_class, uint32_t start_sector, const uint8_t *buffer,… in usbh_msc_scsi_write10() argument
410 SET_BE32(&cbw->CB[2], start_sector); in usbh_msc_scsi_write10()
416 int usbh_msc_scsi_read10(struct usbh_msc *msc_class, uint32_t start_sector, const uint8_t *buffer, … in usbh_msc_scsi_read10() argument
430 SET_BE32(&cbw->CB[2], start_sector); in usbh_msc_scsi_read10()
/components/drivers/block/partitions/
A Defi.h121 rt_uint8_t start_sector; /* unused by EFI, pt start in CHS */

Completed in 11 milliseconds