Lines Matching refs:nvram_pagesize
3252 addr = ((addr / tp->nvram_pagesize) << in tg3_nvram_phys_addr()
3254 (addr % tp->nvram_pagesize); in tg3_nvram_phys_addr()
3268 tp->nvram_pagesize) + in tg3_nvram_logical_addr()
3376 u32 pagesize = tp->nvram_pagesize; in tg3_nvram_write_block_unbuffered()
3483 page_off = offset % tp->nvram_pagesize; in tg3_nvram_write_block_buffered()
3491 if (page_off == (tp->nvram_pagesize - 4)) in tg3_nvram_write_block_buffered()
14460 tp->nvram_pagesize = ATMEL_AT45DB0X1B_PAGE_SIZE; in tg3_get_nvram_info()
14465 tp->nvram_pagesize = ATMEL_AT25F512_PAGE_SIZE; in tg3_get_nvram_info()
14469 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE; in tg3_get_nvram_info()
14474 tp->nvram_pagesize = ST_M45PEX0_PAGE_SIZE; in tg3_get_nvram_info()
14479 tp->nvram_pagesize = SAIFUN_SA25F0XX_PAGE_SIZE; in tg3_get_nvram_info()
14484 tp->nvram_pagesize = SST_25VF0X0_PAGE_SIZE; in tg3_get_nvram_info()
14489 tp->nvram_pagesize = ATMEL_AT45DB0X1B_PAGE_SIZE; in tg3_get_nvram_info()
14498 tp->nvram_pagesize = 256; in tg3_nvram_get_pagesize()
14501 tp->nvram_pagesize = 512; in tg3_nvram_get_pagesize()
14504 tp->nvram_pagesize = 1024; in tg3_nvram_get_pagesize()
14507 tp->nvram_pagesize = 2048; in tg3_nvram_get_pagesize()
14510 tp->nvram_pagesize = 4096; in tg3_nvram_get_pagesize()
14513 tp->nvram_pagesize = 264; in tg3_nvram_get_pagesize()
14516 tp->nvram_pagesize = 528; in tg3_nvram_get_pagesize()
14555 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE; in tg3_get_5752_nvram_info()
14583 tp->nvram_pagesize = 264; in tg3_get_5755_nvram_info()
14601 tp->nvram_pagesize = 256; in tg3_get_5755_nvram_info()
14631 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE; in tg3_get_5787_nvram_info()
14643 tp->nvram_pagesize = 264; in tg3_get_5787_nvram_info()
14651 tp->nvram_pagesize = 256; in tg3_get_5787_nvram_info()
14682 tp->nvram_pagesize = 256; in tg3_get_5761_nvram_info()
14695 tp->nvram_pagesize = 256; in tg3_get_5761_nvram_info()
14735 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE; in tg3_get_5906_nvram_info()
14749 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE; in tg3_get_57780_nvram_info()
14806 if (tp->nvram_pagesize != 264 && tp->nvram_pagesize != 528) in tg3_get_57780_nvram_info()
14822 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE; in tg3_get_5717_nvram_info()
14885 if (tp->nvram_pagesize != 264 && tp->nvram_pagesize != 528) in tg3_get_5717_nvram_info()
14908 tp->nvram_pagesize = 4096; in tg3_get_5720_nvram_info()
14944 tp->nvram_pagesize = ATMEL_AT24C512_CHIP_SIZE; in tg3_get_5720_nvram_info()
14946 tp->nvram_pagesize = ATMEL_AT24C02_CHIP_SIZE; in tg3_get_5720_nvram_info()
15038 if (tp->nvram_pagesize != 264 && tp->nvram_pagesize != 528) in tg3_get_5720_nvram_info()