Searched refs:p_dev (Results 1 – 4 of 4) sorted by relevance
| /rk3399_rockchip-uboot/drivers/rkflash/ |
| H A D | sfc_nor.c | 384 int snor_erase(struct SFNOR_DEV *p_dev, in snor_erase() argument 399 op.sfcmd.b.cmd = p_dev->blk_erase_cmd; in snor_erase() 401 op.sfcmd.b.cmd = p_dev->sec_erase_cmd; in snor_erase() 407 if (p_dev->addr_mode == ADDR_MODE_4BYTE && erase_type != ERASE_CHIP) in snor_erase() 423 int snor_prog_page(struct SFNOR_DEV *p_dev, in snor_prog_page() argument 434 op.sfcmd.b.cmd = p_dev->prog_cmd; in snor_prog_page() 439 op.sfctrl.b.datalines = p_dev->prog_lines; in snor_prog_page() 441 op.sfctrl.b.addrlines = p_dev->prog_addr_lines; in snor_prog_page() 443 if (p_dev->addr_mode == ADDR_MODE_4BYTE) in snor_prog_page() 457 static int snor_prog(struct SFNOR_DEV *p_dev, u32 addr, void *p_data, u32 size) in snor_prog() argument [all …]
|
| H A D | rkflash_api.c | 58 struct SFNOR_DEV *p_dev = (struct SFNOR_DEV *)&priv->flash_dev_info; in rksfc_nor_init() local 63 ret = snor_init(p_dev); in rksfc_nor_init() 64 if (ret == SFC_OK && p_dev->read_lines == DATA_LINES_X1) { in rksfc_nor_init() 70 snor_read(p_dev, IDB_ALIGN_32, NOR_SECS_PAGE, in rksfc_nor_init() 73 snor_read(p_dev, IDB_ALIGN_64, NOR_SECS_PAGE, in rksfc_nor_init() 78 snor_reinit_from_table_packet(p_dev, packet); in rksfc_nor_init() 90 struct SFNOR_DEV *p_dev = (struct SFNOR_DEV *)&priv->flash_dev_info; in rksfc_nor_get_capacity() local 92 return snor_get_capacity(p_dev); in rksfc_nor_get_capacity() 101 struct SFNOR_DEV *p_dev = (struct SFNOR_DEV *)&priv->flash_dev_info; in rksfc_nor_read() local 105 ret = snor_read(p_dev, sec, n_sec, p_data); in rksfc_nor_read() [all …]
|
| H A D | sfc_nor.h | 165 int snor_init(struct SFNOR_DEV *p_dev); 166 u32 snor_get_capacity(struct SFNOR_DEV *p_dev); 167 int snor_read(struct SFNOR_DEV *p_dev, u32 sec, u32 n_sec, void *p_data); 168 int snor_write(struct SFNOR_DEV *p_dev, u32 sec, u32 n_sec, void *p_data); 169 int snor_erase(struct SFNOR_DEV *p_dev, 173 int snor_prog_page(struct SFNOR_DEV *p_dev, u32 addr, void *p_data, u32 size); 174 int snor_read_data(struct SFNOR_DEV *p_dev, u32 addr, void *p_data, u32 size); 176 int snor_disable_QE(struct SFNOR_DEV *p_dev); 177 int snor_reinit_from_table_packet(struct SFNOR_DEV *p_dev,
|
| H A D | rkflash_debug.h | 44 void rkflash_test(struct udevice *p_dev);
|