Home
last modified time | relevance | path

Searched refs:ec (Results 1 – 25 of 259) sorted by relevance

1234567891011

/linux/drivers/misc/echo/
H A Decho.c106 static inline void lms_adapt_bg(struct oslec_state *ec, int clean, int shift) in lms_adapt_bg() argument
122 offset2 = ec->curr_pos; in lms_adapt_bg()
123 offset1 = ec->taps - offset2; in lms_adapt_bg()
125 for (i = ec->taps - 1; i >= offset1; i--) { in lms_adapt_bg()
126 exp = (ec->fir_state_bg.history[i - offset1] * factor); in lms_adapt_bg()
127 ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); in lms_adapt_bg()
130 exp = (ec->fir_state_bg.history[i + offset2] * factor); in lms_adapt_bg()
131 ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); in lms_adapt_bg()
145 struct oslec_state *ec; in oslec_create() local
149 ec = kzalloc(sizeof(*ec), GFP_KERNEL); in oslec_create()
[all …]
/linux/drivers/acpi/
H A Dec.c168 struct acpi_ec *ec; member
171 static int acpi_ec_submit_query(struct acpi_ec *ec);
172 static void advance_transaction(struct acpi_ec *ec, bool interrupt);
228 #define ec_dbg_ref(ec, fmt, ...) \ argument
229 ec_dbg_raw("%lu: " fmt, ec->reference_count, ## __VA_ARGS__)
235 static bool acpi_ec_started(struct acpi_ec *ec) in acpi_ec_started() argument
237 return test_bit(EC_FLAGS_STARTED, &ec->flags) && in acpi_ec_started()
238 !test_bit(EC_FLAGS_STOPPED, &ec->flags); in acpi_ec_started()
241 static bool acpi_ec_event_enabled(struct acpi_ec *ec) in acpi_ec_event_enabled() argument
248 if (!test_bit(EC_FLAGS_QUERY_ENABLED, &ec->flags)) in acpi_ec_event_enabled()
[all …]
/linux/arch/arm/mach-rpc/
H A Decard.c58 ecard_t *ec; member
70 void (*init)(ecard_t *ec);
77 static void atomwide_3p_quirk(ecard_t *ec);
121 struct expansion_card *ec = req->ec; in ecard_task_reset() local
124 res = ec->slot_no == 8 in ecard_task_reset()
125 ? &ec->resource[ECARD_RES_MEMC] in ecard_task_reset()
126 : ec->easi in ecard_task_reset()
127 ? &ec->resource[ECARD_RES_EASI] in ecard_task_reset()
128 : &ec->resource[ECARD_RES_IOCSYNC]; in ecard_task_reset()
130 ecard_loader_reset(res->start, ec->loader); in ecard_task_reset()
[all …]
/linux/crypto/
H A Djitterentropy.c183 static void jent_apt_init(struct rand_data *ec, unsigned int osr) in jent_apt_init() argument
190 ec->apt_cutoff = jent_apt_cutoff_lookup[ in jent_apt_init()
192 ec->apt_cutoff_permanent = jent_apt_cutoff_permanent_lookup[ in jent_apt_init()
195 ec->apt_cutoff = jent_apt_cutoff_lookup[osr - 1]; in jent_apt_init()
196 ec->apt_cutoff_permanent = in jent_apt_init()
205 static void jent_apt_reset(struct rand_data *ec, unsigned int delta_masked) in jent_apt_reset() argument
208 ec->apt_count = 0; in jent_apt_reset()
209 ec->apt_base = delta_masked; in jent_apt_reset()
210 ec->apt_observations = 0; in jent_apt_reset()
219 static void jent_apt_insert(struct rand_data *ec, unsigned int delta_masked) in jent_apt_insert() argument
[all …]
/linux/drivers/md/
H A Ddm-ebs-target.c37 static inline sector_t __sector_to_block(struct ebs_c *ec, sector_t sector) in __sector_to_block() argument
39 return sector >> ec->block_shift; in __sector_to_block()
48 static inline unsigned int __nr_blocks(struct ebs_c *ec, struct bio *bio) in __nr_blocks() argument
50 sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio); in __nr_blocks()
52 return __sector_to_block(ec, end_sector) + (__block_mod(end_sector, ec->u_bs) ? 1 : 0); in __nr_blocks()
65 static int __ebs_rw_bvec(struct ebs_c *ec, enum req_op op, struct bio_vec *bv, in __ebs_rw_bvec() argument
72 unsigned int buf_off = to_bytes(__block_mod(iter->bi_sector, ec->u_bs)); in __ebs_rw_bvec()
73 sector_t block = __sector_to_block(ec, iter->bi_sector); in __ebs_rw_bvec()
83 cur_len = min(dm_bufio_get_block_size(ec->bufio) - buf_off, bv_len); in __ebs_rw_bvec()
86 if (op == REQ_OP_READ || buf_off || bv_len < dm_bufio_get_block_size(ec->bufio)) in __ebs_rw_bvec()
[all …]
/linux/drivers/platform/arm64/
H A Dlenovo-yoga-c630.c38 static int yoga_c630_ec_request(struct yoga_c630_ec *ec, u8 *req, size_t req_len, in yoga_c630_ec_request() argument
43 lockdep_assert_held(&ec->lock); in yoga_c630_ec_request()
45 ret = i2c_smbus_write_i2c_block_data(ec->client, LENOVO_EC_REQUEST_REG, in yoga_c630_ec_request()
50 return i2c_smbus_read_i2c_block_data(ec->client, LENOVO_EC_RESPONSE_REG, in yoga_c630_ec_request()
54 int yoga_c630_ec_read8(struct yoga_c630_ec *ec, u8 addr) in yoga_c630_ec_read8() argument
60 guard(mutex)(&ec->lock); in yoga_c630_ec_read8()
63 ret = yoga_c630_ec_request(ec, req, sizeof(req), &val, 1); in yoga_c630_ec_read8()
71 int yoga_c630_ec_read16(struct yoga_c630_ec *ec, u8 addr) in yoga_c630_ec_read16() argument
82 guard(mutex)(&ec->lock); in yoga_c630_ec_read16()
85 ret = yoga_c630_ec_request(ec, req, sizeof(req), &lsb, 1); in yoga_c630_ec_read16()
[all …]
H A Dacer-aspire1-ec.c94 struct aspire_ec *ec = data; in aspire_ec_irq_handler() local
108 id = i2c_smbus_read_byte_data(ec->client, ASPIRE_EC_EVENT); in aspire_ec_irq_handler()
110 dev_err(&ec->client->dev, "Failed to read event id: %pe\n", ERR_PTR(id)); in aspire_ec_irq_handler()
124 aspire_ec_ram_read(ec->client, ASPIRE_EC_RAM_WATCHDOG, &tmp, sizeof(tmp)); in aspire_ec_irq_handler()
126 aspire_ec_ram_write(ec->client, ASPIRE_EC_RAM_WATCHDOG, tmp); in aspire_ec_irq_handler()
131 input_report_switch(ec->idev, SW_LID, 1); in aspire_ec_irq_handler()
132 input_sync(ec->idev); in aspire_ec_irq_handler()
137 input_report_switch(ec->idev, SW_LID, 0); in aspire_ec_irq_handler()
138 input_sync(ec->idev); in aspire_ec_irq_handler()
146 power_supply_changed(ec->bat_psy); in aspire_ec_irq_handler()
[all …]
/linux/drivers/platform/olpc/
H A Dolpc-ec.c79 struct olpc_ec_priv *ec = container_of(w, struct olpc_ec_priv, worker); in olpc_ec_worker() local
84 spin_lock_irqsave(&ec->cmd_q_lock, flags); in olpc_ec_worker()
85 if (!list_empty(&ec->cmd_q)) { in olpc_ec_worker()
86 desc = list_first_entry(&ec->cmd_q, struct ec_cmd_desc, node); in olpc_ec_worker()
89 spin_unlock_irqrestore(&ec->cmd_q_lock, flags); in olpc_ec_worker()
96 mutex_lock(&ec->cmd_lock); in olpc_ec_worker()
99 mutex_unlock(&ec->cmd_lock); in olpc_ec_worker()
105 schedule_work(&ec->worker); in olpc_ec_worker()
113 struct olpc_ec_priv *ec) in queue_ec_descriptor() argument
119 spin_lock_irqsave(&ec->cmd_q_lock, flags); in queue_ec_descriptor()
[all …]
/linux/drivers/mfd/
H A Dcros_ec_dev.c183 struct cros_ec_dev *ec = kzalloc(sizeof(*ec), GFP_KERNEL); in ec_device_probe() local
187 if (!ec) in ec_device_probe()
190 dev_set_drvdata(dev, ec); in ec_device_probe()
191 ec->ec_dev = dev_get_drvdata(dev->parent); in ec_device_probe()
192 ec->dev = dev; in ec_device_probe()
193 ec->cmd_offset = ec_platform->cmd_offset; in ec_device_probe()
194 ec->features.flags[0] = -1U; /* Not cached yet */ in ec_device_probe()
195 ec->features.flags[1] = -1U; /* Not cached yet */ in ec_device_probe()
196 device_initialize(&ec->class_dev); in ec_device_probe()
203 if (cros_ec_check_features(ec, cros_mcu_devices[i].id)) { in ec_device_probe()
[all …]
H A Dntxec.c150 struct ntxec *ec; in ntxec_probe() local
156 ec = devm_kmalloc(&client->dev, sizeof(*ec), GFP_KERNEL); in ntxec_probe()
157 if (!ec) in ntxec_probe()
160 ec->dev = &client->dev; in ntxec_probe()
162 ec->regmap = devm_regmap_init_i2c(client, &regmap_config); in ntxec_probe()
163 if (IS_ERR(ec->regmap)) { in ntxec_probe()
164 dev_err(ec->dev, "Failed to set up regmap for device\n"); in ntxec_probe()
165 return PTR_ERR(ec->regmap); in ntxec_probe()
169 res = regmap_read(ec->regmap, NTXEC_REG_VERSION, &version); in ntxec_probe()
171 dev_err(ec->dev, "Failed to read firmware version number\n"); in ntxec_probe()
[all …]
/linux/arch/arm/include/asm/
H A Decard.h113 void (*irqenable)(ecard_t *ec, int irqnr);
114 void (*irqdisable)(ecard_t *ec, int irqnr);
115 int (*irqpending)(ecard_t *ec);
116 void (*fiqenable)(ecard_t *ec, int fiqnr);
117 void (*fiqdisable)(ecard_t *ec, int fiqnr);
118 int (*fiqpending)(ecard_t *ec);
130 #define ecard_resource_start(ec,nr) ((ec)->resource[nr].start) argument
131 #define ecard_resource_end(ec,nr) ((ec)->resource[nr].end) argument
132 #define ecard_resource_len(ec,nr) ((ec)->resource[nr].end - \ argument
133 (ec)->resource[nr].start + 1)
[all …]
/linux/drivers/ata/
H A Dpata_icside.c64 struct expansion_card *ec; member
86 static void pata_icside_irqenable_arcin_v5 (struct expansion_card *ec, int irqnr) in pata_icside_irqenable_arcin_v5() argument
88 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqenable_arcin_v5()
96 static void pata_icside_irqdisable_arcin_v5 (struct expansion_card *ec, int irqnr) in pata_icside_irqdisable_arcin_v5() argument
98 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqdisable_arcin_v5()
113 static void pata_icside_irqenable_arcin_v6 (struct expansion_card *ec, int irqnr) in pata_icside_irqenable_arcin_v6() argument
115 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqenable_arcin_v6()
127 static void pata_icside_irqdisable_arcin_v6 (struct expansion_card *ec, int irqnr) in pata_icside_irqdisable_arcin_v6() argument
129 struct pata_icside_state *state = ec->irq_data; in pata_icside_irqdisable_arcin_v6()
138 static int pata_icside_irqpending_arcin_v6(struct expansion_card *ec) in pata_icside_irqpending_arcin_v6() argument
[all …]
/linux/drivers/platform/chrome/wilco_ec/
H A Dkeyboard_leds.c22 struct wilco_ec_device *ec; member
55 static int send_kbbl_msg(struct wilco_ec_device *ec, in send_kbbl_msg() argument
69 ret = wilco_ec_mailbox(ec, &msg); in send_kbbl_msg()
71 dev_err(ec->dev, in send_kbbl_msg()
79 static int set_kbbl(struct wilco_ec_device *ec, enum led_brightness brightness) in set_kbbl() argument
91 ret = send_kbbl_msg(ec, &request, &response); in set_kbbl()
96 dev_err(ec->dev, in set_kbbl()
105 static int kbbl_exist(struct wilco_ec_device *ec, bool *exists) in kbbl_exist() argument
115 ret = send_kbbl_msg(ec, &request, &response); in kbbl_exist()
134 static int kbbl_init(struct wilco_ec_device *ec) in kbbl_init() argument
[all …]
H A Dmailbox.c53 static bool wilco_ec_response_timed_out(struct wilco_ec_device *ec) in wilco_ec_response_timed_out() argument
58 if (!(inb(ec->io_command->start) & in wilco_ec_response_timed_out()
115 static int wilco_ec_transfer(struct wilco_ec_device *ec, in wilco_ec_transfer() argument
133 outb(EC_MAILBOX_START_COMMAND, ec->io_command->start); in wilco_ec_transfer()
137 dev_dbg(ec->dev, "EC does not respond to this command\n"); in wilco_ec_transfer()
142 if (wilco_ec_response_timed_out(ec)) { in wilco_ec_transfer()
143 dev_dbg(ec->dev, "response timed out\n"); in wilco_ec_transfer()
148 flag = inb(ec->io_data->start); in wilco_ec_transfer()
150 dev_dbg(ec->dev, "bad response: 0x%02x\n", flag); in wilco_ec_transfer()
155 rs = ec->data_buffer; in wilco_ec_transfer()
[all …]
/linux/drivers/scsi/arm/
H A Dpowertec.c62 struct expansion_card *ec; member
74 powertecscsi_irqenable(struct expansion_card *ec, int irqnr) in powertecscsi_irqenable() argument
76 struct powertec_info *info = ec->irq_data; in powertecscsi_irqenable()
86 powertecscsi_irqdisable(struct expansion_card *ec, int irqnr) in powertecscsi_irqdisable() argument
88 struct powertec_info *info = ec->irq_data; in powertecscsi_irqdisable()
193 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info()
260 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_show_term() local
261 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_show_term()
270 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_store_term() local
271 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_store_term()
[all …]
H A Dcumana_2.c79 struct expansion_card *ec; member
94 cumanascsi_2_irqenable(struct expansion_card *ec, int irqnr) in cumanascsi_2_irqenable() argument
96 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqenable()
106 cumanascsi_2_irqdisable(struct expansion_card *ec, int irqnr) in cumanascsi_2_irqdisable() argument
108 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqdisable()
305 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in cumanascsi_2_info()
378 static int cumanascsi2_probe(struct expansion_card *ec, in cumanascsi2_probe() argument
386 ret = ecard_request_resources(ec); in cumanascsi2_probe()
390 base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); in cumanascsi2_probe()
403 ecard_set_drvdata(ec, host); in cumanascsi2_probe()
[all …]
H A Deesox.c74 struct expansion_card *ec; member
87 eesoxscsi_irqenable(struct expansion_card *ec, int irqnr) in eesoxscsi_irqenable() argument
89 struct eesoxscsi_info *info = (struct eesoxscsi_info *)ec->irq_data; in eesoxscsi_irqenable()
102 eesoxscsi_irqdisable(struct expansion_card *ec, int irqnr) in eesoxscsi_irqdisable() argument
104 struct eesoxscsi_info *info = (struct eesoxscsi_info *)ec->irq_data; in eesoxscsi_irqdisable()
390 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in eesoxscsi_info()
445 struct expansion_card *ec = ECARD_DEV(dev); in eesoxscsi_show_term() local
446 struct Scsi_Host *host = ecard_get_drvdata(ec); in eesoxscsi_show_term()
454 struct expansion_card *ec = ECARD_DEV(dev); in eesoxscsi_store_term() local
455 struct Scsi_Host *host = ecard_get_drvdata(ec); in eesoxscsi_store_term()
[all …]
H A Darxescsi.c48 struct expansion_card *ec; member
222 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in arxescsi_info()
258 static int arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) in arxescsi_probe() argument
265 ret = ecard_request_resources(ec); in arxescsi_probe()
269 base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); in arxescsi_probe()
282 info->ec = ec; in arxescsi_probe()
301 ec->irqaddr = base; in arxescsi_probe()
302 ec->irqmask = CSTATUS_IRQ; in arxescsi_probe()
308 ret = fas216_add(host, &ec->dev); in arxescsi_probe()
316 ecard_release_resources(ec); in arxescsi_probe()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_debugfs.c50 struct cros_ec_dev *ec; member
72 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_console_log_work() local
75 .command = EC_CMD_CONSOLE_SNAPSHOT + ec->cmd_offset, in cros_ec_console_log_work()
85 ret = cros_ec_cmd_xfer_status(ec->ec_dev, &snapshot_msg); in cros_ec_console_log_work()
95 dev_info_once(ec->dev, in cros_ec_console_log_work()
102 ret = cros_ec_cmd_xfer_status(ec->ec_dev, in cros_ec_console_log_work()
209 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_pdinfo_read()
277 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_uptime_read()
323 static int ec_read_version_supported(struct cros_ec_dev *ec) in ec_read_version_supported() argument
337 msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset; in ec_read_version_supported()
[all …]
H A Dcros_ec_sensorhub.c55 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register() local
68 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in cros_ec_sensorhub_register()
111 ec->has_kb_wake_angle = true; in cros_ec_sensorhub_register()
113 if (cros_ec_check_features(ec, in cros_ec_sensorhub_register()
128 struct cros_ec_dev *ec = dev_get_drvdata(dev->parent); in cros_ec_sensorhub_probe() local
135 ec->ec_dev->max_response), GFP_KERNEL); in cros_ec_sensorhub_probe()
139 msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; in cros_ec_sensorhub_probe()
148 data->ec = ec; in cros_ec_sensorhub_probe()
156 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE)) { in cros_ec_sensorhub_probe()
157 sensor_num = cros_ec_get_sensor_count(ec); in cros_ec_sensorhub_probe()
[all …]
/linux/drivers/pwm/
H A Dpwm-cros-ec.c25 struct cros_ec_device *ec; member
51 struct cros_ec_device *ec = ec_pwm->ec; in cros_ec_pwm_set_duty() local
72 dev_err(ec->dev, "Invalid PWM type index: %d\n", index); in cros_ec_pwm_set_duty()
81 return cros_ec_cmd_xfer_status(ec, msg); in cros_ec_pwm_set_duty()
84 static int cros_ec_pwm_get_duty(struct cros_ec_device *ec, bool use_pwm_type, u8 index) in cros_ec_pwm_get_duty() argument
108 dev_err(ec->dev, "Invalid PWM type index: %d\n", index); in cros_ec_pwm_get_duty()
117 ret = cros_ec_cmd_xfer_status(ec, msg); in cros_ec_pwm_get_duty()
157 ret = cros_ec_pwm_get_duty(ec_pwm->ec, ec_pwm->use_pwm_type, pwm->hwpwm); in cros_ec_pwm_get_state()
181 static int cros_ec_num_pwms(struct cros_ec_device *ec) in cros_ec_num_pwms() argument
191 ret = cros_ec_pwm_get_duty(ec, false, i); in cros_ec_num_pwms()
[all …]
/linux/drivers/hwmon/
H A Dasus-ec-sensors.c637 static int find_ec_sensor_index(const struct ec_sensors_data *ec, in find_ec_sensor_index() argument
642 for (i = 0; i < ec->nr_sensors; i++) { in find_ec_sensor_index()
643 if (get_sensor_info(ec, i)->type == type) { in find_ec_sensor_index()
657 static void setup_sensor_data(struct ec_sensors_data *ec) in setup_sensor_data() argument
659 struct ec_sensor *s = ec->sensors; in setup_sensor_data()
664 ec->nr_banks = 0; in setup_sensor_data()
665 ec->nr_registers = 0; in setup_sensor_data()
667 for_each_set_bit(i, &ec->board_info->sensors, in setup_sensor_data()
668 BITS_PER_TYPE(ec->board_info->sensors)) { in setup_sensor_data()
671 ec->nr_registers += in setup_sensor_data()
[all …]
/linux/drivers/power/supply/
H A Dlenovo_yoga_c630_battery.c20 struct yoga_c630_ec *ec; member
73 struct yoga_c630_ec *ec = ecbat->ec; in yoga_c630_psy_update_bat_info() local
78 val = yoga_c630_ec_read8(ec, LENOVO_EC_BAT_PRESENT); in yoga_c630_psy_update_bat_info()
85 val = yoga_c630_ec_read8(ec, LENOVO_EC_BAT_ATTRIBUTES); in yoga_c630_psy_update_bat_info()
90 val = yoga_c630_ec_read16(ec, LENOVO_EC_BAT_DESIGN_CAPACITY); in yoga_c630_psy_update_bat_info()
101 val = yoga_c630_ec_read16(ec, LENOVO_EC_BAT_DESIGN_VOLTAGE); in yoga_c630_psy_update_bat_info()
108 val = yoga_c630_ec_read8(ec, LENOVO_EC_BAT_FULL_REGISTER); in yoga_c630_psy_update_bat_info()
111 val = yoga_c630_ec_read16(ec, in yoga_c630_psy_update_bat_info()
130 struct yoga_c630_ec *ec = ecbat->ec; in yoga_c630_psy_maybe_update_bat_status() local
138 val = yoga_c630_ec_read8(ec, LENOVO_EC_BAT_STATUS); in yoga_c630_psy_maybe_update_bat_status()
[all …]
/linux/drivers/mtd/ubi/
H A Dattach.c179 int ec) in ubi_alloc_aeb() argument
188 aeb->ec = ec; in ubi_alloc_aeb()
230 int lnum, int ec, int to_head, struct list_head *list) in add_to_list() argument
235 dbg_bld("add to free: PEB %d, EC %d", pnum, ec); in add_to_list()
237 dbg_bld("add to erase: PEB %d, EC %d", pnum, ec); in add_to_list()
239 dbg_bld("add to alien: PEB %d, EC %d", pnum, ec); in add_to_list()
244 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_to_list()
268 static int add_corrupted(struct ubi_attach_info *ai, int pnum, int ec) in add_corrupted() argument
272 dbg_bld("add to corrupted: PEB %d, EC %d", pnum, ec); in add_corrupted()
274 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_corrupted()
[all …]
/linux/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_sensors_core.c249 struct cros_ec_dev *ec = sensor_hub->ec; in cros_ec_sensors_core_init() local
257 state->ec = ec->ec_dev; in cros_ec_sensors_core_init()
260 state->ec->max_response), GFP_KERNEL); in cros_ec_sensors_core_init()
268 ret = cros_ec_get_host_cmd_version_mask(state->ec, in cros_ec_sensors_core_init()
269 ec->cmd_offset, in cros_ec_sensors_core_init()
277 state->msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; in cros_ec_sensors_core_init()
331 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) { in cros_ec_sensors_core_init()
381 struct cros_ec_dev *ec = sensor_hub->ec; in cros_ec_sensors_core_register() local
389 !cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) in cros_ec_sensors_core_register()
419 state->msg->insize = min(opt_length, state->ec->max_response); in cros_ec_motion_send_host_cmd()
[all …]

1234567891011