| /rk3399_rockchip-uboot/drivers/misc/ |
| H A D | cros_ec_sandbox.c | 102 struct ec_state *ec = &s_state; in cros_ec_read_state() local 107 ec->current_image = EC_IMAGE_RO; in cros_ec_read_state() 112 ec->current_image = fdtdec_get_int(blob, node, "current-image", in cros_ec_read_state() 115 if (prop && len == sizeof(ec->vbnv_context)) in cros_ec_read_state() 116 memcpy(ec->vbnv_context, prop, len); in cros_ec_read_state() 120 ec->flash_data_len = len; in cros_ec_read_state() 121 ec->flash_data = os_malloc(len); in cros_ec_read_state() 122 if (!ec->flash_data) in cros_ec_read_state() 124 memcpy(ec->flash_data, prop, len); in cros_ec_read_state() 142 struct ec_state *ec = g_state; in cros_ec_write_state() local [all …]
|
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | attach.c | 116 int lnum, int ec, int to_head, struct list_head *list) in add_to_list() argument 121 dbg_bld("add to free: PEB %d, EC %d", pnum, ec); in add_to_list() 123 dbg_bld("add to erase: PEB %d, EC %d", pnum, ec); in add_to_list() 125 dbg_bld("add to alien: PEB %d, EC %d", pnum, ec); in add_to_list() 137 aeb->ec = ec; in add_to_list() 156 static int add_corrupted(struct ubi_attach_info *ai, int pnum, int ec) in add_corrupted() argument 160 dbg_bld("add to corrupted: PEB %d, EC %d", pnum, ec); in add_corrupted() 168 aeb->ec = ec; in add_corrupted() 446 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) in ubi_add_to_av() argument 459 pnum, vol_id, lnum, ec, sqnum, bitflips); in ubi_add_to_av() [all …]
|
| H A D | wl.c | 131 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec); 156 if (e->ec < e1->ec) in wl_tree_add() 158 else if (e->ec > e1->ec) in wl_tree_add() 257 if (e->ec < e1->ec) in in_wl_tree() 259 else if (e->ec > e1->ec) in in_wl_tree() 291 dbg_wl("added PEB %d EC %d to the protection queue", e->pnum, e->ec); in prot_queue_add() 311 max = e->ec + diff; in find_wl_entry() 318 if (e1->ec >= max) in find_wl_entry() 354 if (last->ec - first->ec < WL_FREE_MAX_DIFF) { in find_mean_wl_entry() 393 dbg_wl("PEB %d EC %d", e->pnum, e->ec); in wl_get_wle() [all …]
|
| H A D | fastmap.c | 144 int pnum, int ec, int scrub) in add_aeb() argument 153 aeb->ec = ec; in add_aeb() 158 ai->ec_sum += aeb->ec; in add_aeb() 161 if (ai->max_ec < aeb->ec) in add_aeb() 162 ai->max_ec = aeb->ec; in add_aeb() 164 if (ai->min_ec > aeb->ec) in add_aeb() 165 ai->min_ec = aeb->ec; in add_aeb() 316 victim->ec = aeb->ec; in update_vol() 327 aeb->ec = new_aeb->ec; in update_vol() 521 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool() local [all …]
|
| H A D | ubi-media.h | 149 __be64 ec; /* Warning: the current limit is 31-bit anyway! */ member 468 __be32 ec; member
|
| H A D | fastmap-wl.c | 41 if (e->pnum < UBI_FM_MAX_START && e->ec < max_ec) { in find_anchor_wl_entry() 43 max_ec = e->ec; in find_anchor_wl_entry() 346 ubi_assert(e->ec >= 0); in ubi_wl_put_fm_peb()
|
| H A D | io.c | 664 long long ec; in validate_ec_hdr() local 667 ec = be64_to_cpu(ec_hdr->ec); in validate_ec_hdr() 689 if (ec < 0 || ec > UBI_MAX_ERASECOUNTER) { in validate_ec_hdr() 690 ubi_err(ubi, "bad erase counter %lld", ec); in validate_ec_hdr()
|
| H A D | ubi.h | 178 int ec; member 648 int ec; member 787 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
|
| H A D | debug.c | 59 pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); in ubi_dump_ec_hdr() 182 pr_err("\tec %d\n", aeb->ec); in ubi_dump_aeb()
|
| /rk3399_rockchip-uboot/doc/device-tree-bindings/misc/ |
| H A D | cros-ec.txt | 8 - compatible = "google,cros-ec" 15 - ec-interrupt : Selects the EC interrupt, defined as a GPIO according 30 cros-ec@0 { 32 compatible = "google,cros-ec"; 34 ec-interrupt = <&gpio 174 1>;
|
| /rk3399_rockchip-uboot/arch/arm/dts/ |
| H A D | rk3288-veyron-chromebook.dtsi | 100 cros_ec: ec@0 { 101 compatible = "google,cros-ec-spi"; 105 ec-interrupt = <&gpio7 7 GPIO_ACTIVE_LOW>; 109 google,cros-ec-spi-pre-delay = <30>; 112 compatible = "google,cros-ec-i2c-tunnel"; 167 cros-ec { 168 ec_int: ec-int { 206 #include "cros-ec-keyboard.dtsi"
|
| H A D | tegra124-nyan-big-u-boot.dtsi | 20 cros_ec: cros-ec@0 { 21 ec-interrupt = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>;
|
| H A D | exynos5800-peach-pi.dts | 183 cros_ec: cros-ec@0 { 184 compatible = "google,cros-ec-spi"; 190 ec-interrupt = <&gpx1 5 GPIO_ACTIVE_LOW>; 208 compatible = "google,cros-ec-i2c-tunnel"; 274 #include "cros-ec-keyboard.dtsi"
|
| H A D | cros-ec-sbs.dtsi | 2 * Smart battery dts fragment for devices that use cros-ec-sbs
|
| H A D | exynos5420-peach-pit.dts | 320 cros_ec: cros-ec@0 { 321 compatible = "google,cros-ec-spi"; 327 ec-interrupt = <&gpx1 5 GPIO_ACTIVE_LOW>; 345 compatible = "google,cros-ec-i2c-tunnel"; 411 #include "cros-ec-keyboard.dtsi"
|
| H A D | exynos5250-snow.dts | 124 compatible = "google,cros-ec-i2c"; 131 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>; 267 compatible = "google,cros-ec-i2c"; 270 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>; 542 #include "cros-ec-keyboard.dtsi"
|
| H A D | cros-ec-keyboard.dtsi | 2 * Keyboard dts fragment for devices that use cros-ec-keyboard 15 compatible = "google,cros-ec-keyb";
|
| H A D | tegra124-nyan.dtsi | 303 cros_ec: cros-ec@0 { 304 compatible = "google,cros-ec-spi"; 310 google,cros-ec-spi-msg-delay = <2000>; 313 compatible = "google,cros-ec-i2c-tunnel"; 720 #include "cros-ec-keyboard.dtsi"
|
| H A D | exynos5250-spring.dts | 453 compatible = "google,cros-ec-i2c"; 459 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>; 460 cros_ec_ldo_tunnel: cros-ec-ldo-tunnel { 461 compatible = "google,cros-ec-ldo-tunnel"; 649 #include "cros-ec-keyboard.dtsi"
|
| /rk3399_rockchip-uboot/doc/device-tree-bindings/i2c/ |
| H A D | i2c.txt | 21 cros-ec@1e { 23 compatible = "google,cros-ec"; 26 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
|
| /rk3399_rockchip-uboot/doc/device-tree-bindings/input/ |
| H A D | cros-ec-keyb.txt | 11 - compatible: "google,cros-ec-keyb" 21 cros-ec-keyb { 22 compatible = "google,cros-ec-keyb";
|
| /rk3399_rockchip-uboot/arch/sandbox/dts/ |
| H A D | sandbox.dts | 21 cros_ec: cros-ec@0 { 23 compatible = "google,cros-ec-sandbox"; 316 #include "cros-ec-keyboard.dtsi"
|
| H A D | cros-ec-keyboard.dtsi | 2 * Keyboard dts fragment for devices that use cros-ec-keyboard 15 compatible = "google,cros-ec-keyb";
|
| /rk3399_rockchip-uboot/arch/x86/dts/ |
| H A D | chromebook_link.dts | 452 cros-ec@200 { 453 compatible = "google,cros-ec";
|
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | mvtwsi.c | 248 inline uint mvtwsi_error(uint ec, uint lc, uint ls, uint es) in mvtwsi_error() argument 250 return ((ec << 24) & 0xFF000000) in mvtwsi_error()
|