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

/linux-4.4.14/drivers/mtd/
H A Dssfdc.c65 static const chs_entry_t chs_table[] = { variable
84 while (chs_table[k].size > 0 && size > chs_table[k].size) get_chs()
87 if (chs_table[k].size > 0) { get_chs()
89 *cyl = chs_table[k].cyl; get_chs()
91 *head = chs_table[k].head; get_chs()
93 *sec = chs_table[k].sec; get_chs()
H A Dsm_ftl.c549 static const struct chs_entry chs_table[] = { variable in typeref:struct:chs_entry
649 for (i = 0 ; i < ARRAY_SIZE(chs_table) ; i++) { sm_get_media_info()
650 if (chs_table[i].size == size_in_megs) { sm_get_media_info()
651 ftl->cylinders = chs_table[i].cyl; sm_get_media_info()
652 ftl->heads = chs_table[i].head; sm_get_media_info()
653 ftl->sectors = chs_table[i].sec; sm_get_media_info()
/linux-4.4.14/drivers/memstick/core/
H A Dms_block.c1681 static const struct chs_entry chs_table[] = { variable in typeref:struct:chs_entry
1745 for (i = 0; chs_table[i].size; i++) { msb_init_card()
1747 if (chs_table[i].size != raw_size_in_megs) msb_init_card()
1750 msb->geometry.cylinders = chs_table[i].cyl; msb_init_card()
1751 msb->geometry.heads = chs_table[i].head; msb_init_card()
1752 msb->geometry.sectors = chs_table[i].sec; msb_init_card()

Completed in 268 milliseconds