Home
last modified time | relevance | path

Searched refs:curlun (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/drivers/usb/gadget/
Df_mass_storage.c685 struct fsg_lun *curlun = &common->luns[common->lun]; in do_read() local
706 curlun->sense_data = SS_INVALID_FIELD_IN_CDB; in do_read()
710 if (lba >= curlun->num_sectors) { in do_read()
711 curlun->sense_data = SS_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE; in do_read()
748 curlun->sense_data = in do_read()
750 curlun->info_valid = 1; in do_read()
766 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount, in do_read()
771 LDBG(curlun, "error in file read: %d\n", in do_read()
775 LDBG(curlun, "partial file read: %d/%u\n", in do_read()
787 curlun->sense_data = SS_UNRECOVERED_READ_ERROR; in do_read()
[all …]
Dstorage_common.c295 #define fsg_lun_is_open(curlun) ((curlun)->filp != NULL) argument
566 static int fsg_lun_open(struct fsg_lun *curlun, unsigned int num_sectors, in fsg_lun_open() argument
572 ro = curlun->initially_ro; in fsg_lun_open()
574 curlun->ro = ro; in fsg_lun_open()
575 curlun->file_length = num_sectors << 9; in fsg_lun_open()
576 curlun->num_sectors = num_sectors; in fsg_lun_open()
582 static void fsg_lun_close(struct fsg_lun *curlun) in fsg_lun_close() argument
592 static int fsg_lun_fsync_sub(struct fsg_lun *curlun) in fsg_lun_fsync_sub() argument