rtsx 1683 drivers/mmc/host/sdhci-pci-core.c SDHCI_PCI_DEVICE(REALTEK, 5250, rtsx), rtsx 704 drivers/staging/rts5208/rtsx.c chip->vendor_id = chip->rtsx->pci->vendor; rtsx 705 drivers/staging/rts5208/rtsx.c chip->product_id = chip->rtsx->pci->device; rtsx 888 drivers/staging/rts5208/rtsx.c dev->chip->rtsx = dev; rtsx 43 drivers/staging/rts5208/rtsx.h iowrite32(value, (chip)->rtsx->remap_addr + reg) rtsx 45 drivers/staging/rts5208/rtsx.h ioread32((chip)->rtsx->remap_addr + reg) rtsx 47 drivers/staging/rts5208/rtsx.h iowrite16(value, (chip)->rtsx->remap_addr + reg) rtsx 49 drivers/staging/rts5208/rtsx.h ioread16((chip)->rtsx->remap_addr + reg) rtsx 51 drivers/staging/rts5208/rtsx.h iowrite8(value, (chip)->rtsx->remap_addr + reg) rtsx 53 drivers/staging/rts5208/rtsx.h ioread8((chip)->rtsx->remap_addr + reg) rtsx 56 drivers/staging/rts5208/rtsx.h pci_read_config_byte((chip)->rtsx->pci, where, val) rtsx 59 drivers/staging/rts5208/rtsx.h pci_write_config_byte((chip)->rtsx->pci, where, val) rtsx 137 drivers/staging/rts5208/rtsx.h #define lock_state(chip) spin_lock_irq(&((chip)->rtsx->reg_lock)) rtsx 138 drivers/staging/rts5208/rtsx.h #define unlock_state(chip) spin_unlock_irq(&((chip)->rtsx->reg_lock)) rtsx 694 drivers/staging/rts5208/rtsx_chip.h struct rtsx_dev *rtsx; rtsx 924 drivers/staging/rts5208/rtsx_chip.h return &chip->rtsx->pci->dev; rtsx 21 drivers/staging/rts5208/rtsx_sys.h struct rtsx_dev *dev = chip->rtsx; rtsx 206 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&chip->rtsx->reg_lock); rtsx 210 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&chip->rtsx->reg_lock); rtsx 227 drivers/staging/rts5208/rtsx_transport.c struct rtsx_dev *rtsx = chip->rtsx; rtsx 234 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = SD_EXIST; rtsx 236 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = MS_EXIST; rtsx 238 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = XD_EXIST; rtsx 240 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = 0; rtsx 242 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 245 drivers/staging/rts5208/rtsx_transport.c rtsx->done = &trans_done; rtsx 246 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_result = TRANS_NOT_READY; rtsx 248 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_state = STATE_TRANS_CMD; rtsx 257 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 269 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 270 drivers/staging/rts5208/rtsx_transport.c if (rtsx->trans_result == TRANS_RESULT_FAIL) rtsx 272 drivers/staging/rts5208/rtsx_transport.c else if (rtsx->trans_result == TRANS_RESULT_OK) rtsx 275 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 278 drivers/staging/rts5208/rtsx_transport.c rtsx->done = NULL; rtsx 279 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_state = STATE_TRANS_NONE; rtsx 320 drivers/staging/rts5208/rtsx_transport.c struct rtsx_dev *rtsx = chip->rtsx; rtsx 340 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = SD_EXIST; rtsx 342 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = MS_EXIST; rtsx 344 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = XD_EXIST; rtsx 346 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = 0; rtsx 348 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 351 drivers/staging/rts5208/rtsx_transport.c rtsx->done = &trans_done; rtsx 353 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_state = STATE_TRANS_SG; rtsx 354 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_result = TRANS_NOT_READY; rtsx 356 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 358 drivers/staging/rts5208/rtsx_transport.c sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); rtsx 413 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 420 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 433 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 434 drivers/staging/rts5208/rtsx_transport.c if (rtsx->trans_result == TRANS_RESULT_FAIL) { rtsx 436 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 439 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 442 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 443 drivers/staging/rts5208/rtsx_transport.c if (rtsx->trans_result == TRANS_NOT_READY) { rtsx 445 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 457 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 460 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 461 drivers/staging/rts5208/rtsx_transport.c if (rtsx->trans_result == TRANS_RESULT_FAIL) rtsx 463 drivers/staging/rts5208/rtsx_transport.c else if (rtsx->trans_result == TRANS_RESULT_OK) rtsx 466 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 469 drivers/staging/rts5208/rtsx_transport.c rtsx->done = NULL; rtsx 470 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_state = STATE_TRANS_NONE; rtsx 471 drivers/staging/rts5208/rtsx_transport.c dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); rtsx 484 drivers/staging/rts5208/rtsx_transport.c struct rtsx_dev *rtsx = chip->rtsx; rtsx 503 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = SD_EXIST; rtsx 505 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = MS_EXIST; rtsx 507 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = XD_EXIST; rtsx 509 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = 0; rtsx 511 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 514 drivers/staging/rts5208/rtsx_transport.c rtsx->done = &trans_done; rtsx 516 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_state = STATE_TRANS_SG; rtsx 517 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_result = TRANS_NOT_READY; rtsx 519 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 521 drivers/staging/rts5208/rtsx_transport.c buf_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); rtsx 557 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 564 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 577 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 578 drivers/staging/rts5208/rtsx_transport.c if (rtsx->trans_result == TRANS_RESULT_FAIL) { rtsx 580 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 583 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 589 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 590 drivers/staging/rts5208/rtsx_transport.c if (rtsx->trans_result == TRANS_NOT_READY) { rtsx 592 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 604 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 607 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 608 drivers/staging/rts5208/rtsx_transport.c if (rtsx->trans_result == TRANS_RESULT_FAIL) rtsx 610 drivers/staging/rts5208/rtsx_transport.c else if (rtsx->trans_result == TRANS_RESULT_OK) rtsx 613 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 616 drivers/staging/rts5208/rtsx_transport.c rtsx->done = NULL; rtsx 617 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_state = STATE_TRANS_NONE; rtsx 618 drivers/staging/rts5208/rtsx_transport.c dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); rtsx 630 drivers/staging/rts5208/rtsx_transport.c struct rtsx_dev *rtsx = chip->rtsx; rtsx 648 drivers/staging/rts5208/rtsx_transport.c addr = dma_map_single(&rtsx->pci->dev, buf, len, dma_dir); rtsx 649 drivers/staging/rts5208/rtsx_transport.c if (dma_mapping_error(&rtsx->pci->dev, addr)) rtsx 653 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = SD_EXIST; rtsx 655 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = MS_EXIST; rtsx 657 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = XD_EXIST; rtsx 659 drivers/staging/rts5208/rtsx_transport.c rtsx->check_card_cd = 0; rtsx 664 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 667 drivers/staging/rts5208/rtsx_transport.c rtsx->done = &trans_done; rtsx 671 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_state = STATE_TRANS_BUF; rtsx 672 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_result = TRANS_NOT_READY; rtsx 677 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 691 drivers/staging/rts5208/rtsx_transport.c spin_lock_irq(&rtsx->reg_lock); rtsx 692 drivers/staging/rts5208/rtsx_transport.c if (rtsx->trans_result == TRANS_RESULT_FAIL) rtsx 694 drivers/staging/rts5208/rtsx_transport.c else if (rtsx->trans_result == TRANS_RESULT_OK) rtsx 697 drivers/staging/rts5208/rtsx_transport.c spin_unlock_irq(&rtsx->reg_lock); rtsx 700 drivers/staging/rts5208/rtsx_transport.c rtsx->done = NULL; rtsx 701 drivers/staging/rts5208/rtsx_transport.c rtsx->trans_state = STATE_TRANS_NONE; rtsx 702 drivers/staging/rts5208/rtsx_transport.c dma_unmap_single(&rtsx->pci->dev, addr, len, dma_dir);