/linux/drivers/misc/echo/ |
A D | echo.c | 155 ec->curr_pos = ec->taps - 1; in oslec_create() 175 ec->xvtx[i] = ec->yvtx[i] = ec->xvrx[i] = ec->yvrx[i] = 0; in oslec_create() 186 ec->ltxacc = ec->lrxacc = ec->lcleanacc = ec->lclean_bgacc = 0; in oslec_create() 187 ec->ltx = ec->lrx = ec->lclean = ec->lclean_bg = 0; in oslec_create() 188 ec->tx_1 = ec->tx_2 = ec->rx_1 = ec->rx_2 = 0; in oslec_create() 232 ec->ltxacc = ec->lrxacc = ec->lcleanacc = ec->lclean_bgacc = 0; in oslec_flush() 233 ec->ltx = ec->lrx = ec->lclean = ec->lclean_bg = 0; in oslec_flush() 234 ec->tx_1 = ec->tx_2 = ec->rx_1 = ec->rx_2 = 0; in oslec_flush() 354 ec->lcleanacc += abs(ec->clean) - ec->lclean; in oslec_update() 512 ec->lbgn_acc += abs(ec->clean) - ec->lbgn; in oslec_update() [all …]
|
/linux/drivers/acpi/ |
A D | ec.c | 384 ec->gpe >= 0 && ec->reference_count == 1) in acpi_ec_submit_request() 394 ec->gpe >= 0 && ec->reference_count == 0) in acpi_ec_complete_request() 649 if (ec->gpe >= 0 && acpi_ec_gpe_status_set(ec)) in advance_transaction() 707 ec->curr->irq_count = ec->curr->wi = ec->curr->ri = 0; in start_transaction() 967 wait_event(ec->wait, acpi_ec_stopped(ec)); in acpi_ec_stop() 1008 if (!ec) in acpi_ec_block_transactions() 1329 if (!ec) in acpi_ec_alloc() 1369 ec->command_addr = ec->data_addr = 0; in ec_parse_device() 1536 free_irq(ec->irq, ec); in ec_remove_handlers() 1979 ec->gpe >= 0 && ec->reference_count >= 1) in acpi_ec_suspend_noirq() [all …]
|
/linux/arch/arm/mach-rpc/ |
A D | ecard.c | 121 struct expansion_card *ec = req->ec; in ecard_task_reset() local 317 req.ec = ec; in ecard_readbytes() 395 return !ec->irqmask || readb(ec->irqaddr) & ec->irqmask; in ecard_def_irq_pending() 410 return !ec->fiqmask || readb(ec->fiqaddr) & ec->fiqmask; in ecard_def_fiq_pending() 473 ec->ops->fiqenable(ec, fiqnr); in ecard_enablefiq() 499 for (ec = cards; ec; ec = ec->next) { in ecard_dump_irq_state() 515 ec->irqaddr, ec->irqmask, readb(ec->irqaddr)); in ecard_dump_irq_state() 562 for (ec = cards; ec; ec = ec->next) { in ecard_irq_handler() 565 if (!ec->claimed || !ec->irq || ec->slot_no == 8) in ecard_irq_handler() 656 ec = ec->next; in ecard_devices_proc_show() [all …]
|
/linux/drivers/md/ |
A D | dm-ebs-target.c | 258 ec = ti->private = kzalloc(sizeof(*ec), GFP_KERNEL); in ebs_ctr() 259 if (!ec) { in ebs_ctr() 307 if (!ec->u_bs_set && ec->e_bs == ec->u_bs) in ebs_ctr() 310 if (__block_mod(ec->start, ec->u_bs)) { in ebs_ctr() 315 ec->bufio = dm_bufio_client_create(ec->dev->bdev, to_bytes(ec->u_bs), 1, 0, NULL, NULL); in ebs_ctr() 330 ec->block_shift = __ffs(ec->u_bs); in ebs_ctr() 356 kfree(ec); in ebs_dtr() 375 ec->e_bs == ec->u_bs)) { in ebs_map() 380 queue_work(ec->wq, &ec->ws); in ebs_map() 402 ec->dev->name, (unsigned long long) ec->start, ec->e_bs, ec->u_bs); in ebs_status() [all …]
|
/linux/crypto/ |
A D | jitterentropy.c | 157 ec->apt_count++; in jent_apt_insert() 217 if ((unsigned int)ec->rct_count >= (31 * ec->osr)) { in jent_rct_insert() 338 if (ec) in jent_loop_shuffle() 399 new = ec->data; in jent_lfsr_time() 471 if (NULL == ec || NULL == ec->mem) in jent_memaccess() 473 wrap = ec->memblocksize * ec->memblocks; in jent_memaccess() 483 unsigned char *tmpval = ec->mem + ec->memlocation; in jent_memaccess() 495 ec->memlocation = ec->memlocation + ec->memblocksize - 1; in jent_memaccess() 496 ec->memlocation = ec->memlocation % wrap; in jent_memaccess() 597 if (!ec) in jent_read_entropy() [all …]
|
A D | sm2.c | 84 if (!ec->Q) in sm2_ec_ctx_init() 89 if (!ec->G) { in sm2_ec_ctx_init() 94 mpi_set(ec->G->x, x); in sm2_ec_ctx_init() 100 if (!ec->n) { in sm2_ec_ctx_init() 106 ec->h = ecp->h; in sm2_ec_ctx_init() 125 mpi_ec_deinit(ec); in sm2_ec_ctx_deinit() 127 memset(ec, 0, sizeof(*ec)); in sm2_ec_ctx_deinit() 287 sm2_z_digest_update_point(desc, ec->G, ec, pbytes) || in sm2_compute_z_digest() 288 sm2_z_digest_update_point(desc, ec->Q, ec, pbytes)) in sm2_compute_z_digest() 322 mpi_ec_mul_point(&sG, sig_s, ec->G, ec); in _sm2_verify() [all …]
|
/linux/drivers/platform/chrome/wilco_ec/ |
A D | core.c | 40 struct wilco_ec_device *ec; in wilco_ec_probe() local 43 ec = devm_kzalloc(dev, sizeof(*ec), GFP_KERNEL); in wilco_ec_probe() 44 if (!ec) in wilco_ec_probe() 48 ec->dev = dev; in wilco_ec_probe() 52 ec->data_buffer = devm_kzalloc(dev, ec->data_size, GFP_KERNEL); in wilco_ec_probe() 53 if (!ec->data_buffer) in wilco_ec_probe() 60 if (!ec->io_data || !ec->io_command || !ec->io_packet) in wilco_ec_probe() 114 ec, sizeof(*ec)); in wilco_ec_probe() 126 wilco_ec_remove_sysfs(ec); in wilco_ec_probe() 130 if (ec->debugfs_pdev) in wilco_ec_probe() [all …]
|
A D | keyboard_leds.c | 22 struct wilco_ec_device *ec; member 69 ret = wilco_ec_mailbox(ec, &msg); in send_kbbl_msg() 71 dev_err(ec->dev, in send_kbbl_msg() 91 ret = send_kbbl_msg(ec, &request, &response); in set_kbbl() 96 dev_err(ec->dev, in set_kbbl() 149 dev_err(ec->dev, in kbbl_init() 170 return set_kbbl(wkl->ec, brightness); in wilco_keyboard_leds_set() 179 ret = kbbl_exist(ec, &leds_exist); in wilco_keyboard_leds_init() 181 dev_err(ec->dev, in wilco_keyboard_leds_init() 192 wkl->ec = ec; in wilco_keyboard_leds_init() [all …]
|
A D | mailbox.c | 58 if (!(inb(ec->io_command->start) & in wilco_ec_response_timed_out() 129 outb(EC_MAILBOX_START_COMMAND, ec->io_command->start); in wilco_ec_transfer() 138 if (wilco_ec_response_timed_out(ec)) { in wilco_ec_transfer() 139 dev_dbg(ec->dev, "response timed out\n"); in wilco_ec_transfer() 144 flag = inb(ec->io_data->start); in wilco_ec_transfer() 146 dev_dbg(ec->dev, "bad response: 0x%02x\n", flag); in wilco_ec_transfer() 151 rs = ec->data_buffer; in wilco_ec_transfer() 204 mutex_lock(&ec->mailbox_lock); in wilco_ec_mailbox() 206 rq = ec->data_buffer; in wilco_ec_mailbox() 209 ret = wilco_ec_transfer(ec, msg, rq); in wilco_ec_mailbox() [all …]
|
/linux/drivers/edac/ |
A D | mce_amd.c | 506 u8 ll = LL(ec); in f12h_mc0_mce() 521 if (R4(ec) == R4_GEN && LL(ec) == LL_L1) { in f10h_mc0_mce() 540 u8 r4 = R4(ec); in cat_mc0_mce() 545 if (TT(ec) != TT_DATA || LL(ec) != LL_L1) in cat_mc0_mce() 565 if ((II(ec) != II_MEM && II(ec) != II_IO) || LL(ec) != LL_LG) in cat_mc0_mce() 666 u8 ll = LL(ec); in k8_mc1_mce() 796 TT_MSG(ec)); in k8_mc2_mce() 799 R4_MSG(ec), PP_MSG(ec)); in k8_mc2_mce() 860 u8 r4 = R4(ec); in f16h_mc2_mce() 1093 if (MEM_ERROR(ec) || BUS_ERROR(ec)) { in amd_decode_err_code() [all …]
|
/linux/drivers/platform/olpc/ |
A D | olpc-ec.c | 138 if (!ec) in olpc_ec_cmd() 169 if (WARN_ON(!ec)) in olpc_ec_wakeup_set() 180 if (WARN_ON(!ec)) in olpc_ec_wakeup_clear() 191 if (WARN_ON(!ec)) in olpc_ec_mask_write() 225 if (WARN_ON(!ec)) in olpc_ec_sci_query() 414 ec = kzalloc(sizeof(*ec), GFP_KERNEL); in olpc_ec_probe() 415 if (!ec) in olpc_ec_probe() 418 ec->drv = ec_driver; in olpc_ec_probe() 425 ec_priv = ec; in olpc_ec_probe() 449 kfree(ec); in olpc_ec_probe() [all …]
|
/linux/drivers/mfd/ |
A D | cros_ec_dev.c | 139 struct cros_ec_dev *ec = kzalloc(sizeof(*ec), GFP_KERNEL); in ec_device_probe() local 142 if (!ec) in ec_device_probe() 145 dev_set_drvdata(dev, ec); in ec_device_probe() 147 ec->dev = dev; in ec_device_probe() 174 ec->class_dev.parent = dev; in ec_device_probe() 207 dev_err(ec->dev, in ec_device_probe() 239 dev_err(ec->dev, in ec_device_probe() 252 dev_warn(ec->dev, in ec_device_probe() 257 node = ec->ec_dev->dev->of_node; in ec_device_probe() 269 put_device(&ec->class_dev); in ec_device_probe() [all …]
|
A D | ntxec.c | 150 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() 163 if (IS_ERR(ec->regmap)) { in ntxec_probe() 185 ec->regmap = devm_regmap_init(ec->dev, NULL, in ntxec_probe() 186 ec->regmap, in ntxec_probe() 188 if (IS_ERR(ec->regmap)) in ntxec_probe() 192 dev_err(ec->dev, in ntxec_probe() 198 dev_info(ec->dev, in ntxec_probe() [all …]
|
/linux/arch/arm/include/asm/ |
A D | ecard.h | 113 void (*irqenable)(ecard_t *ec, int irqnr); 115 int (*irqpending)(ecard_t *ec); 116 void (*fiqenable)(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) 134 #define ecard_resource_flags(ec,nr) ((ec)->resource[nr].flags) argument 213 #define ecard_set_drvdata(ec,data) dev_set_drvdata(&(ec)->dev, (data)) argument [all …]
|
/linux/drivers/ata/ |
A D | pata_icside.c | 64 struct expansion_card *ec; member 284 struct expansion_card *ec = info->ec; in icside_dma_init() local 292 if (ec->dma != NO_DMA && !request_dma(ec->dma, DRV_NAME)) { in icside_dma_init() 293 state->dma = ec->dma; in icside_dma_init() 402 struct expansion_card *ec = info->ec; in pata_icside_register_v6() local 444 struct expansion_card *ec = info->ec; in pata_icside_add_ports() local 458 ec->ops->irqdisable(ec, ec->irq); in pata_icside_add_ports() 511 ecardm_iounmap(ec, idmem); in pata_icside_probe() 518 info.ec = ec; in pata_icside_probe() 568 ec->ops->irqdisable(ec, ec->irq); in pata_icside_shutdown() [all …]
|
/linux/drivers/scsi/arm/ |
A D | powertec.c | 58 struct expansion_card *ec; member 323 ecard_set_drvdata(ec, host); in powertecscsi_probe() 329 info->ec = ec; in powertecscsi_probe() 332 info->info.scsi.irq = ec->irq; in powertecscsi_probe() 333 info->info.scsi.dma = ec->dma; in powertecscsi_probe() 347 ec->irqmask = POWERTEC_INTR_BIT; in powertecscsi_probe() 382 free_irq(ec->irq, info); in powertecscsi_probe() 392 ecard_release_resources(ec); in powertecscsi_probe() 403 ecard_set_drvdata(ec, NULL); in powertecscsi_remove() 410 free_irq(ec->irq, info); in powertecscsi_remove() [all …]
|
A D | cumana_2.c | 75 struct expansion_card *ec; member 399 ecard_set_drvdata(ec, host); in cumanascsi2_probe() 402 info->ec = ec; in cumanascsi2_probe() 409 info->info.scsi.irq = ec->irq; in cumanascsi2_probe() 410 info->info.scsi.dma = ec->dma; in cumanascsi2_probe() 424 ec->irqmask = STATUS_INT; in cumanascsi2_probe() 457 free_irq(ec->irq, info); in cumanascsi2_probe() 466 ecard_release_resources(ec); in cumanascsi2_probe() 477 ecard_set_drvdata(ec, NULL); in cumanascsi2_remove() 482 free_irq(ec->irq, info); in cumanascsi2_remove() [all …]
|
A D | eesox.c | 70 struct expansion_card *ec; member 515 ecard_set_drvdata(ec, host); in eesoxscsi_probe() 518 info->ec = ec; in eesoxscsi_probe() 526 info->info.scsi.irq = ec->irq; in eesoxscsi_probe() 527 info->info.scsi.dma = ec->dma; in eesoxscsi_probe() 541 ec->irqmask = EESOX_STAT_INTR; in eesoxscsi_probe() 576 free_irq(ec->irq, info); in eesoxscsi_probe() 586 ecard_release_resources(ec); in eesoxscsi_probe() 597 ecard_set_drvdata(ec, NULL); in eesoxscsi_remove() 602 free_irq(ec->irq, info); in eesoxscsi_remove() [all …]
|
/linux/drivers/platform/chrome/ |
A D | cros_ec_debugfs.c | 41 struct cros_ec_dev *ec; member 63 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_console_log_work() local 86 dev_info_once(ec->dev, in cros_ec_console_log_work() 346 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_create_console_log() local 355 if (!ec_read_version_supported(ec)) in cros_ec_create_console_log() 436 devm_kfree(debug_info->ec->dev, msg); in cros_ec_create_panicinfo() 452 debug_info->ec = ec; in cros_ec_debugfs_probe() 473 ec->debug_info = debug_info; in cros_ec_debugfs_probe() 475 dev_set_drvdata(&pd->dev, ec); in cros_ec_debugfs_probe() 498 if (ec->debug_info->log_buffer.buf) in cros_ec_debugfs_suspend() [all …]
|
A D | cros_ec_sensorhub.c | 54 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register() local 67 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in cros_ec_sensorhub_register() 110 ec->has_kb_wake_angle = true; in cros_ec_sensorhub_register() 112 if (cros_ec_check_features(ec, in cros_ec_sensorhub_register() 127 struct cros_ec_dev *ec = dev_get_drvdata(dev->parent); in cros_ec_sensorhub_probe() local 134 ec->ec_dev->max_response), GFP_KERNEL); in cros_ec_sensorhub_probe() 138 msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; in cros_ec_sensorhub_probe() 147 data->ec = ec; in cros_ec_sensorhub_probe() 156 sensor_num = cros_ec_get_sensor_count(ec); in cros_ec_sensorhub_probe() 228 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_suspend() local [all …]
|
A D | cros_ec_lightbar.c | 113 msg = alloc_lightbar_cmd_msg(ec); in get_lightbar_version() 160 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in version_show() local 182 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in brightness_store() local 187 msg = alloc_lightbar_cmd_msg(ec); in brightness_store() 221 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in led_rgb_store() local 225 msg = alloc_lightbar_cmd_msg(ec); in led_rgb_store() 292 msg = alloc_lightbar_cmd_msg(ec); in sequence_show() 327 msg = alloc_lightbar_cmd_msg(ec); in lb_send_empty_cmd() 355 msg = alloc_lightbar_cmd_msg(ec); in lb_manual_suspend_ctrl() 402 msg = alloc_lightbar_cmd_msg(ec); in sequence_store() [all …]
|
A D | cros_ec_sysfs.c | 60 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in reboot_store() local 103 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in reboot_store() 121 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in version_show() local 132 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in version_show() 153 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in version_show() 167 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in version_show() 189 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in version_show() 213 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in flashinfo_show() local 244 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in kb_wake_angle_show() local 277 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in kb_wake_angle_store() local [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
A D | google,cros-ec.yaml | 25 const: google,cros-ec-i2c 28 const: google,cros-ec-spi 31 const: google,cros-ec-rpmsg 38 google,cros-ec-spi-pre-delay: 47 google,cros-ec-spi-msg-delay: 91 ec-pwm: 112 "^ec-codec@[a-f0-9]+$": 157 - google,cros-ec-i2c 177 cros-ec@1e { 194 cros-ec@0 { [all …]
|
/linux/drivers/iio/proximity/ |
A D | cros_ec_mkbp_proximity.c | 27 struct cros_ec_device *ec; member 103 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_push_event() local 108 timestamp = ktime_to_ns(ec->last_event_time); in cros_ec_mkbp_proximity_push_event() 127 struct cros_ec_device *ec = _ec; in cros_ec_mkbp_proximity_notify() local 136 switches = &ec->event_data.data.switches; in cros_ec_mkbp_proximity_notify() 149 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_read_raw() local 152 return cros_ec_mkbp_proximity_query(ec, val); in cros_ec_mkbp_proximity_read_raw() 190 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_resume() local 193 ret = cros_ec_mkbp_proximity_query(ec, &state); in cros_ec_mkbp_proximity_resume() 220 data->ec = ec; in cros_ec_mkbp_proximity_probe() [all …]
|
/linux/drivers/mtd/ubi/ |
A D | attach.c | 179 int ec) in ubi_alloc_aeb() argument 188 aeb->ec = ec; in ubi_alloc_aeb() 656 aeb->ec = ec; in ubi_add_to_av() 783 pnum, ec); in early_erase_peb() 791 ec_hdr->ec = cpu_to_be64(ec); in early_erase_peb() 845 aeb->ec += 1; in ubi_early_get_peb() 947 long long ec; in scan_peb() local 986 ec = UBI_UNKNOWN; in scan_peb() 1005 ec = be64_to_cpu(ech->ec); in scan_peb() 1185 ai->ec_sum += ec; in scan_peb() [all …]
|