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

/linux-4.1.27/drivers/usb/storage/
H A Dalauda.c124 #define MEDIA_INFO(us) ((struct alauda_info *)us->extra)->port[MEDIA_PORT(us)] macro
431 MEDIA_INFO(us).capacity = 1 << media_info->chipshift; alauda_init_media()
433 MEDIA_INFO(us).capacity >> 20); alauda_init_media()
435 MEDIA_INFO(us).pageshift = media_info->pageshift; alauda_init_media()
436 MEDIA_INFO(us).blockshift = media_info->blockshift; alauda_init_media()
437 MEDIA_INFO(us).zoneshift = media_info->zoneshift; alauda_init_media()
439 MEDIA_INFO(us).pagesize = 1 << media_info->pageshift; alauda_init_media()
440 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; alauda_init_media()
441 MEDIA_INFO(us).zonesize = 1 << media_info->zoneshift; alauda_init_media()
443 MEDIA_INFO(us).uzonesize = ((1 << media_info->zoneshift) / 128) * 125; alauda_init_media()
444 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; alauda_init_media()
446 num_zones = MEDIA_INFO(us).capacity >> (MEDIA_INFO(us).zoneshift alauda_init_media()
447 + MEDIA_INFO(us).blockshift + MEDIA_INFO(us).pageshift); alauda_init_media()
448 MEDIA_INFO(us).pba_to_lba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); alauda_init_media()
449 MEDIA_INFO(us).lba_to_pba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); alauda_init_media()
473 alauda_free_maps(&MEDIA_INFO(us)); alauda_check_media()
483 alauda_free_maps(&MEDIA_INFO(us)); alauda_check_media()
572 unsigned int zonesize = MEDIA_INFO(us).zonesize; alauda_read_map()
573 unsigned int uzonesize = MEDIA_INFO(us).uzonesize; alauda_read_map()
675 MEDIA_INFO(us).lba_to_pba[zone] = lba_to_pba; alauda_read_map()
676 MEDIA_INFO(us).pba_to_lba[zone] = pba_to_lba; alauda_read_map()
693 if (MEDIA_INFO(us).lba_to_pba[zone] == NULL alauda_ensure_map_for_zone()
694 || MEDIA_INFO(us).pba_to_lba[zone] == NULL) alauda_ensure_map_for_zone()
747 data, (MEDIA_INFO(us).pagesize + 64) * pages, NULL); alauda_read_block_raw()
760 unsigned int pagesize = MEDIA_INFO(us).pagesize; alauda_read_block()
798 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, alauda_write_block()
817 unsigned int uzonesize = MEDIA_INFO(us).uzonesize; alauda_write_lba()
818 unsigned int zonesize = MEDIA_INFO(us).zonesize; alauda_write_lba()
819 unsigned int pagesize = MEDIA_INFO(us).pagesize; alauda_write_lba()
820 unsigned int blocksize = MEDIA_INFO(us).blocksize; alauda_write_lba()
827 pba = MEDIA_INFO(us).lba_to_pba[zone][lba_offset]; alauda_write_lba()
836 new_pba = alauda_find_unused_pba(&MEDIA_INFO(us), zone); alauda_write_lba()
895 MEDIA_INFO(us).pba_to_lba[zone][new_pba_offset] = lba; alauda_write_lba()
896 MEDIA_INFO(us).lba_to_pba[zone][lba_offset] = new_pba; alauda_write_lba()
904 MEDIA_INFO(us).pba_to_lba[zone][pba_offset] = UNDEF; alauda_write_lba()
919 unsigned int blockshift = MEDIA_INFO(us).blockshift; alauda_read_data()
920 unsigned int pageshift = MEDIA_INFO(us).pageshift; alauda_read_data()
921 unsigned int blocksize = MEDIA_INFO(us).blocksize; alauda_read_data()
922 unsigned int pagesize = MEDIA_INFO(us).pagesize; alauda_read_data()
923 unsigned int uzonesize = MEDIA_INFO(us).uzonesize; alauda_read_data()
944 page = (address & MEDIA_INFO(us).blockmask); alauda_read_data()
945 max_lba = MEDIA_INFO(us).capacity >> (blockshift + pageshift); alauda_read_data()
971 pba = MEDIA_INFO(us).lba_to_pba[zone][lba_offset]; alauda_read_data()
1013 unsigned int blockshift = MEDIA_INFO(us).blockshift; alauda_write_data()
1014 unsigned int pageshift = MEDIA_INFO(us).pageshift; alauda_write_data()
1015 unsigned int blocksize = MEDIA_INFO(us).blocksize; alauda_write_data()
1016 unsigned int pagesize = MEDIA_INFO(us).pagesize; alauda_write_data()
1047 page = (address & MEDIA_INFO(us).blockmask); alauda_write_data()
1048 max_lba = MEDIA_INFO(us).capacity >> (pageshift + blockshift); alauda_write_data()
1159 num_zones = MEDIA_INFO(us).capacity >> (MEDIA_INFO(us).zoneshift alauda_transport()
1160 + MEDIA_INFO(us).blockshift + MEDIA_INFO(us).pageshift); alauda_transport()
1162 capacity = num_zones * MEDIA_INFO(us).uzonesize alauda_transport()
1163 * MEDIA_INFO(us).blocksize; alauda_transport()

Completed in 42 milliseconds