Lines Matching refs:OneNANDState

44 OBJECT_DECLARE_SIMPLE_TYPE(OneNANDState, ONE_NAND)
46 struct OneNANDState { struct
121 static void onenand_mem_setup(OneNANDState *s) in onenand_mem_setup()
138 static void onenand_intr_update(OneNANDState *s) in onenand_intr_update()
145 OneNANDState *s = opaque; in onenand_pre_save()
159 OneNANDState *s = opaque; in onenand_post_load()
183 VMSTATE_UINT8(current_direction, OneNANDState),
184 VMSTATE_INT32(cycle, OneNANDState),
185 VMSTATE_INT32(otpmode, OneNANDState),
186 VMSTATE_UINT16_ARRAY(addr, OneNANDState, 8),
187 VMSTATE_UINT16_ARRAY(unladdr, OneNANDState, 8),
188 VMSTATE_INT32(bufaddr, OneNANDState),
189 VMSTATE_INT32(count, OneNANDState),
190 VMSTATE_UINT16(command, OneNANDState),
191 VMSTATE_UINT16_ARRAY(config, OneNANDState, 2),
192 VMSTATE_UINT16(status, OneNANDState),
193 VMSTATE_UINT16(intstatus, OneNANDState),
194 VMSTATE_UINT16(wpstatus, OneNANDState),
195 VMSTATE_INT32(secs_cur, OneNANDState),
196 VMSTATE_PARTIAL_VBUFFER(blockwp, OneNANDState, blocks),
197 VMSTATE_UINT8(ecc.cp, OneNANDState),
198 VMSTATE_UINT16_ARRAY(ecc.lp, OneNANDState, 2),
199 VMSTATE_UINT16(ecc.count, OneNANDState),
200 VMSTATE_BUFFER_POINTER_UNSAFE(otp, OneNANDState, 0,
207 static void onenand_reset(OneNANDState *s, int cold) in onenand_reset()
241 OneNANDState *s = ONE_NAND(dev); in onenand_system_reset()
246 static inline int onenand_load_main(OneNANDState *s, int sec, int secn, in onenand_load_main()
263 static inline int onenand_prog_main(OneNANDState *s, int sec, int secn, in onenand_prog_main()
304 static inline int onenand_load_spare(OneNANDState *s, int sec, int secn, in onenand_load_spare()
324 static inline int onenand_prog_spare(OneNANDState *s, int sec, int secn, in onenand_prog_spare()
363 static inline int onenand_erase(OneNANDState *s, int sec, int num) in onenand_erase()
406 static void onenand_command(OneNANDState *s) in onenand_command()
612 OneNANDState *s = (OneNANDState *) opaque; in onenand_read()
678 OneNANDState *s = (OneNANDState *) opaque; in onenand_write()
782 OneNANDState *s = ONE_NAND(dev); in onenand_realize()
836 DEFINE_PROP_UINT16("manufacturer_id", OneNANDState, id.man, 0),
837 DEFINE_PROP_UINT16("device_id", OneNANDState, id.dev, 0),
838 DEFINE_PROP_UINT16("version_id", OneNANDState, id.ver, 0),
839 DEFINE_PROP_INT32("shift", OneNANDState, shift, 0),
840 DEFINE_PROP_DRIVE("drive", OneNANDState, blk),
856 .instance_size = sizeof(OneNANDState),
867 OneNANDState *s = ONE_NAND(onenand_device); in onenand_raw_otp()