skt 34 drivers/pcmcia/bcm63xx_pcmcia.c static inline u32 pcmcia_readl(struct bcm63xx_pcmcia_socket *skt, u32 off) skt 36 drivers/pcmcia/bcm63xx_pcmcia.c return bcm_readl(skt->base + off); skt 39 drivers/pcmcia/bcm63xx_pcmcia.c static inline void pcmcia_writel(struct bcm63xx_pcmcia_socket *skt, skt 42 drivers/pcmcia/bcm63xx_pcmcia.c bcm_writel(val, skt->base + off); skt 78 drivers/pcmcia/bcm63xx_pcmcia.c struct bcm63xx_pcmcia_socket *skt; skt 82 drivers/pcmcia/bcm63xx_pcmcia.c skt = sock->driver_data; skt 84 drivers/pcmcia/bcm63xx_pcmcia.c spin_lock_irqsave(&skt->lock, flags); skt 90 drivers/pcmcia/bcm63xx_pcmcia.c val = pcmcia_readl(skt, PCMCIA_C1_REG); skt 97 drivers/pcmcia/bcm63xx_pcmcia.c if (skt->card_detected && (skt->card_type & CARD_CARDBUS)) skt 100 drivers/pcmcia/bcm63xx_pcmcia.c pcmcia_writel(skt, val, PCMCIA_C1_REG); skt 103 drivers/pcmcia/bcm63xx_pcmcia.c skt->requested_state = *state; skt 105 drivers/pcmcia/bcm63xx_pcmcia.c spin_unlock_irqrestore(&skt->lock, flags); skt 162 drivers/pcmcia/bcm63xx_pcmcia.c static unsigned int __get_socket_status(struct bcm63xx_pcmcia_socket *skt) skt 170 drivers/pcmcia/bcm63xx_pcmcia.c val = pcmcia_readl(skt, PCMCIA_C1_REG); skt 176 drivers/pcmcia/bcm63xx_pcmcia.c if ((stat & SS_DETECT) && !skt->card_detected) { skt 182 drivers/pcmcia/bcm63xx_pcmcia.c pcmcia_writel(skt, val, PCMCIA_C1_REG); skt 186 drivers/pcmcia/bcm63xx_pcmcia.c val = pcmcia_readl(skt, PCMCIA_C1_REG); skt 193 drivers/pcmcia/bcm63xx_pcmcia.c pcmcia_writel(skt, val, PCMCIA_C1_REG); skt 197 drivers/pcmcia/bcm63xx_pcmcia.c val = pcmcia_readl(skt, PCMCIA_C1_REG); skt 204 drivers/pcmcia/bcm63xx_pcmcia.c pcmcia_writel(skt, val, PCMCIA_C1_REG); skt 208 drivers/pcmcia/bcm63xx_pcmcia.c val = pcmcia_readl(skt, PCMCIA_C1_REG); skt 213 drivers/pcmcia/bcm63xx_pcmcia.c skt->card_type = vscd_to_cardtype[stat]; skt 214 drivers/pcmcia/bcm63xx_pcmcia.c if (!skt->card_type) skt 215 drivers/pcmcia/bcm63xx_pcmcia.c dev_err(&skt->socket.dev, "unsupported card type\n"); skt 222 drivers/pcmcia/bcm63xx_pcmcia.c if (skt->card_type & CARD_PCCARD) skt 227 drivers/pcmcia/bcm63xx_pcmcia.c pcmcia_writel(skt, val, PCMCIA_C1_REG); skt 229 drivers/pcmcia/bcm63xx_pcmcia.c skt->card_detected = (stat & SS_DETECT) ? 1 : 0; skt 232 drivers/pcmcia/bcm63xx_pcmcia.c if (skt->card_type & CARD_CARDBUS) skt 234 drivers/pcmcia/bcm63xx_pcmcia.c if (skt->card_type & CARD_3V) skt 236 drivers/pcmcia/bcm63xx_pcmcia.c if (skt->card_type & CARD_XV) skt 240 drivers/pcmcia/bcm63xx_pcmcia.c if (gpio_get_value(skt->pd->ready_gpio)) skt 252 drivers/pcmcia/bcm63xx_pcmcia.c struct bcm63xx_pcmcia_socket *skt; skt 254 drivers/pcmcia/bcm63xx_pcmcia.c skt = sock->driver_data; skt 256 drivers/pcmcia/bcm63xx_pcmcia.c spin_lock_bh(&skt->lock); skt 257 drivers/pcmcia/bcm63xx_pcmcia.c *status = __get_socket_status(skt); skt 258 drivers/pcmcia/bcm63xx_pcmcia.c spin_unlock_bh(&skt->lock); skt 268 drivers/pcmcia/bcm63xx_pcmcia.c struct bcm63xx_pcmcia_socket *skt; skt 271 drivers/pcmcia/bcm63xx_pcmcia.c skt = from_timer(skt, t, timer); skt 273 drivers/pcmcia/bcm63xx_pcmcia.c spin_lock_bh(&skt->lock); skt 275 drivers/pcmcia/bcm63xx_pcmcia.c stat = __get_socket_status(skt); skt 279 drivers/pcmcia/bcm63xx_pcmcia.c events = (stat ^ skt->old_status) & skt->requested_state.csc_mask; skt 280 drivers/pcmcia/bcm63xx_pcmcia.c skt->old_status = stat; skt 281 drivers/pcmcia/bcm63xx_pcmcia.c spin_unlock_bh(&skt->lock); skt 284 drivers/pcmcia/bcm63xx_pcmcia.c pcmcia_parse_events(&skt->socket, events); skt 286 drivers/pcmcia/bcm63xx_pcmcia.c mod_timer(&skt->timer, skt 301 drivers/pcmcia/bcm63xx_pcmcia.c struct bcm63xx_pcmcia_socket *skt; skt 304 drivers/pcmcia/bcm63xx_pcmcia.c skt = sock->driver_data; skt 306 drivers/pcmcia/bcm63xx_pcmcia.c res = skt->attr_res; skt 308 drivers/pcmcia/bcm63xx_pcmcia.c res = skt->common_res; skt 328 drivers/pcmcia/bcm63xx_pcmcia.c struct bcm63xx_pcmcia_socket *skt; skt 335 drivers/pcmcia/bcm63xx_pcmcia.c skt = kzalloc(sizeof(*skt), GFP_KERNEL); skt 336 drivers/pcmcia/bcm63xx_pcmcia.c if (!skt) skt 338 drivers/pcmcia/bcm63xx_pcmcia.c spin_lock_init(&skt->lock); skt 339 drivers/pcmcia/bcm63xx_pcmcia.c sock = &skt->socket; skt 340 drivers/pcmcia/bcm63xx_pcmcia.c sock->driver_data = skt; skt 343 drivers/pcmcia/bcm63xx_pcmcia.c skt->common_res = platform_get_resource(pdev, IORESOURCE_MEM, 1); skt 344 drivers/pcmcia/bcm63xx_pcmcia.c skt->attr_res = platform_get_resource(pdev, IORESOURCE_MEM, 2); skt 346 drivers/pcmcia/bcm63xx_pcmcia.c skt->pd = pdev->dev.platform_data; skt 347 drivers/pcmcia/bcm63xx_pcmcia.c if (!skt->common_res || !skt->attr_res || !irq_res || !skt->pd) { skt 359 drivers/pcmcia/bcm63xx_pcmcia.c skt->reg_res = res; skt 361 drivers/pcmcia/bcm63xx_pcmcia.c skt->base = ioremap(res->start, regmem_size); skt 362 drivers/pcmcia/bcm63xx_pcmcia.c if (!skt->base) { skt 370 drivers/pcmcia/bcm63xx_pcmcia.c skt->io_base = ioremap(res->start, iomem_size); skt 371 drivers/pcmcia/bcm63xx_pcmcia.c if (!skt->io_base) { skt 382 drivers/pcmcia/bcm63xx_pcmcia.c sock->io_offset = (unsigned long)skt->io_base; skt 392 drivers/pcmcia/bcm63xx_pcmcia.c sock->map_size = resource_size(skt->common_res); skt 395 drivers/pcmcia/bcm63xx_pcmcia.c timer_setup(&skt->timer, bcm63xx_pcmcia_poll, 0); skt 400 drivers/pcmcia/bcm63xx_pcmcia.c val = pcmcia_readl(skt, PCMCIA_C1_REG); skt 403 drivers/pcmcia/bcm63xx_pcmcia.c pcmcia_writel(skt, val, PCMCIA_C1_REG); skt 415 drivers/pcmcia/bcm63xx_pcmcia.c pcmcia_writel(skt, val, PCMCIA_C2_REG); skt 422 drivers/pcmcia/bcm63xx_pcmcia.c mod_timer(&skt->timer, skt 425 drivers/pcmcia/bcm63xx_pcmcia.c platform_set_drvdata(pdev, skt); skt 429 drivers/pcmcia/bcm63xx_pcmcia.c if (skt->io_base) skt 430 drivers/pcmcia/bcm63xx_pcmcia.c iounmap(skt->io_base); skt 431 drivers/pcmcia/bcm63xx_pcmcia.c if (skt->base) skt 432 drivers/pcmcia/bcm63xx_pcmcia.c iounmap(skt->base); skt 433 drivers/pcmcia/bcm63xx_pcmcia.c if (skt->reg_res) skt 434 drivers/pcmcia/bcm63xx_pcmcia.c release_mem_region(skt->reg_res->start, regmem_size); skt 435 drivers/pcmcia/bcm63xx_pcmcia.c kfree(skt); skt 441 drivers/pcmcia/bcm63xx_pcmcia.c struct bcm63xx_pcmcia_socket *skt; skt 444 drivers/pcmcia/bcm63xx_pcmcia.c skt = platform_get_drvdata(pdev); skt 445 drivers/pcmcia/bcm63xx_pcmcia.c del_timer_sync(&skt->timer); skt 446 drivers/pcmcia/bcm63xx_pcmcia.c iounmap(skt->base); skt 447 drivers/pcmcia/bcm63xx_pcmcia.c iounmap(skt->io_base); skt 448 drivers/pcmcia/bcm63xx_pcmcia.c res = skt->reg_res; skt 450 drivers/pcmcia/bcm63xx_pcmcia.c kfree(skt); skt 73 drivers/pcmcia/cs.c struct pcmcia_socket *pcmcia_get_socket(struct pcmcia_socket *skt) skt 75 drivers/pcmcia/cs.c struct device *dev = get_device(&skt->dev); skt 83 drivers/pcmcia/cs.c void pcmcia_put_socket(struct pcmcia_socket *skt) skt 85 drivers/pcmcia/cs.c put_device(&skt->dev); skt 249 drivers/pcmcia/cs.c static int socket_reset(struct pcmcia_socket *skt) skt 253 drivers/pcmcia/cs.c dev_dbg(&skt->dev, "reset\n"); skt 255 drivers/pcmcia/cs.c skt->socket.flags |= SS_OUTPUT_ENA | SS_RESET; skt 256 drivers/pcmcia/cs.c skt->ops->set_socket(skt, &skt->socket); skt 259 drivers/pcmcia/cs.c skt->socket.flags &= ~SS_RESET; skt 260 drivers/pcmcia/cs.c skt->ops->set_socket(skt, &skt->socket); skt 264 drivers/pcmcia/cs.c skt->ops->get_status(skt, &status); skt 275 drivers/pcmcia/cs.c dev_err(&skt->dev, "time out after reset\n"); skt 332 drivers/pcmcia/cs.c static int socket_setup(struct pcmcia_socket *skt, int initial_delay) skt 336 drivers/pcmcia/cs.c dev_dbg(&skt->dev, "setup\n"); skt 338 drivers/pcmcia/cs.c skt->ops->get_status(skt, &status); skt 345 drivers/pcmcia/cs.c skt->ops->get_status(skt, &status); skt 356 drivers/pcmcia/cs.c dev_err(&skt->dev, "voltage interrogation timed out\n"); skt 361 drivers/pcmcia/cs.c if (!(skt->features & SS_CAP_CARDBUS)) { skt 362 drivers/pcmcia/cs.c dev_err(&skt->dev, "cardbus cards are not supported\n"); skt 365 drivers/pcmcia/cs.c skt->state |= SOCKET_CARDBUS; skt 367 drivers/pcmcia/cs.c skt->state &= ~SOCKET_CARDBUS; skt 373 drivers/pcmcia/cs.c skt->socket.Vcc = skt->socket.Vpp = 33; skt 375 drivers/pcmcia/cs.c skt->socket.Vcc = skt->socket.Vpp = 50; skt 377 drivers/pcmcia/cs.c dev_err(&skt->dev, "unsupported voltage key\n"); skt 381 drivers/pcmcia/cs.c if (skt->power_hook) skt 382 drivers/pcmcia/cs.c skt->power_hook(skt, HOOK_POWER_PRE); skt 384 drivers/pcmcia/cs.c skt->socket.flags = 0; skt 385 drivers/pcmcia/cs.c skt->ops->set_socket(skt, &skt->socket); skt 392 drivers/pcmcia/cs.c skt->ops->get_status(skt, &status); skt 394 drivers/pcmcia/cs.c dev_err(&skt->dev, "unable to apply power\n"); skt 398 drivers/pcmcia/cs.c status = socket_reset(skt); skt 400 drivers/pcmcia/cs.c if (skt->power_hook) skt 401 drivers/pcmcia/cs.c skt->power_hook(skt, HOOK_POWER_POST); skt 410 drivers/pcmcia/cs.c static int socket_insert(struct pcmcia_socket *skt) skt 414 drivers/pcmcia/cs.c dev_dbg(&skt->dev, "insert\n"); skt 416 drivers/pcmcia/cs.c mutex_lock(&skt->ops_mutex); skt 417 drivers/pcmcia/cs.c if (skt->state & SOCKET_INUSE) { skt 418 drivers/pcmcia/cs.c mutex_unlock(&skt->ops_mutex); skt 421 drivers/pcmcia/cs.c skt->state |= SOCKET_INUSE; skt 423 drivers/pcmcia/cs.c ret = socket_setup(skt, setup_delay); skt 425 drivers/pcmcia/cs.c skt->state |= SOCKET_PRESENT; skt 427 drivers/pcmcia/cs.c dev_notice(&skt->dev, "pccard: %s card inserted into slot %d\n", skt 428 drivers/pcmcia/cs.c (skt->state & SOCKET_CARDBUS) ? "CardBus" : "PCMCIA", skt 429 drivers/pcmcia/cs.c skt->sock); skt 432 drivers/pcmcia/cs.c if (skt->state & SOCKET_CARDBUS) { skt 433 drivers/pcmcia/cs.c cb_alloc(skt); skt 434 drivers/pcmcia/cs.c skt->state |= SOCKET_CARDBUS_CONFIG; skt 437 drivers/pcmcia/cs.c dev_dbg(&skt->dev, "insert done\n"); skt 438 drivers/pcmcia/cs.c mutex_unlock(&skt->ops_mutex); skt 440 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_CARDBUS) && (skt->callback)) skt 441 drivers/pcmcia/cs.c skt->callback->add(skt); skt 443 drivers/pcmcia/cs.c mutex_unlock(&skt->ops_mutex); skt 444 drivers/pcmcia/cs.c socket_shutdown(skt); skt 450 drivers/pcmcia/cs.c static int socket_suspend(struct pcmcia_socket *skt) skt 452 drivers/pcmcia/cs.c if ((skt->state & SOCKET_SUSPEND) && !(skt->state & SOCKET_IN_RESUME)) skt 455 drivers/pcmcia/cs.c mutex_lock(&skt->ops_mutex); skt 457 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_IN_RESUME)) skt 458 drivers/pcmcia/cs.c skt->suspended_state = skt->state; skt 460 drivers/pcmcia/cs.c skt->socket = dead_socket; skt 461 drivers/pcmcia/cs.c skt->ops->set_socket(skt, &skt->socket); skt 462 drivers/pcmcia/cs.c if (skt->ops->suspend) skt 463 drivers/pcmcia/cs.c skt->ops->suspend(skt); skt 464 drivers/pcmcia/cs.c skt->state |= SOCKET_SUSPEND; skt 465 drivers/pcmcia/cs.c skt->state &= ~SOCKET_IN_RESUME; skt 466 drivers/pcmcia/cs.c mutex_unlock(&skt->ops_mutex); skt 470 drivers/pcmcia/cs.c static int socket_early_resume(struct pcmcia_socket *skt) skt 472 drivers/pcmcia/cs.c mutex_lock(&skt->ops_mutex); skt 473 drivers/pcmcia/cs.c skt->socket = dead_socket; skt 474 drivers/pcmcia/cs.c skt->ops->init(skt); skt 475 drivers/pcmcia/cs.c skt->ops->set_socket(skt, &skt->socket); skt 476 drivers/pcmcia/cs.c if (skt->state & SOCKET_PRESENT) skt 477 drivers/pcmcia/cs.c skt->resume_status = socket_setup(skt, resume_delay); skt 478 drivers/pcmcia/cs.c skt->state |= SOCKET_IN_RESUME; skt 479 drivers/pcmcia/cs.c mutex_unlock(&skt->ops_mutex); skt 483 drivers/pcmcia/cs.c static int socket_late_resume(struct pcmcia_socket *skt) skt 487 drivers/pcmcia/cs.c mutex_lock(&skt->ops_mutex); skt 488 drivers/pcmcia/cs.c skt->state &= ~(SOCKET_SUSPEND | SOCKET_IN_RESUME); skt 489 drivers/pcmcia/cs.c mutex_unlock(&skt->ops_mutex); skt 491 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_PRESENT)) { skt 492 drivers/pcmcia/cs.c ret = socket_insert(skt); skt 498 drivers/pcmcia/cs.c if (skt->resume_status) { skt 499 drivers/pcmcia/cs.c socket_shutdown(skt); skt 503 drivers/pcmcia/cs.c if (skt->suspended_state != skt->state) { skt 504 drivers/pcmcia/cs.c dev_dbg(&skt->dev, skt 506 drivers/pcmcia/cs.c skt->suspended_state, skt->state); skt 508 drivers/pcmcia/cs.c socket_shutdown(skt); skt 509 drivers/pcmcia/cs.c return socket_insert(skt); skt 512 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_CARDBUS) && (skt->callback)) skt 513 drivers/pcmcia/cs.c ret = skt->callback->early_resume(skt); skt 522 drivers/pcmcia/cs.c static int socket_complete_resume(struct pcmcia_socket *skt) skt 526 drivers/pcmcia/cs.c if (skt->state & SOCKET_CARDBUS) { skt 530 drivers/pcmcia/cs.c cb_free(skt); skt 531 drivers/pcmcia/cs.c ret = cb_alloc(skt); skt 533 drivers/pcmcia/cs.c cb_free(skt); skt 544 drivers/pcmcia/cs.c static int socket_resume(struct pcmcia_socket *skt) skt 547 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_SUSPEND)) skt 550 drivers/pcmcia/cs.c socket_early_resume(skt); skt 551 drivers/pcmcia/cs.c err = socket_late_resume(skt); skt 553 drivers/pcmcia/cs.c err = socket_complete_resume(skt); skt 557 drivers/pcmcia/cs.c static void socket_remove(struct pcmcia_socket *skt) skt 559 drivers/pcmcia/cs.c dev_notice(&skt->dev, "pccard: card ejected from slot %d\n", skt->sock); skt 560 drivers/pcmcia/cs.c socket_shutdown(skt); skt 574 drivers/pcmcia/cs.c static void socket_detect_change(struct pcmcia_socket *skt) skt 576 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_SUSPEND)) { skt 579 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_PRESENT)) skt 582 drivers/pcmcia/cs.c skt->ops->get_status(skt, &status); skt 583 drivers/pcmcia/cs.c if ((skt->state & SOCKET_PRESENT) && skt 585 drivers/pcmcia/cs.c socket_remove(skt); skt 586 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_PRESENT) && skt 588 drivers/pcmcia/cs.c socket_insert(skt); skt 594 drivers/pcmcia/cs.c struct pcmcia_socket *skt = __skt; skt 597 drivers/pcmcia/cs.c skt->thread = current; skt 598 drivers/pcmcia/cs.c skt->socket = dead_socket; skt 599 drivers/pcmcia/cs.c skt->ops->init(skt); skt 600 drivers/pcmcia/cs.c skt->ops->set_socket(skt, &skt->socket); skt 603 drivers/pcmcia/cs.c ret = device_register(&skt->dev); skt 605 drivers/pcmcia/cs.c dev_warn(&skt->dev, "PCMCIA: unable to register socket\n"); skt 606 drivers/pcmcia/cs.c skt->thread = NULL; skt 607 drivers/pcmcia/cs.c complete(&skt->thread_done); skt 610 drivers/pcmcia/cs.c ret = pccard_sysfs_add_socket(&skt->dev); skt 612 drivers/pcmcia/cs.c dev_warn(&skt->dev, "err %d adding socket attributes\n", ret); skt 614 drivers/pcmcia/cs.c complete(&skt->thread_done); skt 625 drivers/pcmcia/cs.c spin_lock_irqsave(&skt->thread_lock, flags); skt 626 drivers/pcmcia/cs.c events = skt->thread_events; skt 627 drivers/pcmcia/cs.c skt->thread_events = 0; skt 628 drivers/pcmcia/cs.c sysfs_events = skt->sysfs_events; skt 629 drivers/pcmcia/cs.c skt->sysfs_events = 0; skt 630 drivers/pcmcia/cs.c spin_unlock_irqrestore(&skt->thread_lock, flags); skt 632 drivers/pcmcia/cs.c mutex_lock(&skt->skt_mutex); skt 634 drivers/pcmcia/cs.c socket_detect_change(skt); skt 638 drivers/pcmcia/cs.c socket_remove(skt); skt 640 drivers/pcmcia/cs.c socket_insert(skt); skt 642 drivers/pcmcia/cs.c !(skt->state & SOCKET_CARDBUS)) { skt 643 drivers/pcmcia/cs.c if (skt->callback) skt 644 drivers/pcmcia/cs.c ret = skt->callback->suspend(skt); skt 648 drivers/pcmcia/cs.c socket_suspend(skt); skt 653 drivers/pcmcia/cs.c !(skt->state & SOCKET_CARDBUS)) { skt 654 drivers/pcmcia/cs.c ret = socket_resume(skt); skt 655 drivers/pcmcia/cs.c if (!ret && skt->callback) skt 656 drivers/pcmcia/cs.c skt->callback->resume(skt); skt 659 drivers/pcmcia/cs.c !(skt->state & SOCKET_CARDBUS)) { skt 660 drivers/pcmcia/cs.c if (!ret && skt->callback) skt 661 drivers/pcmcia/cs.c skt->callback->requery(skt); skt 664 drivers/pcmcia/cs.c mutex_unlock(&skt->skt_mutex); skt 683 drivers/pcmcia/cs.c if (skt->state & SOCKET_PRESENT) { skt 684 drivers/pcmcia/cs.c mutex_lock(&skt->skt_mutex); skt 685 drivers/pcmcia/cs.c socket_remove(skt); skt 686 drivers/pcmcia/cs.c mutex_unlock(&skt->skt_mutex); skt 690 drivers/pcmcia/cs.c pccard_sysfs_remove_socket(&skt->dev); skt 691 drivers/pcmcia/cs.c device_unregister(&skt->dev); skt 774 drivers/pcmcia/cs.c int pcmcia_reset_card(struct pcmcia_socket *skt) skt 778 drivers/pcmcia/cs.c dev_dbg(&skt->dev, "resetting socket\n"); skt 780 drivers/pcmcia/cs.c mutex_lock(&skt->skt_mutex); skt 782 drivers/pcmcia/cs.c if (!(skt->state & SOCKET_PRESENT)) { skt 783 drivers/pcmcia/cs.c dev_dbg(&skt->dev, "can't reset, not present\n"); skt 787 drivers/pcmcia/cs.c if (skt->state & SOCKET_SUSPEND) { skt 788 drivers/pcmcia/cs.c dev_dbg(&skt->dev, "can't reset, suspended\n"); skt 792 drivers/pcmcia/cs.c if (skt->state & SOCKET_CARDBUS) { skt 793 drivers/pcmcia/cs.c dev_dbg(&skt->dev, "can't reset, is cardbus\n"); skt 798 drivers/pcmcia/cs.c if (skt->callback) skt 799 drivers/pcmcia/cs.c skt->callback->suspend(skt); skt 800 drivers/pcmcia/cs.c mutex_lock(&skt->ops_mutex); skt 801 drivers/pcmcia/cs.c ret = socket_reset(skt); skt 802 drivers/pcmcia/cs.c mutex_unlock(&skt->ops_mutex); skt 803 drivers/pcmcia/cs.c if ((ret == 0) && (skt->callback)) skt 804 drivers/pcmcia/cs.c skt->callback->resume(skt); skt 808 drivers/pcmcia/cs.c mutex_unlock(&skt->skt_mutex); skt 838 drivers/pcmcia/cs.c int (*callback) (struct pcmcia_socket *skt)) skt 128 drivers/pcmcia/cs_internal.h struct pcmcia_socket *pcmcia_get_socket(struct pcmcia_socket *skt); skt 129 drivers/pcmcia/cs_internal.h void pcmcia_put_socket(struct pcmcia_socket *skt); skt 242 drivers/pcmcia/db1xxx_ss.c static int db1x_pcmcia_configure(struct pcmcia_socket *skt, skt 245 drivers/pcmcia/db1xxx_ss.c struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); skt 338 drivers/pcmcia/db1xxx_ss.c static int db1x_pcmcia_get_status(struct pcmcia_socket *skt, skt 341 drivers/pcmcia/db1xxx_ss.c struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); skt 380 drivers/pcmcia/db1xxx_ss.c static int db1x_pcmcia_sock_init(struct pcmcia_socket *skt) skt 385 drivers/pcmcia/db1xxx_ss.c static int db1x_pcmcia_sock_suspend(struct pcmcia_socket *skt) skt 390 drivers/pcmcia/db1xxx_ss.c static int au1x00_pcmcia_set_io_map(struct pcmcia_socket *skt, skt 393 drivers/pcmcia/db1xxx_ss.c struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); skt 401 drivers/pcmcia/db1xxx_ss.c static int au1x00_pcmcia_set_mem_map(struct pcmcia_socket *skt, skt 404 drivers/pcmcia/db1xxx_ss.c struct db1x_pcmcia_sock *sock = to_db1x_socket(skt); skt 1219 drivers/pcmcia/ds.c struct pcmcia_socket *skt = _data; skt 1222 drivers/pcmcia/ds.c if (p_dev->socket != skt || p_dev->suspended) skt 1230 drivers/pcmcia/ds.c struct pcmcia_socket *skt = _data; skt 1233 drivers/pcmcia/ds.c if (p_dev->socket != skt || !p_dev->suspended) skt 1241 drivers/pcmcia/ds.c static int pcmcia_bus_resume(struct pcmcia_socket *skt) skt 1243 drivers/pcmcia/ds.c dev_dbg(&skt->dev, "resuming socket %d\n", skt->sock); skt 1244 drivers/pcmcia/ds.c bus_for_each_dev(&pcmcia_bus_type, NULL, skt, pcmcia_bus_resume_callback); skt 1248 drivers/pcmcia/ds.c static int pcmcia_bus_suspend(struct pcmcia_socket *skt) skt 1250 drivers/pcmcia/ds.c dev_dbg(&skt->dev, "suspending socket %d\n", skt->sock); skt 1251 drivers/pcmcia/ds.c if (bus_for_each_dev(&pcmcia_bus_type, NULL, skt, skt 1253 drivers/pcmcia/ds.c pcmcia_bus_resume(skt); skt 1259 drivers/pcmcia/ds.c static int pcmcia_bus_remove(struct pcmcia_socket *skt) skt 1261 drivers/pcmcia/ds.c atomic_set(&skt->present, 0); skt 1262 drivers/pcmcia/ds.c pcmcia_card_remove(skt, NULL); skt 1264 drivers/pcmcia/ds.c mutex_lock(&skt->ops_mutex); skt 1265 drivers/pcmcia/ds.c destroy_cis_cache(skt); skt 1266 drivers/pcmcia/ds.c pcmcia_cleanup_irq(skt); skt 1267 drivers/pcmcia/ds.c mutex_unlock(&skt->ops_mutex); skt 1272 drivers/pcmcia/ds.c static int pcmcia_bus_add(struct pcmcia_socket *skt) skt 1274 drivers/pcmcia/ds.c atomic_set(&skt->present, 1); skt 1276 drivers/pcmcia/ds.c mutex_lock(&skt->ops_mutex); skt 1277 drivers/pcmcia/ds.c skt->pcmcia_pfc = 0; skt 1278 drivers/pcmcia/ds.c destroy_cis_cache(skt); /* to be on the safe side... */ skt 1279 drivers/pcmcia/ds.c mutex_unlock(&skt->ops_mutex); skt 1281 drivers/pcmcia/ds.c pcmcia_card_add(skt); skt 1286 drivers/pcmcia/ds.c static int pcmcia_bus_early_resume(struct pcmcia_socket *skt) skt 1288 drivers/pcmcia/ds.c if (!verify_cis_cache(skt)) skt 1291 drivers/pcmcia/ds.c dev_dbg(&skt->dev, "cis mismatch - different card\n"); skt 1294 drivers/pcmcia/ds.c pcmcia_bus_remove(skt); skt 1296 drivers/pcmcia/ds.c mutex_lock(&skt->ops_mutex); skt 1297 drivers/pcmcia/ds.c destroy_cis_cache(skt); skt 1298 drivers/pcmcia/ds.c kfree(skt->fake_cis); skt 1299 drivers/pcmcia/ds.c skt->fake_cis = NULL; skt 1300 drivers/pcmcia/ds.c skt->functions = 0; skt 1301 drivers/pcmcia/ds.c mutex_unlock(&skt->ops_mutex); skt 1304 drivers/pcmcia/ds.c pcmcia_bus_add(skt); skt 29 drivers/pcmcia/pxa2xx_balloon3.c static int balloon3_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 39 drivers/pcmcia/pxa2xx_balloon3.c skt->socket.pci_irq = BALLOON3_BP_CF_NRDY_IRQ; skt 40 drivers/pcmcia/pxa2xx_balloon3.c skt->stat[SOC_STAT_CD].gpio = BALLOON3_GPIO_S0_CD; skt 41 drivers/pcmcia/pxa2xx_balloon3.c skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; skt 42 drivers/pcmcia/pxa2xx_balloon3.c skt->stat[SOC_STAT_BVD1].irq = BALLOON3_BP_NSTSCHG_IRQ; skt 43 drivers/pcmcia/pxa2xx_balloon3.c skt->stat[SOC_STAT_BVD1].name = "PCMCIA0 STSCHG"; skt 53 drivers/pcmcia/pxa2xx_balloon3.c static void balloon3_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 61 drivers/pcmcia/pxa2xx_balloon3.c flip = (status ^ balloon3_pcmcia_status[skt->nr]) skt 69 drivers/pcmcia/pxa2xx_balloon3.c balloon3_pcmcia_status[skt->nr] = status; skt 83 drivers/pcmcia/pxa2xx_balloon3.c static int balloon3_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 164 drivers/pcmcia/pxa2xx_base.c static int pxa2xx_pcmcia_set_mcxx(struct soc_pcmcia_socket *skt, unsigned int clk) skt 167 drivers/pcmcia/pxa2xx_base.c int sock = skt->nr; skt 169 drivers/pcmcia/pxa2xx_base.c soc_common_pcmcia_get_timing(skt, &timing); skt 178 drivers/pcmcia/pxa2xx_base.c static int pxa2xx_pcmcia_set_timing(struct soc_pcmcia_socket *skt) skt 180 drivers/pcmcia/pxa2xx_base.c unsigned long clk = clk_get_rate(skt->clk); skt 181 drivers/pcmcia/pxa2xx_base.c return pxa2xx_pcmcia_set_mcxx(skt, clk / 10000); skt 187 drivers/pcmcia/pxa2xx_base.c pxa2xx_pcmcia_frequency_change(struct soc_pcmcia_socket *skt, skt 194 drivers/pcmcia/pxa2xx_base.c debug(skt, 2, "new frequency %u.%uMHz > %u.%uMHz, " skt 198 drivers/pcmcia/pxa2xx_base.c pxa2xx_pcmcia_set_timing(skt); skt 204 drivers/pcmcia/pxa2xx_base.c debug(skt, 2, "new frequency %u.%uMHz < %u.%uMHz, " skt 208 drivers/pcmcia/pxa2xx_base.c pxa2xx_pcmcia_set_timing(skt); skt 241 drivers/pcmcia/pxa2xx_base.c int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt) skt 243 drivers/pcmcia/pxa2xx_base.c skt->res_skt.start = _PCMCIA(skt->nr); skt 244 drivers/pcmcia/pxa2xx_base.c skt->res_skt.end = _PCMCIA(skt->nr) + PCMCIASp - 1; skt 245 drivers/pcmcia/pxa2xx_base.c skt->res_skt.name = skt_names[skt->nr]; skt 246 drivers/pcmcia/pxa2xx_base.c skt->res_skt.flags = IORESOURCE_MEM; skt 248 drivers/pcmcia/pxa2xx_base.c skt->res_io.start = _PCMCIAIO(skt->nr); skt 249 drivers/pcmcia/pxa2xx_base.c skt->res_io.end = _PCMCIAIO(skt->nr) + PCMCIAIOSp - 1; skt 250 drivers/pcmcia/pxa2xx_base.c skt->res_io.name = "io"; skt 251 drivers/pcmcia/pxa2xx_base.c skt->res_io.flags = IORESOURCE_MEM | IORESOURCE_BUSY; skt 253 drivers/pcmcia/pxa2xx_base.c skt->res_mem.start = _PCMCIAMem(skt->nr); skt 254 drivers/pcmcia/pxa2xx_base.c skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1; skt 255 drivers/pcmcia/pxa2xx_base.c skt->res_mem.name = "memory"; skt 256 drivers/pcmcia/pxa2xx_base.c skt->res_mem.flags = IORESOURCE_MEM; skt 258 drivers/pcmcia/pxa2xx_base.c skt->res_attr.start = _PCMCIAAttr(skt->nr); skt 259 drivers/pcmcia/pxa2xx_base.c skt->res_attr.end = _PCMCIAAttr(skt->nr) + PCMCIAAttrSp - 1; skt 260 drivers/pcmcia/pxa2xx_base.c skt->res_attr.name = "attribute"; skt 261 drivers/pcmcia/pxa2xx_base.c skt->res_attr.flags = IORESOURCE_MEM; skt 263 drivers/pcmcia/pxa2xx_base.c return soc_pcmcia_add_one(skt); skt 282 drivers/pcmcia/pxa2xx_base.c struct soc_pcmcia_socket *skt; skt 312 drivers/pcmcia/pxa2xx_base.c skt = &sinfo->skt[i]; skt 314 drivers/pcmcia/pxa2xx_base.c skt->nr = ops->first + i; skt 315 drivers/pcmcia/pxa2xx_base.c skt->clk = clk; skt 316 drivers/pcmcia/pxa2xx_base.c soc_pcmcia_init_one(skt, ops, &dev->dev); skt 318 drivers/pcmcia/pxa2xx_base.c ret = pxa2xx_drv_pcmcia_add_one(skt); skt 330 drivers/pcmcia/pxa2xx_base.c soc_pcmcia_remove_one(&sinfo->skt[i]); skt 342 drivers/pcmcia/pxa2xx_base.c soc_pcmcia_remove_one(&sinfo->skt[i]); skt 1 drivers/pcmcia/pxa2xx_base.h int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt); skt 24 drivers/pcmcia/pxa2xx_cm_x255.c static int cmx255_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 31 drivers/pcmcia/pxa2xx_cm_x255.c if (skt->nr == 0) { skt 32 drivers/pcmcia/pxa2xx_cm_x255.c skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S0_CD_VALID; skt 33 drivers/pcmcia/pxa2xx_cm_x255.c skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; skt 34 drivers/pcmcia/pxa2xx_cm_x255.c skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S0_RDYINT; skt 35 drivers/pcmcia/pxa2xx_cm_x255.c skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; skt 37 drivers/pcmcia/pxa2xx_cm_x255.c skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S1_CD_VALID; skt 38 drivers/pcmcia/pxa2xx_cm_x255.c skt->stat[SOC_STAT_CD].name = "PCMCIA1 CD"; skt 39 drivers/pcmcia/pxa2xx_cm_x255.c skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S1_RDYINT; skt 40 drivers/pcmcia/pxa2xx_cm_x255.c skt->stat[SOC_STAT_RDY].name = "PCMCIA1 RDY"; skt 46 drivers/pcmcia/pxa2xx_cm_x255.c static void cmx255_pcmcia_shutdown(struct soc_pcmcia_socket *skt) skt 52 drivers/pcmcia/pxa2xx_cm_x255.c static void cmx255_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 60 drivers/pcmcia/pxa2xx_cm_x255.c static int cmx255_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 63 drivers/pcmcia/pxa2xx_cm_x255.c switch (skt->nr) { skt 21 drivers/pcmcia/pxa2xx_cm_x270.c static int cmx270_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 28 drivers/pcmcia/pxa2xx_cm_x270.c skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S0_CD_VALID; skt 29 drivers/pcmcia/pxa2xx_cm_x270.c skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; skt 30 drivers/pcmcia/pxa2xx_cm_x270.c skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S0_RDYINT; skt 31 drivers/pcmcia/pxa2xx_cm_x270.c skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; skt 36 drivers/pcmcia/pxa2xx_cm_x270.c static void cmx270_pcmcia_shutdown(struct soc_pcmcia_socket *skt) skt 42 drivers/pcmcia/pxa2xx_cm_x270.c static void cmx270_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 50 drivers/pcmcia/pxa2xx_cm_x270.c static int cmx270_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 53 drivers/pcmcia/pxa2xx_cm_x270.c switch (skt->nr) { skt 52 drivers/pcmcia/pxa2xx_colibri.c static int colibri_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 61 drivers/pcmcia/pxa2xx_colibri.c skt->socket.pci_irq = gpio_to_irq(colibri_pcmcia_gpios[READY].gpio); skt 62 drivers/pcmcia/pxa2xx_colibri.c skt->stat[SOC_STAT_CD].irq = gpio_to_irq(colibri_pcmcia_gpios[DETECT].gpio); skt 63 drivers/pcmcia/pxa2xx_colibri.c skt->stat[SOC_STAT_CD].name = "PCMCIA CD"; skt 69 drivers/pcmcia/pxa2xx_colibri.c static void colibri_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 75 drivers/pcmcia/pxa2xx_colibri.c static void colibri_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 88 drivers/pcmcia/pxa2xx_colibri.c colibri_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 23 drivers/pcmcia/pxa2xx_e740.c static int e740_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 25 drivers/pcmcia/pxa2xx_e740.c if (skt->nr == 0) { skt 26 drivers/pcmcia/pxa2xx_e740.c skt->stat[SOC_STAT_CD].gpio = GPIO_E740_PCMCIA_CD0; skt 27 drivers/pcmcia/pxa2xx_e740.c skt->stat[SOC_STAT_CD].name = "CF card detect"; skt 28 drivers/pcmcia/pxa2xx_e740.c skt->stat[SOC_STAT_RDY].gpio = GPIO_E740_PCMCIA_RDY0; skt 29 drivers/pcmcia/pxa2xx_e740.c skt->stat[SOC_STAT_RDY].name = "CF ready"; skt 31 drivers/pcmcia/pxa2xx_e740.c skt->stat[SOC_STAT_CD].gpio = GPIO_E740_PCMCIA_CD1; skt 32 drivers/pcmcia/pxa2xx_e740.c skt->stat[SOC_STAT_CD].name = "Wifi switch"; skt 33 drivers/pcmcia/pxa2xx_e740.c skt->stat[SOC_STAT_RDY].gpio = GPIO_E740_PCMCIA_RDY1; skt 34 drivers/pcmcia/pxa2xx_e740.c skt->stat[SOC_STAT_RDY].name = "Wifi ready"; skt 40 drivers/pcmcia/pxa2xx_e740.c static void e740_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 47 drivers/pcmcia/pxa2xx_e740.c static int e740_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 51 drivers/pcmcia/pxa2xx_e740.c if (skt->nr == 0) skt 56 drivers/pcmcia/pxa2xx_e740.c if (skt->nr == 0) skt 64 drivers/pcmcia/pxa2xx_e740.c if (skt->nr == 0) skt 71 drivers/pcmcia/pxa2xx_e740.c if (skt->nr == 0) skt 22 drivers/pcmcia/pxa2xx_hx4700.c static int hx4700_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 39 drivers/pcmcia/pxa2xx_hx4700.c skt->stat[SOC_STAT_CD].gpio = GPIOD4_CF_nCD; skt 40 drivers/pcmcia/pxa2xx_hx4700.c skt->stat[SOC_STAT_CD].name = "PCMCIA CD"; skt 41 drivers/pcmcia/pxa2xx_hx4700.c skt->stat[SOC_STAT_RDY].gpio = GPIO60_HX4700_CF_RNB; skt 42 drivers/pcmcia/pxa2xx_hx4700.c skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; skt 48 drivers/pcmcia/pxa2xx_hx4700.c static void hx4700_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 53 drivers/pcmcia/pxa2xx_hx4700.c static void hx4700_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 60 drivers/pcmcia/pxa2xx_hx4700.c static int hx4700_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 26 drivers/pcmcia/pxa2xx_mainstone.c static int mst_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 28 drivers/pcmcia/pxa2xx_mainstone.c struct device *dev = skt->socket.dev.parent; skt 32 drivers/pcmcia/pxa2xx_mainstone.c skt->stat[SOC_STAT_CD].name = skt->nr ? "bdetect" : "adetect"; skt 33 drivers/pcmcia/pxa2xx_mainstone.c skt->stat[SOC_STAT_BVD1].name = skt->nr ? "bbvd1" : "abvd1"; skt 34 drivers/pcmcia/pxa2xx_mainstone.c skt->stat[SOC_STAT_BVD2].name = skt->nr ? "bbvd2" : "abvd2"; skt 35 drivers/pcmcia/pxa2xx_mainstone.c skt->stat[SOC_STAT_RDY].name = skt->nr ? "bready" : "aready"; skt 36 drivers/pcmcia/pxa2xx_mainstone.c skt->stat[SOC_STAT_VS1].name = skt->nr ? "bvs1" : "avs1"; skt 37 drivers/pcmcia/pxa2xx_mainstone.c skt->stat[SOC_STAT_VS2].name = skt->nr ? "bvs2" : "avs2"; skt 39 drivers/pcmcia/pxa2xx_mainstone.c skt->gpio_reset = devm_gpiod_get(dev, skt->nr ? "breset" : "areset", skt 41 drivers/pcmcia/pxa2xx_mainstone.c if (IS_ERR(skt->gpio_reset)) skt 42 drivers/pcmcia/pxa2xx_mainstone.c return PTR_ERR(skt->gpio_reset); skt 44 drivers/pcmcia/pxa2xx_mainstone.c ret = max1600_init(dev, &m, skt->nr ? MAX1600_CHAN_B : MAX1600_CHAN_A, skt 49 drivers/pcmcia/pxa2xx_mainstone.c skt->driver_data = m; skt 51 drivers/pcmcia/pxa2xx_mainstone.c return soc_pcmcia_request_gpiods(skt); skt 56 drivers/pcmcia/pxa2xx_mainstone.c static void mst_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 59 drivers/pcmcia/pxa2xx_mainstone.c unsigned int flip = mst_pcmcia_bvd1_status[skt->nr] ^ state->bvd1; skt 67 drivers/pcmcia/pxa2xx_mainstone.c mst_pcmcia_bvd1_status[skt->nr] = state->bvd1; skt 69 drivers/pcmcia/pxa2xx_mainstone.c enable_irq(skt->stat[SOC_STAT_BVD1].irq); skt 71 drivers/pcmcia/pxa2xx_mainstone.c disable_irq(skt->stat[SOC_STAT_BVD2].irq); skt 75 drivers/pcmcia/pxa2xx_mainstone.c static int mst_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 78 drivers/pcmcia/pxa2xx_mainstone.c return max1600_configure(skt->driver_data, state->Vcc, state->Vpp); skt 24 drivers/pcmcia/pxa2xx_palmld.c static int palmld_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 31 drivers/pcmcia/pxa2xx_palmld.c skt->stat[SOC_STAT_RDY].gpio = GPIO_NR_PALMLD_PCMCIA_READY; skt 32 drivers/pcmcia/pxa2xx_palmld.c skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; skt 37 drivers/pcmcia/pxa2xx_palmld.c static void palmld_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 42 drivers/pcmcia/pxa2xx_palmld.c static void palmld_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 50 drivers/pcmcia/pxa2xx_palmld.c static int palmld_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 28 drivers/pcmcia/pxa2xx_palmtc.c static int palmtc_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 35 drivers/pcmcia/pxa2xx_palmtc.c skt->stat[SOC_STAT_RDY].gpio = GPIO_NR_PALMTC_PCMCIA_READY; skt 36 drivers/pcmcia/pxa2xx_palmtc.c skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; skt 41 drivers/pcmcia/pxa2xx_palmtc.c static void palmtc_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 46 drivers/pcmcia/pxa2xx_palmtc.c static void palmtc_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 99 drivers/pcmcia/pxa2xx_palmtc.c static int palmtc_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 24 drivers/pcmcia/pxa2xx_palmtx.c static int palmtx_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 31 drivers/pcmcia/pxa2xx_palmtx.c skt->stat[SOC_STAT_RDY].gpio = GPIO_NR_PALMTX_PCMCIA_READY; skt 32 drivers/pcmcia/pxa2xx_palmtx.c skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; skt 37 drivers/pcmcia/pxa2xx_palmtx.c static void palmtx_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 42 drivers/pcmcia/pxa2xx_palmtx.c static void palmtx_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 51 drivers/pcmcia/pxa2xx_palmtx.c palmtx_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 27 drivers/pcmcia/pxa2xx_sharpsl.c static void sharpsl_pcmcia_init_reset(struct soc_pcmcia_socket *skt) skt 29 drivers/pcmcia/pxa2xx_sharpsl.c struct scoop_pcmcia_dev *scoopdev = &SCOOP_DEV[skt->nr]; skt 35 drivers/pcmcia/pxa2xx_sharpsl.c platform_scoop_config->power_ctrl(scoopdev->dev, 0x0000, skt->nr); skt 43 drivers/pcmcia/pxa2xx_sharpsl.c static int sharpsl_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 45 drivers/pcmcia/pxa2xx_sharpsl.c if (SCOOP_DEV[skt->nr].cd_irq >= 0) { skt 46 drivers/pcmcia/pxa2xx_sharpsl.c skt->stat[SOC_STAT_CD].irq = SCOOP_DEV[skt->nr].cd_irq; skt 47 drivers/pcmcia/pxa2xx_sharpsl.c skt->stat[SOC_STAT_CD].name = SCOOP_DEV[skt->nr].cd_irq_str; skt 50 drivers/pcmcia/pxa2xx_sharpsl.c skt->socket.pci_irq = SCOOP_DEV[skt->nr].irq; skt 55 drivers/pcmcia/pxa2xx_sharpsl.c static void sharpsl_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 59 drivers/pcmcia/pxa2xx_sharpsl.c struct device *scoop = SCOOP_DEV[skt->nr].dev; skt 61 drivers/pcmcia/pxa2xx_sharpsl.c cpr = read_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_CPR); skt 70 drivers/pcmcia/pxa2xx_sharpsl.c SCOOP_DEV[skt->nr].keep_vs = NO_KEEP_VS; skt 72 drivers/pcmcia/pxa2xx_sharpsl.c else if (!(SCOOP_DEV[skt->nr].keep_vs & NO_KEEP_VS)) { skt 75 drivers/pcmcia/pxa2xx_sharpsl.c csr |= SCOOP_DEV[skt->nr].keep_vs; skt 80 drivers/pcmcia/pxa2xx_sharpsl.c SCOOP_DEV[skt->nr].keep_vs = (csr & 0x00C0); skt 84 drivers/pcmcia/pxa2xx_sharpsl.c if ((machine_is_spitz() || machine_is_borzoi()) && skt->nr == 1) { skt 105 drivers/pcmcia/pxa2xx_sharpsl.c static int sharpsl_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 109 drivers/pcmcia/pxa2xx_sharpsl.c struct device *scoop = SCOOP_DEV[skt->nr].dev; skt 134 drivers/pcmcia/pxa2xx_sharpsl.c if ((machine_is_spitz() || machine_is_borzoi() || machine_is_akita()) && skt->nr == 0) { skt 144 drivers/pcmcia/pxa2xx_sharpsl.c nimr |= ((skt->status&SS_DETECT) ? 0x0004 : 0)| skt 145 drivers/pcmcia/pxa2xx_sharpsl.c ((skt->status&SS_READY) ? 0x0002 : 0)| skt 146 drivers/pcmcia/pxa2xx_sharpsl.c ((skt->status&SS_BATDEAD)? 0x0010 : 0)| skt 147 drivers/pcmcia/pxa2xx_sharpsl.c ((skt->status&SS_BATWARN)? 0x0020 : 0)| skt 148 drivers/pcmcia/pxa2xx_sharpsl.c ((skt->status&SS_STSCHG) ? 0x0010 : 0)| skt 149 drivers/pcmcia/pxa2xx_sharpsl.c ((skt->status&SS_WRPROT) ? 0x0008 : 0); skt 152 drivers/pcmcia/pxa2xx_sharpsl.c SCOOP_DEV[skt->nr].keep_rd = 0; skt 153 drivers/pcmcia/pxa2xx_sharpsl.c } else if (!SCOOP_DEV[skt->nr].keep_rd) { skt 155 drivers/pcmcia/pxa2xx_sharpsl.c SCOOP_DEV[skt->nr].keep_rd = 1; skt 164 drivers/pcmcia/pxa2xx_sharpsl.c platform_scoop_config->power_ctrl(scoop, ncpr , skt->nr); skt 178 drivers/pcmcia/pxa2xx_sharpsl.c static void sharpsl_pcmcia_socket_init(struct soc_pcmcia_socket *skt) skt 180 drivers/pcmcia/pxa2xx_sharpsl.c sharpsl_pcmcia_init_reset(skt); skt 183 drivers/pcmcia/pxa2xx_sharpsl.c write_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_IMR, 0x00C0); skt 184 drivers/pcmcia/pxa2xx_sharpsl.c write_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_MCR, 0x0101); skt 185 drivers/pcmcia/pxa2xx_sharpsl.c SCOOP_DEV[skt->nr].keep_vs = NO_KEEP_VS; skt 188 drivers/pcmcia/pxa2xx_sharpsl.c static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) skt 190 drivers/pcmcia/pxa2xx_sharpsl.c sharpsl_pcmcia_init_reset(skt); skt 38 drivers/pcmcia/pxa2xx_stargate2.c static int sg2_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 40 drivers/pcmcia/pxa2xx_stargate2.c skt->stat[SOC_STAT_CD].gpio = SG2_S0_GPIO_DETECT; skt 41 drivers/pcmcia/pxa2xx_stargate2.c skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; skt 42 drivers/pcmcia/pxa2xx_stargate2.c skt->stat[SOC_STAT_RDY].gpio = SG2_S0_GPIO_READY; skt 43 drivers/pcmcia/pxa2xx_stargate2.c skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; skt 47 drivers/pcmcia/pxa2xx_stargate2.c static void sg2_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 56 drivers/pcmcia/pxa2xx_stargate2.c static int sg2_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 29 drivers/pcmcia/pxa2xx_trizeps4.c static int trizeps_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 34 drivers/pcmcia/pxa2xx_trizeps4.c switch (skt->nr) { skt 36 drivers/pcmcia/pxa2xx_trizeps4.c skt->stat[SOC_STAT_CD].gpio = GPIO_PCD; skt 37 drivers/pcmcia/pxa2xx_trizeps4.c skt->stat[SOC_STAT_CD].name = "cs0_cd"; skt 38 drivers/pcmcia/pxa2xx_trizeps4.c skt->stat[SOC_STAT_RDY].gpio = GPIO_PRDY; skt 39 drivers/pcmcia/pxa2xx_trizeps4.c skt->stat[SOC_STAT_RDY].name = "cs0_rdy"; skt 45 drivers/pcmcia/pxa2xx_trizeps4.c pr_debug("%s: sock %d irq %d\n", __func__, skt->nr, skt->socket.pci_irq); skt 52 drivers/pcmcia/pxa2xx_trizeps4.c static void trizeps_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 57 drivers/pcmcia/pxa2xx_trizeps4.c change = (status ^ trizeps_pcmcia_status[skt->nr]) & skt 60 drivers/pcmcia/pxa2xx_trizeps4.c trizeps_pcmcia_status[skt->nr] = status; skt 68 drivers/pcmcia/pxa2xx_trizeps4.c switch (skt->nr) { skt 92 drivers/pcmcia/pxa2xx_trizeps4.c static int trizeps_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 123 drivers/pcmcia/pxa2xx_trizeps4.c switch (skt->nr) { skt 139 drivers/pcmcia/pxa2xx_trizeps4.c static void trizeps_pcmcia_socket_init(struct soc_pcmcia_socket *skt) skt 145 drivers/pcmcia/pxa2xx_trizeps4.c static void trizeps_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) skt 40 drivers/pcmcia/pxa2xx_viper.c static int viper_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 45 drivers/pcmcia/pxa2xx_viper.c skt->stat[SOC_STAT_CD].gpio = pdata->cd_gpio; skt 46 drivers/pcmcia/pxa2xx_viper.c skt->stat[SOC_STAT_CD].name = "PCMCIA_CD"; skt 47 drivers/pcmcia/pxa2xx_viper.c skt->stat[SOC_STAT_RDY].gpio = pdata->rdy_gpio; skt 48 drivers/pcmcia/pxa2xx_viper.c skt->stat[SOC_STAT_RDY].name = "CF ready"; skt 74 drivers/pcmcia/pxa2xx_viper.c static void viper_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 81 drivers/pcmcia/pxa2xx_viper.c static void viper_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 88 drivers/pcmcia/pxa2xx_viper.c static int viper_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 29 drivers/pcmcia/pxa2xx_vpac270.c static int vpac270_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 33 drivers/pcmcia/pxa2xx_vpac270.c if (skt->nr == 0) { skt 37 drivers/pcmcia/pxa2xx_vpac270.c skt->stat[SOC_STAT_CD].gpio = GPIO84_VPAC270_PCMCIA_CD; skt 38 drivers/pcmcia/pxa2xx_vpac270.c skt->stat[SOC_STAT_CD].name = "PCMCIA CD"; skt 39 drivers/pcmcia/pxa2xx_vpac270.c skt->stat[SOC_STAT_RDY].gpio = GPIO35_VPAC270_PCMCIA_RDY; skt 40 drivers/pcmcia/pxa2xx_vpac270.c skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; skt 45 drivers/pcmcia/pxa2xx_vpac270.c skt->stat[SOC_STAT_CD].gpio = GPIO17_VPAC270_CF_CD; skt 46 drivers/pcmcia/pxa2xx_vpac270.c skt->stat[SOC_STAT_CD].name = "CF CD"; skt 47 drivers/pcmcia/pxa2xx_vpac270.c skt->stat[SOC_STAT_RDY].gpio = GPIO12_VPAC270_CF_RDY; skt 48 drivers/pcmcia/pxa2xx_vpac270.c skt->stat[SOC_STAT_RDY].name = "CF Ready"; skt 54 drivers/pcmcia/pxa2xx_vpac270.c static void vpac270_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 56 drivers/pcmcia/pxa2xx_vpac270.c if (skt->nr == 0) skt 64 drivers/pcmcia/pxa2xx_vpac270.c static void vpac270_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 72 drivers/pcmcia/pxa2xx_vpac270.c vpac270_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 75 drivers/pcmcia/pxa2xx_vpac270.c if (skt->nr == 0) { skt 53 drivers/pcmcia/sa1100_generic.c static int sa11x0_cf_hw_init(struct soc_pcmcia_socket *skt) skt 55 drivers/pcmcia/sa1100_generic.c struct device *dev = skt->socket.dev.parent; skt 58 drivers/pcmcia/sa1100_generic.c skt->gpio_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); skt 59 drivers/pcmcia/sa1100_generic.c if (IS_ERR(skt->gpio_reset)) skt 60 drivers/pcmcia/sa1100_generic.c return PTR_ERR(skt->gpio_reset); skt 62 drivers/pcmcia/sa1100_generic.c skt->gpio_bus_enable = devm_gpiod_get_optional(dev, "bus-enable", skt 64 drivers/pcmcia/sa1100_generic.c if (IS_ERR(skt->gpio_bus_enable)) skt 65 drivers/pcmcia/sa1100_generic.c return PTR_ERR(skt->gpio_bus_enable); skt 67 drivers/pcmcia/sa1100_generic.c skt->vcc.reg = devm_regulator_get_optional(dev, "vcc"); skt 68 drivers/pcmcia/sa1100_generic.c if (IS_ERR(skt->vcc.reg)) skt 69 drivers/pcmcia/sa1100_generic.c return PTR_ERR(skt->vcc.reg); skt 71 drivers/pcmcia/sa1100_generic.c if (!skt->vcc.reg) skt 76 drivers/pcmcia/sa1100_generic.c skt->stat[i].name = sa11x0_cf_gpio_names[i]; skt 77 drivers/pcmcia/sa1100_generic.c skt->stat[i].desc = devm_gpiod_get_optional(dev, skt 79 drivers/pcmcia/sa1100_generic.c if (IS_ERR(skt->stat[i].desc)) skt 80 drivers/pcmcia/sa1100_generic.c return PTR_ERR(skt->stat[i].desc); skt 85 drivers/pcmcia/sa1100_generic.c static int sa11x0_cf_configure_socket(struct soc_pcmcia_socket *skt, skt 88 drivers/pcmcia/sa1100_generic.c return soc_pcmcia_regulator_set(skt, &skt->vcc, state->Vcc); skt 136 drivers/pcmcia/sa1100_generic.c soc_pcmcia_remove_one(&sinfo->skt[i]); skt 143 drivers/pcmcia/sa1100_generic.c struct soc_pcmcia_socket *skt; skt 149 drivers/pcmcia/sa1100_generic.c skt = devm_kzalloc(dev, sizeof(*skt), GFP_KERNEL); skt 150 drivers/pcmcia/sa1100_generic.c if (!skt) skt 153 drivers/pcmcia/sa1100_generic.c platform_set_drvdata(pdev, skt); skt 155 drivers/pcmcia/sa1100_generic.c skt->nr = pdev->id; skt 156 drivers/pcmcia/sa1100_generic.c skt->clk = devm_clk_get(dev, NULL); skt 157 drivers/pcmcia/sa1100_generic.c if (IS_ERR(skt->clk)) skt 158 drivers/pcmcia/sa1100_generic.c return PTR_ERR(skt->clk); skt 161 drivers/pcmcia/sa1100_generic.c soc_pcmcia_init_one(skt, &sa11x0_cf_ops, dev); skt 163 drivers/pcmcia/sa1100_generic.c return sa11xx_drv_pcmcia_add_one(skt); skt 168 drivers/pcmcia/sa1100_generic.c struct soc_pcmcia_socket *skt; skt 173 drivers/pcmcia/sa1100_generic.c skt = platform_get_drvdata(dev); skt 175 drivers/pcmcia/sa1100_generic.c soc_pcmcia_remove_one(skt); skt 23 drivers/pcmcia/sa1100_h3600.c static int h3600_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 27 drivers/pcmcia/sa1100_h3600.c skt->stat[SOC_STAT_CD].name = skt->nr ? "pcmcia1-detect" : "pcmcia0-detect"; skt 28 drivers/pcmcia/sa1100_h3600.c skt->stat[SOC_STAT_RDY].name = skt->nr ? "pcmcia1-ready" : "pcmcia0-ready"; skt 30 drivers/pcmcia/sa1100_h3600.c err = soc_pcmcia_request_gpiods(skt); skt 34 drivers/pcmcia/sa1100_h3600.c switch (skt->nr) { skt 74 drivers/pcmcia/sa1100_h3600.c static void h3600_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 76 drivers/pcmcia/sa1100_h3600.c switch (skt->nr) { skt 94 drivers/pcmcia/sa1100_h3600.c h3600_pcmcia_socket_state(struct soc_pcmcia_socket *skt, struct pcmcia_state *state) skt 103 drivers/pcmcia/sa1100_h3600.c h3600_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state_t *state) skt 118 drivers/pcmcia/sa1100_h3600.c static void h3600_pcmcia_socket_init(struct soc_pcmcia_socket *skt) skt 128 drivers/pcmcia/sa1100_h3600.c static void h3600_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) skt 136 drivers/pcmcia/sa1100_h3600.c if (skt->nr == 1) { skt 18 drivers/pcmcia/sa1100_simpad.c static int simpad_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 23 drivers/pcmcia/sa1100_simpad.c skt->stat[SOC_STAT_CD].name = "cf-detect"; skt 24 drivers/pcmcia/sa1100_simpad.c skt->stat[SOC_STAT_RDY].name = "cf-ready"; skt 26 drivers/pcmcia/sa1100_simpad.c return soc_pcmcia_request_gpiods(skt); skt 29 drivers/pcmcia/sa1100_simpad.c static void simpad_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 37 drivers/pcmcia/sa1100_simpad.c simpad_pcmcia_socket_state(struct soc_pcmcia_socket *skt, skt 56 drivers/pcmcia/sa1100_simpad.c simpad_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 93 drivers/pcmcia/sa1100_simpad.c static void simpad_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) skt 73 drivers/pcmcia/sa1111_badge4.c badge4_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state_t *state) skt 77 drivers/pcmcia/sa1111_badge4.c switch (skt->nr) { skt 107 drivers/pcmcia/sa1111_badge4.c ret = sa1111_pcmcia_configure_socket(skt, state); skt 116 drivers/pcmcia/sa1111_badge4.c badge4_set_5V(BADGE4_5V_PCMCIA_SOCK(skt->nr), need5V); skt 69 drivers/pcmcia/sa1111_generic.c void sa1111_pcmcia_socket_state(struct soc_pcmcia_socket *skt, struct pcmcia_state *state) skt 71 drivers/pcmcia/sa1111_generic.c struct sa1111_pcmcia_socket *s = to_skt(skt); skt 74 drivers/pcmcia/sa1111_generic.c switch (skt->nr) { skt 97 drivers/pcmcia/sa1111_generic.c int sa1111_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state_t *state) skt 99 drivers/pcmcia/sa1111_generic.c struct sa1111_pcmcia_socket *s = to_skt(skt); skt 103 drivers/pcmcia/sa1111_generic.c switch (skt->nr) { skt 36 drivers/pcmcia/sa1111_jornada720.c static int jornada720_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 38 drivers/pcmcia/sa1111_jornada720.c struct device *dev = skt->socket.dev.parent; skt 45 drivers/pcmcia/sa1111_jornada720.c j->gpio[J720_GPIO_PWR] = devm_gpiod_get(dev, skt->nr ? "s1-power" : skt 50 drivers/pcmcia/sa1111_jornada720.c j->gpio[J720_GPIO_3V] = devm_gpiod_get(dev, skt->nr ? "s1-3v" : skt 55 drivers/pcmcia/sa1111_jornada720.c skt->driver_data = j; skt 61 drivers/pcmcia/sa1111_jornada720.c jornada720_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state_t *state) skt 63 drivers/pcmcia/sa1111_jornada720.c struct jornada720_data *j = skt->driver_data; skt 68 drivers/pcmcia/sa1111_jornada720.c skt->nr, state->Vcc, state->Vpp); skt 70 drivers/pcmcia/sa1111_jornada720.c switch (skt->nr) { skt 114 drivers/pcmcia/sa1111_jornada720.c ret = sa1111_pcmcia_configure_socket(skt, state); skt 27 drivers/pcmcia/sa1111_lubbock.c static int lubbock_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 32 drivers/pcmcia/sa1111_lubbock.c ret = max1600_init(skt->socket.dev.parent, &m, skt 33 drivers/pcmcia/sa1111_lubbock.c skt->nr ? MAX1600_CHAN_B : MAX1600_CHAN_A, skt 36 drivers/pcmcia/sa1111_lubbock.c skt->driver_data = m; skt 42 drivers/pcmcia/sa1111_lubbock.c lubbock_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, skt 45 drivers/pcmcia/sa1111_lubbock.c struct max1600 *m = skt->driver_data; skt 79 drivers/pcmcia/sa1111_lubbock.c switch (skt->nr) { skt 89 drivers/pcmcia/sa1111_lubbock.c ret = sa1111_pcmcia_configure_socket(skt, state); skt 109 drivers/pcmcia/sa1111_lubbock.c sa1111_pcmcia_socket_state(skt, &new_state); skt 41 drivers/pcmcia/sa1111_neponset.c static int neponset_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 46 drivers/pcmcia/sa1111_neponset.c ret = max1600_init(skt->socket.dev.parent, &m, skt 47 drivers/pcmcia/sa1111_neponset.c skt->nr ? MAX1600_CHAN_B : MAX1600_CHAN_A, skt 50 drivers/pcmcia/sa1111_neponset.c skt->driver_data = m; skt 56 drivers/pcmcia/sa1111_neponset.c neponset_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state_t *state) skt 58 drivers/pcmcia/sa1111_neponset.c struct max1600 *m = skt->driver_data; skt 61 drivers/pcmcia/sa1111_neponset.c ret = sa1111_pcmcia_configure_socket(skt, state); skt 63 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_default_mecr_timing(struct soc_pcmcia_socket *skt, skt 79 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_set_mecr(struct soc_pcmcia_socket *skt, unsigned int cpu_clock) skt 86 drivers/pcmcia/sa11xx_base.c soc_common_pcmcia_get_timing(skt, &timing); skt 88 drivers/pcmcia/sa11xx_base.c bs_io = skt->ops->get_timing(skt, cpu_clock, timing.io); skt 89 drivers/pcmcia/sa11xx_base.c bs_mem = skt->ops->get_timing(skt, cpu_clock, timing.mem); skt 90 drivers/pcmcia/sa11xx_base.c bs_attr = skt->ops->get_timing(skt, cpu_clock, timing.attr); skt 95 drivers/pcmcia/sa11xx_base.c MECR_FAST_SET(mecr, skt->nr, 0); skt 96 drivers/pcmcia/sa11xx_base.c MECR_BSIO_SET(mecr, skt->nr, bs_io); skt 97 drivers/pcmcia/sa11xx_base.c MECR_BSA_SET(mecr, skt->nr, bs_attr); skt 98 drivers/pcmcia/sa11xx_base.c MECR_BSM_SET(mecr, skt->nr, bs_mem); skt 104 drivers/pcmcia/sa11xx_base.c debug(skt, 2, "FAST %X BSM %X BSA %X BSIO %X\n", skt 105 drivers/pcmcia/sa11xx_base.c MECR_FAST_GET(mecr, skt->nr), skt 106 drivers/pcmcia/sa11xx_base.c MECR_BSM_GET(mecr, skt->nr), MECR_BSA_GET(mecr, skt->nr), skt 107 drivers/pcmcia/sa11xx_base.c MECR_BSIO_GET(mecr, skt->nr)); skt 114 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_frequency_change(struct soc_pcmcia_socket *skt, skt 121 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_set_mecr(skt, freqs->new); skt 126 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_set_mecr(skt, freqs->new); skt 136 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_set_timing(struct soc_pcmcia_socket *skt) skt 138 drivers/pcmcia/sa11xx_base.c unsigned long clk = clk_get_rate(skt->clk); skt 140 drivers/pcmcia/sa11xx_base.c return sa1100_pcmcia_set_mecr(skt, clk / 1000); skt 144 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_show_timing(struct soc_pcmcia_socket *skt, char *buf) skt 147 drivers/pcmcia/sa11xx_base.c unsigned int clock = clk_get_rate(skt->clk) / 1000; skt 151 drivers/pcmcia/sa11xx_base.c soc_common_pcmcia_get_timing(skt, &timing); skt 154 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_cmd_time(clock, MECR_BSIO_GET(mecr, skt->nr))); skt 157 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_cmd_time(clock, MECR_BSA_GET(mecr, skt->nr))); skt 160 drivers/pcmcia/sa11xx_base.c sa1100_pcmcia_cmd_time(clock, MECR_BSM_GET(mecr, skt->nr))); skt 173 drivers/pcmcia/sa11xx_base.c int sa11xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt) skt 175 drivers/pcmcia/sa11xx_base.c skt->res_skt.start = _PCMCIA(skt->nr); skt 176 drivers/pcmcia/sa11xx_base.c skt->res_skt.end = _PCMCIA(skt->nr) + PCMCIASp - 1; skt 177 drivers/pcmcia/sa11xx_base.c skt->res_skt.name = skt_names[skt->nr]; skt 178 drivers/pcmcia/sa11xx_base.c skt->res_skt.flags = IORESOURCE_MEM; skt 180 drivers/pcmcia/sa11xx_base.c skt->res_io.start = _PCMCIAIO(skt->nr); skt 181 drivers/pcmcia/sa11xx_base.c skt->res_io.end = _PCMCIAIO(skt->nr) + PCMCIAIOSp - 1; skt 182 drivers/pcmcia/sa11xx_base.c skt->res_io.name = "io"; skt 183 drivers/pcmcia/sa11xx_base.c skt->res_io.flags = IORESOURCE_MEM | IORESOURCE_BUSY; skt 185 drivers/pcmcia/sa11xx_base.c skt->res_mem.start = _PCMCIAMem(skt->nr); skt 186 drivers/pcmcia/sa11xx_base.c skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1; skt 187 drivers/pcmcia/sa11xx_base.c skt->res_mem.name = "memory"; skt 188 drivers/pcmcia/sa11xx_base.c skt->res_mem.flags = IORESOURCE_MEM; skt 190 drivers/pcmcia/sa11xx_base.c skt->res_attr.start = _PCMCIAAttr(skt->nr); skt 191 drivers/pcmcia/sa11xx_base.c skt->res_attr.end = _PCMCIAAttr(skt->nr) + PCMCIAAttrSp - 1; skt 192 drivers/pcmcia/sa11xx_base.c skt->res_attr.name = "attribute"; skt 193 drivers/pcmcia/sa11xx_base.c skt->res_attr.flags = IORESOURCE_MEM; skt 195 drivers/pcmcia/sa11xx_base.c return soc_pcmcia_add_one(skt); skt 221 drivers/pcmcia/sa11xx_base.c struct soc_pcmcia_socket *skt; skt 239 drivers/pcmcia/sa11xx_base.c skt = &sinfo->skt[i]; skt 241 drivers/pcmcia/sa11xx_base.c skt->nr = first + i; skt 242 drivers/pcmcia/sa11xx_base.c skt->clk = clk; skt 243 drivers/pcmcia/sa11xx_base.c soc_pcmcia_init_one(skt, ops, dev); skt 245 drivers/pcmcia/sa11xx_base.c ret = sa11xx_drv_pcmcia_add_one(skt); skt 252 drivers/pcmcia/sa11xx_base.c soc_pcmcia_remove_one(&sinfo->skt[i]); skt 121 drivers/pcmcia/sa11xx_base.h int sa11xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt); skt 61 drivers/pcmcia/soc_common.c void soc_pcmcia_debug(struct soc_pcmcia_socket *skt, const char *func, skt 72 drivers/pcmcia/soc_common.c printk(KERN_DEBUG "skt%u: %s: %pV", skt->nr, func, &vaf); skt 84 drivers/pcmcia/soc_common.c int soc_pcmcia_regulator_set(struct soc_pcmcia_socket *skt, skt 102 drivers/pcmcia/soc_common.c dev_warn(&skt->socket.dev, skt 104 drivers/pcmcia/soc_common.c r == &skt->vcc ? "Vcc" : "Vpp", skt 134 drivers/pcmcia/soc_common.c void soc_common_pcmcia_get_timing(struct soc_pcmcia_socket *skt, skt 138 drivers/pcmcia/soc_common.c calc_speed(skt->spd_io, MAX_IO_WIN, SOC_PCMCIA_IO_ACCESS); skt 140 drivers/pcmcia/soc_common.c calc_speed(skt->spd_mem, MAX_WIN, SOC_PCMCIA_3V_MEM_ACCESS); skt 142 drivers/pcmcia/soc_common.c calc_speed(skt->spd_attr, MAX_WIN, SOC_PCMCIA_3V_MEM_ACCESS); skt 146 drivers/pcmcia/soc_common.c static void __soc_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt, skt 152 drivers/pcmcia/soc_common.c if (skt->stat[i].irq) skt 153 drivers/pcmcia/soc_common.c free_irq(skt->stat[i].irq, skt); skt 155 drivers/pcmcia/soc_common.c if (skt->ops->hw_shutdown) skt 156 drivers/pcmcia/soc_common.c skt->ops->hw_shutdown(skt); skt 158 drivers/pcmcia/soc_common.c clk_disable_unprepare(skt->clk); skt 161 drivers/pcmcia/soc_common.c static void soc_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) skt 163 drivers/pcmcia/soc_common.c __soc_pcmcia_hw_shutdown(skt, ARRAY_SIZE(skt->stat)); skt 166 drivers/pcmcia/soc_common.c int soc_pcmcia_request_gpiods(struct soc_pcmcia_socket *skt) skt 168 drivers/pcmcia/soc_common.c struct device *dev = skt->socket.dev.parent; skt 172 drivers/pcmcia/soc_common.c for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { skt 173 drivers/pcmcia/soc_common.c if (!skt->stat[i].name) skt 176 drivers/pcmcia/soc_common.c desc = devm_gpiod_get(dev, skt->stat[i].name, GPIOD_IN); skt 179 drivers/pcmcia/soc_common.c skt->stat[i].name, PTR_ERR(desc)); skt 183 drivers/pcmcia/soc_common.c skt->stat[i].desc = desc; skt 190 drivers/pcmcia/soc_common.c static int soc_pcmcia_hw_init(struct soc_pcmcia_socket *skt) skt 194 drivers/pcmcia/soc_common.c ret = clk_prepare_enable(skt->clk); skt 198 drivers/pcmcia/soc_common.c if (skt->ops->hw_init) { skt 199 drivers/pcmcia/soc_common.c ret = skt->ops->hw_init(skt); skt 201 drivers/pcmcia/soc_common.c clk_disable_unprepare(skt->clk); skt 206 drivers/pcmcia/soc_common.c for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { skt 207 drivers/pcmcia/soc_common.c if (gpio_is_valid(skt->stat[i].gpio)) { skt 214 drivers/pcmcia/soc_common.c ret = devm_gpio_request_one(skt->socket.dev.parent, skt 215 drivers/pcmcia/soc_common.c skt->stat[i].gpio, flags, skt 216 drivers/pcmcia/soc_common.c skt->stat[i].name); skt 218 drivers/pcmcia/soc_common.c __soc_pcmcia_hw_shutdown(skt, i); skt 222 drivers/pcmcia/soc_common.c skt->stat[i].desc = gpio_to_desc(skt->stat[i].gpio); skt 225 drivers/pcmcia/soc_common.c if (i < SOC_STAT_VS1 && skt->stat[i].desc) { skt 226 drivers/pcmcia/soc_common.c int irq = gpiod_to_irq(skt->stat[i].desc); skt 230 drivers/pcmcia/soc_common.c skt->socket.pci_irq = irq; skt 232 drivers/pcmcia/soc_common.c skt->stat[i].irq = irq; skt 236 drivers/pcmcia/soc_common.c if (skt->stat[i].irq) { skt 237 drivers/pcmcia/soc_common.c ret = request_irq(skt->stat[i].irq, skt 240 drivers/pcmcia/soc_common.c skt->stat[i].name, skt); skt 242 drivers/pcmcia/soc_common.c __soc_pcmcia_hw_shutdown(skt, i); skt 251 drivers/pcmcia/soc_common.c static void soc_pcmcia_hw_enable(struct soc_pcmcia_socket *skt) skt 255 drivers/pcmcia/soc_common.c for (i = 0; i < ARRAY_SIZE(skt->stat); i++) skt 256 drivers/pcmcia/soc_common.c if (skt->stat[i].irq) { skt 257 drivers/pcmcia/soc_common.c irq_set_irq_type(skt->stat[i].irq, IRQ_TYPE_EDGE_RISING); skt 258 drivers/pcmcia/soc_common.c irq_set_irq_type(skt->stat[i].irq, IRQ_TYPE_EDGE_BOTH); skt 262 drivers/pcmcia/soc_common.c static void soc_pcmcia_hw_disable(struct soc_pcmcia_socket *skt) skt 266 drivers/pcmcia/soc_common.c for (i = 0; i < ARRAY_SIZE(skt->stat); i++) skt 267 drivers/pcmcia/soc_common.c if (skt->stat[i].irq) skt 268 drivers/pcmcia/soc_common.c irq_set_irq_type(skt->stat[i].irq, IRQ_TYPE_NONE); skt 276 drivers/pcmcia/soc_common.c void soc_common_cf_socket_state(struct soc_pcmcia_socket *skt, skt 283 drivers/pcmcia/soc_common.c static unsigned int soc_common_pcmcia_skt_state(struct soc_pcmcia_socket *skt) skt 294 drivers/pcmcia/soc_common.c if (skt->stat[SOC_STAT_CD].desc) skt 295 drivers/pcmcia/soc_common.c state.detect = !!gpiod_get_value(skt->stat[SOC_STAT_CD].desc); skt 296 drivers/pcmcia/soc_common.c if (skt->stat[SOC_STAT_RDY].desc) skt 297 drivers/pcmcia/soc_common.c state.ready = !!gpiod_get_value(skt->stat[SOC_STAT_RDY].desc); skt 298 drivers/pcmcia/soc_common.c if (skt->stat[SOC_STAT_BVD1].desc) skt 299 drivers/pcmcia/soc_common.c state.bvd1 = !!gpiod_get_value(skt->stat[SOC_STAT_BVD1].desc); skt 300 drivers/pcmcia/soc_common.c if (skt->stat[SOC_STAT_BVD2].desc) skt 301 drivers/pcmcia/soc_common.c state.bvd2 = !!gpiod_get_value(skt->stat[SOC_STAT_BVD2].desc); skt 302 drivers/pcmcia/soc_common.c if (skt->stat[SOC_STAT_VS1].desc) skt 303 drivers/pcmcia/soc_common.c state.vs_3v = !!gpiod_get_value(skt->stat[SOC_STAT_VS1].desc); skt 304 drivers/pcmcia/soc_common.c if (skt->stat[SOC_STAT_VS2].desc) skt 305 drivers/pcmcia/soc_common.c state.vs_Xv = !!gpiod_get_value(skt->stat[SOC_STAT_VS2].desc); skt 307 drivers/pcmcia/soc_common.c skt->ops->socket_state(skt, &state); skt 319 drivers/pcmcia/soc_common.c stat |= skt->cs_state.Vcc ? SS_POWERON : 0; skt 321 drivers/pcmcia/soc_common.c if (skt->cs_state.flags & SS_IOCARD) skt 339 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt, socket_state_t *state) skt 343 drivers/pcmcia/soc_common.c ret = skt->ops->configure_socket(skt, state); skt 346 drivers/pcmcia/soc_common.c skt->nr); skt 348 drivers/pcmcia/soc_common.c WARN_ON(skt->ops->configure_socket(skt, &skt->cs_state)); skt 357 drivers/pcmcia/soc_common.c if (skt->gpio_reset) { skt 358 drivers/pcmcia/soc_common.c descs[n] = skt->gpio_reset; skt 361 drivers/pcmcia/soc_common.c if (skt->gpio_bus_enable) { skt 362 drivers/pcmcia/soc_common.c descs[n] = skt->gpio_bus_enable; skt 373 drivers/pcmcia/soc_common.c if (skt->irq_state != 1 && state->io_irq) { skt 374 drivers/pcmcia/soc_common.c skt->irq_state = 1; skt 375 drivers/pcmcia/soc_common.c irq_set_irq_type(skt->socket.pci_irq, skt 377 drivers/pcmcia/soc_common.c } else if (skt->irq_state == 1 && state->io_irq == 0) { skt 378 drivers/pcmcia/soc_common.c skt->irq_state = 0; skt 379 drivers/pcmcia/soc_common.c irq_set_irq_type(skt->socket.pci_irq, IRQ_TYPE_NONE); skt 382 drivers/pcmcia/soc_common.c skt->cs_state = *state; skt 399 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock); skt 401 drivers/pcmcia/soc_common.c debug(skt, 2, "initializing socket\n"); skt 402 drivers/pcmcia/soc_common.c if (skt->ops->socket_init) skt 403 drivers/pcmcia/soc_common.c skt->ops->socket_init(skt); skt 404 drivers/pcmcia/soc_common.c soc_pcmcia_hw_enable(skt); skt 420 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock); skt 422 drivers/pcmcia/soc_common.c debug(skt, 2, "suspending socket\n"); skt 424 drivers/pcmcia/soc_common.c soc_pcmcia_hw_disable(skt); skt 425 drivers/pcmcia/soc_common.c if (skt->ops->socket_suspend) skt 426 drivers/pcmcia/soc_common.c skt->ops->socket_suspend(skt); skt 433 drivers/pcmcia/soc_common.c static void soc_common_check_status(struct soc_pcmcia_socket *skt) skt 437 drivers/pcmcia/soc_common.c debug(skt, 4, "entering PCMCIA monitoring thread\n"); skt 443 drivers/pcmcia/soc_common.c status = soc_common_pcmcia_skt_state(skt); skt 446 drivers/pcmcia/soc_common.c events = (status ^ skt->status) & skt->cs_state.csc_mask; skt 447 drivers/pcmcia/soc_common.c skt->status = status; skt 450 drivers/pcmcia/soc_common.c debug(skt, 4, "events: %s%s%s%s%s%s\n", skt 459 drivers/pcmcia/soc_common.c pcmcia_parse_events(&skt->socket, events); skt 466 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = from_timer(skt, t, poll_timer); skt 467 drivers/pcmcia/soc_common.c debug(skt, 4, "polling for events\n"); skt 469 drivers/pcmcia/soc_common.c mod_timer(&skt->poll_timer, jiffies + SOC_PCMCIA_POLL_PERIOD); skt 471 drivers/pcmcia/soc_common.c soc_common_check_status(skt); skt 485 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = dev; skt 487 drivers/pcmcia/soc_common.c debug(skt, 3, "servicing IRQ %d\n", irq); skt 489 drivers/pcmcia/soc_common.c soc_common_check_status(skt); skt 513 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock); skt 515 drivers/pcmcia/soc_common.c skt->status = soc_common_pcmcia_skt_state(skt); skt 516 drivers/pcmcia/soc_common.c *status = skt->status; skt 532 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock); skt 534 drivers/pcmcia/soc_common.c debug(skt, 2, "mask: %s%s%s%s%s%s flags: %s%s%s%s%s%s Vcc %d Vpp %d irq %d\n", skt 549 drivers/pcmcia/soc_common.c return soc_common_pcmcia_config_skt(skt, state); skt 564 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock); skt 567 drivers/pcmcia/soc_common.c debug(skt, 2, "map %u speed %u start 0x%08llx stop 0x%08llx\n", skt 570 drivers/pcmcia/soc_common.c debug(skt, 2, "flags: %s%s%s%s%s%s%s%s\n", skt 593 drivers/pcmcia/soc_common.c skt->spd_io[map->map] = speed; skt 594 drivers/pcmcia/soc_common.c skt->ops->set_timing(skt); skt 600 drivers/pcmcia/soc_common.c map->stop += skt->socket.io_offset; skt 601 drivers/pcmcia/soc_common.c map->start = skt->socket.io_offset; skt 618 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock); skt 622 drivers/pcmcia/soc_common.c debug(skt, 2, "map %u speed %u card_start %08x\n", skt 624 drivers/pcmcia/soc_common.c debug(skt, 2, "flags: %s%s%s%s%s%s%s%s\n", skt 645 drivers/pcmcia/soc_common.c res = &skt->res_attr; skt 646 drivers/pcmcia/soc_common.c skt->spd_attr[map->map] = speed; skt 647 drivers/pcmcia/soc_common.c skt->spd_mem[map->map] = 0; skt 649 drivers/pcmcia/soc_common.c res = &skt->res_mem; skt 650 drivers/pcmcia/soc_common.c skt->spd_attr[map->map] = 0; skt 651 drivers/pcmcia/soc_common.c skt->spd_mem[map->map] = speed; skt 654 drivers/pcmcia/soc_common.c skt->ops->set_timing(skt); skt 709 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = skt 713 drivers/pcmcia/soc_common.c p += sprintf(p, "slot : %d\n", skt->nr); skt 715 drivers/pcmcia/soc_common.c dump_bits(&p, "status", skt->status, skt 717 drivers/pcmcia/soc_common.c dump_bits(&p, "csc_mask", skt->cs_state.csc_mask, skt 719 drivers/pcmcia/soc_common.c dump_bits(&p, "cs_flags", skt->cs_state.flags, skt 722 drivers/pcmcia/soc_common.c p += sprintf(p, "Vcc : %d\n", skt->cs_state.Vcc); skt 723 drivers/pcmcia/soc_common.c p += sprintf(p, "Vpp : %d\n", skt->cs_state.Vpp); skt 724 drivers/pcmcia/soc_common.c p += sprintf(p, "IRQ : %d (%d)\n", skt->cs_state.io_irq, skt 725 drivers/pcmcia/soc_common.c skt->socket.pci_irq); skt 726 drivers/pcmcia/soc_common.c if (skt->ops->show_timing) skt 727 drivers/pcmcia/soc_common.c p += skt->ops->show_timing(skt, p); skt 748 drivers/pcmcia/soc_common.c struct soc_pcmcia_socket *skt = container_of(nb, struct soc_pcmcia_socket, cpufreq_nb); skt 751 drivers/pcmcia/soc_common.c return skt->ops->frequency_change(skt, val, freqs); skt 755 drivers/pcmcia/soc_common.c void soc_pcmcia_init_one(struct soc_pcmcia_socket *skt, skt 760 drivers/pcmcia/soc_common.c skt->ops = ops; skt 761 drivers/pcmcia/soc_common.c skt->socket.owner = ops->owner; skt 762 drivers/pcmcia/soc_common.c skt->socket.dev.parent = dev; skt 763 drivers/pcmcia/soc_common.c skt->socket.pci_irq = NO_IRQ; skt 765 drivers/pcmcia/soc_common.c for (i = 0; i < ARRAY_SIZE(skt->stat); i++) skt 766 drivers/pcmcia/soc_common.c skt->stat[i].gpio = -EINVAL; skt 770 drivers/pcmcia/soc_common.c void soc_pcmcia_remove_one(struct soc_pcmcia_socket *skt) skt 772 drivers/pcmcia/soc_common.c del_timer_sync(&skt->poll_timer); skt 774 drivers/pcmcia/soc_common.c pcmcia_unregister_socket(&skt->socket); skt 777 drivers/pcmcia/soc_common.c if (skt->ops->frequency_change) skt 778 drivers/pcmcia/soc_common.c cpufreq_unregister_notifier(&skt->cpufreq_nb, skt 782 drivers/pcmcia/soc_common.c soc_pcmcia_hw_shutdown(skt); skt 785 drivers/pcmcia/soc_common.c soc_common_pcmcia_config_skt(skt, &dead_socket); skt 787 drivers/pcmcia/soc_common.c iounmap(skt->virt_io); skt 788 drivers/pcmcia/soc_common.c skt->virt_io = NULL; skt 789 drivers/pcmcia/soc_common.c release_resource(&skt->res_attr); skt 790 drivers/pcmcia/soc_common.c release_resource(&skt->res_mem); skt 791 drivers/pcmcia/soc_common.c release_resource(&skt->res_io); skt 792 drivers/pcmcia/soc_common.c release_resource(&skt->res_skt); skt 796 drivers/pcmcia/soc_common.c int soc_pcmcia_add_one(struct soc_pcmcia_socket *skt) skt 800 drivers/pcmcia/soc_common.c skt->cs_state = dead_socket; skt 802 drivers/pcmcia/soc_common.c timer_setup(&skt->poll_timer, soc_common_pcmcia_poll_event, 0); skt 803 drivers/pcmcia/soc_common.c skt->poll_timer.expires = jiffies + SOC_PCMCIA_POLL_PERIOD; skt 805 drivers/pcmcia/soc_common.c ret = request_resource(&iomem_resource, &skt->res_skt); skt 809 drivers/pcmcia/soc_common.c ret = request_resource(&skt->res_skt, &skt->res_io); skt 813 drivers/pcmcia/soc_common.c ret = request_resource(&skt->res_skt, &skt->res_mem); skt 817 drivers/pcmcia/soc_common.c ret = request_resource(&skt->res_skt, &skt->res_attr); skt 821 drivers/pcmcia/soc_common.c skt->virt_io = ioremap(skt->res_io.start, 0x10000); skt 822 drivers/pcmcia/soc_common.c if (skt->virt_io == NULL) { skt 832 drivers/pcmcia/soc_common.c skt->ops->set_timing(skt); skt 834 drivers/pcmcia/soc_common.c ret = soc_pcmcia_hw_init(skt); skt 838 drivers/pcmcia/soc_common.c skt->socket.ops = &soc_common_pcmcia_operations; skt 839 drivers/pcmcia/soc_common.c skt->socket.features = SS_CAP_STATIC_MAP|SS_CAP_PCCARD; skt 840 drivers/pcmcia/soc_common.c skt->socket.resource_ops = &pccard_static_ops; skt 841 drivers/pcmcia/soc_common.c skt->socket.irq_mask = 0; skt 842 drivers/pcmcia/soc_common.c skt->socket.map_size = PAGE_SIZE; skt 843 drivers/pcmcia/soc_common.c skt->socket.io_offset = (unsigned long)skt->virt_io; skt 845 drivers/pcmcia/soc_common.c skt->status = soc_common_pcmcia_skt_state(skt); skt 848 drivers/pcmcia/soc_common.c if (skt->ops->frequency_change) { skt 849 drivers/pcmcia/soc_common.c skt->cpufreq_nb.notifier_call = soc_common_pcmcia_cpufreq_nb; skt 851 drivers/pcmcia/soc_common.c ret = cpufreq_register_notifier(&skt->cpufreq_nb, skt 854 drivers/pcmcia/soc_common.c dev_err(skt->socket.dev.parent, skt 860 drivers/pcmcia/soc_common.c ret = pcmcia_register_socket(&skt->socket); skt 864 drivers/pcmcia/soc_common.c ret = device_create_file(&skt->socket.dev, &dev_attr_status); skt 871 drivers/pcmcia/soc_common.c del_timer_sync(&skt->poll_timer); skt 872 drivers/pcmcia/soc_common.c pcmcia_unregister_socket(&skt->socket); skt 875 drivers/pcmcia/soc_common.c soc_pcmcia_hw_shutdown(skt); skt 877 drivers/pcmcia/soc_common.c iounmap(skt->virt_io); skt 879 drivers/pcmcia/soc_common.c release_resource(&skt->res_attr); skt 881 drivers/pcmcia/soc_common.c release_resource(&skt->res_mem); skt 883 drivers/pcmcia/soc_common.c release_resource(&skt->res_io); skt 885 drivers/pcmcia/soc_common.c release_resource(&skt->res_skt); skt 91 drivers/pcmcia/soc_common.h struct soc_pcmcia_socket skt[0]; skt 155 drivers/pcmcia/soc_common.h void soc_pcmcia_init_one(struct soc_pcmcia_socket *skt, skt 157 drivers/pcmcia/soc_common.h void soc_pcmcia_remove_one(struct soc_pcmcia_socket *skt); skt 158 drivers/pcmcia/soc_common.h int soc_pcmcia_add_one(struct soc_pcmcia_socket *skt); skt 159 drivers/pcmcia/soc_common.h int soc_pcmcia_request_gpiods(struct soc_pcmcia_socket *skt); skt 161 drivers/pcmcia/soc_common.h void soc_common_cf_socket_state(struct soc_pcmcia_socket *skt, skt 164 drivers/pcmcia/soc_common.h int soc_pcmcia_regulator_set(struct soc_pcmcia_socket *skt, skt 169 drivers/pcmcia/soc_common.h extern void soc_pcmcia_debug(struct soc_pcmcia_socket *skt, const char *func, skt 172 drivers/pcmcia/soc_common.h #define debug(skt, lvl, fmt, arg...) \ skt 173 drivers/pcmcia/soc_common.h soc_pcmcia_debug(skt, __func__, lvl, fmt , ## arg) skt 176 drivers/pcmcia/soc_common.h #define debug(skt, lvl, fmt, arg...) do { } while (0) skt 78 drivers/pcmcia/xxs1500_ss.c static int xxs1500_pcmcia_configure(struct pcmcia_socket *skt, skt 81 drivers/pcmcia/xxs1500_ss.c struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); skt 115 drivers/pcmcia/xxs1500_ss.c static int xxs1500_pcmcia_get_status(struct pcmcia_socket *skt, skt 156 drivers/pcmcia/xxs1500_ss.c static int xxs1500_pcmcia_sock_init(struct pcmcia_socket *skt) skt 171 drivers/pcmcia/xxs1500_ss.c static int xxs1500_pcmcia_sock_suspend(struct pcmcia_socket *skt) skt 176 drivers/pcmcia/xxs1500_ss.c static int au1x00_pcmcia_set_io_map(struct pcmcia_socket *skt, skt 179 drivers/pcmcia/xxs1500_ss.c struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); skt 187 drivers/pcmcia/xxs1500_ss.c static int au1x00_pcmcia_set_mem_map(struct pcmcia_socket *skt, skt 190 drivers/pcmcia/xxs1500_ss.c struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); skt 197 include/pcmcia/ds.h int pcmcia_reset_card(struct pcmcia_socket *skt);