Home
last modified time | relevance | path

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

123456789

/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-thinkpad-t14s.c93 struct t14s_ec *ec; member
118 struct t14s_ec *ec = context; in t14s_ec_write() local
119 struct i2c_client *client = to_i2c_client(ec->dev); in t14s_ec_write()
134 struct t14s_ec *ec = context; in t14s_ec_read() local
135 struct i2c_client *client = to_i2c_client(ec->dev); in t14s_ec_read()
174 static int t14s_ec_read_evt(struct t14s_ec *ec, u8 *val) in t14s_ec_read_evt() argument
176 struct i2c_client *client = to_i2c_client(ec->dev); in t14s_ec_read_evt()
209 static void t14s_ec_write_sequence(struct t14s_ec *ec, u8 reg, u8 val, u8 cnt) in t14s_ec_write_sequence() argument
214 regmap_write(ec->regmap, reg, val); in t14s_ec_write_sequence()
217 static int t14s_led_set_status(struct t14s_ec *ec, in t14s_led_set_status() argument
[all …]
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 Dhuawei-gaokun-ec.c125 static int gaokun_ec_request(struct gaokun_ec *ec, const u8 *req, in gaokun_ec_request() argument
128 struct i2c_client *client = ec->client; in gaokun_ec_request()
144 guard(mutex)(&ec->lock); in gaokun_ec_request()
182 int gaokun_ec_read(struct gaokun_ec *ec, const u8 *req, in gaokun_ec_read() argument
185 return gaokun_ec_request(ec, req, resp_len, resp); in gaokun_ec_read()
199 int gaokun_ec_write(struct gaokun_ec *ec, const u8 *req) in gaokun_ec_write() argument
203 return gaokun_ec_request(ec, req, sizeof(ec_resp), ec_resp); in gaokun_ec_write()
207 int gaokun_ec_read_byte(struct gaokun_ec *ec, const u8 *req, u8 *byte) in gaokun_ec_read_byte() argument
212 ret = gaokun_ec_read(ec, req, sizeof(ec_resp), ec_resp); in gaokun_ec_read_byte()
226 int gaokun_ec_register_notify(struct gaokun_ec *ec, struct notifier_block *nb) in gaokun_ec_register_notify() argument
[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 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/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 …]
H A Dsysfs.c73 struct wilco_ec_device *ec = dev_get_drvdata(dev); in boot_on_ac_store() local
94 ret = wilco_ec_mailbox(ec, &msg); in boot_on_ac_store()
105 struct wilco_ec_device *ec = dev_get_drvdata(dev); in get_info() local
118 ret = wilco_ec_mailbox(ec, &msg); in get_info()
157 static int send_usb_charge(struct wilco_ec_device *ec, in send_usb_charge() argument
170 ret = wilco_ec_mailbox(ec, &msg); in send_usb_charge()
182 struct wilco_ec_device *ec = dev_get_drvdata(dev); in usb_charge_show() local
191 ret = send_usb_charge(ec, &rq, &rs); in usb_charge_show()
202 struct wilco_ec_device *ec = dev_get_drvdata(dev); in usb_charge_store() local
219 ret = send_usb_charge(ec, &rq, &rs); in usb_charge_store()
[all …]
H A Dproperties.c34 static int send_property_msg(struct wilco_ec_device *ec, in send_property_msg() argument
48 ret = wilco_ec_mailbox(ec, &ec_msg); in send_property_msg()
59 int wilco_ec_get_property(struct wilco_ec_device *ec, in wilco_ec_get_property() argument
70 ret = send_property_msg(ec, &rq, &rs); in wilco_ec_get_property()
81 int wilco_ec_set_property(struct wilco_ec_device *ec, in wilco_ec_set_property() argument
94 ret = send_property_msg(ec, &rq, &rs); in wilco_ec_set_property()
104 int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id, in wilco_ec_get_byte_property() argument
112 ret = wilco_ec_get_property(ec, &msg); in wilco_ec_get_byte_property()
124 int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id, in wilco_ec_set_byte_property() argument
133 return wilco_ec_set_property(ec, &msg); in wilco_ec_set_byte_property()
/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()
268 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_uptime_read()
311 static int ec_read_version_supported(struct cros_ec_dev *ec) in ec_read_version_supported() argument
325 msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset; in ec_read_version_supported()
[all …]
H A Dcros_ec_sensorhub.c57 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register() local
72 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in cros_ec_sensorhub_register()
126 ec->has_kb_wake_angle = true; in cros_ec_sensorhub_register()
128 if (cros_ec_check_features(ec, in cros_ec_sensorhub_register()
143 struct cros_ec_dev *ec = dev_get_drvdata(dev->parent); in cros_ec_sensorhub_probe() local
150 ec->ec_dev->max_response), GFP_KERNEL); in cros_ec_sensorhub_probe()
154 msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; in cros_ec_sensorhub_probe()
163 data->ec = ec; in cros_ec_sensorhub_probe()
171 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE)) { in cros_ec_sensorhub_probe()
172 sensor_num = cros_ec_get_sensor_count(ec); in cros_ec_sensorhub_probe()
[all …]
/linux/drivers/iio/proximity/
H A Dcros_ec_mkbp_proximity.c27 struct cros_ec_device *ec; member
98 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_push_event() local
103 timestamp = ktime_to_ns(ec->last_event_time); in cros_ec_mkbp_proximity_push_event()
122 struct cros_ec_device *ec = _ec; in cros_ec_mkbp_proximity_notify() local
123 u8 event_type = ec->event_data.event_type & EC_MKBP_EVENT_TYPE_MASK; in cros_ec_mkbp_proximity_notify()
131 switches = &ec->event_data.data.switches; in cros_ec_mkbp_proximity_notify()
144 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_read_raw() local
147 return cros_ec_mkbp_proximity_query(ec, val); in cros_ec_mkbp_proximity_read_raw()
185 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_resume() local
188 ret = cros_ec_mkbp_proximity_query(ec, &state); in cros_ec_mkbp_proximity_resume()
[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.c247 struct cros_ec_dev *ec = sensor_hub->ec; in cros_ec_sensors_core_init() local
255 state->ec = ec->ec_dev; in cros_ec_sensors_core_init()
258 state->ec->max_response), GFP_KERNEL); in cros_ec_sensors_core_init()
266 ret = cros_ec_get_host_cmd_version_mask(state->ec, in cros_ec_sensors_core_init()
267 ec->cmd_offset, in cros_ec_sensors_core_init()
275 state->msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; in cros_ec_sensors_core_init()
329 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) { in cros_ec_sensors_core_init()
379 struct cros_ec_dev *ec = sensor_hub->ec; in cros_ec_sensors_core_register() local
387 !cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) in cros_ec_sensors_core_register()
418 state->msg->insize = min(opt_length, state->ec->max_response); in cros_ec_motion_send_host_cmd()
[all …]
/linux/include/linux/platform_data/
H A Dlenovo-yoga-c630.h20 int yoga_c630_ec_read8(struct yoga_c630_ec *ec, u8 addr);
21 int yoga_c630_ec_read16(struct yoga_c630_ec *ec, u8 addr);
23 int yoga_c630_ec_register_notify(struct yoga_c630_ec *ec, struct notifier_block *nb);
24 void yoga_c630_ec_unregister_notify(struct yoga_c630_ec *ec, struct notifier_block *nb);
31 u16 yoga_c630_ec_ucsi_get_version(struct yoga_c630_ec *ec);
32 int yoga_c630_ec_ucsi_write(struct yoga_c630_ec *ec,
34 int yoga_c630_ec_ucsi_read(struct yoga_c630_ec *ec,
H A Dwilco-ec.h127 int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg);
140 int wilco_keyboard_leds_init(struct wilco_ec_device *ec);
175 int wilco_ec_get_property(struct wilco_ec_device *ec,
188 int wilco_ec_set_property(struct wilco_ec_device *ec,
199 int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id,
210 int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id,
222 int wilco_ec_add_sysfs(struct wilco_ec_device *ec);
223 void wilco_ec_remove_sysfs(struct wilco_ec_device *ec);
/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ethtool.c57 struct ethtool_coalesce *ec, in mcp251xfd_ring_get_coalesce() argument
72 ec->rx_max_coalesced_frames_irq = rx_max_frames; in mcp251xfd_ring_get_coalesce()
73 ec->rx_coalesce_usecs_irq = priv->rx_coalesce_usecs_irq; in mcp251xfd_ring_get_coalesce()
80 ec->tx_max_coalesced_frames_irq = tx_max_frames; in mcp251xfd_ring_get_coalesce()
81 ec->tx_coalesce_usecs_irq = priv->tx_coalesce_usecs_irq; in mcp251xfd_ring_get_coalesce()
87 struct ethtool_coalesce *ec, in mcp251xfd_ring_set_coalesce() argument
99 can_ram_get_layout(&layout, &mcp251xfd_ram_config, &ring, ec, fd_mode); in mcp251xfd_ring_set_coalesce()
102 ec->rx_coalesce_usecs_irq != priv->rx_coalesce_usecs_irq || in mcp251xfd_ring_set_coalesce()
104 ec->tx_coalesce_usecs_irq != priv->tx_coalesce_usecs_irq) && in mcp251xfd_ring_set_coalesce()
110 priv->rx_coalesce_usecs_irq = ec->rx_coalesce_usecs_irq; in mcp251xfd_ring_set_coalesce()
[all …]
/linux/drivers/pwm/
H A Dpwm-ntxec.c27 struct ntxec *ec; member
79 return regmap_multi_reg_write(priv->ec->regmap, regs, ARRAY_SIZE(regs)); in ntxec_pwm_set_raw_period_and_duty_cycle()
112 res = regmap_write(priv->ec->regmap, NTXEC_REG_ENABLE, ntxec_reg8(1)); in ntxec_pwm_apply()
117 res = regmap_write(priv->ec->regmap, NTXEC_REG_AUTO_OFF_HI, ntxec_reg8(0xff)); in ntxec_pwm_apply()
121 return regmap_write(priv->ec->regmap, NTXEC_REG_AUTO_OFF_LO, ntxec_reg8(0xff)); in ntxec_pwm_apply()
123 return regmap_write(priv->ec->regmap, NTXEC_REG_ENABLE, ntxec_reg8(0)); in ntxec_pwm_apply()
137 struct ntxec *ec = dev_get_drvdata(pdev->dev.parent); in ntxec_pwm_probe() local
148 priv->ec = ec; in ntxec_pwm_probe()

123456789