Lines Matching refs:hnd
58 static int ec_command(void *hnd, int command, int version, in ec_command() argument
61 struct ec_data *ec = hnd; in ec_command()
141 static void ec_close(void *hnd) in ec_close() argument
143 struct ec_data *dev = hnd; in ec_close()
149 static int ec_read(void *hnd, off_t offset, void *buffer, size_t count) in ec_read() argument
151 struct ec_data *dev = hnd; in ec_read()
174 static int ec_write(void *hnd, off_t offset, void *buffer, size_t count) in ec_write() argument
176 struct ec_data *dev = hnd; in ec_write()
206 static int ec_erase(void *hnd, off_t offset, size_t count) in ec_erase() argument
208 struct ec_data *dev = hnd; in ec_erase()
224 static size_t ec_get_size(void *hnd) in ec_get_size() argument
226 struct ec_data *dev = hnd; in ec_get_size()
231 static size_t ec_get_write_size(void *hnd) in ec_get_write_size() argument
233 struct ec_data *dev = hnd; in ec_get_write_size()
238 static size_t ec_get_erase_size(void *hnd) in ec_get_erase_size() argument
240 struct ec_data *dev = hnd; in ec_get_erase_size()
245 static off_t ec_get_fmap_offset(void *hnd) in ec_get_fmap_offset() argument
247 struct ec_data *dev = hnd; in ec_get_fmap_offset()
249 if (!hnd) in ec_get_fmap_offset()