Lines Matching refs:device_t
85 device_t sc_dev;
86 device_t sc_controller_dev;
104 int (*scan_media)(device_t self, struct nor_chip *chip);
105 void (*init) (device_t);
106 void (*select) (device_t, bool); /* optional */
107 void (*read_1) (device_t, flash_off_t, uint8_t *);
108 void (*read_2) (device_t, flash_off_t, uint16_t *);
109 void (*read_4) (device_t, flash_off_t, uint32_t *);
110 void (*read_buf_1) (device_t, flash_off_t, uint8_t *, size_t);
111 void (*read_buf_2) (device_t, flash_off_t, uint16_t *, size_t);
112 void (*read_buf_4) (device_t, flash_off_t, uint32_t *, size_t);
113 void (*write_1) (device_t, flash_off_t, uint8_t);
114 void (*write_2) (device_t, flash_off_t, uint16_t);
115 void (*write_4) (device_t, flash_off_t, uint32_t);
116 void (*write_buf_1) (device_t, flash_off_t, const uint8_t *, size_t);
117 void (*write_buf_2) (device_t, flash_off_t, const uint16_t *, size_t);
118 void (*write_buf_4) (device_t, flash_off_t, const uint32_t *, size_t);
119 int (*busy) (device_t, flash_off_t, u_long);
121 int (*read_page) (device_t, flash_off_t, uint8_t *);
122 int (*program_page) (device_t, flash_off_t, const uint8_t *);
123 int (*erase_block) (device_t, flash_off_t);
124 int (*erase_all) (device_t);
140 nor_busy(device_t device, flash_off_t offset, u_long usec) in nor_busy()
163 nor_select(device_t self, bool enable) in nor_select()
174 nor_read_1(device_t self, flash_off_t offset, uint8_t *data) in nor_read_1()
185 nor_read_2(device_t self, flash_off_t offset, uint16_t *data) in nor_read_2()
196 nor_read_4(device_t self, flash_off_t offset, uint32_t *data) in nor_read_4()
207 nor_write_1(device_t self, flash_off_t offset, uint8_t data) in nor_write_1()
218 nor_write_2(device_t self, flash_off_t offset, uint16_t data) in nor_write_2()
229 nor_write_4(device_t self, flash_off_t offset, uint16_t data) in nor_write_4()
240 nor_read_buf_1(device_t self, flash_off_t offset, void *buf, size_t size) in nor_read_buf_1()
251 nor_read_buf_2(device_t self, flash_off_t offset, void *buf, size_t size) in nor_read_buf_2()
262 nor_read_buf_4(device_t self, flash_off_t offset, void *buf, size_t size) in nor_read_buf_4()
273 nor_write_buf_1(device_t self, flash_off_t offset, const void *buf, size_t size) in nor_write_buf_1()
284 nor_write_buf_2(device_t self, flash_off_t offset, const void *buf, size_t size) in nor_write_buf_2()
295 nor_write_buf_4(device_t self, flash_off_t offset, const void *buf, size_t size) in nor_write_buf_4()
306 nor_read_page(device_t self, flash_off_t offset, uint8_t *data) in nor_read_page()
316 nor_program_page(device_t self, flash_off_t offset, const uint8_t *data) in nor_program_page()
326 nor_erase_all(device_t self) in nor_erase_all()
336 nor_erase_block(device_t self, flash_off_t offset) in nor_erase_block()
368 device_t nor_attach_mi(struct nor_interface *, device_t);