cd 99 arch/arm/include/asm/ecard.h unsigned char cd:1; /* Chunk dir present */ cd 186 arch/arm/include/asm/ecard.h extern int ecard_readchunk (struct in_chunk_dir *cd, struct expansion_card *ec, int id, int num); cd 34 arch/arm/mach-lpc32xx/phy3250.c static int pl08x_get_signal(const struct pl08x_channel_data *cd) cd 36 arch/arm/mach-lpc32xx/phy3250.c return cd->min_signal; cd 39 arch/arm/mach-lpc32xx/phy3250.c static void pl08x_put_signal(const struct pl08x_channel_data *cd, int ch) cd 105 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 110 arch/arm/mach-omap2/clockdomain.c for (cd = deps; cd->clkdm_name; cd++) { cd 111 arch/arm/mach-omap2/clockdomain.c if (!cd->clkdm && cd->clkdm_name) cd 112 arch/arm/mach-omap2/clockdomain.c cd->clkdm = _clkdm_lookup(cd->clkdm_name); cd 114 arch/arm/mach-omap2/clockdomain.c if (cd->clkdm == clkdm) cd 118 arch/arm/mach-omap2/clockdomain.c if (!cd->clkdm_name) cd 121 arch/arm/mach-omap2/clockdomain.c return cd; cd 168 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 170 arch/arm/mach-omap2/clockdomain.c for (cd = clkdm_deps; cd && cd->clkdm_name; cd++) { cd 171 arch/arm/mach-omap2/clockdomain.c if (cd->clkdm) cd 173 arch/arm/mach-omap2/clockdomain.c cd->clkdm = _clkdm_lookup(cd->clkdm_name); cd 175 arch/arm/mach-omap2/clockdomain.c WARN(!cd->clkdm, "clockdomain: %s: could not find clkdm %s while resolving dependencies - should never happen", cd 176 arch/arm/mach-omap2/clockdomain.c clkdm->name, cd->clkdm_name); cd 195 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 201 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->wkdep_srcs); cd 202 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 203 arch/arm/mach-omap2/clockdomain.c ret = PTR_ERR(cd); cd 214 arch/arm/mach-omap2/clockdomain.c cd->wkdep_usecount++; cd 215 arch/arm/mach-omap2/clockdomain.c if (cd->wkdep_usecount == 1) { cd 238 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 244 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->wkdep_srcs); cd 245 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 246 arch/arm/mach-omap2/clockdomain.c ret = PTR_ERR(cd); cd 257 arch/arm/mach-omap2/clockdomain.c cd->wkdep_usecount--; cd 258 arch/arm/mach-omap2/clockdomain.c if (cd->wkdep_usecount == 0) { cd 283 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 289 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->sleepdep_srcs); cd 290 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 291 arch/arm/mach-omap2/clockdomain.c ret = PTR_ERR(cd); cd 302 arch/arm/mach-omap2/clockdomain.c cd->sleepdep_usecount++; cd 303 arch/arm/mach-omap2/clockdomain.c if (cd->sleepdep_usecount == 1) { cd 328 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 334 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->sleepdep_srcs); cd 335 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 336 arch/arm/mach-omap2/clockdomain.c ret = PTR_ERR(cd); cd 347 arch/arm/mach-omap2/clockdomain.c cd->sleepdep_usecount--; cd 348 arch/arm/mach-omap2/clockdomain.c if (cd->sleepdep_usecount == 0) { cd 595 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 601 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->wkdep_srcs); cd 602 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 603 arch/arm/mach-omap2/clockdomain.c return PTR_ERR(cd); cd 605 arch/arm/mach-omap2/clockdomain.c pwrdm_lock(cd->clkdm->pwrdm.ptr); cd 607 arch/arm/mach-omap2/clockdomain.c pwrdm_unlock(cd->clkdm->pwrdm.ptr); cd 624 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 630 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->wkdep_srcs); cd 631 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 632 arch/arm/mach-omap2/clockdomain.c return PTR_ERR(cd); cd 634 arch/arm/mach-omap2/clockdomain.c pwrdm_lock(cd->clkdm->pwrdm.ptr); cd 636 arch/arm/mach-omap2/clockdomain.c pwrdm_unlock(cd->clkdm->pwrdm.ptr); cd 657 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 663 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->wkdep_srcs); cd 664 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 665 arch/arm/mach-omap2/clockdomain.c ret = PTR_ERR(cd); cd 715 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 721 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->wkdep_srcs); cd 722 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 723 arch/arm/mach-omap2/clockdomain.c return PTR_ERR(cd); cd 725 arch/arm/mach-omap2/clockdomain.c pwrdm_lock(cd->clkdm->pwrdm.ptr); cd 727 arch/arm/mach-omap2/clockdomain.c pwrdm_unlock(cd->clkdm->pwrdm.ptr); cd 746 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 752 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->wkdep_srcs); cd 753 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 754 arch/arm/mach-omap2/clockdomain.c return PTR_ERR(cd); cd 756 arch/arm/mach-omap2/clockdomain.c pwrdm_lock(cd->clkdm->pwrdm.ptr); cd 758 arch/arm/mach-omap2/clockdomain.c pwrdm_unlock(cd->clkdm->pwrdm.ptr); cd 781 arch/arm/mach-omap2/clockdomain.c struct clkdm_dep *cd; cd 787 arch/arm/mach-omap2/clockdomain.c cd = _clkdm_deps_lookup(clkdm2, clkdm1->sleepdep_srcs); cd 788 arch/arm/mach-omap2/clockdomain.c if (IS_ERR(cd)) cd 789 arch/arm/mach-omap2/clockdomain.c ret = PTR_ERR(cd); cd 174 arch/arm/mach-omap2/cm3xxx.c struct clkdm_dep *cd; cd 177 arch/arm/mach-omap2/cm3xxx.c for (cd = clkdm->sleepdep_srcs; cd && cd->clkdm_name; cd++) { cd 178 arch/arm/mach-omap2/cm3xxx.c if (!cd->clkdm) cd 181 arch/arm/mach-omap2/cm3xxx.c mask |= 1 << cd->clkdm->dep_bit; cd 182 arch/arm/mach-omap2/cm3xxx.c cd->sleepdep_usecount = 0; cd 382 arch/arm/mach-omap2/cminst44xx.c struct clkdm_dep *cd; cd 388 arch/arm/mach-omap2/cminst44xx.c for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { cd 389 arch/arm/mach-omap2/cminst44xx.c if (!cd->clkdm) cd 392 arch/arm/mach-omap2/cminst44xx.c mask |= 1 << cd->clkdm->dep_bit; cd 393 arch/arm/mach-omap2/cminst44xx.c cd->wkdep_usecount = 0; cd 221 arch/arm/mach-omap2/prm2xxx_3xxx.c struct clkdm_dep *cd; cd 224 arch/arm/mach-omap2/prm2xxx_3xxx.c for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { cd 225 arch/arm/mach-omap2/prm2xxx_3xxx.c if (!cd->clkdm) cd 229 arch/arm/mach-omap2/prm2xxx_3xxx.c mask |= 1 << cd->clkdm->dep_bit; cd 230 arch/arm/mach-omap2/prm2xxx_3xxx.c cd->wkdep_usecount = 0; cd 326 arch/arm/mach-rpc/ecard.c int ecard_readchunk(struct in_chunk_dir *cd, ecard_t *ec, int id, int num) cd 332 arch/arm/mach-rpc/ecard.c if (!ec->cid.cd) cd 378 arch/arm/mach-rpc/ecard.c cd->start_offset = c_start(&excd); cd 379 arch/arm/mach-rpc/ecard.c memcpy(cd->d.string, excd.d.string, 256); cd 635 arch/arm/mach-rpc/ecard.c if (!ec->card_desc && ec->cid.cd && cd 915 arch/arm/mach-rpc/ecard.c ec->cid.cd = cid.r_cd; cd 19 arch/arm/mach-rpc/irq.c void *cd = irq_data_get_irq_chip_data(d); cd 21 arch/arm/mach-rpc/irq.c return (void __iomem *)(unsigned long)cd; cd 19 arch/arm/mach-s3c64xx/pl080.c static int pl08x_get_xfer_signal(const struct pl08x_channel_data *cd) cd 21 arch/arm/mach-s3c64xx/pl080.c return cd->min_signal; cd 24 arch/arm/mach-s3c64xx/pl080.c static void pl08x_put_xfer_signal(const struct pl08x_channel_data *cd, int ch) cd 30 arch/arm/mach-spear/pl080.c int pl080_get_signal(const struct pl08x_channel_data *cd) cd 32 arch/arm/mach-spear/pl080.c unsigned int signal = cd->min_signal, val; cd 39 arch/arm/mach-spear/pl080.c (signals[signal].val != cd->muxval)) { cd 54 arch/arm/mach-spear/pl080.c val |= cd->muxval << (signal * 2); cd 59 arch/arm/mach-spear/pl080.c signals[signal].val = cd->muxval; cd 65 arch/arm/mach-spear/pl080.c void pl080_put_signal(const struct pl08x_channel_data *cd, int signal) cd 18 arch/arm/mach-spear/pl080.h int pl080_get_signal(const struct pl08x_channel_data *cd); cd 19 arch/arm/mach-spear/pl080.h void pl080_put_signal(const struct pl08x_channel_data *cd, int signal); cd 161 arch/c6x/platforms/timer64.c struct clock_event_device *cd = &t64_clockevent_device; cd 163 arch/c6x/platforms/timer64.c cd->event_handler(cd); cd 177 arch/c6x/platforms/timer64.c struct clock_event_device *cd = &t64_clockevent_device; cd 209 arch/c6x/platforms/timer64.c cd->irq = irq_of_parse_and_map(np, 0); cd 210 arch/c6x/platforms/timer64.c if (cd->irq == NO_IRQ) { cd 229 arch/c6x/platforms/timer64.c pr_debug("%pOF: Timer irq=%d.\n", np, cd->irq); cd 231 arch/c6x/platforms/timer64.c clockevents_calc_mult_shift(cd, c6x_core_freq / TIMER_DIVISOR, 5); cd 233 arch/c6x/platforms/timer64.c cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); cd 234 arch/c6x/platforms/timer64.c cd->max_delta_ticks = 0x7fffffff; cd 235 arch/c6x/platforms/timer64.c cd->min_delta_ns = clockevent_delta2ns(250, cd); cd 236 arch/c6x/platforms/timer64.c cd->min_delta_ticks = 250; cd 238 arch/c6x/platforms/timer64.c cd->cpumask = cpumask_of(smp_processor_id()); cd 240 arch/c6x/platforms/timer64.c clockevents_register_device(cd); cd 241 arch/c6x/platforms/timer64.c setup_irq(cd->irq, &timer_iact); cd 176 arch/m68k/amiga/config.c const struct ConfigDev *cd = data; cd 178 arch/m68k/amiga/config.c dev->rom = cd->cd_Rom; cd 179 arch/m68k/amiga/config.c dev->slotaddr = be16_to_cpu(cd->cd_SlotAddr); cd 180 arch/m68k/amiga/config.c dev->slotsize = be16_to_cpu(cd->cd_SlotSize); cd 181 arch/m68k/amiga/config.c dev->boardaddr = be32_to_cpu(cd->cd_BoardAddr); cd 182 arch/m68k/amiga/config.c dev->boardsize = be32_to_cpu(cd->cd_BoardSize); cd 49 arch/mips/alchemy/common/time.c struct clock_event_device *cd) cd 62 arch/mips/alchemy/common/time.c struct clock_event_device *cd = dev_id; cd 63 arch/mips/alchemy/common/time.c cd->event_handler(cd); cd 84 arch/mips/alchemy/common/time.c struct clock_event_device *cd = &au1x_rtcmatch2_clockdev; cd 126 arch/mips/alchemy/common/time.c cd->shift = 32; cd 127 arch/mips/alchemy/common/time.c cd->mult = div_sc(32768, NSEC_PER_SEC, cd->shift); cd 128 arch/mips/alchemy/common/time.c cd->max_delta_ns = clockevent_delta2ns(0xffffffff, cd); cd 129 arch/mips/alchemy/common/time.c cd->max_delta_ticks = 0xffffffff; cd 130 arch/mips/alchemy/common/time.c cd->min_delta_ns = clockevent_delta2ns(9, cd); cd 131 arch/mips/alchemy/common/time.c cd->min_delta_ticks = 9; /* ~0.28ms */ cd 132 arch/mips/alchemy/common/time.c clockevents_register_device(cd); cd 101 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 103 arch/mips/cavium-octeon/octeon-irq.c cd = kzalloc(sizeof(*cd), GFP_KERNEL); cd 104 arch/mips/cavium-octeon/octeon-irq.c if (!cd) cd 109 arch/mips/cavium-octeon/octeon-irq.c cd->line = line; cd 110 arch/mips/cavium-octeon/octeon-irq.c cd->bit = bit; cd 111 arch/mips/cavium-octeon/octeon-irq.c cd->gpio_line = gpio_line; cd 113 arch/mips/cavium-octeon/octeon-irq.c irq_set_chip_data(irq, cd); cd 121 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd = irq_data_get_irq_chip_data(data); cd 124 arch/mips/cavium-octeon/octeon-irq.c kfree(cd); cd 153 arch/mips/cavium-octeon/octeon-irq.c struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 154 arch/mips/cavium-octeon/octeon-irq.c unsigned int bit = cd->bit; cd 169 arch/mips/cavium-octeon/octeon-irq.c struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 176 arch/mips/cavium-octeon/octeon-irq.c set_c0_status(0x100 << cd->bit); cd 182 arch/mips/cavium-octeon/octeon-irq.c struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 183 arch/mips/cavium-octeon/octeon-irq.c unsigned int mask = 0x100 << cd->bit; cd 188 arch/mips/cavium-octeon/octeon-irq.c if (cd->desired_en) cd 197 arch/mips/cavium-octeon/octeon-irq.c struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 198 arch/mips/cavium-octeon/octeon-irq.c cd->desired_en = false; cd 203 arch/mips/cavium-octeon/octeon-irq.c struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 204 arch/mips/cavium-octeon/octeon-irq.c cd->desired_en = true; cd 209 arch/mips/cavium-octeon/octeon-irq.c struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 211 arch/mips/cavium-octeon/octeon-irq.c mutex_lock(&cd->core_irq_mutex); cd 216 arch/mips/cavium-octeon/octeon-irq.c struct octeon_core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 218 arch/mips/cavium-octeon/octeon-irq.c if (cd->desired_en != cd->current_en) { cd 221 arch/mips/cavium-octeon/octeon-irq.c cd->current_en = cd->desired_en; cd 224 arch/mips/cavium-octeon/octeon-irq.c mutex_unlock(&cd->core_irq_mutex); cd 245 arch/mips/cavium-octeon/octeon-irq.c struct octeon_core_chip_data *cd; cd 248 arch/mips/cavium-octeon/octeon-irq.c cd = &octeon_irq_core_chip_data[i]; cd 249 arch/mips/cavium-octeon/octeon-irq.c cd->current_en = false; cd 250 arch/mips/cavium-octeon/octeon-irq.c cd->desired_en = false; cd 251 arch/mips/cavium-octeon/octeon-irq.c cd->bit = i; cd 252 arch/mips/cavium-octeon/octeon-irq.c mutex_init(&cd->core_irq_mutex); cd 255 arch/mips/cavium-octeon/octeon-irq.c irq_set_chip_data(irq, cd); cd 268 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd = irq_data_get_irq_chip_data(data); cd 271 arch/mips/cavium-octeon/octeon-irq.c cpu = cd->current_cpu; cd 286 arch/mips/cavium-octeon/octeon-irq.c cd->current_cpu = cpu; cd 299 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 302 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 305 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 307 arch/mips/cavium-octeon/octeon-irq.c __set_bit(cd->bit, pen); cd 316 arch/mips/cavium-octeon/octeon-irq.c __set_bit(cd->bit, pen); cd 331 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 334 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 337 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 339 arch/mips/cavium-octeon/octeon-irq.c __set_bit(cd->bit, pen); cd 348 arch/mips/cavium-octeon/octeon-irq.c __set_bit(cd->bit, pen); cd 363 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 366 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 369 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 371 arch/mips/cavium-octeon/octeon-irq.c __clear_bit(cd->bit, pen); cd 380 arch/mips/cavium-octeon/octeon-irq.c __clear_bit(cd->bit, pen); cd 396 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 399 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 404 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) cd 410 arch/mips/cavium-octeon/octeon-irq.c __clear_bit(cd->bit, pen); cd 416 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) cd 429 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 432 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 437 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) cd 443 arch/mips/cavium-octeon/octeon-irq.c __set_bit(cd->bit, pen); cd 449 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) cd 465 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 467 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 468 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 474 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 476 arch/mips/cavium-octeon/octeon-irq.c set_bit(cd->bit, &per_cpu(octeon_irq_ciu0_en_mirror, cpu)); cd 480 arch/mips/cavium-octeon/octeon-irq.c set_bit(cd->bit, &per_cpu(octeon_irq_ciu1_en_mirror, cpu)); cd 493 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 495 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 496 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 509 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 511 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 512 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 522 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 524 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 525 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 533 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 536 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 537 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 553 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 555 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 556 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 558 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 560 arch/mips/cavium-octeon/octeon-irq.c set_bit(cd->bit, this_cpu_ptr(&octeon_irq_ciu0_en_mirror)); cd 564 arch/mips/cavium-octeon/octeon-irq.c set_bit(cd->bit, this_cpu_ptr(&octeon_irq_ciu1_en_mirror)); cd 572 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 574 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 575 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 577 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 579 arch/mips/cavium-octeon/octeon-irq.c clear_bit(cd->bit, this_cpu_ptr(&octeon_irq_ciu0_en_mirror)); cd 583 arch/mips/cavium-octeon/octeon-irq.c clear_bit(cd->bit, this_cpu_ptr(&octeon_irq_ciu1_en_mirror)); cd 594 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 596 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 597 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 599 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 615 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 617 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 618 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 620 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 623 arch/mips/cavium-octeon/octeon-irq.c clear_bit(cd->bit, cd 630 arch/mips/cavium-octeon/octeon-irq.c clear_bit(cd->bit, cd 645 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 647 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 648 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 650 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 653 arch/mips/cavium-octeon/octeon-irq.c set_bit(cd->bit, cd 660 arch/mips/cavium-octeon/octeon-irq.c set_bit(cd->bit, cd 682 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 685 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 696 arch/mips/cavium-octeon/octeon-irq.c cvmx_write_csr(CVMX_GPIO_BIT_CFGX(cd->gpio_line), cfg.u64); cd 726 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 728 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 729 arch/mips/cavium-octeon/octeon-irq.c cvmx_write_csr(CVMX_GPIO_BIT_CFGX(cd->gpio_line), 0); cd 736 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 738 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 739 arch/mips/cavium-octeon/octeon-irq.c cvmx_write_csr(CVMX_GPIO_BIT_CFGX(cd->gpio_line), 0); cd 746 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 749 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 750 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->gpio_line); cd 787 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 791 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 811 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) cd 818 arch/mips/cavium-octeon/octeon-irq.c __set_bit(cd->bit, pen); cd 820 arch/mips/cavium-octeon/octeon-irq.c __clear_bit(cd->bit, pen); cd 828 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) cd 849 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 854 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 855 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << cd->bit; cd 857 arch/mips/cavium-octeon/octeon-irq.c if (cd->line == 0) { cd 863 arch/mips/cavium-octeon/octeon-irq.c set_bit(cd->bit, pen); cd 866 arch/mips/cavium-octeon/octeon-irq.c clear_bit(cd->bit, pen); cd 876 arch/mips/cavium-octeon/octeon-irq.c set_bit(cd->bit, pen); cd 879 arch/mips/cavium-octeon/octeon-irq.c clear_bit(cd->bit, pen); cd 894 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 899 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 900 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << cd->bit; cd 1639 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 1641 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 1642 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 1645 arch/mips/cavium-octeon/octeon-irq.c (0x1000ull * cd->line); cd 1656 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 1658 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 1659 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 1662 arch/mips/cavium-octeon/octeon-irq.c (0x1000ull * cd->line); cd 1671 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 1673 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 1674 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 1677 arch/mips/cavium-octeon/octeon-irq.c (0x1000ull * cd->line); cd 1687 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 1689 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 1690 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 1693 arch/mips/cavium-octeon/octeon-irq.c (0x1000ull * cd->line); cd 1703 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 1705 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 1706 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 1708 arch/mips/cavium-octeon/octeon-irq.c en_addr = CVMX_CIU2_RAW_PPX_IP2_WRKQ(coreid) + (0x1000ull * cd->line); cd 1717 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 1719 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 1720 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << (cd->bit); cd 1724 arch/mips/cavium-octeon/octeon-irq.c octeon_coreid_for_cpu(cpu)) + (0x1000ull * cd->line); cd 1786 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 1791 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 1792 arch/mips/cavium-octeon/octeon-irq.c mask = 1ull << cd->bit; cd 1800 arch/mips/cavium-octeon/octeon-irq.c (0x1000ull * cd->line); cd 1804 arch/mips/cavium-octeon/octeon-irq.c (0x1000ull * cd->line); cd 1821 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 1823 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 1825 arch/mips/cavium-octeon/octeon-irq.c cvmx_write_csr(CVMX_GPIO_BIT_CFGX(cd->gpio_line), 0); cd 2121 arch/mips/cavium-octeon/octeon-irq.c struct octeon_irq_cib_chip_data *cd = irq_data_get_irq_chip_data(data); cd 2122 arch/mips/cavium-octeon/octeon-irq.c struct octeon_irq_cib_host_data *host_data = cd->host_data; cd 2126 arch/mips/cavium-octeon/octeon-irq.c en |= 1ull << cd->bit; cd 2135 arch/mips/cavium-octeon/octeon-irq.c struct octeon_irq_cib_chip_data *cd = irq_data_get_irq_chip_data(data); cd 2136 arch/mips/cavium-octeon/octeon-irq.c struct octeon_irq_cib_host_data *host_data = cd->host_data; cd 2140 arch/mips/cavium-octeon/octeon-irq.c en &= ~(1ull << cd->bit); cd 2193 arch/mips/cavium-octeon/octeon-irq.c struct octeon_irq_cib_chip_data *cd; cd 2201 arch/mips/cavium-octeon/octeon-irq.c cd = kzalloc(sizeof(*cd), GFP_KERNEL); cd 2202 arch/mips/cavium-octeon/octeon-irq.c if (!cd) cd 2205 arch/mips/cavium-octeon/octeon-irq.c cd->host_data = host_data; cd 2206 arch/mips/cavium-octeon/octeon-irq.c cd->bit = hw; cd 2210 arch/mips/cavium-octeon/octeon-irq.c irq_set_chip_data(virq, cd); cd 2388 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 2392 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 2396 arch/mips/cavium-octeon/octeon-irq.c cvmx_write_csr(cd->ciu3_addr + CIU3_ISC_W1C(cd->intsn), isc_w1c.u64); cd 2398 arch/mips/cavium-octeon/octeon-irq.c isc_ctl_addr = cd->ciu3_addr + CIU3_ISC_CTL(cd->intsn); cd 2411 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 2413 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 2418 arch/mips/cavium-octeon/octeon-irq.c isc_ctl_addr = cd->ciu3_addr + CIU3_ISC_CTL(cd->intsn); cd 2419 arch/mips/cavium-octeon/octeon-irq.c cvmx_write_csr(cd->ciu3_addr + CIU3_ISC_W1C(cd->intsn), isc_w1c.u64); cd 2428 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 2438 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 2443 arch/mips/cavium-octeon/octeon-irq.c isc_w1c_addr = cd->ciu3_addr + CIU3_ISC_W1C(cd->intsn); cd 2452 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 2454 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 2459 arch/mips/cavium-octeon/octeon-irq.c isc_w1c_addr = cd->ciu3_addr + CIU3_ISC_W1C(cd->intsn); cd 2468 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd; cd 2471 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 2483 arch/mips/cavium-octeon/octeon-irq.c isc_w1c_addr = cd->ciu3_addr + CIU3_ISC_W1C(cd->intsn); cd 2497 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd = irq_data_get_irq_chip_data(data); cd 2499 arch/mips/cavium-octeon/octeon-irq.c if (!cpumask_subset(dest, cpumask_of_node(cd->ciu_node))) cd 2505 arch/mips/cavium-octeon/octeon-irq.c cd = irq_data_get_irq_chip_data(data); cd 2509 arch/mips/cavium-octeon/octeon-irq.c cd->current_cpu = cpu; cd 2513 arch/mips/cavium-octeon/octeon-irq.c cvmx_write_csr(cd->ciu3_addr + CIU3_ISC_W1C(cd->intsn), isc_w1c.u64); cd 2515 arch/mips/cavium-octeon/octeon-irq.c isc_ctl_addr = cd->ciu3_addr + CIU3_ISC_CTL(cd->intsn); cd 2546 arch/mips/cavium-octeon/octeon-irq.c struct octeon_ciu_chip_data *cd = kzalloc_node(sizeof(*cd), GFP_KERNEL, cd 2548 arch/mips/cavium-octeon/octeon-irq.c if (!cd) cd 2550 arch/mips/cavium-octeon/octeon-irq.c cd->intsn = hw; cd 2551 arch/mips/cavium-octeon/octeon-irq.c cd->current_cpu = -1; cd 2552 arch/mips/cavium-octeon/octeon-irq.c cd->ciu3_addr = ciu3_info->ciu3_addr; cd 2553 arch/mips/cavium-octeon/octeon-irq.c cd->ciu_node = ciu3_info->node; cd 2555 arch/mips/cavium-octeon/octeon-irq.c irq_set_chip_data(virq, cd); cd 251 arch/mips/include/asm/asmmacro.h .macro _ctcmsa cd, rs cd 382 arch/mips/include/asm/asmmacro.h .macro _ctcmsa cd, rs cd 168 arch/mips/include/asm/msa.h _ASM_MACRO_2R(ctcmsa, cd, rs, cd 67 arch/mips/include/asm/time.h static inline void clockevent_set_clock(struct clock_event_device *cd, cd 70 arch/mips/include/asm/time.h clockevents_calc_mult_shift(cd, clock, 4); cd 122 arch/mips/jazz/irq.c struct clock_event_device *cd = dev_id; cd 124 arch/mips/jazz/irq.c cd->event_handler(cd); cd 136 arch/mips/jazz/irq.c struct clock_event_device *cd = &r4030_clockevent; cd 142 arch/mips/jazz/irq.c cd->cpumask = cpumask_of(cpu); cd 143 arch/mips/jazz/irq.c clockevents_register_device(cd); cd 144 arch/mips/jazz/irq.c action->dev_id = cd; cd 57 arch/mips/kernel/cevt-bcm1480.c static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) cd 75 arch/mips/kernel/cevt-bcm1480.c struct clock_event_device *cd = dev_id; cd 79 arch/mips/kernel/cevt-bcm1480.c if (clockevent_state_periodic(cd)) cd 88 arch/mips/kernel/cevt-bcm1480.c cd->event_handler(cd); cd 102 arch/mips/kernel/cevt-bcm1480.c struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); cd 108 arch/mips/kernel/cevt-bcm1480.c cd->name = name; cd 109 arch/mips/kernel/cevt-bcm1480.c cd->features = CLOCK_EVT_FEAT_PERIODIC | cd 111 arch/mips/kernel/cevt-bcm1480.c clockevent_set_clock(cd, V_SCD_TIMER_FREQ); cd 112 arch/mips/kernel/cevt-bcm1480.c cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); cd 113 arch/mips/kernel/cevt-bcm1480.c cd->max_delta_ticks = 0x7fffff; cd 114 arch/mips/kernel/cevt-bcm1480.c cd->min_delta_ns = clockevent_delta2ns(2, cd); cd 115 arch/mips/kernel/cevt-bcm1480.c cd->min_delta_ticks = 2; cd 116 arch/mips/kernel/cevt-bcm1480.c cd->rating = 200; cd 117 arch/mips/kernel/cevt-bcm1480.c cd->irq = irq; cd 118 arch/mips/kernel/cevt-bcm1480.c cd->cpumask = cpumask_of(cpu); cd 119 arch/mips/kernel/cevt-bcm1480.c cd->set_next_event = sibyte_next_event; cd 120 arch/mips/kernel/cevt-bcm1480.c cd->set_state_shutdown = sibyte_shutdown; cd 121 arch/mips/kernel/cevt-bcm1480.c cd->set_state_periodic = sibyte_set_periodic; cd 122 arch/mips/kernel/cevt-bcm1480.c cd->set_state_oneshot = sibyte_shutdown; cd 123 arch/mips/kernel/cevt-bcm1480.c clockevents_register_device(cd); cd 139 arch/mips/kernel/cevt-bcm1480.c action->dev_id = cd; cd 93 arch/mips/kernel/cevt-ds1287.c struct clock_event_device *cd = &ds1287_clockevent; cd 98 arch/mips/kernel/cevt-ds1287.c cd->event_handler(cd); cd 111 arch/mips/kernel/cevt-ds1287.c struct clock_event_device *cd; cd 113 arch/mips/kernel/cevt-ds1287.c cd = &ds1287_clockevent; cd 114 arch/mips/kernel/cevt-ds1287.c cd->rating = 100; cd 115 arch/mips/kernel/cevt-ds1287.c cd->irq = irq; cd 116 arch/mips/kernel/cevt-ds1287.c clockevent_set_clock(cd, 32768); cd 117 arch/mips/kernel/cevt-ds1287.c cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); cd 118 arch/mips/kernel/cevt-ds1287.c cd->max_delta_ticks = 0x7fffffff; cd 119 arch/mips/kernel/cevt-ds1287.c cd->min_delta_ns = clockevent_delta2ns(0x300, cd); cd 120 arch/mips/kernel/cevt-ds1287.c cd->min_delta_ticks = 0x300; cd 121 arch/mips/kernel/cevt-ds1287.c cd->cpumask = cpumask_of(0); cd 116 arch/mips/kernel/cevt-gt641xx.c struct clock_event_device *cd = >641xx_timer0_clockevent; cd 118 arch/mips/kernel/cevt-gt641xx.c cd->event_handler(cd); cd 131 arch/mips/kernel/cevt-gt641xx.c struct clock_event_device *cd; cd 138 arch/mips/kernel/cevt-gt641xx.c cd = >641xx_timer0_clockevent; cd 139 arch/mips/kernel/cevt-gt641xx.c cd->rating = 200 + gt641xx_base_clock / 10000000; cd 140 arch/mips/kernel/cevt-gt641xx.c clockevent_set_clock(cd, gt641xx_base_clock); cd 141 arch/mips/kernel/cevt-gt641xx.c cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); cd 142 arch/mips/kernel/cevt-gt641xx.c cd->max_delta_ticks = 0x7fffffff; cd 143 arch/mips/kernel/cevt-gt641xx.c cd->min_delta_ns = clockevent_delta2ns(0x300, cd); cd 144 arch/mips/kernel/cevt-gt641xx.c cd->min_delta_ticks = 0x300; cd 145 arch/mips/kernel/cevt-gt641xx.c cd->cpumask = cpumask_of(0); cd 132 arch/mips/kernel/cevt-r4k.c struct clock_event_device *cd; cd 152 arch/mips/kernel/cevt-r4k.c cd = &per_cpu(mips_clockevent_device, cpu); cd 153 arch/mips/kernel/cevt-r4k.c cd->event_handler(cd); cd 256 arch/mips/kernel/cevt-r4k.c struct clock_event_device *cd; cd 272 arch/mips/kernel/cevt-r4k.c cd = &per_cpu(mips_clockevent_device, cpu); cd 274 arch/mips/kernel/cevt-r4k.c cd->name = "MIPS"; cd 275 arch/mips/kernel/cevt-r4k.c cd->features = CLOCK_EVT_FEAT_ONESHOT | cd 281 arch/mips/kernel/cevt-r4k.c cd->rating = 300; cd 282 arch/mips/kernel/cevt-r4k.c cd->irq = irq; cd 283 arch/mips/kernel/cevt-r4k.c cd->cpumask = cpumask_of(cpu); cd 284 arch/mips/kernel/cevt-r4k.c cd->set_next_event = mips_next_event; cd 285 arch/mips/kernel/cevt-r4k.c cd->event_handler = mips_event_handler; cd 287 arch/mips/kernel/cevt-r4k.c clockevents_config_and_register(cd, mips_hpt_frequency, min_delta, 0x7fffffff); cd 56 arch/mips/kernel/cevt-sb1250.c static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) cd 74 arch/mips/kernel/cevt-sb1250.c struct clock_event_device *cd = dev_id; cd 78 arch/mips/kernel/cevt-sb1250.c if (clockevent_state_periodic(cd)) cd 87 arch/mips/kernel/cevt-sb1250.c cd->event_handler(cd); cd 101 arch/mips/kernel/cevt-sb1250.c struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); cd 108 arch/mips/kernel/cevt-sb1250.c cd->name = name; cd 109 arch/mips/kernel/cevt-sb1250.c cd->features = CLOCK_EVT_FEAT_PERIODIC | cd 111 arch/mips/kernel/cevt-sb1250.c clockevent_set_clock(cd, V_SCD_TIMER_FREQ); cd 112 arch/mips/kernel/cevt-sb1250.c cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); cd 113 arch/mips/kernel/cevt-sb1250.c cd->max_delta_ticks = 0x7fffff; cd 114 arch/mips/kernel/cevt-sb1250.c cd->min_delta_ns = clockevent_delta2ns(2, cd); cd 115 arch/mips/kernel/cevt-sb1250.c cd->min_delta_ticks = 2; cd 116 arch/mips/kernel/cevt-sb1250.c cd->rating = 200; cd 117 arch/mips/kernel/cevt-sb1250.c cd->irq = irq; cd 118 arch/mips/kernel/cevt-sb1250.c cd->cpumask = cpumask_of(cpu); cd 119 arch/mips/kernel/cevt-sb1250.c cd->set_next_event = sibyte_next_event; cd 120 arch/mips/kernel/cevt-sb1250.c cd->set_state_shutdown = sibyte_shutdown; cd 121 arch/mips/kernel/cevt-sb1250.c cd->set_state_periodic = sibyte_set_periodic; cd 122 arch/mips/kernel/cevt-sb1250.c cd->set_state_oneshot = sibyte_shutdown; cd 123 arch/mips/kernel/cevt-sb1250.c clockevents_register_device(cd); cd 139 arch/mips/kernel/cevt-sb1250.c action->dev_id = cd; cd 76 arch/mips/kernel/cevt-txx9.c struct clock_event_device cd; cd 91 arch/mips/kernel/cevt-txx9.c container_of(evt, struct txx9_clock_event_device, cd); cd 107 arch/mips/kernel/cevt-txx9.c container_of(evt, struct txx9_clock_event_device, cd); cd 118 arch/mips/kernel/cevt-txx9.c container_of(evt, struct txx9_clock_event_device, cd); cd 129 arch/mips/kernel/cevt-txx9.c container_of(evt, struct txx9_clock_event_device, cd); cd 142 arch/mips/kernel/cevt-txx9.c container_of(evt, struct txx9_clock_event_device, cd); cd 153 arch/mips/kernel/cevt-txx9.c .cd = { cd 169 arch/mips/kernel/cevt-txx9.c struct clock_event_device *cd = &txx9_cd->cd; cd 173 arch/mips/kernel/cevt-txx9.c cd->event_handler(cd); cd 187 arch/mips/kernel/cevt-txx9.c struct clock_event_device *cd = &txx9_clock_event_device.cd; cd 196 arch/mips/kernel/cevt-txx9.c clockevent_set_clock(cd, TIMER_CLK(imbusclk)); cd 197 arch/mips/kernel/cevt-txx9.c cd->max_delta_ns = cd 198 arch/mips/kernel/cevt-txx9.c clockevent_delta2ns(0xffffffff >> (32 - TXX9_TIMER_BITS), cd); cd 199 arch/mips/kernel/cevt-txx9.c cd->max_delta_ticks = 0xffffffff >> (32 - TXX9_TIMER_BITS); cd 200 arch/mips/kernel/cevt-txx9.c cd->min_delta_ns = clockevent_delta2ns(0xf, cd); cd 201 arch/mips/kernel/cevt-txx9.c cd->min_delta_ticks = 0xf; cd 202 arch/mips/kernel/cevt-txx9.c cd->irq = irq; cd 203 arch/mips/kernel/cevt-txx9.c cd->cpumask = cpumask_of(0), cd 204 arch/mips/kernel/cevt-txx9.c clockevents_register_device(cd); cd 40 arch/mips/kernel/vpe-cmp.c static ssize_t ntcs_show(struct device *cd, struct device_attribute *attr, cd 76 arch/mips/kernel/vpe-cmp.c static void vpe_device_release(struct device *cd) cd 78 arch/mips/kernel/vpe-cmp.c kfree(cd); cd 279 arch/mips/kernel/vpe-mt.c static ssize_t ntcs_show(struct device *cd, struct device_attribute *attr, cd 314 arch/mips/kernel/vpe-mt.c static void vpe_device_release(struct device *cd) cd 316 arch/mips/kernel/vpe-mt.c kfree(cd); cd 118 arch/mips/loongson32/common/time.c struct clock_event_device *cd = devid; cd 121 arch/mips/loongson32/common/time.c cd->event_handler(cd); cd 126 arch/mips/loongson32/common/time.c static int ls1x_clockevent_set_state_periodic(struct clock_event_device *cd) cd 137 arch/mips/loongson32/common/time.c static int ls1x_clockevent_tick_resume(struct clock_event_device *cd) cd 146 arch/mips/loongson32/common/time.c static int ls1x_clockevent_set_state_shutdown(struct clock_event_device *cd) cd 157 arch/mips/loongson32/common/time.c struct clock_event_device *cd) cd 188 arch/mips/loongson32/common/time.c struct clock_event_device *cd = &ls1x_clockevent; cd 196 arch/mips/loongson32/common/time.c clockevent_set_clock(cd, mips_hpt_frequency); cd 197 arch/mips/loongson32/common/time.c cd->max_delta_ns = clockevent_delta2ns(0xffffff, cd); cd 198 arch/mips/loongson32/common/time.c cd->max_delta_ticks = 0xffffff; cd 199 arch/mips/loongson32/common/time.c cd->min_delta_ns = clockevent_delta2ns(0x000300, cd); cd 200 arch/mips/loongson32/common/time.c cd->min_delta_ticks = 0x000300; cd 201 arch/mips/loongson32/common/time.c cd->cpumask = cpumask_of(smp_processor_id()); cd 202 arch/mips/loongson32/common/time.c clockevents_register_device(cd); cd 116 arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c struct clock_event_device *cd = &mfgpt_clockevent; cd 119 arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c cd->cpumask = cpumask_of(cpu); cd 120 arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c clockevent_set_clock(cd, MFGPT_TICK_RATE); cd 121 arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c cd->max_delta_ns = clockevent_delta2ns(0xffff, cd); cd 122 arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c cd->max_delta_ticks = 0xffff; cd 123 arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c cd->min_delta_ns = clockevent_delta2ns(0xf, cd); cd 124 arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c cd->min_delta_ticks = 0xf; cd 135 arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c clockevents_register_device(cd); cd 176 arch/mips/loongson64/loongson-3/hpet.c struct clock_event_device *cd; cd 183 arch/mips/loongson64/loongson-3/hpet.c cd = &per_cpu(hpet_clockevent_device, cpu); cd 184 arch/mips/loongson64/loongson-3/hpet.c cd->event_handler(cd); cd 228 arch/mips/loongson64/loongson-3/hpet.c struct clock_event_device *cd; cd 232 arch/mips/loongson64/loongson-3/hpet.c cd = &per_cpu(hpet_clockevent_device, cpu); cd 233 arch/mips/loongson64/loongson-3/hpet.c cd->name = "hpet"; cd 234 arch/mips/loongson64/loongson-3/hpet.c cd->rating = 100; cd 235 arch/mips/loongson64/loongson-3/hpet.c cd->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; cd 236 arch/mips/loongson64/loongson-3/hpet.c cd->set_state_shutdown = hpet_set_state_shutdown; cd 237 arch/mips/loongson64/loongson-3/hpet.c cd->set_state_periodic = hpet_set_state_periodic; cd 238 arch/mips/loongson64/loongson-3/hpet.c cd->set_state_oneshot = hpet_set_state_oneshot; cd 239 arch/mips/loongson64/loongson-3/hpet.c cd->tick_resume = hpet_tick_resume; cd 240 arch/mips/loongson64/loongson-3/hpet.c cd->set_next_event = hpet_next_event; cd 241 arch/mips/loongson64/loongson-3/hpet.c cd->irq = HPET_T0_IRQ; cd 242 arch/mips/loongson64/loongson-3/hpet.c cd->cpumask = cpumask_of(cpu); cd 243 arch/mips/loongson64/loongson-3/hpet.c clockevent_set_clock(cd, HPET_FREQ); cd 244 arch/mips/loongson64/loongson-3/hpet.c cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); cd 245 arch/mips/loongson64/loongson-3/hpet.c cd->max_delta_ticks = 0x7fffffff; cd 246 arch/mips/loongson64/loongson-3/hpet.c cd->min_delta_ns = clockevent_delta2ns(HPET_MIN_PROG_DELTA, cd); cd 247 arch/mips/loongson64/loongson-3/hpet.c cd->min_delta_ticks = HPET_MIN_PROG_DELTA; cd 249 arch/mips/loongson64/loongson-3/hpet.c clockevents_register_device(cd); cd 38 arch/mips/paravirt/paravirt-irq.c struct core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 39 arch/mips/paravirt/paravirt-irq.c unsigned int bit = cd->bit; cd 54 arch/mips/paravirt/paravirt-irq.c struct core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 61 arch/mips/paravirt/paravirt-irq.c set_c0_status(0x100 << cd->bit); cd 67 arch/mips/paravirt/paravirt-irq.c struct core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 68 arch/mips/paravirt/paravirt-irq.c unsigned int mask = 0x100 << cd->bit; cd 73 arch/mips/paravirt/paravirt-irq.c if (cd->desired_en) cd 82 arch/mips/paravirt/paravirt-irq.c struct core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 83 arch/mips/paravirt/paravirt-irq.c cd->desired_en = false; cd 88 arch/mips/paravirt/paravirt-irq.c struct core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 89 arch/mips/paravirt/paravirt-irq.c cd->desired_en = true; cd 94 arch/mips/paravirt/paravirt-irq.c struct core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 96 arch/mips/paravirt/paravirt-irq.c mutex_lock(&cd->core_irq_mutex); cd 101 arch/mips/paravirt/paravirt-irq.c struct core_chip_data *cd = irq_data_get_irq_chip_data(data); cd 103 arch/mips/paravirt/paravirt-irq.c if (cd->desired_en != cd->current_en) { cd 105 arch/mips/paravirt/paravirt-irq.c cd->current_en = cd->desired_en; cd 108 arch/mips/paravirt/paravirt-irq.c mutex_unlock(&cd->core_irq_mutex); cd 129 arch/mips/paravirt/paravirt-irq.c struct core_chip_data *cd; cd 136 arch/mips/paravirt/paravirt-irq.c cd = irq_core_chip_data + i; cd 137 arch/mips/paravirt/paravirt-irq.c cd->current_en = false; cd 138 arch/mips/paravirt/paravirt-irq.c cd->desired_en = false; cd 139 arch/mips/paravirt/paravirt-irq.c cd->bit = i; cd 140 arch/mips/paravirt/paravirt-irq.c mutex_init(&cd->core_irq_mutex); cd 150 arch/mips/paravirt/paravirt-irq.c irq_set_chip_data(irq, cd); cd 60 arch/mips/sgi-ip27/ip27-timer.c struct clock_event_device *cd = &per_cpu(hub_rt_clockevent, cpu); cd 67 arch/mips/sgi-ip27/ip27-timer.c cd->event_handler(cd); cd 93 arch/mips/sgi-ip27/ip27-timer.c struct clock_event_device *cd = &per_cpu(hub_rt_clockevent, cpu); cd 97 arch/mips/sgi-ip27/ip27-timer.c cd->name = name; cd 98 arch/mips/sgi-ip27/ip27-timer.c cd->features = CLOCK_EVT_FEAT_ONESHOT; cd 99 arch/mips/sgi-ip27/ip27-timer.c clockevent_set_clock(cd, CYCLES_PER_SEC); cd 100 arch/mips/sgi-ip27/ip27-timer.c cd->max_delta_ns = clockevent_delta2ns(0xfffffffffffff, cd); cd 101 arch/mips/sgi-ip27/ip27-timer.c cd->max_delta_ticks = 0xfffffffffffff; cd 102 arch/mips/sgi-ip27/ip27-timer.c cd->min_delta_ns = clockevent_delta2ns(0x300, cd); cd 103 arch/mips/sgi-ip27/ip27-timer.c cd->min_delta_ticks = 0x300; cd 104 arch/mips/sgi-ip27/ip27-timer.c cd->rating = 200; cd 105 arch/mips/sgi-ip27/ip27-timer.c cd->irq = IP27_RT_TIMER_IRQ; cd 106 arch/mips/sgi-ip27/ip27-timer.c cd->cpumask = cpumask_of(cpu); cd 107 arch/mips/sgi-ip27/ip27-timer.c cd->set_next_event = rt_next_event; cd 108 arch/mips/sgi-ip27/ip27-timer.c clockevents_register_device(cd); cd 48 arch/mips/sni/time.c struct clock_event_device *cd = dev_id; cd 53 arch/mips/sni/time.c cd->event_handler(cd); cd 70 arch/mips/sni/time.c struct clock_event_device *cd = &a20r_clockevent_device; cd 74 arch/mips/sni/time.c cd->cpumask = cpumask_of(cpu); cd 75 arch/mips/sni/time.c clockevents_register_device(cd); cd 76 arch/mips/sni/time.c action->dev_id = cd; cd 67 arch/s390/include/asm/cpu_mf.h unsigned int cd:1; /* 31: diag-sampling activation control */ cd 90 arch/s390/include/asm/cpu_mf.h unsigned int cd:1; /* 63: diag-sampling activation control */ cd 244 arch/s390/include/asm/fcx.h u8 cd[0]; cd 308 arch/s390/include/asm/fcx.h void *cd, u8 cd_count, u32 count); cd 24 arch/s390/include/asm/itcw.h struct dcw *itcw_add_dcw(struct itcw *itcw, u8 cmd, u8 flags, void *cd, cd 42 arch/s390/include/asm/nmi.h u64 cd : 1; /* 04 timing-facility damage */ cd 413 arch/s390/kernel/nmi.c if (mci.cd) { cd 990 arch/s390/kernel/perf_cpum_sf.c cpuhw->lsctl.cd, cpuhw->lsctl.interval, cd 1011 arch/s390/kernel/perf_cpum_sf.c inactive.cd = 0; cd 1850 arch/s390/kernel/perf_cpum_sf.c cpuhw->lsctl.cd = 1; cd 1866 arch/s390/kernel/perf_cpum_sf.c cpuhw->lsctl.cd = 0; cd 154 arch/s390/kernel/perf_event.c si.ad, si.ed, si.cd, si.dsdes, si.tear, si.dear); cd 140 arch/s390/kernel/time.c struct clock_event_device *cd; cd 143 arch/s390/kernel/time.c cd = this_cpu_ptr(&comparators); cd 144 arch/s390/kernel/time.c cd->event_handler(cd); cd 161 arch/s390/kernel/time.c struct clock_event_device *cd; cd 168 arch/s390/kernel/time.c cd = &per_cpu(comparators, cpu); cd 169 arch/s390/kernel/time.c cd->name = "comparator"; cd 170 arch/s390/kernel/time.c cd->features = CLOCK_EVT_FEAT_ONESHOT; cd 171 arch/s390/kernel/time.c cd->mult = 16777; cd 172 arch/s390/kernel/time.c cd->shift = 12; cd 173 arch/s390/kernel/time.c cd->min_delta_ns = 1; cd 174 arch/s390/kernel/time.c cd->min_delta_ticks = 1; cd 175 arch/s390/kernel/time.c cd->max_delta_ns = LONG_MAX; cd 176 arch/s390/kernel/time.c cd->max_delta_ticks = ULONG_MAX; cd 177 arch/s390/kernel/time.c cd->rating = 400; cd 178 arch/s390/kernel/time.c cd->cpumask = cpumask_of(cpu); cd 179 arch/s390/kernel/time.c cd->set_next_event = s390_next_event; cd 181 arch/s390/kernel/time.c clockevents_register_device(cd); cd 73 arch/x86/events/intel/pt.c struct pt_cap_desc *cd = &pt_caps[capability]; cd 74 arch/x86/events/intel/pt.c u32 c = caps[cd->leaf * PT_CPUID_REGS_NUM + cd->reg]; cd 75 arch/x86/events/intel/pt.c unsigned int shift = __ffs(cd->mask); cd 77 arch/x86/events/intel/pt.c return (c & cd->mask) >> shift; cd 134 arch/x86/include/asm/microcode.h extern bool get_builtin_firmware(struct cpio_data *cd, const char *name); cd 142 arch/x86/include/asm/microcode.h get_builtin_firmware(struct cpio_data *cd, const char *name) { return false; } cd 151 arch/x86/kernel/cpu/microcode/core.c bool get_builtin_firmware(struct cpio_data *cd, const char *name) cd 158 arch/x86/kernel/cpu/microcode/core.c cd->size = b_fw->size; cd 159 arch/x86/kernel/cpu/microcode/core.c cd->data = b_fw->data; cd 512 drivers/ata/sata_fsl.c struct command_desc *cd; cd 518 drivers/ata/sata_fsl.c cd = (struct command_desc *)pp->cmdentry + tag; cd 521 drivers/ata/sata_fsl.c ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *) &cd->cfis); cd 524 drivers/ata/sata_fsl.c cd->cfis[0], cd->cfis[1], cd->cfis[2]); cd 528 drivers/ata/sata_fsl.c cd->cfis[3], cd->cfis[11]); cd 534 drivers/ata/sata_fsl.c memset((void *)&cd->acmd, 0, 32); cd 535 drivers/ata/sata_fsl.c memcpy((void *)&cd->acmd, qc->cdb, qc->dev->cdb_len); cd 539 drivers/ata/sata_fsl.c num_prde = sata_fsl_fill_sg(qc, (void *)cd, cd 588 drivers/ata/sata_fsl.c struct command_desc *cd; cd 590 drivers/ata/sata_fsl.c cd = pp->cmdentry + tag; cd 592 drivers/ata/sata_fsl.c ata_tf_from_fis(cd->sfis, &qc->result_tf); cd 233 drivers/block/paride/pcd.c struct pcd_unit *cd = bdev->bd_disk->private_data; cd 239 drivers/block/paride/pcd.c ret = cdrom_open(&cd->info, bdev, mode); cd 247 drivers/block/paride/pcd.c struct pcd_unit *cd = disk->private_data; cd 249 drivers/block/paride/pcd.c cdrom_release(&cd->info, mode); cd 256 drivers/block/paride/pcd.c struct pcd_unit *cd = bdev->bd_disk->private_data; cd 260 drivers/block/paride/pcd.c ret = cdrom_ioctl(&cd->info, bdev, mode, cmd, arg); cd 269 drivers/block/paride/pcd.c struct pcd_unit *cd = disk->private_data; cd 270 drivers/block/paride/pcd.c return cdrom_check_events(&cd->info, clearing); cd 304 drivers/block/paride/pcd.c struct pcd_unit *cd; cd 308 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { cd 314 drivers/block/paride/pcd.c disk->queue = blk_mq_init_sq_queue(&cd->tag_set, &pcd_mq_ops, cd 322 drivers/block/paride/pcd.c INIT_LIST_HEAD(&cd->rq_list); cd 323 drivers/block/paride/pcd.c disk->queue->queuedata = cd; cd 325 drivers/block/paride/pcd.c cd->disk = disk; cd 326 drivers/block/paride/pcd.c cd->pi = &cd->pia; cd 327 drivers/block/paride/pcd.c cd->present = 0; cd 328 drivers/block/paride/pcd.c cd->last_sense = 0; cd 329 drivers/block/paride/pcd.c cd->changed = 1; cd 330 drivers/block/paride/pcd.c cd->drive = (*drives[unit])[D_SLV]; cd 334 drivers/block/paride/pcd.c cd->name = &cd->info.name[0]; cd 335 drivers/block/paride/pcd.c snprintf(cd->name, sizeof(cd->info.name), "%s%d", name, unit); cd 336 drivers/block/paride/pcd.c cd->info.ops = &pcd_dops; cd 337 drivers/block/paride/pcd.c cd->info.handle = cd; cd 338 drivers/block/paride/pcd.c cd->info.speed = 0; cd 339 drivers/block/paride/pcd.c cd->info.capacity = 1; cd 340 drivers/block/paride/pcd.c cd->info.mask = 0; cd 343 drivers/block/paride/pcd.c strcpy(disk->disk_name, cd->name); /* umm... */ cd 352 drivers/block/paride/pcd.c struct pcd_unit *cd = cdi->handle; cd 353 drivers/block/paride/pcd.c if (!cd->present) cd 362 drivers/block/paride/pcd.c static inline int status_reg(struct pcd_unit *cd) cd 364 drivers/block/paride/pcd.c return pi_read_regr(cd->pi, 1, 6); cd 367 drivers/block/paride/pcd.c static inline int read_reg(struct pcd_unit *cd, int reg) cd 369 drivers/block/paride/pcd.c return pi_read_regr(cd->pi, 0, reg); cd 372 drivers/block/paride/pcd.c static inline void write_reg(struct pcd_unit *cd, int reg, int val) cd 374 drivers/block/paride/pcd.c pi_write_regr(cd->pi, 0, reg, val); cd 377 drivers/block/paride/pcd.c static int pcd_wait(struct pcd_unit *cd, int go, int stop, char *fun, char *msg) cd 382 drivers/block/paride/pcd.c while ((((r = status_reg(cd)) & go) || (stop && (!(r & stop)))) cd 387 drivers/block/paride/pcd.c s = read_reg(cd, 7); cd 388 drivers/block/paride/pcd.c e = read_reg(cd, 1); cd 389 drivers/block/paride/pcd.c p = read_reg(cd, 2); cd 395 drivers/block/paride/pcd.c cd->name, fun, msg, r, s, e, j, p); cd 401 drivers/block/paride/pcd.c static int pcd_command(struct pcd_unit *cd, char *cmd, int dlen, char *fun) cd 403 drivers/block/paride/pcd.c pi_connect(cd->pi); cd 405 drivers/block/paride/pcd.c write_reg(cd, 6, 0xa0 + 0x10 * cd->drive); cd 407 drivers/block/paride/pcd.c if (pcd_wait(cd, IDE_BUSY | IDE_DRQ, 0, fun, "before command")) { cd 408 drivers/block/paride/pcd.c pi_disconnect(cd->pi); cd 412 drivers/block/paride/pcd.c write_reg(cd, 4, dlen % 256); cd 413 drivers/block/paride/pcd.c write_reg(cd, 5, dlen / 256); cd 414 drivers/block/paride/pcd.c write_reg(cd, 7, 0xa0); /* ATAPI packet command */ cd 416 drivers/block/paride/pcd.c if (pcd_wait(cd, IDE_BUSY, IDE_DRQ, fun, "command DRQ")) { cd 417 drivers/block/paride/pcd.c pi_disconnect(cd->pi); cd 421 drivers/block/paride/pcd.c if (read_reg(cd, 2) != 1) { cd 422 drivers/block/paride/pcd.c printk("%s: %s: command phase error\n", cd->name, fun); cd 423 drivers/block/paride/pcd.c pi_disconnect(cd->pi); cd 427 drivers/block/paride/pcd.c pi_write_block(cd->pi, cmd, 12); cd 432 drivers/block/paride/pcd.c static int pcd_completion(struct pcd_unit *cd, char *buf, char *fun) cd 440 drivers/block/paride/pcd.c if (!pcd_wait(cd, IDE_BUSY, IDE_DRQ | IDE_READY | IDE_ERR, cd 443 drivers/block/paride/pcd.c while (read_reg(cd, 7) & IDE_DRQ) { cd 444 drivers/block/paride/pcd.c d = read_reg(cd, 4) + 256 * read_reg(cd, 5); cd 446 drivers/block/paride/pcd.c p = read_reg(cd, 2) & 3; cd 449 drivers/block/paride/pcd.c pi_read_block(cd->pi, buf, n); cd 452 drivers/block/paride/pcd.c cd->name, fun, n); cd 459 drivers/block/paride/pcd.c cd->name, fun, p, d, k); cd 463 drivers/block/paride/pcd.c cd->name); cd 467 drivers/block/paride/pcd.c printk("%s: Stuck DRQ\n", cd->name); cd 471 drivers/block/paride/pcd.c (cd, IDE_BUSY, IDE_DRQ | IDE_READY | IDE_ERR, fun, cd 479 drivers/block/paride/pcd.c pi_disconnect(cd->pi); cd 484 drivers/block/paride/pcd.c static void pcd_req_sense(struct pcd_unit *cd, char *fun) cd 490 drivers/block/paride/pcd.c r = pcd_command(cd, rs_cmd, 16, "Request sense"); cd 493 drivers/block/paride/pcd.c pcd_completion(cd, buf, "Request sense"); cd 495 drivers/block/paride/pcd.c cd->last_sense = -1; cd 500 drivers/block/paride/pcd.c cd->name, fun, buf[2] & 0xf, buf[12], buf[13]); cd 502 drivers/block/paride/pcd.c cd->last_sense = cd 506 drivers/block/paride/pcd.c cd->changed = 1; cd 509 drivers/block/paride/pcd.c static int pcd_atapi(struct pcd_unit *cd, char *cmd, int dlen, char *buf, char *fun) cd 513 drivers/block/paride/pcd.c r = pcd_command(cd, cmd, dlen, fun); cd 516 drivers/block/paride/pcd.c r = pcd_completion(cd, buf, fun); cd 518 drivers/block/paride/pcd.c pcd_req_sense(cd, fun); cd 534 drivers/block/paride/pcd.c struct pcd_unit *cd = cdi->handle; cd 535 drivers/block/paride/pcd.c int res = cd->changed; cd 537 drivers/block/paride/pcd.c cd->changed = 0; cd 562 drivers/block/paride/pcd.c static int pcd_reset(struct pcd_unit *cd) cd 567 drivers/block/paride/pcd.c pi_connect(cd->pi); cd 568 drivers/block/paride/pcd.c write_reg(cd, 6, 0xa0 + 0x10 * cd->drive); cd 569 drivers/block/paride/pcd.c write_reg(cd, 7, 8); cd 574 drivers/block/paride/pcd.c while ((k++ < PCD_RESET_TMO) && (status_reg(cd) & IDE_BUSY)) cd 579 drivers/block/paride/pcd.c flg &= (read_reg(cd, i + 1) == expect[i]); cd 582 drivers/block/paride/pcd.c printk("%s: Reset (%d) signature = ", cd->name, k); cd 584 drivers/block/paride/pcd.c printk("%3x", read_reg(cd, i + 1)); cd 590 drivers/block/paride/pcd.c pi_disconnect(cd->pi); cd 599 drivers/block/paride/pcd.c static int pcd_ready_wait(struct pcd_unit *cd, int tmo) cd 606 drivers/block/paride/pcd.c cd->last_sense = 0; cd 607 drivers/block/paride/pcd.c pcd_atapi(cd, tr_cmd, 0, NULL, DBMSG("test unit ready")); cd 608 drivers/block/paride/pcd.c p = cd->last_sense; cd 622 drivers/block/paride/pcd.c struct pcd_unit *cd = cdi->handle; cd 624 drivers/block/paride/pcd.c if (pcd_ready_wait(cd, PCD_READY_TMO)) cd 626 drivers/block/paride/pcd.c if (pcd_atapi(cd, rc_cmd, 8, pcd_scratch, DBMSG("check media"))) cd 631 drivers/block/paride/pcd.c static int pcd_identify(struct pcd_unit *cd, char *id) cd 638 drivers/block/paride/pcd.c s = pcd_atapi(cd, id_cmd, 36, pcd_buffer, "identify"); cd 645 drivers/block/paride/pcd.c cd->name, cd->drive ? "Slave" : "Master"); cd 656 drivers/block/paride/pcd.c printk("%s: %s: %s\n", cd->name, cd->drive ? "Slave" : "Master", id); cd 665 drivers/block/paride/pcd.c static int pcd_probe(struct pcd_unit *cd, int ms, char *id) cd 668 drivers/block/paride/pcd.c for (cd->drive = 0; cd->drive <= 1; cd->drive++) cd 669 drivers/block/paride/pcd.c if (!pcd_reset(cd) && !pcd_identify(cd, id)) cd 672 drivers/block/paride/pcd.c cd->drive = ms; cd 673 drivers/block/paride/pcd.c if (!pcd_reset(cd) && !pcd_identify(cd, id)) cd 684 drivers/block/paride/pcd.c struct pcd_unit *cd; cd 686 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { cd 687 drivers/block/paride/pcd.c if (!cd->present) cd 689 drivers/block/paride/pcd.c r = pcd_atapi(cd, cmd, 18, buffer, "mode sense capabilities"); cd 694 drivers/block/paride/pcd.c cd->info.mask |= CDC_CD_R; cd 696 drivers/block/paride/pcd.c cd->info.mask |= CDC_CD_RW; cd 698 drivers/block/paride/pcd.c cd->info.mask |= CDC_PLAY_AUDIO; cd 700 drivers/block/paride/pcd.c cd->info.mask |= CDC_LOCK; cd 702 drivers/block/paride/pcd.c cd->info.mask |= CDC_OPEN_TRAY; cd 704 drivers/block/paride/pcd.c cd->info.mask |= CDC_CLOSE_TRAY; cd 712 drivers/block/paride/pcd.c struct pcd_unit *cd; cd 725 drivers/block/paride/pcd.c cd = pcd; cd 726 drivers/block/paride/pcd.c if (cd->disk && pi_init(cd->pi, 1, -1, -1, -1, -1, -1, cd 727 drivers/block/paride/pcd.c pcd_buffer, PI_PCD, verbose, cd->name)) { cd 728 drivers/block/paride/pcd.c if (!pcd_probe(cd, -1, id)) { cd 729 drivers/block/paride/pcd.c cd->present = 1; cd 732 drivers/block/paride/pcd.c pi_release(cd->pi); cd 735 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { cd 739 drivers/block/paride/pcd.c if (!cd->disk) cd 741 drivers/block/paride/pcd.c if (!pi_init(cd->pi, 0, conf[D_PRT], conf[D_MOD], cd 743 drivers/block/paride/pcd.c pcd_buffer, PI_PCD, verbose, cd->name)) cd 745 drivers/block/paride/pcd.c if (!pcd_probe(cd, conf[D_SLV], id)) { cd 746 drivers/block/paride/pcd.c cd->present = 1; cd 749 drivers/block/paride/pcd.c pi_release(cd->pi); cd 756 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { cd 757 drivers/block/paride/pcd.c if (!cd->disk) cd 759 drivers/block/paride/pcd.c blk_cleanup_queue(cd->disk->queue); cd 760 drivers/block/paride/pcd.c cd->disk->queue = NULL; cd 761 drivers/block/paride/pcd.c blk_mq_free_tag_set(&cd->tag_set); cd 762 drivers/block/paride/pcd.c put_disk(cd->disk); cd 773 drivers/block/paride/pcd.c struct pcd_unit *cd; cd 777 drivers/block/paride/pcd.c cd = &pcd[pcd_queue]; cd 780 drivers/block/paride/pcd.c if (cd->present && !list_empty(&cd->rq_list)) { cd 781 drivers/block/paride/pcd.c pcd_req = list_first_entry(&cd->rq_list, struct request, cd 794 drivers/block/paride/pcd.c struct pcd_unit *cd; cd 802 drivers/block/paride/pcd.c cd = pcd_req->rq_disk->private_data; cd 803 drivers/block/paride/pcd.c if (cd != pcd_current) cd 805 drivers/block/paride/pcd.c pcd_current = cd; cd 816 drivers/block/paride/pcd.c struct pcd_unit *cd = hctx->queue->queuedata; cd 824 drivers/block/paride/pcd.c list_add_tail(&bd->rq->queuelist, &cd->rq_list); cd 924 drivers/block/paride/pcd.c struct pcd_unit *cd = cdi->handle; cd 939 drivers/block/paride/pcd.c r = pcd_atapi(cd, cmd, 12, buffer, "read toc header"); cd 963 drivers/block/paride/pcd.c r = pcd_atapi(cd, cmd, 12, buffer, "read toc entry"); cd 1004 drivers/block/paride/pcd.c struct pcd_unit *cd; cd 1019 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { cd 1020 drivers/block/paride/pcd.c if (!cd->disk) cd 1023 drivers/block/paride/pcd.c blk_cleanup_queue(cd->disk->queue); cd 1024 drivers/block/paride/pcd.c blk_mq_free_tag_set(&cd->tag_set); cd 1025 drivers/block/paride/pcd.c put_disk(cd->disk); cd 1030 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { cd 1031 drivers/block/paride/pcd.c if (cd->present) { cd 1032 drivers/block/paride/pcd.c register_cdrom(&cd->info); cd 1033 drivers/block/paride/pcd.c cd->disk->private_data = cd; cd 1034 drivers/block/paride/pcd.c add_disk(cd->disk); cd 1043 drivers/block/paride/pcd.c struct pcd_unit *cd; cd 1046 drivers/block/paride/pcd.c for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { cd 1047 drivers/block/paride/pcd.c if (!cd->disk) cd 1050 drivers/block/paride/pcd.c if (cd->present) { cd 1051 drivers/block/paride/pcd.c del_gendisk(cd->disk); cd 1052 drivers/block/paride/pcd.c pi_release(cd->pi); cd 1053 drivers/block/paride/pcd.c unregister_cdrom(&cd->info); cd 1055 drivers/block/paride/pcd.c blk_cleanup_queue(cd->disk->queue); cd 1056 drivers/block/paride/pcd.c blk_mq_free_tag_set(&cd->tag_set); cd 1057 drivers/block/paride/pcd.c put_disk(cd->disk); cd 137 drivers/clk/microchip/clk-pic32mzda.c struct pic32mzda_clk_data *cd; cd 139 drivers/clk/microchip/clk-pic32mzda.c cd = container_of(nb, struct pic32mzda_clk_data, failsafe_notifier); cd 142 drivers/clk/microchip/clk-pic32mzda.c if (readl(cd->core.iobase) & BIT(2)) cd 154 drivers/clk/microchip/clk-pic32mzda.c struct pic32mzda_clk_data *cd; cd 160 drivers/clk/microchip/clk-pic32mzda.c cd = devm_kzalloc(&pdev->dev, sizeof(*cd), GFP_KERNEL); cd 161 drivers/clk/microchip/clk-pic32mzda.c if (!cd) cd 164 drivers/clk/microchip/clk-pic32mzda.c core = &cd->core; cd 173 drivers/clk/microchip/clk-pic32mzda.c clks = &cd->clks[0]; cd 227 drivers/clk/microchip/clk-pic32mzda.c cd->onecell_data.clks = clks; cd 228 drivers/clk/microchip/clk-pic32mzda.c cd->onecell_data.clk_num = MAXCLKS; cd 230 drivers/clk/microchip/clk-pic32mzda.c &cd->onecell_data); cd 243 drivers/clk/microchip/clk-pic32mzda.c cd->failsafe_notifier.notifier_call = pic32_fscm_nmi; cd 244 drivers/clk/microchip/clk-pic32mzda.c return register_nmi_notifier(&cd->failsafe_notifier); cd 25 drivers/clk/sprd/div.c struct sprd_div *cd = hw_to_sprd_div(hw); cd 27 drivers/clk/sprd/div.c return sprd_div_helper_round_rate(&cd->common, &cd->div, cd 50 drivers/clk/sprd/div.c struct sprd_div *cd = hw_to_sprd_div(hw); cd 52 drivers/clk/sprd/div.c return sprd_div_helper_recalc_rate(&cd->common, &cd->div, parent_rate); cd 80 drivers/clk/sprd/div.c struct sprd_div *cd = hw_to_sprd_div(hw); cd 82 drivers/clk/sprd/div.c return sprd_div_helper_set_rate(&cd->common, &cd->div, cd 19 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = data; cd 21 drivers/clk/sunxi-ng/ccu_div.c if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) cd 22 drivers/clk/sunxi-ng/ccu_div.c rate *= cd->fixed_post_div; cd 24 drivers/clk/sunxi-ng/ccu_div.c rate = divider_round_rate_parent(&cd->common.hw, parent, cd 26 drivers/clk/sunxi-ng/ccu_div.c cd->div.table, cd->div.width, cd 27 drivers/clk/sunxi-ng/ccu_div.c cd->div.flags); cd 29 drivers/clk/sunxi-ng/ccu_div.c if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) cd 30 drivers/clk/sunxi-ng/ccu_div.c rate /= cd->fixed_post_div; cd 37 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = hw_to_ccu_div(hw); cd 39 drivers/clk/sunxi-ng/ccu_div.c return ccu_gate_helper_disable(&cd->common, cd->enable); cd 44 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = hw_to_ccu_div(hw); cd 46 drivers/clk/sunxi-ng/ccu_div.c return ccu_gate_helper_enable(&cd->common, cd->enable); cd 51 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = hw_to_ccu_div(hw); cd 53 drivers/clk/sunxi-ng/ccu_div.c return ccu_gate_helper_is_enabled(&cd->common, cd->enable); cd 59 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = hw_to_ccu_div(hw); cd 63 drivers/clk/sunxi-ng/ccu_div.c reg = readl(cd->common.base + cd->common.reg); cd 64 drivers/clk/sunxi-ng/ccu_div.c val = reg >> cd->div.shift; cd 65 drivers/clk/sunxi-ng/ccu_div.c val &= (1 << cd->div.width) - 1; cd 67 drivers/clk/sunxi-ng/ccu_div.c parent_rate = ccu_mux_helper_apply_prediv(&cd->common, &cd->mux, -1, cd 70 drivers/clk/sunxi-ng/ccu_div.c val = divider_recalc_rate(hw, parent_rate, val, cd->div.table, cd 71 drivers/clk/sunxi-ng/ccu_div.c cd->div.flags, cd->div.width); cd 73 drivers/clk/sunxi-ng/ccu_div.c if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) cd 74 drivers/clk/sunxi-ng/ccu_div.c val /= cd->fixed_post_div; cd 82 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = hw_to_ccu_div(hw); cd 84 drivers/clk/sunxi-ng/ccu_div.c return ccu_mux_helper_determine_rate(&cd->common, &cd->mux, cd 85 drivers/clk/sunxi-ng/ccu_div.c req, ccu_div_round_rate, cd); cd 91 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = hw_to_ccu_div(hw); cd 96 drivers/clk/sunxi-ng/ccu_div.c parent_rate = ccu_mux_helper_apply_prediv(&cd->common, &cd->mux, -1, cd 99 drivers/clk/sunxi-ng/ccu_div.c if (cd->common.features & CCU_FEATURE_FIXED_POSTDIV) cd 100 drivers/clk/sunxi-ng/ccu_div.c rate *= cd->fixed_post_div; cd 102 drivers/clk/sunxi-ng/ccu_div.c val = divider_get_val(rate, parent_rate, cd->div.table, cd->div.width, cd 103 drivers/clk/sunxi-ng/ccu_div.c cd->div.flags); cd 105 drivers/clk/sunxi-ng/ccu_div.c spin_lock_irqsave(cd->common.lock, flags); cd 107 drivers/clk/sunxi-ng/ccu_div.c reg = readl(cd->common.base + cd->common.reg); cd 108 drivers/clk/sunxi-ng/ccu_div.c reg &= ~GENMASK(cd->div.width + cd->div.shift - 1, cd->div.shift); cd 110 drivers/clk/sunxi-ng/ccu_div.c writel(reg | (val << cd->div.shift), cd 111 drivers/clk/sunxi-ng/ccu_div.c cd->common.base + cd->common.reg); cd 113 drivers/clk/sunxi-ng/ccu_div.c spin_unlock_irqrestore(cd->common.lock, flags); cd 120 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = hw_to_ccu_div(hw); cd 122 drivers/clk/sunxi-ng/ccu_div.c return ccu_mux_helper_get_parent(&cd->common, &cd->mux); cd 127 drivers/clk/sunxi-ng/ccu_div.c struct ccu_div *cd = hw_to_ccu_div(hw); cd 129 drivers/clk/sunxi-ng/ccu_div.c return ccu_mux_helper_set_parent(&cd->common, &cd->mux, index); cd 63 drivers/clocksource/mips-gic-timer.c struct clock_event_device *cd = dev_id; cd 66 drivers/clocksource/mips-gic-timer.c cd->event_handler(cd); cd 78 drivers/clocksource/mips-gic-timer.c struct clock_event_device *cd) cd 80 drivers/clocksource/mips-gic-timer.c cd->name = "MIPS GIC"; cd 81 drivers/clocksource/mips-gic-timer.c cd->features = CLOCK_EVT_FEAT_ONESHOT | cd 84 drivers/clocksource/mips-gic-timer.c cd->rating = 350; cd 85 drivers/clocksource/mips-gic-timer.c cd->irq = gic_timer_irq; cd 86 drivers/clocksource/mips-gic-timer.c cd->cpumask = cpumask_of(cpu); cd 87 drivers/clocksource/mips-gic-timer.c cd->set_next_event = gic_next_event; cd 89 drivers/clocksource/mips-gic-timer.c clockevents_config_and_register(cd, gic_frequency, 0x300, 0x7fffffff); cd 94 drivers/clocksource/mips-gic-timer.c static void gic_clockevent_cpu_exit(struct clock_event_device *cd) cd 468 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_cipher_algo_blk *cd, cd 475 drivers/crypto/qat/qat_common/qat_algs.c memcpy(cd->aes.key, key, keylen); cd 22 drivers/dca/dca-sysfs.c struct device *cd; cd 25 drivers/dca/dca-sysfs.c cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL, cd 27 drivers/dca/dca-sysfs.c if (IS_ERR(cd)) cd 28 drivers/dca/dca-sysfs.c return PTR_ERR(cd); cd 39 drivers/dca/dca-sysfs.c struct device *cd; cd 54 drivers/dca/dca-sysfs.c cd = device_create(dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id); cd 55 drivers/dca/dca-sysfs.c if (IS_ERR(cd)) { cd 59 drivers/dca/dca-sysfs.c return PTR_ERR(cd); cd 61 drivers/dca/dca-sysfs.c dca->cd = cd; cd 67 drivers/dca/dca-sysfs.c device_unregister(dca->cd); cd 68 drivers/dca/dca-sysfs.c dca->cd = NULL; cd 251 drivers/dma/amba-pl08x.c struct pl08x_channel_data *cd; cd 339 drivers/dma/amba-pl08x.c ret = pd->get_xfer_signal(plchan->cd); cd 358 drivers/dma/amba-pl08x.c pd->put_xfer_signal(plchan->cd, plchan->signal); cd 1725 drivers/dma/amba-pl08x.c if (plchan->cd->single) cd 1966 drivers/dma/amba-pl08x.c dst_buses = plchan->cd->periph_buses; cd 1972 drivers/dma/amba-pl08x.c src_buses = plchan->cd->periph_buses; cd 2270 drivers/dma/amba-pl08x.c return plchan->cd == chan_id; cd 2360 drivers/dma/amba-pl08x.c chan->name = chan->cd->bus_id; cd 2361 drivers/dma/amba-pl08x.c chan->cfg.src_addr = chan->cd->addr; cd 2362 drivers/dma/amba-pl08x.c chan->cfg.dst_addr = chan->cd->addr; cd 2392 drivers/dma/amba-pl08x.c chan->cd = &pl08x->pd->slave_channels[i]; cd 2401 drivers/dma/amba-pl08x.c chan->cd = kzalloc(sizeof(*chan->cd), GFP_KERNEL); cd 2402 drivers/dma/amba-pl08x.c if (!chan->cd) { cd 2406 drivers/dma/amba-pl08x.c chan->cd->bus_id = "memcpy"; cd 2407 drivers/dma/amba-pl08x.c chan->cd->periph_buses = pl08x->pd->mem_buses; cd 2410 drivers/dma/amba-pl08x.c kfree(chan->cd); cd 2568 drivers/dma/amba-pl08x.c plchan->cd->periph_buses = dma_spec->args[1]; cd 1413 drivers/dma/mv_xor.c struct mv_xor_channel_data *cd; cd 1417 drivers/dma/mv_xor.c cd = &pdata->channels[i]; cd 1425 drivers/dma/mv_xor.c cd->cap_mask, irq); cd 129 drivers/dma/ti/cppi41.c struct cppi41_desc *cd; cd 650 drivers/dma/ti/cppi41.c td = cdd->cd; cd 804 drivers/dma/ti/cppi41.c cchan->desc = &cdd->cd[i]; cd 827 drivers/dma/ti/cppi41.c dma_free_coherent(dev, mem_decs, cdd->cd, cd 873 drivers/dma/ti/cppi41.c cdd->cd = dma_alloc_coherent(dev, mem_decs, cd 875 drivers/dma/ti/cppi41.c if (!cdd->cd) cd 34 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_GPIO_REG_LIST_ENTRY(type,cd,id) \ cd 36 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h .type ## _mask = DC_GPIO_DDC ## id ## _ ## type ## __DC_GPIO_DDC ## id ## cd ## _ ## type ## _MASK,\ cd 37 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h .type ## _shift = DC_GPIO_DDC ## id ## _ ## type ## __DC_GPIO_DDC ## id ## cd ## _ ## type ## __SHIFT cd 39 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_GPIO_REG_LIST(cd,id) \ cd 41 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_REG_LIST_ENTRY(MASK,cd,id),\ cd 42 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_REG_LIST_ENTRY(A,cd,id),\ cd 43 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_REG_LIST_ENTRY(EN,cd,id),\ cd 44 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_REG_LIST_ENTRY(Y,cd,id)\ cd 47 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_REG_LIST(cd,id) \ cd 48 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_REG_LIST(cd,id),\ cd 52 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_REG_LIST_DCN2(cd, id) \ cd 53 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_REG_LIST(cd, id),\ cd 59 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_GPIO_VGA_REG_LIST_ENTRY(type,cd)\ cd 61 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h .type ## _mask = DC_GPIO_DDCVGA_ ## type ## __DC_GPIO_DDCVGA ## cd ## _ ## type ## _MASK,\ cd 62 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h .type ## _shift = DC_GPIO_DDCVGA_ ## type ## __DC_GPIO_DDCVGA ## cd ## _ ## type ## __SHIFT cd 64 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_GPIO_VGA_REG_LIST(cd) \ cd 66 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_VGA_REG_LIST_ENTRY(MASK,cd),\ cd 67 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_VGA_REG_LIST_ENTRY(A,cd),\ cd 68 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_VGA_REG_LIST_ENTRY(EN,cd),\ cd 69 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_VGA_REG_LIST_ENTRY(Y,cd)\ cd 72 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_VGA_REG_LIST(cd) \ cd 73 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_VGA_REG_LIST(cd),\ cd 76 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_GPIO_I2C_REG_LIST_ENTRY(type,cd) \ cd 78 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h .type ## _mask = DC_GPIO_I2CPAD_ ## type ## __DC_GPIO_ ## cd ## _ ## type ## _MASK,\ cd 79 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h .type ## _shift = DC_GPIO_I2CPAD_ ## type ## __DC_GPIO_ ## cd ## _ ## type ## __SHIFT cd 81 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_GPIO_I2C_REG_LIST(cd) \ cd 83 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_I2C_REG_LIST_ENTRY(MASK,cd),\ cd 84 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_I2C_REG_LIST_ENTRY(A,cd),\ cd 85 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_I2C_REG_LIST_ENTRY(EN,cd),\ cd 86 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_I2C_REG_LIST_ENTRY(Y,cd)\ cd 89 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_I2C_REG_LIST(cd) \ cd 90 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_I2C_REG_LIST(cd),\ cd 94 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_I2C_REG_LIST_DCN2(cd) \ cd 95 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h DDC_GPIO_I2C_REG_LIST(cd),\ cd 114 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h #define DDC_MASK_SH_LIST_DCN2(mask_sh, cd) \ cd 118 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h (PHY_AUX_CNTL__AUX## cd ##_PAD_RXSEL## mask_sh),\ cd 119 drivers/gpu/drm/amd/display/dc/gpio/ddc_regs.h (DC_GPIO_AUX_CTRL_5__DDC_PAD## cd ##_I2CMODE## mask_sh)} cd 31 drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h #define GENERIC_GPIO_REG_LIST_ENTRY(type, cd, id) \ cd 38 drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h GENERIC_GPIO_REG_LIST_ENTRY(MASK, cd, id),\ cd 39 drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h GENERIC_GPIO_REG_LIST_ENTRY(A, cd, id),\ cd 40 drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h GENERIC_GPIO_REG_LIST_ENTRY(EN, cd, id),\ cd 41 drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h GENERIC_GPIO_REG_LIST_ENTRY(Y, cd, id)\ cd 48 drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h #define GENERIC_MASK_SH_LIST(mask_sh, cd) \ cd 49 drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h {(DC_GENERIC ## cd ##__GENERIC ## cd ##_EN## mask_sh),\ cd 50 drivers/gpu/drm/amd/display/dc/gpio/generic_regs.h (DC_GENERIC ## cd ##__GENERIC ## cd ##_SEL## mask_sh)} cd 39 drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h #define HPD_GPIO_REG_LIST_ENTRY(type,cd,id) \ cd 46 drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h HPD_GPIO_REG_LIST_ENTRY(MASK,cd,id),\ cd 47 drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h HPD_GPIO_REG_LIST_ENTRY(A,cd,id),\ cd 48 drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h HPD_GPIO_REG_LIST_ENTRY(EN,cd,id),\ cd 49 drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h HPD_GPIO_REG_LIST_ENTRY(Y,cd,id)\ cd 61 drivers/ide/ide-cd.c struct cdrom_info *cd = NULL; cd 64 drivers/ide/ide-cd.c cd = ide_drv_g(disk, cdrom_info); cd 65 drivers/ide/ide-cd.c if (cd) { cd 66 drivers/ide/ide-cd.c if (ide_device_get(cd->drive)) cd 67 drivers/ide/ide-cd.c cd = NULL; cd 69 drivers/ide/ide-cd.c get_device(&cd->dev); cd 73 drivers/ide/ide-cd.c return cd; cd 76 drivers/ide/ide-cd.c static void ide_cd_put(struct cdrom_info *cd) cd 78 drivers/ide/ide-cd.c ide_drive_t *drive = cd->drive; cd 81 drivers/ide/ide-cd.c put_device(&cd->dev); cd 802 drivers/ide/ide-cd.c struct cdrom_info *cd = drive->driver_data; cd 814 drivers/ide/ide-cd.c if (get_disk_ro(cd->disk)) cd 833 drivers/ide/ide-cd.c cd->devinfo.media_written = 1; cd 1248 drivers/ide/ide-cd.c struct cdrom_info *cd = drive->driver_data; cd 1264 drivers/ide/ide-cd.c cd->current_speed = DIV_ROUND_CLOSEST(curspeed, 176); cd 1265 drivers/ide/ide-cd.c cd->max_speed = DIV_ROUND_CLOSEST(maxspeed, 176); cd 1313 drivers/ide/ide-cd.c struct cdrom_info *cd = drive->driver_data; cd 1314 drivers/ide/ide-cd.c struct cdrom_device_info *cdi = &cd->devinfo; cd 1389 drivers/ide/ide-cd.c if (cd->max_speed) cd 1390 drivers/ide/ide-cd.c printk(KERN_CONT " %dX", cd->max_speed); cd 1515 drivers/ide/ide-cd.c struct cdrom_info *cd = drive->driver_data; cd 1516 drivers/ide/ide-cd.c struct cdrom_device_info *cdi = &cd->devinfo; cd 1549 drivers/ide/ide-cd.c cd->devinfo.handle = NULL; cd 1553 drivers/ide/ide-cd.c ide_proc_register_driver(drive, cd->driver); cd 111 drivers/ide/ide-cd_ioctl.c struct cdrom_info *cd = drive->driver_data; cd 112 drivers/ide/ide-cd_ioctl.c struct cdrom_device_info *cdi = &cd->devinfo; cd 210 drivers/ide/ide-cd_ioctl.c struct cdrom_info *cd = drive->driver_data; cd 237 drivers/ide/ide-cd_ioctl.c cdi->speed = cd->current_speed; cd 295 drivers/ide/ide-cd_ioctl.c struct cdrom_info *cd = drive->driver_data; cd 302 drivers/ide/ide-cd_ioctl.c blk_execute_rq(drive->queue, cd->disk, rq, 0); cd 379 drivers/ide/ide-cd_ioctl.c struct cdrom_info *cd = drive->driver_data; cd 389 drivers/ide/ide-cd_ioctl.c toc = cd->toc; cd 103 drivers/infiniband/hw/hfi1/file_ops.c struct hfi1_ctxtdata **cd); cd 1032 drivers/infiniband/hw/mlx5/main.c if (MLX5_CAP_GEN(mdev, cd)) cd 1995 drivers/infiniband/hw/mlx5/qp.c if (!MLX5_CAP_GEN(mdev, cd)) { cd 490 drivers/infiniband/hw/qib/qib_qsfp.c struct qib_qsfp_cache cd; cd 497 drivers/infiniband/hw/qib/qib_qsfp.c ret = qib_refresh_qsfp_cache(ppd, &cd); cd 503 drivers/infiniband/hw/qib/qib_qsfp.c if (QSFP_IS_CU(cd.tech)) cd 504 drivers/infiniband/hw/qib/qib_qsfp.c sprintf(lenstr, "%dM ", cd.len); cd 507 drivers/infiniband/hw/qib/qib_qsfp.c (QSFP_PWR(cd.pwr) * 4)); cd 510 drivers/infiniband/hw/qib/qib_qsfp.c qib_qsfp_devtech[cd.tech >> 4]); cd 513 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_VEND_LEN, cd.vendor); cd 516 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_OUI(cd.oui)); cd 519 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_PN_LEN, cd.partnum); cd 521 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_REV_LEN, cd.rev); cd 522 drivers/infiniband/hw/qib/qib_qsfp.c if (QSFP_IS_CU(cd.tech)) cd 524 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_ATTEN_SDR(cd.atten), cd 525 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_ATTEN_DDR(cd.atten)); cd 527 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_SN_LEN, cd.serial); cd 529 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_DATE_LEN, cd.date); cd 531 drivers/infiniband/hw/qib/qib_qsfp.c QSFP_LOT_LEN, cd.lot); cd 70 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_load_status_regs(struct cyttsp4 *cd) cd 72 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 73 drivers/input/touchscreen/cyttsp4_core.c struct device *dev = cd->dev; cd 76 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, CY_REG_BASE, si->si_ofs.mode_size, cd 82 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(dev, cd->pr_buf, si->xy_mode, cd 88 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_handshake(struct cyttsp4 *cd, u8 mode) cd 100 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(cmd), &cmd); cd 102 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: bus write fail on handshake (ret=%d)\n", cd 108 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_hw_soft_reset(struct cyttsp4 *cd) cd 111 drivers/input/touchscreen/cyttsp4_core.c int rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(cmd), &cmd); cd 113 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: FAILED to execute SOFT reset\n", cd 120 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_hw_hard_reset(struct cyttsp4 *cd) cd 122 drivers/input/touchscreen/cyttsp4_core.c if (cd->cpdata->xres) { cd 123 drivers/input/touchscreen/cyttsp4_core.c cd->cpdata->xres(cd->cpdata, cd->dev); cd 124 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: execute HARD reset\n", __func__); cd 127 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: FAILED to execute HARD reset\n", __func__); cd 131 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_hw_reset(struct cyttsp4 *cd) cd 133 drivers/input/touchscreen/cyttsp4_core.c int rc = cyttsp4_hw_hard_reset(cd); cd 135 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_hw_soft_reset(cd); cd 150 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_data_offsets(struct cyttsp4 *cd) cd 152 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 153 drivers/input/touchscreen/cyttsp4_core.c int rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(si->si_data), cd 156 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read sysinfo data offsets r=%d\n", cd 162 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(cd->dev, cd->pr_buf, (u8 *)&si->si_data, cd 186 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_get_cydata(struct cyttsp4 *cd) cd 188 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 195 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, cd 202 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: cydata size: %zd\n", __func__, cd 207 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: failed to allocate cydata memory\n", cd 216 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, read_offset, cd 221 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read cydata r=%d\n", cd 230 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: mismatch in MFGID size, reported:%d calculated:%d\n", cd 239 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, read_offset, si->si_ptrs.cydata->mfgid_sz, cd 242 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read cydata r=%d\n", cd 250 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, read_offset, cd 255 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read cydata r=%d\n", cd 260 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(cd->dev, cd->pr_buf, (u8 *)si->si_ptrs.cydata, cd 265 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_get_test_data(struct cyttsp4 *cd) cd 267 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 272 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, cd 282 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: failed to allocate test memory\n", cd 288 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, si->si_ofs.test_ofs, si->si_ofs.test_size, cd 291 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read test data r=%d\n", cd 296 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(cd->dev, cd->pr_buf, cd 301 drivers/input/touchscreen/cyttsp4_core.c dev_info(cd->dev, "%s: %s codel=%02X\n", cd 307 drivers/input/touchscreen/cyttsp4_core.c dev_info(cd->dev, "%s: %s codel=%02X\n", __func__, cd 313 drivers/input/touchscreen/cyttsp4_core.c dev_info(cd->dev, "%s: %s codel=%02X\n", cd 317 drivers/input/touchscreen/cyttsp4_core.c dev_info(cd->dev, "%s: SCANNING is %s codel=%02X\n", cd 324 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_get_pcfg_data(struct cyttsp4 *cd) cd 326 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 331 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, cd 341 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: failed to allocate pcfg memory\n", cd 347 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, si->si_ofs.pcfg_ofs, si->si_ofs.pcfg_size, cd 350 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read pcfg data r=%d\n", cd 366 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(cd->dev, cd->pr_buf, cd 372 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_get_opcfg_data(struct cyttsp4 *cd) cd 374 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 383 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, cd 393 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: failed to allocate opcfg memory\n", cd 399 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, si->si_ofs.opcfg_ofs, si->si_ofs.opcfg_size, cd 402 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read opcfg data r=%d\n", cd 450 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: tch_rec_%s\n", __func__, cd 452 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: ofs =%2zd\n", __func__, cd 454 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: siz =%2zd\n", __func__, cd 456 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: max =%2zd\n", __func__, cd 458 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: bofs=%2zd\n", __func__, cd 466 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(cd->dev, cd->pr_buf, (u8 *)si->si_ptrs.opcfg, cd 472 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_get_ddata(struct cyttsp4 *cd) cd 474 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 482 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail alloc ddata memory\n", __func__); cd 487 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, si->si_ofs.ddata_ofs, si->si_ofs.ddata_size, cd 490 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read ddata data r=%d\n", cd 493 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(cd->dev, cd->pr_buf, cd 499 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_get_mdata(struct cyttsp4 *cd) cd 501 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 509 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail alloc mdata memory\n", __func__); cd 514 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, si->si_ofs.mdata_ofs, si->si_ofs.mdata_size, cd 517 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail read mdata data r=%d\n", cd 520 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(cd->dev, cd->pr_buf, cd 526 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_get_btn_data(struct cyttsp4 *cd) cd 528 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 542 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: %s\n", __func__, cd 548 drivers/input/touchscreen/cyttsp4_core.c if (cd->cpdata->sett[CY_IC_GRPNUM_BTN_KEYS] == NULL) cd 550 drivers/input/touchscreen/cyttsp4_core.c else if (cd->cpdata->sett[CY_IC_GRPNUM_BTN_KEYS]->data == NULL) cd 553 drivers/input/touchscreen/cyttsp4_core.c num_defined_keys = cd->cpdata->sett cd 558 drivers/input/touchscreen/cyttsp4_core.c key_table = (u16 *)cd->cpdata->sett cd 579 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_si_get_op_data_ptrs(struct cyttsp4 *cd) cd 581 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 604 drivers/input/touchscreen/cyttsp4_core.c static void cyttsp4_si_put_log_data(struct cyttsp4 *cd) cd 606 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 607 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: cydata_ofs =%4zd siz=%4zd\n", __func__, cd 609 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: test_ofs =%4zd siz=%4zd\n", __func__, cd 611 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: pcfg_ofs =%4zd siz=%4zd\n", __func__, cd 613 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: opcfg_ofs =%4zd siz=%4zd\n", __func__, cd 615 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: ddata_ofs =%4zd siz=%4zd\n", __func__, cd 617 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: mdata_ofs =%4zd siz=%4zd\n", __func__, cd 620 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: cmd_ofs =%4zd\n", __func__, cd 622 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: rep_ofs =%4zd\n", __func__, cd 624 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: rep_sz =%4zd\n", __func__, cd 626 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: num_btns =%4zd\n", __func__, cd 628 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: num_btn_regs =%4zd\n", __func__, cd 630 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: tt_stat_ofs =%4zd\n", __func__, cd 632 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: tch_rec_size =%4zd\n", __func__, cd 634 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: max_tchs =%4zd\n", __func__, cd 636 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: mode_size =%4zd\n", __func__, cd 638 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: data_size =%4zd\n", __func__, cd 640 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: map_sz =%4zd\n", __func__, cd 643 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: btn_rec_size =%2zd\n", __func__, cd 645 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: btn_diff_ofs =%2zd\n", __func__, cd 647 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: btn_diff_size =%2zd\n", __func__, cd 650 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: max_x = 0x%04zX (%zd)\n", __func__, cd 652 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: x_origin = %zd (%s)\n", __func__, cd 656 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: max_y = 0x%04zX (%zd)\n", __func__, cd 658 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: y_origin = %zd (%s)\n", __func__, cd 662 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: max_p = 0x%04zX (%zd)\n", __func__, cd 665 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: xy_mode=%p xy_data=%p\n", __func__, cd 669 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_get_sysinfo_regs(struct cyttsp4 *cd) cd 671 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 674 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_data_offsets(cd); cd 678 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_get_cydata(cd); cd 682 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_get_test_data(cd); cd 686 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_get_pcfg_data(cd); cd 690 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_get_opcfg_data(cd); cd 694 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_get_ddata(cd); cd 698 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_get_mdata(cd); cd 702 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_get_btn_data(cd); cd 706 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_si_get_op_data_ptrs(cd); cd 708 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: failed to get_op_data\n", cd 713 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_si_put_log_data(cd); cd 716 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_handshake(cd, si->si_data.hst_mode); cd 718 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: handshake fail on sysinfo reg\n", cd 725 drivers/input/touchscreen/cyttsp4_core.c static void cyttsp4_queue_startup_(struct cyttsp4 *cd) cd 727 drivers/input/touchscreen/cyttsp4_core.c if (cd->startup_state == STARTUP_NONE) { cd 728 drivers/input/touchscreen/cyttsp4_core.c cd->startup_state = STARTUP_QUEUED; cd 729 drivers/input/touchscreen/cyttsp4_core.c schedule_work(&cd->startup_work); cd 730 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: cyttsp4_startup queued\n", __func__); cd 732 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: startup_state = %d\n", __func__, cd 733 drivers/input/touchscreen/cyttsp4_core.c cd->startup_state); cd 954 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_xy_worker(struct cyttsp4 *cd) cd 956 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_mt_data *md = &cd->md; cd 996 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, si->si_ofs.tt_stat_ofs + 1, cd 1007 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_pr_buf(dev, cd->pr_buf, si->xy_data, num_cur_tch * cd 1040 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_mt_attention(struct cyttsp4 *cd) cd 1042 drivers/input/touchscreen/cyttsp4_core.c struct device *dev = cd->dev; cd 1043 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_mt_data *md = &cd->md; cd 1052 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_xy_worker(cd); cd 1066 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4 *cd = handle; cd 1067 drivers/input/touchscreen/cyttsp4_core.c struct device *dev = cd->dev; cd 1069 drivers/input/touchscreen/cyttsp4_core.c u8 cmd_ofs = cd->sysinfo.si_ofs.cmd_ofs; cd 1078 drivers/input/touchscreen/cyttsp4_core.c if (atomic_read(&cd->ignore_irq)) { cd 1083 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(dev, "%s int:0x%x\n", __func__, cd->int_status); cd 1085 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1088 drivers/input/touchscreen/cyttsp4_core.c if (cd->sleep_state == SS_SLEEP_ON || cd->sleep_state == SS_SLEEPING) cd 1091 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(mode), mode); cd 1093 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail read adapter r=%d\n", __func__, rc); cd 1102 drivers/input/touchscreen/cyttsp4_core.c if (cd->mode == CY_MODE_BOOTLOADER) { cd 1104 drivers/input/touchscreen/cyttsp4_core.c wake_up(&cd->wait_q); cd 1110 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode, cur_mode); cd 1113 drivers/input/touchscreen/cyttsp4_core.c if (cd->mode != CY_MODE_UNKNOWN) { cd 1115 drivers/input/touchscreen/cyttsp4_core.c cd->mode = CY_MODE_UNKNOWN; cd 1116 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_queue_startup_(cd); cd 1125 drivers/input/touchscreen/cyttsp4_core.c cd->mode = cur_mode; cd 1151 drivers/input/touchscreen/cyttsp4_core.c if (cd->int_status & CY_INT_IGNORE) { cd 1157 drivers/input/touchscreen/cyttsp4_core.c if (cd->int_status & CY_INT_AWAKE) { cd 1158 drivers/input/touchscreen/cyttsp4_core.c cd->int_status &= ~CY_INT_AWAKE; cd 1159 drivers/input/touchscreen/cyttsp4_core.c wake_up(&cd->wait_q); cd 1165 drivers/input/touchscreen/cyttsp4_core.c if ((cd->int_status & CY_INT_MODE_CHANGE) cd 1167 drivers/input/touchscreen/cyttsp4_core.c cd->int_status &= ~CY_INT_MODE_CHANGE; cd 1169 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode, cur_mode); cd 1170 drivers/input/touchscreen/cyttsp4_core.c cd->mode = cur_mode; cd 1171 drivers/input/touchscreen/cyttsp4_core.c wake_up(&cd->wait_q); cd 1177 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode, cur_mode); cd 1178 drivers/input/touchscreen/cyttsp4_core.c if ((mode[0] & CY_HST_MODE_CHANGE) == 0 && cd->mode != cur_mode) { cd 1180 drivers/input/touchscreen/cyttsp4_core.c dev_err(dev, "%s %d->%d 0x%x\n", __func__, cd->mode, cd 1181 drivers/input/touchscreen/cyttsp4_core.c cur_mode, cd->int_status); cd 1184 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_queue_startup_(cd); cd 1190 drivers/input/touchscreen/cyttsp4_core.c if ((cd->int_status & CY_INT_EXEC_CMD) cd 1192 drivers/input/touchscreen/cyttsp4_core.c cd->int_status &= ~CY_INT_EXEC_CMD; cd 1195 drivers/input/touchscreen/cyttsp4_core.c wake_up(&cd->wait_q); cd 1204 drivers/input/touchscreen/cyttsp4_core.c if (cd->mode == CY_MODE_OPERATIONAL) { cd 1206 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_load_status_regs(cd); cd 1212 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_mt_attention(cd); cd 1218 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_handshake(cd, mode[0]); cd 1228 drivers/input/touchscreen/cyttsp4_core.c udelay(cd->cpdata->level_irq_udelay); cd 1231 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1235 drivers/input/touchscreen/cyttsp4_core.c static void cyttsp4_start_wd_timer(struct cyttsp4 *cd) cd 1240 drivers/input/touchscreen/cyttsp4_core.c mod_timer(&cd->watchdog_timer, jiffies + cd 1244 drivers/input/touchscreen/cyttsp4_core.c static void cyttsp4_stop_wd_timer(struct cyttsp4 *cd) cd 1253 drivers/input/touchscreen/cyttsp4_core.c del_timer_sync(&cd->watchdog_timer); cd 1254 drivers/input/touchscreen/cyttsp4_core.c cancel_work_sync(&cd->watchdog_work); cd 1255 drivers/input/touchscreen/cyttsp4_core.c del_timer_sync(&cd->watchdog_timer); cd 1260 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4 *cd = from_timer(cd, t, watchdog_timer); cd 1262 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__); cd 1264 drivers/input/touchscreen/cyttsp4_core.c schedule_work(&cd->watchdog_work); cd 1269 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_request_exclusive(struct cyttsp4 *cd, void *ownptr, cd 1275 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1276 drivers/input/touchscreen/cyttsp4_core.c if (!cd->exclusive_dev && cd->exclusive_waits == 0) { cd 1277 drivers/input/touchscreen/cyttsp4_core.c cd->exclusive_dev = ownptr; cd 1281 drivers/input/touchscreen/cyttsp4_core.c cd->exclusive_waits++; cd 1283 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1285 drivers/input/touchscreen/cyttsp4_core.c t = wait_event_timeout(cd->wait_q, !cd->exclusive_dev, t); cd 1287 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: tmo waiting exclusive access\n", cd 1289 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1290 drivers/input/touchscreen/cyttsp4_core.c cd->exclusive_waits--; cd 1291 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1295 drivers/input/touchscreen/cyttsp4_core.c wait_event(cd->wait_q, !cd->exclusive_dev); cd 1297 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1298 drivers/input/touchscreen/cyttsp4_core.c if (cd->exclusive_dev) cd 1300 drivers/input/touchscreen/cyttsp4_core.c cd->exclusive_dev = ownptr; cd 1301 drivers/input/touchscreen/cyttsp4_core.c cd->exclusive_waits--; cd 1303 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1311 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_release_exclusive(struct cyttsp4 *cd, void *ownptr) cd 1313 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1314 drivers/input/touchscreen/cyttsp4_core.c if (cd->exclusive_dev != ownptr) { cd 1315 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1319 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: exclusive_dev %p freed\n", cd 1320 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->exclusive_dev); cd 1321 drivers/input/touchscreen/cyttsp4_core.c cd->exclusive_dev = NULL; cd 1322 drivers/input/touchscreen/cyttsp4_core.c wake_up(&cd->wait_q); cd 1323 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1327 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_wait_bl_heartbeat(struct cyttsp4 *cd) cd 1333 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: wait heartbeat...\n", __func__); cd 1334 drivers/input/touchscreen/cyttsp4_core.c t = wait_event_timeout(cd->wait_q, cd->mode == CY_MODE_BOOTLOADER, cd 1337 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: tmo waiting bl heartbeat cd->mode=%d\n", cd 1338 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode); cd 1345 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_wait_sysinfo_mode(struct cyttsp4 *cd) cd 1349 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: wait sysinfo...\n", __func__); cd 1351 drivers/input/touchscreen/cyttsp4_core.c t = wait_event_timeout(cd->wait_q, cd->mode == CY_MODE_SYSINFO, cd 1354 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: tmo waiting exit bl cd->mode=%d\n", cd 1355 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode); cd 1356 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1357 drivers/input/touchscreen/cyttsp4_core.c cd->int_status &= ~CY_INT_MODE_CHANGE; cd 1358 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1365 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_reset_and_wait(struct cyttsp4 *cd) cd 1370 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1371 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: reset hw...\n", __func__); cd 1372 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_hw_reset(cd); cd 1373 drivers/input/touchscreen/cyttsp4_core.c cd->mode = CY_MODE_UNKNOWN; cd 1374 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1376 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s:Fail hw reset r=%d\n", __func__, rc); cd 1380 drivers/input/touchscreen/cyttsp4_core.c return cyttsp4_wait_bl_heartbeat(cd); cd 1387 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_set_mode(struct cyttsp4 *cd, int new_mode) cd 1405 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: invalid mode: %02X(%d)\n", cd 1411 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: %s=%p new_dev_mode=%02X new_mode=%d\n", cd 1412 drivers/input/touchscreen/cyttsp4_core.c __func__, "have exclusive", cd->exclusive_dev, cd 1415 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1416 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(mode), &mode); cd 1418 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1419 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail read mode r=%d\n", cd 1428 drivers/input/touchscreen/cyttsp4_core.c cd->int_status |= CY_INT_MODE_CHANGE; cd 1429 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(mode), &mode); cd 1430 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1432 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail write mode change r=%d\n", cd 1438 drivers/input/touchscreen/cyttsp4_core.c t = wait_event_timeout(cd->wait_q, cd 1439 drivers/input/touchscreen/cyttsp4_core.c (cd->int_status & CY_INT_MODE_CHANGE) == 0, cd 1441 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: back from wait t=%ld cd->mode=%d\n", cd 1442 drivers/input/touchscreen/cyttsp4_core.c __func__, t, cd->mode); cd 1445 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: %s\n", __func__, cd 1447 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1448 drivers/input/touchscreen/cyttsp4_core.c cd->int_status &= ~CY_INT_MODE_CHANGE; cd 1449 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1459 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4 *cd = cd 1464 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1465 drivers/input/touchscreen/cyttsp4_core.c retval = cyttsp4_load_status_regs(cd); cd 1467 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, cd 1470 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_queue_startup_(cd); cd 1473 drivers/input/touchscreen/cyttsp4_core.c mode = &cd->sysinfo.xy_mode[CY_REG_BASE]; cd 1475 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, cd 1478 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_queue_startup_(cd); cd 1482 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_start_wd_timer(cd); cd 1484 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1488 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_core_sleep_(struct cyttsp4 *cd) cd 1496 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1497 drivers/input/touchscreen/cyttsp4_core.c if (cd->sleep_state == SS_SLEEP_ON) { cd 1498 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1501 drivers/input/touchscreen/cyttsp4_core.c cd->sleep_state = SS_SLEEPING; cd 1502 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1504 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_stop_wd_timer(cd); cd 1507 drivers/input/touchscreen/cyttsp4_core.c disable_irq(cd->irq); cd 1509 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: write DEEP SLEEP...\n", __func__); cd 1510 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1511 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(mode), &mode); cd 1513 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1514 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail read adapter r=%d\n", __func__, rc); cd 1519 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1520 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Device in BOOTLOADER mode.\n", __func__); cd 1526 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(mode[0]), &mode[0]); cd 1527 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1529 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail write adapter r=%d\n", __func__, rc); cd 1532 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: write DEEP SLEEP succeeded\n", __func__); cd 1534 drivers/input/touchscreen/cyttsp4_core.c if (cd->cpdata->power) { cd 1535 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: Power down HW\n", __func__); cd 1536 drivers/input/touchscreen/cyttsp4_core.c rc = cd->cpdata->power(cd->cpdata, 0, cd->dev, &cd->ignore_irq); cd 1538 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: No power function\n", __func__); cd 1542 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: HW Power down fails r=%d\n", cd 1555 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_start_wd_timer(cd); cd 1558 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1559 drivers/input/touchscreen/cyttsp4_core.c cd->sleep_state = ss; cd 1560 drivers/input/touchscreen/cyttsp4_core.c cd->int_status |= int_status; cd 1561 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1562 drivers/input/touchscreen/cyttsp4_core.c enable_irq(cd->irq); cd 1566 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_startup_(struct cyttsp4 *cd) cd 1571 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_stop_wd_timer(cd); cd 1575 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: Retry %d\n", __func__, cd 1579 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_reset_and_wait(cd); cd 1581 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Error on h/w reset r=%d\n", __func__, rc); cd 1588 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: write exit ldr...\n", __func__); cd 1589 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1590 drivers/input/touchscreen/cyttsp4_core.c cd->int_status &= ~CY_INT_IGNORE; cd 1591 drivers/input/touchscreen/cyttsp4_core.c cd->int_status |= CY_INT_MODE_CHANGE; cd 1593 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(ldr_exit), cd 1595 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1597 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail write r=%d\n", __func__, rc); cd 1603 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_wait_sysinfo_mode(cd); cd 1609 drivers/input/touchscreen/cyttsp4_core.c rc1 = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(ldr_err_app), cd 1612 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail read r=%d\n", __func__, rc1); cd 1614 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Error launching touch application\n", cd 1616 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1617 drivers/input/touchscreen/cyttsp4_core.c cd->invalid_touch_app = true; cd 1618 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1627 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1628 drivers/input/touchscreen/cyttsp4_core.c cd->invalid_touch_app = false; cd 1629 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1632 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: get sysinfo regs..\n", __func__); cd 1633 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_get_sysinfo_regs(cd); cd 1635 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: failed to get sysinfo regs rc=%d\n", cd 1642 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_set_mode(cd, CY_MODE_OPERATIONAL); cd 1644 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: failed to set mode to operational rc=%d\n", cd 1651 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_lift_all(&cd->md); cd 1654 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1655 drivers/input/touchscreen/cyttsp4_core.c if (cd->sleep_state == SS_SLEEP_ON) { cd 1656 drivers/input/touchscreen/cyttsp4_core.c cd->sleep_state = SS_SLEEP_OFF; cd 1657 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1658 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_core_sleep_(cd); cd 1661 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1664 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_start_wd_timer(cd); cd 1669 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_startup(struct cyttsp4 *cd) cd 1673 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1674 drivers/input/touchscreen/cyttsp4_core.c cd->startup_state = STARTUP_RUNNING; cd 1675 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1677 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_request_exclusive(cd, cd->dev, cd 1680 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail get exclusive ex=%p own=%p\n", cd 1681 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->exclusive_dev, cd->dev); cd 1685 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_startup_(cd); cd 1687 drivers/input/touchscreen/cyttsp4_core.c if (cyttsp4_release_exclusive(cd, cd->dev) < 0) cd 1689 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail to release exclusive\n", __func__); cd 1691 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: pass release exclusive\n", __func__); cd 1694 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1695 drivers/input/touchscreen/cyttsp4_core.c cd->startup_state = STARTUP_NONE; cd 1696 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1699 drivers/input/touchscreen/cyttsp4_core.c wake_up(&cd->wait_q); cd 1706 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4 *cd = container_of(work, struct cyttsp4, startup_work); cd 1709 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_startup(cd); cd 1711 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail queued startup r=%d\n", cd 1715 drivers/input/touchscreen/cyttsp4_core.c static void cyttsp4_free_si_ptrs(struct cyttsp4 *cd) cd 1717 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_sysinfo *si = &cd->sysinfo; cd 1735 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_core_sleep(struct cyttsp4 *cd) cd 1739 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_request_exclusive(cd, cd->dev, cd 1742 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail get exclusive ex=%p own=%p\n", cd 1743 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->exclusive_dev, cd->dev); cd 1747 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_core_sleep_(cd); cd 1749 drivers/input/touchscreen/cyttsp4_core.c if (cyttsp4_release_exclusive(cd, cd->dev) < 0) cd 1750 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail to release exclusive\n", __func__); cd 1752 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: pass release exclusive\n", __func__); cd 1757 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_core_wake_(struct cyttsp4 *cd) cd 1759 drivers/input/touchscreen/cyttsp4_core.c struct device *dev = cd->dev; cd 1765 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1766 drivers/input/touchscreen/cyttsp4_core.c if (cd->sleep_state == SS_SLEEP_OFF) { cd 1767 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1770 drivers/input/touchscreen/cyttsp4_core.c cd->int_status &= ~CY_INT_IGNORE; cd 1771 drivers/input/touchscreen/cyttsp4_core.c cd->int_status |= CY_INT_AWAKE; cd 1772 drivers/input/touchscreen/cyttsp4_core.c cd->sleep_state = SS_WAKING; cd 1774 drivers/input/touchscreen/cyttsp4_core.c if (cd->cpdata->power) { cd 1776 drivers/input/touchscreen/cyttsp4_core.c rc = cd->cpdata->power(cd->cpdata, 1, dev, &cd->ignore_irq); cd 1786 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(mode), &mode); cd 1788 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: HW power up succeeds\n", cd 1790 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1792 drivers/input/touchscreen/cyttsp4_core.c t = wait_event_timeout(cd->wait_q, cd 1793 drivers/input/touchscreen/cyttsp4_core.c (cd->int_status & CY_INT_AWAKE) == 0, cd 1797 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1798 drivers/input/touchscreen/cyttsp4_core.c cd->int_status &= ~CY_INT_AWAKE; cd 1800 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_queue_startup_(cd); cd 1801 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1804 drivers/input/touchscreen/cyttsp4_core.c mutex_lock(&cd->system_lock); cd 1805 drivers/input/touchscreen/cyttsp4_core.c cd->sleep_state = SS_SLEEP_OFF; cd 1806 drivers/input/touchscreen/cyttsp4_core.c mutex_unlock(&cd->system_lock); cd 1808 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_start_wd_timer(cd); cd 1813 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_core_wake(struct cyttsp4 *cd) cd 1817 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_request_exclusive(cd, cd->dev, cd 1820 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail get exclusive ex=%p own=%p\n", cd 1821 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->exclusive_dev, cd->dev); cd 1825 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_core_wake_(cd); cd 1827 drivers/input/touchscreen/cyttsp4_core.c if (cyttsp4_release_exclusive(cd, cd->dev) < 0) cd 1828 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: fail to release exclusive\n", __func__); cd 1830 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(cd->dev, "%s: pass release exclusive\n", __func__); cd 1837 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4 *cd = dev_get_drvdata(dev); cd 1838 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_mt_data *md = &cd->md; cd 1843 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_core_sleep(cd); cd 1853 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4 *cd = dev_get_drvdata(dev); cd 1854 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_mt_data *md = &cd->md; cd 1859 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_core_wake(cd); cd 1891 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_setup_input_device(struct cyttsp4 *cd) cd 1893 drivers/input/touchscreen/cyttsp4_core.c struct device *dev = cd->dev; cd 1894 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_mt_data *md = &cd->md; cd 1962 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_mt_probe(struct cyttsp4 *cd) cd 1964 drivers/input/touchscreen/cyttsp4_core.c struct device *dev = cd->dev; cd 1965 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_mt_data *md = &cd->md; cd 1966 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_mt_platform_data *pdata = cd->pdata->mt_pdata; cd 1985 drivers/input/touchscreen/cyttsp4_core.c md->input->id.bustype = cd->bus_ops->bustype; cd 1992 drivers/input/touchscreen/cyttsp4_core.c md->si = &cd->sysinfo; cd 1994 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_setup_input_device(cd); cd 2010 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4 *cd; cd 2021 drivers/input/touchscreen/cyttsp4_core.c cd = kzalloc(sizeof(*cd), GFP_KERNEL); cd 2022 drivers/input/touchscreen/cyttsp4_core.c if (!cd) { cd 2028 drivers/input/touchscreen/cyttsp4_core.c cd->xfer_buf = kzalloc(xfer_buf_size, GFP_KERNEL); cd 2029 drivers/input/touchscreen/cyttsp4_core.c if (!cd->xfer_buf) { cd 2036 drivers/input/touchscreen/cyttsp4_core.c cd->dev = dev; cd 2037 drivers/input/touchscreen/cyttsp4_core.c cd->pdata = pdata; cd 2038 drivers/input/touchscreen/cyttsp4_core.c cd->cpdata = pdata->core_pdata; cd 2039 drivers/input/touchscreen/cyttsp4_core.c cd->bus_ops = ops; cd 2042 drivers/input/touchscreen/cyttsp4_core.c mutex_init(&cd->system_lock); cd 2043 drivers/input/touchscreen/cyttsp4_core.c mutex_init(&cd->adap_lock); cd 2046 drivers/input/touchscreen/cyttsp4_core.c init_waitqueue_head(&cd->wait_q); cd 2049 drivers/input/touchscreen/cyttsp4_core.c INIT_WORK(&cd->startup_work, cyttsp4_startup_work_function); cd 2050 drivers/input/touchscreen/cyttsp4_core.c INIT_WORK(&cd->watchdog_work, cyttsp4_watchdog_work); cd 2053 drivers/input/touchscreen/cyttsp4_core.c cd->irq = gpio_to_irq(cd->cpdata->irq_gpio); cd 2054 drivers/input/touchscreen/cyttsp4_core.c if (cd->irq < 0) { cd 2059 drivers/input/touchscreen/cyttsp4_core.c dev_set_drvdata(dev, cd); cd 2062 drivers/input/touchscreen/cyttsp4_core.c if (cd->cpdata->init) { cd 2063 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: Init HW\n", __func__); cd 2064 drivers/input/touchscreen/cyttsp4_core.c rc = cd->cpdata->init(cd->cpdata, 1, cd->dev); cd 2066 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(cd->dev, "%s: No HW INIT function\n", __func__); cd 2070 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: HW Init fail r=%d\n", __func__, rc); cd 2072 drivers/input/touchscreen/cyttsp4_core.c dev_dbg(dev, "%s: initialize threaded irq=%d\n", __func__, cd->irq); cd 2073 drivers/input/touchscreen/cyttsp4_core.c if (cd->cpdata->level_irq_udelay > 0) cd 2080 drivers/input/touchscreen/cyttsp4_core.c rc = request_threaded_irq(cd->irq, NULL, cyttsp4_irq, irq_flags, cd 2081 drivers/input/touchscreen/cyttsp4_core.c dev_name(dev), cd); cd 2088 drivers/input/touchscreen/cyttsp4_core.c timer_setup(&cd->watchdog_timer, cyttsp4_watchdog_timer, 0); cd 2094 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_startup(cd); cd 2097 drivers/input/touchscreen/cyttsp4_core.c if (rc < 0 && cd->mode == CY_MODE_UNKNOWN) { cd 2098 drivers/input/touchscreen/cyttsp4_core.c dev_err(cd->dev, "%s: Fail initial startup r=%d\n", cd 2103 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_mt_probe(cd); cd 2111 drivers/input/touchscreen/cyttsp4_core.c return cd; cd 2114 drivers/input/touchscreen/cyttsp4_core.c cancel_work_sync(&cd->startup_work); cd 2115 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_stop_wd_timer(cd); cd 2117 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_free_si_ptrs(cd); cd 2118 drivers/input/touchscreen/cyttsp4_core.c free_irq(cd->irq, cd); cd 2120 drivers/input/touchscreen/cyttsp4_core.c if (cd->cpdata->init) cd 2121 drivers/input/touchscreen/cyttsp4_core.c cd->cpdata->init(cd->cpdata, 0, dev); cd 2123 drivers/input/touchscreen/cyttsp4_core.c kfree(cd->xfer_buf); cd 2125 drivers/input/touchscreen/cyttsp4_core.c kfree(cd); cd 2139 drivers/input/touchscreen/cyttsp4_core.c int cyttsp4_remove(struct cyttsp4 *cd) cd 2141 drivers/input/touchscreen/cyttsp4_core.c struct device *dev = cd->dev; cd 2143 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_mt_release(&cd->md); cd 2152 drivers/input/touchscreen/cyttsp4_core.c cancel_work_sync(&cd->startup_work); cd 2154 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_stop_wd_timer(cd); cd 2156 drivers/input/touchscreen/cyttsp4_core.c free_irq(cd->irq, cd); cd 2157 drivers/input/touchscreen/cyttsp4_core.c if (cd->cpdata->init) cd 2158 drivers/input/touchscreen/cyttsp4_core.c cd->cpdata->init(cd->cpdata, 0, dev); cd 2159 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_free_si_ptrs(cd); cd 2160 drivers/input/touchscreen/cyttsp4_core.c kfree(cd); cd 559 drivers/iommu/arm-smmu-v3.c } cd; cd 1473 drivers/iommu/arm-smmu-v3.c val = arm_smmu_cpu_tcr_to_cd(cfg->cd.tcr) | cd 1478 drivers/iommu/arm-smmu-v3.c CTXDESC_CD_0_AA64 | FIELD_PREP(CTXDESC_CD_0_ASID, cfg->cd.asid) | cd 1487 drivers/iommu/arm-smmu-v3.c val = cfg->cd.ttbr & CTXDESC_CD_1_TTB0_MASK; cd 1490 drivers/iommu/arm-smmu-v3.c cfg->cdptr[3] = cpu_to_le64(cfg->cd.mair); cd 1968 drivers/iommu/arm-smmu-v3.c cmd.tlbi.asid = smmu_domain->s1_cfg.cd.asid; cd 2006 drivers/iommu/arm-smmu-v3.c cmd.tlbi.asid = smmu_domain->s1_cfg.cd.asid; cd 2142 drivers/iommu/arm-smmu-v3.c arm_smmu_bitmap_free(smmu->asid_map, cfg->cd.asid); cd 2174 drivers/iommu/arm-smmu-v3.c cfg->cd.asid = (u16)asid; cd 2175 drivers/iommu/arm-smmu-v3.c cfg->cd.ttbr = pgtbl_cfg->arm_lpae_s1_cfg.ttbr[0]; cd 2176 drivers/iommu/arm-smmu-v3.c cfg->cd.tcr = pgtbl_cfg->arm_lpae_s1_cfg.tcr; cd 2177 drivers/iommu/arm-smmu-v3.c cfg->cd.mair = pgtbl_cfg->arm_lpae_s1_cfg.mair[0]; cd 31 drivers/irqchip/irq-imx-gpcv2.c static void __iomem *gpcv2_idx_to_reg(struct gpcv2_irqchip_data *cd, int i) cd 33 drivers/irqchip/irq-imx-gpcv2.c return cd->gpc_base + cd->cpu2wakeup + i * 4; cd 38 drivers/irqchip/irq-imx-gpcv2.c struct gpcv2_irqchip_data *cd; cd 42 drivers/irqchip/irq-imx-gpcv2.c cd = imx_gpcv2_instance; cd 43 drivers/irqchip/irq-imx-gpcv2.c if (!cd) cd 47 drivers/irqchip/irq-imx-gpcv2.c reg = gpcv2_idx_to_reg(cd, i); cd 48 drivers/irqchip/irq-imx-gpcv2.c cd->saved_irq_mask[i] = readl_relaxed(reg); cd 49 drivers/irqchip/irq-imx-gpcv2.c writel_relaxed(cd->wakeup_sources[i], reg); cd 57 drivers/irqchip/irq-imx-gpcv2.c struct gpcv2_irqchip_data *cd; cd 60 drivers/irqchip/irq-imx-gpcv2.c cd = imx_gpcv2_instance; cd 61 drivers/irqchip/irq-imx-gpcv2.c if (!cd) cd 65 drivers/irqchip/irq-imx-gpcv2.c writel_relaxed(cd->saved_irq_mask[i], gpcv2_idx_to_reg(cd, i)); cd 75 drivers/irqchip/irq-imx-gpcv2.c struct gpcv2_irqchip_data *cd = d->chip_data; cd 80 drivers/irqchip/irq-imx-gpcv2.c raw_spin_lock_irqsave(&cd->rlock, flags); cd 82 drivers/irqchip/irq-imx-gpcv2.c val = cd->wakeup_sources[idx]; cd 84 drivers/irqchip/irq-imx-gpcv2.c cd->wakeup_sources[idx] = on ? (val & ~mask) : (val | mask); cd 85 drivers/irqchip/irq-imx-gpcv2.c raw_spin_unlock_irqrestore(&cd->rlock, flags); cd 97 drivers/irqchip/irq-imx-gpcv2.c struct gpcv2_irqchip_data *cd = d->chip_data; cd 101 drivers/irqchip/irq-imx-gpcv2.c raw_spin_lock(&cd->rlock); cd 102 drivers/irqchip/irq-imx-gpcv2.c reg = gpcv2_idx_to_reg(cd, d->hwirq / 32); cd 106 drivers/irqchip/irq-imx-gpcv2.c raw_spin_unlock(&cd->rlock); cd 113 drivers/irqchip/irq-imx-gpcv2.c struct gpcv2_irqchip_data *cd = d->chip_data; cd 117 drivers/irqchip/irq-imx-gpcv2.c raw_spin_lock(&cd->rlock); cd 118 drivers/irqchip/irq-imx-gpcv2.c reg = gpcv2_idx_to_reg(cd, d->hwirq / 32); cd 122 drivers/irqchip/irq-imx-gpcv2.c raw_spin_unlock(&cd->rlock); cd 206 drivers/irqchip/irq-imx-gpcv2.c struct gpcv2_irqchip_data *cd; cd 230 drivers/irqchip/irq-imx-gpcv2.c cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL); cd 231 drivers/irqchip/irq-imx-gpcv2.c if (!cd) { cd 236 drivers/irqchip/irq-imx-gpcv2.c raw_spin_lock_init(&cd->rlock); cd 238 drivers/irqchip/irq-imx-gpcv2.c cd->gpc_base = of_iomap(node, 0); cd 239 drivers/irqchip/irq-imx-gpcv2.c if (!cd->gpc_base) { cd 241 drivers/irqchip/irq-imx-gpcv2.c kfree(cd); cd 246 drivers/irqchip/irq-imx-gpcv2.c node, &gpcv2_irqchip_data_domain_ops, cd); cd 248 drivers/irqchip/irq-imx-gpcv2.c iounmap(cd->gpc_base); cd 249 drivers/irqchip/irq-imx-gpcv2.c kfree(cd); cd 256 drivers/irqchip/irq-imx-gpcv2.c void __iomem *reg = cd->gpc_base + i * 4; cd 267 drivers/irqchip/irq-imx-gpcv2.c cd->wakeup_sources[i] = ~0; cd 271 drivers/irqchip/irq-imx-gpcv2.c cd->cpu2wakeup = GPC_IMR1_CORE0; cd 278 drivers/irqchip/irq-imx-gpcv2.c writel_relaxed(~0x1, cd->gpc_base + cd->cpu2wakeup); cd 280 drivers/irqchip/irq-imx-gpcv2.c imx_gpcv2_instance = cd; cd 349 drivers/irqchip/irq-mips-gic.c struct gic_all_vpes_chip_data *cd; cd 354 drivers/irqchip/irq-mips-gic.c cd = irq_data_get_irq_chip_data(d); cd 355 drivers/irqchip/irq-mips-gic.c cd->mask = false; cd 367 drivers/irqchip/irq-mips-gic.c struct gic_all_vpes_chip_data *cd; cd 372 drivers/irqchip/irq-mips-gic.c cd = irq_data_get_irq_chip_data(d); cd 373 drivers/irqchip/irq-mips-gic.c cd->mask = true; cd 385 drivers/irqchip/irq-mips-gic.c struct gic_all_vpes_chip_data *cd; cd 389 drivers/irqchip/irq-mips-gic.c cd = irq_data_get_irq_chip_data(d); cd 391 drivers/irqchip/irq-mips-gic.c write_gic_vl_map(mips_gic_vx_map_reg(intr), cd->map); cd 392 drivers/irqchip/irq-mips-gic.c if (cd->mask) cd 455 drivers/irqchip/irq-mips-gic.c struct gic_all_vpes_chip_data *cd; cd 491 drivers/irqchip/irq-mips-gic.c cd = &gic_all_vpes_chip_data[intr]; cd 492 drivers/irqchip/irq-mips-gic.c cd->map = map; cd 495 drivers/irqchip/irq-mips-gic.c cd); cd 40 drivers/media/cec/cec-core.c #define to_cec_devnode(cd) container_of(cd, struct cec_devnode, dev) cd 72 drivers/media/cec/cec-core.c static void cec_devnode_release(struct device *cd) cd 74 drivers/media/cec/cec-core.c struct cec_devnode *devnode = to_cec_devnode(cd); cd 494 drivers/media/i2c/msp3400-kthreads.c struct msp3400c_carrier_detect *cd; cd 535 drivers/media/i2c/msp3400-kthreads.c cd = msp3400c_carrier_detect_main; cd 546 drivers/media/i2c/msp3400-kthreads.c msp3400c_set_carrier(client, cd[i].cdo, cd[i].cdo); cd 555 drivers/media/i2c/msp3400-kthreads.c "carrier1 val: %5d / %s\n", val, cd[i].name); cd 561 drivers/media/i2c/msp3400-kthreads.c cd = msp3400c_carrier_detect_55; cd 565 drivers/media/i2c/msp3400-kthreads.c cd = msp3400c_carrier_detect_65; cd 571 drivers/media/i2c/msp3400-kthreads.c cd = NULL; cd 578 drivers/media/i2c/msp3400-kthreads.c cd = NULL; cd 583 drivers/media/i2c/msp3400-kthreads.c msp3400c_set_carrier(client, cd[i].cdo, cd[i].cdo); cd 592 drivers/media/i2c/msp3400-kthreads.c "carrier2 val: %5d / %s\n", val, cd[i].name); cd 558 drivers/media/mc/mc-device.c static ssize_t show_model(struct device *cd, cd 561 drivers/media/mc/mc-device.c struct media_devnode *devnode = to_media_devnode(cd); cd 49 drivers/media/mc/mc-devnode.c static void media_devnode_release(struct device *cd) cd 51 drivers/media/mc/mc-devnode.c struct media_devnode *devnode = to_media_devnode(cd); cd 173 drivers/media/pci/bt8xx/bttv-driver.c static ssize_t show_card(struct device *cd, cd 176 drivers/media/pci/bt8xx/bttv-driver.c struct video_device *vfd = to_video_device(cd); cd 212 drivers/media/usb/gspca/se401.c u8 *cd = gspca_dev->usb_buf; cd 231 drivers/media/usb/gspca/se401.c if (cd[1] != 0x41) { cd 236 drivers/media/usb/gspca/se401.c if (!(cd[2] & SE401_FORMAT_BAYER)) { cd 241 drivers/media/usb/gspca/se401.c if (cd[3]) cd 242 drivers/media/usb/gspca/se401.c pr_info("ExtraFeatures: %d\n", cd[3]); cd 244 drivers/media/usb/gspca/se401.c n = cd[4] | (cd[5] << 8); cd 251 drivers/media/usb/gspca/se401.c widths[i] = cd[6 + i * 4 + 0] | (cd[6 + i * 4 + 1] << 8); cd 252 drivers/media/usb/gspca/se401.c heights[i] = cd[6 + i * 4 + 2] | (cd[6 + i * 4 + 3] << 8); cd 1974 drivers/media/usb/pvrusb2/pvrusb2-hdw.c const struct pvr2_device_client_desc *cd) cd 1984 drivers/media/usb/pvrusb2/pvrusb2-hdw.c mid = cd->module_id; cd 1998 drivers/media/usb/pvrusb2/pvrusb2-hdw.c i2ccnt = pvr2_copy_i2c_addr_list(i2caddr, cd->i2c_address_list, cd 145 drivers/media/usb/usbvision/usbvision-video.c static inline struct usb_usbvision *cd_to_usbvision(struct device *cd) cd 147 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 151 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_version(struct device *cd, cd 158 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_model(struct device *cd, cd 161 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 168 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_hue(struct device *cd, cd 171 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 180 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_contrast(struct device *cd, cd 183 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 192 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_brightness(struct device *cd, cd 195 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 204 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_saturation(struct device *cd, cd 207 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 216 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_streaming(struct device *cd, cd 219 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 226 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_compression(struct device *cd, cd 229 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 236 drivers/media/usb/usbvision/usbvision-video.c static ssize_t show_device_bridge(struct device *cd, cd 239 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); cd 45 drivers/media/v4l2-core/v4l2-dev.c static ssize_t index_show(struct device *cd, cd 48 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); cd 54 drivers/media/v4l2-core/v4l2-dev.c static ssize_t dev_debug_show(struct device *cd, cd 57 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); cd 62 drivers/media/v4l2-core/v4l2-dev.c static ssize_t dev_debug_store(struct device *cd, struct device_attribute *attr, cd 65 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); cd 78 drivers/media/v4l2-core/v4l2-dev.c static ssize_t name_show(struct device *cd, cd 81 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); cd 174 drivers/media/v4l2-core/v4l2-dev.c static void v4l2_device_release(struct device *cd) cd 176 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); cd 300 drivers/memory/omap-gpmc.c static unsigned long gpmc_get_clk_period(int cs, enum gpmc_clk_domain cd) cd 307 drivers/memory/omap-gpmc.c switch (cd) { cd 326 drivers/memory/omap-gpmc.c enum gpmc_clk_domain cd) cd 331 drivers/memory/omap-gpmc.c tick_ps = gpmc_get_clk_period(cs, cd); cd 352 drivers/memory/omap-gpmc.c enum gpmc_clk_domain cd) cd 354 drivers/memory/omap-gpmc.c return ticks * gpmc_get_clk_period(cs, cd) / 1000; cd 431 drivers/memory/omap-gpmc.c const char *name, const enum gpmc_clk_domain cd, cd 459 drivers/memory/omap-gpmc.c time_ns_min = gpmc_clk_ticks_to_ns(l - 1, cs, cd) + 1; cd 460 drivers/memory/omap-gpmc.c time_ns = gpmc_clk_ticks_to_ns(l, cs, cd); cd 486 drivers/memory/omap-gpmc.c #define GPMC_GET_TICKS_CD(reg, st, end, field, cd) \ cd 487 drivers/memory/omap-gpmc.c get_gpmc_timing_reg(cs, (reg), (st), (end), 0, field, (cd), 0, 0, 0) cd 488 drivers/memory/omap-gpmc.c #define GPMC_GET_TICKS_CD_MAX(reg, st, end, max, field, cd) \ cd 489 drivers/memory/omap-gpmc.c get_gpmc_timing_reg(cs, (reg), (st), (end), (max), field, (cd), 0, 0, 0) cd 604 drivers/memory/omap-gpmc.c int time, enum gpmc_clk_domain cd, const char *name) cd 612 drivers/memory/omap-gpmc.c ticks = gpmc_ns_to_clk_ticks(time, cs, cd); cd 630 drivers/memory/omap-gpmc.c cs, name, ticks, gpmc_get_clk_period(cs, cd) * ticks / 1000, cd 640 drivers/memory/omap-gpmc.c #define GPMC_SET_ONE_CD_MAX(reg, st, end, max, field, cd) \ cd 642 drivers/memory/omap-gpmc.c t->field, (cd), #field) < 0) \ cd 116 drivers/misc/genwqe/card_base.c struct genwqe_dev *cd; cd 125 drivers/misc/genwqe/card_base.c cd = kzalloc(sizeof(struct genwqe_dev), GFP_KERNEL); cd 126 drivers/misc/genwqe/card_base.c if (!cd) cd 129 drivers/misc/genwqe/card_base.c cd->card_idx = i; cd 130 drivers/misc/genwqe/card_base.c cd->class_genwqe = class_genwqe; cd 131 drivers/misc/genwqe/card_base.c cd->debugfs_genwqe = debugfs_genwqe; cd 137 drivers/misc/genwqe/card_base.c cd->use_platform_recovery = CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY; cd 139 drivers/misc/genwqe/card_base.c init_waitqueue_head(&cd->queue_waitq); cd 141 drivers/misc/genwqe/card_base.c spin_lock_init(&cd->file_lock); cd 142 drivers/misc/genwqe/card_base.c INIT_LIST_HEAD(&cd->file_list); cd 144 drivers/misc/genwqe/card_base.c cd->card_state = GENWQE_CARD_UNUSED; cd 145 drivers/misc/genwqe/card_base.c spin_lock_init(&cd->print_lock); cd 147 drivers/misc/genwqe/card_base.c cd->ddcb_software_timeout = GENWQE_DDCB_SOFTWARE_TIMEOUT; cd 148 drivers/misc/genwqe/card_base.c cd->kill_timeout = GENWQE_KILL_TIMEOUT; cd 151 drivers/misc/genwqe/card_base.c cd->vf_jobtimeout_msec[j] = GENWQE_VF_JOBTIMEOUT_MSEC; cd 153 drivers/misc/genwqe/card_base.c genwqe_devices[i] = cd; cd 154 drivers/misc/genwqe/card_base.c return cd; cd 157 drivers/misc/genwqe/card_base.c static void genwqe_dev_free(struct genwqe_dev *cd) cd 159 drivers/misc/genwqe/card_base.c if (!cd) cd 162 drivers/misc/genwqe/card_base.c genwqe_devices[cd->card_idx] = NULL; cd 163 drivers/misc/genwqe/card_base.c kfree(cd); cd 174 drivers/misc/genwqe/card_base.c static int genwqe_bus_reset(struct genwqe_dev *cd) cd 177 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 180 drivers/misc/genwqe/card_base.c if (cd->err_inject & GENWQE_INJECT_BUS_RESET_FAILURE) cd 183 drivers/misc/genwqe/card_base.c mmio = cd->mmio; cd 184 drivers/misc/genwqe/card_base.c cd->mmio = NULL; cd 207 drivers/misc/genwqe/card_base.c cd->err_inject &= ~(GENWQE_INJECT_HARDWARE_FAILURE | cd 218 drivers/misc/genwqe/card_base.c cd->mmio = pci_iomap(pci_dev, 0, 0); cd 219 drivers/misc/genwqe/card_base.c if (cd->mmio == NULL) { cd 239 drivers/misc/genwqe/card_base.c bool genwqe_need_err_masking(struct genwqe_dev *cd) cd 241 drivers/misc/genwqe/card_base.c return (cd->slu_unitcfg & 0xFFFF0ull) < 0x32170ull; cd 244 drivers/misc/genwqe/card_base.c static void genwqe_tweak_hardware(struct genwqe_dev *cd) cd 246 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 249 drivers/misc/genwqe/card_base.c if (((cd->slu_unitcfg & 0xFFFF0ull) >= 0x32000ull) && cd 250 drivers/misc/genwqe/card_base.c ((cd->slu_unitcfg & 0xFFFF0ull) <= 0x33250ull)) { cd 253 drivers/misc/genwqe/card_base.c cd->slu_unitcfg, cd->app_unitcfg); cd 255 drivers/misc/genwqe/card_base.c __genwqe_writeq(cd, IO_APP_SEC_LEM_DEBUG_OVR, cd 258 drivers/misc/genwqe/card_base.c __genwqe_writeq(cd, IO_APP_ERR_ACT_MASK, cd 271 drivers/misc/genwqe/card_base.c int genwqe_recovery_on_fatal_gfir_required(struct genwqe_dev *cd) cd 273 drivers/misc/genwqe/card_base.c return (cd->slu_unitcfg & 0xFFFF0ull) >= 0x32170ull; cd 276 drivers/misc/genwqe/card_base.c int genwqe_flash_readback_fails(struct genwqe_dev *cd) cd 278 drivers/misc/genwqe/card_base.c return (cd->slu_unitcfg & 0xFFFF0ull) < 0x32170ull; cd 292 drivers/misc/genwqe/card_base.c static int genwqe_T_psec(struct genwqe_dev *cd) cd 297 drivers/misc/genwqe/card_base.c speed = (u16)((cd->slu_unitcfg >> 28) & 0x0full); cd 313 drivers/misc/genwqe/card_base.c static bool genwqe_setup_pf_jtimer(struct genwqe_dev *cd) cd 315 drivers/misc/genwqe/card_base.c u32 T = genwqe_T_psec(cd); cd 325 drivers/misc/genwqe/card_base.c genwqe_write_vreg(cd, IO_SLC_VF_APPJOB_TIMEOUT, cd 333 drivers/misc/genwqe/card_base.c static bool genwqe_setup_vf_jtimer(struct genwqe_dev *cd) cd 335 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 337 drivers/misc/genwqe/card_base.c u32 T = genwqe_T_psec(cd); cd 347 drivers/misc/genwqe/card_base.c if (cd->vf_jobtimeout_msec[vf] == 0) cd 350 drivers/misc/genwqe/card_base.c x = ilog2(cd->vf_jobtimeout_msec[vf] * cd 353 drivers/misc/genwqe/card_base.c genwqe_write_vreg(cd, IO_SLC_VF_APPJOB_TIMEOUT, cd 359 drivers/misc/genwqe/card_base.c static int genwqe_ffdc_buffs_alloc(struct genwqe_dev *cd) cd 366 drivers/misc/genwqe/card_base.c e = genwqe_ffdc_buff_size(cd, 0); cd 369 drivers/misc/genwqe/card_base.c e = genwqe_ffdc_buff_size(cd, 1); cd 372 drivers/misc/genwqe/card_base.c e = genwqe_ffdc_buff_size(cd, 2); cd 380 drivers/misc/genwqe/card_base.c cd->ffdc[type].entries = e; cd 381 drivers/misc/genwqe/card_base.c cd->ffdc[type].regs = cd 392 drivers/misc/genwqe/card_base.c static void genwqe_ffdc_buffs_free(struct genwqe_dev *cd) cd 397 drivers/misc/genwqe/card_base.c kfree(cd->ffdc[type].regs); cd 398 drivers/misc/genwqe/card_base.c cd->ffdc[type].regs = NULL; cd 402 drivers/misc/genwqe/card_base.c static int genwqe_read_ids(struct genwqe_dev *cd) cd 406 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 408 drivers/misc/genwqe/card_base.c cd->slu_unitcfg = __genwqe_readq(cd, IO_SLU_UNITCFG); cd 409 drivers/misc/genwqe/card_base.c if (cd->slu_unitcfg == IO_ILLEGAL_VALUE) { cd 411 drivers/misc/genwqe/card_base.c "err: SLUID=%016llx\n", cd->slu_unitcfg); cd 416 drivers/misc/genwqe/card_base.c slu_id = genwqe_get_slu_id(cd); cd 424 drivers/misc/genwqe/card_base.c cd->app_unitcfg = __genwqe_readq(cd, IO_APP_UNITCFG); cd 425 drivers/misc/genwqe/card_base.c if (cd->app_unitcfg == IO_ILLEGAL_VALUE) { cd 427 drivers/misc/genwqe/card_base.c "err: APPID=%016llx\n", cd->app_unitcfg); cd 431 drivers/misc/genwqe/card_base.c genwqe_read_app_id(cd, cd->app_name, sizeof(cd->app_name)); cd 441 drivers/misc/genwqe/card_base.c cd->is_privileged = 0; cd 443 drivers/misc/genwqe/card_base.c cd->is_privileged = (__genwqe_readq(cd, IO_SLU_BITSTREAM) cd 450 drivers/misc/genwqe/card_base.c static int genwqe_start(struct genwqe_dev *cd) cd 453 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 455 drivers/misc/genwqe/card_base.c err = genwqe_read_ids(cd); cd 459 drivers/misc/genwqe/card_base.c if (genwqe_is_privileged(cd)) { cd 461 drivers/misc/genwqe/card_base.c genwqe_ffdc_buffs_alloc(cd); cd 462 drivers/misc/genwqe/card_base.c genwqe_stop_traps(cd); cd 465 drivers/misc/genwqe/card_base.c genwqe_read_ffdc_regs(cd, cd->ffdc[GENWQE_DBG_REGS].regs, cd 466 drivers/misc/genwqe/card_base.c cd->ffdc[GENWQE_DBG_REGS].entries, 0); cd 468 drivers/misc/genwqe/card_base.c genwqe_ffdc_buff_read(cd, GENWQE_DBG_UNIT0, cd 469 drivers/misc/genwqe/card_base.c cd->ffdc[GENWQE_DBG_UNIT0].regs, cd 470 drivers/misc/genwqe/card_base.c cd->ffdc[GENWQE_DBG_UNIT0].entries); cd 472 drivers/misc/genwqe/card_base.c genwqe_ffdc_buff_read(cd, GENWQE_DBG_UNIT1, cd 473 drivers/misc/genwqe/card_base.c cd->ffdc[GENWQE_DBG_UNIT1].regs, cd 474 drivers/misc/genwqe/card_base.c cd->ffdc[GENWQE_DBG_UNIT1].entries); cd 476 drivers/misc/genwqe/card_base.c genwqe_ffdc_buff_read(cd, GENWQE_DBG_UNIT2, cd 477 drivers/misc/genwqe/card_base.c cd->ffdc[GENWQE_DBG_UNIT2].regs, cd 478 drivers/misc/genwqe/card_base.c cd->ffdc[GENWQE_DBG_UNIT2].entries); cd 480 drivers/misc/genwqe/card_base.c genwqe_start_traps(cd); cd 482 drivers/misc/genwqe/card_base.c if (cd->card_state == GENWQE_CARD_FATAL_ERROR) { cd 490 drivers/misc/genwqe/card_base.c cd->softreset = 0x7Cull; cd 491 drivers/misc/genwqe/card_base.c __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, cd 492 drivers/misc/genwqe/card_base.c cd->softreset); cd 494 drivers/misc/genwqe/card_base.c err = genwqe_bus_reset(cd); cd 507 drivers/misc/genwqe/card_base.c err = genwqe_read_ids(cd); cd 513 drivers/misc/genwqe/card_base.c err = genwqe_setup_service_layer(cd); /* does a reset to the card */ cd 521 drivers/misc/genwqe/card_base.c if (genwqe_is_privileged(cd)) { /* code is running _after_ reset */ cd 522 drivers/misc/genwqe/card_base.c genwqe_tweak_hardware(cd); cd 524 drivers/misc/genwqe/card_base.c genwqe_setup_pf_jtimer(cd); cd 525 drivers/misc/genwqe/card_base.c genwqe_setup_vf_jtimer(cd); cd 528 drivers/misc/genwqe/card_base.c err = genwqe_device_create(cd); cd 537 drivers/misc/genwqe/card_base.c genwqe_release_service_layer(cd); cd 539 drivers/misc/genwqe/card_base.c if (genwqe_is_privileged(cd)) cd 540 drivers/misc/genwqe/card_base.c genwqe_ffdc_buffs_free(cd); cd 556 drivers/misc/genwqe/card_base.c static int genwqe_stop(struct genwqe_dev *cd) cd 558 drivers/misc/genwqe/card_base.c genwqe_finish_queue(cd); /* no register access */ cd 559 drivers/misc/genwqe/card_base.c genwqe_device_remove(cd); /* device removed, procs killed */ cd 560 drivers/misc/genwqe/card_base.c genwqe_release_service_layer(cd); /* here genwqe_thread is stopped */ cd 562 drivers/misc/genwqe/card_base.c if (genwqe_is_privileged(cd)) { cd 563 drivers/misc/genwqe/card_base.c pci_disable_sriov(cd->pci_dev); /* access pci config space */ cd 564 drivers/misc/genwqe/card_base.c genwqe_ffdc_buffs_free(cd); cd 580 drivers/misc/genwqe/card_base.c static int genwqe_recover_card(struct genwqe_dev *cd, int fatal_err) cd 583 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 585 drivers/misc/genwqe/card_base.c genwqe_stop(cd); cd 592 drivers/misc/genwqe/card_base.c cd->softreset = 0x70ull; cd 593 drivers/misc/genwqe/card_base.c __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, cd->softreset); cd 596 drivers/misc/genwqe/card_base.c rc = genwqe_bus_reset(cd); cd 603 drivers/misc/genwqe/card_base.c rc = genwqe_start(cd); cd 612 drivers/misc/genwqe/card_base.c static int genwqe_health_check_cond(struct genwqe_dev *cd, u64 *gfir) cd 614 drivers/misc/genwqe/card_base.c *gfir = __genwqe_readq(cd, IO_SLC_CFGREG_GFIR); cd 616 drivers/misc/genwqe/card_base.c genwqe_recovery_on_fatal_gfir_required(cd); cd 628 drivers/misc/genwqe/card_base.c static u64 genwqe_fir_checking(struct genwqe_dev *cd) cd 633 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 643 drivers/misc/genwqe/card_base.c gfir = __genwqe_readq(cd, IO_SLC_CFGREG_GFIR); cd 665 drivers/misc/genwqe/card_base.c fir = __genwqe_readq(cd, fir_addr); cd 675 drivers/misc/genwqe/card_base.c fec = __genwqe_readq(cd, fec_addr); cd 688 drivers/misc/genwqe/card_base.c sfir = __genwqe_readq(cd, sfir_addr); cd 696 drivers/misc/genwqe/card_base.c sfec = __genwqe_readq(cd, sfec_addr); cd 703 drivers/misc/genwqe/card_base.c gfir = __genwqe_readq(cd, IO_SLC_CFGREG_GFIR); cd 719 drivers/misc/genwqe/card_base.c __genwqe_writeq(cd, sfir_addr, sfir); cd 736 drivers/misc/genwqe/card_base.c __genwqe_writeq(cd, fir_clr_addr, mask); cd 744 drivers/misc/genwqe/card_base.c gfir = __genwqe_readq(cd, IO_SLC_CFGREG_GFIR); cd 795 drivers/misc/genwqe/card_base.c static int genwqe_platform_recovery(struct genwqe_dev *cd) cd 797 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 804 drivers/misc/genwqe/card_base.c cd->err_inject &= ~(GENWQE_INJECT_HARDWARE_FAILURE | cd 808 drivers/misc/genwqe/card_base.c genwqe_stop(cd); cd 813 drivers/misc/genwqe/card_base.c rc = genwqe_start(cd); cd 837 drivers/misc/genwqe/card_base.c static int genwqe_reload_bistream(struct genwqe_dev *cd) cd 839 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 846 drivers/misc/genwqe/card_base.c genwqe_stop(cd); cd 852 drivers/misc/genwqe/card_base.c __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, cd 853 drivers/misc/genwqe/card_base.c (cd->softreset & 0xcull) | 0x70ull); cd 868 drivers/misc/genwqe/card_base.c rc = genwqe_start(cd); cd 903 drivers/misc/genwqe/card_base.c struct genwqe_dev *cd = data; cd 904 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 909 drivers/misc/genwqe/card_base.c rc = wait_event_interruptible_timeout(cd->health_waitq, cd 910 drivers/misc/genwqe/card_base.c (genwqe_health_check_cond(cd, &gfir) || cd 923 drivers/misc/genwqe/card_base.c slu_unitcfg = __genwqe_readq(cd, IO_SLU_UNITCFG); cd 931 drivers/misc/genwqe/card_base.c app_unitcfg = __genwqe_readq(cd, IO_APP_UNITCFG); cd 939 drivers/misc/genwqe/card_base.c gfir = __genwqe_readq(cd, IO_SLC_CFGREG_GFIR); cd 948 drivers/misc/genwqe/card_base.c gfir_masked = genwqe_fir_checking(cd); cd 956 drivers/misc/genwqe/card_base.c if ((gfir_masked) && !cd->skip_recovery && cd 957 drivers/misc/genwqe/card_base.c genwqe_recovery_on_fatal_gfir_required(cd)) { cd 959 drivers/misc/genwqe/card_base.c cd->card_state = GENWQE_CARD_FATAL_ERROR; cd 961 drivers/misc/genwqe/card_base.c rc = genwqe_recover_card(cd, 0); cd 968 drivers/misc/genwqe/card_base.c if (cd->card_state == GENWQE_CARD_RELOAD_BITSTREAM) { cd 970 drivers/misc/genwqe/card_base.c rc = genwqe_reload_bistream(cd); cd 975 drivers/misc/genwqe/card_base.c cd->last_gfir = gfir; cd 982 drivers/misc/genwqe/card_base.c if (cd->use_platform_recovery) { cd 988 drivers/misc/genwqe/card_base.c readq(cd->mmio + IO_SLC_CFGREG_GFIR); cd 999 drivers/misc/genwqe/card_base.c rc = genwqe_platform_recovery(cd); cd 1008 drivers/misc/genwqe/card_base.c cd->card_state = GENWQE_CARD_FATAL_ERROR; cd 1009 drivers/misc/genwqe/card_base.c genwqe_stop(cd); cd 1018 drivers/misc/genwqe/card_base.c static int genwqe_health_check_start(struct genwqe_dev *cd) cd 1028 drivers/misc/genwqe/card_base.c cd->health_thread = kthread_run(genwqe_health_thread, cd, cd 1030 drivers/misc/genwqe/card_base.c cd->card_idx); cd 1031 drivers/misc/genwqe/card_base.c if (IS_ERR(cd->health_thread)) { cd 1032 drivers/misc/genwqe/card_base.c rc = PTR_ERR(cd->health_thread); cd 1033 drivers/misc/genwqe/card_base.c cd->health_thread = NULL; cd 1039 drivers/misc/genwqe/card_base.c static int genwqe_health_thread_running(struct genwqe_dev *cd) cd 1041 drivers/misc/genwqe/card_base.c return cd->health_thread != NULL; cd 1044 drivers/misc/genwqe/card_base.c static int genwqe_health_check_stop(struct genwqe_dev *cd) cd 1048 drivers/misc/genwqe/card_base.c if (!genwqe_health_thread_running(cd)) cd 1051 drivers/misc/genwqe/card_base.c rc = kthread_stop(cd->health_thread); cd 1052 drivers/misc/genwqe/card_base.c cd->health_thread = NULL; cd 1059 drivers/misc/genwqe/card_base.c static int genwqe_pci_setup(struct genwqe_dev *cd) cd 1062 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 1112 drivers/misc/genwqe/card_base.c cd->mmio_len = pci_resource_len(pci_dev, 0); cd 1113 drivers/misc/genwqe/card_base.c cd->mmio = pci_iomap(pci_dev, 0, 0); cd 1114 drivers/misc/genwqe/card_base.c if (cd->mmio == NULL) { cd 1121 drivers/misc/genwqe/card_base.c cd->num_vfs = pci_sriov_get_totalvfs(pci_dev); cd 1122 drivers/misc/genwqe/card_base.c if (cd->num_vfs < 0) cd 1123 drivers/misc/genwqe/card_base.c cd->num_vfs = 0; cd 1125 drivers/misc/genwqe/card_base.c err = genwqe_read_ids(cd); cd 1132 drivers/misc/genwqe/card_base.c pci_iounmap(pci_dev, cd->mmio); cd 1144 drivers/misc/genwqe/card_base.c static void genwqe_pci_remove(struct genwqe_dev *cd) cd 1146 drivers/misc/genwqe/card_base.c struct pci_dev *pci_dev = cd->pci_dev; cd 1148 drivers/misc/genwqe/card_base.c if (cd->mmio) cd 1149 drivers/misc/genwqe/card_base.c pci_iounmap(pci_dev, cd->mmio); cd 1167 drivers/misc/genwqe/card_base.c struct genwqe_dev *cd; cd 1171 drivers/misc/genwqe/card_base.c cd = genwqe_dev_alloc(); cd 1172 drivers/misc/genwqe/card_base.c if (IS_ERR(cd)) { cd 1174 drivers/misc/genwqe/card_base.c (int)PTR_ERR(cd)); cd 1175 drivers/misc/genwqe/card_base.c return PTR_ERR(cd); cd 1178 drivers/misc/genwqe/card_base.c dev_set_drvdata(&pci_dev->dev, cd); cd 1179 drivers/misc/genwqe/card_base.c cd->pci_dev = pci_dev; cd 1181 drivers/misc/genwqe/card_base.c err = genwqe_pci_setup(cd); cd 1188 drivers/misc/genwqe/card_base.c err = genwqe_start(cd); cd 1195 drivers/misc/genwqe/card_base.c if (genwqe_is_privileged(cd)) { cd 1196 drivers/misc/genwqe/card_base.c err = genwqe_health_check_start(cd); cd 1207 drivers/misc/genwqe/card_base.c genwqe_stop(cd); cd 1209 drivers/misc/genwqe/card_base.c genwqe_pci_remove(cd); cd 1211 drivers/misc/genwqe/card_base.c genwqe_dev_free(cd); cd 1222 drivers/misc/genwqe/card_base.c struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); cd 1224 drivers/misc/genwqe/card_base.c genwqe_health_check_stop(cd); cd 1231 drivers/misc/genwqe/card_base.c genwqe_stop(cd); cd 1232 drivers/misc/genwqe/card_base.c genwqe_pci_remove(cd); cd 1233 drivers/misc/genwqe/card_base.c genwqe_dev_free(cd); cd 1245 drivers/misc/genwqe/card_base.c struct genwqe_dev *cd; cd 1249 drivers/misc/genwqe/card_base.c cd = dev_get_drvdata(&pci_dev->dev); cd 1250 drivers/misc/genwqe/card_base.c if (cd == NULL) cd 1254 drivers/misc/genwqe/card_base.c genwqe_health_check_stop(cd); cd 1255 drivers/misc/genwqe/card_base.c genwqe_stop(cd); cd 1265 drivers/misc/genwqe/card_base.c genwqe_pci_remove(cd); cd 1273 drivers/misc/genwqe/card_base.c struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); cd 1275 drivers/misc/genwqe/card_base.c rc = genwqe_pci_setup(cd); cd 1293 drivers/misc/genwqe/card_base.c struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); cd 1295 drivers/misc/genwqe/card_base.c rc = genwqe_start(cd); cd 1297 drivers/misc/genwqe/card_base.c rc = genwqe_health_check_start(cd); cd 1311 drivers/misc/genwqe/card_base.c struct genwqe_dev *cd = dev_get_drvdata(&dev->dev); cd 1314 drivers/misc/genwqe/card_base.c genwqe_setup_vf_jtimer(cd); cd 368 drivers/misc/genwqe/card_base.h int genwqe_alloc_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, cd 371 drivers/misc/genwqe/card_base.h int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, cd 374 drivers/misc/genwqe/card_base.h int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl); cd 398 drivers/misc/genwqe/card_base.h struct genwqe_dev *cd; cd 413 drivers/misc/genwqe/card_base.h int genwqe_setup_service_layer(struct genwqe_dev *cd); /* for PF only */ cd 414 drivers/misc/genwqe/card_base.h int genwqe_finish_queue(struct genwqe_dev *cd); cd 415 drivers/misc/genwqe/card_base.h int genwqe_release_service_layer(struct genwqe_dev *cd); cd 424 drivers/misc/genwqe/card_base.h static inline int genwqe_get_slu_id(struct genwqe_dev *cd) cd 426 drivers/misc/genwqe/card_base.h return (int)((cd->slu_unitcfg >> 32) & 0xff); cd 429 drivers/misc/genwqe/card_base.h int genwqe_ddcbs_in_flight(struct genwqe_dev *cd); cd 431 drivers/misc/genwqe/card_base.h u8 genwqe_card_type(struct genwqe_dev *cd); cd 432 drivers/misc/genwqe/card_base.h int genwqe_card_reset(struct genwqe_dev *cd); cd 433 drivers/misc/genwqe/card_base.h int genwqe_set_interrupt_capability(struct genwqe_dev *cd, int count); cd 434 drivers/misc/genwqe/card_base.h void genwqe_reset_interrupt_capability(struct genwqe_dev *cd); cd 436 drivers/misc/genwqe/card_base.h int genwqe_device_create(struct genwqe_dev *cd); cd 437 drivers/misc/genwqe/card_base.h int genwqe_device_remove(struct genwqe_dev *cd); cd 440 drivers/misc/genwqe/card_base.h void genwqe_init_debugfs(struct genwqe_dev *cd); cd 441 drivers/misc/genwqe/card_base.h void genqwe_exit_debugfs(struct genwqe_dev *cd); cd 443 drivers/misc/genwqe/card_base.h int genwqe_read_softreset(struct genwqe_dev *cd); cd 446 drivers/misc/genwqe/card_base.h int genwqe_recovery_on_fatal_gfir_required(struct genwqe_dev *cd); cd 447 drivers/misc/genwqe/card_base.h int genwqe_flash_readback_fails(struct genwqe_dev *cd); cd 456 drivers/misc/genwqe/card_base.h int genwqe_write_vreg(struct genwqe_dev *cd, u32 reg, u64 val, int func); cd 466 drivers/misc/genwqe/card_base.h u64 genwqe_read_vreg(struct genwqe_dev *cd, u32 reg, int func); cd 469 drivers/misc/genwqe/card_base.h int genwqe_ffdc_buff_size(struct genwqe_dev *cd, int unit_id); cd 470 drivers/misc/genwqe/card_base.h int genwqe_ffdc_buff_read(struct genwqe_dev *cd, int unit_id, cd 472 drivers/misc/genwqe/card_base.h int genwqe_read_ffdc_regs(struct genwqe_dev *cd, struct genwqe_reg *regs, cd 474 drivers/misc/genwqe/card_base.h int genwqe_ffdc_dump_dma(struct genwqe_dev *cd, cd 477 drivers/misc/genwqe/card_base.h int genwqe_init_debug_data(struct genwqe_dev *cd, cd 481 drivers/misc/genwqe/card_base.h int genwqe_read_app_id(struct genwqe_dev *cd, char *app_name, int len); cd 484 drivers/misc/genwqe/card_base.h int genwqe_user_vmap(struct genwqe_dev *cd, struct dma_mapping *m, cd 487 drivers/misc/genwqe/card_base.h int genwqe_user_vunmap(struct genwqe_dev *cd, struct dma_mapping *m); cd 505 drivers/misc/genwqe/card_base.h int __genwqe_execute_ddcb(struct genwqe_dev *cd, cd 517 drivers/misc/genwqe/card_base.h int __genwqe_execute_raw_ddcb(struct genwqe_dev *cd, cd 520 drivers/misc/genwqe/card_base.h int __genwqe_enqueue_ddcb(struct genwqe_dev *cd, cd 524 drivers/misc/genwqe/card_base.h int __genwqe_wait_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req); cd 525 drivers/misc/genwqe/card_base.h int __genwqe_purge_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req); cd 528 drivers/misc/genwqe/card_base.h int __genwqe_writeq(struct genwqe_dev *cd, u64 byte_offs, u64 val); cd 529 drivers/misc/genwqe/card_base.h u64 __genwqe_readq(struct genwqe_dev *cd, u64 byte_offs); cd 530 drivers/misc/genwqe/card_base.h int __genwqe_writel(struct genwqe_dev *cd, u64 byte_offs, u32 val); cd 531 drivers/misc/genwqe/card_base.h u32 __genwqe_readl(struct genwqe_dev *cd, u64 byte_offs); cd 533 drivers/misc/genwqe/card_base.h void *__genwqe_alloc_consistent(struct genwqe_dev *cd, size_t size, cd 535 drivers/misc/genwqe/card_base.h void __genwqe_free_consistent(struct genwqe_dev *cd, size_t size, cd 539 drivers/misc/genwqe/card_base.h int genwqe_base_clock_frequency(struct genwqe_dev *cd); cd 542 drivers/misc/genwqe/card_base.h void genwqe_stop_traps(struct genwqe_dev *cd); cd 543 drivers/misc/genwqe/card_base.h void genwqe_start_traps(struct genwqe_dev *cd); cd 546 drivers/misc/genwqe/card_base.h bool genwqe_need_err_masking(struct genwqe_dev *cd); cd 572 drivers/misc/genwqe/card_base.h static inline int genwqe_is_privileged(struct genwqe_dev *cd) cd 574 drivers/misc/genwqe/card_base.h return cd->is_privileged; cd 163 drivers/misc/genwqe/card_ddcb.c static void print_ddcb_info(struct genwqe_dev *cd, struct ddcb_queue *queue) cd 168 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 170 drivers/misc/genwqe/card_ddcb.c spin_lock_irqsave(&cd->print_lock, flags); cd 174 drivers/misc/genwqe/card_ddcb.c cd->card_idx, queue->ddcb_act, queue->ddcb_next); cd 190 drivers/misc/genwqe/card_ddcb.c spin_unlock_irqrestore(&cd->print_lock, flags); cd 241 drivers/misc/genwqe/card_ddcb.c static int ddcb_requ_finished(struct genwqe_dev *cd, struct ddcb_requ *req) cd 244 drivers/misc/genwqe/card_ddcb.c (cd->card_state != GENWQE_CARD_USED); cd 265 drivers/misc/genwqe/card_ddcb.c static int enqueue_ddcb(struct genwqe_dev *cd, struct ddcb_queue *queue, cd 312 drivers/misc/genwqe/card_ddcb.c __genwqe_writeq(cd, queue->IO_QUEUE_OFFSET, num); /* start queue */ cd 362 drivers/misc/genwqe/card_ddcb.c static int genwqe_check_ddcb_queue(struct genwqe_dev *cd, cd 367 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 407 drivers/misc/genwqe/card_ddcb.c errcnts = __genwqe_readq(cd, queue->IO_QUEUE_ERRCNTS); cd 408 drivers/misc/genwqe/card_ddcb.c status = __genwqe_readq(cd, queue->IO_QUEUE_STATUS); cd 474 drivers/misc/genwqe/card_ddcb.c int __genwqe_wait_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req) cd 479 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 493 drivers/misc/genwqe/card_ddcb.c ddcb_requ_finished(cd, req), cd 511 drivers/misc/genwqe/card_ddcb.c genwqe_check_ddcb_queue(cd, req->queue); cd 512 drivers/misc/genwqe/card_ddcb.c if (ddcb_requ_finished(cd, req)) cd 521 drivers/misc/genwqe/card_ddcb.c __genwqe_readq(cd, queue->IO_QUEUE_STATUS)); cd 526 drivers/misc/genwqe/card_ddcb.c print_ddcb_info(cd, req->queue); cd 544 drivers/misc/genwqe/card_ddcb.c if (cd->card_state != GENWQE_CARD_USED) { cd 562 drivers/misc/genwqe/card_ddcb.c static struct ddcb *get_next_ddcb(struct genwqe_dev *cd, cd 615 drivers/misc/genwqe/card_ddcb.c int __genwqe_purge_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req) cd 621 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 705 drivers/misc/genwqe/card_ddcb.c queue_status = __genwqe_readq(cd, queue->IO_QUEUE_STATUS); cd 715 drivers/misc/genwqe/card_ddcb.c print_ddcb_info(cd, req->queue); cd 720 drivers/misc/genwqe/card_ddcb.c int genwqe_init_debug_data(struct genwqe_dev *cd, struct genwqe_debug_data *d) cd 723 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 734 drivers/misc/genwqe/card_ddcb.c d->slu_unitcfg = cd->slu_unitcfg; cd 735 drivers/misc/genwqe/card_ddcb.c d->app_unitcfg = cd->app_unitcfg; cd 749 drivers/misc/genwqe/card_ddcb.c int __genwqe_enqueue_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req, cd 755 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 759 drivers/misc/genwqe/card_ddcb.c if (cd->card_state != GENWQE_CARD_USED) { cd 767 drivers/misc/genwqe/card_ddcb.c queue = req->queue = &cd->queue; cd 773 drivers/misc/genwqe/card_ddcb.c genwqe_check_ddcb_queue(cd, queue); cd 782 drivers/misc/genwqe/card_ddcb.c pddcb = get_next_ddcb(cd, queue, &req->num); /* get ptr and num */ cd 827 drivers/misc/genwqe/card_ddcb.c if ((cd->slu_unitcfg & 0xFFFF0ull) > 0x34199ull) cd 850 drivers/misc/genwqe/card_ddcb.c if (genwqe_get_slu_id(cd) <= 0x2) { cd 882 drivers/misc/genwqe/card_ddcb.c genwqe_init_debug_data(cd, &req->debug_data); cd 887 drivers/misc/genwqe/card_ddcb.c enqueue_ddcb(cd, queue, pddcb, req->num); cd 895 drivers/misc/genwqe/card_ddcb.c wake_up_interruptible(&cd->queue_waitq); cd 906 drivers/misc/genwqe/card_ddcb.c int __genwqe_execute_raw_ddcb(struct genwqe_dev *cd, cd 911 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 924 drivers/misc/genwqe/card_ddcb.c rc = __genwqe_enqueue_ddcb(cd, req, f_flags); cd 928 drivers/misc/genwqe/card_ddcb.c rc = __genwqe_wait_ddcb(cd, req); cd 954 drivers/misc/genwqe/card_ddcb.c __genwqe_purge_ddcb(cd, req); cd 971 drivers/misc/genwqe/card_ddcb.c static int genwqe_next_ddcb_ready(struct genwqe_dev *cd) cd 975 drivers/misc/genwqe/card_ddcb.c struct ddcb_queue *queue = &cd->queue; cd 1001 drivers/misc/genwqe/card_ddcb.c int genwqe_ddcbs_in_flight(struct genwqe_dev *cd) cd 1005 drivers/misc/genwqe/card_ddcb.c struct ddcb_queue *queue = &cd->queue; cd 1014 drivers/misc/genwqe/card_ddcb.c static int setup_ddcb_queue(struct genwqe_dev *cd, struct ddcb_queue *queue) cd 1020 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 1035 drivers/misc/genwqe/card_ddcb.c queue->ddcb_vaddr = __genwqe_alloc_consistent(cd, queue_size, cd 1073 drivers/misc/genwqe/card_ddcb.c __genwqe_writeq(cd, queue->IO_QUEUE_CONFIG, 0x07); /* iCRC/vCRC */ cd 1074 drivers/misc/genwqe/card_ddcb.c __genwqe_writeq(cd, queue->IO_QUEUE_SEGMENT, queue->ddcb_daddr); cd 1075 drivers/misc/genwqe/card_ddcb.c __genwqe_writeq(cd, queue->IO_QUEUE_INITSQN, queue->ddcb_seq); cd 1076 drivers/misc/genwqe/card_ddcb.c __genwqe_writeq(cd, queue->IO_QUEUE_WRAP, val64); cd 1083 drivers/misc/genwqe/card_ddcb.c __genwqe_free_consistent(cd, queue_size, queue->ddcb_vaddr, cd 1096 drivers/misc/genwqe/card_ddcb.c static void free_ddcb_queue(struct genwqe_dev *cd, struct ddcb_queue *queue) cd 1106 drivers/misc/genwqe/card_ddcb.c __genwqe_free_consistent(cd, queue_size, queue->ddcb_vaddr, cd 1116 drivers/misc/genwqe/card_ddcb.c struct genwqe_dev *cd = (struct genwqe_dev *)dev_id; cd 1117 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 1123 drivers/misc/genwqe/card_ddcb.c cd->irqs_processed++; cd 1124 drivers/misc/genwqe/card_ddcb.c wake_up_interruptible(&cd->queue_waitq); cd 1130 drivers/misc/genwqe/card_ddcb.c gfir = __genwqe_readq(cd, IO_SLC_CFGREG_GFIR); cd 1134 drivers/misc/genwqe/card_ddcb.c if (cd->use_platform_recovery) { cd 1140 drivers/misc/genwqe/card_ddcb.c readq(cd->mmio + IO_SLC_CFGREG_GFIR); cd 1147 drivers/misc/genwqe/card_ddcb.c wake_up_interruptible(&cd->health_waitq); cd 1164 drivers/misc/genwqe/card_ddcb.c struct genwqe_dev *cd = (struct genwqe_dev *)dev_id; cd 1166 drivers/misc/genwqe/card_ddcb.c cd->irqs_processed++; cd 1167 drivers/misc/genwqe/card_ddcb.c wake_up_interruptible(&cd->queue_waitq); cd 1183 drivers/misc/genwqe/card_ddcb.c struct genwqe_dev *cd = (struct genwqe_dev *)data; cd 1187 drivers/misc/genwqe/card_ddcb.c genwqe_check_ddcb_queue(cd, &cd->queue); cd 1191 drivers/misc/genwqe/card_ddcb.c cd->queue_waitq, cd 1192 drivers/misc/genwqe/card_ddcb.c genwqe_ddcbs_in_flight(cd) || cd 1196 drivers/misc/genwqe/card_ddcb.c cd->queue_waitq, cd 1197 drivers/misc/genwqe/card_ddcb.c genwqe_next_ddcb_ready(cd) || cd 1220 drivers/misc/genwqe/card_ddcb.c int genwqe_setup_service_layer(struct genwqe_dev *cd) cd 1224 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 1226 drivers/misc/genwqe/card_ddcb.c if (genwqe_is_privileged(cd)) { cd 1227 drivers/misc/genwqe/card_ddcb.c rc = genwqe_card_reset(cd); cd 1233 drivers/misc/genwqe/card_ddcb.c genwqe_read_softreset(cd); cd 1236 drivers/misc/genwqe/card_ddcb.c queue = &cd->queue; cd 1247 drivers/misc/genwqe/card_ddcb.c rc = setup_ddcb_queue(cd, queue); cd 1253 drivers/misc/genwqe/card_ddcb.c init_waitqueue_head(&cd->queue_waitq); cd 1254 drivers/misc/genwqe/card_ddcb.c cd->card_thread = kthread_run(genwqe_card_thread, cd, cd 1256 drivers/misc/genwqe/card_ddcb.c cd->card_idx); cd 1257 drivers/misc/genwqe/card_ddcb.c if (IS_ERR(cd->card_thread)) { cd 1258 drivers/misc/genwqe/card_ddcb.c rc = PTR_ERR(cd->card_thread); cd 1259 drivers/misc/genwqe/card_ddcb.c cd->card_thread = NULL; cd 1263 drivers/misc/genwqe/card_ddcb.c rc = genwqe_set_interrupt_capability(cd, GENWQE_MSI_IRQS); cd 1272 drivers/misc/genwqe/card_ddcb.c init_waitqueue_head(&cd->health_waitq); cd 1274 drivers/misc/genwqe/card_ddcb.c if (genwqe_is_privileged(cd)) { cd 1276 drivers/misc/genwqe/card_ddcb.c GENWQE_DEVNAME, cd); cd 1279 drivers/misc/genwqe/card_ddcb.c GENWQE_DEVNAME, cd); cd 1286 drivers/misc/genwqe/card_ddcb.c cd->card_state = GENWQE_CARD_USED; cd 1290 drivers/misc/genwqe/card_ddcb.c genwqe_reset_interrupt_capability(cd); cd 1292 drivers/misc/genwqe/card_ddcb.c kthread_stop(cd->card_thread); cd 1293 drivers/misc/genwqe/card_ddcb.c cd->card_thread = NULL; cd 1295 drivers/misc/genwqe/card_ddcb.c free_ddcb_queue(cd, queue); cd 1307 drivers/misc/genwqe/card_ddcb.c static int queue_wake_up_all(struct genwqe_dev *cd) cd 1311 drivers/misc/genwqe/card_ddcb.c struct ddcb_queue *queue = &cd->queue; cd 1332 drivers/misc/genwqe/card_ddcb.c int genwqe_finish_queue(struct genwqe_dev *cd) cd 1336 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 1337 drivers/misc/genwqe/card_ddcb.c struct ddcb_queue *queue = &cd->queue; cd 1343 drivers/misc/genwqe/card_ddcb.c if (cd->card_state == GENWQE_CARD_USED) cd 1344 drivers/misc/genwqe/card_ddcb.c cd->card_state = GENWQE_CARD_UNUSED; cd 1348 drivers/misc/genwqe/card_ddcb.c queue_wake_up_all(cd); cd 1352 drivers/misc/genwqe/card_ddcb.c in_flight = genwqe_ddcbs_in_flight(cd); cd 1384 drivers/misc/genwqe/card_ddcb.c int genwqe_release_service_layer(struct genwqe_dev *cd) cd 1386 drivers/misc/genwqe/card_ddcb.c struct pci_dev *pci_dev = cd->pci_dev; cd 1388 drivers/misc/genwqe/card_ddcb.c if (!ddcb_queue_initialized(&cd->queue)) cd 1391 drivers/misc/genwqe/card_ddcb.c free_irq(pci_dev->irq, cd); cd 1392 drivers/misc/genwqe/card_ddcb.c genwqe_reset_interrupt_capability(cd); cd 1394 drivers/misc/genwqe/card_ddcb.c if (cd->card_thread != NULL) { cd 1395 drivers/misc/genwqe/card_ddcb.c kthread_stop(cd->card_thread); cd 1396 drivers/misc/genwqe/card_ddcb.c cd->card_thread = NULL; cd 1399 drivers/misc/genwqe/card_ddcb.c free_ddcb_queue(cd, &cd->queue); cd 45 drivers/misc/genwqe/card_debugfs.c struct genwqe_dev *cd = s->private; cd 49 drivers/misc/genwqe/card_debugfs.c entries = genwqe_ffdc_buff_size(cd, uid); cd 60 drivers/misc/genwqe/card_debugfs.c genwqe_stop_traps(cd); /* halt the traps while dumping data */ cd 61 drivers/misc/genwqe/card_debugfs.c genwqe_ffdc_buff_read(cd, uid, regs, entries); cd 62 drivers/misc/genwqe/card_debugfs.c genwqe_start_traps(cd); cd 92 drivers/misc/genwqe/card_debugfs.c struct genwqe_dev *cd = s->private; cd 94 drivers/misc/genwqe/card_debugfs.c dbg_uidn_show(s, cd->ffdc[uid].regs, cd->ffdc[uid].entries); cd 121 drivers/misc/genwqe/card_debugfs.c struct genwqe_dev *cd = s->private; cd 129 drivers/misc/genwqe/card_debugfs.c genwqe_stop_traps(cd); cd 130 drivers/misc/genwqe/card_debugfs.c genwqe_read_ffdc_regs(cd, regs, GENWQE_FFDC_REGS, 1); cd 131 drivers/misc/genwqe/card_debugfs.c genwqe_start_traps(cd); cd 150 drivers/misc/genwqe/card_debugfs.c struct genwqe_dev *cd = s->private; cd 152 drivers/misc/genwqe/card_debugfs.c struct genwqe_reg *regs = cd->ffdc[GENWQE_DBG_REGS].regs; cd 174 drivers/misc/genwqe/card_debugfs.c struct genwqe_dev *cd = s->private; cd 178 drivers/misc/genwqe/card_debugfs.c jtimer = genwqe_read_vreg(cd, IO_SLC_VF_APPJOB_TIMEOUT, 0); cd 182 drivers/misc/genwqe/card_debugfs.c for (vf_num = 0; vf_num < cd->num_vfs; vf_num++) { cd 183 drivers/misc/genwqe/card_debugfs.c jtimer = genwqe_read_vreg(cd, IO_SLC_VF_APPJOB_TIMEOUT, cd 186 drivers/misc/genwqe/card_debugfs.c cd->vf_jobtimeout_msec[vf_num]); cd 195 drivers/misc/genwqe/card_debugfs.c struct genwqe_dev *cd = s->private; cd 199 drivers/misc/genwqe/card_debugfs.c t = genwqe_read_vreg(cd, IO_SLC_VF_QUEUE_WTIME, 0); cd 202 drivers/misc/genwqe/card_debugfs.c for (vf_num = 0; vf_num < cd->num_vfs; vf_num++) { cd 203 drivers/misc/genwqe/card_debugfs.c t = genwqe_read_vreg(cd, IO_SLC_VF_QUEUE_WTIME, vf_num + 1); cd 213 drivers/misc/genwqe/card_debugfs.c struct genwqe_dev *cd = s->private; cd 218 drivers/misc/genwqe/card_debugfs.c queue = &cd->queue; cd 235 drivers/misc/genwqe/card_debugfs.c cd->irqs_processed); cd 248 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_CONFIG), cd 250 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_STATUS), cd 252 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_SEGMENT), cd 254 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_INITSQN), cd 256 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_WRAP), cd 258 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_OFFSET), cd 260 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_WTIME), cd 262 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_ERRCNTS), cd 264 drivers/misc/genwqe/card_debugfs.c __genwqe_readq(cd, queue->IO_QUEUE_LRW)); cd 286 drivers/misc/genwqe/card_debugfs.c struct genwqe_dev *cd = s->private; cd 288 drivers/misc/genwqe/card_debugfs.c struct pci_dev *pci_dev = cd->pci_dev; cd 290 drivers/misc/genwqe/card_debugfs.c slu_id = __genwqe_readq(cd, IO_SLU_UNITCFG); cd 291 drivers/misc/genwqe/card_debugfs.c app_id = __genwqe_readq(cd, IO_APP_UNITCFG); cd 293 drivers/misc/genwqe/card_debugfs.c if (genwqe_is_privileged(cd)) cd 294 drivers/misc/genwqe/card_debugfs.c bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM); cd 304 drivers/misc/genwqe/card_debugfs.c genwqe_is_privileged(cd) ? cd 306 drivers/misc/genwqe/card_debugfs.c cd->card_idx, slu_id, app_id, cd 310 drivers/misc/genwqe/card_debugfs.c genwqe_base_clock_frequency(cd), cd 319 drivers/misc/genwqe/card_debugfs.c void genwqe_init_debugfs(struct genwqe_dev *cd) cd 326 drivers/misc/genwqe/card_debugfs.c sprintf(card_name, "%s%d_card", GENWQE_DEVNAME, cd->card_idx); cd 328 drivers/misc/genwqe/card_debugfs.c root = debugfs_create_dir(card_name, cd->debugfs_genwqe); cd 331 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("ddcb_info", S_IRUGO, root, cd, &ddcb_info_fops); cd 332 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("info", S_IRUGO, root, cd, &info_fops); cd 333 drivers/misc/genwqe/card_debugfs.c debugfs_create_x64("err_inject", 0666, root, &cd->err_inject); cd 335 drivers/misc/genwqe/card_debugfs.c &cd->ddcb_software_timeout); cd 336 drivers/misc/genwqe/card_debugfs.c debugfs_create_u32("kill_timeout", 0666, root, &cd->kill_timeout); cd 339 drivers/misc/genwqe/card_debugfs.c if (!genwqe_is_privileged(cd)) { cd 340 drivers/misc/genwqe/card_debugfs.c cd->debugfs_root = root; cd 344 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("curr_regs", S_IRUGO, root, cd, &curr_regs_fops); cd 345 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("curr_dbg_uid0", S_IRUGO, root, cd, cd 347 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("curr_dbg_uid1", S_IRUGO, root, cd, cd 349 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("curr_dbg_uid2", S_IRUGO, root, cd, cd 351 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("prev_regs", S_IRUGO, root, cd, &prev_regs_fops); cd 352 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("prev_dbg_uid0", S_IRUGO, root, cd, cd 354 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("prev_dbg_uid1", S_IRUGO, root, cd, cd 356 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("prev_dbg_uid2", S_IRUGO, root, cd, cd 362 drivers/misc/genwqe/card_debugfs.c &cd->vf_jobtimeout_msec[i]); cd 365 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("jobtimer", S_IRUGO, root, cd, &jtimer_fops); cd 366 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("queue_working_time", S_IRUGO, root, cd, cd 368 drivers/misc/genwqe/card_debugfs.c debugfs_create_u32("skip_recovery", 0666, root, &cd->skip_recovery); cd 370 drivers/misc/genwqe/card_debugfs.c &cd->use_platform_recovery); cd 372 drivers/misc/genwqe/card_debugfs.c cd->debugfs_root = root; cd 375 drivers/misc/genwqe/card_debugfs.c void genqwe_exit_debugfs(struct genwqe_dev *cd) cd 377 drivers/misc/genwqe/card_debugfs.c debugfs_remove_recursive(cd->debugfs_root); cd 32 drivers/misc/genwqe/card_dev.c static int genwqe_open_files(struct genwqe_dev *cd) cd 37 drivers/misc/genwqe/card_dev.c spin_lock_irqsave(&cd->file_lock, flags); cd 38 drivers/misc/genwqe/card_dev.c rc = list_empty(&cd->file_list); cd 39 drivers/misc/genwqe/card_dev.c spin_unlock_irqrestore(&cd->file_lock, flags); cd 43 drivers/misc/genwqe/card_dev.c static void genwqe_add_file(struct genwqe_dev *cd, struct genwqe_file *cfile) cd 48 drivers/misc/genwqe/card_dev.c spin_lock_irqsave(&cd->file_lock, flags); cd 49 drivers/misc/genwqe/card_dev.c list_add(&cfile->list, &cd->file_list); cd 50 drivers/misc/genwqe/card_dev.c spin_unlock_irqrestore(&cd->file_lock, flags); cd 53 drivers/misc/genwqe/card_dev.c static int genwqe_del_file(struct genwqe_dev *cd, struct genwqe_file *cfile) cd 57 drivers/misc/genwqe/card_dev.c spin_lock_irqsave(&cd->file_lock, flags); cd 59 drivers/misc/genwqe/card_dev.c spin_unlock_irqrestore(&cd->file_lock, flags); cd 157 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cfile->cd->pci_dev; cd 193 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 194 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cfile->cd->pci_dev; cd 216 drivers/misc/genwqe/card_dev.c __genwqe_free_consistent(cd, dma_map->size, cd 222 drivers/misc/genwqe/card_dev.c genwqe_user_vunmap(cd, dma_map); cd 231 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 245 drivers/misc/genwqe/card_dev.c genwqe_user_vunmap(cd, dma_map); cd 255 drivers/misc/genwqe/card_dev.c static int genwqe_kill_fasync(struct genwqe_dev *cd, int sig) cd 261 drivers/misc/genwqe/card_dev.c spin_lock_irqsave(&cd->file_lock, flags); cd 262 drivers/misc/genwqe/card_dev.c list_for_each_entry(cfile, &cd->file_list, list) { cd 267 drivers/misc/genwqe/card_dev.c spin_unlock_irqrestore(&cd->file_lock, flags); cd 271 drivers/misc/genwqe/card_dev.c static int genwqe_terminate(struct genwqe_dev *cd) cd 277 drivers/misc/genwqe/card_dev.c spin_lock_irqsave(&cd->file_lock, flags); cd 278 drivers/misc/genwqe/card_dev.c list_for_each_entry(cfile, &cd->file_list, list) { cd 282 drivers/misc/genwqe/card_dev.c spin_unlock_irqrestore(&cd->file_lock, flags); cd 298 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd; cd 305 drivers/misc/genwqe/card_dev.c cd = container_of(inode->i_cdev, struct genwqe_dev, cdev_genwqe); cd 306 drivers/misc/genwqe/card_dev.c cfile->cd = cd; cd 318 drivers/misc/genwqe/card_dev.c genwqe_add_file(cd, cfile); cd 357 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 371 drivers/misc/genwqe/card_dev.c genwqe_del_file(cd, cfile); cd 391 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = container_of(inode->i_cdev, struct genwqe_dev, cd 393 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cd->pci_dev; cd 407 drivers/misc/genwqe/card_dev.c __genwqe_free_consistent(cd, dma_map->size, dma_map->k_vaddr, cd 434 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 451 drivers/misc/genwqe/card_dev.c dma_map->k_vaddr = __genwqe_alloc_consistent(cd, vsize, cd 479 drivers/misc/genwqe/card_dev.c __genwqe_free_consistent(cd, dma_map->size, cd 509 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 511 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cd->pci_dev; cd 535 drivers/misc/genwqe/card_dev.c xbuf = __genwqe_alloc_consistent(cd, FLASH_BLOCK, &dma_addr); cd 572 drivers/misc/genwqe/card_dev.c if (genwqe_get_slu_id(cd) <= 0x2) { cd 605 drivers/misc/genwqe/card_dev.c rc = __genwqe_execute_raw_ddcb(cd, req, filp->f_flags); cd 630 drivers/misc/genwqe/card_dev.c __genwqe_free_consistent(cd, FLASH_BLOCK, xbuf, dma_addr); cd 644 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 646 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cd->pci_dev; cd 671 drivers/misc/genwqe/card_dev.c xbuf = __genwqe_alloc_consistent(cd, FLASH_BLOCK, &dma_addr); cd 698 drivers/misc/genwqe/card_dev.c if (genwqe_get_slu_id(cd) <= 0x2) { cd 723 drivers/misc/genwqe/card_dev.c rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); cd 760 drivers/misc/genwqe/card_dev.c __genwqe_free_consistent(cd, FLASH_BLOCK, xbuf, dma_addr); cd 767 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 768 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cfile->cd->pci_dev; cd 786 drivers/misc/genwqe/card_dev.c rc = genwqe_user_vmap(cd, dma_map, (void *)map_addr, map_size); cd 800 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 816 drivers/misc/genwqe/card_dev.c genwqe_user_vunmap(cd, dma_map); cd 830 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 837 drivers/misc/genwqe/card_dev.c genwqe_user_vunmap(cd, dma_map); cd 840 drivers/misc/genwqe/card_dev.c genwqe_free_sync_sgl(cd, &req->sgls[i]); cd 857 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 939 drivers/misc/genwqe/card_dev.c rc = genwqe_user_vmap(cd, m, (void *)u_addr, cd 949 drivers/misc/genwqe/card_dev.c rc = genwqe_alloc_sync_sgl(cd, &req->sgls[i], cd 955 drivers/misc/genwqe/card_dev.c genwqe_setup_sgl(cd, &req->sgls[i], cd 986 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 994 drivers/misc/genwqe/card_dev.c rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); cd 1004 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 1019 drivers/misc/genwqe/card_dev.c rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); cd 1046 drivers/misc/genwqe/card_dev.c struct genwqe_dev *cd = cfile->cd; cd 1047 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cd->pci_dev; cd 1062 drivers/misc/genwqe/card_dev.c put_user(cd->card_state, (enum genwqe_card_state __user *)arg); cd 1072 drivers/misc/genwqe/card_dev.c if ((reg_offs >= cd->mmio_len) || (reg_offs & 0x7)) cd 1075 drivers/misc/genwqe/card_dev.c val = __genwqe_readq(cd, reg_offs); cd 1092 drivers/misc/genwqe/card_dev.c if ((reg_offs >= cd->mmio_len) || (reg_offs & 0x7)) cd 1098 drivers/misc/genwqe/card_dev.c __genwqe_writeq(cd, reg_offs, val); cd 1108 drivers/misc/genwqe/card_dev.c if ((reg_offs >= cd->mmio_len) || (reg_offs & 0x3)) cd 1111 drivers/misc/genwqe/card_dev.c val = __genwqe_readl(cd, reg_offs); cd 1128 drivers/misc/genwqe/card_dev.c if ((reg_offs >= cd->mmio_len) || (reg_offs & 0x3)) cd 1134 drivers/misc/genwqe/card_dev.c __genwqe_writel(cd, reg_offs, val); cd 1142 drivers/misc/genwqe/card_dev.c if (!genwqe_is_privileged(cd)) cd 1163 drivers/misc/genwqe/card_dev.c if (!genwqe_is_privileged(cd)) cd 1166 drivers/misc/genwqe/card_dev.c if (genwqe_flash_readback_fails(cd)) cd 1249 drivers/misc/genwqe/card_dev.c static int genwqe_device_initialized(struct genwqe_dev *cd) cd 1251 drivers/misc/genwqe/card_dev.c return cd->dev != NULL; cd 1262 drivers/misc/genwqe/card_dev.c int genwqe_device_create(struct genwqe_dev *cd) cd 1265 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cd->pci_dev; cd 1273 drivers/misc/genwqe/card_dev.c rc = alloc_chrdev_region(&cd->devnum_genwqe, 0, cd 1280 drivers/misc/genwqe/card_dev.c cdev_init(&cd->cdev_genwqe, &genwqe_fops); cd 1281 drivers/misc/genwqe/card_dev.c cd->cdev_genwqe.owner = THIS_MODULE; cd 1283 drivers/misc/genwqe/card_dev.c rc = cdev_add(&cd->cdev_genwqe, cd->devnum_genwqe, 1); cd 1293 drivers/misc/genwqe/card_dev.c cd->dev = device_create_with_groups(cd->class_genwqe, cd 1294 drivers/misc/genwqe/card_dev.c &cd->pci_dev->dev, cd 1295 drivers/misc/genwqe/card_dev.c cd->devnum_genwqe, cd, cd 1298 drivers/misc/genwqe/card_dev.c cd->card_idx); cd 1299 drivers/misc/genwqe/card_dev.c if (IS_ERR(cd->dev)) { cd 1300 drivers/misc/genwqe/card_dev.c rc = PTR_ERR(cd->dev); cd 1304 drivers/misc/genwqe/card_dev.c genwqe_init_debugfs(cd); cd 1309 drivers/misc/genwqe/card_dev.c cdev_del(&cd->cdev_genwqe); cd 1311 drivers/misc/genwqe/card_dev.c unregister_chrdev_region(cd->devnum_genwqe, GENWQE_MAX_MINOR); cd 1313 drivers/misc/genwqe/card_dev.c cd->dev = NULL; cd 1317 drivers/misc/genwqe/card_dev.c static int genwqe_inform_and_stop_processes(struct genwqe_dev *cd) cd 1321 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cd->pci_dev; cd 1323 drivers/misc/genwqe/card_dev.c if (!genwqe_open_files(cd)) cd 1328 drivers/misc/genwqe/card_dev.c rc = genwqe_kill_fasync(cd, SIGIO); cd 1332 drivers/misc/genwqe/card_dev.c genwqe_open_files(cd); i++) { cd 1340 drivers/misc/genwqe/card_dev.c if (!genwqe_open_files(cd)) cd 1346 drivers/misc/genwqe/card_dev.c rc = genwqe_terminate(cd); cd 1350 drivers/misc/genwqe/card_dev.c genwqe_open_files(cd); i++) { cd 1370 drivers/misc/genwqe/card_dev.c int genwqe_device_remove(struct genwqe_dev *cd) cd 1373 drivers/misc/genwqe/card_dev.c struct pci_dev *pci_dev = cd->pci_dev; cd 1375 drivers/misc/genwqe/card_dev.c if (!genwqe_device_initialized(cd)) cd 1378 drivers/misc/genwqe/card_dev.c genwqe_inform_and_stop_processes(cd); cd 1386 drivers/misc/genwqe/card_dev.c rc = kref_read(&cd->cdev_genwqe.kobj.kref); cd 1393 drivers/misc/genwqe/card_dev.c genqwe_exit_debugfs(cd); cd 1394 drivers/misc/genwqe/card_dev.c device_destroy(cd->class_genwqe, cd->devnum_genwqe); cd 1395 drivers/misc/genwqe/card_dev.c cdev_del(&cd->cdev_genwqe); cd 1396 drivers/misc/genwqe/card_dev.c unregister_chrdev_region(cd->devnum_genwqe, GENWQE_MAX_MINOR); cd 1397 drivers/misc/genwqe/card_dev.c cd->dev = NULL; cd 42 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 45 drivers/misc/genwqe/card_sysfs.c return sprintf(buf, "%s\n", cs[cd->card_state]); cd 53 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 55 drivers/misc/genwqe/card_sysfs.c genwqe_read_app_id(cd, app_name, sizeof(app_name)); cd 64 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 66 drivers/misc/genwqe/card_sysfs.c slu_id = __genwqe_readq(cd, IO_SLU_UNITCFG); cd 67 drivers/misc/genwqe/card_sysfs.c app_id = __genwqe_readq(cd, IO_APP_UNITCFG); cd 77 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 79 drivers/misc/genwqe/card_sysfs.c card_type = genwqe_card_type(cd); cd 89 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 91 drivers/misc/genwqe/card_sysfs.c tempsens = __genwqe_readq(cd, IO_SLU_TEMPERATURE_SENSOR); cd 101 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 103 drivers/misc/genwqe/card_sysfs.c t = __genwqe_readq(cd, IO_SLC_FREE_RUNNING_TIMER); cd 113 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 115 drivers/misc/genwqe/card_sysfs.c t = __genwqe_readq(cd, IO_SLC_QUEUE_WTIME); cd 125 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 127 drivers/misc/genwqe/card_sysfs.c base_clock = genwqe_base_clock_frequency(cd); cd 152 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 154 drivers/misc/genwqe/card_sysfs.c curr_bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM) & 0x1; cd 168 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 170 drivers/misc/genwqe/card_sysfs.c switch ((cd->softreset & 0xc) >> 2) { cd 189 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 196 drivers/misc/genwqe/card_sysfs.c cd->softreset = 0x78; cd 199 drivers/misc/genwqe/card_sysfs.c cd->softreset = 0x7c; cd 205 drivers/misc/genwqe/card_sysfs.c __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, cd->softreset); cd 215 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 221 drivers/misc/genwqe/card_sysfs.c if (cd->card_state == GENWQE_CARD_UNUSED || cd 222 drivers/misc/genwqe/card_sysfs.c cd->card_state == GENWQE_CARD_USED) cd 223 drivers/misc/genwqe/card_sysfs.c cd->card_state = GENWQE_CARD_RELOAD_BITSTREAM; cd 274 drivers/misc/genwqe/card_sysfs.c struct genwqe_dev *cd = dev_get_drvdata(dev); cd 277 drivers/misc/genwqe/card_sysfs.c if (genwqe_is_privileged(cd)) cd 44 drivers/misc/genwqe/card_utils.c int __genwqe_writeq(struct genwqe_dev *cd, u64 byte_offs, u64 val) cd 46 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 48 drivers/misc/genwqe/card_utils.c if (cd->err_inject & GENWQE_INJECT_HARDWARE_FAILURE) cd 51 drivers/misc/genwqe/card_utils.c if (cd->mmio == NULL) cd 57 drivers/misc/genwqe/card_utils.c __raw_writeq((__force u64)cpu_to_be64(val), cd->mmio + byte_offs); cd 68 drivers/misc/genwqe/card_utils.c u64 __genwqe_readq(struct genwqe_dev *cd, u64 byte_offs) cd 70 drivers/misc/genwqe/card_utils.c if (cd->err_inject & GENWQE_INJECT_HARDWARE_FAILURE) cd 73 drivers/misc/genwqe/card_utils.c if ((cd->err_inject & GENWQE_INJECT_GFIR_FATAL) && cd 77 drivers/misc/genwqe/card_utils.c if ((cd->err_inject & GENWQE_INJECT_GFIR_INFO) && cd 81 drivers/misc/genwqe/card_utils.c if (cd->mmio == NULL) cd 84 drivers/misc/genwqe/card_utils.c return be64_to_cpu((__force __be64)__raw_readq(cd->mmio + byte_offs)); cd 95 drivers/misc/genwqe/card_utils.c int __genwqe_writel(struct genwqe_dev *cd, u64 byte_offs, u32 val) cd 97 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 99 drivers/misc/genwqe/card_utils.c if (cd->err_inject & GENWQE_INJECT_HARDWARE_FAILURE) cd 102 drivers/misc/genwqe/card_utils.c if (cd->mmio == NULL) cd 108 drivers/misc/genwqe/card_utils.c __raw_writel((__force u32)cpu_to_be32(val), cd->mmio + byte_offs); cd 119 drivers/misc/genwqe/card_utils.c u32 __genwqe_readl(struct genwqe_dev *cd, u64 byte_offs) cd 121 drivers/misc/genwqe/card_utils.c if (cd->err_inject & GENWQE_INJECT_HARDWARE_FAILURE) cd 124 drivers/misc/genwqe/card_utils.c if (cd->mmio == NULL) cd 127 drivers/misc/genwqe/card_utils.c return be32_to_cpu((__force __be32)__raw_readl(cd->mmio + byte_offs)); cd 135 drivers/misc/genwqe/card_utils.c int genwqe_read_app_id(struct genwqe_dev *cd, char *app_name, int len) cd 138 drivers/misc/genwqe/card_utils.c u32 app_id = (u32)cd->app_unitcfg; cd 207 drivers/misc/genwqe/card_utils.c void *__genwqe_alloc_consistent(struct genwqe_dev *cd, size_t size, cd 213 drivers/misc/genwqe/card_utils.c return dma_alloc_coherent(&cd->pci_dev->dev, size, dma_handle, cd 217 drivers/misc/genwqe/card_utils.c void __genwqe_free_consistent(struct genwqe_dev *cd, size_t size, cd 223 drivers/misc/genwqe/card_utils.c dma_free_coherent(&cd->pci_dev->dev, size, vaddr, dma_handle); cd 226 drivers/misc/genwqe/card_utils.c static void genwqe_unmap_pages(struct genwqe_dev *cd, dma_addr_t *dma_list, cd 230 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 239 drivers/misc/genwqe/card_utils.c static int genwqe_map_pages(struct genwqe_dev *cd, cd 244 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 268 drivers/misc/genwqe/card_utils.c genwqe_unmap_pages(cd, dma_list, num_pages); cd 288 drivers/misc/genwqe/card_utils.c int genwqe_alloc_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, cd 292 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 314 drivers/misc/genwqe/card_utils.c sgl->sgl = __genwqe_alloc_consistent(cd, sgl->sgl_size, cd 324 drivers/misc/genwqe/card_utils.c sgl->fpage = __genwqe_alloc_consistent(cd, PAGE_SIZE, cd 337 drivers/misc/genwqe/card_utils.c sgl->lpage = __genwqe_alloc_consistent(cd, PAGE_SIZE, cd 352 drivers/misc/genwqe/card_utils.c __genwqe_free_consistent(cd, PAGE_SIZE, sgl->lpage, cd 357 drivers/misc/genwqe/card_utils.c __genwqe_free_consistent(cd, PAGE_SIZE, sgl->fpage, cd 362 drivers/misc/genwqe/card_utils.c __genwqe_free_consistent(cd, sgl->sgl_size, sgl->sgl, cd 371 drivers/misc/genwqe/card_utils.c int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, cd 468 drivers/misc/genwqe/card_utils.c int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl) cd 473 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 486 drivers/misc/genwqe/card_utils.c __genwqe_free_consistent(cd, PAGE_SIZE, sgl->fpage, cd 503 drivers/misc/genwqe/card_utils.c __genwqe_free_consistent(cd, PAGE_SIZE, sgl->lpage, cd 508 drivers/misc/genwqe/card_utils.c __genwqe_free_consistent(cd, sgl->sgl_size, sgl->sgl, cd 564 drivers/misc/genwqe/card_utils.c int genwqe_user_vmap(struct genwqe_dev *cd, struct dma_mapping *m, void *uaddr, cd 569 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 614 drivers/misc/genwqe/card_utils.c rc = genwqe_map_pages(cd, m->page_list, m->nr_pages, m->dma_list); cd 639 drivers/misc/genwqe/card_utils.c int genwqe_user_vunmap(struct genwqe_dev *cd, struct dma_mapping *m) cd 641 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 650 drivers/misc/genwqe/card_utils.c genwqe_unmap_pages(cd, m->dma_list, m->nr_pages); cd 674 drivers/misc/genwqe/card_utils.c u8 genwqe_card_type(struct genwqe_dev *cd) cd 676 drivers/misc/genwqe/card_utils.c u64 card_type = cd->slu_unitcfg; cd 685 drivers/misc/genwqe/card_utils.c int genwqe_card_reset(struct genwqe_dev *cd) cd 688 drivers/misc/genwqe/card_utils.c struct pci_dev *pci_dev = cd->pci_dev; cd 690 drivers/misc/genwqe/card_utils.c if (!genwqe_is_privileged(cd)) cd 694 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, 0x1ull); cd 696 drivers/misc/genwqe/card_utils.c __genwqe_readq(cd, IO_HSU_FIR_CLR); cd 697 drivers/misc/genwqe/card_utils.c __genwqe_readq(cd, IO_APP_FIR_CLR); cd 698 drivers/misc/genwqe/card_utils.c __genwqe_readq(cd, IO_SLU_FIR_CLR); cd 708 drivers/misc/genwqe/card_utils.c softrst = __genwqe_readq(cd, IO_SLC_CFGREG_SOFTRESET) & 0x3cull; cd 709 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, softrst | 0x2ull); cd 714 drivers/misc/genwqe/card_utils.c if (genwqe_need_err_masking(cd)) { cd 717 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, IO_SLC_MISC_DEBUG, 0x0aull); cd 722 drivers/misc/genwqe/card_utils.c int genwqe_read_softreset(struct genwqe_dev *cd) cd 726 drivers/misc/genwqe/card_utils.c if (!genwqe_is_privileged(cd)) cd 729 drivers/misc/genwqe/card_utils.c bitstream = __genwqe_readq(cd, IO_SLU_BITSTREAM) & 0x1; cd 730 drivers/misc/genwqe/card_utils.c cd->softreset = (bitstream == 0) ? 0x8ull : 0xcull; cd 739 drivers/misc/genwqe/card_utils.c int genwqe_set_interrupt_capability(struct genwqe_dev *cd, int count) cd 743 drivers/misc/genwqe/card_utils.c rc = pci_alloc_irq_vectors(cd->pci_dev, 1, count, PCI_IRQ_MSI); cd 753 drivers/misc/genwqe/card_utils.c void genwqe_reset_interrupt_capability(struct genwqe_dev *cd) cd 755 drivers/misc/genwqe/card_utils.c pci_free_irq_vectors(cd->pci_dev); cd 768 drivers/misc/genwqe/card_utils.c static int set_reg_idx(struct genwqe_dev *cd, struct genwqe_reg *r, cd 782 drivers/misc/genwqe/card_utils.c static int set_reg(struct genwqe_dev *cd, struct genwqe_reg *r, cd 785 drivers/misc/genwqe/card_utils.c return set_reg_idx(cd, r, i, m, addr, 0, val); cd 788 drivers/misc/genwqe/card_utils.c int genwqe_read_ffdc_regs(struct genwqe_dev *cd, struct genwqe_reg *regs, cd 796 drivers/misc/genwqe/card_utils.c gfir = __genwqe_readq(cd, IO_SLC_CFGREG_GFIR); cd 797 drivers/misc/genwqe/card_utils.c set_reg(cd, regs, &idx, max_regs, IO_SLC_CFGREG_GFIR, gfir); cd 800 drivers/misc/genwqe/card_utils.c sluid = __genwqe_readq(cd, IO_SLU_UNITCFG); /* 0x00000000 */ cd 801 drivers/misc/genwqe/card_utils.c set_reg(cd, regs, &idx, max_regs, IO_SLU_UNITCFG, sluid); cd 804 drivers/misc/genwqe/card_utils.c appid = __genwqe_readq(cd, IO_APP_UNITCFG); /* 0x02000000 */ cd 805 drivers/misc/genwqe/card_utils.c set_reg(cd, regs, &idx, max_regs, IO_APP_UNITCFG, appid); cd 812 drivers/misc/genwqe/card_utils.c ufir = __genwqe_readq(cd, ufir_addr); cd 813 drivers/misc/genwqe/card_utils.c set_reg(cd, regs, &idx, max_regs, ufir_addr, ufir); cd 817 drivers/misc/genwqe/card_utils.c ufec = __genwqe_readq(cd, ufec_addr); cd 818 drivers/misc/genwqe/card_utils.c set_reg(cd, regs, &idx, max_regs, ufec_addr, ufec); cd 826 drivers/misc/genwqe/card_utils.c sfir = __genwqe_readq(cd, sfir_addr); cd 827 drivers/misc/genwqe/card_utils.c set_reg(cd, regs, &idx, max_regs, sfir_addr, sfir); cd 830 drivers/misc/genwqe/card_utils.c sfec = __genwqe_readq(cd, sfec_addr); cd 831 drivers/misc/genwqe/card_utils.c set_reg(cd, regs, &idx, max_regs, sfec_addr, sfec); cd 846 drivers/misc/genwqe/card_utils.c int genwqe_ffdc_buff_size(struct genwqe_dev *cd, int uid) cd 853 drivers/misc/genwqe/card_utils.c eevptr = __genwqe_readq(cd, eevptr_addr); cd 859 drivers/misc/genwqe/card_utils.c val = __genwqe_readq(cd, l_addr); cd 882 drivers/misc/genwqe/card_utils.c val = __genwqe_readq(cd, addr); cd 899 drivers/misc/genwqe/card_utils.c int genwqe_ffdc_buff_read(struct genwqe_dev *cd, int uid, cd 908 drivers/misc/genwqe/card_utils.c eevptr = __genwqe_readq(cd, eevptr_addr); cd 913 drivers/misc/genwqe/card_utils.c e = __genwqe_readq(cd, l_addr); cd 924 drivers/misc/genwqe/card_utils.c val = __genwqe_readq(cd, d_addr); cd 925 drivers/misc/genwqe/card_utils.c set_reg_idx(cd, regs, &idx, max_regs, cd 931 drivers/misc/genwqe/card_utils.c val = __genwqe_readq(cd, d_addr); cd 932 drivers/misc/genwqe/card_utils.c set_reg_idx(cd, regs, &idx, max_regs, cd 947 drivers/misc/genwqe/card_utils.c val = __genwqe_readq(cd, addr); cd 965 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, addr, diag_sel); cd 972 drivers/misc/genwqe/card_utils.c val = __genwqe_readq(cd, addr); cd 973 drivers/misc/genwqe/card_utils.c set_reg_idx(cd, regs, &idx, max_regs, addr, cd 987 drivers/misc/genwqe/card_utils.c int genwqe_write_vreg(struct genwqe_dev *cd, u32 reg, u64 val, int func) cd 989 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, IO_PF_SLC_VIRTUAL_WINDOW, func & 0xf); cd 990 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, reg, val); cd 1000 drivers/misc/genwqe/card_utils.c u64 genwqe_read_vreg(struct genwqe_dev *cd, u32 reg, int func) cd 1002 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, IO_PF_SLC_VIRTUAL_WINDOW, func & 0xf); cd 1003 drivers/misc/genwqe/card_utils.c return __genwqe_readq(cd, reg); cd 1018 drivers/misc/genwqe/card_utils.c int genwqe_base_clock_frequency(struct genwqe_dev *cd) cd 1023 drivers/misc/genwqe/card_utils.c speed = (u16)((cd->slu_unitcfg >> 28) & 0x0full); cd 1035 drivers/misc/genwqe/card_utils.c void genwqe_stop_traps(struct genwqe_dev *cd) cd 1037 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, IO_SLC_MISC_DEBUG_SET, 0xcull); cd 1045 drivers/misc/genwqe/card_utils.c void genwqe_start_traps(struct genwqe_dev *cd) cd 1047 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, IO_SLC_MISC_DEBUG_CLR, 0xcull); cd 1049 drivers/misc/genwqe/card_utils.c if (genwqe_need_err_masking(cd)) cd 1050 drivers/misc/genwqe/card_utils.c __genwqe_writeq(cd, IO_SLC_MISC_DEBUG, 0x0aull); cd 1114 drivers/mmc/host/rtsx_pci_sdmmc.c int cd = 0; cd 1118 drivers/mmc/host/rtsx_pci_sdmmc.c return cd; cd 1128 drivers/mmc/host/rtsx_pci_sdmmc.c cd = 1; cd 1132 drivers/mmc/host/rtsx_pci_sdmmc.c return cd; cd 720 drivers/mmc/host/wmt-sdmmc.c u32 cd = (readb(priv->sdmmc_base + SDMMC_STS0) & STS0_CD_GPI) >> 3; cd 722 drivers/mmc/host/wmt-sdmmc.c return !(cd ^ priv->cd_inverted); cd 142 drivers/mtd/nand/raw/diskonchip.c struct rs_codec *cd = rs->codec; cd 163 drivers/mtd/nand/raw/diskonchip.c tmp = cd->index_of[ds[j]]; cd 165 drivers/mtd/nand/raw/diskonchip.c s[i] ^= cd->alpha_to[rs_modnn(cd, tmp + (FCR + i) * j)]; cd 171 drivers/mtd/nand/raw/diskonchip.c syn[i] = rs_modnn(cd, cd->index_of[s[i]] + (NN - FCR - i)); cd 29 drivers/net/bonding/bond_sysfs.c #define to_bond(cd) ((struct bonding *)(netdev_priv(to_net_dev(cd)))) cd 301 drivers/net/dsa/dsa_loop.c pdata->cd.netdev[DSA_LOOP_CPU_PORT] = &ps->netdev->dev; cd 11 drivers/net/dsa/dsa_loop.h struct dsa_chip_data cd; cd 10 drivers/net/dsa/dsa_loop_bdinfo.c .cd = { cd 5058 drivers/net/dsa/mv88e6xxx/chip.c if (strcmp(pdata->cd.port_names[port], "cpu")) cd 5060 drivers/net/dsa/mv88e6xxx/chip.c pdata->cd.netdev[port] = &pdata->netdev->dev; cd 505 drivers/net/ethernet/8390/etherh.c struct in_chunk_dir cd; cd 508 drivers/net/ethernet/8390/etherh.c if (!ecard_readchunk(&cd, ec, 0xf5, 0)) { cd 514 drivers/net/ethernet/8390/etherh.c s = strchr(cd.d.string, '('); cd 529 drivers/net/ethernet/8390/etherh.c dev_name(&ec->dev), cd.d.string); cd 91 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 107 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 145 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 163 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_send_cmd(pi->hw, &desc, pcaps, pcaps_size, cd); cd 264 drivers/net/ethernet/intel/ice/ice_common.c struct ice_link_status *link, struct ice_sq_cd *cd) cd 291 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_send_cmd(hw, &desc, &link_data, sizeof(link_data), cd); cd 1262 drivers/net/ethernet/intel/ice/ice_common.c u16 buf_size, struct ice_sq_cd *cd) cd 1291 drivers/net/ethernet/intel/ice/ice_common.c status = ice_sq_send_cmd(hw, &hw->adminq, desc, buf, buf_size, cd); cd 1305 drivers/net/ethernet/intel/ice/ice_common.c enum ice_status ice_aq_get_fw_ver(struct ice_hw *hw, struct ice_sq_cd *cd) cd 1315 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 1342 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 1366 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, dv->driver_string, len, cd); cd 1421 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 1437 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 1489 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 1501 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 1786 drivers/net/ethernet/intel/ice/ice_common.c enum ice_adminq_opc opc, struct ice_sq_cd *cd) cd 1800 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 1951 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 1965 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 2187 drivers/net/ethernet/intel/ice/ice_common.c struct ice_aqc_set_phy_cfg_data *cfg, struct ice_sq_cd *cd) cd 2218 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, cfg, sizeof(*cfg), cd); cd 2469 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 2485 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(pi->hw, &desc, NULL, 0, cd); cd 2499 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 2511 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 2523 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_set_mac_loopback(struct ice_hw *hw, bool ena_lpbk, struct ice_sq_cd *cd) cd 2534 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 2547 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 2562 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 2794 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 2829 drivers/net/ethernet/intel/ice/ice_common.c return ice_aq_send_cmd(hw, &desc, qg_list, buf_size, cd); cd 2848 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 2915 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_send_cmd(hw, &desc, qg_list, buf_size, cd); cd 3191 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 3244 drivers/net/ethernet/intel/ice/ice_common.c status = ice_aq_add_lan_txq(hw, num_qgrps, buf, buf_size, cd); cd 3283 drivers/net/ethernet/intel/ice/ice_common.c struct ice_sq_cd *cd) cd 3328 drivers/net/ethernet/intel/ice/ice_common.c cd); cd 41 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 77 drivers/net/ethernet/intel/ice/ice_common.h void *buf, u16 buf_size, struct ice_sq_cd *cd); cd 78 drivers/net/ethernet/intel/ice/ice_common.h enum ice_status ice_aq_get_fw_ver(struct ice_hw *hw, struct ice_sq_cd *cd); cd 82 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 86 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 92 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 96 drivers/net/ethernet/intel/ice/ice_common.h struct ice_aqc_set_phy_cfg_data *cfg, struct ice_sq_cd *cd); cd 107 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 110 drivers/net/ethernet/intel/ice/ice_common.h struct ice_link_status *link, struct ice_sq_cd *cd); cd 113 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 115 drivers/net/ethernet/intel/ice/ice_common.h ice_aq_set_mac_loopback(struct ice_hw *hw, bool ena_lpbk, struct ice_sq_cd *cd); cd 119 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 125 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 132 drivers/net/ethernet/intel/ice/ice_common.h struct ice_sq_cd *cd); cd 843 drivers/net/ethernet/intel/ice/ice_controlq.c struct ice_sq_cd *cd) cd 897 drivers/net/ethernet/intel/ice/ice_controlq.c if (cd) cd 898 drivers/net/ethernet/intel/ice/ice_controlq.c *details = *cd; cd 24 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_sq_cd *cd) cd 43 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 65 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_sq_cd *cd) cd 77 drivers/net/ethernet/intel/ice/ice_dcb.c return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 93 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_sq_cd *cd) cd 108 drivers/net/ethernet/intel/ice/ice_dcb.c return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 120 drivers/net/ethernet/intel/ice/ice_dcb.c ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd) cd 134 drivers/net/ethernet/intel/ice/ice_dcb.c return ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 149 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_sq_cd *cd) cd 167 drivers/net/ethernet/intel/ice/ice_dcb.c return ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 724 drivers/net/ethernet/intel/ice/ice_dcb.c bool *dcbx_agent_status, struct ice_sq_cd *cd) cd 740 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 762 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_sq_cd *cd) cd 768 drivers/net/ethernet/intel/ice/ice_dcb.c return ice_aq_send_cmd(hw, &desc, (void *)buff, sizeof(*buff), cd); cd 1337 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_sq_cd *cd) cd 1349 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_aq_send_cmd(pi->hw, &desc, buf, buf_size, cd); cd 1431 drivers/net/ethernet/intel/ice/ice_dcb.c struct ice_sq_cd *cd) cd 1436 drivers/net/ethernet/intel/ice/ice_dcb.c status = ice_aq_query_port_ets(pi, buf, buf_size, cd); cd 136 drivers/net/ethernet/intel/ice/ice_dcb.h struct ice_sq_cd *cd); cd 138 drivers/net/ethernet/intel/ice/ice_dcb.h ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd); cd 141 drivers/net/ethernet/intel/ice/ice_dcb.h bool *dcbx_agent_status, struct ice_sq_cd *cd); cd 148 drivers/net/ethernet/intel/ice/ice_dcb.h struct ice_sq_cd __always_unused *cd) cd 156 drivers/net/ethernet/intel/ice/ice_dcb.h struct ice_sq_cd __always_unused *cd) cd 165 drivers/net/ethernet/intel/ice/ice_dcb.h struct ice_sq_cd __always_unused *cd) cd 222 drivers/net/ethernet/intel/ice/ice_flex_pipe.c u32 *error_info, struct ice_sq_cd *cd) cd 240 drivers/net/ethernet/intel/ice/ice_flex_pipe.c status = ice_aq_send_cmd(hw, &desc, pkg_buf, buf_size, cd); cd 384 drivers/net/ethernet/intel/ice/ice_flex_pipe.c u16 buf_size, struct ice_sq_cd *cd) cd 390 drivers/net/ethernet/intel/ice/ice_flex_pipe.c return ice_aq_send_cmd(hw, &desc, pkg_info, buf_size, cd); cd 20 drivers/net/ethernet/intel/ice/ice_nvm.c void *data, bool last_command, struct ice_sq_cd *cd) cd 41 drivers/net/ethernet/intel/ice/ice_nvm.c return ice_aq_send_cmd(hw, &desc, data, length, cd); cd 102 drivers/net/ethernet/intel/ice/ice_sched.c u16 *elems_resp, struct ice_sq_cd *cd) cd 112 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 133 drivers/net/ethernet/intel/ice/ice_sched.c u16 *elems_ret, struct ice_sq_cd *cd) cd 137 drivers/net/ethernet/intel/ice/ice_sched.c elems_ret, cd); cd 216 drivers/net/ethernet/intel/ice/ice_sched.c u16 *grps_del, struct ice_sq_cd *cd) cd 220 drivers/net/ethernet/intel/ice/ice_sched.c grps_del, cd); cd 376 drivers/net/ethernet/intel/ice/ice_sched.c u8 *num_branches, struct ice_sq_cd *cd) cd 385 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 406 drivers/net/ethernet/intel/ice/ice_sched.c u16 *grps_added, struct ice_sq_cd *cd) cd 410 drivers/net/ethernet/intel/ice/ice_sched.c grps_added, cd); cd 427 drivers/net/ethernet/intel/ice/ice_sched.c u16 buf_size, u16 *elems_ret, struct ice_sq_cd *cd) cd 431 drivers/net/ethernet/intel/ice/ice_sched.c elems_ret, cd); cd 448 drivers/net/ethernet/intel/ice/ice_sched.c u16 buf_size, u16 *elems_ret, struct ice_sq_cd *cd) cd 452 drivers/net/ethernet/intel/ice/ice_sched.c elems_ret, cd); cd 467 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_sq_cd *cd) cd 472 drivers/net/ethernet/intel/ice/ice_sched.c return ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 30 drivers/net/ethernet/intel/ice/ice_sched.h u16 *elems_ret, struct ice_sq_cd *cd); cd 24 drivers/net/ethernet/intel/ice/ice_sriov.c u8 *msg, u16 msglen, struct ice_sq_cd *cd) cd 40 drivers/net/ethernet/intel/ice/ice_sriov.c return ice_sq_send_cmd(hw, &hw->mailboxq, &desc, msg, msglen, cd); cd 12 drivers/net/ethernet/intel/ice/ice_sriov.h u8 *msg, u16 msglen, struct ice_sq_cd *cd); cd 21 drivers/net/ethernet/intel/ice/ice_sriov.h struct ice_sq_cd __always_unused *cd) cd 66 drivers/net/ethernet/intel/ice/ice_switch.c enum ice_adminq_opc opc, struct ice_sq_cd *cd) cd 85 drivers/net/ethernet/intel/ice/ice_switch.c return ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 145 drivers/net/ethernet/intel/ice/ice_switch.c struct ice_sq_cd *cd) cd 155 drivers/net/ethernet/intel/ice/ice_switch.c status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); cd 174 drivers/net/ethernet/intel/ice/ice_switch.c struct ice_sq_cd *cd) cd 196 drivers/net/ethernet/intel/ice/ice_switch.c sizeof(vsi_ctx->info), cd); cd 218 drivers/net/ethernet/intel/ice/ice_switch.c bool keep_vsi_alloc, struct ice_sq_cd *cd) cd 234 drivers/net/ethernet/intel/ice/ice_switch.c status = ice_aq_send_cmd(hw, &desc, NULL, 0, cd); cd 253 drivers/net/ethernet/intel/ice/ice_switch.c struct ice_sq_cd *cd) cd 270 drivers/net/ethernet/intel/ice/ice_switch.c sizeof(vsi_ctx->info), cd); cd 396 drivers/net/ethernet/intel/ice/ice_switch.c struct ice_sq_cd *cd) cd 403 drivers/net/ethernet/intel/ice/ice_switch.c status = ice_aq_add_vsi(hw, vsi_ctx, cd); cd 412 drivers/net/ethernet/intel/ice/ice_switch.c ice_aq_free_vsi(hw, vsi_ctx, false, cd); cd 438 drivers/net/ethernet/intel/ice/ice_switch.c bool keep_vsi_alloc, struct ice_sq_cd *cd) cd 445 drivers/net/ethernet/intel/ice/ice_switch.c status = ice_aq_free_vsi(hw, vsi_ctx, keep_vsi_alloc, cd); cd 462 drivers/net/ethernet/intel/ice/ice_switch.c struct ice_sq_cd *cd) cd 467 drivers/net/ethernet/intel/ice/ice_switch.c return ice_aq_update_vsi(hw, vsi_ctx, cd); cd 540 drivers/net/ethernet/intel/ice/ice_switch.c u8 num_rules, enum ice_adminq_opc opc, struct ice_sq_cd *cd) cd 554 drivers/net/ethernet/intel/ice/ice_switch.c return ice_aq_send_cmd(hw, &desc, rule_list, rule_list_sz, cd); cd 203 drivers/net/ethernet/intel/ice/ice_switch.h struct ice_sq_cd *cd); cd 206 drivers/net/ethernet/intel/ice/ice_switch.h bool keep_vsi_alloc, struct ice_sq_cd *cd); cd 209 drivers/net/ethernet/intel/ice/ice_switch.h struct ice_sq_cd *cd); cd 558 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->csmr) cd 562 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->select_mii) cd 1138 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_default_cpu_data(struct sh_eth_cpu_data *cd) cd 1140 drivers/net/ethernet/renesas/sh_eth.c if (!cd->ecsr_value) cd 1141 drivers/net/ethernet/renesas/sh_eth.c cd->ecsr_value = DEFAULT_ECSR_INIT; cd 1143 drivers/net/ethernet/renesas/sh_eth.c if (!cd->ecsipr_value) cd 1144 drivers/net/ethernet/renesas/sh_eth.c cd->ecsipr_value = DEFAULT_ECSIPR_INIT; cd 1146 drivers/net/ethernet/renesas/sh_eth.c if (!cd->fcftr_value) cd 1147 drivers/net/ethernet/renesas/sh_eth.c cd->fcftr_value = DEFAULT_FIFO_F_D_RFF | cd 1150 drivers/net/ethernet/renesas/sh_eth.c if (!cd->fdr_value) cd 1151 drivers/net/ethernet/renesas/sh_eth.c cd->fdr_value = DEFAULT_FDR_INIT; cd 1153 drivers/net/ethernet/renesas/sh_eth.c if (!cd->tx_check) cd 1154 drivers/net/ethernet/renesas/sh_eth.c cd->tx_check = DEFAULT_TX_CHECK; cd 1156 drivers/net/ethernet/renesas/sh_eth.c if (!cd->eesr_err_check) cd 1157 drivers/net/ethernet/renesas/sh_eth.c cd->eesr_err_check = DEFAULT_EESR_ERR_CHECK; cd 1159 drivers/net/ethernet/renesas/sh_eth.c if (!cd->trscer_err_mask) cd 1160 drivers/net/ethernet/renesas/sh_eth.c cd->trscer_err_mask = DEFAULT_TRSCER_ERR_MASK; cd 1401 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->xdfar_rw) cd 1423 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->xdfar_rw) cd 1444 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->rpadir) cd 1488 drivers/net/ethernet/renesas/sh_eth.c ret = mdp->cd->soft_reset(ndev); cd 1492 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->rmiimode) cd 1497 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->rpadir) cd 1504 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->hw_swap) cd 1511 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->fdr_value, FDR); cd 1517 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->trscer_err_mask, TRSCER); cd 1520 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->nbst) cd 1524 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->bculr) cd 1527 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->fcftr_value, FCFTR); cd 1529 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->no_trimd) cd 1538 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->eesipr_value, EESIPR); cd 1545 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->set_rate) cd 1546 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->set_rate(ndev); cd 1549 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->ecsr_value, ECSR); cd 1552 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->ecsipr_value, ECSIPR); cd 1558 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->apr) cd 1560 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->mpr) cd 1562 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->tpauser) cd 1595 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->soft_reset(ndev); cd 1598 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->rmiimode) cd 1659 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->csmr) cd 1680 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->hw_swap) cd 1685 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->rpadir) cd 1740 drivers/net/ethernet/renesas/sh_eth.c if (intr_status & EESR_RDE && !mdp->cd->no_xdfar) { cd 1782 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->no_psr || mdp->no_ether_link) cd 1845 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->no_ade && (intr_status & EESR_ADE)) { cd 1852 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->no_ade) cd 1866 drivers/net/ethernet/renesas/sh_eth.c if (edtrr ^ mdp->cd->edtrr_trns) { cd 1868 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->edtrr_trns, EDTRR); cd 1879 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_cpu_data *cd = mdp->cd; cd 1895 drivers/net/ethernet/renesas/sh_eth.c if (intr_status & (EESR_RX_CHECK | cd->tx_check | EESR_ECI | cd 1896 drivers/net/ethernet/renesas/sh_eth.c cd->eesr_err_check)) cd 1920 drivers/net/ethernet/renesas/sh_eth.c if (intr_status & cd->tx_check) { cd 1922 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, intr_status & cd->tx_check, EESR); cd 1932 drivers/net/ethernet/renesas/sh_eth.c if (intr_status & cd->eesr_err_check) { cd 1934 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, intr_status & cd->eesr_err_check, EESR); cd 1968 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->eesipr_value, EESIPR); cd 1984 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->no_psr || mdp->no_ether_link) cd 1991 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->set_duplex) cd 1992 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->set_duplex(ndev); cd 1998 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->set_rate) cd 1999 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->set_rate(ndev); cd 2014 drivers/net/ethernet/renesas/sh_eth.c if ((mdp->cd->no_psr || mdp->no_ether_link) && phydev->link) cd 2062 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->register_type != SH_ETH_REG_GIGABIT) { cd 2101 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_cpu_data *cd = mdp->cd; cd 2157 drivers/net/ethernet/renesas/sh_eth.c if (cd->rmiimode) cd 2160 drivers/net/ethernet/renesas/sh_eth.c if (cd->rpadir) cd 2162 drivers/net/ethernet/renesas/sh_eth.c if (!cd->no_trimd) cd 2168 drivers/net/ethernet/renesas/sh_eth.c if (!cd->no_psr) cd 2173 drivers/net/ethernet/renesas/sh_eth.c if (cd->apr) cd 2175 drivers/net/ethernet/renesas/sh_eth.c if (cd->mpr) cd 2179 drivers/net/ethernet/renesas/sh_eth.c if (cd->tpauser) cd 2183 drivers/net/ethernet/renesas/sh_eth.c if (cd->bculr) cd 2198 drivers/net/ethernet/renesas/sh_eth.c if (cd->rtrate) cd 2200 drivers/net/ethernet/renesas/sh_eth.c if (cd->csmr) cd 2202 drivers/net/ethernet/renesas/sh_eth.c if (cd->select_mii) cd 2204 drivers/net/ethernet/renesas/sh_eth.c if (cd->tsu) { cd 2207 drivers/net/ethernet/renesas/sh_eth.c if (cd->dual_port) { cd 2219 drivers/net/ethernet/renesas/sh_eth.c if (cd->dual_port) { cd 2400 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->magic) { cd 2410 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->magic || wol->wolopts & ~WAKE_MAGIC) cd 2449 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->irq_flags, ndev->name, ndev); cd 2546 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->hw_swap) cd 2565 drivers/net/ethernet/renesas/sh_eth.c if (!(sh_eth_read(ndev, EDTRR) & mdp->cd->edtrr_trns)) cd 2566 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->edtrr_trns, EDTRR); cd 2591 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->no_tx_cntrs) cd 2601 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->cexcr) { cd 2816 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->tsu) cd 2845 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->tsu) cd 2868 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->tsu) cd 2891 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->tsu) cd 2914 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->tsu) cd 2930 drivers/net/ethernet/renesas/sh_eth.c } else if (mdp->cd->tsu) { cd 2977 drivers/net/ethernet/renesas/sh_eth.c if (changed & NETIF_F_RXCSUM && mdp->cd->rx_csum) cd 2999 drivers/net/ethernet/renesas/sh_eth.c if (unlikely(!mdp->cd->tsu)) cd 3029 drivers/net/ethernet/renesas/sh_eth.c if (unlikely(!mdp->cd->tsu)) cd 3045 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->dual_port) { cd 3295 drivers/net/ethernet/renesas/sh_eth.c mdp->cd = (struct sh_eth_cpu_data *)id->driver_data; cd 3297 drivers/net/ethernet/renesas/sh_eth.c mdp->cd = (struct sh_eth_cpu_data *)of_device_get_match_data(&pdev->dev); cd 3299 drivers/net/ethernet/renesas/sh_eth.c mdp->reg_offset = sh_eth_get_register_offset(mdp->cd->register_type); cd 3302 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->register_type); cd 3306 drivers/net/ethernet/renesas/sh_eth.c sh_eth_set_default_cpu_data(mdp->cd); cd 3315 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->rx_csum) { cd 3321 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->tsu) cd 3339 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->tsu) { cd 3373 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->chip_reset) cd 3374 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->chip_reset(ndev); cd 3381 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->rmiimode) cd 3399 drivers/net/ethernet/renesas/sh_eth.c if (mdp->cd->magic) cd 515 drivers/net/ethernet/renesas/sh_eth.h struct sh_eth_cpu_data *cd; cd 198 drivers/net/ethernet/seeq/ether3.c struct in_chunk_dir cd; cd 201 drivers/net/ethernet/seeq/ether3.c if (ecard_readchunk(&cd, ec, 0xf5, 0) && (s = strchr(cd.d.string, '('))) { cd 168 drivers/net/wireless/ath/dfs_pattern_detector.c struct channel_detector *cd) cd 171 drivers/net/wireless/ath/dfs_pattern_detector.c if (cd == NULL) cd 174 drivers/net/wireless/ath/dfs_pattern_detector.c cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); cd 179 drivers/net/wireless/ath/dfs_pattern_detector.c struct channel_detector *cd) cd 182 drivers/net/wireless/ath/dfs_pattern_detector.c if (cd == NULL) cd 184 drivers/net/wireless/ath/dfs_pattern_detector.c list_del(&cd->head); cd 186 drivers/net/wireless/ath/dfs_pattern_detector.c struct pri_detector *de = cd->detectors[i]; cd 190 drivers/net/wireless/ath/dfs_pattern_detector.c kfree(cd->detectors); cd 191 drivers/net/wireless/ath/dfs_pattern_detector.c kfree(cd); cd 198 drivers/net/wireless/ath/dfs_pattern_detector.c struct channel_detector *cd; cd 200 drivers/net/wireless/ath/dfs_pattern_detector.c cd = kmalloc(sizeof(*cd), GFP_ATOMIC); cd 201 drivers/net/wireless/ath/dfs_pattern_detector.c if (cd == NULL) cd 204 drivers/net/wireless/ath/dfs_pattern_detector.c INIT_LIST_HEAD(&cd->head); cd 205 drivers/net/wireless/ath/dfs_pattern_detector.c cd->freq = freq; cd 206 drivers/net/wireless/ath/dfs_pattern_detector.c sz = sizeof(cd->detectors) * dpd->num_radar_types; cd 207 drivers/net/wireless/ath/dfs_pattern_detector.c cd->detectors = kzalloc(sz, GFP_ATOMIC); cd 208 drivers/net/wireless/ath/dfs_pattern_detector.c if (cd->detectors == NULL) cd 216 drivers/net/wireless/ath/dfs_pattern_detector.c cd->detectors[i] = de; cd 218 drivers/net/wireless/ath/dfs_pattern_detector.c list_add(&cd->head, &dpd->channel_detectors); cd 219 drivers/net/wireless/ath/dfs_pattern_detector.c return cd; cd 224 drivers/net/wireless/ath/dfs_pattern_detector.c channel_detector_exit(dpd, cd); cd 240 drivers/net/wireless/ath/dfs_pattern_detector.c struct channel_detector *cd; cd 241 drivers/net/wireless/ath/dfs_pattern_detector.c list_for_each_entry(cd, &dpd->channel_detectors, head) { cd 242 drivers/net/wireless/ath/dfs_pattern_detector.c if (cd->freq == freq) cd 243 drivers/net/wireless/ath/dfs_pattern_detector.c return cd; cd 255 drivers/net/wireless/ath/dfs_pattern_detector.c struct channel_detector *cd; cd 257 drivers/net/wireless/ath/dfs_pattern_detector.c list_for_each_entry(cd, &dpd->channel_detectors, head) cd 258 drivers/net/wireless/ath/dfs_pattern_detector.c channel_detector_reset(dpd, cd); cd 263 drivers/net/wireless/ath/dfs_pattern_detector.c struct channel_detector *cd, *cd0; cd 265 drivers/net/wireless/ath/dfs_pattern_detector.c list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) cd 266 drivers/net/wireless/ath/dfs_pattern_detector.c channel_detector_exit(dpd, cd); cd 275 drivers/net/wireless/ath/dfs_pattern_detector.c struct channel_detector *cd; cd 284 drivers/net/wireless/ath/dfs_pattern_detector.c cd = channel_detector_get(dpd, event->freq); cd 285 drivers/net/wireless/ath/dfs_pattern_detector.c if (cd == NULL) cd 295 drivers/net/wireless/ath/dfs_pattern_detector.c struct pri_detector *pd = cd->detectors[i]; cd 322 drivers/net/wireless/ath/dfs_pattern_detector.c struct channel_detector *cd, *cd0; cd 335 drivers/net/wireless/ath/dfs_pattern_detector.c list_for_each_entry_safe(cd, cd0, &dpd->channel_detectors, head) cd 336 drivers/net/wireless/ath/dfs_pattern_detector.c channel_detector_exit(dpd, cd); cd 199 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_rx_completion_desc *cd; cd 709 drivers/net/wireless/intel/iwlwifi/pcie/rx.c (use_rx_td ? sizeof(*rxq->cd) : cd 762 drivers/net/wireless/intel/iwlwifi/pcie/rx.c (use_rx_td ? sizeof(*rxq->cd) : sizeof(__le32)) * rxq->queue_size, cd 1403 drivers/net/wireless/intel/iwlwifi/pcie/rx.c vid = le16_to_cpu(rxq->cd[i].rbid) & 0x0FFF; cd 336 drivers/ntb/ntb_transport.c struct ntb_transport_client_dev *client_dev, *cd; cd 338 drivers/ntb/ntb_transport.c list_for_each_entry_safe(client_dev, cd, &nt->client_devs, entry) { cd 364 drivers/ntb/ntb_transport.c struct ntb_transport_client_dev *client, *cd; cd 368 drivers/ntb/ntb_transport.c list_for_each_entry_safe(client, cd, &nt->client_devs, entry) cd 1540 drivers/pinctrl/sh-pfc/pfc-r8a7778.c #define SDHI_PFC_CDPN(name, cd) SH_PFC_MUX1(name, cd) cd 4829 drivers/s390/block/dasd_eckd.c pfxdata = (struct PFX_eckd_data *)&dcw->cd[0]; cd 458 drivers/s390/cio/chsc_sch.c struct chsc_chp_cd *cd; cd 479 drivers/s390/cio/chsc_sch.c cd = kzalloc(sizeof(*cd), GFP_KERNEL); cd 480 drivers/s390/cio/chsc_sch.c if (!cd) { cd 484 drivers/s390/cio/chsc_sch.c if (copy_from_user(cd, user_cd, sizeof(*cd))) { cd 490 drivers/s390/cio/chsc_sch.c scpcd_area->m = cd->m; cd 491 drivers/s390/cio/chsc_sch.c scpcd_area->fmt1 = cd->fmt; cd 492 drivers/s390/cio/chsc_sch.c scpcd_area->cssid = cd->chpid.cssid; cd 493 drivers/s390/cio/chsc_sch.c scpcd_area->first_chpid = cd->chpid.id; cd 494 drivers/s390/cio/chsc_sch.c scpcd_area->last_chpid = cd->chpid.id; cd 507 drivers/s390/cio/chsc_sch.c memcpy(&cd->cpcb, &scpcd_area->response, scpcd_area->response.length); cd 508 drivers/s390/cio/chsc_sch.c if (copy_to_user(user_cd, cd, sizeof(*cd))) cd 513 drivers/s390/cio/chsc_sch.c kfree(cd); cd 520 drivers/s390/cio/chsc_sch.c struct chsc_cu_cd *cd; cd 541 drivers/s390/cio/chsc_sch.c cd = kzalloc(sizeof(*cd), GFP_KERNEL); cd 542 drivers/s390/cio/chsc_sch.c if (!cd) { cd 546 drivers/s390/cio/chsc_sch.c if (copy_from_user(cd, user_cd, sizeof(*cd))) { cd 552 drivers/s390/cio/chsc_sch.c scucd_area->m = cd->m; cd 553 drivers/s390/cio/chsc_sch.c scucd_area->fmt1 = cd->fmt; cd 554 drivers/s390/cio/chsc_sch.c scucd_area->cssid = cd->cssid; cd 555 drivers/s390/cio/chsc_sch.c scucd_area->first_cun = cd->cun; cd 556 drivers/s390/cio/chsc_sch.c scucd_area->last_cun = cd->cun; cd 569 drivers/s390/cio/chsc_sch.c memcpy(&cd->cucb, &scucd_area->response, scucd_area->response.length); cd 570 drivers/s390/cio/chsc_sch.c if (copy_to_user(user_cd, cd, sizeof(*cd))) cd 575 drivers/s390/cio/chsc_sch.c kfree(cd); cd 296 drivers/s390/cio/fcx.c void *cd, u8 cd_count, u32 count) cd 315 drivers/s390/cio/fcx.c if (cd) cd 316 drivers/s390/cio/fcx.c memcpy(&dcw->cd[0], cd, cd_count); cd 293 drivers/s390/cio/itcw.c struct dcw *itcw_add_dcw(struct itcw *itcw, u8 cmd, u8 flags, void *cd, cd 297 drivers/s390/cio/itcw.c flags, cd, cd_count, count); cd 310 drivers/scsi/scsi_common.c int scsi_set_sense_field_pointer(u8 *buf, int buf_len, u16 fp, u8 bp, bool cd) cd 329 drivers/scsi/scsi_common.c if (cd) cd 340 drivers/scsi/scsi_common.c if (cd) cd 1708 drivers/scsi/scsi_transport_fc.c static ssize_t show_fcstat_##name(struct device *cd, \ cd 1712 drivers/scsi/scsi_transport_fc.c return fc_stat_show(cd, buf, \ cd 147 drivers/scsi/sr.c struct scsi_cd *cd = dev_get_drvdata(dev); cd 149 drivers/scsi/sr.c if (!cd) /* E.g.: runtime suspend following sr_remove() */ cd 152 drivers/scsi/sr.c if (cd->media_present) cd 164 drivers/scsi/sr.c struct scsi_cd *cd = NULL; cd 169 drivers/scsi/sr.c cd = scsi_cd(disk); cd 170 drivers/scsi/sr.c kref_get(&cd->kref); cd 171 drivers/scsi/sr.c if (scsi_device_get(cd->device)) { cd 172 drivers/scsi/sr.c kref_put(&cd->kref, sr_kref_release); cd 173 drivers/scsi/sr.c cd = NULL; cd 177 drivers/scsi/sr.c return cd; cd 180 drivers/scsi/sr.c static void scsi_cd_put(struct scsi_cd *cd) cd 182 drivers/scsi/sr.c struct scsi_device *sdev = cd->device; cd 185 drivers/scsi/sr.c kref_put(&cd->kref, sr_kref_release); cd 234 drivers/scsi/sr.c struct scsi_cd *cd = cdi->handle; cd 244 drivers/scsi/sr.c events = sr_get_events(cd->device); cd 245 drivers/scsi/sr.c cd->get_event_changed |= events & DISK_EVENT_MEDIA_CHANGE; cd 253 drivers/scsi/sr.c if (cd->ignore_get_event) { cd 263 drivers/scsi/sr.c if (cd->device->changed) { cd 265 drivers/scsi/sr.c cd->device->changed = 0; cd 266 drivers/scsi/sr.c cd->tur_changed = true; cd 273 drivers/scsi/sr.c last_present = cd->media_present; cd 274 drivers/scsi/sr.c ret = scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr); cd 281 drivers/scsi/sr.c cd->media_present = scsi_status_is_good(ret) || cd 284 drivers/scsi/sr.c if (last_present != cd->media_present) cd 285 drivers/scsi/sr.c cd->device->changed = 1; cd 287 drivers/scsi/sr.c if (cd->device->changed) { cd 289 drivers/scsi/sr.c cd->device->changed = 0; cd 290 drivers/scsi/sr.c cd->tur_changed = true; cd 293 drivers/scsi/sr.c if (cd->ignore_get_event) cd 297 drivers/scsi/sr.c if (!cd->tur_changed) { cd 298 drivers/scsi/sr.c if (cd->get_event_changed) { cd 299 drivers/scsi/sr.c if (cd->tur_mismatch++ > 8) { cd 300 drivers/scsi/sr.c sr_printk(KERN_WARNING, cd, cd 302 drivers/scsi/sr.c cd->ignore_get_event = true; cd 305 drivers/scsi/sr.c cd->tur_mismatch = 0; cd 308 drivers/scsi/sr.c cd->tur_changed = false; cd 309 drivers/scsi/sr.c cd->get_event_changed = false; cd 327 drivers/scsi/sr.c struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk); cd 356 drivers/scsi/sr.c if (cd->device->sector_size == 2048) cd 371 drivers/scsi/sr.c if (error_sector < get_capacity(cd->disk) && cd 372 drivers/scsi/sr.c cd->capacity - error_sector < 4 * 75) cd 373 drivers/scsi/sr.c set_capacity(cd->disk, error_sector); cd 391 drivers/scsi/sr.c struct scsi_cd *cd; cd 398 drivers/scsi/sr.c cd = scsi_cd(rq->rq_disk); cd 407 drivers/scsi/sr.c if (!cd->device || !scsi_device_online(cd->device)) { cd 415 drivers/scsi/sr.c if (cd->device->changed) { cd 427 drivers/scsi/sr.c s_size = cd->device->sector_size; cd 430 drivers/scsi/sr.c sr_set_blocklength(cd, 2048); cd 443 drivers/scsi/sr.c if (!cd->writeable) cd 446 drivers/scsi/sr.c cd->cdi.media_written = 1; cd 511 drivers/scsi/sr.c SCpnt->transfersize = cd->device->sector_size; cd 526 drivers/scsi/sr.c struct scsi_cd *cd; cd 530 drivers/scsi/sr.c cd = scsi_cd_get(bdev->bd_disk); cd 531 drivers/scsi/sr.c if (!cd) cd 534 drivers/scsi/sr.c sdev = cd->device; cd 539 drivers/scsi/sr.c ret = cdrom_open(&cd->cdi, bdev, mode); cd 544 drivers/scsi/sr.c scsi_cd_put(cd); cd 552 drivers/scsi/sr.c struct scsi_cd *cd = scsi_cd(disk); cd 554 drivers/scsi/sr.c cdrom_release(&cd->cdi, mode); cd 555 drivers/scsi/sr.c scsi_cd_put(cd); cd 562 drivers/scsi/sr.c struct scsi_cd *cd = scsi_cd(bdev->bd_disk); cd 563 drivers/scsi/sr.c struct scsi_device *sdev = cd->device; cd 587 drivers/scsi/sr.c ret = cdrom_ioctl(&cd->cdi, bdev, mode, cmd, arg); cd 605 drivers/scsi/sr.c struct scsi_cd *cd; cd 607 drivers/scsi/sr.c cd = scsi_cd_get(disk); cd 608 drivers/scsi/sr.c if (!cd) cd 611 drivers/scsi/sr.c if (!atomic_read(&cd->device->disk_events_disable_depth)) cd 612 drivers/scsi/sr.c ret = cdrom_check_events(&cd->cdi, clearing); cd 614 drivers/scsi/sr.c scsi_cd_put(cd); cd 621 drivers/scsi/sr.c struct scsi_cd *cd; cd 623 drivers/scsi/sr.c cd = scsi_cd_get(disk); cd 624 drivers/scsi/sr.c if (!cd) cd 628 drivers/scsi/sr.c if (scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr)) cd 631 drivers/scsi/sr.c sr_cd_check(&cd->cdi); cd 632 drivers/scsi/sr.c get_sectorsize(cd); cd 634 drivers/scsi/sr.c scsi_cd_put(cd); cd 654 drivers/scsi/sr.c struct scsi_cd *cd = cdi->handle; cd 655 drivers/scsi/sr.c struct scsi_device *sdev = cd->device; cd 674 drivers/scsi/sr.c struct scsi_cd *cd = cdi->handle; cd 676 drivers/scsi/sr.c if (cd->device->sector_size > 2048) cd 677 drivers/scsi/sr.c sr_set_blocklength(cd, 2048); cd 685 drivers/scsi/sr.c struct scsi_cd *cd; cd 694 drivers/scsi/sr.c cd = kzalloc(sizeof(*cd), GFP_KERNEL); cd 695 drivers/scsi/sr.c if (!cd) cd 698 drivers/scsi/sr.c kref_init(&cd->kref); cd 724 drivers/scsi/sr.c cd->device = sdev; cd 725 drivers/scsi/sr.c cd->disk = disk; cd 726 drivers/scsi/sr.c cd->driver = &sr_template; cd 727 drivers/scsi/sr.c cd->disk = disk; cd 728 drivers/scsi/sr.c cd->capacity = 0x1fffff; cd 729 drivers/scsi/sr.c cd->device->changed = 1; /* force recheck CD type */ cd 730 drivers/scsi/sr.c cd->media_present = 1; cd 731 drivers/scsi/sr.c cd->use = 1; cd 732 drivers/scsi/sr.c cd->readcd_known = 0; cd 733 drivers/scsi/sr.c cd->readcd_cdda = 0; cd 735 drivers/scsi/sr.c cd->cdi.ops = &sr_dops; cd 736 drivers/scsi/sr.c cd->cdi.handle = cd; cd 737 drivers/scsi/sr.c cd->cdi.mask = 0; cd 738 drivers/scsi/sr.c cd->cdi.capacity = 1; cd 739 drivers/scsi/sr.c sprintf(cd->cdi.name, "sr%d", minor); cd 744 drivers/scsi/sr.c get_capabilities(cd); cd 745 drivers/scsi/sr.c sr_vendor_init(cd); cd 747 drivers/scsi/sr.c set_capacity(disk, cd->capacity); cd 748 drivers/scsi/sr.c disk->private_data = &cd->driver; cd 750 drivers/scsi/sr.c cd->cdi.disk = disk; cd 752 drivers/scsi/sr.c if (register_cdrom(&cd->cdi)) cd 761 drivers/scsi/sr.c dev_set_drvdata(dev, cd); cd 766 drivers/scsi/sr.c "Attached scsi CD-ROM %s\n", cd->cdi.name); cd 767 drivers/scsi/sr.c scsi_autopm_put_device(cd->device); cd 774 drivers/scsi/sr.c kfree(cd); cd 781 drivers/scsi/sr.c static void get_sectorsize(struct scsi_cd *cd) cd 795 drivers/scsi/sr.c the_result = scsi_execute_req(cd->device, cmd, DMA_FROM_DEVICE, cd 805 drivers/scsi/sr.c cd->capacity = 0x1fffff; cd 810 drivers/scsi/sr.c cd->capacity = 1 + ((buffer[0] << 24) | (buffer[1] << 16) | cd 819 drivers/scsi/sr.c if (!cdrom_get_last_written(&cd->cdi, &last_written)) cd 820 drivers/scsi/sr.c cd->capacity = max_t(long, cd->capacity, last_written); cd 837 drivers/scsi/sr.c cd->capacity *= 4; cd 842 drivers/scsi/sr.c sr_printk(KERN_INFO, cd, cd 844 drivers/scsi/sr.c cd->capacity = 0; cd 847 drivers/scsi/sr.c cd->device->sector_size = sector_size; cd 853 drivers/scsi/sr.c set_capacity(cd->disk, cd->capacity); cd 856 drivers/scsi/sr.c queue = cd->device->request_queue; cd 862 drivers/scsi/sr.c static void get_capabilities(struct scsi_cd *cd) cd 886 drivers/scsi/sr.c sr_printk(KERN_ERR, cd, "out of memory.\n"); cd 891 drivers/scsi/sr.c scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr); cd 894 drivers/scsi/sr.c rc = scsi_mode_sense(cd->device, 0, 0x2a, buffer, ms_len, cd 900 drivers/scsi/sr.c cd->cdi.speed = 1; cd 901 drivers/scsi/sr.c cd->cdi.mask |= (CDC_CD_R | CDC_CD_RW | CDC_DVD_R | cd 906 drivers/scsi/sr.c sr_printk(KERN_INFO, cd, "scsi-1 drive"); cd 911 drivers/scsi/sr.c cd->cdi.speed = ((buffer[n + 8] << 8) + buffer[n + 9]) / 176; cd 912 drivers/scsi/sr.c cd->readcd_known = 1; cd 913 drivers/scsi/sr.c cd->readcd_cdda = buffer[n + 5] & 0x01; cd 915 drivers/scsi/sr.c sr_printk(KERN_INFO, cd, cd 918 drivers/scsi/sr.c cd->cdi.speed, cd 927 drivers/scsi/sr.c cd->cdi.mask |= CDC_CLOSE_TRAY; cd 930 drivers/scsi/sr.c cd->cdi.mask |= CDC_DVD; cd 933 drivers/scsi/sr.c cd->cdi.mask |= CDC_DVD_RAM; cd 936 drivers/scsi/sr.c cd->cdi.mask |= CDC_DVD_R; cd 939 drivers/scsi/sr.c cd->cdi.mask |= CDC_CD_RW; cd 942 drivers/scsi/sr.c cd->cdi.mask |= CDC_CD_R; cd 945 drivers/scsi/sr.c cd->cdi.mask |= CDC_OPEN_TRAY; cd 949 drivers/scsi/sr.c cd->cdi.capacity = cd 950 drivers/scsi/sr.c cdrom_number_of_slots(&cd->cdi); cd 951 drivers/scsi/sr.c if (cd->cdi.capacity <= 1) cd 953 drivers/scsi/sr.c cd->cdi.mask |= CDC_SELECT_DISC; cd 960 drivers/scsi/sr.c if ((cd->cdi.mask & (CDC_DVD_RAM | CDC_MRW_W | CDC_RAM | CDC_CD_RW)) != cd 962 drivers/scsi/sr.c cd->writeable = 1; cd 975 drivers/scsi/sr.c struct scsi_cd *cd = cdi->handle; cd 976 drivers/scsi/sr.c struct scsi_device *sdev = cd->device; cd 984 drivers/scsi/sr.c sr_do_ioctl(cd, cgc); cd 1000 drivers/scsi/sr.c struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref); cd 1001 drivers/scsi/sr.c struct gendisk *disk = cd->disk; cd 1007 drivers/scsi/sr.c unregister_cdrom(&cd->cdi); cd 1013 drivers/scsi/sr.c kfree(cd); cd 1018 drivers/scsi/sr.c struct scsi_cd *cd = dev_get_drvdata(dev); cd 1020 drivers/scsi/sr.c scsi_autopm_get_device(cd->device); cd 1022 drivers/scsi/sr.c del_gendisk(cd->disk); cd 1026 drivers/scsi/sr.c kref_put(&cd->kref, sr_kref_release); cd 60 drivers/scsi/sr.h #define sr_printk(prefix, cd, fmt, a...) \ cd 61 drivers/scsi/sr.h sdev_prefix_printk(prefix, (cd)->device, (cd)->cdi.name, fmt, ##a) cd 38 drivers/scsi/sr_ioctl.c #define SR_GFP_DMA(cd) (((cd)->device->host->unchecked_isa_dma) ? GFP_DMA : 0) cd 43 drivers/scsi/sr_ioctl.c struct scsi_cd *cd = cdi->handle; cd 48 drivers/scsi/sr_ioctl.c buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); cd 61 drivers/scsi/sr_ioctl.c result = sr_do_ioctl(cd, &cgc); cd 73 drivers/scsi/sr_ioctl.c struct scsi_cd *cd = cdi->handle; cd 78 drivers/scsi/sr_ioctl.c buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); cd 92 drivers/scsi/sr_ioctl.c result = sr_do_ioctl(cd, &cgc); cd 162 drivers/scsi/sr_ioctl.c struct scsi_cd *cd = cdi->handle; cd 175 drivers/scsi/sr_ioctl.c result = sr_do_ioctl(cd, &cgc); cd 186 drivers/scsi/sr_ioctl.c int sr_do_ioctl(Scsi_CD *cd, struct packet_command *cgc) cd 192 drivers/scsi/sr_ioctl.c SDev = cd->device; cd 213 drivers/scsi/sr_ioctl.c sr_printk(KERN_INFO, cd, cd 224 drivers/scsi/sr_ioctl.c sr_printk(KERN_INFO, cd, cd 237 drivers/scsi/sr_ioctl.c sr_printk(KERN_INFO, cd, cd 265 drivers/scsi/sr_ioctl.c Scsi_CD *cd = cdi->handle; cd 273 drivers/scsi/sr_ioctl.c return sr_do_ioctl(cd, &cgc); cd 278 drivers/scsi/sr_ioctl.c Scsi_CD *cd = cdi->handle; cd 280 drivers/scsi/sr_ioctl.c return scsi_set_medium_removal(cd->device, lock ? cd 286 drivers/scsi/sr_ioctl.c struct scsi_cd *cd = cdi->handle; cd 294 drivers/scsi/sr_ioctl.c if (!scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr)) cd 343 drivers/scsi/sr_ioctl.c Scsi_CD *cd = cdi->handle; cd 366 drivers/scsi/sr_ioctl.c if (cd->xa_flag) cd 375 drivers/scsi/sr_ioctl.c Scsi_CD *cd = cdi->handle; cd 377 drivers/scsi/sr_ioctl.c ms_info->addr.lba = cd->ms_offset; cd 378 drivers/scsi/sr_ioctl.c ms_info->xa_flag = cd->xa_flag || cd->ms_offset > 0; cd 385 drivers/scsi/sr_ioctl.c Scsi_CD *cd = cdi->handle; cd 387 drivers/scsi/sr_ioctl.c char *buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); cd 402 drivers/scsi/sr_ioctl.c result = sr_do_ioctl(cd, &cgc); cd 418 drivers/scsi/sr_ioctl.c Scsi_CD *cd = cdi->handle; cd 433 drivers/scsi/sr_ioctl.c if (sr_do_ioctl(cd, &cgc)) cd 472 drivers/scsi/sr_ioctl.c static int sr_read_cd(Scsi_CD *cd, unsigned char *dest, int lba, int format, int blksize) cd 477 drivers/scsi/sr_ioctl.c sr_printk(KERN_INFO, cd, "sr_read_cd lba=%d format=%d blksize=%d\n", cd 507 drivers/scsi/sr_ioctl.c return sr_do_ioctl(cd, &cgc); cd 514 drivers/scsi/sr_ioctl.c static int sr_read_sector(Scsi_CD *cd, int lba, int blksize, unsigned char *dest) cd 520 drivers/scsi/sr_ioctl.c if (cd->readcd_known) { cd 521 drivers/scsi/sr_ioctl.c rc = sr_read_cd(cd, dest, lba, 0, blksize); cd 524 drivers/scsi/sr_ioctl.c cd->readcd_known = 0; cd 525 drivers/scsi/sr_ioctl.c sr_printk(KERN_INFO, cd, cd 530 drivers/scsi/sr_ioctl.c if (blksize != cd->device->sector_size) { cd 531 drivers/scsi/sr_ioctl.c if (0 != (rc = sr_set_blocklength(cd, blksize))) cd 535 drivers/scsi/sr_ioctl.c sr_printk(KERN_INFO, cd, "sr_read_sector lba=%d blksize=%d\n", cd 550 drivers/scsi/sr_ioctl.c rc = sr_do_ioctl(cd, &cgc); cd 560 drivers/scsi/sr_ioctl.c int sr_is_xa(Scsi_CD *cd) cd 568 drivers/scsi/sr_ioctl.c raw_sector = kmalloc(2048, GFP_KERNEL | SR_GFP_DMA(cd)); cd 571 drivers/scsi/sr_ioctl.c if (0 == sr_read_sector(cd, cd->ms_offset + 16, cd 580 drivers/scsi/sr_ioctl.c sr_printk(KERN_INFO, cd, "sr_is_xa: %d\n", is_xa); cd 67 drivers/scsi/sr_vendor.c void sr_vendor_init(Scsi_CD *cd) cd 70 drivers/scsi/sr_vendor.c cd->vendor = VENDOR_SCSI3; cd 72 drivers/scsi/sr_vendor.c const char *vendor = cd->device->vendor; cd 73 drivers/scsi/sr_vendor.c const char *model = cd->device->model; cd 76 drivers/scsi/sr_vendor.c cd->vendor = VENDOR_SCSI3; cd 77 drivers/scsi/sr_vendor.c if (cd->readcd_known) cd 81 drivers/scsi/sr_vendor.c if (cd->device->type == TYPE_WORM) { cd 82 drivers/scsi/sr_vendor.c cd->vendor = VENDOR_WRITER; cd 85 drivers/scsi/sr_vendor.c cd->vendor = VENDOR_NEC; cd 97 drivers/scsi/sr_vendor.c cd->cdi.mask |= CDC_MULTI_SESSION; cd 100 drivers/scsi/sr_vendor.c cd->vendor = VENDOR_TOSHIBA; cd 110 drivers/scsi/sr_vendor.c int sr_set_blocklength(Scsi_CD *cd, int blocklength) cd 118 drivers/scsi/sr_vendor.c if (cd->vendor == VENDOR_TOSHIBA) cd 127 drivers/scsi/sr_vendor.c sr_printk(KERN_INFO, cd, "MODE SELECT 0x%x/%d\n", density, blocklength); cd 143 drivers/scsi/sr_vendor.c if (0 == (rc = sr_do_ioctl(cd, &cgc))) { cd 144 drivers/scsi/sr_vendor.c cd->device->sector_size = blocklength; cd 148 drivers/scsi/sr_vendor.c sr_printk(KERN_INFO, cd, cd 161 drivers/scsi/sr_vendor.c Scsi_CD *cd = cdi->handle; cd 167 drivers/scsi/sr_vendor.c if (cd->cdi.mask & CDC_MULTI_SESSION) cd 180 drivers/scsi/sr_vendor.c switch (cd->vendor) { cd 191 drivers/scsi/sr_vendor.c rc = sr_do_ioctl(cd, &cgc); cd 195 drivers/scsi/sr_vendor.c sr_printk(KERN_INFO, cd, "Hmm, seems the drive " cd 219 drivers/scsi/sr_vendor.c rc = sr_do_ioctl(cd, &cgc); cd 223 drivers/scsi/sr_vendor.c sr_printk(KERN_INFO, cd, "Hmm, seems the cdrom " cd 248 drivers/scsi/sr_vendor.c rc = sr_do_ioctl(cd, &cgc); cd 250 drivers/scsi/sr_vendor.c sr_printk(KERN_INFO, cd, "Hmm, seems the drive " cd 263 drivers/scsi/sr_vendor.c sr_set_blocklength(cd, 2048); cd 276 drivers/scsi/sr_vendor.c rc = sr_do_ioctl(cd, &cgc); cd 281 drivers/scsi/sr_vendor.c sr_printk(KERN_WARNING, cd, cd 294 drivers/scsi/sr_vendor.c rc = sr_do_ioctl(cd, &cgc); cd 305 drivers/scsi/sr_vendor.c sr_printk(KERN_WARNING, cd, cd 307 drivers/scsi/sr_vendor.c cd->vendor); cd 312 drivers/scsi/sr_vendor.c cd->ms_offset = sector; cd 313 drivers/scsi/sr_vendor.c cd->xa_flag = 0; cd 314 drivers/scsi/sr_vendor.c if (CDS_AUDIO != sr_disk_status(cdi) && 1 == sr_is_xa(cd)) cd 315 drivers/scsi/sr_vendor.c cd->xa_flag = 1; cd 317 drivers/scsi/sr_vendor.c if (2048 != cd->device->sector_size) { cd 318 drivers/scsi/sr_vendor.c sr_set_blocklength(cd, 2048); cd 325 drivers/scsi/sr_vendor.c sr_printk(KERN_DEBUG, cd, "multisession offset=%lu\n", cd 62 drivers/soc/fsl/dpaa2-console.c static inline void adjust_end(struct console_data *cd) cd 64 drivers/soc/fsl/dpaa2-console.c u32 last_byte = readl(&cd->hdr->last_byte); cd 66 drivers/soc/fsl/dpaa2-console.c cd->end_of_data = cd->start_addr + LAST_BYTE(last_byte); cd 90 drivers/soc/fsl/dpaa2-console.c static ssize_t dpaa2_console_size(struct console_data *cd) cd 94 drivers/soc/fsl/dpaa2-console.c if (cd->cur_ptr <= cd->end_of_data) cd 95 drivers/soc/fsl/dpaa2-console.c size = cd->end_of_data - cd->cur_ptr; cd 97 drivers/soc/fsl/dpaa2-console.c size = (cd->end_addr - cd->cur_ptr) + cd 98 drivers/soc/fsl/dpaa2-console.c (cd->end_of_data - cd->start_addr); cd 109 drivers/soc/fsl/dpaa2-console.c struct console_data *cd; cd 113 drivers/soc/fsl/dpaa2-console.c cd = kmalloc(sizeof(*cd), GFP_KERNEL); cd 114 drivers/soc/fsl/dpaa2-console.c if (!cd) cd 123 drivers/soc/fsl/dpaa2-console.c cd->map_addr = ioremap(base_addr + offset, size); cd 124 drivers/soc/fsl/dpaa2-console.c if (!cd->map_addr) { cd 130 drivers/soc/fsl/dpaa2-console.c cd->hdr = (struct log_header __iomem *)cd->map_addr; cd 131 drivers/soc/fsl/dpaa2-console.c read_magic = readl(&cd->hdr->magic_word); cd 132 drivers/soc/fsl/dpaa2-console.c last_byte = readl(&cd->hdr->last_byte); cd 133 drivers/soc/fsl/dpaa2-console.c buf_start = readl(&cd->hdr->buf_start); cd 134 drivers/soc/fsl/dpaa2-console.c buf_length = readl(&cd->hdr->buf_length); cd 143 drivers/soc/fsl/dpaa2-console.c cd->start_addr = cd->map_addr + buf_start - offset_delta; cd 144 drivers/soc/fsl/dpaa2-console.c cd->end_addr = cd->start_addr + buf_length; cd 148 drivers/soc/fsl/dpaa2-console.c adjust_end(cd); cd 149 drivers/soc/fsl/dpaa2-console.c if (wrapped && cd->end_of_data != cd->end_addr) cd 150 drivers/soc/fsl/dpaa2-console.c cd->cur_ptr = cd->end_of_data + 1; cd 152 drivers/soc/fsl/dpaa2-console.c cd->cur_ptr = cd->start_addr; cd 154 drivers/soc/fsl/dpaa2-console.c fp->private_data = cd; cd 159 drivers/soc/fsl/dpaa2-console.c iounmap(cd->map_addr); cd 163 drivers/soc/fsl/dpaa2-console.c kfree(cd); cd 184 drivers/soc/fsl/dpaa2-console.c struct console_data *cd = fp->private_data; cd 186 drivers/soc/fsl/dpaa2-console.c iounmap(cd->map_addr); cd 187 drivers/soc/fsl/dpaa2-console.c kfree(cd); cd 194 drivers/soc/fsl/dpaa2-console.c struct console_data *cd = fp->private_data; cd 195 drivers/soc/fsl/dpaa2-console.c size_t bytes = dpaa2_console_size(cd); cd 196 drivers/soc/fsl/dpaa2-console.c size_t bytes_end = cd->end_addr - cd->cur_ptr; cd 202 drivers/soc/fsl/dpaa2-console.c adjust_end(cd); cd 204 drivers/soc/fsl/dpaa2-console.c if (cd->end_of_data == cd->cur_ptr) cd 215 drivers/soc/fsl/dpaa2-console.c memcpy_fromio(kbuf, cd->cur_ptr, bytes_end); cd 221 drivers/soc/fsl/dpaa2-console.c cd->cur_ptr = cd->start_addr; cd 226 drivers/soc/fsl/dpaa2-console.c memcpy_fromio(kbuf, cd->cur_ptr, bytes); cd 231 drivers/soc/fsl/dpaa2-console.c cd->cur_ptr += bytes; cd 1143 drivers/spi/spi-omap2-mcspi.c struct omap2_mcspi_device_config *cd; cd 1151 drivers/spi/spi-omap2-mcspi.c cd = spi->controller_data; cd 1179 drivers/spi/spi-omap2-mcspi.c if (cd && cd->cs_per_word) { cd 1196 drivers/spi/spi-omap2-mcspi.c if (cd && cd->turbo_mode && t->tx_buf == NULL) { cd 1244 drivers/spi/spi-omap2-mcspi.c if (cd && cd->cs_per_word) { cd 50 drivers/staging/fieldbus/anybuss/arcx-anybus.c static void do_reset(struct controller_priv *cd, u8 rst_bit, bool reset) cd 52 drivers/staging/fieldbus/anybuss/arcx-anybus.c mutex_lock(&cd->ctrl_lock); cd 58 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->control_reg &= ~rst_bit; cd 60 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->control_reg |= rst_bit; cd 61 drivers/staging/fieldbus/anybuss/arcx-anybus.c writeb(cd->control_reg, cd->cpld_base + CPLD_CONTROL); cd 73 drivers/staging/fieldbus/anybuss/arcx-anybus.c mutex_unlock(&cd->ctrl_lock); cd 76 drivers/staging/fieldbus/anybuss/arcx-anybus.c static int anybuss_reset(struct controller_priv *cd, cd 81 drivers/staging/fieldbus/anybuss/arcx-anybus.c if (cd->common_reset) cd 82 drivers/staging/fieldbus/anybuss/arcx-anybus.c do_reset(cd, CPLD_CONTROL_CRST, reset); cd 84 drivers/staging/fieldbus/anybuss/arcx-anybus.c do_reset(cd, id ? CPLD_CONTROL_RST2 : CPLD_CONTROL_RST1, reset); cd 90 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct controller_priv *cd = dev_get_drvdata(dev); cd 92 drivers/staging/fieldbus/anybuss/arcx-anybus.c anybuss_reset(cd, 0, assert); cd 97 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct controller_priv *cd = dev_get_drvdata(dev); cd 99 drivers/staging/fieldbus/anybuss/arcx-anybus.c anybuss_reset(cd, 1, assert); cd 169 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct controller_priv *cd = dev_get_drvdata(dev); cd 171 drivers/staging/fieldbus/anybuss/arcx-anybus.c return sprintf(buf, "%s\n", cd->version); cd 178 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct controller_priv *cd = dev_get_drvdata(dev); cd 180 drivers/staging/fieldbus/anybuss/arcx-anybus.c return sprintf(buf, "%d\n", cd->design_no); cd 206 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct controller_priv *cd = rdev_get_drvdata(rdev); cd 208 drivers/staging/fieldbus/anybuss/arcx-anybus.c return !(readb(cd->cpld_base + CPLD_STATUS1) & CPLD_STATUS1_CAN_POWER); cd 228 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct controller_priv *cd; cd 237 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd = devm_kzalloc(dev, sizeof(*cd), GFP_KERNEL); cd 238 drivers/staging/fieldbus/anybuss/arcx-anybus.c if (!cd) cd 240 drivers/staging/fieldbus/anybuss/arcx-anybus.c dev_set_drvdata(dev, cd); cd 241 drivers/staging/fieldbus/anybuss/arcx-anybus.c mutex_init(&cd->ctrl_lock); cd 242 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->reset_gpiod = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); cd 243 drivers/staging/fieldbus/anybuss/arcx-anybus.c if (IS_ERR(cd->reset_gpiod)) cd 244 drivers/staging/fieldbus/anybuss/arcx-anybus.c return PTR_ERR(cd->reset_gpiod); cd 248 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->cpld_base = devm_ioremap_resource(dev, res); cd 249 drivers/staging/fieldbus/anybuss/arcx-anybus.c if (IS_ERR(cd->cpld_base)) { cd 252 drivers/staging/fieldbus/anybuss/arcx-anybus.c err = PTR_ERR(cd->cpld_base); cd 257 drivers/staging/fieldbus/anybuss/arcx-anybus.c status1 = readb(cd->cpld_base + CPLD_STATUS1); cd 258 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->design_no = (readb(cd->cpld_base + CPLD_DESIGN_HI) << 8) | cd 259 drivers/staging/fieldbus/anybuss/arcx-anybus.c readb(cd->cpld_base + CPLD_DESIGN_LO); cd 260 drivers/staging/fieldbus/anybuss/arcx-anybus.c snprintf(cd->version, sizeof(cd->version), "%c%d", cd 264 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->design_no, cd 265 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->version); cd 266 drivers/staging/fieldbus/anybuss/arcx-anybus.c cap = readb(cd->cpld_base + CPLD_CAP); cd 275 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->common_reset = !(cap & CPLD_CAP_SEP_RESETS); cd 276 drivers/staging/fieldbus/anybuss/arcx-anybus.c dev_info(dev, "supports %s", cd->common_reset ? cd 296 drivers/staging/fieldbus/anybuss/arcx-anybus.c config.driver_data = cd; cd 303 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->class_dev = kzalloc(sizeof(*cd->class_dev), GFP_KERNEL); cd 304 drivers/staging/fieldbus/anybuss/arcx-anybus.c if (!cd->class_dev) { cd 308 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->class_dev->class = controller_class; cd 309 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->class_dev->groups = controller_attribute_groups; cd 310 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->class_dev->parent = dev; cd 311 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->class_dev->id = id; cd 312 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->class_dev->release = controller_device_release; cd 313 drivers/staging/fieldbus/anybuss/arcx-anybus.c dev_set_name(cd->class_dev, "%d", cd->class_dev->id); cd 314 drivers/staging/fieldbus/anybuss/arcx-anybus.c dev_set_drvdata(cd->class_dev, cd); cd 315 drivers/staging/fieldbus/anybuss/arcx-anybus.c err = device_register(cd->class_dev); cd 320 drivers/staging/fieldbus/anybuss/arcx-anybus.c put_device(cd->class_dev); cd 324 drivers/staging/fieldbus/anybuss/arcx-anybus.c gpiod_set_value_cansleep(cd->reset_gpiod, 1); cd 330 drivers/staging/fieldbus/anybuss/arcx-anybus.c struct controller_priv *cd = platform_get_drvdata(pdev); cd 331 drivers/staging/fieldbus/anybuss/arcx-anybus.c int id = cd->class_dev->id; cd 333 drivers/staging/fieldbus/anybuss/arcx-anybus.c device_unregister(cd->class_dev); cd 335 drivers/staging/fieldbus/anybuss/arcx-anybus.c gpiod_set_value_cansleep(cd->reset_gpiod, 1); cd 247 drivers/staging/fieldbus/anybuss/host.c typedef int (*ab_task_fn_t)(struct anybuss_host *cd, cd 249 drivers/staging/fieldbus/anybuss/host.c typedef void (*ab_done_fn_t)(struct anybuss_host *cd); cd 316 drivers/staging/fieldbus/anybuss/host.c static void __ab_task_finish(struct ab_task *t, struct anybuss_host *cd) cd 319 drivers/staging/fieldbus/anybuss/host.c t->done_fn(cd); cd 324 drivers/staging/fieldbus/anybuss/host.c ab_task_dequeue_finish_put(struct kfifo *q, struct anybuss_host *cd) cd 331 drivers/staging/fieldbus/anybuss/host.c __ab_task_finish(t, cd); cd 390 drivers/staging/fieldbus/anybuss/host.c static void reset_assert(struct anybuss_host *cd) cd 392 drivers/staging/fieldbus/anybuss/host.c cd->reset(cd->dev, true); cd 395 drivers/staging/fieldbus/anybuss/host.c static void reset_deassert(struct anybuss_host *cd) cd 397 drivers/staging/fieldbus/anybuss/host.c cd->reset(cd->dev, false); cd 459 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = data; cd 470 drivers/staging/fieldbus/anybuss/host.c ind_ab = read_ind_ab(cd->regmap); cd 473 drivers/staging/fieldbus/anybuss/host.c atomic_set(&cd->ind_ab, ind_ab); cd 474 drivers/staging/fieldbus/anybuss/host.c complete(&cd->card_boot); cd 475 drivers/staging/fieldbus/anybuss/host.c wake_up(&cd->wq); cd 481 drivers/staging/fieldbus/anybuss/host.c static int task_fn_power_off(struct anybuss_host *cd, cd 484 drivers/staging/fieldbus/anybuss/host.c struct anybuss_client *client = cd->client; cd 486 drivers/staging/fieldbus/anybuss/host.c if (!cd->power_on) cd 488 drivers/staging/fieldbus/anybuss/host.c disable_irq(cd->irq); cd 489 drivers/staging/fieldbus/anybuss/host.c reset_assert(cd); cd 490 drivers/staging/fieldbus/anybuss/host.c atomic_set(&cd->ind_ab, IND_AB_UPDATED); cd 493 drivers/staging/fieldbus/anybuss/host.c cd->power_on = false; cd 497 drivers/staging/fieldbus/anybuss/host.c static int task_fn_power_on_2(struct anybuss_host *cd, cd 500 drivers/staging/fieldbus/anybuss/host.c if (completion_done(&cd->card_boot)) { cd 501 drivers/staging/fieldbus/anybuss/host.c cd->power_on = true; cd 505 drivers/staging/fieldbus/anybuss/host.c disable_irq(cd->irq); cd 506 drivers/staging/fieldbus/anybuss/host.c reset_assert(cd); cd 507 drivers/staging/fieldbus/anybuss/host.c dev_err(cd->dev, "power on timed out"); cd 513 drivers/staging/fieldbus/anybuss/host.c static int task_fn_power_on(struct anybuss_host *cd, cd 518 drivers/staging/fieldbus/anybuss/host.c if (cd->power_on) cd 524 drivers/staging/fieldbus/anybuss/host.c regmap_read(cd->regmap, REG_IND_AB, &dummy); cd 525 drivers/staging/fieldbus/anybuss/host.c reinit_completion(&cd->card_boot); cd 526 drivers/staging/fieldbus/anybuss/host.c enable_irq(cd->irq); cd 527 drivers/staging/fieldbus/anybuss/host.c reset_deassert(cd); cd 534 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 538 drivers/staging/fieldbus/anybuss/host.c t = ab_task_create_get(cd->qcache, power_on ? cd 542 drivers/staging/fieldbus/anybuss/host.c err = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); cd 550 drivers/staging/fieldbus/anybuss/host.c static int task_fn_area_3(struct anybuss_host *cd, struct ab_task *t) cd 554 drivers/staging/fieldbus/anybuss/host.c if (!cd->power_on) cd 556 drivers/staging/fieldbus/anybuss/host.c if (atomic_read(&cd->ind_ab) & pd->flags) { cd 565 drivers/staging/fieldbus/anybuss/host.c static int task_fn_area_2(struct anybuss_host *cd, struct ab_task *t) cd 571 drivers/staging/fieldbus/anybuss/host.c if (!cd->power_on) cd 573 drivers/staging/fieldbus/anybuss/host.c regmap_read(cd->regmap, REG_IND_AP, &ind_ap); cd 574 drivers/staging/fieldbus/anybuss/host.c if (!(atomic_read(&cd->ind_ab) & pd->flags)) { cd 577 drivers/staging/fieldbus/anybuss/host.c dev_warn(cd->dev, "timeout waiting for area"); cd 585 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_write(cd->regmap, pd->addr, pd->buf, cd 588 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, pd->addr, pd->buf, cd 593 drivers/staging/fieldbus/anybuss/host.c ret = write_ind_ap(cd->regmap, ind_ap); cd 600 drivers/staging/fieldbus/anybuss/host.c static int task_fn_area(struct anybuss_host *cd, struct ab_task *t) cd 606 drivers/staging/fieldbus/anybuss/host.c if (!cd->power_on) cd 608 drivers/staging/fieldbus/anybuss/host.c regmap_read(cd->regmap, REG_IND_AP, &ind_ap); cd 612 drivers/staging/fieldbus/anybuss/host.c ret = write_ind_ap(cd->regmap, ind_ap); cd 696 drivers/staging/fieldbus/anybuss/host.c static int task_fn_mbox_2(struct anybuss_host *cd, struct ab_task *t) cd 701 drivers/staging/fieldbus/anybuss/host.c if (!cd->power_on) cd 703 drivers/staging/fieldbus/anybuss/host.c regmap_read(cd->regmap, REG_IND_AP, &ind_ap); cd 704 drivers/staging/fieldbus/anybuss/host.c if (((atomic_read(&cd->ind_ab) ^ ind_ap) & IND_AX_MOUT) == 0) { cd 711 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, MBOX_OUT_AREA, &pd->hdr, cd 713 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, MBOX_OUT_AREA + sizeof(pd->hdr), cd 717 drivers/staging/fieldbus/anybuss/host.c return write_ind_ap(cd->regmap, ind_ap); cd 720 drivers/staging/fieldbus/anybuss/host.c static int task_fn_mbox(struct anybuss_host *cd, struct ab_task *t) cd 726 drivers/staging/fieldbus/anybuss/host.c if (!cd->power_on) cd 728 drivers/staging/fieldbus/anybuss/host.c regmap_read(cd->regmap, REG_IND_AP, &ind_ap); cd 729 drivers/staging/fieldbus/anybuss/host.c if ((atomic_read(&cd->ind_ab) ^ ind_ap) & IND_AX_MIN) { cd 736 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_write(cd->regmap, MBOX_IN_AREA, &pd->hdr, cd 738 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_write(cd->regmap, MBOX_IN_AREA + sizeof(pd->hdr), cd 742 drivers/staging/fieldbus/anybuss/host.c ret = write_ind_ap(cd->regmap, ind_ap); cd 804 drivers/staging/fieldbus/anybuss/host.c static int _anybus_mbox_cmd(struct anybuss_host *cd, cd 821 drivers/staging/fieldbus/anybuss/host.c t = ab_task_create_get(cd->qcache, task_fn_mbox); cd 844 drivers/staging/fieldbus/anybuss/host.c err = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); cd 851 drivers/staging/fieldbus/anybuss/host.c err = mbox_cmd_err(cd->dev, pd); cd 862 drivers/staging/fieldbus/anybuss/host.c static void process_q(struct anybuss_host *cd, struct kfifo *q) cd 870 drivers/staging/fieldbus/anybuss/host.c t->result = t->task_fn(cd, t); cd 872 drivers/staging/fieldbus/anybuss/host.c ab_task_dequeue_finish_put(q, cd); cd 889 drivers/staging/fieldbus/anybuss/host.c static void process_qs(struct anybuss_host *cd) cd 892 drivers/staging/fieldbus/anybuss/host.c struct kfifo *qs = cd->qs; cd 893 drivers/staging/fieldbus/anybuss/host.c size_t nqs = ARRAY_SIZE(cd->qs); cd 896 drivers/staging/fieldbus/anybuss/host.c process_q(cd, qs); cd 899 drivers/staging/fieldbus/anybuss/host.c static void softint_ack(struct anybuss_host *cd) cd 903 drivers/staging/fieldbus/anybuss/host.c cd->softint_pending = false; cd 904 drivers/staging/fieldbus/anybuss/host.c if (!cd->power_on) cd 906 drivers/staging/fieldbus/anybuss/host.c regmap_read(cd->regmap, REG_IND_AP, &ind_ap); cd 908 drivers/staging/fieldbus/anybuss/host.c ind_ap |= atomic_read(&cd->ind_ab) & IND_AX_EVNT; cd 909 drivers/staging/fieldbus/anybuss/host.c write_ind_ap(cd->regmap, ind_ap); cd 912 drivers/staging/fieldbus/anybuss/host.c static void process_softint(struct anybuss_host *cd) cd 914 drivers/staging/fieldbus/anybuss/host.c struct anybuss_client *client = cd->client; cd 920 drivers/staging/fieldbus/anybuss/host.c if (!cd->power_on) cd 922 drivers/staging/fieldbus/anybuss/host.c if (cd->softint_pending) cd 924 drivers/staging/fieldbus/anybuss/host.c regmap_read(cd->regmap, REG_IND_AP, &ind_ap); cd 925 drivers/staging/fieldbus/anybuss/host.c if (!((atomic_read(&cd->ind_ab) ^ ind_ap) & IND_AX_EVNT)) cd 928 drivers/staging/fieldbus/anybuss/host.c regmap_read(cd->regmap, REG_EVENT_CAUSE, &ev); cd 932 drivers/staging/fieldbus/anybuss/host.c dev_dbg(cd->dev, "Fieldbus ON"); cd 937 drivers/staging/fieldbus/anybuss/host.c dev_dbg(cd->dev, "Fieldbus OFF"); cd 942 drivers/staging/fieldbus/anybuss/host.c dev_dbg(cd->dev, "Fieldbus data changed"); cd 949 drivers/staging/fieldbus/anybuss/host.c t = create_area_writer(cd->qcache, IND_AX_FBCTRL, cd 956 drivers/staging/fieldbus/anybuss/host.c ret = ab_task_enqueue(t, cd->powerq, &cd->qlock, &cd->wq); cd 958 drivers/staging/fieldbus/anybuss/host.c cd->softint_pending = true; cd 962 drivers/staging/fieldbus/anybuss/host.c softint_ack(cd); cd 967 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = data; cd 968 drivers/staging/fieldbus/anybuss/host.c struct kfifo *qs = cd->qs; cd 969 drivers/staging/fieldbus/anybuss/host.c size_t nqs = ARRAY_SIZE(cd->qs); cd 988 drivers/staging/fieldbus/anybuss/host.c ind_ab = atomic_read(&cd->ind_ab); cd 989 drivers/staging/fieldbus/anybuss/host.c process_qs(cd); cd 990 drivers/staging/fieldbus/anybuss/host.c process_softint(cd); cd 991 drivers/staging/fieldbus/anybuss/host.c wait_event_timeout(cd->wq, cd 992 drivers/staging/fieldbus/anybuss/host.c (atomic_read(&cd->ind_ab) != ind_ab) || cd 1012 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 1038 drivers/staging/fieldbus/anybuss/host.c ret = _anybus_mbox_cmd(cd, CMD_START_INIT, false, NULL, 0, cd 1042 drivers/staging/fieldbus/anybuss/host.c return _anybus_mbox_cmd(cd, CMD_ANYBUS_INIT, false, cd 1049 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 1051 drivers/staging/fieldbus/anybuss/host.c return _anybus_mbox_cmd(cd, CMD_END_INIT, false, NULL, 0, cd 1059 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 1068 drivers/staging/fieldbus/anybuss/host.c t = create_area_reader(cd->qcache, IND_AX_FBCTRL, addr, count); cd 1071 drivers/staging/fieldbus/anybuss/host.c ret = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); cd 1086 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 1092 drivers/staging/fieldbus/anybuss/host.c t = create_area_user_writer(cd->qcache, IND_AX_IN, cd 1096 drivers/staging/fieldbus/anybuss/host.c ret = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); cd 1111 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 1117 drivers/staging/fieldbus/anybuss/host.c t = create_area_reader(cd->qcache, IND_AX_OUT, cd 1121 drivers/staging/fieldbus/anybuss/host.c ret = ab_task_enqueue_wait(t, cd->powerq, &cd->qlock, &cd->wq); cd 1139 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 1141 drivers/staging/fieldbus/anybuss/host.c return _anybus_mbox_cmd(cd, cmd_num, true, buf, count, NULL, 0, cd 1149 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 1151 drivers/staging/fieldbus/anybuss/host.c return _anybus_mbox_cmd(cd, cmd_num, true, NULL, 0, NULL, 0, cd 1159 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = client->host; cd 1161 drivers/staging/fieldbus/anybuss/host.c return _anybus_mbox_cmd(cd, cmd_num, true, NULL, 0, buf, count, cd 1268 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd; cd 1270 drivers/staging/fieldbus/anybuss/host.c cd = devm_kzalloc(dev, sizeof(*cd), GFP_KERNEL); cd 1271 drivers/staging/fieldbus/anybuss/host.c if (!cd) cd 1273 drivers/staging/fieldbus/anybuss/host.c cd->dev = dev; cd 1274 drivers/staging/fieldbus/anybuss/host.c cd->host_idx = ops->host_idx; cd 1275 drivers/staging/fieldbus/anybuss/host.c init_completion(&cd->card_boot); cd 1276 drivers/staging/fieldbus/anybuss/host.c init_waitqueue_head(&cd->wq); cd 1277 drivers/staging/fieldbus/anybuss/host.c for (i = 0; i < ARRAY_SIZE(cd->qs); i++) { cd 1278 drivers/staging/fieldbus/anybuss/host.c ret = taskq_alloc(dev, &cd->qs[i]); cd 1282 drivers/staging/fieldbus/anybuss/host.c if (WARN_ON(ARRAY_SIZE(cd->qs) < 3)) cd 1284 drivers/staging/fieldbus/anybuss/host.c cd->powerq = &cd->qs[0]; cd 1285 drivers/staging/fieldbus/anybuss/host.c cd->mboxq = &cd->qs[1]; cd 1286 drivers/staging/fieldbus/anybuss/host.c cd->areaq = &cd->qs[2]; cd 1287 drivers/staging/fieldbus/anybuss/host.c cd->reset = ops->reset; cd 1288 drivers/staging/fieldbus/anybuss/host.c if (!cd->reset) cd 1290 drivers/staging/fieldbus/anybuss/host.c cd->regmap = ops->regmap; cd 1291 drivers/staging/fieldbus/anybuss/host.c if (!cd->regmap) cd 1293 drivers/staging/fieldbus/anybuss/host.c spin_lock_init(&cd->qlock); cd 1294 drivers/staging/fieldbus/anybuss/host.c cd->qcache = kmem_cache_create(dev_name(dev), cd 1296 drivers/staging/fieldbus/anybuss/host.c if (!cd->qcache) cd 1298 drivers/staging/fieldbus/anybuss/host.c cd->irq = ops->irq; cd 1299 drivers/staging/fieldbus/anybuss/host.c if (cd->irq <= 0) { cd 1307 drivers/staging/fieldbus/anybuss/host.c reset_assert(cd); cd 1308 drivers/staging/fieldbus/anybuss/host.c if (test_dpram(cd->regmap)) { cd 1313 drivers/staging/fieldbus/anybuss/host.c ret = devm_request_threaded_irq(dev, cd->irq, NULL, irq_handler, cd 1314 drivers/staging/fieldbus/anybuss/host.c IRQF_ONESHOT, dev_name(dev), cd); cd 1327 drivers/staging/fieldbus/anybuss/host.c reset_deassert(cd); cd 1328 drivers/staging/fieldbus/anybuss/host.c if (!wait_for_completion_timeout(&cd->card_boot, TIMEOUT)) { cd 1337 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, REG_BOOTLOADER_V, val, 2); cd 1340 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, REG_API_V, val, 2); cd 1342 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, REG_FIELDBUS_V, val, 2); cd 1344 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, REG_SERIAL_NO, val, 4); cd 1348 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, REG_FIELDBUS_TYPE, &fieldbus_type, cd 1351 drivers/staging/fieldbus/anybuss/host.c regmap_bulk_read(cd->regmap, REG_MODULE_SW_V, val, 2); cd 1355 drivers/staging/fieldbus/anybuss/host.c disable_irq(cd->irq); cd 1356 drivers/staging/fieldbus/anybuss/host.c reset_assert(cd); cd 1357 drivers/staging/fieldbus/anybuss/host.c atomic_set(&cd->ind_ab, IND_AB_UPDATED); cd 1359 drivers/staging/fieldbus/anybuss/host.c cd->qthread = kthread_run(qthread_fn, cd, dev_name(dev)); cd 1360 drivers/staging/fieldbus/anybuss/host.c if (IS_ERR(cd->qthread)) { cd 1362 drivers/staging/fieldbus/anybuss/host.c ret = PTR_ERR(cd->qthread); cd 1369 drivers/staging/fieldbus/anybuss/host.c cd->client = kzalloc(sizeof(*cd->client), GFP_KERNEL); cd 1370 drivers/staging/fieldbus/anybuss/host.c if (!cd->client) { cd 1374 drivers/staging/fieldbus/anybuss/host.c cd->client->anybus_id = fieldbus_type; cd 1375 drivers/staging/fieldbus/anybuss/host.c cd->client->host = cd; cd 1376 drivers/staging/fieldbus/anybuss/host.c cd->client->dev.bus = &anybus_bus; cd 1377 drivers/staging/fieldbus/anybuss/host.c cd->client->dev.parent = dev; cd 1378 drivers/staging/fieldbus/anybuss/host.c cd->client->dev.release = client_device_release; cd 1379 drivers/staging/fieldbus/anybuss/host.c cd->client->dev.of_node = cd 1380 drivers/staging/fieldbus/anybuss/host.c anybus_of_find_child_device(dev, cd->host_idx); cd 1381 drivers/staging/fieldbus/anybuss/host.c dev_set_name(&cd->client->dev, "anybuss.card%d", cd->host_idx); cd 1382 drivers/staging/fieldbus/anybuss/host.c ret = device_register(&cd->client->dev); cd 1385 drivers/staging/fieldbus/anybuss/host.c return cd; cd 1387 drivers/staging/fieldbus/anybuss/host.c device_unregister(&cd->client->dev); cd 1389 drivers/staging/fieldbus/anybuss/host.c kthread_stop(cd->qthread); cd 1391 drivers/staging/fieldbus/anybuss/host.c reset_assert(cd); cd 1393 drivers/staging/fieldbus/anybuss/host.c kmem_cache_destroy(cd->qcache); cd 1400 drivers/staging/fieldbus/anybuss/host.c struct anybuss_host *cd = host; cd 1402 drivers/staging/fieldbus/anybuss/host.c device_unregister(&cd->client->dev); cd 1403 drivers/staging/fieldbus/anybuss/host.c kthread_stop(cd->qthread); cd 1404 drivers/staging/fieldbus/anybuss/host.c reset_assert(cd); cd 1405 drivers/staging/fieldbus/anybuss/host.c kmem_cache_destroy(cd->qcache); cd 2974 drivers/tty/cyclades.c u32 cd; cd 2978 drivers/tty/cyclades.c cd = cyy_readb(info, CyMSVR1) & CyDCD; cd 2981 drivers/tty/cyclades.c return cd; cd 47 drivers/tty/hvc/hvsi_lib.c static void hvsi_cd_change(struct hvsi_priv *pv, int cd) cd 49 drivers/tty/hvc/hvsi_lib.c if (cd) cd 340 drivers/tty/serial/atmel_serial.c unsigned int cd; cd 345 drivers/tty/serial/atmel_serial.c cd = mck_rate; cd 346 drivers/tty/serial/atmel_serial.c return cd; cd 368 drivers/tty/serial/atmel_serial.c unsigned int cd, fidi; cd 406 drivers/tty/serial/atmel_serial.c cd = atmel_calc_cd(port, iso7816conf); cd 425 drivers/tty/serial/atmel_serial.c atmel_uart_writel(port, ATMEL_US_BRGR, cd); cd 2137 drivers/tty/serial/atmel_serial.c unsigned int old_mode, mode, imr, quot, baud, div, cd, fp = 0; cd 2286 drivers/tty/serial/atmel_serial.c cd = div >> 3; cd 2289 drivers/tty/serial/atmel_serial.c cd = uart_get_divisor(port, baud); cd 2292 drivers/tty/serial/atmel_serial.c if (cd > 65535) { /* BRGR is 16-bit, so switch to slower clock */ cd 2293 drivers/tty/serial/atmel_serial.c cd /= 8; cd 2296 drivers/tty/serial/atmel_serial.c quot = cd | fp << ATMEL_US_FP_OFFSET; cd 407 drivers/tty/serial/xilinx_uartps.c u32 cd, bdiv; cd 421 drivers/tty/serial/xilinx_uartps.c cd = DIV_ROUND_CLOSEST(clk, baud * (bdiv + 1)); cd 422 drivers/tty/serial/xilinx_uartps.c if (cd < 1 || cd > CDNS_UART_CD_MAX) cd 425 drivers/tty/serial/xilinx_uartps.c calc_baud = clk / (cd * (bdiv + 1)); cd 434 drivers/tty/serial/xilinx_uartps.c *rcd = cd; cd 457 drivers/tty/serial/xilinx_uartps.c u32 cd = 0, bdiv = 0; cd 462 drivers/tty/serial/xilinx_uartps.c calc_baud = cdns_uart_calc_baud_divs(port->uartclk, baud, &bdiv, &cd, cd 472 drivers/tty/serial/xilinx_uartps.c writel(cd, port->membase + CDNS_UART_BAUDGEN); cd 504 drivers/tty/serial/xilinx_uartps.c u32 bdiv, cd; cd 512 drivers/tty/serial/xilinx_uartps.c &bdiv, &cd, &div8)) { cd 1161 drivers/tty/serial/xilinx_uartps.c u32 cd = 0, bdiv = 0; cd 1166 drivers/tty/serial/xilinx_uartps.c &bdiv, &cd, &div8); cd 1172 drivers/tty/serial/xilinx_uartps.c writel(cd, port->membase + CDNS_UART_BAUDGEN); cd 3236 drivers/tty/synclink_gt.c int cd; cd 3277 drivers/tty/synclink_gt.c cd = tty_port_carrier_raised(port); cd 3278 drivers/tty/synclink_gt.c if (do_clocal || cd) cd 3259 drivers/tty/synclinkmp.c int cd; cd 3307 drivers/tty/synclinkmp.c cd = tty_port_carrier_raised(port); cd 3308 drivers/tty/synclinkmp.c if (do_clocal || cd) cd 780 drivers/usb/gadget/function/f_uvc.c struct uvc_camera_terminal_descriptor *cd; cd 793 drivers/usb/gadget/function/f_uvc.c cd = &opts->uvc_camera_terminal; cd 794 drivers/usb/gadget/function/f_uvc.c cd->bLength = UVC_DT_CAMERA_TERMINAL_SIZE(3); cd 795 drivers/usb/gadget/function/f_uvc.c cd->bDescriptorType = USB_DT_CS_INTERFACE; cd 796 drivers/usb/gadget/function/f_uvc.c cd->bDescriptorSubType = UVC_VC_INPUT_TERMINAL; cd 797 drivers/usb/gadget/function/f_uvc.c cd->bTerminalID = 1; cd 798 drivers/usb/gadget/function/f_uvc.c cd->wTerminalType = cpu_to_le16(0x0201); cd 799 drivers/usb/gadget/function/f_uvc.c cd->bAssocTerminal = 0; cd 800 drivers/usb/gadget/function/f_uvc.c cd->iTerminal = 0; cd 801 drivers/usb/gadget/function/f_uvc.c cd->wObjectiveFocalLengthMin = cpu_to_le16(0); cd 802 drivers/usb/gadget/function/f_uvc.c cd->wObjectiveFocalLengthMax = cpu_to_le16(0); cd 803 drivers/usb/gadget/function/f_uvc.c cd->wOcularFocalLength = cpu_to_le16(0); cd 804 drivers/usb/gadget/function/f_uvc.c cd->bControlSize = 3; cd 805 drivers/usb/gadget/function/f_uvc.c cd->bmControls[0] = 2; cd 806 drivers/usb/gadget/function/f_uvc.c cd->bmControls[1] = 0; cd 807 drivers/usb/gadget/function/f_uvc.c cd->bmControls[2] = 0; cd 842 drivers/usb/gadget/function/f_uvc.c ctl_cls[1] = (struct uvc_descriptor_header *)cd; cd 852 drivers/usb/gadget/function/f_uvc.c ctl_cls[1] = (struct uvc_descriptor_header *)cd; cd 370 drivers/usb/gadget/function/uvc_configfs.c struct uvc_camera_terminal_descriptor *cd; \ cd 378 drivers/usb/gadget/function/uvc_configfs.c cd = &opts->uvc_camera_terminal; \ cd 381 drivers/usb/gadget/function/uvc_configfs.c result = sprintf(page, "%u\n", le##bits##_to_cpu(cd->aname)); \ cd 411 drivers/usb/gadget/function/uvc_configfs.c struct uvc_camera_terminal_descriptor *cd; cd 420 drivers/usb/gadget/function/uvc_configfs.c cd = &opts->uvc_camera_terminal; cd 423 drivers/usb/gadget/function/uvc_configfs.c for (result = 0, i = 0; i < cd->bControlSize; ++i) { cd 424 drivers/usb/gadget/function/uvc_configfs.c result += sprintf(pg, "%u\n", cd->bmControls[i]); cd 484 drivers/usb/gadget/function/uvc_configfs.c struct uvc_output_terminal_descriptor *cd; \ cd 492 drivers/usb/gadget/function/uvc_configfs.c cd = &opts->uvc_output_terminal; \ cd 495 drivers/usb/gadget/function/uvc_configfs.c result = sprintf(page, "%u\n", le##bits##_to_cpu(cd->aname)); \ cd 1871 drivers/usb/gadget/function/uvc_configfs.c struct uvc_color_matching_descriptor *cd; \ cd 1878 drivers/usb/gadget/function/uvc_configfs.c cd = &opts->uvc_color_matching; \ cd 1881 drivers/usb/gadget/function/uvc_configfs.c result = sprintf(page, "%u\n", le##bits##_to_cpu(cd->aname)); \ cd 34 drivers/zorro/proc.c struct ConfigDev cd; cd 45 drivers/zorro/proc.c memset(&cd, 0, sizeof(cd)); cd 46 drivers/zorro/proc.c cd.cd_Rom = z->rom; cd 47 drivers/zorro/proc.c cd.cd_SlotAddr = cpu_to_be16(z->slotaddr); cd 48 drivers/zorro/proc.c cd.cd_SlotSize = cpu_to_be16(z->slotsize); cd 49 drivers/zorro/proc.c cd.cd_BoardAddr = cpu_to_be32(zorro_resource_start(z)); cd 50 drivers/zorro/proc.c cd.cd_BoardSize = cpu_to_be32(zorro_resource_len(z)); cd 52 drivers/zorro/proc.c if (copy_to_user(buf, (void *)&cd + pos, nbytes)) cd 88 drivers/zorro/zorro-sysfs.c struct ConfigDev cd; cd 91 drivers/zorro/zorro-sysfs.c memset(&cd, 0, sizeof(cd)); cd 92 drivers/zorro/zorro-sysfs.c cd.cd_Rom = z->rom; cd 93 drivers/zorro/zorro-sysfs.c cd.cd_SlotAddr = cpu_to_be16(z->slotaddr); cd 94 drivers/zorro/zorro-sysfs.c cd.cd_SlotSize = cpu_to_be16(z->slotsize); cd 95 drivers/zorro/zorro-sysfs.c cd.cd_BoardAddr = cpu_to_be32(zorro_resource_start(z)); cd 96 drivers/zorro/zorro-sysfs.c cd.cd_BoardSize = cpu_to_be32(zorro_resource_len(z)); cd 98 drivers/zorro/zorro-sysfs.c return memory_read_from_buffer(buf, count, &off, &cd, sizeof(cd)); cd 53 fs/char_dev.c struct char_device_struct *cd; cd 56 fs/char_dev.c for (cd = chrdevs[major_to_index(offset)]; cd; cd = cd->next) { cd 57 fs/char_dev.c if (cd->major == offset) cd 58 fs/char_dev.c seq_printf(f, "%3d %s\n", cd->major, cd->name); cd 68 fs/char_dev.c struct char_device_struct *cd; cd 77 fs/char_dev.c for (cd = chrdevs[major_to_index(i)]; cd; cd = cd->next) cd 78 fs/char_dev.c if (cd->major == i) cd 81 fs/char_dev.c if (cd == NULL) cd 100 fs/char_dev.c struct char_device_struct *cd, *curr, *prev = NULL; cd 116 fs/char_dev.c cd = kzalloc(sizeof(struct char_device_struct), GFP_KERNEL); cd 117 fs/char_dev.c if (cd == NULL) cd 150 fs/char_dev.c cd->major = major; cd 151 fs/char_dev.c cd->baseminor = baseminor; cd 152 fs/char_dev.c cd->minorct = minorct; cd 153 fs/char_dev.c strlcpy(cd->name, name, sizeof(cd->name)); cd 156 fs/char_dev.c cd->next = curr; cd 157 fs/char_dev.c chrdevs[i] = cd; cd 159 fs/char_dev.c cd->next = prev->next; cd 160 fs/char_dev.c prev->next = cd; cd 164 fs/char_dev.c return cd; cd 167 fs/char_dev.c kfree(cd); cd 174 fs/char_dev.c struct char_device_struct *cd = NULL, **cp; cd 184 fs/char_dev.c cd = *cp; cd 185 fs/char_dev.c *cp = cd->next; cd 188 fs/char_dev.c return cd; cd 202 fs/char_dev.c struct char_device_struct *cd; cd 210 fs/char_dev.c cd = __register_chrdev_region(MAJOR(n), MINOR(n), cd 212 fs/char_dev.c if (IS_ERR(cd)) cd 222 fs/char_dev.c return PTR_ERR(cd); cd 239 fs/char_dev.c struct char_device_struct *cd; cd 240 fs/char_dev.c cd = __register_chrdev_region(0, baseminor, count, name); cd 241 fs/char_dev.c if (IS_ERR(cd)) cd 242 fs/char_dev.c return PTR_ERR(cd); cd 243 fs/char_dev.c *dev = MKDEV(cd->major, cd->baseminor); cd 272 fs/char_dev.c struct char_device_struct *cd; cd 276 fs/char_dev.c cd = __register_chrdev_region(major, baseminor, count, name); cd 277 fs/char_dev.c if (IS_ERR(cd)) cd 278 fs/char_dev.c return PTR_ERR(cd); cd 288 fs/char_dev.c err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); cd 292 fs/char_dev.c cd->cdev = cdev; cd 294 fs/char_dev.c return major ? 0 : cd->major; cd 298 fs/char_dev.c kfree(__unregister_chrdev_region(cd->major, baseminor, count)); cd 338 fs/char_dev.c struct char_device_struct *cd; cd 340 fs/char_dev.c cd = __unregister_chrdev_region(major, baseminor, count); cd 341 fs/char_dev.c if (cd && cd->cdev) cd 342 fs/char_dev.c cdev_del(cd->cdev); cd 343 fs/char_dev.c kfree(cd); cd 152 fs/jfs/jfs_txnmgr.c struct tlock * tlck, struct commit * cd); cd 163 fs/jfs/jfs_txnmgr.c struct commit * cd); cd 1128 fs/jfs/jfs_txnmgr.c struct commit cd; cd 1145 fs/jfs/jfs_txnmgr.c sb = cd.sb = iplist[0]->i_sb; cd 1146 fs/jfs/jfs_txnmgr.c cd.tid = tid; cd 1156 fs/jfs/jfs_txnmgr.c cd.log = log; cd 1159 fs/jfs/jfs_txnmgr.c lrd = &cd.lrd; cd 1175 fs/jfs/jfs_txnmgr.c cd.iplist = iplist; cd 1176 fs/jfs/jfs_txnmgr.c cd.nip = nip; cd 1190 fs/jfs/jfs_txnmgr.c for (k = 0; k < cd.nip; k++) { cd 1191 fs/jfs/jfs_txnmgr.c top = (cd.iplist[k])->i_ino; cd 1192 fs/jfs/jfs_txnmgr.c for (n = k + 1; n < cd.nip; n++) { cd 1193 fs/jfs/jfs_txnmgr.c ip = cd.iplist[n]; cd 1196 fs/jfs/jfs_txnmgr.c cd.iplist[n] = cd.iplist[k]; cd 1197 fs/jfs/jfs_txnmgr.c cd.iplist[k] = ip; cd 1201 fs/jfs/jfs_txnmgr.c ip = cd.iplist[k]; cd 1259 fs/jfs/jfs_txnmgr.c if ((rc = txLog(log, tblk, &cd))) cd 1337 fs/jfs/jfs_txnmgr.c for (k = 0; k < cd.nip; k++) { cd 1338 fs/jfs/jfs_txnmgr.c ip = cd.iplist[k]; cd 1368 fs/jfs/jfs_txnmgr.c static int txLog(struct jfs_log * log, struct tblock * tblk, struct commit * cd) cd 1374 fs/jfs/jfs_txnmgr.c struct lrd *lrd = &cd->lrd; cd 1401 fs/jfs/jfs_txnmgr.c diLog(log, tblk, lrd, tlck, cd); cd 1426 fs/jfs/jfs_txnmgr.c struct tlock * tlck, struct commit * cd) cd 1481 fs/jfs/jfs_txnmgr.c cpu_to_le32((u32) (size_t) cd->iplist[1]); cd 1483 fs/jfs/jfs_txnmgr.c cpu_to_le32((u32) (size_t) cd->iplist[2]); cd 35 fs/nfs/cache_lib.c int nfs_cache_upcall(struct cache_detail *cd, char *entry_name) cd 44 fs/nfs/cache_lib.c cd->name, cd 116 fs/nfs/cache_lib.c int nfs_cache_register_sb(struct super_block *sb, struct cache_detail *cd) cd 122 fs/nfs/cache_lib.c ret = sunrpc_cache_register_pipefs(dir, cd->name, 0600, cd); cd 127 fs/nfs/cache_lib.c int nfs_cache_register_net(struct net *net, struct cache_detail *cd) cd 132 fs/nfs/cache_lib.c sunrpc_init_cache_detail(cd); cd 135 fs/nfs/cache_lib.c ret = nfs_cache_register_sb(pipefs_sb, cd); cd 138 fs/nfs/cache_lib.c sunrpc_destroy_cache_detail(cd); cd 143 fs/nfs/cache_lib.c void nfs_cache_unregister_sb(struct super_block *sb, struct cache_detail *cd) cd 145 fs/nfs/cache_lib.c sunrpc_cache_unregister_pipefs(cd); cd 148 fs/nfs/cache_lib.c void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd) cd 154 fs/nfs/cache_lib.c nfs_cache_unregister_sb(pipefs_sb, cd); cd 157 fs/nfs/cache_lib.c sunrpc_destroy_cache_detail(cd); cd 22 fs/nfs/cache_lib.h extern int nfs_cache_upcall(struct cache_detail *cd, char *entry_name); cd 27 fs/nfs/cache_lib.h extern int nfs_cache_register_net(struct net *net, struct cache_detail *cd); cd 28 fs/nfs/cache_lib.h extern void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd); cd 30 fs/nfs/cache_lib.h struct cache_detail *cd); cd 32 fs/nfs/cache_lib.h struct cache_detail *cd); cd 141 fs/nfs/dns_resolve.c static void nfs_dns_request(struct cache_detail *cd, cd 151 fs/nfs/dns_resolve.c static int nfs_dns_upcall(struct cache_detail *cd, cd 157 fs/nfs/dns_resolve.c ret = nfs_cache_upcall(cd, key->hostname); cd 159 fs/nfs/dns_resolve.c ret = sunrpc_cache_pipe_upcall(cd, ch); cd 177 fs/nfs/dns_resolve.c static int nfs_dns_show(struct seq_file *m, struct cache_detail *cd, cd 203 fs/nfs/dns_resolve.c static struct nfs_dns_ent *nfs_dns_lookup(struct cache_detail *cd, cd 208 fs/nfs/dns_resolve.c ch = sunrpc_cache_lookup_rcu(cd, cd 216 fs/nfs/dns_resolve.c static struct nfs_dns_ent *nfs_dns_update(struct cache_detail *cd, cd 222 fs/nfs/dns_resolve.c ch = sunrpc_cache_update(cd, cd 230 fs/nfs/dns_resolve.c static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen) cd 245 fs/nfs/dns_resolve.c key.addrlen = rpc_pton(cd->net, buf1, len, cd 264 fs/nfs/dns_resolve.c item = nfs_dns_lookup(cd, &key); cd 271 fs/nfs/dns_resolve.c item = nfs_dns_update(cd, &key, item); cd 276 fs/nfs/dns_resolve.c cache_put(&item->h, cd); cd 281 fs/nfs/dns_resolve.c static int do_cache_lookup(struct cache_detail *cd, cd 288 fs/nfs/dns_resolve.c *item = nfs_dns_lookup(cd, key); cd 290 fs/nfs/dns_resolve.c ret = cache_check(cd, &(*item)->h, &dreq->req); cd 297 fs/nfs/dns_resolve.c static int do_cache_lookup_nowait(struct cache_detail *cd, cd 303 fs/nfs/dns_resolve.c *item = nfs_dns_lookup(cd, key); cd 309 fs/nfs/dns_resolve.c || cd->flush_time > (*item)->h.last_refresh) cd 316 fs/nfs/dns_resolve.c cache_put(&(*item)->h, cd); cd 322 fs/nfs/dns_resolve.c static int do_cache_lookup_wait(struct cache_detail *cd, cd 332 fs/nfs/dns_resolve.c ret = do_cache_lookup(cd, key, item, dreq); cd 336 fs/nfs/dns_resolve.c ret = do_cache_lookup_nowait(cd, key, item); cd 431 fs/nfs/dns_resolve.c struct cache_detail *cd = nn->nfs_dns_resolve; cd 434 fs/nfs/dns_resolve.c if (cd == NULL) cd 442 fs/nfs/dns_resolve.c ret = nfs_cache_register_sb(sb, cd); cd 445 fs/nfs/dns_resolve.c nfs_cache_unregister_sb(sb, cd); cd 53 fs/nfsd/export.c static void expkey_request(struct cache_detail *cd, cd 68 fs/nfsd/export.c static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, cd 70 fs/nfsd/export.c static struct svc_expkey *svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *); cd 72 fs/nfsd/export.c static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) cd 128 fs/nfsd/export.c ek = svc_expkey_lookup(cd, &key); cd 142 fs/nfsd/export.c ek = svc_expkey_update(cd, &key, ek); cd 152 fs/nfsd/export.c ek = svc_expkey_update(cd, &key, ek); cd 160 fs/nfsd/export.c cache_put(&ek->h, cd); cd 168 fs/nfsd/export.c struct cache_detail *cd, cd 276 fs/nfsd/export.c svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *item) cd 281 fs/nfsd/export.c ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); cd 289 fs/nfsd/export.c svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, cd 295 fs/nfsd/export.c ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); cd 333 fs/nfsd/export.c static void svc_export_request(struct cache_detail *cd, cd 524 fs/nfsd/export.c static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen) cd 563 fs/nfsd/export.c exp.cd = cd; cd 672 fs/nfsd/export.c struct cache_detail *cd, cd 726 fs/nfsd/export.c new->cd = item->cd; cd 796 fs/nfsd/export.c ch = sunrpc_cache_lookup_rcu(exp->cd, &exp->h, hash); cd 809 fs/nfsd/export.c ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); cd 818 fs/nfsd/export.c exp_find_key(struct cache_detail *cd, struct auth_domain *clp, int fsid_type, cd 831 fs/nfsd/export.c ek = svc_expkey_lookup(cd, &key); cd 834 fs/nfsd/export.c err = cache_check(cd, &ek->h, reqp); cd 841 fs/nfsd/export.c exp_get_by_name(struct cache_detail *cd, struct auth_domain *clp, cd 852 fs/nfsd/export.c key.cd = cd; cd 857 fs/nfsd/export.c err = cache_check(cd, &exp->h, reqp); cd 867 fs/nfsd/export.c exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path) cd 870 fs/nfsd/export.c struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL); cd 876 fs/nfsd/export.c exp = exp_get_by_name(cd, clp, path, NULL); cd 900 fs/nfsd/export.c struct cache_detail *cd = nn->svc_export_cache; cd 913 fs/nfsd/export.c exp = exp_parent(cd, clp, &path); cd 935 fs/nfsd/export.c static struct svc_export *exp_find(struct cache_detail *cd, cd 940 fs/nfsd/export.c struct nfsd_net *nn = net_generic(cd->net, nfsd_net_id); cd 945 fs/nfsd/export.c exp = exp_get_by_name(cd, clp, &ek->ek_path, reqp); cd 999 fs/nfsd/export.c struct cache_detail *cd = nn->svc_export_cache; cd 1005 fs/nfsd/export.c exp = exp_get_by_name(cd, rqstp->rq_client, path, &rqstp->rq_chandle); cd 1017 fs/nfsd/export.c gssexp = exp_get_by_name(cd, rqstp->rq_gssclient, path, &rqstp->rq_chandle); cd 1030 fs/nfsd/export.c struct cache_detail *cd = nn->svc_export_cache; cd 1036 fs/nfsd/export.c exp = exp_find(cd, rqstp->rq_client, fsid_type, cd 1049 fs/nfsd/export.c gssexp = exp_find(cd, rqstp->rq_gssclient, fsid_type, fsidv, cd 1218 fs/nfsd/export.c struct cache_detail *cd = m->private; cd 1227 fs/nfsd/export.c if (cache_check(cd, &exp->h, NULL)) cd 1230 fs/nfsd/export.c return svc_export_show(m, cd, cp); cd 63 fs/nfsd/export.h struct cache_detail *cd; cd 107 fs/nfsd/export.h cache_put(&exp->h, exp->cd); cd 833 fs/nfsd/nfs3xdr.c encode_entry_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, cd 840 fs/nfsd/nfs3xdr.c cd->offset = p; /* remember pointer */ cd 847 fs/nfsd/nfs3xdr.c compose_entry_fh(struct nfsd3_readdirres *cd, struct svc_fh *fhp, cd 854 fs/nfsd/nfs3xdr.c dparent = cd->fh.fh_dentry; cd 855 fs/nfsd/nfs3xdr.c exp = cd->fh.fh_export; cd 875 fs/nfsd/nfs3xdr.c rv = fh_compose(fhp, exp, dchild, &cd->fh); cd 881 fs/nfsd/nfs3xdr.c static __be32 *encode_entryplus_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, int namlen, u64 ino) cd 883 fs/nfsd/nfs3xdr.c struct svc_fh *fh = &cd->scratch; cd 887 fs/nfsd/nfs3xdr.c err = compose_entry_fh(cd, fh, name, namlen, ino); cd 893 fs/nfsd/nfs3xdr.c p = encode_post_op_attr(cd->rqstp, p, fh); cd 917 fs/nfsd/nfs3xdr.c struct nfsd3_readdirres *cd = container_of(ccd, struct nfsd3_readdirres, cd 919 fs/nfsd/nfs3xdr.c __be32 *p = cd->buffer; cd 926 fs/nfsd/nfs3xdr.c if (cd->offset) { cd 929 fs/nfsd/nfs3xdr.c if (unlikely(cd->offset1)) { cd 931 fs/nfsd/nfs3xdr.c *cd->offset = htonl(offset64 >> 32); cd 932 fs/nfsd/nfs3xdr.c *cd->offset1 = htonl(offset64 & 0xffffffff); cd 933 fs/nfsd/nfs3xdr.c cd->offset1 = NULL; cd 935 fs/nfsd/nfs3xdr.c xdr_encode_hyper(cd->offset, offset64); cd 937 fs/nfsd/nfs3xdr.c cd->offset = NULL; cd 952 fs/nfsd/nfs3xdr.c if (cd->buflen < elen) { cd 953 fs/nfsd/nfs3xdr.c cd->common.err = nfserr_toosmall; cd 958 fs/nfsd/nfs3xdr.c for (page = cd->rqstp->rq_respages + 1; cd 959 fs/nfsd/nfs3xdr.c page < cd->rqstp->rq_next_page; page++) { cd 962 fs/nfsd/nfs3xdr.c if (((caddr_t)cd->buffer >= curr_page_addr) && cd 963 fs/nfsd/nfs3xdr.c ((caddr_t)cd->buffer < curr_page_addr + PAGE_SIZE)) cd 967 fs/nfsd/nfs3xdr.c if ((caddr_t)(cd->buffer + elen) < (curr_page_addr + PAGE_SIZE)) { cd 970 fs/nfsd/nfs3xdr.c p = encode_entry_baggage(cd, p, name, namlen, ino); cd 973 fs/nfsd/nfs3xdr.c p = encode_entryplus_baggage(cd, p, name, namlen, ino); cd 974 fs/nfsd/nfs3xdr.c num_entry_words = p - cd->buffer; cd 984 fs/nfsd/nfs3xdr.c p1 = encode_entry_baggage(cd, p1, name, namlen, ino); cd 987 fs/nfsd/nfs3xdr.c p1 = encode_entryplus_baggage(cd, p1, name, namlen, ino); cd 991 fs/nfsd/nfs3xdr.c len1 = curr_page_addr + PAGE_SIZE - (caddr_t)cd->buffer; cd 1000 fs/nfsd/nfs3xdr.c cd->offset = cd->buffer + (cd->offset - tmp); cd 1002 fs/nfsd/nfs3xdr.c unsigned int offset_r = (cd->offset - tmp) << 2; cd 1012 fs/nfsd/nfs3xdr.c cd->offset = p + (cd->offset - tmp); cd 1014 fs/nfsd/nfs3xdr.c cd->offset -= len1 >> 2; cd 1018 fs/nfsd/nfs3xdr.c cd->offset = p + (cd->offset - tmp); cd 1019 fs/nfsd/nfs3xdr.c cd->offset1 = tmp; cd 1032 fs/nfsd/nfs3xdr.c cd->common.err = nfserr_toosmall; cd 1036 fs/nfsd/nfs3xdr.c cd->buflen -= num_entry_words; cd 1037 fs/nfsd/nfs3xdr.c cd->buffer = p; cd 1038 fs/nfsd/nfs3xdr.c cd->common.err = nfs_ok; cd 1044 fs/nfsd/nfs3xdr.c nfs3svc_encode_entry(void *cd, const char *name, cd 1047 fs/nfsd/nfs3xdr.c return encode_entry(cd, name, namlen, offset, ino, d_type, 0); cd 1051 fs/nfsd/nfs3xdr.c nfs3svc_encode_entry_plus(void *cd, const char *name, cd 1055 fs/nfsd/nfs3xdr.c return encode_entry(cd, name, namlen, offset, ino, d_type, 1); cd 126 fs/nfsd/nfs4idmap.c idtoname_request(struct cache_detail *cd, struct cache_head *ch, char **bpp, cd 151 fs/nfsd/nfs4idmap.c idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) cd 198 fs/nfsd/nfs4idmap.c idtoname_parse(struct cache_detail *cd, char *buf, int buflen) cd 240 fs/nfsd/nfs4idmap.c res = idtoname_lookup(cd, &ent); cd 254 fs/nfsd/nfs4idmap.c res = idtoname_update(cd, &ent, res); cd 258 fs/nfsd/nfs4idmap.c cache_put(&res->h, cd); cd 266 fs/nfsd/nfs4idmap.c idtoname_lookup(struct cache_detail *cd, struct ent *item) cd 268 fs/nfsd/nfs4idmap.c struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, cd 277 fs/nfsd/nfs4idmap.c idtoname_update(struct cache_detail *cd, struct ent *new, struct ent *old) cd 279 fs/nfsd/nfs4idmap.c struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, cd 299 fs/nfsd/nfs4idmap.c nametoid_request(struct cache_detail *cd, struct cache_head *ch, char **bpp, cd 322 fs/nfsd/nfs4idmap.c nametoid_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) cd 361 fs/nfsd/nfs4idmap.c nametoid_parse(struct cache_detail *cd, char *buf, int buflen) cd 408 fs/nfsd/nfs4idmap.c res = nametoid_lookup(cd, &ent); cd 411 fs/nfsd/nfs4idmap.c res = nametoid_update(cd, &ent, res); cd 415 fs/nfsd/nfs4idmap.c cache_put(&res->h, cd); cd 424 fs/nfsd/nfs4idmap.c nametoid_lookup(struct cache_detail *cd, struct ent *item) cd 426 fs/nfsd/nfs4idmap.c struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, cd 435 fs/nfsd/nfs4idmap.c nametoid_update(struct cache_detail *cd, struct ent *new, struct ent *old) cd 437 fs/nfsd/nfs4idmap.c struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, cd 2003 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(convert_to_wallclock(exp->cd->flush_time)); cd 2986 fs/nfsd/nfs4xdr.c nfsd4_encode_dirent_fattr(struct xdr_stream *xdr, struct nfsd4_readdir *cd, cd 2989 fs/nfsd/nfs4xdr.c struct svc_export *exp = cd->rd_fhp->fh_export; cd 2994 fs/nfsd/nfs4xdr.c dentry = lookup_one_len_unlocked(name, cd->rd_fhp->fh_dentry, namlen); cd 3019 fs/nfsd/nfs4xdr.c && !attributes_need_mount(cd->rd_bmval)) { cd 3028 fs/nfsd/nfs4xdr.c err = nfsd_cross_mnt(cd->rd_rqstp, &dentry, &exp); cd 3033 fs/nfsd/nfs4xdr.c nfserr = check_nfsd_access(exp, cd->rd_rqstp); cd 3039 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_fattr(xdr, NULL, exp, dentry, cd->rd_bmval, cd 3040 fs/nfsd/nfs4xdr.c cd->rd_rqstp, ignore_crossmnt); cd 3069 fs/nfsd/nfs4xdr.c struct nfsd4_readdir *cd = container_of(ccd, struct nfsd4_readdir, common); cd 3070 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = cd->xdr; cd 3081 fs/nfsd/nfs4xdr.c cd->common.err = nfs_ok; cd 3085 fs/nfsd/nfs4xdr.c if (cd->cookie_offset) { cd 3087 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, cd->cookie_offset, cd 3102 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_dirent_fattr(xdr, cd, name, namlen); cd 3120 fs/nfsd/nfs4xdr.c if (!(cd->rd_bmval[0] & FATTR4_WORD0_RDATTR_ERROR)) cd 3130 fs/nfsd/nfs4xdr.c if (entry_bytes > cd->rd_maxcount) cd 3132 fs/nfsd/nfs4xdr.c cd->rd_maxcount -= entry_bytes; cd 3137 fs/nfsd/nfs4xdr.c if (!cd->rd_dircount) cd 3140 fs/nfsd/nfs4xdr.c if (name_and_cookie > cd->rd_dircount && cd->cookie_offset) cd 3142 fs/nfsd/nfs4xdr.c cd->rd_dircount -= min(cd->rd_dircount, name_and_cookie); cd 3144 fs/nfsd/nfs4xdr.c cd->cookie_offset = cookie_offset; cd 3146 fs/nfsd/nfs4xdr.c cd->common.err = nfs_ok; cd 3150 fs/nfsd/nfs4xdr.c cd->common.err = nfserr; cd 521 fs/nfsd/nfsxdr.c struct nfsd_readdirres *cd = container_of(ccd, struct nfsd_readdirres, common); cd 522 fs/nfsd/nfsxdr.c __be32 *p = cd->buffer; cd 531 fs/nfsd/nfsxdr.c cd->common.err = nfserr_fbig; cd 534 fs/nfsd/nfsxdr.c if (cd->offset) cd 535 fs/nfsd/nfsxdr.c *cd->offset = htonl(offset); cd 541 fs/nfsd/nfsxdr.c if ((buflen = cd->buflen - slen - 4) < 0) { cd 542 fs/nfsd/nfsxdr.c cd->common.err = nfserr_toosmall; cd 546 fs/nfsd/nfsxdr.c cd->common.err = nfserr_fbig; cd 552 fs/nfsd/nfsxdr.c cd->offset = p; /* remember pointer */ cd 555 fs/nfsd/nfsxdr.c cd->buflen = buflen; cd 556 fs/nfsd/nfsxdr.c cd->buffer = p; cd 557 fs/nfsd/nfsxdr.c cd->common.err = nfs_ok; cd 22 include/linux/dca.h struct device *cd; cd 123 include/linux/iio/adc/ad_sigma_delta.h const struct ad_sd_calib_data *cd, unsigned int n); cd 160 include/linux/mfd/ucb1x00.h #define classdev_to_ucb1x00(cd) container_of(cd, struct ucb1x00, dev) cd 1304 include/linux/mlx5/mlx5_ifc.h u8 cd[0x1]; cd 27 include/linux/platform_data/b53.h struct dsa_chip_data cd; cd 11 include/linux/platform_data/mv88e6xxx.h struct dsa_chip_data cd; cd 76 include/linux/sunrpc/cache.h void (*cache_request)(struct cache_detail *cd, cd 84 include/linux/sunrpc/cache.h struct cache_detail *cd, cd 86 include/linux/sunrpc/cache.h void (*warn_no_listener)(struct cache_detail *cd, cd 195 include/linux/sunrpc/cache.h static inline void cache_put(struct cache_head *h, struct cache_detail *cd) cd 198 include/linux/sunrpc/cache.h h->expiry_time < cd->nextcheck) cd 199 include/linux/sunrpc/cache.h cd->nextcheck = h->expiry_time; cd 200 include/linux/sunrpc/cache.h kref_put(&h->ref, cd->cache_put); cd 218 include/linux/sunrpc/cache.h extern int cache_register_net(struct cache_detail *cd, struct net *net); cd 219 include/linux/sunrpc/cache.h extern void cache_unregister_net(struct cache_detail *cd, struct net *net); cd 222 include/linux/sunrpc/cache.h extern void cache_destroy_net(struct cache_detail *cd, struct net *net); cd 224 include/linux/sunrpc/cache.h extern void sunrpc_init_cache_detail(struct cache_detail *cd); cd 225 include/linux/sunrpc/cache.h extern void sunrpc_destroy_cache_detail(struct cache_detail *cd); cd 95 include/media/media-devnode.h #define to_media_devnode(cd) container_of(cd, struct media_devnode, dev) cd 320 include/media/v4l2-dev.h #define to_video_device(cd) container_of(cd, struct video_device, dev) cd 238 include/net/dsa.h struct dsa_chip_data *cd; cd 67 include/scsi/scsi_common.h int scsi_set_sense_field_pointer(u8 *buf, int buf_len, u16 fp, u8 bp, bool cd); cd 199 kernel/time/posix-clock.c static int get_clock_desc(const clockid_t id, struct posix_clock_desc *cd) cd 210 kernel/time/posix-clock.c cd->fp = fp; cd 211 kernel/time/posix-clock.c cd->clk = get_posix_clock(fp); cd 213 kernel/time/posix-clock.c err = cd->clk ? 0 : -ENODEV; cd 220 kernel/time/posix-clock.c static void put_clock_desc(struct posix_clock_desc *cd) cd 222 kernel/time/posix-clock.c put_posix_clock(cd->clk); cd 223 kernel/time/posix-clock.c fput(cd->fp); cd 228 kernel/time/posix-clock.c struct posix_clock_desc cd; cd 231 kernel/time/posix-clock.c err = get_clock_desc(id, &cd); cd 235 kernel/time/posix-clock.c if ((cd.fp->f_mode & FMODE_WRITE) == 0) { cd 240 kernel/time/posix-clock.c if (cd.clk->ops.clock_adjtime) cd 241 kernel/time/posix-clock.c err = cd.clk->ops.clock_adjtime(cd.clk, tx); cd 245 kernel/time/posix-clock.c put_clock_desc(&cd); cd 252 kernel/time/posix-clock.c struct posix_clock_desc cd; cd 255 kernel/time/posix-clock.c err = get_clock_desc(id, &cd); cd 259 kernel/time/posix-clock.c if (cd.clk->ops.clock_gettime) cd 260 kernel/time/posix-clock.c err = cd.clk->ops.clock_gettime(cd.clk, ts); cd 264 kernel/time/posix-clock.c put_clock_desc(&cd); cd 271 kernel/time/posix-clock.c struct posix_clock_desc cd; cd 274 kernel/time/posix-clock.c err = get_clock_desc(id, &cd); cd 278 kernel/time/posix-clock.c if (cd.clk->ops.clock_getres) cd 279 kernel/time/posix-clock.c err = cd.clk->ops.clock_getres(cd.clk, ts); cd 283 kernel/time/posix-clock.c put_clock_desc(&cd); cd 290 kernel/time/posix-clock.c struct posix_clock_desc cd; cd 293 kernel/time/posix-clock.c err = get_clock_desc(id, &cd); cd 297 kernel/time/posix-clock.c if ((cd.fp->f_mode & FMODE_WRITE) == 0) { cd 302 kernel/time/posix-clock.c if (cd.clk->ops.clock_settime) cd 303 kernel/time/posix-clock.c err = cd.clk->ops.clock_settime(cd.clk, ts); cd 307 kernel/time/posix-clock.c put_clock_desc(&cd); cd 85 kernel/time/sched_clock.c static struct clock_data cd ____cacheline_aligned = { cd 103 kernel/time/sched_clock.c seq = raw_read_seqcount(&cd.seq); cd 104 kernel/time/sched_clock.c rd = cd.read_data + (seq & 1); cd 109 kernel/time/sched_clock.c } while (read_seqcount_retry(&cd.seq, seq)); cd 127 kernel/time/sched_clock.c cd.read_data[1] = *rd; cd 130 kernel/time/sched_clock.c raw_write_seqcount_latch(&cd.seq); cd 133 kernel/time/sched_clock.c cd.read_data[0] = *rd; cd 136 kernel/time/sched_clock.c raw_write_seqcount_latch(&cd.seq); cd 148 kernel/time/sched_clock.c rd = cd.read_data[0]; cd 150 kernel/time/sched_clock.c cyc = cd.actual_read_sched_clock(); cd 162 kernel/time/sched_clock.c hrtimer_forward_now(hrt, cd.wrap_kt); cd 176 kernel/time/sched_clock.c if (cd.rate > rate) cd 185 kernel/time/sched_clock.c cd.rate = rate; cd 189 kernel/time/sched_clock.c cd.wrap_kt = ns_to_ktime(wrap); cd 191 kernel/time/sched_clock.c rd = cd.read_data[0]; cd 195 kernel/time/sched_clock.c cyc = cd.actual_read_sched_clock(); cd 197 kernel/time/sched_clock.c cd.actual_read_sched_clock = read; cd 210 kernel/time/sched_clock.c hrtimer_start(&sched_clock_timer, cd.wrap_kt, cd 246 kernel/time/sched_clock.c if (cd.actual_read_sched_clock == jiffy_sched_clock_read) cd 257 kernel/time/sched_clock.c hrtimer_start(&sched_clock_timer, cd.wrap_kt, HRTIMER_MODE_REL_HARD); cd 273 kernel/time/sched_clock.c unsigned int seq = raw_read_seqcount(&cd.seq); cd 275 kernel/time/sched_clock.c return cd.read_data[seq & 1].epoch_cyc; cd 280 kernel/time/sched_clock.c struct clock_read_data *rd = &cd.read_data[0]; cd 291 kernel/time/sched_clock.c struct clock_read_data *rd = &cd.read_data[0]; cd 293 kernel/time/sched_clock.c rd->epoch_cyc = cd.actual_read_sched_clock(); cd 294 kernel/time/sched_clock.c hrtimer_start(&sched_clock_timer, cd.wrap_kt, HRTIMER_MODE_REL_HARD); cd 295 kernel/time/sched_clock.c rd->read_sched_clock = cd.actual_read_sched_clock; cd 63 lib/earlycpio.c struct cpio_data cd = { NULL, 0, "" }; cd 129 lib/earlycpio.c strlcpy(cd.name, p + mypathsize, MAX_CPIO_FILE_NAME); cd 131 lib/earlycpio.c cd.data = (void *)dptr; cd 132 lib/earlycpio.c cd.size = ch[C_FILESIZE]; cd 133 lib/earlycpio.c return cd; /* Found it! */ cd 140 lib/earlycpio.c return cd; cd 178 lib/reed_solomon/reed_solomon.c struct rs_codec *cd; cd 183 lib/reed_solomon/reed_solomon.c cd = rs->codec; cd 185 lib/reed_solomon/reed_solomon.c cd->users--; cd 186 lib/reed_solomon/reed_solomon.c if(!cd->users) { cd 187 lib/reed_solomon/reed_solomon.c list_del(&cd->list); cd 188 lib/reed_solomon/reed_solomon.c kfree(cd->alpha_to); cd 189 lib/reed_solomon/reed_solomon.c kfree(cd->index_of); cd 190 lib/reed_solomon/reed_solomon.c kfree(cd->genpoly); cd 191 lib/reed_solomon/reed_solomon.c kfree(cd); cd 245 lib/reed_solomon/reed_solomon.c struct rs_codec *cd = list_entry(tmp, struct rs_codec, list); cd 247 lib/reed_solomon/reed_solomon.c if (symsize != cd->mm) cd 249 lib/reed_solomon/reed_solomon.c if (gfpoly != cd->gfpoly) cd 251 lib/reed_solomon/reed_solomon.c if (gffunc != cd->gffunc) cd 253 lib/reed_solomon/reed_solomon.c if (fcr != cd->fcr) cd 255 lib/reed_solomon/reed_solomon.c if (prim != cd->prim) cd 257 lib/reed_solomon/reed_solomon.c if (nroots != cd->nroots) cd 260 lib/reed_solomon/reed_solomon.c cd->users++; cd 261 lib/reed_solomon/reed_solomon.c rs->codec = cd; cd 56 net/bluetooth/bnep/sock.c struct bnep_conndel_req cd; cd 95 net/bluetooth/bnep/sock.c if (copy_from_user(&cd, argp, sizeof(cd))) cd 98 net/bluetooth/bnep/sock.c return bnep_del_connection(&cd); cd 69 net/bluetooth/cmtp/sock.c struct cmtp_conndel_req cd; cd 107 net/bluetooth/cmtp/sock.c if (copy_from_user(&cd, argp, sizeof(cd))) cd 110 net/bluetooth/cmtp/sock.c return cmtp_del_connection(&cd); cd 52 net/bluetooth/hidp/sock.c struct hidp_conndel_req cd; cd 93 net/bluetooth/hidp/sock.c if (copy_from_user(&cd, argp, sizeof(cd))) cd 96 net/bluetooth/hidp/sock.c return hidp_connection_del(&cd); cd 22 net/bridge/br_sysfs_br.c #define to_bridge(cd) ((struct net_bridge *)netdev_priv(to_net_dev(cd))) cd 772 net/dsa/dsa2.c struct dsa_chip_data *cd) cd 782 net/dsa/dsa2.c name = cd->port_names[i]; cd 783 net/dsa/dsa2.c dev = cd->netdev[i]; cd 802 net/dsa/dsa2.c static int dsa_switch_parse(struct dsa_switch *ds, struct dsa_chip_data *cd) cd 804 net/dsa/dsa2.c ds->cd = cd; cd 814 net/dsa/dsa2.c return dsa_switch_parse_ports(ds, cd); cd 606 net/dsa/slave.c if (ds->cd && ds->cd->eeprom_len) cd 607 net/dsa/slave.c return ds->cd->eeprom_len; cd 83 net/sunrpc/auth_gss/svcauth_gss.c static struct rsi *rsi_update(struct cache_detail *cd, struct rsi *new, struct rsi *old); cd 84 net/sunrpc/auth_gss/svcauth_gss.c static struct rsi *rsi_lookup(struct cache_detail *cd, struct rsi *item); cd 184 net/sunrpc/auth_gss/svcauth_gss.c static void rsi_request(struct cache_detail *cd, cd 195 net/sunrpc/auth_gss/svcauth_gss.c static int rsi_parse(struct cache_detail *cd, cd 224 net/sunrpc/auth_gss/svcauth_gss.c rsip = rsi_lookup(cd, &rsii); cd 266 net/sunrpc/auth_gss/svcauth_gss.c rsip = rsi_update(cd, &rsii, rsip); cd 271 net/sunrpc/auth_gss/svcauth_gss.c cache_put(&rsip->h, cd); cd 290 net/sunrpc/auth_gss/svcauth_gss.c static struct rsi *rsi_lookup(struct cache_detail *cd, struct rsi *item) cd 295 net/sunrpc/auth_gss/svcauth_gss.c ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); cd 302 net/sunrpc/auth_gss/svcauth_gss.c static struct rsi *rsi_update(struct cache_detail *cd, struct rsi *new, struct rsi *old) cd 307 net/sunrpc/auth_gss/svcauth_gss.c ch = sunrpc_cache_update(cd, &new->h, cd 346 net/sunrpc/auth_gss/svcauth_gss.c static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old); cd 347 net/sunrpc/auth_gss/svcauth_gss.c static struct rsc *rsc_lookup(struct cache_detail *cd, struct rsc *item); cd 428 net/sunrpc/auth_gss/svcauth_gss.c static int rsc_parse(struct cache_detail *cd, cd 455 net/sunrpc/auth_gss/svcauth_gss.c rscp = rsc_lookup(cd, &rsci); cd 538 net/sunrpc/auth_gss/svcauth_gss.c rscp = rsc_update(cd, &rsci, rscp); cd 543 net/sunrpc/auth_gss/svcauth_gss.c cache_put(&rscp->h, cd); cd 561 net/sunrpc/auth_gss/svcauth_gss.c static struct rsc *rsc_lookup(struct cache_detail *cd, struct rsc *item) cd 566 net/sunrpc/auth_gss/svcauth_gss.c ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); cd 573 net/sunrpc/auth_gss/svcauth_gss.c static struct rsc *rsc_update(struct cache_detail *cd, struct rsc *new, struct rsc *old) cd 578 net/sunrpc/auth_gss/svcauth_gss.c ch = sunrpc_cache_update(cd, &new->h, cd 588 net/sunrpc/auth_gss/svcauth_gss.c gss_svc_searchbyctx(struct cache_detail *cd, struct xdr_netobj *handle) cd 596 net/sunrpc/auth_gss/svcauth_gss.c found = rsc_lookup(cd, &rsci); cd 600 net/sunrpc/auth_gss/svcauth_gss.c if (cache_check(cd, &found->h, NULL)) cd 1007 net/sunrpc/auth_gss/svcauth_gss.c gss_write_init_verf(struct cache_detail *cd, struct svc_rqst *rqstp, cd 1015 net/sunrpc/auth_gss/svcauth_gss.c rsci = gss_svc_searchbyctx(cd, out_handle); cd 1021 net/sunrpc/auth_gss/svcauth_gss.c cache_put(&rsci->h, cd); cd 1209 net/sunrpc/auth_gss/svcauth_gss.c static int gss_proxy_save_rsc(struct cache_detail *cd, cd 1233 net/sunrpc/auth_gss/svcauth_gss.c rscp = rsc_lookup(cd, &rsci); cd 1271 net/sunrpc/auth_gss/svcauth_gss.c rscp = rsc_update(cd, &rsci, rscp); cd 1276 net/sunrpc/auth_gss/svcauth_gss.c cache_put(&rscp->h, cd); cd 1858 net/sunrpc/auth_gss/svcauth_gss.c struct cache_detail *cd; cd 1861 net/sunrpc/auth_gss/svcauth_gss.c cd = cache_create_net(&rsi_cache_template, net); cd 1862 net/sunrpc/auth_gss/svcauth_gss.c if (IS_ERR(cd)) cd 1863 net/sunrpc/auth_gss/svcauth_gss.c return PTR_ERR(cd); cd 1864 net/sunrpc/auth_gss/svcauth_gss.c err = cache_register_net(cd, net); cd 1866 net/sunrpc/auth_gss/svcauth_gss.c cache_destroy_net(cd, net); cd 1869 net/sunrpc/auth_gss/svcauth_gss.c sn->rsi_cache = cd; cd 1876 net/sunrpc/auth_gss/svcauth_gss.c struct cache_detail *cd = sn->rsi_cache; cd 1879 net/sunrpc/auth_gss/svcauth_gss.c cache_purge(cd); cd 1880 net/sunrpc/auth_gss/svcauth_gss.c cache_unregister_net(cd, net); cd 1881 net/sunrpc/auth_gss/svcauth_gss.c cache_destroy_net(cd, net); cd 1887 net/sunrpc/auth_gss/svcauth_gss.c struct cache_detail *cd; cd 1890 net/sunrpc/auth_gss/svcauth_gss.c cd = cache_create_net(&rsc_cache_template, net); cd 1891 net/sunrpc/auth_gss/svcauth_gss.c if (IS_ERR(cd)) cd 1892 net/sunrpc/auth_gss/svcauth_gss.c return PTR_ERR(cd); cd 1893 net/sunrpc/auth_gss/svcauth_gss.c err = cache_register_net(cd, net); cd 1895 net/sunrpc/auth_gss/svcauth_gss.c cache_destroy_net(cd, net); cd 1898 net/sunrpc/auth_gss/svcauth_gss.c sn->rsc_cache = cd; cd 1905 net/sunrpc/auth_gss/svcauth_gss.c struct cache_detail *cd = sn->rsc_cache; cd 1908 net/sunrpc/auth_gss/svcauth_gss.c cache_purge(cd); cd 1909 net/sunrpc/auth_gss/svcauth_gss.c cache_unregister_net(cd, net); cd 1910 net/sunrpc/auth_gss/svcauth_gss.c cache_destroy_net(cd, net); cd 214 net/sunrpc/cache.c static int cache_make_upcall(struct cache_detail *cd, struct cache_head *h) cd 216 net/sunrpc/cache.c if (cd->cache_upcall) cd 217 net/sunrpc/cache.c return cd->cache_upcall(cd, h); cd 218 net/sunrpc/cache.c return sunrpc_cache_pipe_upcall(cd, h); cd 363 net/sunrpc/cache.c void sunrpc_init_cache_detail(struct cache_detail *cd) cd 365 net/sunrpc/cache.c spin_lock_init(&cd->hash_lock); cd 366 net/sunrpc/cache.c INIT_LIST_HEAD(&cd->queue); cd 368 net/sunrpc/cache.c cd->nextcheck = 0; cd 369 net/sunrpc/cache.c cd->entries = 0; cd 370 net/sunrpc/cache.c atomic_set(&cd->writers, 0); cd 371 net/sunrpc/cache.c cd->last_close = 0; cd 372 net/sunrpc/cache.c cd->last_warn = -1; cd 373 net/sunrpc/cache.c list_add(&cd->others, &cache_list); cd 381 net/sunrpc/cache.c void sunrpc_destroy_cache_detail(struct cache_detail *cd) cd 383 net/sunrpc/cache.c cache_purge(cd); cd 385 net/sunrpc/cache.c spin_lock(&cd->hash_lock); cd 386 net/sunrpc/cache.c if (current_detail == cd) cd 388 net/sunrpc/cache.c list_del_init(&cd->others); cd 389 net/sunrpc/cache.c spin_unlock(&cd->hash_lock); cd 797 net/sunrpc/cache.c loff_t *ppos, struct cache_detail *cd) cd 812 net/sunrpc/cache.c while (rp->q.list.next != &cd->queue && cd 818 net/sunrpc/cache.c if (rp->q.list.next == &cd->queue) { cd 831 net/sunrpc/cache.c err = cache_request(cd, rq); cd 866 net/sunrpc/cache.c cache_put(rq->item, cd); cd 879 net/sunrpc/cache.c size_t count, struct cache_detail *cd) cd 888 net/sunrpc/cache.c ret = cd->cache_parse(cd, kaddr, count); cd 895 net/sunrpc/cache.c size_t count, struct cache_detail *cd) cd 903 net/sunrpc/cache.c ret = cache_do_downcall(write_buf, buf, count, cd); cd 911 net/sunrpc/cache.c size_t count, struct cache_detail *cd) cd 925 net/sunrpc/cache.c ret = cache_do_downcall(kaddr, buf, count, cd); cd 931 net/sunrpc/cache.c return cache_slow_downcall(buf, count, cd); cd 936 net/sunrpc/cache.c struct cache_detail *cd) cd 942 net/sunrpc/cache.c if (!cd->cache_parse) cd 946 net/sunrpc/cache.c ret = cache_downcall(mapping, buf, count, cd); cd 955 net/sunrpc/cache.c struct cache_detail *cd) cd 971 net/sunrpc/cache.c for (cq= &rp->q; &cq->list != &cd->queue; cd 983 net/sunrpc/cache.c struct cache_detail *cd) cd 997 net/sunrpc/cache.c for (cq= &rp->q; &cq->list != &cd->queue; cd 1011 net/sunrpc/cache.c struct cache_detail *cd) cd 1015 net/sunrpc/cache.c if (!cd || !try_module_get(cd->owner)) cd 1021 net/sunrpc/cache.c module_put(cd->owner); cd 1028 net/sunrpc/cache.c list_add(&rp->q.list, &cd->queue); cd 1032 net/sunrpc/cache.c atomic_inc(&cd->writers); cd 1038 net/sunrpc/cache.c struct cache_detail *cd) cd 1046 net/sunrpc/cache.c for (cq= &rp->q; &cq->list != &cd->queue; cd 1063 net/sunrpc/cache.c atomic_dec(&cd->writers); cd 1064 net/sunrpc/cache.c cd->last_close = seconds_since_boot(); cd 1066 net/sunrpc/cache.c module_put(cd->owner); cd 1322 net/sunrpc/cache.c struct cache_detail *cd = m->private; cd 1329 net/sunrpc/cache.c hlist_for_each_entry_rcu(ch, &cd->hash_table[hash], cache_list) cd 1336 net/sunrpc/cache.c } while(hash < cd->hash_size && cd 1337 net/sunrpc/cache.c hlist_empty(&cd->hash_table[hash])); cd 1338 net/sunrpc/cache.c if (hash >= cd->hash_size) cd 1342 net/sunrpc/cache.c hlist_first_rcu(&cd->hash_table[hash])), cd 1350 net/sunrpc/cache.c struct cache_detail *cd = m->private; cd 1364 net/sunrpc/cache.c while (hash < cd->hash_size && cd 1365 net/sunrpc/cache.c hlist_empty(&cd->hash_table[hash])) { cd 1369 net/sunrpc/cache.c if (hash >= cd->hash_size) cd 1373 net/sunrpc/cache.c hlist_first_rcu(&cd->hash_table[hash])), cd 1401 net/sunrpc/cache.c struct cache_detail *cd = m->private; cd 1404 net/sunrpc/cache.c return cd->cache_show(m, cd, NULL); cd 1411 net/sunrpc/cache.c if (cache_check(cd, cp, NULL)) cd 1415 net/sunrpc/cache.c if (cache_is_expired(cd, cp)) cd 1417 net/sunrpc/cache.c cache_put(cp, cd); cd 1420 net/sunrpc/cache.c return cd->cache_show(m, cd, cp); cd 1431 net/sunrpc/cache.c struct cache_detail *cd) cd 1436 net/sunrpc/cache.c if (!cd || !try_module_get(cd->owner)) cd 1441 net/sunrpc/cache.c module_put(cd->owner); cd 1446 net/sunrpc/cache.c seq->private = cd; cd 1451 net/sunrpc/cache.c struct cache_detail *cd) cd 1454 net/sunrpc/cache.c module_put(cd->owner); cd 1459 net/sunrpc/cache.c struct cache_detail *cd) cd 1461 net/sunrpc/cache.c if (!cd || !try_module_get(cd->owner)) cd 1467 net/sunrpc/cache.c struct cache_detail *cd) cd 1469 net/sunrpc/cache.c module_put(cd->owner); cd 1475 net/sunrpc/cache.c struct cache_detail *cd) cd 1481 net/sunrpc/cache.c convert_to_wallclock(cd->flush_time)); cd 1487 net/sunrpc/cache.c struct cache_detail *cd) cd 1514 net/sunrpc/cache.c if (cd->flush_time >= now) cd 1515 net/sunrpc/cache.c now = cd->flush_time + 1; cd 1517 net/sunrpc/cache.c cd->flush_time = now; cd 1518 net/sunrpc/cache.c cd->nextcheck = now; cd 1521 net/sunrpc/cache.c if (cd->flush) cd 1522 net/sunrpc/cache.c cd->flush(); cd 1531 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(file_inode(filp)); cd 1533 net/sunrpc/cache.c return cache_read(filp, buf, count, ppos, cd); cd 1539 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(file_inode(filp)); cd 1541 net/sunrpc/cache.c return cache_write(filp, buf, count, ppos, cd); cd 1546 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(file_inode(filp)); cd 1548 net/sunrpc/cache.c return cache_poll(filp, wait, cd); cd 1555 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(inode); cd 1557 net/sunrpc/cache.c return cache_ioctl(inode, filp, cmd, arg, cd); cd 1562 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(inode); cd 1564 net/sunrpc/cache.c return cache_open(inode, filp, cd); cd 1569 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(inode); cd 1571 net/sunrpc/cache.c return cache_release(inode, filp, cd); cd 1587 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(inode); cd 1589 net/sunrpc/cache.c return content_open(inode, filp, cd); cd 1594 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(inode); cd 1596 net/sunrpc/cache.c return content_release(inode, filp, cd); cd 1608 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(inode); cd 1610 net/sunrpc/cache.c return open_flush(inode, filp, cd); cd 1615 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(inode); cd 1617 net/sunrpc/cache.c return release_flush(inode, filp, cd); cd 1623 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(file_inode(filp)); cd 1625 net/sunrpc/cache.c return read_flush(filp, buf, count, ppos, cd); cd 1632 net/sunrpc/cache.c struct cache_detail *cd = PDE_DATA(file_inode(filp)); cd 1634 net/sunrpc/cache.c return write_flush(filp, buf, count, ppos, cd); cd 1645 net/sunrpc/cache.c static void remove_cache_proc_entries(struct cache_detail *cd) cd 1647 net/sunrpc/cache.c if (cd->procfs) { cd 1648 net/sunrpc/cache.c proc_remove(cd->procfs); cd 1649 net/sunrpc/cache.c cd->procfs = NULL; cd 1654 net/sunrpc/cache.c static int create_cache_proc_entries(struct cache_detail *cd, struct net *net) cd 1660 net/sunrpc/cache.c cd->procfs = proc_mkdir(cd->name, sn->proc_net_rpc); cd 1661 net/sunrpc/cache.c if (cd->procfs == NULL) cd 1665 net/sunrpc/cache.c cd->procfs, &cache_flush_operations_procfs, cd); cd 1669 net/sunrpc/cache.c if (cd->cache_request || cd->cache_parse) { cd 1670 net/sunrpc/cache.c p = proc_create_data("channel", S_IFREG | 0600, cd->procfs, cd 1671 net/sunrpc/cache.c &cache_file_operations_procfs, cd); cd 1675 net/sunrpc/cache.c if (cd->cache_show) { cd 1676 net/sunrpc/cache.c p = proc_create_data("content", S_IFREG | 0400, cd->procfs, cd 1677 net/sunrpc/cache.c &content_file_operations_procfs, cd); cd 1683 net/sunrpc/cache.c remove_cache_proc_entries(cd); cd 1687 net/sunrpc/cache.c static int create_cache_proc_entries(struct cache_detail *cd, struct net *net) cd 1698 net/sunrpc/cache.c int cache_register_net(struct cache_detail *cd, struct net *net) cd 1702 net/sunrpc/cache.c sunrpc_init_cache_detail(cd); cd 1703 net/sunrpc/cache.c ret = create_cache_proc_entries(cd, net); cd 1705 net/sunrpc/cache.c sunrpc_destroy_cache_detail(cd); cd 1710 net/sunrpc/cache.c void cache_unregister_net(struct cache_detail *cd, struct net *net) cd 1712 net/sunrpc/cache.c remove_cache_proc_entries(cd); cd 1713 net/sunrpc/cache.c sunrpc_destroy_cache_detail(cd); cd 1719 net/sunrpc/cache.c struct cache_detail *cd; cd 1722 net/sunrpc/cache.c cd = kmemdup(tmpl, sizeof(struct cache_detail), GFP_KERNEL); cd 1723 net/sunrpc/cache.c if (cd == NULL) cd 1726 net/sunrpc/cache.c cd->hash_table = kcalloc(cd->hash_size, sizeof(struct hlist_head), cd 1728 net/sunrpc/cache.c if (cd->hash_table == NULL) { cd 1729 net/sunrpc/cache.c kfree(cd); cd 1733 net/sunrpc/cache.c for (i = 0; i < cd->hash_size; i++) cd 1734 net/sunrpc/cache.c INIT_HLIST_HEAD(&cd->hash_table[i]); cd 1735 net/sunrpc/cache.c cd->net = net; cd 1736 net/sunrpc/cache.c return cd; cd 1740 net/sunrpc/cache.c void cache_destroy_net(struct cache_detail *cd, struct net *net) cd 1742 net/sunrpc/cache.c kfree(cd->hash_table); cd 1743 net/sunrpc/cache.c kfree(cd); cd 1750 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(file_inode(filp))->private; cd 1752 net/sunrpc/cache.c return cache_read(filp, buf, count, ppos, cd); cd 1758 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(file_inode(filp))->private; cd 1760 net/sunrpc/cache.c return cache_write(filp, buf, count, ppos, cd); cd 1765 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(file_inode(filp))->private; cd 1767 net/sunrpc/cache.c return cache_poll(filp, wait, cd); cd 1774 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(inode)->private; cd 1776 net/sunrpc/cache.c return cache_ioctl(inode, filp, cmd, arg, cd); cd 1781 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(inode)->private; cd 1783 net/sunrpc/cache.c return cache_open(inode, filp, cd); cd 1788 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(inode)->private; cd 1790 net/sunrpc/cache.c return cache_release(inode, filp, cd); cd 1806 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(inode)->private; cd 1808 net/sunrpc/cache.c return content_open(inode, filp, cd); cd 1813 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(inode)->private; cd 1815 net/sunrpc/cache.c return content_release(inode, filp, cd); cd 1827 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(inode)->private; cd 1829 net/sunrpc/cache.c return open_flush(inode, filp, cd); cd 1834 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(inode)->private; cd 1836 net/sunrpc/cache.c return release_flush(inode, filp, cd); cd 1842 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(file_inode(filp))->private; cd 1844 net/sunrpc/cache.c return read_flush(filp, buf, count, ppos, cd); cd 1851 net/sunrpc/cache.c struct cache_detail *cd = RPC_I(file_inode(filp))->private; cd 1853 net/sunrpc/cache.c return write_flush(filp, buf, count, ppos, cd); cd 1866 net/sunrpc/cache.c struct cache_detail *cd) cd 1868 net/sunrpc/cache.c struct dentry *dir = rpc_create_cache_dir(parent, name, umode, cd); cd 1871 net/sunrpc/cache.c cd->pipefs = dir; cd 1876 net/sunrpc/cache.c void sunrpc_cache_unregister_pipefs(struct cache_detail *cd) cd 1878 net/sunrpc/cache.c if (cd->pipefs) { cd 1879 net/sunrpc/cache.c rpc_remove_cache_dir(cd->pipefs); cd 1880 net/sunrpc/cache.c cd->pipefs = NULL; cd 1885 net/sunrpc/cache.c void sunrpc_cache_unhash(struct cache_detail *cd, struct cache_head *h) cd 1887 net/sunrpc/cache.c spin_lock(&cd->hash_lock); cd 1890 net/sunrpc/cache.c cd->entries--; cd 1892 net/sunrpc/cache.c spin_unlock(&cd->hash_lock); cd 1893 net/sunrpc/cache.c cache_fresh_unlocked(h, cd); cd 1894 net/sunrpc/cache.c cache_put(h, cd); cd 1896 net/sunrpc/cache.c spin_unlock(&cd->hash_lock); cd 1109 net/sunrpc/rpc_pipe.c umode_t umode, struct cache_detail *cd) cd 1112 net/sunrpc/rpc_pipe.c rpc_cachedir_populate, cd); cd 151 net/sunrpc/svcauth_unix.c static void ip_map_request(struct cache_detail *cd, cd 168 net/sunrpc/svcauth_unix.c static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, struct in6_addr *addr); cd 169 net/sunrpc/svcauth_unix.c static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, time_t expiry); cd 171 net/sunrpc/svcauth_unix.c static int ip_map_parse(struct cache_detail *cd, cd 204 net/sunrpc/svcauth_unix.c if (rpc_pton(cd->net, buf, len, &address.sa, sizeof(address)) == 0) cd 238 net/sunrpc/svcauth_unix.c ipmp = __ip_map_lookup(cd, class, &sin6.sin6_addr); cd 240 net/sunrpc/svcauth_unix.c err = __ip_map_update(cd, ipmp, cd 254 net/sunrpc/svcauth_unix.c struct cache_detail *cd, cd 283 net/sunrpc/svcauth_unix.c static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, cd 291 net/sunrpc/svcauth_unix.c ch = sunrpc_cache_lookup_rcu(cd, &ip.h, cd 310 net/sunrpc/svcauth_unix.c static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, cd 321 net/sunrpc/svcauth_unix.c ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, cd 326 net/sunrpc/svcauth_unix.c cache_put(ch, cd); cd 470 net/sunrpc/svcauth_unix.c static void unix_gid_request(struct cache_detail *cd, cd 482 net/sunrpc/svcauth_unix.c static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid); cd 484 net/sunrpc/svcauth_unix.c static int unix_gid_parse(struct cache_detail *cd, cd 533 net/sunrpc/svcauth_unix.c ugp = unix_gid_lookup(cd, uid); cd 538 net/sunrpc/svcauth_unix.c ch = sunrpc_cache_update(cd, cd 545 net/sunrpc/svcauth_unix.c cache_put(ch, cd); cd 556 net/sunrpc/svcauth_unix.c struct cache_detail *cd, cd 599 net/sunrpc/svcauth_unix.c struct cache_detail *cd; cd 602 net/sunrpc/svcauth_unix.c cd = cache_create_net(&unix_gid_cache_template, net); cd 603 net/sunrpc/svcauth_unix.c if (IS_ERR(cd)) cd 604 net/sunrpc/svcauth_unix.c return PTR_ERR(cd); cd 605 net/sunrpc/svcauth_unix.c err = cache_register_net(cd, net); cd 607 net/sunrpc/svcauth_unix.c cache_destroy_net(cd, net); cd 610 net/sunrpc/svcauth_unix.c sn->unix_gid_cache = cd; cd 617 net/sunrpc/svcauth_unix.c struct cache_detail *cd = sn->unix_gid_cache; cd 620 net/sunrpc/svcauth_unix.c cache_purge(cd); cd 621 net/sunrpc/svcauth_unix.c cache_unregister_net(cd, net); cd 622 net/sunrpc/svcauth_unix.c cache_destroy_net(cd, net); cd 625 net/sunrpc/svcauth_unix.c static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid) cd 631 net/sunrpc/svcauth_unix.c ch = sunrpc_cache_lookup_rcu(cd, &ug.h, unix_gid_hash(uid)); cd 896 net/sunrpc/svcauth_unix.c struct cache_detail *cd; cd 899 net/sunrpc/svcauth_unix.c cd = cache_create_net(&ip_map_cache_template, net); cd 900 net/sunrpc/svcauth_unix.c if (IS_ERR(cd)) cd 901 net/sunrpc/svcauth_unix.c return PTR_ERR(cd); cd 902 net/sunrpc/svcauth_unix.c err = cache_register_net(cd, net); cd 904 net/sunrpc/svcauth_unix.c cache_destroy_net(cd, net); cd 907 net/sunrpc/svcauth_unix.c sn->ip_map_cache = cd; cd 914 net/sunrpc/svcauth_unix.c struct cache_detail *cd = sn->ip_map_cache; cd 917 net/sunrpc/svcauth_unix.c cache_purge(cd); cd 918 net/sunrpc/svcauth_unix.c cache_unregister_net(cd, net); cd 919 net/sunrpc/svcauth_unix.c cache_destroy_net(cd, net); cd 78 sound/soc/au1x/dbdma2.c static void au1x_pcm_queue_tx(struct au1xpsc_audio_dmadata *cd) cd 80 sound/soc/au1x/dbdma2.c au1xxx_dbdma_put_source(cd->ddma_chan, cd->dma_area, cd 81 sound/soc/au1x/dbdma2.c cd->period_bytes, DDMA_FLAGS_IE); cd 84 sound/soc/au1x/dbdma2.c ++cd->q_period; cd 85 sound/soc/au1x/dbdma2.c cd->dma_area += cd->period_bytes; cd 86 sound/soc/au1x/dbdma2.c if (cd->q_period >= cd->periods) { cd 87 sound/soc/au1x/dbdma2.c cd->q_period = 0; cd 88 sound/soc/au1x/dbdma2.c cd->dma_area = cd->dma_area_s; cd 92 sound/soc/au1x/dbdma2.c static void au1x_pcm_queue_rx(struct au1xpsc_audio_dmadata *cd) cd 94 sound/soc/au1x/dbdma2.c au1xxx_dbdma_put_dest(cd->ddma_chan, cd->dma_area, cd 95 sound/soc/au1x/dbdma2.c cd->period_bytes, DDMA_FLAGS_IE); cd 98 sound/soc/au1x/dbdma2.c ++cd->q_period; cd 99 sound/soc/au1x/dbdma2.c cd->dma_area += cd->period_bytes; cd 100 sound/soc/au1x/dbdma2.c if (cd->q_period >= cd->periods) { cd 101 sound/soc/au1x/dbdma2.c cd->q_period = 0; cd 102 sound/soc/au1x/dbdma2.c cd->dma_area = cd->dma_area_s; cd 108 sound/soc/au1x/dbdma2.c struct au1xpsc_audio_dmadata *cd = dev_id; cd 110 sound/soc/au1x/dbdma2.c cd->pos += cd->period_bytes; cd 111 sound/soc/au1x/dbdma2.c if (++cd->curr_period >= cd->periods) { cd 112 sound/soc/au1x/dbdma2.c cd->pos = 0; cd 113 sound/soc/au1x/dbdma2.c cd->curr_period = 0; cd 115 sound/soc/au1x/dbdma2.c snd_pcm_period_elapsed(cd->substream); cd 116 sound/soc/au1x/dbdma2.c au1x_pcm_queue_tx(cd); cd 121 sound/soc/au1x/dbdma2.c struct au1xpsc_audio_dmadata *cd = dev_id; cd 123 sound/soc/au1x/dbdma2.c cd->pos += cd->period_bytes; cd 124 sound/soc/au1x/dbdma2.c if (++cd->curr_period >= cd->periods) { cd 125 sound/soc/au1x/dbdma2.c cd->pos = 0; cd 126 sound/soc/au1x/dbdma2.c cd->curr_period = 0; cd 128 sound/soc/au1x/dbdma2.c snd_pcm_period_elapsed(cd->substream); cd 129 sound/soc/au1x/dbdma2.c au1x_pcm_queue_rx(cd); cd 786 tools/perf/util/stat-display.c struct caggr_data *cd = data; cd 789 tools/perf/util/stat-display.c cd->avg += avg_stats(&ps->res_stats[0]); cd 790 tools/perf/util/stat-display.c cd->avg_enabled += avg_stats(&ps->res_stats[1]); cd 791 tools/perf/util/stat-display.c cd->avg_running += avg_stats(&ps->res_stats[2]); cd 804 tools/perf/util/stat-display.c struct caggr_data cd = { .avg = 0.0 }; cd 806 tools/perf/util/stat-display.c if (!collect_data(config, counter, counter_aggr_cb, &cd)) cd 812 tools/perf/util/stat-display.c uval = cd.avg * counter->scale; cd 813 tools/perf/util/stat-display.c printout(config, -1, 0, counter, uval, prefix, cd.avg_running, cd.avg_enabled, cd 814 tools/perf/util/stat-display.c cd.avg, &rt_stat); cd 168 tools/testing/selftests/kvm/include/kvm_util.h int vm_create_device(struct kvm_vm *vm, struct kvm_create_device *cd); cd 3229 virt/kvm/kvm_main.c struct kvm_create_device *cd) cd 3233 virt/kvm/kvm_main.c bool test = cd->flags & KVM_CREATE_DEVICE_TEST; cd 3237 virt/kvm/kvm_main.c if (cd->type >= ARRAY_SIZE(kvm_device_ops_table)) cd 3240 virt/kvm/kvm_main.c type = array_index_nospec(cd->type, ARRAY_SIZE(kvm_device_ops_table)); cd 3279 virt/kvm/kvm_main.c cd->fd = ret; cd 3510 virt/kvm/kvm_main.c struct kvm_create_device cd; cd 3513 virt/kvm/kvm_main.c if (copy_from_user(&cd, argp, sizeof(cd))) cd 3516 virt/kvm/kvm_main.c r = kvm_ioctl_create_device(kvm, &cd); cd 3521 virt/kvm/kvm_main.c if (copy_to_user(argp, &cd, sizeof(cd)))