Lines Matching refs:dev

19 	struct udevice *dev;		/* Transport device */  member
72 int cros_ec_read_id(struct udevice *dev, char *id, int maxlen);
83 int cros_ec_scan_keyboard(struct udevice *dev, struct mbkp_keyscan *scan);
93 int cros_ec_get_next_event(struct udevice *dev,
103 int cros_ec_read_current_image(struct udevice *dev,
114 int cros_ec_read_hash(struct udevice *dev, uint hash_offset,
127 int cros_ec_reboot(struct udevice *dev, enum ec_reboot_cmd cmd, uint8_t flags);
138 int cros_ec_interrupt_pending(struct udevice *dev);
166 int cros_ec_info(struct udevice *dev, struct ec_response_mkbp_info *info);
175 int cros_ec_get_host_events(struct udevice *dev, uint32_t *events_ptr);
184 int cros_ec_clear_host_events(struct udevice *dev, uint32_t events);
197 int cros_ec_flash_protect(struct udevice *dev, uint32_t set_mask,
208 int cros_ec_entering_mode(struct udevice *dev, int mode);
216 int cros_ec_test(struct udevice *dev);
226 int cros_ec_flash_update_rw(struct udevice *dev, const uint8_t *image,
247 int (*check_version)(struct udevice *dev);
266 int (*command)(struct udevice *dev, uint8_t cmd, int cmd_version,
281 int (*packet)(struct udevice *dev, int out_bytes, int in_bytes);
291 int (*get_switches)(struct udevice *dev);
294 #define dm_cros_ec_get_ops(dev) \ argument
295 ((struct dm_cros_ec_ops *)(dev)->driver->ops)
297 int cros_ec_register(struct udevice *dev);
318 int cros_ec_flash_erase(struct udevice *dev, uint32_t offset, uint32_t size);
335 int cros_ec_flash_read(struct udevice *dev, uint8_t *data, uint32_t offset,
346 int cros_ec_read_flashinfo(struct udevice *dev,
367 int cros_ec_flash_write(struct udevice *dev, const uint8_t *data,
379 int cros_ec_flash_offset(struct udevice *dev, enum ec_flash_region region,
388 int cros_ec_get_sku_id(struct udevice *dev);
397 int cros_ec_read_nvdata(struct udevice *dev, uint8_t *block, int size);
398 int cros_ec_write_nvdata(struct udevice *dev, const uint8_t *block, int size);
407 int cros_ec_read_version(struct udevice *dev,
417 int cros_ec_read_build_info(struct udevice *dev, char **strp);
427 int cros_ec_set_ldo(struct udevice *dev, uint8_t index, uint8_t state);
437 int cros_ec_get_ldo(struct udevice *dev, uint8_t index, uint8_t *state);
455 int cros_ec_decode_ec_flash(struct udevice *dev, struct fdt_cros_ec *config);
463 void cros_ec_check_keyboard(struct udevice *dev);
474 int cros_ec_i2c_tunnel(struct udevice *dev, int port, struct i2c_msg *msg,
482 uint64_t cros_ec_get_events_b(struct udevice *dev);
491 int cros_ec_clear_events_b(struct udevice *dev, uint64_t mask);
500 int cros_ec_efs_verify(struct udevice *dev, enum ec_flash_region region);
513 int cros_ec_battery_cutoff(struct udevice *dev, uint8_t flags);
526 int cros_ec_read_limit_power(struct udevice *dev, int *limit_powerp);
535 int cros_ec_config_powerbtn(struct udevice *dev, uint32_t flags);
545 int cros_ec_get_lid_shutdown_mask(struct udevice *dev);
556 int cros_ec_set_lid_shutdown_mask(struct udevice *dev, int enable);
568 int cros_ec_hello(struct udevice *dev, uint *handshakep);
579 int cros_ec_get_features(struct udevice *dev, u64 *featuresp);
588 int cros_ec_check_feature(struct udevice *dev, uint feature);
597 int cros_ec_get_switches(struct udevice *dev);
605 int cros_ec_vstore_supported(struct udevice *dev);
614 int cros_ec_vstore_info(struct udevice *dev, u32 *lockedp);
624 int cros_ec_vstore_read(struct udevice *dev, int slot, uint8_t *data);
639 int cros_ec_vstore_write(struct udevice *dev, int slot, const uint8_t *data,