ec 113 arch/arm/include/asm/ecard.h void (*irqenable)(ecard_t *ec, int irqnr); ec 114 arch/arm/include/asm/ecard.h void (*irqdisable)(ecard_t *ec, int irqnr); ec 115 arch/arm/include/asm/ecard.h int (*irqpending)(ecard_t *ec); ec 116 arch/arm/include/asm/ecard.h void (*fiqenable)(ecard_t *ec, int fiqnr); ec 117 arch/arm/include/asm/ecard.h void (*fiqdisable)(ecard_t *ec, int fiqnr); ec 118 arch/arm/include/asm/ecard.h int (*fiqpending)(ecard_t *ec); ec 130 arch/arm/include/asm/ecard.h #define ecard_resource_start(ec,nr) ((ec)->resource[nr].start) ec 131 arch/arm/include/asm/ecard.h #define ecard_resource_end(ec,nr) ((ec)->resource[nr].end) ec 132 arch/arm/include/asm/ecard.h #define ecard_resource_len(ec,nr) ((ec)->resource[nr].end - \ ec 133 arch/arm/include/asm/ecard.h (ec)->resource[nr].start + 1) ec 134 arch/arm/include/asm/ecard.h #define ecard_resource_flags(ec,nr) ((ec)->resource[nr].flags) ec 169 arch/arm/include/asm/ecard.h void ecard_setirq(struct expansion_card *ec, const struct expansion_card_ops *ops, void *irq_data); ec 186 arch/arm/include/asm/ecard.h extern int ecard_readchunk (struct in_chunk_dir *cd, struct expansion_card *ec, int id, int num); ec 191 arch/arm/include/asm/ecard.h extern int ecard_request_resources(struct expansion_card *ec); ec 192 arch/arm/include/asm/ecard.h extern void ecard_release_resources(struct expansion_card *ec); ec 194 arch/arm/include/asm/ecard.h void __iomem *ecardm_iomap(struct expansion_card *ec, unsigned int res, ec 213 arch/arm/include/asm/ecard.h #define ecard_set_drvdata(ec,data) dev_set_drvdata(&(ec)->dev, (data)) ec 214 arch/arm/include/asm/ecard.h #define ecard_get_drvdata(ec) dev_get_drvdata(&(ec)->dev) ec 99 arch/arm/kvm/hyp/switch.c u8 ec = hsr >> HSR_EC_SHIFT; ec 104 arch/arm/kvm/hyp/switch.c if (ec == HSR_EC_IABT) ec 106 arch/arm/kvm/hyp/switch.c else if (ec == HSR_EC_DABT) ec 58 arch/arm/mach-rpc/ecard.c ecard_t *ec; ec 70 arch/arm/mach-rpc/ecard.c void (*init)(ecard_t *ec); ec 77 arch/arm/mach-rpc/ecard.c static void atomwide_3p_quirk(ecard_t *ec); ec 121 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = req->ec; ec 124 arch/arm/mach-rpc/ecard.c res = ec->slot_no == 8 ec 125 arch/arm/mach-rpc/ecard.c ? &ec->resource[ECARD_RES_MEMC] ec 126 arch/arm/mach-rpc/ecard.c : ec->easi ec 127 arch/arm/mach-rpc/ecard.c ? &ec->resource[ECARD_RES_EASI] ec 128 arch/arm/mach-rpc/ecard.c : &ec->resource[ECARD_RES_IOCSYNC]; ec 130 arch/arm/mach-rpc/ecard.c ecard_loader_reset(res->start, ec->loader); ec 135 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = req->ec; ec 140 arch/arm/mach-rpc/ecard.c if (ec->slot_no == 8) { ec 142 arch/arm/mach-rpc/ecard.c ec->resource[ECARD_RES_MEMC].start; ec 181 arch/arm/mach-rpc/ecard.c unsigned long base = (ec->easi ec 182 arch/arm/mach-rpc/ecard.c ? &ec->resource[ECARD_RES_EASI] ec 183 arch/arm/mach-rpc/ecard.c : &ec->resource[ECARD_RES_IOCSYNC])->start; ec 186 arch/arm/mach-rpc/ecard.c if (!req->use_loader || !ec->loader) { ec 200 arch/arm/mach-rpc/ecard.c ec->loader); ec 312 arch/arm/mach-rpc/ecard.c ecard_readbytes(void *addr, ecard_t *ec, int off, int len, int useld) ec 317 arch/arm/mach-rpc/ecard.c req.ec = ec; ec 326 arch/arm/mach-rpc/ecard.c int ecard_readchunk(struct in_chunk_dir *cd, ecard_t *ec, int id, int num) ec 332 arch/arm/mach-rpc/ecard.c if (!ec->cid.cd) ec 336 arch/arm/mach-rpc/ecard.c ecard_readbytes(&excd, ec, index, 8, useld); ec 339 arch/arm/mach-rpc/ecard.c if (!useld && ec->loader) { ec 351 arch/arm/mach-rpc/ecard.c if (!ec->loader) { ec 352 arch/arm/mach-rpc/ecard.c ec->loader = kmalloc(c_len(&excd), ec 354 arch/arm/mach-rpc/ecard.c if (ec->loader) ec 355 arch/arm/mach-rpc/ecard.c ecard_readbytes(ec->loader, ec, ec 370 arch/arm/mach-rpc/ecard.c ecard_readbytes((unsigned char *)excd.d.string, ec, ec 385 arch/arm/mach-rpc/ecard.c static void ecard_def_irq_enable(ecard_t *ec, int irqnr) ec 389 arch/arm/mach-rpc/ecard.c static void ecard_def_irq_disable(ecard_t *ec, int irqnr) ec 393 arch/arm/mach-rpc/ecard.c static int ecard_def_irq_pending(ecard_t *ec) ec 395 arch/arm/mach-rpc/ecard.c return !ec->irqmask || readb(ec->irqaddr) & ec->irqmask; ec 398 arch/arm/mach-rpc/ecard.c static void ecard_def_fiq_enable(ecard_t *ec, int fiqnr) ec 403 arch/arm/mach-rpc/ecard.c static void ecard_def_fiq_disable(ecard_t *ec, int fiqnr) ec 408 arch/arm/mach-rpc/ecard.c static int ecard_def_fiq_pending(ecard_t *ec) ec 410 arch/arm/mach-rpc/ecard.c return !ec->fiqmask || readb(ec->fiqaddr) & ec->fiqmask; ec 430 arch/arm/mach-rpc/ecard.c ecard_t *ec = irq_data_get_irq_chip_data(d); ec 432 arch/arm/mach-rpc/ecard.c if (ec) { ec 433 arch/arm/mach-rpc/ecard.c if (!ec->ops) ec 434 arch/arm/mach-rpc/ecard.c ec->ops = &ecard_default_ops; ec 436 arch/arm/mach-rpc/ecard.c if (ec->claimed && ec->ops->irqenable) ec 437 arch/arm/mach-rpc/ecard.c ec->ops->irqenable(ec, d->irq); ec 446 arch/arm/mach-rpc/ecard.c ecard_t *ec = irq_data_get_irq_chip_data(d); ec 448 arch/arm/mach-rpc/ecard.c if (ec) { ec 449 arch/arm/mach-rpc/ecard.c if (!ec->ops) ec 450 arch/arm/mach-rpc/ecard.c ec->ops = &ecard_default_ops; ec 452 arch/arm/mach-rpc/ecard.c if (ec->ops && ec->ops->irqdisable) ec 453 arch/arm/mach-rpc/ecard.c ec->ops->irqdisable(ec, d->irq); ec 466 arch/arm/mach-rpc/ecard.c ecard_t *ec = slot_to_ecard(fiqnr); ec 468 arch/arm/mach-rpc/ecard.c if (ec) { ec 469 arch/arm/mach-rpc/ecard.c if (!ec->ops) ec 470 arch/arm/mach-rpc/ecard.c ec->ops = &ecard_default_ops; ec 472 arch/arm/mach-rpc/ecard.c if (ec->claimed && ec->ops->fiqenable) ec 473 arch/arm/mach-rpc/ecard.c ec->ops->fiqenable(ec, fiqnr); ec 482 arch/arm/mach-rpc/ecard.c ecard_t *ec = slot_to_ecard(fiqnr); ec 484 arch/arm/mach-rpc/ecard.c if (ec) { ec 485 arch/arm/mach-rpc/ecard.c if (!ec->ops) ec 486 arch/arm/mach-rpc/ecard.c ec->ops = &ecard_default_ops; ec 488 arch/arm/mach-rpc/ecard.c if (ec->ops->fiqdisable) ec 489 arch/arm/mach-rpc/ecard.c ec->ops->fiqdisable(ec, fiqnr); ec 495 arch/arm/mach-rpc/ecard.c ecard_t *ec; ec 499 arch/arm/mach-rpc/ecard.c for (ec = cards; ec; ec = ec->next) { ec 502 arch/arm/mach-rpc/ecard.c if (ec->slot_no == 8) ec 505 arch/arm/mach-rpc/ecard.c claimed = ec->claimed ? "" : "not "; ec 507 arch/arm/mach-rpc/ecard.c if (ec->ops && ec->ops->irqpending && ec 508 arch/arm/mach-rpc/ecard.c ec->ops != &ecard_default_ops) ec 510 arch/arm/mach-rpc/ecard.c ec->slot_no, claimed, ec 511 arch/arm/mach-rpc/ecard.c ec->ops->irqpending(ec) ? "" : "not "); ec 514 arch/arm/mach-rpc/ecard.c ec->slot_no, claimed, ec 515 arch/arm/mach-rpc/ecard.c ec->irqaddr, ec->irqmask, readb(ec->irqaddr)); ec 558 arch/arm/mach-rpc/ecard.c ecard_t *ec; ec 562 arch/arm/mach-rpc/ecard.c for (ec = cards; ec; ec = ec->next) { ec 565 arch/arm/mach-rpc/ecard.c if (!ec->claimed || !ec->irq || ec->slot_no == 8) ec 568 arch/arm/mach-rpc/ecard.c if (ec->ops && ec->ops->irqpending) ec 569 arch/arm/mach-rpc/ecard.c pending = ec->ops->irqpending(ec); ec 571 arch/arm/mach-rpc/ecard.c pending = ecard_default_ops.irqpending(ec); ec 574 arch/arm/mach-rpc/ecard.c generic_handle_irq(ec->irq); ec 584 arch/arm/mach-rpc/ecard.c static void __iomem *__ecard_address(ecard_t *ec, card_type_t type, card_speed_t speed) ec 587 arch/arm/mach-rpc/ecard.c int slot = ec->slot_no; ec 589 arch/arm/mach-rpc/ecard.c if (ec->slot_no == 8) ec 625 arch/arm/mach-rpc/ecard.c static int ecard_prints(struct seq_file *m, ecard_t *ec) ec 627 arch/arm/mach-rpc/ecard.c seq_printf(m, " %d: %s ", ec->slot_no, ec->easi ? "EASI" : " "); ec 629 arch/arm/mach-rpc/ecard.c if (ec->cid.id == 0) { ec 633 arch/arm/mach-rpc/ecard.c ec->cid.manufacturer, ec->cid.product); ec 635 arch/arm/mach-rpc/ecard.c if (!ec->card_desc && ec->cid.cd && ec 636 arch/arm/mach-rpc/ecard.c ecard_readchunk(&incd, ec, 0xf5, 0)) { ec 637 arch/arm/mach-rpc/ecard.c ec->card_desc = kmalloc(strlen(incd.d.string)+1, GFP_KERNEL); ec 639 arch/arm/mach-rpc/ecard.c if (ec->card_desc) ec 640 arch/arm/mach-rpc/ecard.c strcpy((char *)ec->card_desc, incd.d.string); ec 643 arch/arm/mach-rpc/ecard.c seq_printf(m, "%s\n", ec->card_desc ? ec->card_desc : "*unknown*"); ec 645 arch/arm/mach-rpc/ecard.c seq_printf(m, "Simple card %d\n", ec->cid.id); ec 652 arch/arm/mach-rpc/ecard.c ecard_t *ec = cards; ec 654 arch/arm/mach-rpc/ecard.c while (ec) { ec 655 arch/arm/mach-rpc/ecard.c ecard_prints(m, ec); ec 656 arch/arm/mach-rpc/ecard.c ec = ec->next; ec 670 arch/arm/mach-rpc/ecard.c #define ec_set_resource(ec,nr,st,sz) \ ec 672 arch/arm/mach-rpc/ecard.c (ec)->resource[nr].name = dev_name(&ec->dev); \ ec 673 arch/arm/mach-rpc/ecard.c (ec)->resource[nr].start = st; \ ec 674 arch/arm/mach-rpc/ecard.c (ec)->resource[nr].end = (st) + (sz) - 1; \ ec 675 arch/arm/mach-rpc/ecard.c (ec)->resource[nr].flags = IORESOURCE_MEM; \ ec 678 arch/arm/mach-rpc/ecard.c static void __init ecard_free_card(struct expansion_card *ec) ec 683 arch/arm/mach-rpc/ecard.c if (ec->resource[i].flags) ec 684 arch/arm/mach-rpc/ecard.c release_resource(&ec->resource[i]); ec 686 arch/arm/mach-rpc/ecard.c kfree(ec); ec 691 arch/arm/mach-rpc/ecard.c struct expansion_card *ec; ec 695 arch/arm/mach-rpc/ecard.c ec = kzalloc(sizeof(ecard_t), GFP_KERNEL); ec 696 arch/arm/mach-rpc/ecard.c if (!ec) { ec 697 arch/arm/mach-rpc/ecard.c ec = ERR_PTR(-ENOMEM); ec 701 arch/arm/mach-rpc/ecard.c ec->slot_no = slot; ec 702 arch/arm/mach-rpc/ecard.c ec->easi = type == ECARD_EASI; ec 703 arch/arm/mach-rpc/ecard.c ec->irq = 0; ec 704 arch/arm/mach-rpc/ecard.c ec->fiq = 0; ec 705 arch/arm/mach-rpc/ecard.c ec->dma = NO_DMA; ec 706 arch/arm/mach-rpc/ecard.c ec->ops = &ecard_default_ops; ec 708 arch/arm/mach-rpc/ecard.c dev_set_name(&ec->dev, "ecard%d", slot); ec 709 arch/arm/mach-rpc/ecard.c ec->dev.parent = NULL; ec 710 arch/arm/mach-rpc/ecard.c ec->dev.bus = &ecard_bus_type; ec 711 arch/arm/mach-rpc/ecard.c ec->dev.dma_mask = &ec->dma_mask; ec 712 arch/arm/mach-rpc/ecard.c ec->dma_mask = (u64)0xffffffff; ec 713 arch/arm/mach-rpc/ecard.c ec->dev.coherent_dma_mask = ec->dma_mask; ec 716 arch/arm/mach-rpc/ecard.c ec_set_resource(ec, ECARD_RES_MEMC, ec 725 arch/arm/mach-rpc/ecard.c ec_set_resource(ec, ECARD_RES_EASI, ec 731 arch/arm/mach-rpc/ecard.c ec_set_resource(ec, ECARD_RES_MEMC, NETSLOT_BASE, NETSLOT_SIZE); ec 736 arch/arm/mach-rpc/ecard.c ec_set_resource(ec, i + ECARD_RES_IOCSLOW, ec 740 arch/arm/mach-rpc/ecard.c if (ec->resource[i].flags && ec 741 arch/arm/mach-rpc/ecard.c request_resource(&iomem_resource, &ec->resource[i])) { ec 742 arch/arm/mach-rpc/ecard.c dev_err(&ec->dev, "resource(s) not available\n"); ec 743 arch/arm/mach-rpc/ecard.c ec->resource[i].end -= ec->resource[i].start; ec 744 arch/arm/mach-rpc/ecard.c ec->resource[i].start = 0; ec 745 arch/arm/mach-rpc/ecard.c ec->resource[i].flags = 0; ec 750 arch/arm/mach-rpc/ecard.c return ec; ec 755 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 756 arch/arm/mach-rpc/ecard.c return sprintf(buf, "%u\n", ec->irq); ec 762 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 763 arch/arm/mach-rpc/ecard.c return sprintf(buf, "%u\n", ec->dma); ec 769 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 775 arch/arm/mach-rpc/ecard.c ec->resource[i].start, ec 776 arch/arm/mach-rpc/ecard.c ec->resource[i].end, ec 777 arch/arm/mach-rpc/ecard.c ec->resource[i].flags); ec 785 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 786 arch/arm/mach-rpc/ecard.c return sprintf(buf, "%u\n", ec->cid.manufacturer); ec 792 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 793 arch/arm/mach-rpc/ecard.c return sprintf(buf, "%u\n", ec->cid.product); ec 799 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 800 arch/arm/mach-rpc/ecard.c return sprintf(buf, "%s\n", ec->easi ? "EASI" : "IOC"); ec 815 arch/arm/mach-rpc/ecard.c int ecard_request_resources(struct expansion_card *ec) ec 820 arch/arm/mach-rpc/ecard.c if (ecard_resource_end(ec, i) && ec 821 arch/arm/mach-rpc/ecard.c !request_mem_region(ecard_resource_start(ec, i), ec 822 arch/arm/mach-rpc/ecard.c ecard_resource_len(ec, i), ec 823 arch/arm/mach-rpc/ecard.c ec->dev.driver->name)) { ec 831 arch/arm/mach-rpc/ecard.c if (ecard_resource_end(ec, i)) ec 832 arch/arm/mach-rpc/ecard.c release_mem_region(ecard_resource_start(ec, i), ec 833 arch/arm/mach-rpc/ecard.c ecard_resource_len(ec, i)); ec 839 arch/arm/mach-rpc/ecard.c void ecard_release_resources(struct expansion_card *ec) ec 844 arch/arm/mach-rpc/ecard.c if (ecard_resource_end(ec, i)) ec 845 arch/arm/mach-rpc/ecard.c release_mem_region(ecard_resource_start(ec, i), ec 846 arch/arm/mach-rpc/ecard.c ecard_resource_len(ec, i)); ec 850 arch/arm/mach-rpc/ecard.c void ecard_setirq(struct expansion_card *ec, const struct expansion_card_ops *ops, void *irq_data) ec 852 arch/arm/mach-rpc/ecard.c ec->irq_data = irq_data; ec 854 arch/arm/mach-rpc/ecard.c ec->ops = ops; ec 858 arch/arm/mach-rpc/ecard.c void __iomem *ecardm_iomap(struct expansion_card *ec, unsigned int res, ec 861 arch/arm/mach-rpc/ecard.c unsigned long start = ecard_resource_start(ec, res); ec 862 arch/arm/mach-rpc/ecard.c unsigned long end = ecard_resource_end(ec, res); ec 871 arch/arm/mach-rpc/ecard.c return devm_ioremap(&ec->dev, start, end - start); ec 875 arch/arm/mach-rpc/ecard.c static void atomwide_3p_quirk(ecard_t *ec) ec 877 arch/arm/mach-rpc/ecard.c void __iomem *addr = __ecard_address(ec, ECARD_IOC, ECARD_SYNC); ec 894 arch/arm/mach-rpc/ecard.c ecard_t *ec; ec 899 arch/arm/mach-rpc/ecard.c ec = ecard_alloc_card(type, slot); ec 900 arch/arm/mach-rpc/ecard.c if (IS_ERR(ec)) { ec 901 arch/arm/mach-rpc/ecard.c rc = PTR_ERR(ec); ec 906 arch/arm/mach-rpc/ecard.c if ((addr = __ecard_address(ec, type, ECARD_SYNC)) == NULL) ec 910 arch/arm/mach-rpc/ecard.c ecard_readbytes(&cid, ec, 0, 16, 0); ec 914 arch/arm/mach-rpc/ecard.c ec->cid.id = cid.r_id; ec 915 arch/arm/mach-rpc/ecard.c ec->cid.cd = cid.r_cd; ec 916 arch/arm/mach-rpc/ecard.c ec->cid.is = cid.r_is; ec 917 arch/arm/mach-rpc/ecard.c ec->cid.w = cid.r_w; ec 918 arch/arm/mach-rpc/ecard.c ec->cid.manufacturer = ecard_getu16(cid.r_manu); ec 919 arch/arm/mach-rpc/ecard.c ec->cid.product = ecard_getu16(cid.r_prod); ec 920 arch/arm/mach-rpc/ecard.c ec->cid.country = cid.r_country; ec 921 arch/arm/mach-rpc/ecard.c ec->cid.irqmask = cid.r_irqmask; ec 922 arch/arm/mach-rpc/ecard.c ec->cid.irqoff = ecard_gets24(cid.r_irqoff); ec 923 arch/arm/mach-rpc/ecard.c ec->cid.fiqmask = cid.r_fiqmask; ec 924 arch/arm/mach-rpc/ecard.c ec->cid.fiqoff = ecard_gets24(cid.r_fiqoff); ec 925 arch/arm/mach-rpc/ecard.c ec->fiqaddr = ec 926 arch/arm/mach-rpc/ecard.c ec->irqaddr = addr; ec 928 arch/arm/mach-rpc/ecard.c if (ec->cid.is) { ec 929 arch/arm/mach-rpc/ecard.c ec->irqmask = ec->cid.irqmask; ec 930 arch/arm/mach-rpc/ecard.c ec->irqaddr += ec->cid.irqoff; ec 931 arch/arm/mach-rpc/ecard.c ec->fiqmask = ec->cid.fiqmask; ec 932 arch/arm/mach-rpc/ecard.c ec->fiqaddr += ec->cid.fiqoff; ec 934 arch/arm/mach-rpc/ecard.c ec->irqmask = 1; ec 935 arch/arm/mach-rpc/ecard.c ec->fiqmask = 4; ec 939 arch/arm/mach-rpc/ecard.c if (blacklist[i].manufacturer == ec->cid.manufacturer && ec 940 arch/arm/mach-rpc/ecard.c blacklist[i].product == ec->cid.product) { ec 942 arch/arm/mach-rpc/ecard.c ec->card_desc = blacklist[i].type; ec 944 arch/arm/mach-rpc/ecard.c blacklist[i].init(ec); ec 948 arch/arm/mach-rpc/ecard.c ec->irq = irq; ec 954 arch/arm/mach-rpc/ecard.c irq_set_chip_and_handler(ec->irq, &ecard_chip, ec 956 arch/arm/mach-rpc/ecard.c irq_set_chip_data(ec->irq, ec); ec 957 arch/arm/mach-rpc/ecard.c irq_clear_status_flags(ec->irq, IRQ_NOREQUEST); ec 963 arch/arm/mach-rpc/ecard.c ec->dma = 2 + slot; ec 968 arch/arm/mach-rpc/ecard.c *ecp = ec; ec 969 arch/arm/mach-rpc/ecard.c slot_to_expcard[slot] = ec; ec 971 arch/arm/mach-rpc/ecard.c rc = device_register(&ec->dev); ec 978 arch/arm/mach-rpc/ecard.c ecard_free_card(ec); ec 1027 arch/arm/mach-rpc/ecard.c ecard_match_device(const struct ecard_id *ids, struct expansion_card *ec) ec 1032 arch/arm/mach-rpc/ecard.c if (ec->cid.manufacturer == ids[i].manufacturer && ec 1033 arch/arm/mach-rpc/ecard.c ec->cid.product == ids[i].product) ec 1041 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 1046 arch/arm/mach-rpc/ecard.c id = ecard_match_device(drv->id_table, ec); ec 1048 arch/arm/mach-rpc/ecard.c ec->claimed = 1; ec 1049 arch/arm/mach-rpc/ecard.c ret = drv->probe(ec, id); ec 1051 arch/arm/mach-rpc/ecard.c ec->claimed = 0; ec 1057 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 1060 arch/arm/mach-rpc/ecard.c drv->remove(ec); ec 1061 arch/arm/mach-rpc/ecard.c ec->claimed = 0; ec 1067 arch/arm/mach-rpc/ecard.c ec->ops = &ecard_default_ops; ec 1069 arch/arm/mach-rpc/ecard.c ec->irq_data = NULL; ec 1082 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(dev); ec 1088 arch/arm/mach-rpc/ecard.c drv->shutdown(ec); ec 1089 arch/arm/mach-rpc/ecard.c ec->claimed = 0; ec 1095 arch/arm/mach-rpc/ecard.c if (ec->loader) { ec 1097 arch/arm/mach-rpc/ecard.c req.ec = ec; ec 1116 arch/arm/mach-rpc/ecard.c struct expansion_card *ec = ECARD_DEV(_dev); ec 1121 arch/arm/mach-rpc/ecard.c ret = ecard_match_device(drv->id_table, ec) != NULL; ec 1123 arch/arm/mach-rpc/ecard.c ret = ec->cid.id == drv->id; ec 324 arch/arm64/include/asm/esr.h const u32 ec = ESR_ELx_EC(esr); ec 326 arch/arm64/include/asm/esr.h return ec == ESR_ELx_EC_DABT_LOW || ec == ESR_ELx_EC_DABT_CUR; ec 276 arch/arm64/kvm/hyp/switch.c u8 ec; ec 281 arch/arm64/kvm/hyp/switch.c ec = ESR_ELx_EC(esr); ec 283 arch/arm64/kvm/hyp/switch.c if (ec != ESR_ELx_EC_DABT_LOW && ec != ESR_ELx_EC_IABT_LOW) ec 238 arch/arm64/mm/fault.c unsigned int ec = ESR_ELx_EC(esr); ec 241 arch/arm64/mm/fault.c if (ec != ESR_ELx_EC_DABT_CUR && ec != ESR_ELx_EC_IABT_CUR) ec 830 arch/ia64/kernel/ptrace.c unsigned long psr, ec, lc, rnat, bsp, cfm, nat_bits, val; ec 855 arch/ia64/kernel/ptrace.c || access_uarea(child, PT_AR_EC, &ec, 0) < 0 ec 877 arch/ia64/kernel/ptrace.c retval |= __put_user(ec, &ppr->ar[PT_AUR_EC]); ec 974 arch/ia64/kernel/ptrace.c unsigned long psr, rsc, ec, lc, rnat, bsp, cfm, nat_bits, val = 0; ec 1013 arch/ia64/kernel/ptrace.c retval |= __get_user(ec, &ppr->ar[PT_AUR_EC]); ec 1106 arch/ia64/kernel/ptrace.c retval |= access_uarea(child, PT_AR_EC, &ec, 1); ec 387 arch/ia64/kernel/traps.c ia64_illegal_op_fault (unsigned long ec, long arg1, long arg2, long arg3, ec 398 arch/ia64/kernel/traps.c rv = ia64_emulate_brl(®s, ec); ec 266 arch/mips/include/asm/octeon/cvmx-pciercx-defs.h __BITFIELD_FIELD(uint32_t ec:1, ec 63 arch/s390/include/asm/nmi.h u64 ec : 1; /* 26 external damage code validity */ ec 417 arch/s390/kernel/nmi.c if (mci.ed && mci.ec) { ec 1398 arch/um/drivers/vector_kern.c struct ethtool_coalesce *ec) ec 1402 arch/um/drivers/vector_kern.c ec->tx_coalesce_usecs = (vp->coalesce * 1000000) / HZ; ec 1407 arch/um/drivers/vector_kern.c struct ethtool_coalesce *ec) ec 1411 arch/um/drivers/vector_kern.c vp->coalesce = (ec->tx_coalesce_usecs * HZ) / 1000000; ec 48 crypto/jitterentropy-kcapi.c int jent_read_entropy(struct rand_data *ec, unsigned char *data, ec 125 crypto/jitterentropy.c static __u64 jent_loop_shuffle(struct rand_data *ec, ec 138 crypto/jitterentropy.c if (ec) ec 139 crypto/jitterentropy.c time ^= ec->data; ec 185 crypto/jitterentropy.c static __u64 jent_lfsr_time(struct rand_data *ec, __u64 time, __u64 loop_cnt) ec 193 crypto/jitterentropy.c jent_loop_shuffle(ec, MAX_FOLD_LOOP_BIT, MIN_FOLD_LOOP_BIT); ec 202 crypto/jitterentropy.c new = ec->data; ec 228 crypto/jitterentropy.c ec->data = new; ec 260 crypto/jitterentropy.c static unsigned int jent_memaccess(struct rand_data *ec, __u64 loop_cnt) ec 267 crypto/jitterentropy.c jent_loop_shuffle(ec, MAX_ACC_LOOP_BIT, MIN_ACC_LOOP_BIT); ec 269 crypto/jitterentropy.c if (NULL == ec || NULL == ec->mem) ec 271 crypto/jitterentropy.c wrap = ec->memblocksize * ec->memblocks; ec 280 crypto/jitterentropy.c for (i = 0; i < (ec->memaccessloops + acc_loop_cnt); i++) { ec 281 crypto/jitterentropy.c unsigned char *tmpval = ec->mem + ec->memlocation; ec 293 crypto/jitterentropy.c ec->memlocation = ec->memlocation + ec->memblocksize - 1; ec 294 crypto/jitterentropy.c ec->memlocation = ec->memlocation % wrap; ec 319 crypto/jitterentropy.c static int jent_stuck(struct rand_data *ec, __u64 current_delta) ec 321 crypto/jitterentropy.c __s64 delta2 = ec->last_delta - current_delta; ec 322 crypto/jitterentropy.c __s64 delta3 = delta2 - ec->last_delta2; ec 324 crypto/jitterentropy.c ec->last_delta = current_delta; ec 325 crypto/jitterentropy.c ec->last_delta2 = delta2; ec 347 crypto/jitterentropy.c static int jent_measure_jitter(struct rand_data *ec) ec 353 crypto/jitterentropy.c jent_memaccess(ec, 0); ec 360 crypto/jitterentropy.c current_delta = time - ec->prev_time; ec 361 crypto/jitterentropy.c ec->prev_time = time; ec 364 crypto/jitterentropy.c jent_lfsr_time(ec, current_delta, 0); ec 367 crypto/jitterentropy.c return jent_stuck(ec, current_delta); ec 377 crypto/jitterentropy.c static void jent_gen_entropy(struct rand_data *ec) ec 382 crypto/jitterentropy.c jent_measure_jitter(ec); ec 386 crypto/jitterentropy.c if (jent_measure_jitter(ec)) ec 393 crypto/jitterentropy.c if (++k >= (DATA_SIZE_BITS * ec->osr)) ec 406 crypto/jitterentropy.c static void jent_fips_test(struct rand_data *ec) ec 412 crypto/jitterentropy.c if (!ec->old_data) { ec 413 crypto/jitterentropy.c ec->old_data = ec->data; ec 414 crypto/jitterentropy.c jent_gen_entropy(ec); ec 417 crypto/jitterentropy.c if (ec->data == ec->old_data) ec 420 crypto/jitterentropy.c ec->old_data = ec->data; ec 445 crypto/jitterentropy.c int jent_read_entropy(struct rand_data *ec, unsigned char *data, ec 450 crypto/jitterentropy.c if (!ec) ec 456 crypto/jitterentropy.c jent_gen_entropy(ec); ec 457 crypto/jitterentropy.c jent_fips_test(ec); ec 462 crypto/jitterentropy.c jent_memcpy(p, &ec->data, tocopy); ec 524 crypto/jitterentropy.c struct rand_data ec = { 0 }; ec 559 crypto/jitterentropy.c ec.prev_time = time; ec 560 crypto/jitterentropy.c jent_lfsr_time(&ec, time, 0); ec 575 crypto/jitterentropy.c stuck = jent_stuck(&ec, delta); ec 172 drivers/acpi/ec.c static int acpi_ec_query(struct acpi_ec *ec, u8 *data); ec 173 drivers/acpi/ec.c static void advance_transaction(struct acpi_ec *ec); ec 231 drivers/acpi/ec.c #define ec_dbg_ref(ec, fmt, ...) \ ec 232 drivers/acpi/ec.c ec_dbg_raw("%lu: " fmt, ec->reference_count, ## __VA_ARGS__) ec 238 drivers/acpi/ec.c static bool acpi_ec_started(struct acpi_ec *ec) ec 240 drivers/acpi/ec.c return test_bit(EC_FLAGS_STARTED, &ec->flags) && ec 241 drivers/acpi/ec.c !test_bit(EC_FLAGS_STOPPED, &ec->flags); ec 244 drivers/acpi/ec.c static bool acpi_ec_event_enabled(struct acpi_ec *ec) ec 251 drivers/acpi/ec.c if (!test_bit(EC_FLAGS_QUERY_ENABLED, &ec->flags)) ec 263 drivers/acpi/ec.c return acpi_ec_started(ec); ec 265 drivers/acpi/ec.c return test_bit(EC_FLAGS_STARTED, &ec->flags); ec 268 drivers/acpi/ec.c static bool acpi_ec_flushed(struct acpi_ec *ec) ec 270 drivers/acpi/ec.c return ec->reference_count == 1; ec 277 drivers/acpi/ec.c static inline u8 acpi_ec_read_status(struct acpi_ec *ec) ec 279 drivers/acpi/ec.c u8 x = inb(ec->command_addr); ec 292 drivers/acpi/ec.c static inline u8 acpi_ec_read_data(struct acpi_ec *ec) ec 294 drivers/acpi/ec.c u8 x = inb(ec->data_addr); ec 296 drivers/acpi/ec.c ec->timestamp = jiffies; ec 301 drivers/acpi/ec.c static inline void acpi_ec_write_cmd(struct acpi_ec *ec, u8 command) ec 304 drivers/acpi/ec.c outb(command, ec->command_addr); ec 305 drivers/acpi/ec.c ec->timestamp = jiffies; ec 308 drivers/acpi/ec.c static inline void acpi_ec_write_data(struct acpi_ec *ec, u8 data) ec 311 drivers/acpi/ec.c outb(data, ec->data_addr); ec 312 drivers/acpi/ec.c ec->timestamp = jiffies; ec 340 drivers/acpi/ec.c static inline bool acpi_ec_is_gpe_raised(struct acpi_ec *ec) ec 344 drivers/acpi/ec.c (void)acpi_get_gpe_status(NULL, ec->gpe, &gpe_status); ec 348 drivers/acpi/ec.c static inline void acpi_ec_enable_gpe(struct acpi_ec *ec, bool open) ec 351 drivers/acpi/ec.c acpi_enable_gpe(NULL, ec->gpe); ec 353 drivers/acpi/ec.c BUG_ON(ec->reference_count < 1); ec 354 drivers/acpi/ec.c acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE); ec 356 drivers/acpi/ec.c if (acpi_ec_is_gpe_raised(ec)) { ec 363 drivers/acpi/ec.c advance_transaction(ec); ec 367 drivers/acpi/ec.c static inline void acpi_ec_disable_gpe(struct acpi_ec *ec, bool close) ec 370 drivers/acpi/ec.c acpi_disable_gpe(NULL, ec->gpe); ec 372 drivers/acpi/ec.c BUG_ON(ec->reference_count < 1); ec 373 drivers/acpi/ec.c acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE); ec 377 drivers/acpi/ec.c static inline void acpi_ec_clear_gpe(struct acpi_ec *ec) ec 389 drivers/acpi/ec.c if (!acpi_ec_is_gpe_raised(ec)) ec 391 drivers/acpi/ec.c acpi_clear_gpe(NULL, ec->gpe); ec 398 drivers/acpi/ec.c static void acpi_ec_submit_request(struct acpi_ec *ec) ec 400 drivers/acpi/ec.c ec->reference_count++; ec 401 drivers/acpi/ec.c if (test_bit(EC_FLAGS_GPE_HANDLER_INSTALLED, &ec->flags) && ec 402 drivers/acpi/ec.c ec->reference_count == 1) ec 403 drivers/acpi/ec.c acpi_ec_enable_gpe(ec, true); ec 406 drivers/acpi/ec.c static void acpi_ec_complete_request(struct acpi_ec *ec) ec 410 drivers/acpi/ec.c ec->reference_count--; ec 411 drivers/acpi/ec.c if (test_bit(EC_FLAGS_GPE_HANDLER_INSTALLED, &ec->flags) && ec 412 drivers/acpi/ec.c ec->reference_count == 0) ec 413 drivers/acpi/ec.c acpi_ec_disable_gpe(ec, true); ec 414 drivers/acpi/ec.c flushed = acpi_ec_flushed(ec); ec 416 drivers/acpi/ec.c wake_up(&ec->wait); ec 419 drivers/acpi/ec.c static void acpi_ec_mask_gpe(struct acpi_ec *ec) ec 421 drivers/acpi/ec.c if (!test_bit(EC_FLAGS_GPE_MASKED, &ec->flags)) { ec 422 drivers/acpi/ec.c acpi_ec_disable_gpe(ec, false); ec 424 drivers/acpi/ec.c set_bit(EC_FLAGS_GPE_MASKED, &ec->flags); ec 428 drivers/acpi/ec.c static void acpi_ec_unmask_gpe(struct acpi_ec *ec) ec 430 drivers/acpi/ec.c if (test_bit(EC_FLAGS_GPE_MASKED, &ec->flags)) { ec 431 drivers/acpi/ec.c clear_bit(EC_FLAGS_GPE_MASKED, &ec->flags); ec 432 drivers/acpi/ec.c acpi_ec_enable_gpe(ec, false); ec 448 drivers/acpi/ec.c static bool acpi_ec_submit_flushable_request(struct acpi_ec *ec) ec 450 drivers/acpi/ec.c if (!acpi_ec_started(ec)) ec 452 drivers/acpi/ec.c acpi_ec_submit_request(ec); ec 456 drivers/acpi/ec.c static void acpi_ec_submit_query(struct acpi_ec *ec) ec 458 drivers/acpi/ec.c acpi_ec_mask_gpe(ec); ec 459 drivers/acpi/ec.c if (!acpi_ec_event_enabled(ec)) ec 461 drivers/acpi/ec.c if (!test_and_set_bit(EC_FLAGS_QUERY_PENDING, &ec->flags)) { ec 464 drivers/acpi/ec.c ec->nr_pending_queries++; ec 465 drivers/acpi/ec.c queue_work(ec_wq, &ec->work); ec 469 drivers/acpi/ec.c static void acpi_ec_complete_query(struct acpi_ec *ec) ec 471 drivers/acpi/ec.c if (test_and_clear_bit(EC_FLAGS_QUERY_PENDING, &ec->flags)) ec 474 drivers/acpi/ec.c acpi_ec_unmask_gpe(ec); ec 477 drivers/acpi/ec.c static inline void __acpi_ec_enable_event(struct acpi_ec *ec) ec 479 drivers/acpi/ec.c if (!test_and_set_bit(EC_FLAGS_QUERY_ENABLED, &ec->flags)) ec 485 drivers/acpi/ec.c advance_transaction(ec); ec 488 drivers/acpi/ec.c static inline void __acpi_ec_disable_event(struct acpi_ec *ec) ec 490 drivers/acpi/ec.c if (test_and_clear_bit(EC_FLAGS_QUERY_ENABLED, &ec->flags)) ec 498 drivers/acpi/ec.c static void acpi_ec_clear(struct acpi_ec *ec) ec 504 drivers/acpi/ec.c status = acpi_ec_query(ec, &value); ec 514 drivers/acpi/ec.c static void acpi_ec_enable_event(struct acpi_ec *ec) ec 518 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 519 drivers/acpi/ec.c if (acpi_ec_started(ec)) ec 520 drivers/acpi/ec.c __acpi_ec_enable_event(ec); ec 521 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 525 drivers/acpi/ec.c acpi_ec_clear(ec); ec 535 drivers/acpi/ec.c static void acpi_ec_disable_event(struct acpi_ec *ec) ec 539 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 540 drivers/acpi/ec.c __acpi_ec_disable_event(ec); ec 541 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 560 drivers/acpi/ec.c static bool acpi_ec_guard_event(struct acpi_ec *ec) ec 565 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 582 drivers/acpi/ec.c !test_bit(EC_FLAGS_QUERY_PENDING, &ec->flags) || ec 583 drivers/acpi/ec.c (ec->curr && ec->curr->command == ACPI_EC_COMMAND_QUERY)) ec 585 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 589 drivers/acpi/ec.c static int ec_transaction_polled(struct acpi_ec *ec) ec 594 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 595 drivers/acpi/ec.c if (ec->curr && (ec->curr->flags & ACPI_EC_COMMAND_POLL)) ec 597 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 601 drivers/acpi/ec.c static int ec_transaction_completed(struct acpi_ec *ec) ec 606 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 607 drivers/acpi/ec.c if (ec->curr && (ec->curr->flags & ACPI_EC_COMMAND_COMPLETE)) ec 609 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 613 drivers/acpi/ec.c static inline void ec_transaction_transition(struct acpi_ec *ec, unsigned long flag) ec 615 drivers/acpi/ec.c ec->curr->flags |= flag; ec 616 drivers/acpi/ec.c if (ec->curr->command == ACPI_EC_COMMAND_QUERY) { ec 619 drivers/acpi/ec.c acpi_ec_complete_query(ec); ec 622 drivers/acpi/ec.c acpi_ec_complete_query(ec); ec 625 drivers/acpi/ec.c set_bit(EC_FLAGS_QUERY_GUARDING, &ec->flags); ec 629 drivers/acpi/ec.c static void advance_transaction(struct acpi_ec *ec) ec 642 drivers/acpi/ec.c acpi_ec_clear_gpe(ec); ec 643 drivers/acpi/ec.c status = acpi_ec_read_status(ec); ec 644 drivers/acpi/ec.c t = ec->curr; ec 651 drivers/acpi/ec.c (!ec->nr_pending_queries || ec 652 drivers/acpi/ec.c test_bit(EC_FLAGS_QUERY_GUARDING, &ec->flags))) { ec 653 drivers/acpi/ec.c clear_bit(EC_FLAGS_QUERY_GUARDING, &ec->flags); ec 654 drivers/acpi/ec.c acpi_ec_complete_query(ec); ec 662 drivers/acpi/ec.c acpi_ec_write_data(ec, t->wdata[t->wi++]); ec 667 drivers/acpi/ec.c t->rdata[t->ri++] = acpi_ec_read_data(ec); ec 669 drivers/acpi/ec.c ec_transaction_transition(ec, ACPI_EC_COMMAND_COMPLETE); ec 679 drivers/acpi/ec.c ec_transaction_transition(ec, ACPI_EC_COMMAND_COMPLETE); ec 687 drivers/acpi/ec.c ec_transaction_transition(ec, ACPI_EC_COMMAND_POLL); ec 689 drivers/acpi/ec.c ec_transaction_transition(ec, ACPI_EC_COMMAND_COMPLETE); ec 694 drivers/acpi/ec.c acpi_ec_write_cmd(ec, t->command); ec 695 drivers/acpi/ec.c ec_transaction_transition(ec, ACPI_EC_COMMAND_POLL); ec 711 drivers/acpi/ec.c acpi_ec_mask_gpe(ec); ec 716 drivers/acpi/ec.c acpi_ec_submit_query(ec); ec 718 drivers/acpi/ec.c wake_up(&ec->wait); ec 721 drivers/acpi/ec.c static void start_transaction(struct acpi_ec *ec) ec 723 drivers/acpi/ec.c ec->curr->irq_count = ec->curr->wi = ec->curr->ri = 0; ec 724 drivers/acpi/ec.c ec->curr->flags = 0; ec 727 drivers/acpi/ec.c static int ec_guard(struct acpi_ec *ec) ec 729 drivers/acpi/ec.c unsigned long guard = usecs_to_jiffies(ec->polling_guard); ec 730 drivers/acpi/ec.c unsigned long timeout = ec->timestamp + guard; ec 734 drivers/acpi/ec.c if (ec->busy_polling) { ec 736 drivers/acpi/ec.c if (ec_transaction_completed(ec)) ec 750 drivers/acpi/ec.c if (!ec_transaction_polled(ec) && ec 751 drivers/acpi/ec.c !acpi_ec_guard_event(ec)) ec 753 drivers/acpi/ec.c if (wait_event_timeout(ec->wait, ec 754 drivers/acpi/ec.c ec_transaction_completed(ec), ec 762 drivers/acpi/ec.c static int ec_poll(struct acpi_ec *ec) ec 771 drivers/acpi/ec.c if (!ec_guard(ec)) ec 773 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 774 drivers/acpi/ec.c advance_transaction(ec); ec 775 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 778 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 779 drivers/acpi/ec.c start_transaction(ec); ec 780 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 785 drivers/acpi/ec.c static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, ec 792 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, tmp); ec 794 drivers/acpi/ec.c if (!acpi_ec_submit_flushable_request(ec)) { ec 798 drivers/acpi/ec.c ec_dbg_ref(ec, "Increase command"); ec 800 drivers/acpi/ec.c ec->curr = t; ec 802 drivers/acpi/ec.c start_transaction(ec); ec 803 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, tmp); ec 805 drivers/acpi/ec.c ret = ec_poll(ec); ec 807 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, tmp); ec 809 drivers/acpi/ec.c acpi_ec_unmask_gpe(ec); ec 811 drivers/acpi/ec.c ec->curr = NULL; ec 813 drivers/acpi/ec.c acpi_ec_complete_request(ec); ec 814 drivers/acpi/ec.c ec_dbg_ref(ec, "Decrease command"); ec 816 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, tmp); ec 820 drivers/acpi/ec.c static int acpi_ec_transaction(struct acpi_ec *ec, struct transaction *t) ec 825 drivers/acpi/ec.c if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata)) ec 830 drivers/acpi/ec.c mutex_lock(&ec->mutex); ec 831 drivers/acpi/ec.c if (ec->global_lock) { ec 839 drivers/acpi/ec.c status = acpi_ec_transaction_unlocked(ec, t); ec 841 drivers/acpi/ec.c if (ec->global_lock) ec 844 drivers/acpi/ec.c mutex_unlock(&ec->mutex); ec 848 drivers/acpi/ec.c static int acpi_ec_burst_enable(struct acpi_ec *ec) ec 855 drivers/acpi/ec.c return acpi_ec_transaction(ec, &t); ec 858 drivers/acpi/ec.c static int acpi_ec_burst_disable(struct acpi_ec *ec) ec 864 drivers/acpi/ec.c return (acpi_ec_read_status(ec) & ACPI_EC_FLAG_BURST) ? ec 865 drivers/acpi/ec.c acpi_ec_transaction(ec, &t) : 0; ec 868 drivers/acpi/ec.c static int acpi_ec_read(struct acpi_ec *ec, u8 address, u8 *data) ec 876 drivers/acpi/ec.c result = acpi_ec_transaction(ec, &t); ec 881 drivers/acpi/ec.c static int acpi_ec_write(struct acpi_ec *ec, u8 address, u8 data) ec 888 drivers/acpi/ec.c return acpi_ec_transaction(ec, &t); ec 946 drivers/acpi/ec.c static void acpi_ec_start(struct acpi_ec *ec, bool resuming) ec 950 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 951 drivers/acpi/ec.c if (!test_and_set_bit(EC_FLAGS_STARTED, &ec->flags)) { ec 955 drivers/acpi/ec.c acpi_ec_submit_request(ec); ec 956 drivers/acpi/ec.c ec_dbg_ref(ec, "Increase driver"); ec 960 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 963 drivers/acpi/ec.c static bool acpi_ec_stopped(struct acpi_ec *ec) ec 968 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 969 drivers/acpi/ec.c flushed = acpi_ec_flushed(ec); ec 970 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 974 drivers/acpi/ec.c static void acpi_ec_stop(struct acpi_ec *ec, bool suspending) ec 978 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 979 drivers/acpi/ec.c if (acpi_ec_started(ec)) { ec 981 drivers/acpi/ec.c set_bit(EC_FLAGS_STOPPED, &ec->flags); ec 982 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 983 drivers/acpi/ec.c wait_event(ec->wait, acpi_ec_stopped(ec)); ec 984 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 987 drivers/acpi/ec.c acpi_ec_complete_request(ec); ec 988 drivers/acpi/ec.c ec_dbg_ref(ec, "Decrease driver"); ec 990 drivers/acpi/ec.c __acpi_ec_disable_event(ec); ec 991 drivers/acpi/ec.c clear_bit(EC_FLAGS_STARTED, &ec->flags); ec 992 drivers/acpi/ec.c clear_bit(EC_FLAGS_STOPPED, &ec->flags); ec 995 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 998 drivers/acpi/ec.c static void acpi_ec_enter_noirq(struct acpi_ec *ec) ec 1002 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 1003 drivers/acpi/ec.c ec->busy_polling = true; ec 1004 drivers/acpi/ec.c ec->polling_guard = 0; ec 1006 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 1009 drivers/acpi/ec.c static void acpi_ec_leave_noirq(struct acpi_ec *ec) ec 1013 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 1014 drivers/acpi/ec.c ec->busy_polling = ec_busy_polling; ec 1015 drivers/acpi/ec.c ec->polling_guard = ec_polling_guard; ec 1017 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 1022 drivers/acpi/ec.c struct acpi_ec *ec = first_ec; ec 1024 drivers/acpi/ec.c if (!ec) ec 1027 drivers/acpi/ec.c mutex_lock(&ec->mutex); ec 1029 drivers/acpi/ec.c acpi_ec_stop(ec, true); ec 1030 drivers/acpi/ec.c mutex_unlock(&ec->mutex); ec 1055 drivers/acpi/ec.c acpi_ec_get_query_handler_by_value(struct acpi_ec *ec, u8 value) ec 1060 drivers/acpi/ec.c mutex_lock(&ec->mutex); ec 1061 drivers/acpi/ec.c list_for_each_entry(handler, &ec->list, node) { ec 1067 drivers/acpi/ec.c mutex_unlock(&ec->mutex); ec 1084 drivers/acpi/ec.c int acpi_ec_add_query_handler(struct acpi_ec *ec, u8 query_bit, ec 1098 drivers/acpi/ec.c mutex_lock(&ec->mutex); ec 1100 drivers/acpi/ec.c list_add(&handler->node, &ec->list); ec 1101 drivers/acpi/ec.c mutex_unlock(&ec->mutex); ec 1106 drivers/acpi/ec.c static void acpi_ec_remove_query_handlers(struct acpi_ec *ec, ec 1112 drivers/acpi/ec.c mutex_lock(&ec->mutex); ec 1113 drivers/acpi/ec.c list_for_each_entry_safe(handler, tmp, &ec->list, node) { ec 1119 drivers/acpi/ec.c mutex_unlock(&ec->mutex); ec 1124 drivers/acpi/ec.c void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit) ec 1126 drivers/acpi/ec.c acpi_ec_remove_query_handlers(ec, false, query_bit); ec 1169 drivers/acpi/ec.c static int acpi_ec_query(struct acpi_ec *ec, u8 *data) ec 1184 drivers/acpi/ec.c result = acpi_ec_transaction(ec, &q->transaction); ec 1190 drivers/acpi/ec.c q->handler = acpi_ec_get_query_handler_by_value(ec, value); ec 1219 drivers/acpi/ec.c static void acpi_ec_check_event(struct acpi_ec *ec) ec 1224 drivers/acpi/ec.c if (ec_guard(ec)) { ec 1225 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 1230 drivers/acpi/ec.c if (!ec->curr) ec 1231 drivers/acpi/ec.c advance_transaction(ec); ec 1232 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 1240 drivers/acpi/ec.c struct acpi_ec *ec = container_of(work, struct acpi_ec, work); ec 1244 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 1245 drivers/acpi/ec.c while (ec->nr_pending_queries) { ec 1246 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 1247 drivers/acpi/ec.c (void)acpi_ec_query(ec, NULL); ec 1248 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 1249 drivers/acpi/ec.c ec->nr_pending_queries--; ec 1256 drivers/acpi/ec.c if (!ec->nr_pending_queries) { ec 1259 drivers/acpi/ec.c acpi_ec_complete_query(ec); ec 1262 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 1266 drivers/acpi/ec.c acpi_ec_check_event(ec); ec 1273 drivers/acpi/ec.c struct acpi_ec *ec = data; ec 1275 drivers/acpi/ec.c spin_lock_irqsave(&ec->lock, flags); ec 1276 drivers/acpi/ec.c advance_transaction(ec); ec 1277 drivers/acpi/ec.c spin_unlock_irqrestore(&ec->lock, flags); ec 1290 drivers/acpi/ec.c struct acpi_ec *ec = handler_context; ec 1300 drivers/acpi/ec.c if (ec->busy_polling || bits > 8) ec 1301 drivers/acpi/ec.c acpi_ec_burst_enable(ec); ec 1305 drivers/acpi/ec.c acpi_ec_read(ec, address, value) : ec 1306 drivers/acpi/ec.c acpi_ec_write(ec, address, *value); ec 1308 drivers/acpi/ec.c if (ec->busy_polling || bits > 8) ec 1309 drivers/acpi/ec.c acpi_ec_burst_disable(ec); ec 1330 drivers/acpi/ec.c static void acpi_ec_free(struct acpi_ec *ec) ec 1332 drivers/acpi/ec.c if (first_ec == ec) ec 1334 drivers/acpi/ec.c if (boot_ec == ec) ec 1336 drivers/acpi/ec.c kfree(ec); ec 1341 drivers/acpi/ec.c struct acpi_ec *ec = kzalloc(sizeof(struct acpi_ec), GFP_KERNEL); ec 1343 drivers/acpi/ec.c if (!ec) ec 1345 drivers/acpi/ec.c mutex_init(&ec->mutex); ec 1346 drivers/acpi/ec.c init_waitqueue_head(&ec->wait); ec 1347 drivers/acpi/ec.c INIT_LIST_HEAD(&ec->list); ec 1348 drivers/acpi/ec.c spin_lock_init(&ec->lock); ec 1349 drivers/acpi/ec.c INIT_WORK(&ec->work, acpi_ec_event_handler); ec 1350 drivers/acpi/ec.c ec->timestamp = jiffies; ec 1351 drivers/acpi/ec.c ec->busy_polling = true; ec 1352 drivers/acpi/ec.c ec->polling_guard = 0; ec 1353 drivers/acpi/ec.c return ec; ec 1362 drivers/acpi/ec.c struct acpi_ec *ec = context; ec 1369 drivers/acpi/ec.c acpi_ec_add_query_handler(ec, value, handle, NULL, NULL); ec 1378 drivers/acpi/ec.c struct acpi_ec *ec = context; ec 1381 drivers/acpi/ec.c ec->command_addr = ec->data_addr = 0; ec 1384 drivers/acpi/ec.c ec_parse_io_ports, ec); ec 1387 drivers/acpi/ec.c if (ec->data_addr == 0 || ec->command_addr == 0) ec 1395 drivers/acpi/ec.c ec->gpe = boot_ec->gpe; ec 1402 drivers/acpi/ec.c ec->gpe = tmp; ec 1407 drivers/acpi/ec.c ec->global_lock = tmp; ec 1408 drivers/acpi/ec.c ec->handle = handle; ec 1417 drivers/acpi/ec.c static int ec_install_handlers(struct acpi_ec *ec, bool handle_events) ec 1421 drivers/acpi/ec.c acpi_ec_start(ec, false); ec 1423 drivers/acpi/ec.c if (!test_bit(EC_FLAGS_EC_HANDLER_INSTALLED, &ec->flags)) { ec 1424 drivers/acpi/ec.c acpi_ec_enter_noirq(ec); ec 1425 drivers/acpi/ec.c status = acpi_install_address_space_handler(ec->handle, ec 1428 drivers/acpi/ec.c NULL, ec); ec 1440 drivers/acpi/ec.c acpi_ec_stop(ec, false); ec 1444 drivers/acpi/ec.c set_bit(EC_FLAGS_EC_HANDLER_INSTALLED, &ec->flags); ec 1450 drivers/acpi/ec.c if (!test_bit(EC_FLAGS_EVT_HANDLER_INSTALLED, &ec->flags)) { ec 1452 drivers/acpi/ec.c acpi_walk_namespace(ACPI_TYPE_METHOD, ec->handle, 1, ec 1454 drivers/acpi/ec.c NULL, ec, NULL); ec 1455 drivers/acpi/ec.c set_bit(EC_FLAGS_EVT_HANDLER_INSTALLED, &ec->flags); ec 1457 drivers/acpi/ec.c if (!test_bit(EC_FLAGS_GPE_HANDLER_INSTALLED, &ec->flags)) { ec 1458 drivers/acpi/ec.c status = acpi_install_gpe_raw_handler(NULL, ec->gpe, ec 1460 drivers/acpi/ec.c &acpi_ec_gpe_handler, ec); ec 1463 drivers/acpi/ec.c set_bit(EC_FLAGS_GPE_HANDLER_INSTALLED, &ec->flags); ec 1464 drivers/acpi/ec.c acpi_ec_leave_noirq(ec); ec 1465 drivers/acpi/ec.c if (test_bit(EC_FLAGS_STARTED, &ec->flags) && ec 1466 drivers/acpi/ec.c ec->reference_count >= 1) ec 1467 drivers/acpi/ec.c acpi_ec_enable_gpe(ec, true); ec 1471 drivers/acpi/ec.c acpi_ec_enable_event(ec); ec 1476 drivers/acpi/ec.c static void ec_remove_handlers(struct acpi_ec *ec) ec 1478 drivers/acpi/ec.c if (test_bit(EC_FLAGS_EC_HANDLER_INSTALLED, &ec->flags)) { ec 1479 drivers/acpi/ec.c if (ACPI_FAILURE(acpi_remove_address_space_handler(ec->handle, ec 1482 drivers/acpi/ec.c clear_bit(EC_FLAGS_EC_HANDLER_INSTALLED, &ec->flags); ec 1496 drivers/acpi/ec.c acpi_ec_stop(ec, false); ec 1498 drivers/acpi/ec.c if (test_bit(EC_FLAGS_GPE_HANDLER_INSTALLED, &ec->flags)) { ec 1499 drivers/acpi/ec.c if (ACPI_FAILURE(acpi_remove_gpe_handler(NULL, ec->gpe, ec 1502 drivers/acpi/ec.c clear_bit(EC_FLAGS_GPE_HANDLER_INSTALLED, &ec->flags); ec 1504 drivers/acpi/ec.c if (test_bit(EC_FLAGS_EVT_HANDLER_INSTALLED, &ec->flags)) { ec 1505 drivers/acpi/ec.c acpi_ec_remove_query_handlers(ec, true, 0); ec 1506 drivers/acpi/ec.c clear_bit(EC_FLAGS_EVT_HANDLER_INSTALLED, &ec->flags); ec 1510 drivers/acpi/ec.c static int acpi_ec_setup(struct acpi_ec *ec, bool handle_events) ec 1514 drivers/acpi/ec.c ret = ec_install_handlers(ec, handle_events); ec 1520 drivers/acpi/ec.c first_ec = ec; ec 1524 drivers/acpi/ec.c acpi_handle_info(ec->handle, ec 1526 drivers/acpi/ec.c ec->gpe, ec->command_addr, ec->data_addr); ec 1551 drivers/acpi/ec.c struct acpi_ec *ec = NULL; ec 1561 drivers/acpi/ec.c ec = boot_ec; ec 1564 drivers/acpi/ec.c ec = acpi_ec_alloc(); ec 1565 drivers/acpi/ec.c if (!ec) ec 1568 drivers/acpi/ec.c status = ec_parse_device(device->handle, 0, ec, NULL); ec 1574 drivers/acpi/ec.c if (boot_ec && ec->command_addr == boot_ec->command_addr && ec 1575 drivers/acpi/ec.c ec->data_addr == boot_ec->data_addr) { ec 1583 drivers/acpi/ec.c boot_ec->handle = ec->handle; ec 1584 drivers/acpi/ec.c acpi_handle_debug(ec->handle, "duplicated.\n"); ec 1585 drivers/acpi/ec.c acpi_ec_free(ec); ec 1586 drivers/acpi/ec.c ec = boot_ec; ec 1590 drivers/acpi/ec.c ret = acpi_ec_setup(ec, true); ec 1594 drivers/acpi/ec.c if (ec == boot_ec) ec 1599 drivers/acpi/ec.c device->driver_data = ec; ec 1601 drivers/acpi/ec.c ret = !!request_region(ec->data_addr, 1, "EC data"); ec 1602 drivers/acpi/ec.c WARN(!ret, "Could not request EC data io port 0x%lx", ec->data_addr); ec 1603 drivers/acpi/ec.c ret = !!request_region(ec->command_addr, 1, "EC cmd"); ec 1604 drivers/acpi/ec.c WARN(!ret, "Could not request EC cmd io port 0x%lx", ec->command_addr); ec 1608 drivers/acpi/ec.c acpi_walk_dep_device_list(ec->handle); ec 1610 drivers/acpi/ec.c acpi_handle_debug(ec->handle, "enumerated.\n"); ec 1614 drivers/acpi/ec.c if (ec != boot_ec) ec 1615 drivers/acpi/ec.c acpi_ec_remove_query_handlers(ec, true, 0); ec 1617 drivers/acpi/ec.c if (ec != boot_ec) ec 1618 drivers/acpi/ec.c acpi_ec_free(ec); ec 1624 drivers/acpi/ec.c struct acpi_ec *ec; ec 1629 drivers/acpi/ec.c ec = acpi_driver_data(device); ec 1630 drivers/acpi/ec.c release_region(ec->data_addr, 1); ec 1631 drivers/acpi/ec.c release_region(ec->command_addr, 1); ec 1633 drivers/acpi/ec.c if (ec != boot_ec) { ec 1634 drivers/acpi/ec.c ec_remove_handlers(ec); ec 1635 drivers/acpi/ec.c acpi_ec_free(ec); ec 1643 drivers/acpi/ec.c struct acpi_ec *ec = context; ec 1653 drivers/acpi/ec.c if (ec->data_addr == 0) ec 1654 drivers/acpi/ec.c ec->data_addr = resource->data.io.minimum; ec 1655 drivers/acpi/ec.c else if (ec->command_addr == 0) ec 1656 drivers/acpi/ec.c ec->command_addr = resource->data.io.minimum; ec 1676 drivers/acpi/ec.c struct acpi_ec *ec; ec 1689 drivers/acpi/ec.c ec = acpi_ec_alloc(); ec 1690 drivers/acpi/ec.c if (!ec) ec 1697 drivers/acpi/ec.c status = acpi_get_devices(ec_device_ids[0].id, ec_parse_device, ec, NULL); ec 1698 drivers/acpi/ec.c if (ACPI_FAILURE(status) || !ec->handle) { ec 1699 drivers/acpi/ec.c acpi_ec_free(ec); ec 1710 drivers/acpi/ec.c ret = acpi_ec_setup(ec, false); ec 1712 drivers/acpi/ec.c acpi_ec_free(ec); ec 1716 drivers/acpi/ec.c boot_ec = ec; ec 1718 drivers/acpi/ec.c acpi_handle_info(ec->handle, ec 1853 drivers/acpi/ec.c struct acpi_ec *ec; ec 1872 drivers/acpi/ec.c ec = acpi_ec_alloc(); ec 1873 drivers/acpi/ec.c if (!ec) ec 1877 drivers/acpi/ec.c ec->command_addr = ecdt_ptr->data.address; ec 1878 drivers/acpi/ec.c ec->data_addr = ecdt_ptr->control.address; ec 1880 drivers/acpi/ec.c ec->command_addr = ecdt_ptr->control.address; ec 1881 drivers/acpi/ec.c ec->data_addr = ecdt_ptr->data.address; ec 1883 drivers/acpi/ec.c ec->gpe = ecdt_ptr->gpe; ec 1884 drivers/acpi/ec.c ec->handle = ACPI_ROOT_OBJECT; ec 1890 drivers/acpi/ec.c ret = acpi_ec_setup(ec, false); ec 1892 drivers/acpi/ec.c acpi_ec_free(ec); ec 1896 drivers/acpi/ec.c boot_ec = ec; ec 1905 drivers/acpi/ec.c struct acpi_ec *ec = ec 1909 drivers/acpi/ec.c acpi_ec_disable_event(ec); ec 1915 drivers/acpi/ec.c struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev)); ec 1921 drivers/acpi/ec.c if (ec_no_wakeup && test_bit(EC_FLAGS_STARTED, &ec->flags) && ec 1922 drivers/acpi/ec.c ec->reference_count >= 1) ec 1923 drivers/acpi/ec.c acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE); ec 1925 drivers/acpi/ec.c acpi_ec_enter_noirq(ec); ec 1932 drivers/acpi/ec.c struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev)); ec 1934 drivers/acpi/ec.c acpi_ec_leave_noirq(ec); ec 1936 drivers/acpi/ec.c if (ec_no_wakeup && test_bit(EC_FLAGS_STARTED, &ec->flags) && ec 1937 drivers/acpi/ec.c ec->reference_count >= 1) ec 1938 drivers/acpi/ec.c acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE); ec 1945 drivers/acpi/ec.c struct acpi_ec *ec = ec 1948 drivers/acpi/ec.c acpi_ec_enable_event(ec); ec 110 drivers/acpi/ec_sys.c static void acpi_ec_add_debugfs(struct acpi_ec *ec, unsigned int ec_device_count) ec 128 drivers/acpi/ec_sys.c debugfs_create_file("io", mode, dev_dir, ec, &acpi_ec_io_ops); ec 197 drivers/acpi/internal.h int acpi_ec_add_query_handler(struct acpi_ec *ec, u8 query_bit, ec 200 drivers/acpi/internal.h void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit); ec 22 drivers/acpi/sbshc.c struct acpi_ec *ec; ec 242 drivers/acpi/sbshc.c extern int acpi_ec_add_query_handler(struct acpi_ec *ec, u8 query_bit, ec 270 drivers/acpi/sbshc.c hc->ec = acpi_driver_data(device->parent); ec 275 drivers/acpi/sbshc.c acpi_ec_add_query_handler(hc->ec, hc->query_bit, NULL, smbus_alarm, hc); ec 282 drivers/acpi/sbshc.c extern void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit); ec 292 drivers/acpi/sbshc.c acpi_ec_remove_query_handler(hc->ec, hc->query_bit); ec 64 drivers/ata/pata_icside.c struct expansion_card *ec; ec 86 drivers/ata/pata_icside.c static void pata_icside_irqenable_arcin_v5 (struct expansion_card *ec, int irqnr) ec 88 drivers/ata/pata_icside.c struct pata_icside_state *state = ec->irq_data; ec 96 drivers/ata/pata_icside.c static void pata_icside_irqdisable_arcin_v5 (struct expansion_card *ec, int irqnr) ec 98 drivers/ata/pata_icside.c struct pata_icside_state *state = ec->irq_data; ec 113 drivers/ata/pata_icside.c static void pata_icside_irqenable_arcin_v6 (struct expansion_card *ec, int irqnr) ec 115 drivers/ata/pata_icside.c struct pata_icside_state *state = ec->irq_data; ec 127 drivers/ata/pata_icside.c static void pata_icside_irqdisable_arcin_v6 (struct expansion_card *ec, int irqnr) ec 129 drivers/ata/pata_icside.c struct pata_icside_state *state = ec->irq_data; ec 138 drivers/ata/pata_icside.c static int pata_icside_irqpending_arcin_v6(struct expansion_card *ec) ec 140 drivers/ata/pata_icside.c struct pata_icside_state *state = ec->irq_data; ec 279 drivers/ata/pata_icside.c struct expansion_card *ec = info->ec; ec 287 drivers/ata/pata_icside.c if (ec->dma != NO_DMA && !request_dma(ec->dma, DRV_NAME)) { ec 288 drivers/ata/pata_icside.c state->dma = ec->dma; ec 376 drivers/ata/pata_icside.c base = ecardm_iomap(info->ec, ECARD_RES_MEMC, 0, 0); ec 389 drivers/ata/pata_icside.c info->raw_base = ecard_resource_start(info->ec, ECARD_RES_MEMC); ec 397 drivers/ata/pata_icside.c struct expansion_card *ec = info->ec; ec 401 drivers/ata/pata_icside.c ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); ec 407 drivers/ata/pata_icside.c if (ecard_resource_flags(ec, ECARD_RES_EASI)) { ec 408 drivers/ata/pata_icside.c easi_base = ecardm_iomap(ec, ECARD_RES_EASI, 0, 0); ec 431 drivers/ata/pata_icside.c info->raw_base = ecard_resource_start(ec, ECARD_RES_EASI); ec 432 drivers/ata/pata_icside.c info->raw_ioc_base = ecard_resource_start(ec, ECARD_RES_IOCFAST); ec 439 drivers/ata/pata_icside.c struct expansion_card *ec = info->ec; ec 444 drivers/ata/pata_icside.c ec->irqaddr = info->irqaddr; ec 445 drivers/ata/pata_icside.c ec->irqmask = info->irqmask; ec 448 drivers/ata/pata_icside.c ecard_setirq(ec, info->irqops, info->state); ec 453 drivers/ata/pata_icside.c ec->ops->irqdisable(ec, ec->irq); ec 455 drivers/ata/pata_icside.c host = ata_host_alloc(&ec->dev, info->nr_ports); ec 473 drivers/ata/pata_icside.c return ata_host_activate(host, ec->irq, ata_bmdma_interrupt, 0, ec 477 drivers/ata/pata_icside.c static int pata_icside_probe(struct expansion_card *ec, ec 485 drivers/ata/pata_icside.c ret = ecard_request_resources(ec); ec 489 drivers/ata/pata_icside.c state = devm_kzalloc(&ec->dev, sizeof(*state), GFP_KERNEL); ec 498 drivers/ata/pata_icside.c idmem = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); ec 506 drivers/ata/pata_icside.c ecardm_iounmap(ec, idmem); ec 513 drivers/ata/pata_icside.c info.ec = ec; ec 517 drivers/ata/pata_icside.c dev_warn(&ec->dev, "A3IN unsupported\n"); ec 522 drivers/ata/pata_icside.c dev_warn(&ec->dev, "A3USER unsupported\n"); ec 535 drivers/ata/pata_icside.c dev_warn(&ec->dev, "unknown interface type\n"); ec 547 drivers/ata/pata_icside.c ecard_release_resources(ec); ec 552 drivers/ata/pata_icside.c static void pata_icside_shutdown(struct expansion_card *ec) ec 554 drivers/ata/pata_icside.c struct ata_host *host = ecard_get_drvdata(ec); ec 563 drivers/ata/pata_icside.c ec->ops->irqdisable(ec, ec->irq); ec 578 drivers/ata/pata_icside.c static void pata_icside_remove(struct expansion_card *ec) ec 580 drivers/ata/pata_icside.c struct ata_host *host = ecard_get_drvdata(ec); ec 585 drivers/ata/pata_icside.c pata_icside_shutdown(ec); ec 594 drivers/ata/pata_icside.c ecard_release_resources(ec); ec 2678 drivers/ata/sata_mv.c u32 ec = edma_err_cause & ec 2681 drivers/ata/sata_mv.c if (!ec) ec 111 drivers/atm/eni.c static int ec = 0; ec 116 drivers/atm/eni.c ev[ec] = s; ec 117 drivers/atm/eni.c ev_a[ec] = a; ec 118 drivers/atm/eni.c ev_b[ec] = b; ec 119 drivers/atm/eni.c ec = (ec+1) % EV; ec 128 drivers/atm/eni.c i = (ec+n) % EV; ec 91 drivers/atm/zatm.c static int ec = 0; ec 96 drivers/atm/zatm.c ev[ec] = s; ec 97 drivers/atm/zatm.c ev_a[ec] = a; ec 98 drivers/atm/zatm.c ev_b[ec] = b; ec 99 drivers/atm/zatm.c ec = (ec+1) % EV; ec 109 drivers/atm/zatm.c i = (ec+n) % EV; ec 161 drivers/bluetooth/btmrvl_drv.h u8 ec; /* event counter */ ec 59 drivers/bluetooth/btmrvl_main.c struct hci_ev_cmd_complete *ec; ec 62 drivers/bluetooth/btmrvl_main.c ec = (void *) (skb->data + HCI_EVENT_HDR_SIZE); ec 63 drivers/bluetooth/btmrvl_main.c opcode = __le16_to_cpu(ec->opcode); ec 90 drivers/bluetooth/btmrvl_main.c if (event->ec != 0xff) { ec 91 drivers/bluetooth/btmrvl_main.c BT_DBG("Not Marvell Event=%x", event->ec); ec 2548 drivers/edac/amd64_edac.c u16 ec = EC(m->status); ec 2559 drivers/edac/amd64_edac.c if (PP(ec) == NBSL_PP_OBS) ec 401 drivers/edac/mce_amd.c static bool f12h_mc0_mce(u16 ec, u8 xec) ec 405 drivers/edac/mce_amd.c if (MEM_ERROR(ec)) { ec 406 drivers/edac/mce_amd.c u8 ll = LL(ec); ec 412 drivers/edac/mce_amd.c pr_cont("Data/Tag %s error.\n", R4_MSG(ec)); ec 419 drivers/edac/mce_amd.c static bool f10h_mc0_mce(u16 ec, u8 xec) ec 421 drivers/edac/mce_amd.c if (R4(ec) == R4_GEN && LL(ec) == LL_L1) { ec 425 drivers/edac/mce_amd.c return f12h_mc0_mce(ec, xec); ec 428 drivers/edac/mce_amd.c static bool k8_mc0_mce(u16 ec, u8 xec) ec 430 drivers/edac/mce_amd.c if (BUS_ERROR(ec)) { ec 435 drivers/edac/mce_amd.c return f10h_mc0_mce(ec, xec); ec 438 drivers/edac/mce_amd.c static bool cat_mc0_mce(u16 ec, u8 xec) ec 440 drivers/edac/mce_amd.c u8 r4 = R4(ec); ec 443 drivers/edac/mce_amd.c if (MEM_ERROR(ec)) { ec 445 drivers/edac/mce_amd.c if (TT(ec) != TT_DATA || LL(ec) != LL_L1) ec 463 drivers/edac/mce_amd.c } else if (BUS_ERROR(ec)) { ec 465 drivers/edac/mce_amd.c if ((II(ec) != II_MEM && II(ec) != II_IO) || LL(ec) != LL_LG) ec 490 drivers/edac/mce_amd.c static bool f15h_mc0_mce(u16 ec, u8 xec) ec 494 drivers/edac/mce_amd.c if (MEM_ERROR(ec)) { ec 525 drivers/edac/mce_amd.c } else if (BUS_ERROR(ec)) { ec 531 drivers/edac/mce_amd.c } else if (INT_ERROR(ec)) { ec 545 drivers/edac/mce_amd.c u16 ec = EC(m->status); ec 551 drivers/edac/mce_amd.c if (TLB_ERROR(ec)) { ec 552 drivers/edac/mce_amd.c if (TT(ec) == TT_DATA) { ec 553 drivers/edac/mce_amd.c pr_cont("%s TLB %s.\n", LL_MSG(ec), ec 558 drivers/edac/mce_amd.c } else if (fam_ops->mc0_mce(ec, xec)) ec 564 drivers/edac/mce_amd.c static bool k8_mc1_mce(u16 ec, u8 xec) ec 566 drivers/edac/mce_amd.c u8 ll = LL(ec); ec 569 drivers/edac/mce_amd.c if (!MEM_ERROR(ec)) ec 575 drivers/edac/mce_amd.c switch (R4(ec)) { ec 598 drivers/edac/mce_amd.c static bool cat_mc1_mce(u16 ec, u8 xec) ec 600 drivers/edac/mce_amd.c u8 r4 = R4(ec); ec 603 drivers/edac/mce_amd.c if (!MEM_ERROR(ec)) ec 606 drivers/edac/mce_amd.c if (TT(ec) != TT_INSTR) ec 623 drivers/edac/mce_amd.c static bool f15h_mc1_mce(u16 ec, u8 xec) ec 627 drivers/edac/mce_amd.c if (!MEM_ERROR(ec)) ec 655 drivers/edac/mce_amd.c u16 ec = EC(m->status); ec 660 drivers/edac/mce_amd.c if (TLB_ERROR(ec)) ec 661 drivers/edac/mce_amd.c pr_cont("%s TLB %s.\n", LL_MSG(ec), ec 663 drivers/edac/mce_amd.c else if (BUS_ERROR(ec)) { ec 667 drivers/edac/mce_amd.c } else if (INT_ERROR(ec)) { ec 672 drivers/edac/mce_amd.c } else if (fam_ops->mc1_mce(ec, xec)) ec 683 drivers/edac/mce_amd.c static bool k8_mc2_mce(u16 ec, u8 xec) ec 691 drivers/edac/mce_amd.c else if (xec == 0x2 && MEM_ERROR(ec)) ec 692 drivers/edac/mce_amd.c pr_cont(": %s error in the L2 cache tags.\n", R4_MSG(ec)); ec 694 drivers/edac/mce_amd.c if (TLB_ERROR(ec)) ec 696 drivers/edac/mce_amd.c TT_MSG(ec)); ec 697 drivers/edac/mce_amd.c else if (BUS_ERROR(ec)) ec 699 drivers/edac/mce_amd.c R4_MSG(ec), PP_MSG(ec)); ec 700 drivers/edac/mce_amd.c else if (MEM_ERROR(ec)) { ec 701 drivers/edac/mce_amd.c u8 r4 = R4(ec); ec 705 drivers/edac/mce_amd.c R4_MSG(ec)); ec 708 drivers/edac/mce_amd.c "access from L2.\n", R4_MSG(ec)); ec 719 drivers/edac/mce_amd.c static bool f15h_mc2_mce(u16 ec, u8 xec) ec 723 drivers/edac/mce_amd.c if (TLB_ERROR(ec)) { ec 730 drivers/edac/mce_amd.c } else if (BUS_ERROR(ec)) { ec 735 drivers/edac/mce_amd.c } else if (MEM_ERROR(ec)) { ec 748 drivers/edac/mce_amd.c } else if (INT_ERROR(ec)) { ec 758 drivers/edac/mce_amd.c static bool f16h_mc2_mce(u16 ec, u8 xec) ec 760 drivers/edac/mce_amd.c u8 r4 = R4(ec); ec 762 drivers/edac/mce_amd.c if (!MEM_ERROR(ec)) ec 801 drivers/edac/mce_amd.c u16 ec = EC(m->status); ec 806 drivers/edac/mce_amd.c if (!fam_ops->mc2_mce(ec, xec)) ec 812 drivers/edac/mce_amd.c u16 ec = EC(m->status); ec 824 drivers/edac/mce_amd.c u8 r4 = R4(ec); ec 826 drivers/edac/mce_amd.c if (!BUS_ERROR(ec) || (r4 != R4_DRD && r4 != R4_DWR)) ec 829 drivers/edac/mce_amd.c pr_cont(" during %s.\n", R4_MSG(ec)); ec 843 drivers/edac/mce_amd.c u16 ec = EC(m->status); ec 867 drivers/edac/mce_amd.c if (TLB_ERROR(ec)) ec 869 drivers/edac/mce_amd.c else if (BUS_ERROR(ec)) ec 900 drivers/edac/mce_amd.c u16 ec = EC(m->status); ec 908 drivers/edac/mce_amd.c if (INT_ERROR(ec)) { ec 981 drivers/edac/mce_amd.c static inline void amd_decode_err_code(u16 ec) ec 983 drivers/edac/mce_amd.c if (INT_ERROR(ec)) { ec 984 drivers/edac/mce_amd.c pr_emerg(HW_ERR "internal: %s\n", UU_MSG(ec)); ec 988 drivers/edac/mce_amd.c pr_emerg(HW_ERR "cache level: %s", LL_MSG(ec)); ec 990 drivers/edac/mce_amd.c if (BUS_ERROR(ec)) ec 991 drivers/edac/mce_amd.c pr_cont(", mem/io: %s", II_MSG(ec)); ec 993 drivers/edac/mce_amd.c pr_cont(", tx: %s", TT_MSG(ec)); ec 995 drivers/edac/mce_amd.c if (MEM_ERROR(ec) || BUS_ERROR(ec)) { ec 996 drivers/edac/mce_amd.c pr_cont(", mem-tx: %s", R4_MSG(ec)); ec 998 drivers/edac/mce_amd.c if (BUS_ERROR(ec)) ec 999 drivers/edac/mce_amd.c pr_cont(", part-proc: %s (%s)", PP_MSG(ec), TO_MSG(ec)); ec 24 drivers/extcon/extcon-usbc-cros-ec.c struct cros_ec_device *ec; ec 83 drivers/extcon/extcon-usbc-cros-ec.c ret = cros_ec_cmd_xfer_status(info->ec, msg); ec 367 drivers/extcon/extcon-usbc-cros-ec.c struct cros_ec_device *ec; ec 371 drivers/extcon/extcon-usbc-cros-ec.c ec = info->ec; ec 373 drivers/extcon/extcon-usbc-cros-ec.c host_event = cros_ec_get_host_event(ec); ec 386 drivers/extcon/extcon-usbc-cros-ec.c struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); ec 396 drivers/extcon/extcon-usbc-cros-ec.c info->ec = ec; ec 461 drivers/extcon/extcon-usbc-cros-ec.c ret = blocking_notifier_chain_register(&info->ec->event_notifier, ec 478 drivers/extcon/extcon-usbc-cros-ec.c blocking_notifier_chain_unregister(&info->ec->event_notifier, ec 487 drivers/extcon/extcon-usbc-cros-ec.c blocking_notifier_chain_unregister(&info->ec->event_notifier, ec 1140 drivers/gpu/drm/amd/amdgpu/amdgpu.h #define amdgpu_asic_set_vce_clocks(adev, ev, ec) (adev)->asic_funcs->set_vce_clocks((adev), (ev), (ec)) ec 623 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c const struct nvkm_enum *ec, *et; ec 626 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c ec = nvkm_enum_find(nv50_disp_intr_error_code, code); ec 630 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c type, et ? et->name : "", code, ec ? ec->name : "", ec 262 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c const struct nvkm_enum *er, *eu, *ec; ec 271 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c ec = nvkm_enum_find(gf100_fifo_fault_hubclient, info->client); ec 273 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c ec = nvkm_enum_find(gf100_fifo_fault_gpcclient, info->client); ec 301 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c info->client, gpcid, ec ? ec->name : "", ec 470 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c const struct nvkm_enum *er, *ee, *ec, *ea; ec 480 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c ec = nvkm_enum_find(fifo->func->fault.hubclient, info->client); ec 482 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c ec = nvkm_enum_find(fifo->func->fault.gpcclient, info->client); ec 526 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c info->client, ct, ec ? ec->name : "", ec 424 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c unsigned int itc, ec, q, sc; ec 445 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c ec = (ptr[2] >> 4) & 0x7; ec 462 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c (itc << 7) | (ec << 4) | (q << 2) | (sc << 0)); ec 2748 drivers/gpu/drm/radeon/radeon.h #define radeon_set_vce_clocks(rdev, ev, ec) (rdev)->asic->pm.set_vce_clocks((rdev), (ev), (ec)) ec 94 drivers/hid/hid-google-hammer.c struct cros_ec_device *ec = _notify; ec 98 drivers/hid/hid-google-hammer.c if (ec->event_data.event_type == EC_MKBP_EVENT_SWITCH) { ec 100 drivers/hid/hid-google-hammer.c &ec->event_data.data.switches); ec 135 drivers/hid/hid-google-hammer.c struct cros_ec_device *ec = dev_get_drvdata(dev->parent); ec 139 drivers/hid/hid-google-hammer.c error = cbas_ec_query_base(ec, true, &base_present); ec 176 drivers/hid/hid-google-hammer.c struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); ec 181 drivers/hid/hid-google-hammer.c error = cbas_ec_query_base(ec, false, &base_supported); ec 205 drivers/hid/hid-google-hammer.c error = cbas_ec_query_base(ec, true, &cbas_ec.base_present); ec 217 drivers/hid/hid-google-hammer.c error = blocking_notifier_chain_register(&ec->event_notifier, ec 249 drivers/hid/hid-google-hammer.c struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); ec 253 drivers/hid/hid-google-hammer.c blocking_notifier_chain_unregister(&ec->event_notifier, ec 1017 drivers/hwmon/asus_atk0110.c union acpi_object *ec; ec 1032 drivers/hwmon/asus_atk0110.c ec = NULL; ec 1045 drivers/hwmon/asus_atk0110.c ec = obj; ec 1050 drivers/hwmon/asus_atk0110.c ret = (ec != NULL); ec 29 drivers/i2c/busses/i2c-cros-ec-tunnel.c struct cros_ec_device *ec; ec 214 drivers/i2c/busses/i2c-cros-ec-tunnel.c result = cros_ec_cmd_xfer_status(bus->ec, msg); ec 244 drivers/i2c/busses/i2c-cros-ec-tunnel.c struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); ec 250 drivers/i2c/busses/i2c-cros-ec-tunnel.c if (!ec->cmd_xfer) { ec 266 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->ec = ec; ec 88 drivers/ide/icside.c static void icside_irqenable_arcin_v5 (struct expansion_card *ec, int irqnr) ec 90 drivers/ide/icside.c struct icside_state *state = ec->irq_data; ec 98 drivers/ide/icside.c static void icside_irqdisable_arcin_v5 (struct expansion_card *ec, int irqnr) ec 100 drivers/ide/icside.c struct icside_state *state = ec->irq_data; ec 115 drivers/ide/icside.c static void icside_irqenable_arcin_v6 (struct expansion_card *ec, int irqnr) ec 117 drivers/ide/icside.c struct icside_state *state = ec->irq_data; ec 137 drivers/ide/icside.c static void icside_irqdisable_arcin_v6 (struct expansion_card *ec, int irqnr) ec 139 drivers/ide/icside.c struct icside_state *state = ec->irq_data; ec 150 drivers/ide/icside.c static int icside_irqpending_arcin_v6(struct expansion_card *ec) ec 152 drivers/ide/icside.c struct icside_state *state = ec->irq_data; ec 171 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); ec 172 drivers/ide/icside.c struct icside_state *state = ecard_get_drvdata(ec); ec 292 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); ec 294 drivers/ide/icside.c disable_dma(ec->dma); ec 296 drivers/ide/icside.c return get_dma_residue(ec->dma) != 0; ec 302 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); ec 305 drivers/ide/icside.c BUG_ON(dma_channel_active(ec->dma)); ec 306 drivers/ide/icside.c enable_dma(ec->dma); ec 312 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); ec 313 drivers/ide/icside.c struct icside_state *state = ecard_get_drvdata(ec); ec 324 drivers/ide/icside.c BUG_ON(dma_channel_active(ec->dma)); ec 339 drivers/ide/icside.c set_dma_speed(ec->dma, (unsigned long)ide_get_drivedata(drive)); ec 345 drivers/ide/icside.c set_dma_sg(ec->dma, hwif->sg_table, cmd->sg_nents); ec 346 drivers/ide/icside.c set_dma_mode(ec->dma, dma_mode); ec 354 drivers/ide/icside.c struct expansion_card *ec = ECARD_DEV(hwif->dev); ec 355 drivers/ide/icside.c struct icside_state *state = ecard_get_drvdata(ec); ec 387 drivers/ide/icside.c struct cardinfo *info, struct expansion_card *ec) ec 401 drivers/ide/icside.c hw->irq = ec->irq; ec 402 drivers/ide/icside.c hw->dev = &ec->dev; ec 411 drivers/ide/icside.c struct expansion_card *ec) ec 418 drivers/ide/icside.c base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); ec 424 drivers/ide/icside.c ec->irqaddr = base + ICS_ARCIN_V5_INTRSTAT; ec 425 drivers/ide/icside.c ec->irqmask = 1; ec 427 drivers/ide/icside.c ecard_setirq(ec, &icside_ops_arcin_v5, state); ec 432 drivers/ide/icside.c icside_irqdisable_arcin_v5(ec, 0); ec 434 drivers/ide/icside.c icside_setup_ports(&hw, base, &icside_cardinfo_v5, ec); ec 442 drivers/ide/icside.c ecard_set_drvdata(ec, state); ec 451 drivers/ide/icside.c ecard_set_drvdata(ec, NULL); ec 465 drivers/ide/icside.c struct expansion_card *ec) ec 474 drivers/ide/icside.c ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); ec 482 drivers/ide/icside.c if (ecard_resource_flags(ec, ECARD_RES_EASI)) { ec 483 drivers/ide/icside.c easi_base = ecardm_iomap(ec, ECARD_RES_EASI, 0, 0); ec 497 drivers/ide/icside.c ecard_setirq(ec, &icside_ops_arcin_v6, state); ec 506 drivers/ide/icside.c icside_irqdisable_arcin_v6(ec, 0); ec 508 drivers/ide/icside.c icside_setup_ports(&hw[0], easi_base, &icside_cardinfo_v6_1, ec); ec 509 drivers/ide/icside.c icside_setup_ports(&hw[1], easi_base, &icside_cardinfo_v6_2, ec); ec 517 drivers/ide/icside.c ecard_set_drvdata(ec, state); ec 520 drivers/ide/icside.c if (ec->dma != NO_DMA && !request_dma(ec->dma, DRV_NAME)) { ec 535 drivers/ide/icside.c free_dma(ec->dma); ec 536 drivers/ide/icside.c ecard_set_drvdata(ec, NULL); ec 541 drivers/ide/icside.c static int icside_probe(struct expansion_card *ec, const struct ecard_id *id) ec 547 drivers/ide/icside.c ret = ecard_request_resources(ec); ec 559 drivers/ide/icside.c idmem = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); ec 567 drivers/ide/icside.c ecardm_iounmap(ec, idmem); ec 574 drivers/ide/icside.c dev_warn(&ec->dev, "A3IN unsupported\n"); ec 579 drivers/ide/icside.c dev_warn(&ec->dev, "A3USER unsupported\n"); ec 584 drivers/ide/icside.c ret = icside_register_v5(state, ec); ec 588 drivers/ide/icside.c ret = icside_register_v6(state, ec); ec 592 drivers/ide/icside.c dev_warn(&ec->dev, "unknown interface type\n"); ec 602 drivers/ide/icside.c ecard_release_resources(ec); ec 607 drivers/ide/icside.c static void icside_remove(struct expansion_card *ec) ec 609 drivers/ide/icside.c struct icside_state *state = ecard_get_drvdata(ec); ec 616 drivers/ide/icside.c icside_irqdisable_arcin_v5(ec, 0); ec 621 drivers/ide/icside.c if (ec->dma != NO_DMA) ec 622 drivers/ide/icside.c free_dma(ec->dma); ec 625 drivers/ide/icside.c icside_irqdisable_arcin_v6(ec, 0); ec 632 drivers/ide/icside.c ecard_set_drvdata(ec, NULL); ec 635 drivers/ide/icside.c ecard_release_resources(ec); ec 638 drivers/ide/icside.c static void icside_shutdown(struct expansion_card *ec) ec 640 drivers/ide/icside.c struct icside_state *state = ecard_get_drvdata(ec); ec 649 drivers/ide/icside.c ec->ops->irqdisable(ec, 0); ec 33 drivers/ide/rapide.c static int rapide_probe(struct expansion_card *ec, const struct ecard_id *id) ec 40 drivers/ide/rapide.c ret = ecard_request_resources(ec); ec 44 drivers/ide/rapide.c base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); ec 51 drivers/ide/rapide.c rapide_setup_ports(&hw, base, base + 0x818, 1 << 6, ec->irq); ec 52 drivers/ide/rapide.c hw.dev = &ec->dev; ec 58 drivers/ide/rapide.c ecard_set_drvdata(ec, host); ec 62 drivers/ide/rapide.c ecard_release_resources(ec); ec 67 drivers/ide/rapide.c static void rapide_remove(struct expansion_card *ec) ec 69 drivers/ide/rapide.c struct ide_host *host = ecard_get_drvdata(ec); ec 71 drivers/ide/rapide.c ecard_set_drvdata(ec, NULL); ec 75 drivers/ide/rapide.c ecard_release_resources(ec); ec 166 drivers/iio/accel/cros_ec_accel_legacy.c struct cros_ec_dev *ec = dev_get_drvdata(dev->parent); ec 171 drivers/iio/accel/cros_ec_accel_legacy.c if (!ec || !ec->ec_dev) { ec 187 drivers/iio/accel/cros_ec_accel_legacy.c if (state->ec->cmd_readmem != NULL) ec 296 drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c if ((state->core.ec->cmd_readmem != NULL) && ec 91 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c struct cros_ec_dev *ec = dev_get_drvdata(pdev->dev.parent); ec 98 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->ec = ec->ec_dev; ec 101 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->ec->max_response), GFP_KERNEL); ec 109 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ret = cros_ec_get_host_cmd_version_mask(state->ec, ec 110 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ec->cmd_offset, ec 118 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; ec 167 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->insize = min(opt_length, state->ec->max_response); ec 169 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->insize = state->ec->max_response; ec 173 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ret = cros_ec_cmd_xfer_status(state->ec, state->msg); ec 275 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c static int cros_ec_sensors_cmd_read_u8(struct cros_ec_device *ec, ec 278 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c return ec->cmd_readmem(ec, offset, 1, dest); ec 281 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c static int cros_ec_sensors_cmd_read_u16(struct cros_ec_device *ec, ec 285 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c int ret = ec->cmd_readmem(ec, offset, 2, &tmp); ec 304 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c struct cros_ec_device *ec = st->ec; ec 308 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ret = cros_ec_sensors_cmd_read_u8(ec, EC_MEMMAP_ACC_STATUS, &status); ec 321 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ret = cros_ec_sensors_cmd_read_u8(ec, EC_MEMMAP_ACC_STATUS, ec 345 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c struct cros_ec_device *ec = st->ec; ec 351 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ret = cros_ec_sensors_cmd_read_u16(ec, ec 379 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c struct cros_ec_device *ec = st->ec; ec 413 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ret = cros_ec_sensors_cmd_read_u8(ec, EC_MEMMAP_ACC_STATUS, ec 54 drivers/input/keyboard/cros_ec_keyb.c struct cros_ec_device *ec; ec 229 drivers/input/keyboard/cros_ec_keyb.c uint8_t mkbp_event_type = ckdev->ec->event_data.event_type & ec 246 drivers/input/keyboard/cros_ec_keyb.c if (ckdev->ec->event_size != ckdev->cols) { ec 253 drivers/input/keyboard/cros_ec_keyb.c ckdev->ec->event_data.data.key_matrix, ec 254 drivers/input/keyboard/cros_ec_keyb.c ckdev->ec->event_size); ec 260 drivers/input/keyboard/cros_ec_keyb.c val = get_unaligned_le32(&ckdev->ec->event_data.data.sysrq); ec 271 drivers/input/keyboard/cros_ec_keyb.c &ckdev->ec->event_data.data.buttons); ec 275 drivers/input/keyboard/cros_ec_keyb.c &ckdev->ec->event_data.data.switches); ec 392 drivers/input/keyboard/cros_ec_keyb.c struct cros_ec_device *ec_dev = ckdev->ec; ec 443 drivers/input/keyboard/cros_ec_keyb.c struct cros_ec_device *ec_dev = ckdev->ec; ec 529 drivers/input/keyboard/cros_ec_keyb.c struct cros_ec_device *ec_dev = ckdev->ec; ec 596 drivers/input/keyboard/cros_ec_keyb.c struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); ec 608 drivers/input/keyboard/cros_ec_keyb.c ckdev->ec = ec; ec 625 drivers/input/keyboard/cros_ec_keyb.c err = blocking_notifier_chain_register(&ckdev->ec->event_notifier, ec 640 drivers/input/keyboard/cros_ec_keyb.c blocking_notifier_chain_unregister(&ckdev->ec->event_notifier, ec 2850 drivers/input/mouse/alps.c unsigned char *ec) ec 2885 drivers/input/mouse/alps.c unsigned char e6[4], e7[4], ec[4]; ec 2908 drivers/input/mouse/alps.c PSMOUSE_CMD_RESET_WRAP, ec) || ec 2912 drivers/input/mouse/alps.c protocol = alps_match_table(e7, ec); ec 2915 drivers/input/mouse/alps.c ec[2] == 0x8a) { ec 2918 drivers/input/mouse/alps.c ec[0] == 0x73 && (ec[1] == 0x01 || ec[1] == 0x02)) { ec 2920 drivers/input/mouse/alps.c } else if (ec[0] == 0x88 && ec 2921 drivers/input/mouse/alps.c ((ec[1] & 0xf0) == 0xb0 || (ec[1] & 0xf0) == 0xc0)) { ec 2923 drivers/input/mouse/alps.c } else if (ec[0] == 0x88 && ec[1] == 0x08) { ec 2925 drivers/input/mouse/alps.c } else if (ec[0] == 0x88 && ec[1] == 0x07 && ec 2926 drivers/input/mouse/alps.c ec[2] >= 0x90 && ec[2] <= 0x9d) { ec 2935 drivers/input/mouse/alps.c e7, ec); ec 2939 drivers/input/mouse/alps.c "Likely not an ALPS touchpad: E7=%3ph, EC=%3ph\n", e7, ec); ec 2947 drivers/input/mouse/alps.c memcpy(priv->fw_ver, ec, 3); ec 53 drivers/input/mouse/synaptics.h #define SYN_CAP_MULTI_BUTTON_NO(ec) (((ec) & SYN_CAP_MB_MASK) >> 12) ec 54 drivers/input/mouse/synaptics.h #define SYN_CAP_PRODUCT_ID(ec) (((ec) & GENMASK(23, 16)) >> 16) ec 1308 drivers/media/i2c/adv7511-v4l2.c u8 ec = HDMI_EXTENDED_COLORIMETRY_XV_YCC_601; ec 1365 drivers/media/i2c/adv7511-v4l2.c ec = y ? HDMI_EXTENDED_COLORIMETRY_OPYCC_601 : ec 1372 drivers/media/i2c/adv7511-v4l2.c ec = HDMI_EXTENDED_COLORIMETRY_XV_YCC_601; ec 1379 drivers/media/i2c/adv7511-v4l2.c ec = HDMI_EXTENDED_COLORIMETRY_XV_YCC_709; ec 1384 drivers/media/i2c/adv7511-v4l2.c ec = y ? HDMI_EXTENDED_COLORIMETRY_S_YCC_601 : ec 1390 drivers/media/i2c/adv7511-v4l2.c ec = 5; /* Not yet available in hdmi.h */ ec 1392 drivers/media/i2c/adv7511-v4l2.c ec = 6; /* Not yet available in hdmi.h */ ec 1427 drivers/media/i2c/adv7511-v4l2.c adv7511_wr_and_or(sd, 0x57, 0x83, (ec << 4) | (q << 2) | (itc << 7)); ec 1002 drivers/media/platform/coda/coda-common.c struct v4l2_encoder_cmd *ec) ec 1009 drivers/media/platform/coda/coda-common.c return v4l2_m2m_ioctl_try_encoder_cmd(file, fh, ec); ec 1024 drivers/media/platform/coda/coda-common.c struct v4l2_encoder_cmd *ec) ec 1030 drivers/media/platform/coda/coda-common.c ret = coda_try_encoder_cmd(file, fh, ec); ec 1258 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_encoder_cmd *ec) ec 1263 drivers/media/platform/vicodec/vicodec-core.c ret = v4l2_m2m_ioctl_try_encoder_cmd(file, fh, ec); ec 1271 drivers/media/platform/vicodec/vicodec-core.c if (ec->cmd == V4L2_ENC_CMD_STOP) ec 1129 drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_encoder_cmd *ec) ec 1131 drivers/media/v4l2-core/v4l2-mem2mem.c if (ec->cmd != V4L2_ENC_CMD_STOP && ec->cmd != V4L2_ENC_CMD_START) ec 1134 drivers/media/v4l2-core/v4l2-mem2mem.c ec->flags = 0; ec 115 drivers/mfd/cros_ec_dev.c static int cros_ec_check_features(struct cros_ec_dev *ec, int feature) ec 120 drivers/mfd/cros_ec_dev.c if (ec->features[0] == -1U && ec->features[1] == -1U) { ec 122 drivers/mfd/cros_ec_dev.c msg = kzalloc(sizeof(*msg) + sizeof(ec->features), GFP_KERNEL); ec 126 drivers/mfd/cros_ec_dev.c msg->command = EC_CMD_GET_FEATURES + ec->cmd_offset; ec 127 drivers/mfd/cros_ec_dev.c msg->insize = sizeof(ec->features); ec 129 drivers/mfd/cros_ec_dev.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 131 drivers/mfd/cros_ec_dev.c dev_warn(ec->dev, "cannot get EC features: %d/%d\n", ec 133 drivers/mfd/cros_ec_dev.c memset(ec->features, 0, sizeof(ec->features)); ec 135 drivers/mfd/cros_ec_dev.c memcpy(ec->features, msg->data, sizeof(ec->features)); ec 138 drivers/mfd/cros_ec_dev.c dev_dbg(ec->dev, "EC features %08x %08x\n", ec 139 drivers/mfd/cros_ec_dev.c ec->features[0], ec->features[1]); ec 144 drivers/mfd/cros_ec_dev.c return ec->features[feature / 32] & EC_FEATURE_MASK_0(feature); ec 152 drivers/mfd/cros_ec_dev.c static void cros_ec_sensors_register(struct cros_ec_dev *ec) ec 172 drivers/mfd/cros_ec_dev.c msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; ec 179 drivers/mfd/cros_ec_dev.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 181 drivers/mfd/cros_ec_dev.c dev_warn(ec->dev, "cannot get EC sensor information: %d/%d\n", ec 207 drivers/mfd/cros_ec_dev.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 209 drivers/mfd/cros_ec_dev.c dev_warn(ec->dev, "no info for EC sensor %d : %d/%d\n", ec 236 drivers/mfd/cros_ec_dev.c dev_warn(ec->dev, "unknown type %d\n", resp->info.type); ec 250 drivers/mfd/cros_ec_dev.c ec->has_kb_wake_angle = true; ec 252 drivers/mfd/cros_ec_dev.c if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) { ec 256 drivers/mfd/cros_ec_dev.c if (cros_ec_check_features(ec, ec 262 drivers/mfd/cros_ec_dev.c ret = mfd_add_devices(ec->dev, 0, sensor_cells, id, ec 265 drivers/mfd/cros_ec_dev.c dev_err(ec->dev, "failed to add EC sensors\n"); ec 292 drivers/mfd/cros_ec_dev.c static void cros_ec_accel_legacy_register(struct cros_ec_dev *ec) ec 294 drivers/mfd/cros_ec_dev.c struct cros_ec_device *ec_dev = ec->ec_dev; ec 302 drivers/mfd/cros_ec_dev.c if (ec->cmd_offset != 0) ec 313 drivers/mfd/cros_ec_dev.c dev_warn(ec->dev, "EC direct read error.\n"); ec 319 drivers/mfd/cros_ec_dev.c dev_info(ec->dev, "EC does not have accelerometers.\n"); ec 332 drivers/mfd/cros_ec_dev.c ret = mfd_add_hotplug_devices(ec->dev, cros_ec_accel_legacy_cells, ec 344 drivers/mfd/cros_ec_dev.c struct cros_ec_dev *ec = kzalloc(sizeof(*ec), GFP_KERNEL); ec 347 drivers/mfd/cros_ec_dev.c if (!ec) ec 350 drivers/mfd/cros_ec_dev.c dev_set_drvdata(dev, ec); ec 351 drivers/mfd/cros_ec_dev.c ec->ec_dev = dev_get_drvdata(dev->parent); ec 352 drivers/mfd/cros_ec_dev.c ec->dev = dev; ec 353 drivers/mfd/cros_ec_dev.c ec->cmd_offset = ec_platform->cmd_offset; ec 354 drivers/mfd/cros_ec_dev.c ec->features[0] = -1U; /* Not cached yet */ ec 355 drivers/mfd/cros_ec_dev.c ec->features[1] = -1U; /* Not cached yet */ ec 356 drivers/mfd/cros_ec_dev.c device_initialize(&ec->class_dev); ec 363 drivers/mfd/cros_ec_dev.c if (cros_ec_check_features(ec, cros_mcu_devices[i].id)) { ec 378 drivers/mfd/cros_ec_dev.c ec->class_dev.class = &cros_class; ec 379 drivers/mfd/cros_ec_dev.c ec->class_dev.parent = dev; ec 380 drivers/mfd/cros_ec_dev.c ec->class_dev.release = cros_ec_class_release; ec 382 drivers/mfd/cros_ec_dev.c retval = dev_set_name(&ec->class_dev, "%s", ec_platform->ec_name); ec 388 drivers/mfd/cros_ec_dev.c retval = device_add(&ec->class_dev); ec 393 drivers/mfd/cros_ec_dev.c if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE)) ec 394 drivers/mfd/cros_ec_dev.c cros_ec_sensors_register(ec); ec 397 drivers/mfd/cros_ec_dev.c cros_ec_accel_legacy_register(ec); ec 404 drivers/mfd/cros_ec_dev.c if (cros_ec_check_features(ec, cros_subdevices[i].id)) { ec 405 drivers/mfd/cros_ec_dev.c retval = mfd_add_hotplug_devices(ec->dev, ec 409 drivers/mfd/cros_ec_dev.c dev_err(ec->dev, ec 420 drivers/mfd/cros_ec_dev.c retval = mfd_add_hotplug_devices(ec->dev, cros_ec_platform_cells, ec 423 drivers/mfd/cros_ec_dev.c dev_warn(ec->dev, ec 428 drivers/mfd/cros_ec_dev.c node = ec->ec_dev->dev->of_node; ec 430 drivers/mfd/cros_ec_dev.c retval = mfd_add_hotplug_devices(ec->dev, cros_ec_vbc_cells, ec 433 drivers/mfd/cros_ec_dev.c dev_warn(ec->dev, "failed to add VBC devices: %d\n", ec 440 drivers/mfd/cros_ec_dev.c put_device(&ec->class_dev); ec 446 drivers/mfd/cros_ec_dev.c struct cros_ec_dev *ec = dev_get_drvdata(&pdev->dev); ec 448 drivers/mfd/cros_ec_dev.c mfd_remove_devices(ec->dev); ec 449 drivers/mfd/cros_ec_dev.c device_unregister(&ec->class_dev); ec 106 drivers/misc/echo/echo.c static inline void lms_adapt_bg(struct oslec_state *ec, int clean, int shift) ec 122 drivers/misc/echo/echo.c offset2 = ec->curr_pos; ec 123 drivers/misc/echo/echo.c offset1 = ec->taps - offset2; ec 125 drivers/misc/echo/echo.c for (i = ec->taps - 1; i >= offset1; i--) { ec 126 drivers/misc/echo/echo.c exp = (ec->fir_state_bg.history[i - offset1] * factor); ec 127 drivers/misc/echo/echo.c ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); ec 130 drivers/misc/echo/echo.c exp = (ec->fir_state_bg.history[i + offset2] * factor); ec 131 drivers/misc/echo/echo.c ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); ec 145 drivers/misc/echo/echo.c struct oslec_state *ec; ec 149 drivers/misc/echo/echo.c ec = kzalloc(sizeof(*ec), GFP_KERNEL); ec 150 drivers/misc/echo/echo.c if (!ec) ec 153 drivers/misc/echo/echo.c ec->taps = len; ec 154 drivers/misc/echo/echo.c ec->log2taps = top_bit(len); ec 155 drivers/misc/echo/echo.c ec->curr_pos = ec->taps - 1; ec 157 drivers/misc/echo/echo.c ec->fir_taps16[0] = ec 158 drivers/misc/echo/echo.c kcalloc(ec->taps, sizeof(int16_t), GFP_KERNEL); ec 159 drivers/misc/echo/echo.c if (!ec->fir_taps16[0]) ec 162 drivers/misc/echo/echo.c ec->fir_taps16[1] = ec 163 drivers/misc/echo/echo.c kcalloc(ec->taps, sizeof(int16_t), GFP_KERNEL); ec 164 drivers/misc/echo/echo.c if (!ec->fir_taps16[1]) ec 167 drivers/misc/echo/echo.c history = fir16_create(&ec->fir_state, ec->fir_taps16[0], ec->taps); ec 170 drivers/misc/echo/echo.c history = fir16_create(&ec->fir_state_bg, ec->fir_taps16[1], ec->taps); ec 175 drivers/misc/echo/echo.c ec->xvtx[i] = ec->yvtx[i] = ec->xvrx[i] = ec->yvrx[i] = 0; ec 177 drivers/misc/echo/echo.c ec->cng_level = 1000; ec 178 drivers/misc/echo/echo.c oslec_adaption_mode(ec, adaption_mode); ec 180 drivers/misc/echo/echo.c ec->snapshot = kcalloc(ec->taps, sizeof(int16_t), GFP_KERNEL); ec 181 drivers/misc/echo/echo.c if (!ec->snapshot) ec 184 drivers/misc/echo/echo.c ec->cond_met = 0; ec 185 drivers/misc/echo/echo.c ec->pstates = 0; ec 186 drivers/misc/echo/echo.c ec->ltxacc = ec->lrxacc = ec->lcleanacc = ec->lclean_bgacc = 0; ec 187 drivers/misc/echo/echo.c ec->ltx = ec->lrx = ec->lclean = ec->lclean_bg = 0; ec 188 drivers/misc/echo/echo.c ec->tx_1 = ec->tx_2 = ec->rx_1 = ec->rx_2 = 0; ec 189 drivers/misc/echo/echo.c ec->lbgn = ec->lbgn_acc = 0; ec 190 drivers/misc/echo/echo.c ec->lbgn_upper = 200; ec 191 drivers/misc/echo/echo.c ec->lbgn_upper_acc = ec->lbgn_upper << 13; ec 193 drivers/misc/echo/echo.c return ec; ec 196 drivers/misc/echo/echo.c fir16_free(&ec->fir_state_bg); ec 198 drivers/misc/echo/echo.c fir16_free(&ec->fir_state); ec 200 drivers/misc/echo/echo.c kfree(ec->fir_taps16[1]); ec 202 drivers/misc/echo/echo.c kfree(ec->fir_taps16[0]); ec 204 drivers/misc/echo/echo.c kfree(ec); ec 209 drivers/misc/echo/echo.c void oslec_free(struct oslec_state *ec) ec 213 drivers/misc/echo/echo.c fir16_free(&ec->fir_state); ec 214 drivers/misc/echo/echo.c fir16_free(&ec->fir_state_bg); ec 216 drivers/misc/echo/echo.c kfree(ec->fir_taps16[i]); ec 217 drivers/misc/echo/echo.c kfree(ec->snapshot); ec 218 drivers/misc/echo/echo.c kfree(ec); ec 222 drivers/misc/echo/echo.c void oslec_adaption_mode(struct oslec_state *ec, int adaption_mode) ec 224 drivers/misc/echo/echo.c ec->adaption_mode = adaption_mode; ec 228 drivers/misc/echo/echo.c void oslec_flush(struct oslec_state *ec) ec 232 drivers/misc/echo/echo.c ec->ltxacc = ec->lrxacc = ec->lcleanacc = ec->lclean_bgacc = 0; ec 233 drivers/misc/echo/echo.c ec->ltx = ec->lrx = ec->lclean = ec->lclean_bg = 0; ec 234 drivers/misc/echo/echo.c ec->tx_1 = ec->tx_2 = ec->rx_1 = ec->rx_2 = 0; ec 236 drivers/misc/echo/echo.c ec->lbgn = ec->lbgn_acc = 0; ec 237 drivers/misc/echo/echo.c ec->lbgn_upper = 200; ec 238 drivers/misc/echo/echo.c ec->lbgn_upper_acc = ec->lbgn_upper << 13; ec 240 drivers/misc/echo/echo.c ec->nonupdate_dwell = 0; ec 242 drivers/misc/echo/echo.c fir16_flush(&ec->fir_state); ec 243 drivers/misc/echo/echo.c fir16_flush(&ec->fir_state_bg); ec 244 drivers/misc/echo/echo.c ec->fir_state.curr_pos = ec->taps - 1; ec 245 drivers/misc/echo/echo.c ec->fir_state_bg.curr_pos = ec->taps - 1; ec 247 drivers/misc/echo/echo.c memset(ec->fir_taps16[i], 0, ec->taps * sizeof(int16_t)); ec 249 drivers/misc/echo/echo.c ec->curr_pos = ec->taps - 1; ec 250 drivers/misc/echo/echo.c ec->pstates = 0; ec 254 drivers/misc/echo/echo.c void oslec_snapshot(struct oslec_state *ec) ec 256 drivers/misc/echo/echo.c memcpy(ec->snapshot, ec->fir_taps16[0], ec->taps * sizeof(int16_t)); ec 262 drivers/misc/echo/echo.c int16_t oslec_update(struct oslec_state *ec, int16_t tx, int16_t rx) ec 275 drivers/misc/echo/echo.c ec->tx = tx; ec 276 drivers/misc/echo/echo.c ec->rx = rx; ec 295 drivers/misc/echo/echo.c if (ec->adaption_mode & ECHO_CAN_USE_RX_HPF) { ec 308 drivers/misc/echo/echo.c ec->rx_1 += -(ec->rx_1 >> DC_LOG2BETA) + tmp - ec->rx_2; ec 315 drivers/misc/echo/echo.c tmp1 = ec->rx_1 >> 15; ec 321 drivers/misc/echo/echo.c ec->rx_2 = tmp; ec 334 drivers/misc/echo/echo.c old = (int)ec->fir_state.history[ec->fir_state.curr_pos] * ec 335 drivers/misc/echo/echo.c (int)ec->fir_state.history[ec->fir_state.curr_pos]; ec 336 drivers/misc/echo/echo.c ec->pstates += ec 337 drivers/misc/echo/echo.c ((new - old) + (1 << (ec->log2taps - 1))) >> ec->log2taps; ec 338 drivers/misc/echo/echo.c if (ec->pstates < 0) ec 339 drivers/misc/echo/echo.c ec->pstates = 0; ec 344 drivers/misc/echo/echo.c ec->ltxacc += abs(tx) - ec->ltx; ec 345 drivers/misc/echo/echo.c ec->ltx = (ec->ltxacc + (1 << 4)) >> 5; ec 346 drivers/misc/echo/echo.c ec->lrxacc += abs(rx) - ec->lrx; ec 347 drivers/misc/echo/echo.c ec->lrx = (ec->lrxacc + (1 << 4)) >> 5; ec 351 drivers/misc/echo/echo.c ec->fir_state.coeffs = ec->fir_taps16[0]; ec 352 drivers/misc/echo/echo.c echo_value = fir16(&ec->fir_state, tx); ec 353 drivers/misc/echo/echo.c ec->clean = rx - echo_value; ec 354 drivers/misc/echo/echo.c ec->lcleanacc += abs(ec->clean) - ec->lclean; ec 355 drivers/misc/echo/echo.c ec->lclean = (ec->lcleanacc + (1 << 4)) >> 5; ec 359 drivers/misc/echo/echo.c echo_value = fir16(&ec->fir_state_bg, tx); ec 361 drivers/misc/echo/echo.c ec->lclean_bgacc += abs(clean_bg) - ec->lclean_bg; ec 362 drivers/misc/echo/echo.c ec->lclean_bg = (ec->lclean_bgacc + (1 << 4)) >> 5; ec 370 drivers/misc/echo/echo.c ec->factor = 0; ec 371 drivers/misc/echo/echo.c ec->shift = 0; ec 372 drivers/misc/echo/echo.c if (!ec->nonupdate_dwell) { ec 408 drivers/misc/echo/echo.c p = MIN_TX_POWER_FOR_ADAPTION + ec->pstates; ec 409 drivers/misc/echo/echo.c logp = top_bit(p) + ec->log2taps; ec 411 drivers/misc/echo/echo.c ec->shift = shift; ec 413 drivers/misc/echo/echo.c lms_adapt_bg(ec, clean_bg, shift); ec 419 drivers/misc/echo/echo.c ec->adapt = 0; ec 420 drivers/misc/echo/echo.c if ((ec->lrx > MIN_RX_POWER_FOR_ADAPTION) && (ec->lrx > ec->ltx)) ec 421 drivers/misc/echo/echo.c ec->nonupdate_dwell = DTD_HANGOVER; ec 422 drivers/misc/echo/echo.c if (ec->nonupdate_dwell) ec 423 drivers/misc/echo/echo.c ec->nonupdate_dwell--; ec 430 drivers/misc/echo/echo.c if ((ec->adaption_mode & ECHO_CAN_USE_ADAPTION) && ec 431 drivers/misc/echo/echo.c (ec->nonupdate_dwell == 0) && ec 433 drivers/misc/echo/echo.c (8 * ec->lclean_bg < 7 * ec->lclean) && ec 435 drivers/misc/echo/echo.c (8 * ec->lclean_bg < ec->ltx)) { ec 436 drivers/misc/echo/echo.c if (ec->cond_met == 6) { ec 441 drivers/misc/echo/echo.c ec->adapt = 1; ec 442 drivers/misc/echo/echo.c memcpy(ec->fir_taps16[0], ec->fir_taps16[1], ec 443 drivers/misc/echo/echo.c ec->taps * sizeof(int16_t)); ec 445 drivers/misc/echo/echo.c ec->cond_met++; ec 447 drivers/misc/echo/echo.c ec->cond_met = 0; ec 451 drivers/misc/echo/echo.c ec->clean_nlp = ec->clean; ec 452 drivers/misc/echo/echo.c if (ec->adaption_mode & ECHO_CAN_USE_NLP) { ec 459 drivers/misc/echo/echo.c if ((16 * ec->lclean < ec->ltx)) { ec 465 drivers/misc/echo/echo.c if (ec->adaption_mode & ECHO_CAN_USE_CNG) { ec 466 drivers/misc/echo/echo.c ec->cng_level = ec->lbgn; ec 479 drivers/misc/echo/echo.c ec->cng_rndnum = ec 480 drivers/misc/echo/echo.c 1664525U * ec->cng_rndnum + 1013904223U; ec 481 drivers/misc/echo/echo.c ec->cng_filter = ec 482 drivers/misc/echo/echo.c ((ec->cng_rndnum & 0xFFFF) - 32768 + ec 483 drivers/misc/echo/echo.c 5 * ec->cng_filter) >> 3; ec 484 drivers/misc/echo/echo.c ec->clean_nlp = ec 485 drivers/misc/echo/echo.c (ec->cng_filter * ec->cng_level * 8) >> 14; ec 487 drivers/misc/echo/echo.c } else if (ec->adaption_mode & ECHO_CAN_USE_CLIP) { ec 489 drivers/misc/echo/echo.c if (ec->clean_nlp > ec->lbgn) ec 490 drivers/misc/echo/echo.c ec->clean_nlp = ec->lbgn; ec 491 drivers/misc/echo/echo.c if (ec->clean_nlp < -ec->lbgn) ec 492 drivers/misc/echo/echo.c ec->clean_nlp = -ec->lbgn; ec 498 drivers/misc/echo/echo.c ec->clean_nlp = 0; ec 511 drivers/misc/echo/echo.c if (ec->lclean < 40) { ec 512 drivers/misc/echo/echo.c ec->lbgn_acc += abs(ec->clean) - ec->lbgn; ec 513 drivers/misc/echo/echo.c ec->lbgn = (ec->lbgn_acc + (1 << 11)) >> 12; ec 519 drivers/misc/echo/echo.c if (ec->curr_pos <= 0) ec 520 drivers/misc/echo/echo.c ec->curr_pos = ec->taps; ec 521 drivers/misc/echo/echo.c ec->curr_pos--; ec 523 drivers/misc/echo/echo.c if (ec->adaption_mode & ECHO_CAN_DISABLE) ec 524 drivers/misc/echo/echo.c ec->clean_nlp = rx; ec 528 drivers/misc/echo/echo.c return (int16_t) ec->clean_nlp << 1; ec 554 drivers/misc/echo/echo.c int16_t oslec_hpf_tx(struct oslec_state *ec, int16_t tx) ec 559 drivers/misc/echo/echo.c if (ec->adaption_mode & ECHO_CAN_USE_TX_HPF) { ec 572 drivers/misc/echo/echo.c ec->tx_1 += -(ec->tx_1 >> DC_LOG2BETA) + tmp - ec->tx_2; ec 573 drivers/misc/echo/echo.c tmp1 = ec->tx_1 >> 15; ec 579 drivers/misc/echo/echo.c ec->tx_2 = tmp; ec 45 drivers/misc/echo/oslec.h void oslec_free(struct oslec_state *ec); ec 51 drivers/misc/echo/oslec.h void oslec_flush(struct oslec_state *ec); ec 58 drivers/misc/echo/oslec.h void oslec_adaption_mode(struct oslec_state *ec, int adaption_mode); ec 60 drivers/misc/echo/oslec.h void oslec_snapshot(struct oslec_state *ec); ec 70 drivers/misc/echo/oslec.h int16_t oslec_update(struct oslec_state *ec, int16_t tx, int16_t rx); ec 79 drivers/misc/echo/oslec.h int16_t oslec_hpf_tx(struct oslec_state *ec, int16_t tx); ec 179 drivers/mtd/ubi/attach.c int ec) ec 188 drivers/mtd/ubi/attach.c aeb->ec = ec; ec 230 drivers/mtd/ubi/attach.c int lnum, int ec, int to_head, struct list_head *list) ec 235 drivers/mtd/ubi/attach.c dbg_bld("add to free: PEB %d, EC %d", pnum, ec); ec 237 drivers/mtd/ubi/attach.c dbg_bld("add to erase: PEB %d, EC %d", pnum, ec); ec 239 drivers/mtd/ubi/attach.c dbg_bld("add to alien: PEB %d, EC %d", pnum, ec); ec 244 drivers/mtd/ubi/attach.c aeb = ubi_alloc_aeb(ai, pnum, ec); ec 268 drivers/mtd/ubi/attach.c static int add_corrupted(struct ubi_attach_info *ai, int pnum, int ec) ec 272 drivers/mtd/ubi/attach.c dbg_bld("add to corrupted: PEB %d, EC %d", pnum, ec); ec 274 drivers/mtd/ubi/attach.c aeb = ubi_alloc_aeb(ai, pnum, ec); ec 297 drivers/mtd/ubi/attach.c struct ubi_vid_hdr *vid_hdr, int ec) ec 301 drivers/mtd/ubi/attach.c aeb = ubi_alloc_aeb(ai, pnum, ec); ec 564 drivers/mtd/ubi/attach.c int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) ec 577 drivers/mtd/ubi/attach.c pnum, vol_id, lnum, ec, sqnum, bitflips); ec 610 drivers/mtd/ubi/attach.c aeb->pnum, aeb->sqnum, aeb->ec); ec 651 drivers/mtd/ubi/attach.c aeb->lnum, aeb->ec, cmp_res & 4, ec 656 drivers/mtd/ubi/attach.c aeb->ec = ec; ec 674 drivers/mtd/ubi/attach.c return add_to_list(ai, pnum, vol_id, lnum, ec, ec 688 drivers/mtd/ubi/attach.c aeb = ubi_alloc_aeb(ai, pnum, ec); ec 772 drivers/mtd/ubi/attach.c const struct ubi_attach_info *ai, int pnum, int ec) ec 777 drivers/mtd/ubi/attach.c if ((long long)ec >= UBI_MAX_ERASECOUNTER) { ec 783 drivers/mtd/ubi/attach.c pnum, ec); ec 791 drivers/mtd/ubi/attach.c ec_hdr->ec = cpu_to_be64(ec); ec 827 drivers/mtd/ubi/attach.c dbg_bld("return free PEB %d, EC %d", aeb->pnum, aeb->ec); ec 838 drivers/mtd/ubi/attach.c if (aeb->ec == UBI_UNKNOWN) ec 839 drivers/mtd/ubi/attach.c aeb->ec = ai->mean_ec; ec 841 drivers/mtd/ubi/attach.c err = early_erase_peb(ubi, ai, aeb->pnum, aeb->ec+1); ec 845 drivers/mtd/ubi/attach.c aeb->ec += 1; ec 847 drivers/mtd/ubi/attach.c dbg_bld("return PEB %d, EC %d", aeb->pnum, aeb->ec); ec 947 drivers/mtd/ubi/attach.c long long ec; ec 986 drivers/mtd/ubi/attach.c ec = UBI_UNKNOWN; ec 1005 drivers/mtd/ubi/attach.c ec = be64_to_cpu(ech->ec); ec 1006 drivers/mtd/ubi/attach.c if (ec > UBI_MAX_ERASECOUNTER) { ec 1104 drivers/mtd/ubi/attach.c UBI_UNKNOWN, ec, 1, &ai->erase); ec 1107 drivers/mtd/ubi/attach.c err = add_corrupted(ai, pnum, ec); ec 1113 drivers/mtd/ubi/attach.c ec, 1, &ai->erase); ec 1120 drivers/mtd/ubi/attach.c UBI_UNKNOWN, ec, 1, &ai->erase); ec 1123 drivers/mtd/ubi/attach.c UBI_UNKNOWN, ec, 0, &ai->free); ec 1144 drivers/mtd/ubi/attach.c ec, 1, &ai->erase); ec 1159 drivers/mtd/ubi/attach.c ec, 0, &ai->alien); ec 1176 drivers/mtd/ubi/attach.c err = add_fastmap(ai, pnum, vidh, ec); ec 1178 drivers/mtd/ubi/attach.c err = ubi_add_to_av(ubi, ai, pnum, ec, vidh, bitflips); ec 1185 drivers/mtd/ubi/attach.c ai->ec_sum += ec; ec 1187 drivers/mtd/ubi/attach.c if (ec > ai->max_ec) ec 1188 drivers/mtd/ubi/attach.c ai->max_ec = ec; ec 1189 drivers/mtd/ubi/attach.c if (ec < ai->min_ec) ec 1190 drivers/mtd/ubi/attach.c ai->min_ec = ec; ec 1417 drivers/mtd/ubi/attach.c if (aeb->ec == UBI_UNKNOWN) ec 1418 drivers/mtd/ubi/attach.c aeb->ec = ai->mean_ec; ec 1422 drivers/mtd/ubi/attach.c if (aeb->ec == UBI_UNKNOWN) ec 1423 drivers/mtd/ubi/attach.c aeb->ec = ai->mean_ec; ec 1427 drivers/mtd/ubi/attach.c if (aeb->ec == UBI_UNKNOWN) ec 1428 drivers/mtd/ubi/attach.c aeb->ec = ai->mean_ec; ec 1431 drivers/mtd/ubi/attach.c if (aeb->ec == UBI_UNKNOWN) ec 1432 drivers/mtd/ubi/attach.c aeb->ec = ai->mean_ec; ec 1723 drivers/mtd/ubi/attach.c if (aeb->pnum < 0 || aeb->ec < 0) { ec 1728 drivers/mtd/ubi/attach.c if (aeb->ec < ai->min_ec) { ec 1730 drivers/mtd/ubi/attach.c ai->min_ec, aeb->ec); ec 1734 drivers/mtd/ubi/attach.c if (aeb->ec > ai->max_ec) { ec 1736 drivers/mtd/ubi/attach.c ai->max_ec, aeb->ec); ec 56 drivers/mtd/ubi/debug.c pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); ec 179 drivers/mtd/ubi/debug.c pr_err("\tec %d\n", aeb->ec); ec 440 drivers/mtd/ubi/debug.c erase_count = wl->ec; ec 33 drivers/mtd/ubi/fastmap-wl.c if (e->pnum < UBI_FM_MAX_START && e->ec < max_ec) { ec 35 drivers/mtd/ubi/fastmap-wl.c max_ec = e->ec; ec 333 drivers/mtd/ubi/fastmap-wl.c ubi_assert(e->ec >= 0); ec 137 drivers/mtd/ubi/fastmap.c int pnum, int ec, int scrub) ec 141 drivers/mtd/ubi/fastmap.c aeb = ubi_alloc_aeb(ai, pnum, ec); ec 149 drivers/mtd/ubi/fastmap.c ai->ec_sum += aeb->ec; ec 152 drivers/mtd/ubi/fastmap.c if (ai->max_ec < aeb->ec) ec 153 drivers/mtd/ubi/fastmap.c ai->max_ec = aeb->ec; ec 155 drivers/mtd/ubi/fastmap.c if (ai->min_ec > aeb->ec) ec 156 drivers/mtd/ubi/fastmap.c ai->min_ec = aeb->ec; ec 280 drivers/mtd/ubi/fastmap.c victim = ubi_alloc_aeb(ai, aeb->pnum, aeb->ec); ec 293 drivers/mtd/ubi/fastmap.c aeb->ec = new_aeb->ec; ec 464 drivers/mtd/ubi/fastmap.c unsigned long long ec = be64_to_cpu(ech->ec); ec 471 drivers/mtd/ubi/fastmap.c add_aeb(ai, free, pnum, ec, scrub); ec 479 drivers/mtd/ubi/fastmap.c new_aeb = ubi_alloc_aeb(ai, pnum, be64_to_cpu(ech->ec)); ec 642 drivers/mtd/ubi/fastmap.c be32_to_cpu(fmec->ec), 0); ec 653 drivers/mtd/ubi/fastmap.c be32_to_cpu(fmec->ec), 0); ec 664 drivers/mtd/ubi/fastmap.c be32_to_cpu(fmec->ec), 1); ec 675 drivers/mtd/ubi/fastmap.c be32_to_cpu(fmec->ec), 1); ec 826 drivers/mtd/ubi/fastmap.c new = ubi_alloc_aeb(ai, old->pnum, old->ec); ec 1063 drivers/mtd/ubi/fastmap.c e->ec = be32_to_cpu(fmsb2->block_ec[i]); ec 1217 drivers/mtd/ubi/fastmap.c fec->ec = cpu_to_be32(wl_e->ec); ec 1230 drivers/mtd/ubi/fastmap.c fec->ec = cpu_to_be32(wl_e->ec); ec 1242 drivers/mtd/ubi/fastmap.c fec->ec = cpu_to_be32(wl_e->ec); ec 1255 drivers/mtd/ubi/fastmap.c fec->ec = cpu_to_be32(wl_e->ec); ec 1273 drivers/mtd/ubi/fastmap.c fec->ec = cpu_to_be32(wl_e->ec); ec 1337 drivers/mtd/ubi/fastmap.c fmsb->block_ec[i] = cpu_to_be32(new_fm->e[i]->ec); ec 1395 drivers/mtd/ubi/fastmap.c long long ec; ec 1413 drivers/mtd/ubi/fastmap.c ec = be64_to_cpu(ec_hdr->ec); ec 1414 drivers/mtd/ubi/fastmap.c ec += ret; ec 1415 drivers/mtd/ubi/fastmap.c if (ec > UBI_MAX_ERASECOUNTER) { ec 1420 drivers/mtd/ubi/fastmap.c ec_hdr->ec = cpu_to_be64(ec); ec 1425 drivers/mtd/ubi/fastmap.c ret = ec; ec 1642 drivers/mtd/ubi/fastmap.c new_fm->e[0]->ec = ret; ec 626 drivers/mtd/ubi/io.c long long ec; ec 629 drivers/mtd/ubi/io.c ec = be64_to_cpu(ec_hdr->ec); ec 651 drivers/mtd/ubi/io.c if (ec < 0 || ec > UBI_MAX_ERASECOUNTER) { ec 652 drivers/mtd/ubi/io.c ubi_err(ubi, "bad erase counter %lld", ec); ec 151 drivers/mtd/ubi/ubi-media.h __be64 ec; /* Warning: the current limit is 31-bit anyway! */ ec 466 drivers/mtd/ubi/ubi-media.h __be32 ec; ec 183 drivers/mtd/ubi/ubi.h int ec; ec 674 drivers/mtd/ubi/ubi.h int ec; ec 823 drivers/mtd/ubi/ubi.h int ec); ec 826 drivers/mtd/ubi/ubi.h int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips); ec 330 drivers/mtd/ubi/vtbl.c err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); ec 125 drivers/mtd/ubi/wl.c static int self_check_ec(struct ubi_device *ubi, int pnum, int ec); ec 150 drivers/mtd/ubi/wl.c if (e->ec < e1->ec) ec 152 drivers/mtd/ubi/wl.c else if (e->ec > e1->ec) ec 251 drivers/mtd/ubi/wl.c if (e->ec < e1->ec) ec 253 drivers/mtd/ubi/wl.c else if (e->ec > e1->ec) ec 306 drivers/mtd/ubi/wl.c dbg_wl("added PEB %d EC %d to the protection queue", e->pnum, e->ec); ec 326 drivers/mtd/ubi/wl.c max = e->ec + diff; ec 333 drivers/mtd/ubi/wl.c if (e1->ec >= max) ec 369 drivers/mtd/ubi/wl.c if (last->ec - first->ec < WL_FREE_MAX_DIFF) { ec 408 drivers/mtd/ubi/wl.c dbg_wl("PEB %d EC %d", e->pnum, e->ec); ec 451 drivers/mtd/ubi/wl.c unsigned long long ec = e->ec; ec 453 drivers/mtd/ubi/wl.c dbg_wl("erase PEB %d, old EC %llu", e->pnum, ec); ec 455 drivers/mtd/ubi/wl.c err = self_check_ec(ubi, e->pnum, e->ec); ec 467 drivers/mtd/ubi/wl.c ec += err; ec 468 drivers/mtd/ubi/wl.c if (ec > UBI_MAX_ERASECOUNTER) { ec 474 drivers/mtd/ubi/wl.c e->pnum, ec); ec 479 drivers/mtd/ubi/wl.c dbg_wl("erased PEB %d, new EC %llu", e->pnum, ec); ec 481 drivers/mtd/ubi/wl.c ec_hdr->ec = cpu_to_be64(ec); ec 487 drivers/mtd/ubi/wl.c e->ec = ec; ec 489 drivers/mtd/ubi/wl.c if (e->ec > ubi->max_ec) ec 490 drivers/mtd/ubi/wl.c ubi->max_ec = e->ec; ec 520 drivers/mtd/ubi/wl.c e->pnum, e->ec); ec 598 drivers/mtd/ubi/wl.c e->pnum, e->ec, torture); ec 736 drivers/mtd/ubi/wl.c if (!(e2->ec - e1->ec >= UBI_WL_THRESHOLD)) { ec 738 drivers/mtd/ubi/wl.c e1->ec, e2->ec); ec 748 drivers/mtd/ubi/wl.c e1->pnum, e1->ec, e2->pnum, e2->ec); ec 1039 drivers/mtd/ubi/wl.c if (!(e2->ec - e1->ec >= UBI_WL_THRESHOLD)) ec 1091 drivers/mtd/ubi/wl.c pnum, e->ec, wl_wrk->vol_id, wl_wrk->lnum); ec 1204 drivers/mtd/ubi/wl.c dbg_wl("cancel erasure of PEB %d EC %d", e->pnum, e->ec); ec 1703 drivers/mtd/ubi/wl.c e->ec = aeb->ec; ec 1782 drivers/mtd/ubi/wl.c e->ec = aeb->ec; ec 1783 drivers/mtd/ubi/wl.c ubi_assert(e->ec >= 0); ec 1804 drivers/mtd/ubi/wl.c e->ec = aeb->ec; ec 1809 drivers/mtd/ubi/wl.c e->pnum, e->ec); ec 1813 drivers/mtd/ubi/wl.c e->pnum, e->ec); ec 1940 drivers/mtd/ubi/wl.c static int self_check_ec(struct ubi_device *ubi, int pnum, int ec) ec 1960 drivers/mtd/ubi/wl.c read_ec = be64_to_cpu(ec_hdr->ec); ec 1961 drivers/mtd/ubi/wl.c if (ec != read_ec && read_ec - ec > 1) { ec 1963 drivers/mtd/ubi/wl.c ubi_err(ubi, "read EC is %lld, should be %d", read_ec, ec); ec 1993 drivers/mtd/ubi/wl.c e->pnum, e->ec, root); ec 2016 drivers/mtd/ubi/wl.c e->pnum, e->ec); ec 141 drivers/net/ethernet/8390/etherh.c static void etherh_irq_enable(ecard_t *ec, int irqnr) ec 143 drivers/net/ethernet/8390/etherh.c struct etherh_priv *eh = ec->irq_data; ec 148 drivers/net/ethernet/8390/etherh.c static void etherh_irq_disable(ecard_t *ec, int irqnr) ec 150 drivers/net/ethernet/8390/etherh.c struct etherh_priv *eh = ec->irq_data; ec 503 drivers/net/ethernet/8390/etherh.c static int etherh_addr(char *addr, struct expansion_card *ec) ec 508 drivers/net/ethernet/8390/etherh.c if (!ecard_readchunk(&cd, ec, 0xf5, 0)) { ec 510 drivers/net/ethernet/8390/etherh.c dev_name(&ec->dev)); ec 529 drivers/net/ethernet/8390/etherh.c dev_name(&ec->dev), cd.d.string); ec 652 drivers/net/ethernet/8390/etherh.c etherh_probe(struct expansion_card *ec, const struct ecard_id *id) ec 660 drivers/net/ethernet/8390/etherh.c ret = ecard_request_resources(ec); ec 670 drivers/net/ethernet/8390/etherh.c SET_NETDEV_DEV(dev, &ec->dev); ec 673 drivers/net/ethernet/8390/etherh.c dev->irq = ec->irq; ec 690 drivers/net/ethernet/8390/etherh.c eh->id = ec->cid.product; ec 691 drivers/net/ethernet/8390/etherh.c eh->memc = ecardm_iomap(ec, ECARD_RES_MEMC, 0, PAGE_SIZE); ec 699 drivers/net/ethernet/8390/etherh.c eh->ioc_fast = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, PAGE_SIZE); ec 714 drivers/net/ethernet/8390/etherh.c if (ec->slot_no != 8) { ec 715 drivers/net/ethernet/8390/etherh.c ecard_setirq(ec, ðerh_ops, eh); ec 726 drivers/net/ethernet/8390/etherh.c if (ec->cid.product == PROD_ANT_ETHERM) { ec 730 drivers/net/ethernet/8390/etherh.c etherh_addr(dev->dev_addr, ec); ec 753 drivers/net/ethernet/8390/etherh.c data->name, ec->slot_no, dev->dev_addr); ec 755 drivers/net/ethernet/8390/etherh.c ecard_set_drvdata(ec, dev); ec 762 drivers/net/ethernet/8390/etherh.c ecard_release_resources(ec); ec 767 drivers/net/ethernet/8390/etherh.c static void etherh_remove(struct expansion_card *ec) ec 769 drivers/net/ethernet/8390/etherh.c struct net_device *dev = ecard_get_drvdata(ec); ec 771 drivers/net/ethernet/8390/etherh.c ecard_set_drvdata(ec, NULL); ec 777 drivers/net/ethernet/8390/etherh.c ecard_release_resources(ec); ec 432 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct ethtool_coalesce *ec) ec 436 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c memset(ec, 0, sizeof(struct ethtool_coalesce)); ec 438 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ec->rx_coalesce_usecs = pdata->rx_usecs; ec 439 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ec->rx_max_coalesced_frames = pdata->rx_frames; ec 441 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ec->tx_max_coalesced_frames = pdata->tx_frames; ec 447 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct ethtool_coalesce *ec) ec 455 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if ((ec->rx_coalesce_usecs_irq) || ec 456 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->rx_max_coalesced_frames_irq) || ec 457 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->tx_coalesce_usecs) || ec 458 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->tx_coalesce_usecs_irq) || ec 459 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->tx_max_coalesced_frames_irq) || ec 460 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->stats_block_coalesce_usecs) || ec 461 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->use_adaptive_rx_coalesce) || ec 462 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->use_adaptive_tx_coalesce) || ec 463 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->pkt_rate_low) || ec 464 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->rx_coalesce_usecs_low) || ec 465 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->rx_max_coalesced_frames_low) || ec 466 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->tx_coalesce_usecs_low) || ec 467 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->tx_max_coalesced_frames_low) || ec 468 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->pkt_rate_high) || ec 469 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->rx_coalesce_usecs_high) || ec 470 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->rx_max_coalesced_frames_high) || ec 471 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->tx_coalesce_usecs_high) || ec 472 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->tx_max_coalesced_frames_high) || ec 473 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ec->rate_sample_interval)) { ec 478 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx_riwt = hw_if->usec_to_riwt(pdata, ec->rx_coalesce_usecs); ec 479 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx_usecs = ec->rx_coalesce_usecs; ec 480 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx_frames = ec->rx_max_coalesced_frames; ec 498 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx_frames = ec->tx_max_coalesced_frames; ec 574 drivers/net/ethernet/broadcom/bcmsysport.c struct ethtool_coalesce *ec) ec 582 drivers/net/ethernet/broadcom/bcmsysport.c reg |= ec->tx_max_coalesced_frames; ec 583 drivers/net/ethernet/broadcom/bcmsysport.c reg |= DIV_ROUND_UP(ec->tx_coalesce_usecs * 1000, 8192) << ec 589 drivers/net/ethernet/broadcom/bcmsysport.c struct ethtool_coalesce *ec) ec 596 drivers/net/ethernet/broadcom/bcmsysport.c ec->tx_coalesce_usecs = (reg >> RING_TIMEOUT_SHIFT) * 8192 / 1000; ec 597 drivers/net/ethernet/broadcom/bcmsysport.c ec->tx_max_coalesced_frames = reg & RING_INTR_THRESH_MASK; ec 601 drivers/net/ethernet/broadcom/bcmsysport.c ec->rx_coalesce_usecs = (reg >> RDMA_TIMEOUT_SHIFT) * 8192 / 1000; ec 602 drivers/net/ethernet/broadcom/bcmsysport.c ec->rx_max_coalesced_frames = reg & RDMA_INTR_THRESH_MASK; ec 603 drivers/net/ethernet/broadcom/bcmsysport.c ec->use_adaptive_rx_coalesce = priv->dim.use_dim; ec 609 drivers/net/ethernet/broadcom/bcmsysport.c struct ethtool_coalesce *ec) ec 620 drivers/net/ethernet/broadcom/bcmsysport.c if (ec->tx_max_coalesced_frames > RING_INTR_THRESH_MASK || ec 621 drivers/net/ethernet/broadcom/bcmsysport.c ec->tx_coalesce_usecs > (RING_TIMEOUT_MASK * 8) + 1 || ec 622 drivers/net/ethernet/broadcom/bcmsysport.c ec->rx_max_coalesced_frames > RDMA_INTR_THRESH_MASK || ec 623 drivers/net/ethernet/broadcom/bcmsysport.c ec->rx_coalesce_usecs > (RDMA_TIMEOUT_MASK * 8) + 1) ec 626 drivers/net/ethernet/broadcom/bcmsysport.c if ((ec->tx_coalesce_usecs == 0 && ec->tx_max_coalesced_frames == 0) || ec 627 drivers/net/ethernet/broadcom/bcmsysport.c (ec->rx_coalesce_usecs == 0 && ec->rx_max_coalesced_frames == 0) || ec 628 drivers/net/ethernet/broadcom/bcmsysport.c ec->use_adaptive_tx_coalesce) ec 632 drivers/net/ethernet/broadcom/bcmsysport.c bcm_sysport_set_tx_coalesce(&priv->tx_rings[i], ec); ec 634 drivers/net/ethernet/broadcom/bcmsysport.c priv->rx_coalesce_usecs = ec->rx_coalesce_usecs; ec 635 drivers/net/ethernet/broadcom/bcmsysport.c priv->rx_max_coalesced_frames = ec->rx_max_coalesced_frames; ec 639 drivers/net/ethernet/broadcom/bcmsysport.c if (ec->use_adaptive_rx_coalesce && !priv->dim.use_dim) { ec 645 drivers/net/ethernet/broadcom/bcmsysport.c priv->dim.use_dim = ec->use_adaptive_rx_coalesce; ec 600 drivers/net/ethernet/broadcom/genet/bcmgenet.c struct ethtool_coalesce *ec) ec 606 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->tx_max_coalesced_frames = ec 609 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->rx_max_coalesced_frames = ec 612 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->rx_coalesce_usecs = ec 617 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; ec 620 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; ec 641 drivers/net/ethernet/broadcom/genet/bcmgenet.c struct ethtool_coalesce *ec) ec 646 drivers/net/ethernet/broadcom/genet/bcmgenet.c ring->rx_coalesce_usecs = ec->rx_coalesce_usecs; ec 647 drivers/net/ethernet/broadcom/genet/bcmgenet.c ring->rx_max_coalesced_frames = ec->rx_max_coalesced_frames; ec 651 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) { ec 657 drivers/net/ethernet/broadcom/genet/bcmgenet.c ring->dim.use_dim = ec->use_adaptive_rx_coalesce; ec 662 drivers/net/ethernet/broadcom/genet/bcmgenet.c struct ethtool_coalesce *ec) ec 671 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (ec->tx_max_coalesced_frames > DMA_INTR_THRESHOLD_MASK || ec 672 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->tx_max_coalesced_frames == 0 || ec 673 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->rx_max_coalesced_frames > DMA_INTR_THRESHOLD_MASK || ec 674 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->rx_coalesce_usecs > (DMA_TIMEOUT_MASK * 8) + 1) ec 677 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (ec->rx_coalesce_usecs == 0 && ec->rx_max_coalesced_frames == 0) ec 684 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (ec->tx_coalesce_usecs || ec->tx_coalesce_usecs_high || ec 685 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->tx_coalesce_usecs_irq || ec->tx_coalesce_usecs_low || ec 686 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->use_adaptive_tx_coalesce) ec 694 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->tx_max_coalesced_frames, ec 697 drivers/net/ethernet/broadcom/genet/bcmgenet.c ec->tx_max_coalesced_frames, ec 701 drivers/net/ethernet/broadcom/genet/bcmgenet.c bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[i], ec); ec 702 drivers/net/ethernet/broadcom/genet/bcmgenet.c bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[DESC_INDEX], ec); ec 9434 drivers/net/ethernet/broadcom/tg3.c static void tg3_coal_tx_init(struct tg3 *tp, struct ethtool_coalesce *ec) ec 9439 drivers/net/ethernet/broadcom/tg3.c tw32(HOSTCC_TXCOL_TICKS, ec->tx_coalesce_usecs); ec 9440 drivers/net/ethernet/broadcom/tg3.c tw32(HOSTCC_TXMAX_FRAMES, ec->tx_max_coalesced_frames); ec 9441 drivers/net/ethernet/broadcom/tg3.c tw32(HOSTCC_TXCOAL_MAXF_INT, ec->tx_max_coalesced_frames_irq); ec 9451 drivers/net/ethernet/broadcom/tg3.c tw32(reg, ec->tx_coalesce_usecs); ec 9453 drivers/net/ethernet/broadcom/tg3.c tw32(reg, ec->tx_max_coalesced_frames); ec 9455 drivers/net/ethernet/broadcom/tg3.c tw32(reg, ec->tx_max_coalesced_frames_irq); ec 9466 drivers/net/ethernet/broadcom/tg3.c static void tg3_coal_rx_init(struct tg3 *tp, struct ethtool_coalesce *ec) ec 9472 drivers/net/ethernet/broadcom/tg3.c tw32(HOSTCC_RXCOL_TICKS, ec->rx_coalesce_usecs); ec 9473 drivers/net/ethernet/broadcom/tg3.c tw32(HOSTCC_RXMAX_FRAMES, ec->rx_max_coalesced_frames); ec 9474 drivers/net/ethernet/broadcom/tg3.c tw32(HOSTCC_RXCOAL_MAXF_INT, ec->rx_max_coalesced_frames_irq); ec 9486 drivers/net/ethernet/broadcom/tg3.c tw32(reg, ec->rx_coalesce_usecs); ec 9488 drivers/net/ethernet/broadcom/tg3.c tw32(reg, ec->rx_max_coalesced_frames); ec 9490 drivers/net/ethernet/broadcom/tg3.c tw32(reg, ec->rx_max_coalesced_frames_irq); ec 9500 drivers/net/ethernet/broadcom/tg3.c static void __tg3_set_coalesce(struct tg3 *tp, struct ethtool_coalesce *ec) ec 9502 drivers/net/ethernet/broadcom/tg3.c tg3_coal_tx_init(tp, ec); ec 9503 drivers/net/ethernet/broadcom/tg3.c tg3_coal_rx_init(tp, ec); ec 9506 drivers/net/ethernet/broadcom/tg3.c u32 val = ec->stats_block_coalesce_usecs; ec 9508 drivers/net/ethernet/broadcom/tg3.c tw32(HOSTCC_RXCOAL_TICK_INT, ec->rx_coalesce_usecs_irq); ec 9509 drivers/net/ethernet/broadcom/tg3.c tw32(HOSTCC_TXCOAL_TICK_INT, ec->tx_coalesce_usecs_irq); ec 14059 drivers/net/ethernet/broadcom/tg3.c static int tg3_get_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) ec 14063 drivers/net/ethernet/broadcom/tg3.c memcpy(ec, &tp->coal, sizeof(*ec)); ec 14067 drivers/net/ethernet/broadcom/tg3.c static int tg3_set_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) ec 14080 drivers/net/ethernet/broadcom/tg3.c if ((ec->rx_coalesce_usecs > MAX_RXCOL_TICKS) || ec 14081 drivers/net/ethernet/broadcom/tg3.c (!ec->rx_coalesce_usecs) || ec 14082 drivers/net/ethernet/broadcom/tg3.c (ec->tx_coalesce_usecs > MAX_TXCOL_TICKS) || ec 14083 drivers/net/ethernet/broadcom/tg3.c (!ec->tx_coalesce_usecs) || ec 14084 drivers/net/ethernet/broadcom/tg3.c (ec->rx_max_coalesced_frames > MAX_RXMAX_FRAMES) || ec 14085 drivers/net/ethernet/broadcom/tg3.c (ec->tx_max_coalesced_frames > MAX_TXMAX_FRAMES) || ec 14086 drivers/net/ethernet/broadcom/tg3.c (ec->rx_coalesce_usecs_irq > max_rxcoal_tick_int) || ec 14087 drivers/net/ethernet/broadcom/tg3.c (ec->tx_coalesce_usecs_irq > max_txcoal_tick_int) || ec 14088 drivers/net/ethernet/broadcom/tg3.c (ec->rx_max_coalesced_frames_irq > MAX_RXCOAL_MAXF_INT) || ec 14089 drivers/net/ethernet/broadcom/tg3.c (ec->tx_max_coalesced_frames_irq > MAX_TXCOAL_MAXF_INT) || ec 14090 drivers/net/ethernet/broadcom/tg3.c (ec->stats_block_coalesce_usecs > max_stat_coal_ticks) || ec 14091 drivers/net/ethernet/broadcom/tg3.c (ec->stats_block_coalesce_usecs < min_stat_coal_ticks)) ec 14095 drivers/net/ethernet/broadcom/tg3.c tp->coal.rx_coalesce_usecs = ec->rx_coalesce_usecs; ec 14096 drivers/net/ethernet/broadcom/tg3.c tp->coal.tx_coalesce_usecs = ec->tx_coalesce_usecs; ec 14097 drivers/net/ethernet/broadcom/tg3.c tp->coal.rx_max_coalesced_frames = ec->rx_max_coalesced_frames; ec 14098 drivers/net/ethernet/broadcom/tg3.c tp->coal.tx_max_coalesced_frames = ec->tx_max_coalesced_frames; ec 14099 drivers/net/ethernet/broadcom/tg3.c tp->coal.rx_coalesce_usecs_irq = ec->rx_coalesce_usecs_irq; ec 14100 drivers/net/ethernet/broadcom/tg3.c tp->coal.tx_coalesce_usecs_irq = ec->tx_coalesce_usecs_irq; ec 14101 drivers/net/ethernet/broadcom/tg3.c tp->coal.rx_max_coalesced_frames_irq = ec->rx_max_coalesced_frames_irq; ec 14102 drivers/net/ethernet/broadcom/tg3.c tp->coal.tx_max_coalesced_frames_irq = ec->tx_max_coalesced_frames_irq; ec 14103 drivers/net/ethernet/broadcom/tg3.c tp->coal.stats_block_coalesce_usecs = ec->stats_block_coalesce_usecs; ec 17590 drivers/net/ethernet/broadcom/tg3.c struct ethtool_coalesce *ec = &tp->coal; ec 17592 drivers/net/ethernet/broadcom/tg3.c memset(ec, 0, sizeof(*ec)); ec 17593 drivers/net/ethernet/broadcom/tg3.c ec->cmd = ETHTOOL_GCOALESCE; ec 17594 drivers/net/ethernet/broadcom/tg3.c ec->rx_coalesce_usecs = LOW_RXCOL_TICKS; ec 17595 drivers/net/ethernet/broadcom/tg3.c ec->tx_coalesce_usecs = LOW_TXCOL_TICKS; ec 17596 drivers/net/ethernet/broadcom/tg3.c ec->rx_max_coalesced_frames = LOW_RXMAX_FRAMES; ec 17597 drivers/net/ethernet/broadcom/tg3.c ec->tx_max_coalesced_frames = LOW_TXMAX_FRAMES; ec 17598 drivers/net/ethernet/broadcom/tg3.c ec->rx_coalesce_usecs_irq = DEFAULT_RXCOAL_TICK_INT; ec 17599 drivers/net/ethernet/broadcom/tg3.c ec->tx_coalesce_usecs_irq = DEFAULT_TXCOAL_TICK_INT; ec 17600 drivers/net/ethernet/broadcom/tg3.c ec->rx_max_coalesced_frames_irq = DEFAULT_RXCOAL_MAXF_INT; ec 17601 drivers/net/ethernet/broadcom/tg3.c ec->tx_max_coalesced_frames_irq = DEFAULT_TXCOAL_MAXF_INT; ec 17602 drivers/net/ethernet/broadcom/tg3.c ec->stats_block_coalesce_usecs = DEFAULT_STAT_COAL_TICKS; ec 17606 drivers/net/ethernet/broadcom/tg3.c ec->rx_coalesce_usecs = LOW_RXCOL_TICKS_CLRTCKS; ec 17607 drivers/net/ethernet/broadcom/tg3.c ec->rx_coalesce_usecs_irq = DEFAULT_RXCOAL_TICK_INT_CLRTCKS; ec 17608 drivers/net/ethernet/broadcom/tg3.c ec->tx_coalesce_usecs = LOW_TXCOL_TICKS_CLRTCKS; ec 17609 drivers/net/ethernet/broadcom/tg3.c ec->tx_coalesce_usecs_irq = DEFAULT_TXCOAL_TICK_INT_CLRTCKS; ec 17613 drivers/net/ethernet/broadcom/tg3.c ec->rx_coalesce_usecs_irq = 0; ec 17614 drivers/net/ethernet/broadcom/tg3.c ec->tx_coalesce_usecs_irq = 0; ec 17615 drivers/net/ethernet/broadcom/tg3.c ec->stats_block_coalesce_usecs = 0; ec 580 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c VPD_ENTRY(ec, 16); /* EC level */ ec 318 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h u8 ec[EC_LEN + 1]; ec 2753 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int ec, sn, pn, na; ec 2826 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c FIND_VPD_KW(ec, "EC"); ec 2834 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c memcpy(p->ec, vpd + ec, EC_LEN); ec 2835 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c strim(p->ec); ec 319 drivers/net/ethernet/cisco/enic/enic_ethtool.c struct ethtool_coalesce *ec) ec 323 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->rx_coalesce_usecs_high); ec 325 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->rx_coalesce_usecs_low); ec 327 drivers/net/ethernet/cisco/enic/enic_ethtool.c if (ec->rx_max_coalesced_frames || ec 328 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->rx_coalesce_usecs_irq || ec 329 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->rx_max_coalesced_frames_irq || ec 330 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->tx_max_coalesced_frames || ec 331 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->tx_coalesce_usecs_irq || ec 332 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->tx_max_coalesced_frames_irq || ec 333 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->stats_block_coalesce_usecs || ec 334 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->use_adaptive_tx_coalesce || ec 335 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->pkt_rate_low || ec 336 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->rx_max_coalesced_frames_low || ec 337 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->tx_coalesce_usecs_low || ec 338 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->tx_max_coalesced_frames_low || ec 339 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->pkt_rate_high || ec 340 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->rx_max_coalesced_frames_high || ec 341 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->tx_coalesce_usecs_high || ec 342 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->tx_max_coalesced_frames_high || ec 343 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->rate_sample_interval) ec 347 drivers/net/ethernet/cisco/enic/enic_ethtool.c ec->tx_coalesce_usecs) ec 350 drivers/net/ethernet/cisco/enic/enic_ethtool.c if ((ec->tx_coalesce_usecs > coalesce_usecs_max) || ec 351 drivers/net/ethernet/cisco/enic/enic_ethtool.c (ec->rx_coalesce_usecs > coalesce_usecs_max) || ec 352 drivers/net/ethernet/cisco/enic/enic_ethtool.c (ec->rx_coalesce_usecs_low > coalesce_usecs_max) || ec 353 drivers/net/ethernet/cisco/enic/enic_ethtool.c (ec->rx_coalesce_usecs_high > coalesce_usecs_max)) ec 357 drivers/net/ethernet/cisco/enic/enic_ethtool.c if (ec->rx_coalesce_usecs_high && ec 2549 drivers/net/ethernet/freescale/fec_main.c fec_enet_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *ec) ec 2556 drivers/net/ethernet/freescale/fec_main.c ec->rx_coalesce_usecs = fep->rx_time_itr; ec 2557 drivers/net/ethernet/freescale/fec_main.c ec->rx_max_coalesced_frames = fep->rx_pkts_itr; ec 2559 drivers/net/ethernet/freescale/fec_main.c ec->tx_coalesce_usecs = fep->tx_time_itr; ec 2560 drivers/net/ethernet/freescale/fec_main.c ec->tx_max_coalesced_frames = fep->tx_pkts_itr; ec 2566 drivers/net/ethernet/freescale/fec_main.c fec_enet_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *ec) ec 2575 drivers/net/ethernet/freescale/fec_main.c if (ec->rx_max_coalesced_frames > 255) { ec 2580 drivers/net/ethernet/freescale/fec_main.c if (ec->tx_max_coalesced_frames > 255) { ec 2585 drivers/net/ethernet/freescale/fec_main.c cycle = fec_enet_us_to_itr_clock(ndev, ec->rx_coalesce_usecs); ec 2591 drivers/net/ethernet/freescale/fec_main.c cycle = fec_enet_us_to_itr_clock(ndev, ec->tx_coalesce_usecs); ec 2597 drivers/net/ethernet/freescale/fec_main.c fep->rx_time_itr = ec->rx_coalesce_usecs; ec 2598 drivers/net/ethernet/freescale/fec_main.c fep->rx_pkts_itr = ec->rx_max_coalesced_frames; ec 2600 drivers/net/ethernet/freescale/fec_main.c fep->tx_time_itr = ec->tx_coalesce_usecs; ec 2601 drivers/net/ethernet/freescale/fec_main.c fep->tx_pkts_itr = ec->tx_max_coalesced_frames; ec 2610 drivers/net/ethernet/freescale/fec_main.c struct ethtool_coalesce ec; ec 2612 drivers/net/ethernet/freescale/fec_main.c ec.rx_coalesce_usecs = FEC_ITR_ICTT_DEFAULT; ec 2613 drivers/net/ethernet/freescale/fec_main.c ec.rx_max_coalesced_frames = FEC_ITR_ICFT_DEFAULT; ec 2615 drivers/net/ethernet/freescale/fec_main.c ec.tx_coalesce_usecs = FEC_ITR_ICTT_DEFAULT; ec 2616 drivers/net/ethernet/freescale/fec_main.c ec.tx_max_coalesced_frames = FEC_ITR_ICFT_DEFAULT; ec 2618 drivers/net/ethernet/freescale/fec_main.c fec_enet_set_coalesce(ndev, &ec); ec 799 drivers/net/ethernet/hisilicon/hip04_eth.c struct ethtool_coalesce *ec) ec 803 drivers/net/ethernet/hisilicon/hip04_eth.c ec->tx_coalesce_usecs = priv->tx_coalesce_usecs; ec 804 drivers/net/ethernet/hisilicon/hip04_eth.c ec->tx_max_coalesced_frames = priv->tx_coalesce_frames; ec 810 drivers/net/ethernet/hisilicon/hip04_eth.c struct ethtool_coalesce *ec) ec 815 drivers/net/ethernet/hisilicon/hip04_eth.c if ((ec->rx_max_coalesced_frames) || (ec->rx_coalesce_usecs_irq) || ec 816 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->rx_max_coalesced_frames_irq) || (ec->tx_coalesce_usecs_irq) || ec 817 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->use_adaptive_rx_coalesce) || (ec->use_adaptive_tx_coalesce) || ec 818 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->pkt_rate_low) || (ec->rx_coalesce_usecs_low) || ec 819 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->rx_max_coalesced_frames_low) || (ec->tx_coalesce_usecs_high) || ec 820 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->tx_max_coalesced_frames_low) || (ec->pkt_rate_high) || ec 821 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->tx_coalesce_usecs_low) || (ec->rx_coalesce_usecs_high) || ec 822 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->rx_max_coalesced_frames_high) || (ec->rx_coalesce_usecs) || ec 823 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->tx_max_coalesced_frames_irq) || ec 824 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->stats_block_coalesce_usecs) || ec 825 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->tx_max_coalesced_frames_high) || (ec->rate_sample_interval)) ec 828 drivers/net/ethernet/hisilicon/hip04_eth.c if ((ec->tx_coalesce_usecs > HIP04_MAX_TX_COALESCE_USECS || ec 829 drivers/net/ethernet/hisilicon/hip04_eth.c ec->tx_coalesce_usecs < HIP04_MIN_TX_COALESCE_USECS) || ec 830 drivers/net/ethernet/hisilicon/hip04_eth.c (ec->tx_max_coalesced_frames > HIP04_MAX_TX_COALESCE_FRAMES || ec 831 drivers/net/ethernet/hisilicon/hip04_eth.c ec->tx_max_coalesced_frames < HIP04_MIN_TX_COALESCE_FRAMES)) ec 834 drivers/net/ethernet/hisilicon/hip04_eth.c priv->tx_coalesce_usecs = ec->tx_coalesce_usecs; ec 835 drivers/net/ethernet/hisilicon/hip04_eth.c priv->tx_coalesce_frames = ec->tx_max_coalesced_frames; ec 734 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct ethtool_coalesce *ec) ec 741 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ec->use_adaptive_rx_coalesce = priv->ae_handle->coal_adapt_en; ec 742 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ec->use_adaptive_tx_coalesce = priv->ae_handle->coal_adapt_en; ec 749 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->tx_coalesce_usecs, ec 750 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->rx_coalesce_usecs); ec 754 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->tx_max_coalesced_frames, ec 755 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->rx_max_coalesced_frames); ec 758 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->tx_max_coalesced_frames_low, ec 759 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->rx_max_coalesced_frames_low, ec 760 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->tx_max_coalesced_frames_high, ec 761 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->rx_max_coalesced_frames_high, ec 762 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->tx_coalesce_usecs_low, ec 763 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->rx_coalesce_usecs_low, ec 764 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->tx_coalesce_usecs_high, ec 765 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c &ec->rx_coalesce_usecs_high); ec 778 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct ethtool_coalesce *ec) ec 786 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (ec->tx_coalesce_usecs != ec->rx_coalesce_usecs) ec 793 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (ec->use_adaptive_rx_coalesce != priv->ae_handle->coal_adapt_en) ec 794 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c priv->ae_handle->coal_adapt_en = ec->use_adaptive_rx_coalesce; ec 797 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ec->rx_coalesce_usecs); ec 800 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ec->tx_max_coalesced_frames, ec 801 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ec->rx_max_coalesced_frames); ec 986 drivers/net/ethernet/i825xx/ether1.c ether1_probe(struct expansion_card *ec, const struct ecard_id *id) ec 993 drivers/net/ethernet/i825xx/ether1.c ret = ecard_request_resources(ec); ec 1003 drivers/net/ethernet/i825xx/ether1.c SET_NETDEV_DEV(dev, &ec->dev); ec 1005 drivers/net/ethernet/i825xx/ether1.c dev->irq = ec->irq; ec 1006 drivers/net/ethernet/i825xx/ether1.c priv(dev)->base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); ec 1033 drivers/net/ethernet/i825xx/ether1.c dev->name, ec->slot_no, dev->dev_addr); ec 1035 drivers/net/ethernet/i825xx/ether1.c ecard_set_drvdata(ec, dev); ec 1041 drivers/net/ethernet/i825xx/ether1.c ecard_release_resources(ec); ec 1046 drivers/net/ethernet/i825xx/ether1.c static void ether1_remove(struct expansion_card *ec) ec 1048 drivers/net/ethernet/i825xx/ether1.c struct net_device *dev = ecard_get_drvdata(ec); ec 1050 drivers/net/ethernet/i825xx/ether1.c ecard_set_drvdata(ec, NULL); ec 1054 drivers/net/ethernet/i825xx/ether1.c ecard_release_resources(ec); ec 1137 drivers/net/ethernet/ibm/ehea/ehea_main.c u8 ec; ec 1142 drivers/net/ethernet/ibm/ehea/ehea_main.c ec = EHEA_BMASK_GET(NEQE_EVENT_CODE, eqe); ec 1151 drivers/net/ethernet/ibm/ehea/ehea_main.c switch (ec) { ec 1210 drivers/net/ethernet/ibm/ehea/ehea_main.c netdev_err(dev, "unknown event code %x, eqe=0x%llX\n", ec, eqe); ec 1744 drivers/net/ethernet/intel/e1000/e1000_ethtool.c struct ethtool_coalesce *ec) ec 1752 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ec->rx_coalesce_usecs = adapter->itr_setting; ec 1754 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; ec 1760 drivers/net/ethernet/intel/e1000/e1000_ethtool.c struct ethtool_coalesce *ec) ec 1768 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || ec 1769 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ((ec->rx_coalesce_usecs > 4) && ec 1770 drivers/net/ethernet/intel/e1000/e1000_ethtool.c (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || ec 1771 drivers/net/ethernet/intel/e1000/e1000_ethtool.c (ec->rx_coalesce_usecs == 2)) ec 1774 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (ec->rx_coalesce_usecs == 4) { ec 1776 drivers/net/ethernet/intel/e1000/e1000_ethtool.c } else if (ec->rx_coalesce_usecs <= 3) { ec 1778 drivers/net/ethernet/intel/e1000/e1000_ethtool.c adapter->itr_setting = ec->rx_coalesce_usecs; ec 1780 drivers/net/ethernet/intel/e1000/e1000_ethtool.c adapter->itr = (1000000 / ec->rx_coalesce_usecs); ec 1982 drivers/net/ethernet/intel/e1000e/ethtool.c struct ethtool_coalesce *ec) ec 1987 drivers/net/ethernet/intel/e1000e/ethtool.c ec->rx_coalesce_usecs = adapter->itr_setting; ec 1989 drivers/net/ethernet/intel/e1000e/ethtool.c ec->rx_coalesce_usecs = 1000000 / adapter->itr_setting; ec 1995 drivers/net/ethernet/intel/e1000e/ethtool.c struct ethtool_coalesce *ec) ec 1999 drivers/net/ethernet/intel/e1000e/ethtool.c if ((ec->rx_coalesce_usecs > E1000_MAX_ITR_USECS) || ec 2000 drivers/net/ethernet/intel/e1000e/ethtool.c ((ec->rx_coalesce_usecs > 4) && ec 2001 drivers/net/ethernet/intel/e1000e/ethtool.c (ec->rx_coalesce_usecs < E1000_MIN_ITR_USECS)) || ec 2002 drivers/net/ethernet/intel/e1000e/ethtool.c (ec->rx_coalesce_usecs == 2)) ec 2005 drivers/net/ethernet/intel/e1000e/ethtool.c if (ec->rx_coalesce_usecs == 4) { ec 2008 drivers/net/ethernet/intel/e1000e/ethtool.c } else if (ec->rx_coalesce_usecs <= 3) { ec 2010 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->itr_setting = ec->rx_coalesce_usecs; ec 2012 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->itr = (1000000 / ec->rx_coalesce_usecs); ec 636 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c struct ethtool_coalesce *ec) ec 640 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c ec->use_adaptive_tx_coalesce = ITR_IS_ADAPTIVE(interface->tx_itr); ec 641 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c ec->tx_coalesce_usecs = interface->tx_itr & ~FM10K_ITR_ADAPTIVE; ec 643 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c ec->use_adaptive_rx_coalesce = ITR_IS_ADAPTIVE(interface->rx_itr); ec 644 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c ec->rx_coalesce_usecs = interface->rx_itr & ~FM10K_ITR_ADAPTIVE; ec 650 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c struct ethtool_coalesce *ec) ec 657 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c if ((ec->rx_coalesce_usecs > FM10K_ITR_MAX) || ec 658 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c (ec->tx_coalesce_usecs > FM10K_ITR_MAX)) ec 662 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c tx_itr = ec->tx_coalesce_usecs; ec 663 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c rx_itr = ec->rx_coalesce_usecs; ec 666 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c if (ec->use_adaptive_tx_coalesce) ec 669 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c if (ec->use_adaptive_rx_coalesce) ec 2730 drivers/net/ethernet/intel/i40e/i40e_ethtool.c struct ethtool_coalesce *ec, ec 2737 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->tx_max_coalesced_frames_irq = vsi->work_limit; ec 2738 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->rx_max_coalesced_frames_irq = vsi->work_limit; ec 2752 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->use_adaptive_rx_coalesce = 1; ec 2755 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->use_adaptive_tx_coalesce = 1; ec 2757 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->rx_coalesce_usecs = rx_ring->itr_setting & ~I40E_ITR_DYNAMIC; ec 2758 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->tx_coalesce_usecs = tx_ring->itr_setting & ~I40E_ITR_DYNAMIC; ec 2766 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->rx_coalesce_usecs_high = vsi->int_rate_limit; ec 2767 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->tx_coalesce_usecs_high = vsi->int_rate_limit; ec 2782 drivers/net/ethernet/intel/i40e/i40e_ethtool.c struct ethtool_coalesce *ec) ec 2784 drivers/net/ethernet/intel/i40e/i40e_ethtool.c return __i40e_get_coalesce(netdev, ec, -1); ec 2796 drivers/net/ethernet/intel/i40e/i40e_ethtool.c struct ethtool_coalesce *ec) ec 2798 drivers/net/ethernet/intel/i40e/i40e_ethtool.c return __i40e_get_coalesce(netdev, ec, queue); ec 2810 drivers/net/ethernet/intel/i40e/i40e_ethtool.c struct ethtool_coalesce *ec, ec 2822 drivers/net/ethernet/intel/i40e/i40e_ethtool.c rx_ring->itr_setting = ITR_REG_ALIGN(ec->rx_coalesce_usecs); ec 2823 drivers/net/ethernet/intel/i40e/i40e_ethtool.c tx_ring->itr_setting = ITR_REG_ALIGN(ec->tx_coalesce_usecs); ec 2825 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->use_adaptive_rx_coalesce) ec 2830 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->use_adaptive_tx_coalesce) ec 2859 drivers/net/ethernet/intel/i40e/i40e_ethtool.c struct ethtool_coalesce *ec, ec 2868 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->tx_max_coalesced_frames_irq || ec->rx_max_coalesced_frames_irq) ec 2869 drivers/net/ethernet/intel/i40e/i40e_ethtool.c vsi->work_limit = ec->tx_max_coalesced_frames_irq; ec 2887 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->tx_coalesce_usecs_high != vsi->int_rate_limit) { ec 2892 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->rx_coalesce_usecs_high > INTRL_REG_TO_USEC(I40E_MAX_INTRL)) { ec 2898 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->rx_coalesce_usecs != cur_rx_itr && ec 2899 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->use_adaptive_rx_coalesce) { ec 2904 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->rx_coalesce_usecs > I40E_MAX_ITR) { ec 2909 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->tx_coalesce_usecs != cur_tx_itr && ec 2910 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->use_adaptive_tx_coalesce) { ec 2915 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->tx_coalesce_usecs > I40E_MAX_ITR) { ec 2920 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->use_adaptive_rx_coalesce && !cur_rx_itr) ec 2921 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->rx_coalesce_usecs = I40E_MIN_ITR; ec 2923 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ec->use_adaptive_tx_coalesce && !cur_tx_itr) ec 2924 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ec->tx_coalesce_usecs = I40E_MIN_ITR; ec 2926 drivers/net/ethernet/intel/i40e/i40e_ethtool.c intrl_reg = i40e_intrl_usec_to_reg(ec->rx_coalesce_usecs_high); ec 2928 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (vsi->int_rate_limit != ec->rx_coalesce_usecs_high) { ec 2938 drivers/net/ethernet/intel/i40e/i40e_ethtool.c i40e_set_itr_per_queue(vsi, ec, i); ec 2940 drivers/net/ethernet/intel/i40e/i40e_ethtool.c i40e_set_itr_per_queue(vsi, ec, queue); ec 2954 drivers/net/ethernet/intel/i40e/i40e_ethtool.c struct ethtool_coalesce *ec) ec 2956 drivers/net/ethernet/intel/i40e/i40e_ethtool.c return __i40e_set_coalesce(netdev, ec, -1); ec 2968 drivers/net/ethernet/intel/i40e/i40e_ethtool.c struct ethtool_coalesce *ec) ec 2970 drivers/net/ethernet/intel/i40e/i40e_ethtool.c return __i40e_set_coalesce(netdev, ec, queue); ec 642 drivers/net/ethernet/intel/iavf/iavf_ethtool.c struct ethtool_coalesce *ec, int queue) ec 648 drivers/net/ethernet/intel/iavf/iavf_ethtool.c ec->tx_max_coalesced_frames = vsi->work_limit; ec 649 drivers/net/ethernet/intel/iavf/iavf_ethtool.c ec->rx_max_coalesced_frames = vsi->work_limit; ec 663 drivers/net/ethernet/intel/iavf/iavf_ethtool.c ec->use_adaptive_rx_coalesce = 1; ec 666 drivers/net/ethernet/intel/iavf/iavf_ethtool.c ec->use_adaptive_tx_coalesce = 1; ec 668 drivers/net/ethernet/intel/iavf/iavf_ethtool.c ec->rx_coalesce_usecs = rx_ring->itr_setting & ~IAVF_ITR_DYNAMIC; ec 669 drivers/net/ethernet/intel/iavf/iavf_ethtool.c ec->tx_coalesce_usecs = tx_ring->itr_setting & ~IAVF_ITR_DYNAMIC; ec 685 drivers/net/ethernet/intel/iavf/iavf_ethtool.c struct ethtool_coalesce *ec) ec 687 drivers/net/ethernet/intel/iavf/iavf_ethtool.c return __iavf_get_coalesce(netdev, ec, -1); ec 699 drivers/net/ethernet/intel/iavf/iavf_ethtool.c struct ethtool_coalesce *ec) ec 701 drivers/net/ethernet/intel/iavf/iavf_ethtool.c return __iavf_get_coalesce(netdev, ec, queue); ec 713 drivers/net/ethernet/intel/iavf/iavf_ethtool.c struct ethtool_coalesce *ec, int queue) ec 719 drivers/net/ethernet/intel/iavf/iavf_ethtool.c rx_ring->itr_setting = ITR_REG_ALIGN(ec->rx_coalesce_usecs); ec 720 drivers/net/ethernet/intel/iavf/iavf_ethtool.c tx_ring->itr_setting = ITR_REG_ALIGN(ec->tx_coalesce_usecs); ec 723 drivers/net/ethernet/intel/iavf/iavf_ethtool.c if (!ec->use_adaptive_rx_coalesce) ec 727 drivers/net/ethernet/intel/iavf/iavf_ethtool.c if (!ec->use_adaptive_tx_coalesce) ec 751 drivers/net/ethernet/intel/iavf/iavf_ethtool.c struct ethtool_coalesce *ec, int queue) ec 757 drivers/net/ethernet/intel/iavf/iavf_ethtool.c if (ec->tx_max_coalesced_frames_irq || ec->rx_max_coalesced_frames_irq) ec 758 drivers/net/ethernet/intel/iavf/iavf_ethtool.c vsi->work_limit = ec->tx_max_coalesced_frames_irq; ec 760 drivers/net/ethernet/intel/iavf/iavf_ethtool.c if (ec->rx_coalesce_usecs == 0) { ec 761 drivers/net/ethernet/intel/iavf/iavf_ethtool.c if (ec->use_adaptive_rx_coalesce) ec 763 drivers/net/ethernet/intel/iavf/iavf_ethtool.c } else if ((ec->rx_coalesce_usecs < IAVF_MIN_ITR) || ec 764 drivers/net/ethernet/intel/iavf/iavf_ethtool.c (ec->rx_coalesce_usecs > IAVF_MAX_ITR)) { ec 767 drivers/net/ethernet/intel/iavf/iavf_ethtool.c } else if (ec->tx_coalesce_usecs == 0) { ec 768 drivers/net/ethernet/intel/iavf/iavf_ethtool.c if (ec->use_adaptive_tx_coalesce) ec 770 drivers/net/ethernet/intel/iavf/iavf_ethtool.c } else if ((ec->tx_coalesce_usecs < IAVF_MIN_ITR) || ec 771 drivers/net/ethernet/intel/iavf/iavf_ethtool.c (ec->tx_coalesce_usecs > IAVF_MAX_ITR)) { ec 781 drivers/net/ethernet/intel/iavf/iavf_ethtool.c iavf_set_itr_per_queue(adapter, ec, i); ec 783 drivers/net/ethernet/intel/iavf/iavf_ethtool.c iavf_set_itr_per_queue(adapter, ec, queue); ec 801 drivers/net/ethernet/intel/iavf/iavf_ethtool.c struct ethtool_coalesce *ec) ec 803 drivers/net/ethernet/intel/iavf/iavf_ethtool.c return __iavf_set_coalesce(netdev, ec, -1); ec 815 drivers/net/ethernet/intel/iavf/iavf_ethtool.c struct ethtool_coalesce *ec) ec 817 drivers/net/ethernet/intel/iavf/iavf_ethtool.c return __iavf_set_coalesce(netdev, ec, queue); ec 3106 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_get_rc_coalesce(struct ethtool_coalesce *ec, enum ice_container_type c_type, ec 3118 drivers/net/ethernet/intel/ice/ice_ethtool.c ec->use_adaptive_rx_coalesce = ITR_IS_DYNAMIC(rc->itr_setting); ec 3119 drivers/net/ethernet/intel/ice/ice_ethtool.c ec->rx_coalesce_usecs = rc->itr_setting & ~ICE_ITR_DYNAMIC; ec 3120 drivers/net/ethernet/intel/ice/ice_ethtool.c ec->rx_coalesce_usecs_high = rc->ring->q_vector->intrl; ec 3123 drivers/net/ethernet/intel/ice/ice_ethtool.c ec->use_adaptive_tx_coalesce = ITR_IS_DYNAMIC(rc->itr_setting); ec 3124 drivers/net/ethernet/intel/ice/ice_ethtool.c ec->tx_coalesce_usecs = rc->itr_setting & ~ICE_ITR_DYNAMIC; ec 3145 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_get_q_coalesce(struct ice_vsi *vsi, struct ethtool_coalesce *ec, int q_num) ec 3148 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_get_rc_coalesce(ec, ICE_RX_CONTAINER, ec 3151 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_get_rc_coalesce(ec, ICE_TX_CONTAINER, ec 3155 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_get_rc_coalesce(ec, ICE_RX_CONTAINER, ec 3159 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_get_rc_coalesce(ec, ICE_TX_CONTAINER, ec 3179 drivers/net/ethernet/intel/ice/ice_ethtool.c __ice_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec, ec 3188 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_get_q_coalesce(vsi, ec, q_num)) ec 3195 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec) ec 3197 drivers/net/ethernet/intel/ice/ice_ethtool.c return __ice_get_coalesce(netdev, ec, -1); ec 3202 drivers/net/ethernet/intel/ice/ice_ethtool.c struct ethtool_coalesce *ec) ec 3204 drivers/net/ethernet/intel/ice/ice_ethtool.c return __ice_get_coalesce(netdev, ec, q_num); ec 3221 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_set_rc_coalesce(enum ice_container_type c_type, struct ethtool_coalesce *ec, ec 3234 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ec->rx_coalesce_usecs_high > ICE_MAX_INTRL || ec 3235 drivers/net/ethernet/intel/ice/ice_ethtool.c (ec->rx_coalesce_usecs_high && ec 3236 drivers/net/ethernet/intel/ice/ice_ethtool.c ec->rx_coalesce_usecs_high < pf->hw.intrl_gran)) { ec 3243 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ec->rx_coalesce_usecs_high != rc->ring->q_vector->intrl) { ec 3244 drivers/net/ethernet/intel/ice/ice_ethtool.c rc->ring->q_vector->intrl = ec->rx_coalesce_usecs_high; ec 3246 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_intrl_usec_to_reg(ec->rx_coalesce_usecs_high, ec 3250 drivers/net/ethernet/intel/ice/ice_ethtool.c use_adaptive_coalesce = ec->use_adaptive_rx_coalesce; ec 3251 drivers/net/ethernet/intel/ice/ice_ethtool.c coalesce_usecs = ec->rx_coalesce_usecs; ec 3255 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ec->tx_coalesce_usecs_high) { ec 3262 drivers/net/ethernet/intel/ice/ice_ethtool.c use_adaptive_coalesce = ec->use_adaptive_tx_coalesce; ec 3263 drivers/net/ethernet/intel/ice/ice_ethtool.c coalesce_usecs = ec->tx_coalesce_usecs; ec 3318 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_set_q_coalesce(struct ice_vsi *vsi, struct ethtool_coalesce *ec, int q_num) ec 3321 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_set_rc_coalesce(ICE_RX_CONTAINER, ec, ec 3326 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_set_rc_coalesce(ICE_TX_CONTAINER, ec, ec 3331 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_set_rc_coalesce(ICE_RX_CONTAINER, ec, ec 3336 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_set_rc_coalesce(ICE_TX_CONTAINER, ec, ec 3357 drivers/net/ethernet/intel/ice/ice_ethtool.c __ice_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec, ec 3374 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_set_q_coalesce(vsi, ec, v_idx)) ec 3380 drivers/net/ethernet/intel/ice/ice_ethtool.c if (ice_set_q_coalesce(vsi, ec, q_num)) ec 3389 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec) ec 3391 drivers/net/ethernet/intel/ice/ice_ethtool.c return __ice_set_coalesce(netdev, ec, -1); ec 3396 drivers/net/ethernet/intel/ice/ice_ethtool.c struct ethtool_coalesce *ec) ec 3398 drivers/net/ethernet/intel/ice/ice_ethtool.c return __ice_set_coalesce(netdev, ec, q_num); ec 2173 drivers/net/ethernet/intel/igb/igb_ethtool.c struct ethtool_coalesce *ec) ec 2178 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ec->rx_max_coalesced_frames || ec 2179 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rx_coalesce_usecs_irq || ec 2180 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rx_max_coalesced_frames_irq || ec 2181 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->tx_max_coalesced_frames || ec 2182 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->tx_coalesce_usecs_irq || ec 2183 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->stats_block_coalesce_usecs || ec 2184 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->use_adaptive_rx_coalesce || ec 2185 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->use_adaptive_tx_coalesce || ec 2186 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->pkt_rate_low || ec 2187 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rx_coalesce_usecs_low || ec 2188 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rx_max_coalesced_frames_low || ec 2189 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->tx_coalesce_usecs_low || ec 2190 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->tx_max_coalesced_frames_low || ec 2191 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->pkt_rate_high || ec 2192 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rx_coalesce_usecs_high || ec 2193 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rx_max_coalesced_frames_high || ec 2194 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->tx_coalesce_usecs_high || ec 2195 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->tx_max_coalesced_frames_high || ec 2196 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rate_sample_interval) ec 2199 drivers/net/ethernet/intel/igb/igb_ethtool.c if ((ec->rx_coalesce_usecs > IGB_MAX_ITR_USECS) || ec 2200 drivers/net/ethernet/intel/igb/igb_ethtool.c ((ec->rx_coalesce_usecs > 3) && ec 2201 drivers/net/ethernet/intel/igb/igb_ethtool.c (ec->rx_coalesce_usecs < IGB_MIN_ITR_USECS)) || ec 2202 drivers/net/ethernet/intel/igb/igb_ethtool.c (ec->rx_coalesce_usecs == 2)) ec 2205 drivers/net/ethernet/intel/igb/igb_ethtool.c if ((ec->tx_coalesce_usecs > IGB_MAX_ITR_USECS) || ec 2206 drivers/net/ethernet/intel/igb/igb_ethtool.c ((ec->tx_coalesce_usecs > 3) && ec 2207 drivers/net/ethernet/intel/igb/igb_ethtool.c (ec->tx_coalesce_usecs < IGB_MIN_ITR_USECS)) || ec 2208 drivers/net/ethernet/intel/igb/igb_ethtool.c (ec->tx_coalesce_usecs == 2)) ec 2211 drivers/net/ethernet/intel/igb/igb_ethtool.c if ((adapter->flags & IGB_FLAG_QUEUE_PAIRS) && ec->tx_coalesce_usecs) ec 2215 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ec->rx_coalesce_usecs == 0) { ec 2221 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ec->rx_coalesce_usecs && ec->rx_coalesce_usecs <= 3) ec 2222 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->rx_itr_setting = ec->rx_coalesce_usecs; ec 2224 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; ec 2229 drivers/net/ethernet/intel/igb/igb_ethtool.c else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) ec 2230 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->tx_itr_setting = ec->tx_coalesce_usecs; ec 2232 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; ec 2250 drivers/net/ethernet/intel/igb/igb_ethtool.c struct ethtool_coalesce *ec) ec 2255 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rx_coalesce_usecs = adapter->rx_itr_setting; ec 2257 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->rx_coalesce_usecs = adapter->rx_itr_setting >> 2; ec 2261 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->tx_coalesce_usecs = adapter->tx_itr_setting; ec 2263 drivers/net/ethernet/intel/igb/igb_ethtool.c ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; ec 319 drivers/net/ethernet/intel/igbvf/ethtool.c struct ethtool_coalesce *ec) ec 324 drivers/net/ethernet/intel/igbvf/ethtool.c ec->rx_coalesce_usecs = adapter->requested_itr; ec 326 drivers/net/ethernet/intel/igbvf/ethtool.c ec->rx_coalesce_usecs = adapter->current_itr >> 2; ec 332 drivers/net/ethernet/intel/igbvf/ethtool.c struct ethtool_coalesce *ec) ec 337 drivers/net/ethernet/intel/igbvf/ethtool.c if ((ec->rx_coalesce_usecs >= IGBVF_MIN_ITR_USECS) && ec 338 drivers/net/ethernet/intel/igbvf/ethtool.c (ec->rx_coalesce_usecs <= IGBVF_MAX_ITR_USECS)) { ec 339 drivers/net/ethernet/intel/igbvf/ethtool.c adapter->current_itr = ec->rx_coalesce_usecs << 2; ec 342 drivers/net/ethernet/intel/igbvf/ethtool.c } else if ((ec->rx_coalesce_usecs == 3) || ec 343 drivers/net/ethernet/intel/igbvf/ethtool.c (ec->rx_coalesce_usecs == 2)) { ec 345 drivers/net/ethernet/intel/igbvf/ethtool.c adapter->requested_itr = ec->rx_coalesce_usecs; ec 346 drivers/net/ethernet/intel/igbvf/ethtool.c } else if (ec->rx_coalesce_usecs == 0) { ec 780 drivers/net/ethernet/intel/igc/igc_ethtool.c struct ethtool_coalesce *ec) ec 785 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_coalesce_usecs = adapter->rx_itr_setting; ec 787 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_coalesce_usecs = adapter->rx_itr_setting >> 2; ec 791 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_coalesce_usecs = adapter->tx_itr_setting; ec 793 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; ec 800 drivers/net/ethernet/intel/igc/igc_ethtool.c struct ethtool_coalesce *ec) ec 805 drivers/net/ethernet/intel/igc/igc_ethtool.c if (ec->rx_max_coalesced_frames || ec 806 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_coalesce_usecs_irq || ec 807 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_max_coalesced_frames_irq || ec 808 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_max_coalesced_frames || ec 809 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_coalesce_usecs_irq || ec 810 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->stats_block_coalesce_usecs || ec 811 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->use_adaptive_rx_coalesce || ec 812 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->use_adaptive_tx_coalesce || ec 813 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->pkt_rate_low || ec 814 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_coalesce_usecs_low || ec 815 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_max_coalesced_frames_low || ec 816 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_coalesce_usecs_low || ec 817 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_max_coalesced_frames_low || ec 818 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->pkt_rate_high || ec 819 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_coalesce_usecs_high || ec 820 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_max_coalesced_frames_high || ec 821 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_coalesce_usecs_high || ec 822 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_max_coalesced_frames_high || ec 823 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rate_sample_interval) ec 826 drivers/net/ethernet/intel/igc/igc_ethtool.c if (ec->rx_coalesce_usecs > IGC_MAX_ITR_USECS || ec 827 drivers/net/ethernet/intel/igc/igc_ethtool.c (ec->rx_coalesce_usecs > 3 && ec 828 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_coalesce_usecs < IGC_MIN_ITR_USECS) || ec 829 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->rx_coalesce_usecs == 2) ec 832 drivers/net/ethernet/intel/igc/igc_ethtool.c if (ec->tx_coalesce_usecs > IGC_MAX_ITR_USECS || ec 833 drivers/net/ethernet/intel/igc/igc_ethtool.c (ec->tx_coalesce_usecs > 3 && ec 834 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_coalesce_usecs < IGC_MIN_ITR_USECS) || ec 835 drivers/net/ethernet/intel/igc/igc_ethtool.c ec->tx_coalesce_usecs == 2) ec 838 drivers/net/ethernet/intel/igc/igc_ethtool.c if ((adapter->flags & IGC_FLAG_QUEUE_PAIRS) && ec->tx_coalesce_usecs) ec 842 drivers/net/ethernet/intel/igc/igc_ethtool.c if (ec->rx_coalesce_usecs == 0) { ec 848 drivers/net/ethernet/intel/igc/igc_ethtool.c if (ec->rx_coalesce_usecs && ec->rx_coalesce_usecs <= 3) ec 849 drivers/net/ethernet/intel/igc/igc_ethtool.c adapter->rx_itr_setting = ec->rx_coalesce_usecs; ec 851 drivers/net/ethernet/intel/igc/igc_ethtool.c adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; ec 856 drivers/net/ethernet/intel/igc/igc_ethtool.c else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) ec 857 drivers/net/ethernet/intel/igc/igc_ethtool.c adapter->tx_itr_setting = ec->tx_coalesce_usecs; ec 859 drivers/net/ethernet/intel/igc/igc_ethtool.c adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; ec 2274 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c struct ethtool_coalesce *ec) ec 2280 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ec->rx_coalesce_usecs = adapter->rx_itr_setting; ec 2282 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ec->rx_coalesce_usecs = adapter->rx_itr_setting >> 2; ec 2290 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ec->tx_coalesce_usecs = adapter->tx_itr_setting; ec 2292 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; ec 2328 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c struct ethtool_coalesce *ec) ec 2338 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ec->tx_coalesce_usecs) ec 2345 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if ((ec->rx_coalesce_usecs > (IXGBE_MAX_EITR >> 2)) || ec 2346 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c (ec->tx_coalesce_usecs > (IXGBE_MAX_EITR >> 2))) ec 2349 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ec->rx_coalesce_usecs > 1) ec 2350 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; ec 2352 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->rx_itr_setting = ec->rx_coalesce_usecs; ec 2359 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ec->tx_coalesce_usecs > 1) ec 2360 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; ec 2362 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->tx_itr_setting = ec->tx_coalesce_usecs; ec 792 drivers/net/ethernet/intel/ixgbevf/ethtool.c struct ethtool_coalesce *ec) ec 798 drivers/net/ethernet/intel/ixgbevf/ethtool.c ec->rx_coalesce_usecs = adapter->rx_itr_setting; ec 800 drivers/net/ethernet/intel/ixgbevf/ethtool.c ec->rx_coalesce_usecs = adapter->rx_itr_setting >> 2; ec 808 drivers/net/ethernet/intel/ixgbevf/ethtool.c ec->tx_coalesce_usecs = adapter->tx_itr_setting; ec 810 drivers/net/ethernet/intel/ixgbevf/ethtool.c ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; ec 816 drivers/net/ethernet/intel/ixgbevf/ethtool.c struct ethtool_coalesce *ec) ec 825 drivers/net/ethernet/intel/ixgbevf/ethtool.c adapter->q_vector[0]->rx.count && ec->tx_coalesce_usecs) ec 828 drivers/net/ethernet/intel/ixgbevf/ethtool.c if ((ec->rx_coalesce_usecs > (IXGBE_MAX_EITR >> 2)) || ec 829 drivers/net/ethernet/intel/ixgbevf/ethtool.c (ec->tx_coalesce_usecs > (IXGBE_MAX_EITR >> 2))) ec 832 drivers/net/ethernet/intel/ixgbevf/ethtool.c if (ec->rx_coalesce_usecs > 1) ec 833 drivers/net/ethernet/intel/ixgbevf/ethtool.c adapter->rx_itr_setting = ec->rx_coalesce_usecs << 2; ec 835 drivers/net/ethernet/intel/ixgbevf/ethtool.c adapter->rx_itr_setting = ec->rx_coalesce_usecs; ec 842 drivers/net/ethernet/intel/ixgbevf/ethtool.c if (ec->tx_coalesce_usecs > 1) ec 843 drivers/net/ethernet/intel/ixgbevf/ethtool.c adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; ec 845 drivers/net/ethernet/intel/ixgbevf/ethtool.c adapter->tx_itr_setting = ec->tx_coalesce_usecs; ec 1619 drivers/net/ethernet/marvell/mv643xx_eth.c mv643xx_eth_get_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) ec 1623 drivers/net/ethernet/marvell/mv643xx_eth.c ec->rx_coalesce_usecs = get_rx_coal(mp); ec 1624 drivers/net/ethernet/marvell/mv643xx_eth.c ec->tx_coalesce_usecs = get_tx_coal(mp); ec 1630 drivers/net/ethernet/marvell/mv643xx_eth.c mv643xx_eth_set_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) ec 1634 drivers/net/ethernet/marvell/mv643xx_eth.c set_rx_coal(mp, ec->rx_coalesce_usecs); ec 1635 drivers/net/ethernet/marvell/mv643xx_eth.c set_tx_coal(mp, ec->tx_coalesce_usecs); ec 992 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c struct ethtool_coalesce *ec) ec 999 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->rx_coalesce_usecs = nn->rx_coalesce_usecs; ec 1000 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->rx_max_coalesced_frames = nn->rx_coalesce_max_frames; ec 1001 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->tx_coalesce_usecs = nn->tx_coalesce_usecs; ec 1002 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->tx_max_coalesced_frames = nn->tx_coalesce_max_frames; ec 1241 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c struct ethtool_coalesce *ec) ec 1246 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (ec->rx_coalesce_usecs_irq || ec 1247 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->rx_max_coalesced_frames_irq || ec 1248 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->tx_coalesce_usecs_irq || ec 1249 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->tx_max_coalesced_frames_irq || ec 1250 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->stats_block_coalesce_usecs || ec 1251 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->use_adaptive_rx_coalesce || ec 1252 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->use_adaptive_tx_coalesce || ec 1253 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->pkt_rate_low || ec 1254 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->rx_coalesce_usecs_low || ec 1255 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->rx_max_coalesced_frames_low || ec 1256 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->tx_coalesce_usecs_low || ec 1257 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->tx_max_coalesced_frames_low || ec 1258 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->pkt_rate_high || ec 1259 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->rx_coalesce_usecs_high || ec 1260 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->rx_max_coalesced_frames_high || ec 1261 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->tx_coalesce_usecs_high || ec 1262 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->tx_max_coalesced_frames_high || ec 1263 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c ec->rate_sample_interval) ec 1289 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!ec->rx_coalesce_usecs && !ec->rx_max_coalesced_frames) ec 1292 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!ec->tx_coalesce_usecs && !ec->tx_max_coalesced_frames) ec 1295 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (ec->rx_coalesce_usecs * factor >= ((1 << 16) - 1)) ec 1298 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (ec->tx_coalesce_usecs * factor >= ((1 << 16) - 1)) ec 1301 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (ec->rx_max_coalesced_frames >= ((1 << 16) - 1)) ec 1304 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (ec->tx_max_coalesced_frames >= ((1 << 16) - 1)) ec 1308 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nn->rx_coalesce_usecs = ec->rx_coalesce_usecs; ec 1309 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nn->rx_coalesce_max_frames = ec->rx_max_coalesced_frames; ec 1310 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nn->tx_coalesce_usecs = ec->tx_coalesce_usecs; ec 1311 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nn->tx_coalesce_max_frames = ec->tx_max_coalesced_frames; ec 1898 drivers/net/ethernet/realtek/r8169_main.c static int rtl_get_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) ec 1907 drivers/net/ethernet/realtek/r8169_main.c { &ec->rx_max_coalesced_frames, &ec->rx_coalesce_usecs }, ec 1908 drivers/net/ethernet/realtek/r8169_main.c { &ec->tx_max_coalesced_frames, &ec->tx_coalesce_usecs } ec 1916 drivers/net/ethernet/realtek/r8169_main.c memset(ec, 0, sizeof(*ec)); ec 1970 drivers/net/ethernet/realtek/r8169_main.c static int rtl_set_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) ec 1978 drivers/net/ethernet/realtek/r8169_main.c { ec->rx_max_coalesced_frames, ec->rx_coalesce_usecs }, ec 1979 drivers/net/ethernet/realtek/r8169_main.c { ec->tx_max_coalesced_frames, ec->tx_coalesce_usecs } ec 277 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c struct ethtool_coalesce *ec) ec 282 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c ec->rx_coalesce_usecs = sxgbe_riwt2usec(priv->rx_riwt, priv); ec 288 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c struct ethtool_coalesce *ec) ec 293 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c if (!ec->rx_coalesce_usecs) ec 296 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c rx_riwt = sxgbe_usec2riwt(ec->rx_coalesce_usecs, priv); ec 196 drivers/net/ethernet/seeq/ether3.c ether3_addr(char *addr, struct expansion_card *ec) ec 201 drivers/net/ethernet/seeq/ether3.c if (ecard_readchunk(&cd, ec, 0xf5, 0) && (s = strchr(cd.d.string, '('))) { ec 750 drivers/net/ethernet/seeq/ether3.c ether3_probe(struct expansion_card *ec, const struct ecard_id *id) ec 758 drivers/net/ethernet/seeq/ether3.c ret = ecard_request_resources(ec); ec 768 drivers/net/ethernet/seeq/ether3.c SET_NETDEV_DEV(dev, &ec->dev); ec 770 drivers/net/ethernet/seeq/ether3.c priv(dev)->base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); ec 776 drivers/net/ethernet/seeq/ether3.c ec->irqaddr = priv(dev)->base + data->base_offset; ec 777 drivers/net/ethernet/seeq/ether3.c ec->irqmask = 0xf0; ec 780 drivers/net/ethernet/seeq/ether3.c dev->irq = ec->irq; ec 782 drivers/net/ethernet/seeq/ether3.c ether3_addr(dev->dev_addr, ec); ec 834 drivers/net/ethernet/seeq/ether3.c dev->name, data->name, ec->slot_no, dev->dev_addr); ec 836 drivers/net/ethernet/seeq/ether3.c ecard_set_drvdata(ec, dev); ec 842 drivers/net/ethernet/seeq/ether3.c ecard_release_resources(ec); ec 847 drivers/net/ethernet/seeq/ether3.c static void ether3_remove(struct expansion_card *ec) ec 849 drivers/net/ethernet/seeq/ether3.c struct net_device *dev = ecard_get_drvdata(ec); ec 851 drivers/net/ethernet/seeq/ether3.c ecard_set_drvdata(ec, NULL); ec 855 drivers/net/ethernet/seeq/ether3.c ecard_release_resources(ec); ec 713 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c struct ethtool_coalesce *ec) ec 717 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c ec->tx_coalesce_usecs = priv->tx_coal_timer; ec 718 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c ec->tx_max_coalesced_frames = priv->tx_coal_frames; ec 721 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c ec->rx_max_coalesced_frames = priv->rx_coal_frames; ec 722 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c ec->rx_coalesce_usecs = stmmac_riwt2usec(priv->rx_riwt, priv); ec 729 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c struct ethtool_coalesce *ec) ec 736 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if ((ec->rx_coalesce_usecs_irq) || ec 737 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->rx_max_coalesced_frames_irq) || (ec->tx_coalesce_usecs_irq) || ec 738 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->use_adaptive_rx_coalesce) || (ec->use_adaptive_tx_coalesce) || ec 739 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->pkt_rate_low) || (ec->rx_coalesce_usecs_low) || ec 740 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->rx_max_coalesced_frames_low) || (ec->tx_coalesce_usecs_high) || ec 741 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->tx_max_coalesced_frames_low) || (ec->pkt_rate_high) || ec 742 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->tx_coalesce_usecs_low) || (ec->rx_coalesce_usecs_high) || ec 743 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->rx_max_coalesced_frames_high) || ec 744 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->tx_max_coalesced_frames_irq) || ec 745 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->stats_block_coalesce_usecs) || ec 746 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->tx_max_coalesced_frames_high) || (ec->rate_sample_interval)) ec 749 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if (priv->use_riwt && (ec->rx_coalesce_usecs > 0)) { ec 750 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c rx_riwt = stmmac_usec2riwt(ec->rx_coalesce_usecs, priv); ec 759 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if ((ec->tx_coalesce_usecs == 0) && ec 760 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->tx_max_coalesced_frames == 0)) ec 763 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if ((ec->tx_coalesce_usecs > STMMAC_MAX_COAL_TX_TICK) || ec 764 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c (ec->tx_max_coalesced_frames > STMMAC_TX_MAX_FRAMES)) ec 768 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c priv->tx_coal_frames = ec->tx_max_coalesced_frames; ec 769 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c priv->tx_coal_timer = ec->tx_coalesce_usecs; ec 770 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c priv->rx_coal_frames = ec->rx_max_coalesced_frames; ec 150 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct ethtool_coalesce *ec) ec 154 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c memset(ec, 0, sizeof(struct ethtool_coalesce)); ec 155 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c ec->rx_coalesce_usecs = pdata->rx_usecs; ec 156 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c ec->rx_max_coalesced_frames = pdata->rx_frames; ec 157 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c ec->tx_max_coalesced_frames = pdata->tx_frames; ec 163 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct ethtool_coalesce *ec) ec 171 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c if ((ec->rx_coalesce_usecs_irq) || (ec->rx_max_coalesced_frames_irq) || ec 172 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->tx_coalesce_usecs) || (ec->tx_coalesce_usecs_high) || ec 173 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->tx_max_coalesced_frames_irq) || (ec->tx_coalesce_usecs_irq) || ec 174 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->stats_block_coalesce_usecs) || (ec->pkt_rate_low) || ec 175 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->use_adaptive_rx_coalesce) || (ec->use_adaptive_tx_coalesce) || ec 176 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->rx_max_coalesced_frames_low) || (ec->rx_coalesce_usecs_low) || ec 177 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->tx_coalesce_usecs_low) || (ec->tx_max_coalesced_frames_low) || ec 178 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->pkt_rate_high) || (ec->rx_coalesce_usecs_high) || ec 179 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->rx_max_coalesced_frames_high) || ec 180 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->tx_max_coalesced_frames_high) || ec 181 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (ec->rate_sample_interval)) ec 184 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c rx_usecs = ec->rx_coalesce_usecs; ec 186 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c rx_frames = ec->rx_max_coalesced_frames; ec 187 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c tx_frames = ec->tx_max_coalesced_frames; ec 331 drivers/net/fddi/skfp/fplustm.c u_long *ec ; ec 342 drivers/net/fddi/skfp/fplustm.c ec = (u_long *)&smc->hw.fp.err_stats ; ec 344 drivers/net/fddi/skfp/fplustm.c *ec++ = 0L ; ec 3581 drivers/net/tun.c struct ethtool_coalesce *ec) ec 3585 drivers/net/tun.c ec->rx_max_coalesced_frames = tun->rx_batched; ec 3591 drivers/net/tun.c struct ethtool_coalesce *ec) ec 3595 drivers/net/tun.c if (ec->rx_max_coalesced_frames > NAPI_POLL_WEIGHT) ec 3598 drivers/net/tun.c tun->rx_batched = ec->rx_max_coalesced_frames; ec 2228 drivers/net/virtio_net.c struct ethtool_coalesce *ec) ec 2237 drivers/net/virtio_net.c if (ec->tx_max_coalesced_frames > 1) ec 2240 drivers/net/virtio_net.c ec_default.tx_max_coalesced_frames = ec->tx_max_coalesced_frames; ec 2241 drivers/net/virtio_net.c napi_weight = ec->tx_max_coalesced_frames ? NAPI_POLL_WEIGHT : 0; ec 2244 drivers/net/virtio_net.c if (memcmp(ec, &ec_default, sizeof(ec_default))) ec 2258 drivers/net/virtio_net.c struct ethtool_coalesce *ec) ec 2266 drivers/net/virtio_net.c memcpy(ec, &ec_default, sizeof(ec_default)); ec 2269 drivers/net/virtio_net.c ec->tx_max_coalesced_frames = 1; ec 740 drivers/net/vmxnet3/vmxnet3_ethtool.c vmxnet3_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec) ec 752 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->use_adaptive_rx_coalesce = true; ec 755 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_max_coalesced_frames = ec 757 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rx_max_coalesced_frames = ec 764 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rx_coalesce_usecs = VMXNET3_COAL_RBC_USECS(rbc_rate); ec 775 drivers/net/vmxnet3/vmxnet3_ethtool.c vmxnet3_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec) ec 785 drivers/net/vmxnet3/vmxnet3_ethtool.c if (ec->rx_coalesce_usecs_irq || ec 786 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rx_max_coalesced_frames_irq || ec 787 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_coalesce_usecs || ec 788 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_coalesce_usecs_irq || ec 789 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_max_coalesced_frames_irq || ec 790 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->stats_block_coalesce_usecs || ec 791 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->use_adaptive_tx_coalesce || ec 792 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->pkt_rate_low || ec 793 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rx_coalesce_usecs_low || ec 794 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rx_max_coalesced_frames_low || ec 795 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_coalesce_usecs_low || ec 796 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_max_coalesced_frames_low || ec 797 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->pkt_rate_high || ec 798 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rx_coalesce_usecs_high || ec 799 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rx_max_coalesced_frames_high || ec 800 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_coalesce_usecs_high || ec 801 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_max_coalesced_frames_high || ec 802 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rate_sample_interval) { ec 806 drivers/net/vmxnet3/vmxnet3_ethtool.c if ((ec->rx_coalesce_usecs == 0) && ec 807 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->use_adaptive_rx_coalesce == 0) && ec 808 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->tx_max_coalesced_frames == 0) && ec 809 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->rx_max_coalesced_frames == 0)) { ec 815 drivers/net/vmxnet3/vmxnet3_ethtool.c if (ec->rx_coalesce_usecs != 0) { ec 818 drivers/net/vmxnet3/vmxnet3_ethtool.c if ((ec->use_adaptive_rx_coalesce != 0) || ec 819 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->tx_max_coalesced_frames != 0) || ec 820 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->rx_max_coalesced_frames != 0)) { ec 824 drivers/net/vmxnet3/vmxnet3_ethtool.c rbc_rate = VMXNET3_COAL_RBC_RATE(ec->rx_coalesce_usecs); ec 836 drivers/net/vmxnet3/vmxnet3_ethtool.c if (ec->use_adaptive_rx_coalesce != 0) { ec 837 drivers/net/vmxnet3/vmxnet3_ethtool.c if ((ec->rx_coalesce_usecs != 0) || ec 838 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->tx_max_coalesced_frames != 0) || ec 839 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->rx_max_coalesced_frames != 0)) { ec 847 drivers/net/vmxnet3/vmxnet3_ethtool.c if ((ec->tx_max_coalesced_frames != 0) || ec 848 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->rx_max_coalesced_frames != 0)) { ec 849 drivers/net/vmxnet3/vmxnet3_ethtool.c if ((ec->rx_coalesce_usecs != 0) || ec 850 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->use_adaptive_rx_coalesce != 0)) { ec 854 drivers/net/vmxnet3/vmxnet3_ethtool.c if ((ec->tx_max_coalesced_frames > ec 856 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->rx_max_coalesced_frames > ec 865 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->tx_max_coalesced_frames ? ec 866 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->tx_max_coalesced_frames : ec 870 drivers/net/vmxnet3/vmxnet3_ethtool.c (ec->rx_max_coalesced_frames ? ec 871 drivers/net/vmxnet3/vmxnet3_ethtool.c ec->rx_max_coalesced_frames : ec 530 drivers/net/wireless/ath/ath9k/init.c struct ath9k_eeprom_ctx *ec = ctx; ec 533 drivers/net/wireless/ath/ath9k/init.c ec->ah->eeprom_blob = eeprom_blob; ec 535 drivers/net/wireless/ath/ath9k/init.c complete(&ec->complete); ec 540 drivers/net/wireless/ath/ath9k/init.c struct ath9k_eeprom_ctx ec; ec 545 drivers/net/wireless/ath/ath9k/init.c init_completion(&ec.complete); ec 546 drivers/net/wireless/ath/ath9k/init.c ec.ah = sc->sc_ah; ec 549 drivers/net/wireless/ath/ath9k/init.c &ec, ath9k_eeprom_request_cb); ec 556 drivers/net/wireless/ath/ath9k/init.c wait_for_completion(&ec.complete); ec 146 drivers/platform/chrome/cros_ec.c ec_dev->ec = platform_device_register_data(ec_dev->dev, "cros-ec-dev", ec 149 drivers/platform/chrome/cros_ec.c if (IS_ERR(ec_dev->ec)) { ec 152 drivers/platform/chrome/cros_ec.c return PTR_ERR(ec_dev->ec); ec 171 drivers/platform/chrome/cros_ec.c platform_device_unregister(ec_dev->ec); ec 180 drivers/platform/chrome/cros_ec.c platform_device_unregister(ec_dev->ec); ec 205 drivers/platform/chrome/cros_ec.c platform_device_unregister(ec_dev->ec); ec 55 drivers/platform/chrome/cros_ec_chardev.c static int ec_get_version(struct cros_ec_dev *ec, char *str, int maxlen) ec 68 drivers/platform/chrome/cros_ec_chardev.c msg->command = EC_CMD_GET_VERSION + ec->cmd_offset; ec 71 drivers/platform/chrome/cros_ec_chardev.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 275 drivers/platform/chrome/cros_ec_chardev.c static long cros_ec_chardev_ioctl_xcmd(struct cros_ec_dev *ec, void __user *arg) ec 304 drivers/platform/chrome/cros_ec_chardev.c s_cmd->command += ec->cmd_offset; ec 305 drivers/platform/chrome/cros_ec_chardev.c ret = cros_ec_cmd_xfer(ec->ec_dev, s_cmd); ec 317 drivers/platform/chrome/cros_ec_chardev.c static long cros_ec_chardev_ioctl_readmem(struct cros_ec_dev *ec, ec 320 drivers/platform/chrome/cros_ec_chardev.c struct cros_ec_device *ec_dev = ec->ec_dev; ec 346 drivers/platform/chrome/cros_ec_chardev.c struct cros_ec_dev *ec = priv->ec_dev; ec 353 drivers/platform/chrome/cros_ec_chardev.c return cros_ec_chardev_ioctl_xcmd(ec, (void __user *)arg); ec 355 drivers/platform/chrome/cros_ec_chardev.c return cros_ec_chardev_ioctl_readmem(ec, (void __user *)arg); ec 42 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_dev *ec; ec 64 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_dev *ec = debug_info->ec; ec 67 drivers/platform/chrome/cros_ec_debugfs.c .command = EC_CMD_CONSOLE_SNAPSHOT + ec->cmd_offset, ec 77 drivers/platform/chrome/cros_ec_debugfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, &snapshot_msg); ec 87 drivers/platform/chrome/cros_ec_debugfs.c dev_info_once(ec->dev, ec 94 drivers/platform/chrome/cros_ec_debugfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, ec 201 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; ec 250 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; ec 297 drivers/platform/chrome/cros_ec_debugfs.c static int ec_read_version_supported(struct cros_ec_dev *ec) ec 310 drivers/platform/chrome/cros_ec_debugfs.c msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset; ec 318 drivers/platform/chrome/cros_ec_debugfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg) >= 0 && ec 328 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_dev *ec = debug_info->ec; ec 337 drivers/platform/chrome/cros_ec_debugfs.c if (!ec_read_version_supported(ec)) ec 340 drivers/platform/chrome/cros_ec_debugfs.c buf = devm_kzalloc(ec->dev, LOG_SIZE, GFP_KERNEL); ec 345 drivers/platform/chrome/cros_ec_debugfs.c read_response_size = ec->ec_dev->max_response; ec 346 drivers/platform/chrome/cros_ec_debugfs.c debug_info->read_msg = devm_kzalloc(ec->dev, ec 353 drivers/platform/chrome/cros_ec_debugfs.c debug_info->read_msg->command = EC_CMD_CONSOLE_READ + ec->cmd_offset; ec 384 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; ec 391 drivers/platform/chrome/cros_ec_debugfs.c msg = devm_kzalloc(debug_info->ec->dev, ec 418 drivers/platform/chrome/cros_ec_debugfs.c devm_kfree(debug_info->ec->dev, msg); ec 424 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); ec 425 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_platform *ec_platform = dev_get_platdata(ec->dev); ec 430 drivers/platform/chrome/cros_ec_debugfs.c debug_info = devm_kzalloc(ec->dev, sizeof(*debug_info), GFP_KERNEL); ec 434 drivers/platform/chrome/cros_ec_debugfs.c debug_info->ec = ec; ec 452 drivers/platform/chrome/cros_ec_debugfs.c &ec->ec_dev->last_resume_result); ec 454 drivers/platform/chrome/cros_ec_debugfs.c ec->debug_info = debug_info; ec 456 drivers/platform/chrome/cros_ec_debugfs.c dev_set_drvdata(&pd->dev, ec); ec 467 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); ec 469 drivers/platform/chrome/cros_ec_debugfs.c debugfs_remove_recursive(ec->debug_info->dir); ec 470 drivers/platform/chrome/cros_ec_debugfs.c cros_ec_cleanup_console_log(ec->debug_info); ec 477 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_dev *ec = dev_get_drvdata(dev); ec 479 drivers/platform/chrome/cros_ec_debugfs.c if (ec->debug_info->log_buffer.buf) ec 480 drivers/platform/chrome/cros_ec_debugfs.c cancel_delayed_work_sync(&ec->debug_info->log_poll_work); ec 487 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_dev *ec = dev_get_drvdata(dev); ec 489 drivers/platform/chrome/cros_ec_debugfs.c if (ec->debug_info->log_buffer.buf) ec 490 drivers/platform/chrome/cros_ec_debugfs.c schedule_delayed_work(&ec->debug_info->log_poll_work, 0); ec 86 drivers/platform/chrome/cros_ec_lightbar.c static struct cros_ec_command *alloc_lightbar_cmd_msg(struct cros_ec_dev *ec) ec 99 drivers/platform/chrome/cros_ec_lightbar.c msg->command = EC_CMD_LIGHTBAR_CMD + ec->cmd_offset; ec 106 drivers/platform/chrome/cros_ec_lightbar.c static int get_lightbar_version(struct cros_ec_dev *ec, ec 114 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); ec 120 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 159 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 167 drivers/platform/chrome/cros_ec_lightbar.c if (!get_lightbar_version(ec, &version, &flags)) ec 181 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 186 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); ec 197 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 225 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 229 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); ec 262 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 297 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 299 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); ec 309 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 331 drivers/platform/chrome/cros_ec_lightbar.c static int lb_send_empty_cmd(struct cros_ec_dev *ec, uint8_t cmd) ec 337 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); ec 348 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 362 drivers/platform/chrome/cros_ec_lightbar.c static int lb_manual_suspend_ctrl(struct cros_ec_dev *ec, uint8_t enable) ec 368 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); ec 381 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 402 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 418 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); ec 429 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 450 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 460 drivers/platform/chrome/cros_ec_lightbar.c max_size = min(EC_LB_PROG_LEN, ec->ec_dev->max_request - extra_bytes); ec 468 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); ec 491 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 140 drivers/platform/chrome/cros_ec_lpc.c static int cros_ec_pkt_xfer_lpc(struct cros_ec_device *ec, ec 148 drivers/platform/chrome/cros_ec_lpc.c ret = cros_ec_prepare_tx(ec, msg); ec 151 drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_ops.write(EC_LPC_ADDR_HOST_PACKET, ret, ec->dout); ec 158 drivers/platform/chrome/cros_ec_lpc.c dev_warn(ec->dev, "EC responsed timed out\n"); ec 165 drivers/platform/chrome/cros_ec_lpc.c ret = cros_ec_check_result(ec, msg); ec 177 drivers/platform/chrome/cros_ec_lpc.c dev_err(ec->dev, ec 190 drivers/platform/chrome/cros_ec_lpc.c dev_err(ec->dev, ec 203 drivers/platform/chrome/cros_ec_lpc.c static int cros_ec_cmd_xfer_lpc(struct cros_ec_device *ec, ec 212 drivers/platform/chrome/cros_ec_lpc.c dev_err(ec->dev, ec 240 drivers/platform/chrome/cros_ec_lpc.c dev_warn(ec->dev, "EC responsed timed out\n"); ec 247 drivers/platform/chrome/cros_ec_lpc.c ret = cros_ec_check_result(ec, msg); ec 255 drivers/platform/chrome/cros_ec_lpc.c dev_err(ec->dev, ec 271 drivers/platform/chrome/cros_ec_lpc.c dev_err(ec->dev, ec 285 drivers/platform/chrome/cros_ec_lpc.c static int cros_ec_lpc_readmem(struct cros_ec_device *ec, unsigned int offset, ec 55 drivers/platform/chrome/cros_ec_proto.c int (*xfer_fxn)(struct cros_ec_device *ec, struct cros_ec_command *msg); ec 60 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 100 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_REBOOT_EC + ec->cmd_offset; ec 103 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 121 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 129 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_GET_VERSION + ec->cmd_offset; ec 132 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 151 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_GET_BUILD_INFO + ec->cmd_offset; ec 153 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 167 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_GET_CHIP_INFO + ec->cmd_offset; ec 169 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 191 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_GET_BOARD_VERSION + ec->cmd_offset; ec 193 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); ec 219 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 227 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_FLASH_INFO + ec->cmd_offset; ec 230 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 250 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 261 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; ec 268 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 283 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 298 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; ec 305 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); ec 331 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 333 drivers/platform/chrome/cros_ec_sysfs.c if (a == &dev_attr_kb_wake_angle.attr && !ec->has_kb_wake_angle) ec 22 drivers/platform/chrome/cros_ec_vbc.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 23 drivers/platform/chrome/cros_ec_vbc.c struct cros_ec_device *ecdev = ec->ec_dev; ec 62 drivers/platform/chrome/cros_ec_vbc.c struct cros_ec_dev *ec = to_cros_ec_dev(dev); ec 63 drivers/platform/chrome/cros_ec_vbc.c struct cros_ec_device *ecdev = ec->ec_dev; ec 44 drivers/platform/chrome/wilco_ec/core.c struct wilco_ec_device *ec; ec 47 drivers/platform/chrome/wilco_ec/core.c ec = devm_kzalloc(dev, sizeof(*ec), GFP_KERNEL); ec 48 drivers/platform/chrome/wilco_ec/core.c if (!ec) ec 51 drivers/platform/chrome/wilco_ec/core.c platform_set_drvdata(pdev, ec); ec 52 drivers/platform/chrome/wilco_ec/core.c ec->dev = dev; ec 53 drivers/platform/chrome/wilco_ec/core.c mutex_init(&ec->mailbox_lock); ec 55 drivers/platform/chrome/wilco_ec/core.c ec->data_size = sizeof(struct wilco_ec_response) + EC_MAILBOX_DATA_SIZE; ec 56 drivers/platform/chrome/wilco_ec/core.c ec->data_buffer = devm_kzalloc(dev, ec->data_size, GFP_KERNEL); ec 57 drivers/platform/chrome/wilco_ec/core.c if (!ec->data_buffer) ec 61 drivers/platform/chrome/wilco_ec/core.c ec->io_data = wilco_get_resource(pdev, 0); /* Host Data */ ec 62 drivers/platform/chrome/wilco_ec/core.c ec->io_command = wilco_get_resource(pdev, 1); /* Host Command */ ec 63 drivers/platform/chrome/wilco_ec/core.c ec->io_packet = wilco_get_resource(pdev, 2); /* MEC EMI */ ec 64 drivers/platform/chrome/wilco_ec/core.c if (!ec->io_data || !ec->io_command || !ec->io_packet) ec 68 drivers/platform/chrome/wilco_ec/core.c cros_ec_lpc_mec_init(ec->io_packet->start, ec 69 drivers/platform/chrome/wilco_ec/core.c ec->io_packet->start + EC_MAILBOX_DATA_SIZE); ec 75 drivers/platform/chrome/wilco_ec/core.c ec->debugfs_pdev = platform_device_register_data(dev, ec 81 drivers/platform/chrome/wilco_ec/core.c ec->rtc_pdev = platform_device_register_data(dev, "rtc-wilco-ec", ec 84 drivers/platform/chrome/wilco_ec/core.c if (IS_ERR(ec->rtc_pdev)) { ec 86 drivers/platform/chrome/wilco_ec/core.c ret = PTR_ERR(ec->rtc_pdev); ec 90 drivers/platform/chrome/wilco_ec/core.c ret = wilco_ec_add_sysfs(ec); ec 97 drivers/platform/chrome/wilco_ec/core.c ec->telem_pdev = platform_device_register_data(dev, "wilco_telem", ec 99 drivers/platform/chrome/wilco_ec/core.c ec, sizeof(*ec)); ec 100 drivers/platform/chrome/wilco_ec/core.c if (IS_ERR(ec->telem_pdev)) { ec 102 drivers/platform/chrome/wilco_ec/core.c ret = PTR_ERR(ec->telem_pdev); ec 109 drivers/platform/chrome/wilco_ec/core.c wilco_ec_remove_sysfs(ec); ec 111 drivers/platform/chrome/wilco_ec/core.c platform_device_unregister(ec->rtc_pdev); ec 113 drivers/platform/chrome/wilco_ec/core.c if (ec->debugfs_pdev) ec 114 drivers/platform/chrome/wilco_ec/core.c platform_device_unregister(ec->debugfs_pdev); ec 121 drivers/platform/chrome/wilco_ec/core.c struct wilco_ec_device *ec = platform_get_drvdata(pdev); ec 123 drivers/platform/chrome/wilco_ec/core.c wilco_ec_remove_sysfs(ec); ec 124 drivers/platform/chrome/wilco_ec/core.c platform_device_unregister(ec->telem_pdev); ec 125 drivers/platform/chrome/wilco_ec/core.c platform_device_unregister(ec->rtc_pdev); ec 126 drivers/platform/chrome/wilco_ec/core.c if (ec->debugfs_pdev) ec 127 drivers/platform/chrome/wilco_ec/core.c platform_device_unregister(ec->debugfs_pdev); ec 23 drivers/platform/chrome/wilco_ec/debugfs.c struct wilco_ec_device *ec; ec 127 drivers/platform/chrome/wilco_ec/debugfs.c ret = wilco_ec_mailbox(debug_info->ec, &msg); ec 177 drivers/platform/chrome/wilco_ec/debugfs.c struct wilco_ec_device *ec = arg; ec 193 drivers/platform/chrome/wilco_ec/debugfs.c ret = wilco_ec_mailbox(ec, &msg); ec 217 drivers/platform/chrome/wilco_ec/debugfs.c struct wilco_ec_device *ec = dev_get_drvdata(pdev->dev.parent); ec 222 drivers/platform/chrome/wilco_ec/debugfs.c debug_info->ec = ec; ec 227 drivers/platform/chrome/wilco_ec/debugfs.c debugfs_create_file("h1_gpio", 0444, debug_info->dir, ec, ec 53 drivers/platform/chrome/wilco_ec/mailbox.c static bool wilco_ec_response_timed_out(struct wilco_ec_device *ec) ec 58 drivers/platform/chrome/wilco_ec/mailbox.c if (!(inb(ec->io_command->start) & ec 115 drivers/platform/chrome/wilco_ec/mailbox.c static int wilco_ec_transfer(struct wilco_ec_device *ec, ec 129 drivers/platform/chrome/wilco_ec/mailbox.c outb(EC_MAILBOX_START_COMMAND, ec->io_command->start); ec 133 drivers/platform/chrome/wilco_ec/mailbox.c dev_dbg(ec->dev, "EC does not respond to this command\n"); ec 138 drivers/platform/chrome/wilco_ec/mailbox.c if (wilco_ec_response_timed_out(ec)) { ec 139 drivers/platform/chrome/wilco_ec/mailbox.c dev_dbg(ec->dev, "response timed out\n"); ec 144 drivers/platform/chrome/wilco_ec/mailbox.c flag = inb(ec->io_data->start); ec 146 drivers/platform/chrome/wilco_ec/mailbox.c dev_dbg(ec->dev, "bad response: 0x%02x\n", flag); ec 151 drivers/platform/chrome/wilco_ec/mailbox.c rs = ec->data_buffer; ec 156 drivers/platform/chrome/wilco_ec/mailbox.c dev_dbg(ec->dev, "bad packet checksum 0x%02x\n", rs->checksum); ec 161 drivers/platform/chrome/wilco_ec/mailbox.c dev_dbg(ec->dev, "EC reported failure: 0x%02x\n", rs->result); ec 166 drivers/platform/chrome/wilco_ec/mailbox.c dev_dbg(ec->dev, "unexpected packet size (%u != %u)", ec 172 drivers/platform/chrome/wilco_ec/mailbox.c dev_dbg(ec->dev, "EC didn't return enough data (%u < %zu)", ec 196 drivers/platform/chrome/wilco_ec/mailbox.c int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg) ec 201 drivers/platform/chrome/wilco_ec/mailbox.c dev_dbg(ec->dev, "type=%04x flags=%02x rslen=%zu rqlen=%zu\n", ec 204 drivers/platform/chrome/wilco_ec/mailbox.c mutex_lock(&ec->mailbox_lock); ec 206 drivers/platform/chrome/wilco_ec/mailbox.c rq = ec->data_buffer; ec 209 drivers/platform/chrome/wilco_ec/mailbox.c ret = wilco_ec_transfer(ec, msg, rq); ec 210 drivers/platform/chrome/wilco_ec/mailbox.c mutex_unlock(&ec->mailbox_lock); ec 31 drivers/platform/chrome/wilco_ec/properties.c static int send_property_msg(struct wilco_ec_device *ec, ec 45 drivers/platform/chrome/wilco_ec/properties.c ret = wilco_ec_mailbox(ec, &ec_msg); ec 56 drivers/platform/chrome/wilco_ec/properties.c int wilco_ec_get_property(struct wilco_ec_device *ec, ec 67 drivers/platform/chrome/wilco_ec/properties.c ret = send_property_msg(ec, &rq, &rs); ec 78 drivers/platform/chrome/wilco_ec/properties.c int wilco_ec_set_property(struct wilco_ec_device *ec, ec 91 drivers/platform/chrome/wilco_ec/properties.c ret = send_property_msg(ec, &rq, &rs); ec 101 drivers/platform/chrome/wilco_ec/properties.c int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id, ec 109 drivers/platform/chrome/wilco_ec/properties.c ret = wilco_ec_get_property(ec, &msg); ec 121 drivers/platform/chrome/wilco_ec/properties.c int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id, ec 130 drivers/platform/chrome/wilco_ec/properties.c return wilco_ec_set_property(ec, &msg); ec 49 drivers/platform/chrome/wilco_ec/sysfs.c struct wilco_ec_device *ec = dev_get_drvdata(dev); ec 70 drivers/platform/chrome/wilco_ec/sysfs.c ret = wilco_ec_mailbox(ec, &msg); ec 81 drivers/platform/chrome/wilco_ec/sysfs.c struct wilco_ec_device *ec = dev_get_drvdata(dev); ec 94 drivers/platform/chrome/wilco_ec/sysfs.c ret = wilco_ec_mailbox(ec, &msg); ec 148 drivers/platform/chrome/wilco_ec/sysfs.c int wilco_ec_add_sysfs(struct wilco_ec_device *ec) ec 150 drivers/platform/chrome/wilco_ec/sysfs.c return sysfs_create_group(&ec->dev->kobj, &wilco_dev_attr_group); ec 153 drivers/platform/chrome/wilco_ec/sysfs.c void wilco_ec_remove_sysfs(struct wilco_ec_device *ec) ec 155 drivers/platform/chrome/wilco_ec/sysfs.c sysfs_remove_group(&ec->dev->kobj, &wilco_dev_attr_group); ec 207 drivers/platform/chrome/wilco_ec/telemetry.c struct wilco_ec_device *ec; ec 288 drivers/platform/chrome/wilco_ec/telemetry.c ret = wilco_ec_mailbox(sess_data->dev_data->ec, &msg); ec 381 drivers/platform/chrome/wilco_ec/telemetry.c dev_data->ec = dev_get_platdata(&pdev->dev); ec 80 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = container_of(w, struct olpc_ec_priv, worker); ec 85 drivers/platform/olpc/olpc-ec.c spin_lock_irqsave(&ec->cmd_q_lock, flags); ec 86 drivers/platform/olpc/olpc-ec.c if (!list_empty(&ec->cmd_q)) { ec 87 drivers/platform/olpc/olpc-ec.c desc = list_first_entry(&ec->cmd_q, struct ec_cmd_desc, node); ec 90 drivers/platform/olpc/olpc-ec.c spin_unlock_irqrestore(&ec->cmd_q_lock, flags); ec 97 drivers/platform/olpc/olpc-ec.c mutex_lock(&ec->cmd_lock); ec 100 drivers/platform/olpc/olpc-ec.c mutex_unlock(&ec->cmd_lock); ec 106 drivers/platform/olpc/olpc-ec.c schedule_work(&ec->worker); ec 114 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec) ec 120 drivers/platform/olpc/olpc-ec.c spin_lock_irqsave(&ec->cmd_q_lock, flags); ec 121 drivers/platform/olpc/olpc-ec.c list_add_tail(&desc->node, &ec->cmd_q); ec 122 drivers/platform/olpc/olpc-ec.c spin_unlock_irqrestore(&ec->cmd_q_lock, flags); ec 124 drivers/platform/olpc/olpc-ec.c schedule_work(&ec->worker); ec 129 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = ec_priv; ec 139 drivers/platform/olpc/olpc-ec.c if (!ec) ec 143 drivers/platform/olpc/olpc-ec.c if (WARN_ON(ec->suspended)) ec 156 drivers/platform/olpc/olpc-ec.c queue_ec_descriptor(&desc, ec); ec 168 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = ec_priv; ec 170 drivers/platform/olpc/olpc-ec.c if (WARN_ON(!ec)) ec 173 drivers/platform/olpc/olpc-ec.c ec->ec_wakeup_mask |= value; ec 179 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = ec_priv; ec 181 drivers/platform/olpc/olpc-ec.c if (WARN_ON(!ec)) ec 184 drivers/platform/olpc/olpc-ec.c ec->ec_wakeup_mask &= ~value; ec 190 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = ec_priv; ec 192 drivers/platform/olpc/olpc-ec.c if (WARN_ON(!ec)) ec 196 drivers/platform/olpc/olpc-ec.c if (ec->version >= 0x5f) { ec 223 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = ec_priv; ec 226 drivers/platform/olpc/olpc-ec.c if (WARN_ON(!ec)) ec 230 drivers/platform/olpc/olpc-ec.c if (ec->version >= 0x5f) { ec 353 drivers/platform/olpc/olpc-ec.c static int olpc_ec_set_dcon_power(struct olpc_ec_priv *ec, bool state) ec 358 drivers/platform/olpc/olpc-ec.c if (ec->dcon_enabled == state) ec 365 drivers/platform/olpc/olpc-ec.c ec->dcon_enabled = state; ec 371 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = rdev_get_drvdata(rdev); ec 373 drivers/platform/olpc/olpc-ec.c return olpc_ec_set_dcon_power(ec, true); ec 378 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = rdev_get_drvdata(rdev); ec 380 drivers/platform/olpc/olpc-ec.c return olpc_ec_set_dcon_power(ec, false); ec 385 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = rdev_get_drvdata(rdev); ec 387 drivers/platform/olpc/olpc-ec.c return ec->dcon_enabled ? 1 : 0; ec 406 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec; ec 413 drivers/platform/olpc/olpc-ec.c ec = kzalloc(sizeof(*ec), GFP_KERNEL); ec 414 drivers/platform/olpc/olpc-ec.c if (!ec) ec 417 drivers/platform/olpc/olpc-ec.c ec->drv = ec_driver; ec 418 drivers/platform/olpc/olpc-ec.c INIT_WORK(&ec->worker, olpc_ec_worker); ec 419 drivers/platform/olpc/olpc-ec.c mutex_init(&ec->cmd_lock); ec 421 drivers/platform/olpc/olpc-ec.c INIT_LIST_HEAD(&ec->cmd_q); ec 422 drivers/platform/olpc/olpc-ec.c spin_lock_init(&ec->cmd_q_lock); ec 424 drivers/platform/olpc/olpc-ec.c ec_priv = ec; ec 425 drivers/platform/olpc/olpc-ec.c platform_set_drvdata(pdev, ec); ec 428 drivers/platform/olpc/olpc-ec.c err = olpc_ec_cmd(EC_FIRMWARE_REV, NULL, 0, &ec->version, 1); ec 431 drivers/platform/olpc/olpc-ec.c kfree(ec); ec 436 drivers/platform/olpc/olpc-ec.c config.driver_data = ec; ec 437 drivers/platform/olpc/olpc-ec.c ec->dcon_enabled = true; ec 438 drivers/platform/olpc/olpc-ec.c ec->dcon_rdev = devm_regulator_register(&pdev->dev, &dcon_desc, ec 440 drivers/platform/olpc/olpc-ec.c if (IS_ERR(ec->dcon_rdev)) { ec 442 drivers/platform/olpc/olpc-ec.c return PTR_ERR(ec->dcon_rdev); ec 445 drivers/platform/olpc/olpc-ec.c ec->dbgfs_dir = olpc_ec_setup_debugfs(); ec 453 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = platform_get_drvdata(pdev); ec 456 drivers/platform/olpc/olpc-ec.c olpc_ec_mask_write(ec->ec_wakeup_mask); ec 461 drivers/platform/olpc/olpc-ec.c ec->suspended = true; ec 469 drivers/platform/olpc/olpc-ec.c struct olpc_ec_priv *ec = platform_get_drvdata(pdev); ec 471 drivers/platform/olpc/olpc-ec.c ec->suspended = false; ec 450 drivers/platform/x86/thinkpad_acpi.c .ec = TPACPI_MATCH_ANY, \ ec 456 drivers/platform/x86/thinkpad_acpi.c .ec = TPACPI_MATCH_ANY, \ ec 462 drivers/platform/x86/thinkpad_acpi.c .ec = TPACPI_MATCH_ANY, \ ec 468 drivers/platform/x86/thinkpad_acpi.c .ec = TPID(__id1, __id2), \ ec 474 drivers/platform/x86/thinkpad_acpi.c .ec = TPID(__id1, __id2), \ ec 480 drivers/platform/x86/thinkpad_acpi.c u32 ec; ec 506 drivers/platform/x86/thinkpad_acpi.c (qlist->ec == thinkpad_id.ec_model || ec 507 drivers/platform/x86/thinkpad_acpi.c qlist->ec == TPACPI_MATCH_ANY)) ec 547 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(ecrd, ec, "ECRD"); /* 570 */ ec 548 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(ecwr, ec, "ECWR"); /* 570 */ ec 556 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(hkey, ec, "\\_SB.HKEY", /* 600e/x, 770e, 770x */ ec 1649 drivers/platform/x86/thinkpad_acpi.c .ec = TPACPI_MATCH_ANY, \ ec 1657 drivers/platform/x86/thinkpad_acpi.c .ec = __eid, \ ec 3462 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY, ec 3467 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY, ec 5532 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(ledb, ec, "LEDB"); /* G4x */ ec 6016 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY, ec 6021 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_UNKNOWN, ec 6026 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY, ec 6184 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(beep, ec, "BEEP"); /* all except R30, R31 */ ec 7691 drivers/platform/x86/thinkpad_acpi.c .ec = TPACPI_MATCH_ANY, ec 7706 drivers/platform/x86/thinkpad_acpi.c .ec = TPACPI_MATCH_ANY, ec 8115 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(fans, ec, "FANS"); /* X31, X40, X41 */ ec 8116 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(gfan, ec, "GFAN", /* 570 */ ec 8119 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(sfan, ec, "SFAN", /* 570 */ ec 85 drivers/power/supply/wilco-charger.c struct wilco_ec_device *ec = power_supply_get_drvdata(psy); ec 104 drivers/power/supply/wilco-charger.c ret = wilco_ec_get_byte_property(ec, property_id, &raw); ec 122 drivers/power/supply/wilco-charger.c struct wilco_ec_device *ec = power_supply_get_drvdata(psy); ec 130 drivers/power/supply/wilco-charger.c return wilco_ec_set_byte_property(ec, PID_CHARGE_MODE, mode); ec 135 drivers/power/supply/wilco-charger.c return wilco_ec_set_byte_property(ec, PID_CHARGE_LOWER_LIMIT, ec 141 drivers/power/supply/wilco-charger.c return wilco_ec_set_byte_property(ec, PID_CHARGE_UPPER_LIMIT, ec 166 drivers/power/supply/wilco-charger.c struct wilco_ec_device *ec = dev_get_drvdata(pdev->dev.parent); ec 170 drivers/power/supply/wilco-charger.c psy_cfg.drv_data = ec; ec 24 drivers/pwm/pwm-cros-ec.c struct cros_ec_device *ec; ec 33 drivers/pwm/pwm-cros-ec.c static int cros_ec_pwm_set_duty(struct cros_ec_device *ec, u8 index, u16 duty) ec 53 drivers/pwm/pwm-cros-ec.c return cros_ec_cmd_xfer_status(ec, msg); ec 56 drivers/pwm/pwm-cros-ec.c static int __cros_ec_pwm_get_duty(struct cros_ec_device *ec, u8 index, ec 81 drivers/pwm/pwm-cros-ec.c ret = cros_ec_cmd_xfer_status(ec, msg); ec 90 drivers/pwm/pwm-cros-ec.c static int cros_ec_pwm_get_duty(struct cros_ec_device *ec, u8 index) ec 92 drivers/pwm/pwm-cros-ec.c return __cros_ec_pwm_get_duty(ec, index, NULL); ec 111 drivers/pwm/pwm-cros-ec.c return cros_ec_pwm_set_duty(ec_pwm->ec, pwm->hwpwm, duty_cycle); ec 120 drivers/pwm/pwm-cros-ec.c ret = cros_ec_pwm_get_duty(ec_pwm->ec, pwm->hwpwm); ec 157 drivers/pwm/pwm-cros-ec.c static int cros_ec_num_pwms(struct cros_ec_device *ec) ec 165 drivers/pwm/pwm-cros-ec.c ret = __cros_ec_pwm_get_duty(ec, i, &result); ec 187 drivers/pwm/pwm-cros-ec.c struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); ec 193 drivers/pwm/pwm-cros-ec.c if (!ec) { ec 202 drivers/pwm/pwm-cros-ec.c ec_pwm->ec = ec; ec 210 drivers/pwm/pwm-cros-ec.c ret = cros_ec_num_pwms(ec); ec 91 drivers/rtc/rtc-wilco-ec.c struct wilco_ec_device *ec = dev_get_drvdata(dev->parent); ec 103 drivers/rtc/rtc-wilco-ec.c ret = wilco_ec_mailbox(ec, &msg); ec 123 drivers/rtc/rtc-wilco-ec.c struct wilco_ec_device *ec = dev_get_drvdata(dev->parent); ec 151 drivers/rtc/rtc-wilco-ec.c ret = wilco_ec_mailbox(ec, &msg); ec 2894 drivers/scsi/arm/acornscsi.c static int acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) ec 2900 drivers/scsi/arm/acornscsi.c ret = ecard_request_resources(ec); ec 2912 drivers/scsi/arm/acornscsi.c ashost->base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); ec 2913 drivers/scsi/arm/acornscsi.c ashost->fast = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); ec 2917 drivers/scsi/arm/acornscsi.c host->irq = ec->irq; ec 2921 drivers/scsi/arm/acornscsi.c ec->irqaddr = ashost->fast + INT_REG; ec 2922 drivers/scsi/arm/acornscsi.c ec->irqmask = 0x0a; ec 2938 drivers/scsi/arm/acornscsi.c ret = scsi_add_host(host, &ec->dev); ec 2951 drivers/scsi/arm/acornscsi.c ecardm_iounmap(ec, ashost->fast); ec 2952 drivers/scsi/arm/acornscsi.c ecardm_iounmap(ec, ashost->base); ec 2955 drivers/scsi/arm/acornscsi.c ecard_release_resources(ec); ec 2960 drivers/scsi/arm/acornscsi.c static void acornscsi_remove(struct expansion_card *ec) ec 2962 drivers/scsi/arm/acornscsi.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 2965 drivers/scsi/arm/acornscsi.c ecard_set_drvdata(ec, NULL); ec 2978 drivers/scsi/arm/acornscsi.c ecardm_iounmap(ec, ashost->fast); ec 2979 drivers/scsi/arm/acornscsi.c ecardm_iounmap(ec, ashost->base); ec 2981 drivers/scsi/arm/acornscsi.c ecard_release_resources(ec); ec 44 drivers/scsi/arm/arxescsi.c struct expansion_card *ec; ec 218 drivers/scsi/arm/arxescsi.c host->hostt->name, info->info.scsi.type, info->ec->slot_no, ec 253 drivers/scsi/arm/arxescsi.c static int arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) ec 260 drivers/scsi/arm/arxescsi.c ret = ecard_request_resources(ec); ec 264 drivers/scsi/arm/arxescsi.c base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); ec 277 drivers/scsi/arm/arxescsi.c info->ec = ec; ec 296 drivers/scsi/arm/arxescsi.c ec->irqaddr = base; ec 297 drivers/scsi/arm/arxescsi.c ec->irqmask = CSTATUS_IRQ; ec 303 drivers/scsi/arm/arxescsi.c ret = fas216_add(host, &ec->dev); ec 311 drivers/scsi/arm/arxescsi.c ecard_release_resources(ec); ec 316 drivers/scsi/arm/arxescsi.c static void arxescsi_remove(struct expansion_card *ec) ec 318 drivers/scsi/arm/arxescsi.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 320 drivers/scsi/arm/arxescsi.c ecard_set_drvdata(ec, NULL); ec 325 drivers/scsi/arm/arxescsi.c ecard_release_resources(ec); ec 231 drivers/scsi/arm/cumana_1.c static int cumanascsi1_probe(struct expansion_card *ec, ec 237 drivers/scsi/arm/cumana_1.c ret = ecard_request_resources(ec); ec 247 drivers/scsi/arm/cumana_1.c priv(host)->io = ioremap(ecard_resource_start(ec, ECARD_RES_IOCSLOW), ec 248 drivers/scsi/arm/cumana_1.c ecard_resource_len(ec, ECARD_RES_IOCSLOW)); ec 249 drivers/scsi/arm/cumana_1.c priv(host)->pdma_io = ioremap(ecard_resource_start(ec, ECARD_RES_MEMC), ec 250 drivers/scsi/arm/cumana_1.c ecard_resource_len(ec, ECARD_RES_MEMC)); ec 256 drivers/scsi/arm/cumana_1.c host->irq = ec->irq; ec 275 drivers/scsi/arm/cumana_1.c ret = scsi_add_host(host, &ec->dev); ec 291 drivers/scsi/arm/cumana_1.c ecard_release_resources(ec); ec 296 drivers/scsi/arm/cumana_1.c static void cumanascsi1_remove(struct expansion_card *ec) ec 298 drivers/scsi/arm/cumana_1.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 302 drivers/scsi/arm/cumana_1.c ecard_set_drvdata(ec, NULL); ec 310 drivers/scsi/arm/cumana_1.c ecard_release_resources(ec); ec 75 drivers/scsi/arm/cumana_2.c struct expansion_card *ec; ec 90 drivers/scsi/arm/cumana_2.c cumanascsi_2_irqenable(struct expansion_card *ec, int irqnr) ec 92 drivers/scsi/arm/cumana_2.c struct cumanascsi2_info *info = ec->irq_data; ec 102 drivers/scsi/arm/cumana_2.c cumanascsi_2_irqdisable(struct expansion_card *ec, int irqnr) ec 104 drivers/scsi/arm/cumana_2.c struct cumanascsi2_info *info = ec->irq_data; ec 300 drivers/scsi/arm/cumana_2.c host->hostt->name, info->info.scsi.type, info->ec->slot_no, ec 370 drivers/scsi/arm/cumana_2.c static int cumanascsi2_probe(struct expansion_card *ec, ec 378 drivers/scsi/arm/cumana_2.c ret = ecard_request_resources(ec); ec 382 drivers/scsi/arm/cumana_2.c base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); ec 395 drivers/scsi/arm/cumana_2.c ecard_set_drvdata(ec, host); ec 398 drivers/scsi/arm/cumana_2.c info->ec = ec; ec 401 drivers/scsi/arm/cumana_2.c cumanascsi_2_terminator_ctl(host, term[ec->slot_no]); ec 405 drivers/scsi/arm/cumana_2.c info->info.scsi.irq = ec->irq; ec 406 drivers/scsi/arm/cumana_2.c info->info.scsi.dma = ec->dma; ec 419 drivers/scsi/arm/cumana_2.c ec->irqaddr = info->base + CUMANASCSI2_STATUS; ec 420 drivers/scsi/arm/cumana_2.c ec->irqmask = STATUS_INT; ec 422 drivers/scsi/arm/cumana_2.c ecard_setirq(ec, &cumanascsi_2_ops, info); ec 428 drivers/scsi/arm/cumana_2.c ret = request_irq(ec->irq, cumanascsi_2_intr, ec 432 drivers/scsi/arm/cumana_2.c host->host_no, ec->irq, ret); ec 447 drivers/scsi/arm/cumana_2.c ret = fas216_add(host, &ec->dev); ec 453 drivers/scsi/arm/cumana_2.c free_irq(ec->irq, host); ec 462 drivers/scsi/arm/cumana_2.c ecard_release_resources(ec); ec 468 drivers/scsi/arm/cumana_2.c static void cumanascsi2_remove(struct expansion_card *ec) ec 470 drivers/scsi/arm/cumana_2.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 473 drivers/scsi/arm/cumana_2.c ecard_set_drvdata(ec, NULL); ec 478 drivers/scsi/arm/cumana_2.c free_irq(ec->irq, info); ec 482 drivers/scsi/arm/cumana_2.c ecard_release_resources(ec); ec 70 drivers/scsi/arm/eesox.c struct expansion_card *ec; ec 83 drivers/scsi/arm/eesox.c eesoxscsi_irqenable(struct expansion_card *ec, int irqnr) ec 85 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)ec->irq_data; ec 98 drivers/scsi/arm/eesox.c eesoxscsi_irqdisable(struct expansion_card *ec, int irqnr) ec 100 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)ec->irq_data; ec 385 drivers/scsi/arm/eesox.c host->hostt->name, info->info.scsi.type, info->ec->slot_no, ec 440 drivers/scsi/arm/eesox.c struct expansion_card *ec = ECARD_DEV(dev); ec 441 drivers/scsi/arm/eesox.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 449 drivers/scsi/arm/eesox.c struct expansion_card *ec = ECARD_DEV(dev); ec 450 drivers/scsi/arm/eesox.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 489 drivers/scsi/arm/eesox.c static int eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) ec 496 drivers/scsi/arm/eesox.c ret = ecard_request_resources(ec); ec 500 drivers/scsi/arm/eesox.c base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); ec 513 drivers/scsi/arm/eesox.c ecard_set_drvdata(ec, host); ec 516 drivers/scsi/arm/eesox.c info->ec = ec; ec 519 drivers/scsi/arm/eesox.c info->control = term[ec->slot_no] ? EESOX_TERM_ENABLE : 0; ec 524 drivers/scsi/arm/eesox.c info->info.scsi.irq = ec->irq; ec 525 drivers/scsi/arm/eesox.c info->info.scsi.dma = ec->dma; ec 538 drivers/scsi/arm/eesox.c ec->irqaddr = base + EESOX_DMASTAT; ec 539 drivers/scsi/arm/eesox.c ec->irqmask = EESOX_STAT_INTR; ec 541 drivers/scsi/arm/eesox.c ecard_setirq(ec, &eesoxscsi_ops, info); ec 543 drivers/scsi/arm/eesox.c device_create_file(&ec->dev, &dev_attr_bus_term); ec 549 drivers/scsi/arm/eesox.c ret = request_irq(ec->irq, eesoxscsi_intr, 0, "eesoxscsi", info); ec 552 drivers/scsi/arm/eesox.c host->host_no, ec->irq, ret); ec 568 drivers/scsi/arm/eesox.c ret = fas216_add(host, &ec->dev); ec 574 drivers/scsi/arm/eesox.c free_irq(ec->irq, host); ec 580 drivers/scsi/arm/eesox.c device_remove_file(&ec->dev, &dev_attr_bus_term); ec 584 drivers/scsi/arm/eesox.c ecard_release_resources(ec); ec 590 drivers/scsi/arm/eesox.c static void eesoxscsi_remove(struct expansion_card *ec) ec 592 drivers/scsi/arm/eesox.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 595 drivers/scsi/arm/eesox.c ecard_set_drvdata(ec, NULL); ec 600 drivers/scsi/arm/eesox.c free_irq(ec->irq, info); ec 602 drivers/scsi/arm/eesox.c device_remove_file(&ec->dev, &dev_attr_bus_term); ec 606 drivers/scsi/arm/eesox.c ecard_release_resources(ec); ec 120 drivers/scsi/arm/oak.c static int oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) ec 125 drivers/scsi/arm/oak.c ret = ecard_request_resources(ec); ec 135 drivers/scsi/arm/oak.c priv(host)->io = ioremap(ecard_resource_start(ec, ECARD_RES_MEMC), ec 136 drivers/scsi/arm/oak.c ecard_resource_len(ec, ECARD_RES_MEMC)); ec 150 drivers/scsi/arm/oak.c ret = scsi_add_host(host, &ec->dev); ec 164 drivers/scsi/arm/oak.c ecard_release_resources(ec); ec 169 drivers/scsi/arm/oak.c static void oakscsi_remove(struct expansion_card *ec) ec 171 drivers/scsi/arm/oak.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 174 drivers/scsi/arm/oak.c ecard_set_drvdata(ec, NULL); ec 180 drivers/scsi/arm/oak.c ecard_release_resources(ec); ec 58 drivers/scsi/arm/powertec.c struct expansion_card *ec; ec 70 drivers/scsi/arm/powertec.c powertecscsi_irqenable(struct expansion_card *ec, int irqnr) ec 72 drivers/scsi/arm/powertec.c struct powertec_info *info = ec->irq_data; ec 82 drivers/scsi/arm/powertec.c powertecscsi_irqdisable(struct expansion_card *ec, int irqnr) ec 84 drivers/scsi/arm/powertec.c struct powertec_info *info = ec->irq_data; ec 188 drivers/scsi/arm/powertec.c host->hostt->name, info->info.scsi.type, info->ec->slot_no, ec 255 drivers/scsi/arm/powertec.c struct expansion_card *ec = ECARD_DEV(dev); ec 256 drivers/scsi/arm/powertec.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 265 drivers/scsi/arm/powertec.c struct expansion_card *ec = ECARD_DEV(dev); ec 266 drivers/scsi/arm/powertec.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 297 drivers/scsi/arm/powertec.c static int powertecscsi_probe(struct expansion_card *ec, ec 305 drivers/scsi/arm/powertec.c ret = ecard_request_resources(ec); ec 309 drivers/scsi/arm/powertec.c base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); ec 322 drivers/scsi/arm/powertec.c ecard_set_drvdata(ec, host); ec 326 drivers/scsi/arm/powertec.c powertecscsi_terminator_ctl(host, term[ec->slot_no]); ec 328 drivers/scsi/arm/powertec.c info->ec = ec; ec 331 drivers/scsi/arm/powertec.c info->info.scsi.irq = ec->irq; ec 332 drivers/scsi/arm/powertec.c info->info.scsi.dma = ec->dma; ec 345 drivers/scsi/arm/powertec.c ec->irqaddr = base + POWERTEC_INTR_STATUS; ec 346 drivers/scsi/arm/powertec.c ec->irqmask = POWERTEC_INTR_BIT; ec 348 drivers/scsi/arm/powertec.c ecard_setirq(ec, &powertecscsi_ops, info); ec 350 drivers/scsi/arm/powertec.c device_create_file(&ec->dev, &dev_attr_bus_term); ec 356 drivers/scsi/arm/powertec.c ret = request_irq(ec->irq, powertecscsi_intr, ec 360 drivers/scsi/arm/powertec.c host->host_no, ec->irq, ret); ec 375 drivers/scsi/arm/powertec.c ret = fas216_add(host, &ec->dev); ec 381 drivers/scsi/arm/powertec.c free_irq(ec->irq, host); ec 387 drivers/scsi/arm/powertec.c device_remove_file(&ec->dev, &dev_attr_bus_term); ec 391 drivers/scsi/arm/powertec.c ecard_release_resources(ec); ec 397 drivers/scsi/arm/powertec.c static void powertecscsi_remove(struct expansion_card *ec) ec 399 drivers/scsi/arm/powertec.c struct Scsi_Host *host = ecard_get_drvdata(ec); ec 402 drivers/scsi/arm/powertec.c ecard_set_drvdata(ec, NULL); ec 405 drivers/scsi/arm/powertec.c device_remove_file(&ec->dev, &dev_attr_bus_term); ec 409 drivers/scsi/arm/powertec.c free_irq(ec->irq, info); ec 413 drivers/scsi/arm/powertec.c ecard_release_resources(ec); ec 305 drivers/scsi/csiostor/csio_hw.c int i, ret, ec, sn, addr; ec 361 drivers/scsi/csiostor/csio_hw.c FIND_VPD_KW(ec, "EC"); ec 367 drivers/scsi/csiostor/csio_hw.c memcpy(p->ec, vpd + ec, EC_LEN); ec 368 drivers/scsi/csiostor/csio_hw.c s = strstrip(p->ec); ec 266 drivers/scsi/csiostor/csio_hw.h uint8_t ec[EC_LEN + 1]; ec 271 drivers/scsi/myrb.h } __packed ec:3; /* Byte 40 Bits 3-5 */ ec 253 drivers/slimbus/messaging.c txn->ec = ((sl | (1 << 3)) | ((msg->start_offset & 0xFFF) << 4)); ec 369 drivers/slimbus/qcom-ctrl.c *(puc++) = (txn->ec & 0xFF); ec 370 drivers/slimbus/qcom-ctrl.c *(puc++) = (txn->ec >> 8) & 0xFF; ec 860 drivers/slimbus/qcom-ngd-ctrl.c *(puc++) = (txn->ec & 0xFF); ec 861 drivers/slimbus/qcom-ngd-ctrl.c *(puc++) = (txn->ec >> 8) & 0xFF; ec 926 drivers/slimbus/qcom-ngd-ctrl.c txn.ec = 0; ec 1013 drivers/slimbus/qcom-ngd-ctrl.c txn.ec = 0; ec 1160 drivers/slimbus/qcom-ngd-ctrl.c txn.ec = 0; ec 132 drivers/slimbus/slimbus.h u16 ec; ec 1764 drivers/staging/octeon-usb/octeon-hcd.c usbc_hcchar.s.ec = 1; ec 1766 drivers/staging/octeon-usb/octeon-hcd.c usbc_hcchar.s.ec = 1; ec 1768 drivers/staging/octeon-usb/octeon-hcd.c usbc_hcchar.s.ec = 3; ec 1770 drivers/staging/octeon-usb/octeon-hcd.c usbc_hcchar.s.ec = pipe->multi_count; ec 1036 drivers/staging/octeon-usb/octeon-hcd.h __BITFIELD_FIELD(u32 ec : 2, ec 39 drivers/tty/serial/8250/8250_acorn.c serial_card_probe(struct expansion_card *ec, const struct ecard_id *id) ec 53 drivers/tty/serial/8250/8250_acorn.c bus_addr = ecard_resource_start(ec, type->type); ec 54 drivers/tty/serial/8250/8250_acorn.c info->vaddr = ecardm_iomap(ec, type->type, 0, 0); ec 60 drivers/tty/serial/8250/8250_acorn.c ecard_set_drvdata(ec, info); ec 63 drivers/tty/serial/8250/8250_acorn.c uart.port.irq = ec->irq; ec 68 drivers/tty/serial/8250/8250_acorn.c uart.port.dev = &ec->dev; ec 80 drivers/tty/serial/8250/8250_acorn.c static void serial_card_remove(struct expansion_card *ec) ec 82 drivers/tty/serial/8250/8250_acorn.c struct serial_card_info *info = ecard_get_drvdata(ec); ec 85 drivers/tty/serial/8250/8250_acorn.c ecard_set_drvdata(ec, NULL); ec 978 drivers/usb/serial/sierra.c int ec = 0; ec 994 drivers/usb/serial/sierra.c ec++; ec 1006 drivers/usb/serial/sierra.c if (ec) ec 1016 drivers/usb/serial/sierra.c int ec = 0; ec 1028 drivers/usb/serial/sierra.c ec++; ec 1032 drivers/usb/serial/sierra.c ec++; ec 1037 drivers/usb/serial/sierra.c return ec ? -EIO : 0; ec 416 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c unsigned itc, ec, q, sc; ec 437 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c ec = (ptr[2] >> 4) & 0x7; ec 454 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c (itc << 7) | (ec << 4) | (q << 2) | (sc << 0)); ec 146 fs/fat/dir.c wchar_t ec; ec 154 fs/fat/dir.c ec = *ip++; ec 155 fs/fat/dir.c charlen = nls->uni2char(ec, op, NLS_MAX_CHARSET_SIZE); ec 162 fs/fat/dir.c op = hex_byte_pack(op, ec >> 8); ec 163 fs/fat/dir.c op = hex_byte_pack(op, ec); ec 35 include/asm-generic/export.h .section ___ksymtab\sec+\name,"a" ec 45 include/asm-generic/export.h .section ___kcrctab\sec+\name,"a" ec 56 include/linux/iio/common/cros_ec_sensors_core.h struct cros_ec_device *ec; ec 3381 include/linux/mlx5/mlx5_ifc.h u8 ec[0x1]; ec 135 include/linux/platform_data/cros_ec_proto.h int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset, ec 151 include/linux/platform_data/cros_ec_proto.h int (*cmd_xfer)(struct cros_ec_device *ec, ec 153 include/linux/platform_data/cros_ec_proto.h int (*pkt_xfer)(struct cros_ec_device *ec, ec 166 include/linux/platform_data/cros_ec_proto.h struct platform_device *ec; ec 121 include/linux/platform_data/wilco-ec.h int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg); ec 156 include/linux/platform_data/wilco-ec.h int wilco_ec_get_property(struct wilco_ec_device *ec, ec 169 include/linux/platform_data/wilco-ec.h int wilco_ec_set_property(struct wilco_ec_device *ec, ec 180 include/linux/platform_data/wilco-ec.h int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id, ec 191 include/linux/platform_data/wilco-ec.h int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id, ec 203 include/linux/platform_data/wilco-ec.h int wilco_ec_add_sysfs(struct wilco_ec_device *ec); ec 204 include/linux/platform_data/wilco-ec.h void wilco_ec_remove_sysfs(struct wilco_ec_device *ec); ec 672 include/media/v4l2-mem2mem.h struct v4l2_encoder_cmd *ec); ec 504 net/sunrpc/auth_gss/gss_krb5_wrap.c u16 ec, rrc; ec 534 net/sunrpc/auth_gss/gss_krb5_wrap.c ec = be16_to_cpup((__be16 *)(ptr + 4)); ec 590 net/sunrpc/auth_gss/gss_krb5_wrap.c xdr_buf_trim(buf, ec + GSS_KRB5_TOK_HDR_LEN + tailskip); ec 593 net/sunrpc/auth_gss/gss_krb5_wrap.c *slack = *align + XDR_QUADLEN(ec + GSS_KRB5_TOK_HDR_LEN + tailskip); ec 1441 scripts/asn1_compiler.c struct element *ec, *x; ec 1549 scripts/asn1_compiler.c for (ec = e->children; ec; ec = ec->next) ec 1550 scripts/asn1_compiler.c render_element(out, ec, NULL); ec 1597 scripts/asn1_compiler.c for (ec = e->children; ec; ec = ec->next) ec 1598 scripts/asn1_compiler.c render_element(out, ec, ec); ec 154 sound/pci/ctxfi/cthardware.h int (*dai_srt_set_ec)(void *blk, unsigned int ec); ec 860 sound/pci/ctxfi/cthw20k1.c static int dai_srt_set_ec(void *blk, unsigned int ec) ec 864 sound/pci/ctxfi/cthw20k1.c set_field(&ctl->srtctl, SRTCTL_EC, ec ? 1 : 0); ec 850 sound/pci/ctxfi/cthw20k2.c static int dai_srt_set_ec(void *blk, unsigned int ec) ec 854 sound/pci/ctxfi/cthw20k2.c set_field(&ctl->srt, SRTCTL_EC, ec ? 1 : 0); ec 1390 sound/soc/intel/skylake/skl-topology.c struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; ec 1391 sound/soc/intel/skylake/skl-topology.c u32 ch_type = *((u32 *)ec->dobj.private); ec 1429 sound/soc/intel/skylake/skl-topology.c struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; ec 1430 sound/soc/intel/skylake/skl-topology.c u32 ch_type = *((u32 *)ec->dobj.private); ec 2973 sound/soc/intel/skylake/skl-topology.c struct snd_soc_tplg_enum_control *ec) ec 2978 sound/soc/intel/skylake/skl-topology.c if (ec->priv.size) { ec 2979 sound/soc/intel/skylake/skl-topology.c data = devm_kzalloc(dev, sizeof(ec->priv.size), GFP_KERNEL); ec 2982 sound/soc/intel/skylake/skl-topology.c memcpy(data, ec->priv.data, ec->priv.size); ec 933 sound/soc/soc-topology.c struct snd_soc_tplg_enum_control *ec) ec 938 sound/soc/soc-topology.c kcalloc(le32_to_cpu(ec->items), sizeof(char *), GFP_KERNEL); ec 942 sound/soc/soc-topology.c for (i = 0; i < le32_to_cpu(ec->items); i++) { ec 944 sound/soc/soc-topology.c if (strnlen(ec->texts[i], SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == ec 950 sound/soc/soc-topology.c se->dobj.control.dtexts[i] = kstrdup(ec->texts[i], GFP_KERNEL); ec 957 sound/soc/soc-topology.c se->items = le32_to_cpu(ec->items); ec 977 sound/soc/soc-topology.c struct snd_soc_tplg_enum_control *ec) ec 981 sound/soc/soc-topology.c if (le32_to_cpu(ec->items) > sizeof(*ec->values)) ec 984 sound/soc/soc-topology.c se->dobj.control.dvalues = kzalloc(le32_to_cpu(ec->items) * ec 991 sound/soc/soc-topology.c for (i = 0; i < le32_to_cpu(ec->items); i++) { ec 992 sound/soc/soc-topology.c se->dobj.control.dvalues[i] = le32_to_cpu(ec->values[i]); ec 1006 sound/soc/soc-topology.c struct snd_soc_tplg_enum_control *ec; ec 1021 sound/soc/soc-topology.c ec = (struct snd_soc_tplg_enum_control *)tplg->pos; ec 1024 sound/soc/soc-topology.c if (strnlen(ec->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == ec 1033 sound/soc/soc-topology.c le32_to_cpu(ec->priv.size)); ec 1036 sound/soc/soc-topology.c ec->hdr.name, ec->items); ec 1039 sound/soc/soc-topology.c kc.name = ec->hdr.name; ec 1042 sound/soc/soc-topology.c kc.access = le32_to_cpu(ec->hdr.access); ec 1044 sound/soc/soc-topology.c se->reg = tplc_chan_get_reg(tplg, ec->channel, SNDRV_CHMAP_FL); ec 1045 sound/soc/soc-topology.c se->shift_l = tplc_chan_get_shift(tplg, ec->channel, ec 1047 sound/soc/soc-topology.c se->shift_r = tplc_chan_get_shift(tplg, ec->channel, ec 1050 sound/soc/soc-topology.c se->mask = le32_to_cpu(ec->mask); ec 1056 sound/soc/soc-topology.c switch (le32_to_cpu(ec->hdr.ops.info)) { ec 1059 sound/soc/soc-topology.c err = soc_tplg_denum_create_values(se, ec); ec 1063 sound/soc/soc-topology.c ec->hdr.name); ec 1071 sound/soc/soc-topology.c err = soc_tplg_denum_create_texts(se, ec); ec 1075 sound/soc/soc-topology.c ec->hdr.name); ec 1083 sound/soc/soc-topology.c ec->hdr.ops.info, ec->hdr.name); ec 1089 sound/soc/soc-topology.c err = soc_tplg_kcontrol_bind_io(&ec->hdr, &kc, tplg); ec 1091 sound/soc/soc-topology.c soc_control_err(tplg, &ec->hdr, ec->hdr.name); ec 1098 sound/soc/soc-topology.c (struct snd_soc_tplg_ctl_hdr *) ec); ec 1101 sound/soc/soc-topology.c ec->hdr.name); ec 1111 sound/soc/soc-topology.c ec->hdr.name); ec 1406 sound/soc/soc-topology.c struct snd_soc_tplg_enum_control *ec; ec 1415 sound/soc/soc-topology.c ec = (struct snd_soc_tplg_enum_control *)tplg->pos; ec 1417 sound/soc/soc-topology.c if (strnlen(ec->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == ec 1426 sound/soc/soc-topology.c le32_to_cpu(ec->priv.size)); ec 1429 sound/soc/soc-topology.c ec->hdr.name); ec 1432 sound/soc/soc-topology.c kc[i].name = kstrdup(ec->hdr.name, GFP_KERNEL); ec 1436 sound/soc/soc-topology.c kc[i].access = le32_to_cpu(ec->hdr.access); ec 1439 sound/soc/soc-topology.c se->reg = tplc_chan_get_reg(tplg, ec->channel, SNDRV_CHMAP_FL); ec 1440 sound/soc/soc-topology.c se->shift_l = tplc_chan_get_shift(tplg, ec->channel, ec 1442 sound/soc/soc-topology.c se->shift_r = tplc_chan_get_shift(tplg, ec->channel, ec 1445 sound/soc/soc-topology.c se->items = le32_to_cpu(ec->items); ec 1446 sound/soc/soc-topology.c se->mask = le32_to_cpu(ec->mask); ec 1449 sound/soc/soc-topology.c switch (le32_to_cpu(ec->hdr.ops.info)) { ec 1452 sound/soc/soc-topology.c err = soc_tplg_denum_create_values(se, ec); ec 1455 sound/soc/soc-topology.c ec->hdr.name); ec 1462 sound/soc/soc-topology.c err = soc_tplg_denum_create_texts(se, ec); ec 1465 sound/soc/soc-topology.c ec->hdr.name); ec 1471 sound/soc/soc-topology.c ec->hdr.ops.info, ec->hdr.name); ec 1476 sound/soc/soc-topology.c err = soc_tplg_kcontrol_bind_io(&ec->hdr, &kc[i], tplg); ec 1478 sound/soc/soc-topology.c soc_control_err(tplg, &ec->hdr, ec->hdr.name); ec 1484 sound/soc/soc-topology.c (struct snd_soc_tplg_ctl_hdr *)ec); ec 1487 sound/soc/soc-topology.c ec->hdr.name); ec 509 sound/soc/sof/topology.c struct snd_soc_tplg_enum_control *ec = ec 513 sound/soc/sof/topology.c if (le32_to_cpu(ec->num_channels) > SND_SOC_TPLG_MAX_CHAN) ec 518 sound/soc/sof/topology.c le32_to_cpu(ec->num_channels)); ec 524 sound/soc/sof/topology.c scontrol->num_channels = le32_to_cpu(ec->num_channels); ec 526 usr/gen_init_cpio.c int ec = 0; ec 583 usr/gen_init_cpio.c ec = -1; ec 601 usr/gen_init_cpio.c ec = -1; ec 608 usr/gen_init_cpio.c ec = rc; ec 620 usr/gen_init_cpio.c if (ec == 0) ec 623 usr/gen_init_cpio.c exit(ec);