drv_data 380 arch/arm/mach-vexpress/spc.c struct ve_spc_drvdata *drv_data = data; drv_data 381 arch/arm/mach-vexpress/spc.c uint32_t status = readl_relaxed(drv_data->baseaddr + PWC_STATUS); drv_data 385 arch/arm/mach-vexpress/spc.c complete(&drv_data->done); drv_data 120 arch/x86/platform/atom/punit_atom_debug.c #define ICPU(model, drv_data) \ drv_data 122 arch/x86/platform/atom/punit_atom_debug.c (kernel_ulong_t)&drv_data } drv_data 347 drivers/acpi/ac.c psy_cfg.drv_data = ac; drv_data 819 drivers/acpi/battery.c struct power_supply_config psy_cfg = { .drv_data = battery, }; drv_data 515 drivers/acpi/sbs.c struct power_supply_config psy_cfg = { .drv_data = battery, }; drv_data 570 drivers/acpi/sbs.c struct power_supply_config psy_cfg = { .drv_data = sbs, }; drv_data 57 drivers/ata/ahci_st.c struct st_ahci_drv_data *drv_data = hpriv->plat_data; drv_data 60 drivers/ata/ahci_st.c if (drv_data->pwr) { drv_data 61 drivers/ata/ahci_st.c err = reset_control_deassert(drv_data->pwr); drv_data 68 drivers/ata/ahci_st.c if (drv_data->sw_rst) { drv_data 69 drivers/ata/ahci_st.c err = reset_control_deassert(drv_data->sw_rst); drv_data 76 drivers/ata/ahci_st.c if (drv_data->pwr_rst) { drv_data 77 drivers/ata/ahci_st.c err = reset_control_deassert(drv_data->pwr_rst); drv_data 90 drivers/ata/ahci_st.c struct st_ahci_drv_data *drv_data = hpriv->plat_data; drv_data 94 drivers/ata/ahci_st.c if (drv_data->pwr) { drv_data 95 drivers/ata/ahci_st.c err = reset_control_assert(drv_data->pwr); drv_data 106 drivers/ata/ahci_st.c struct st_ahci_drv_data *drv_data = hpriv->plat_data; drv_data 108 drivers/ata/ahci_st.c drv_data->pwr = devm_reset_control_get(dev, "pwr-dwn"); drv_data 109 drivers/ata/ahci_st.c if (IS_ERR(drv_data->pwr)) { drv_data 111 drivers/ata/ahci_st.c drv_data->pwr = NULL; drv_data 114 drivers/ata/ahci_st.c drv_data->sw_rst = devm_reset_control_get(dev, "sw-rst"); drv_data 115 drivers/ata/ahci_st.c if (IS_ERR(drv_data->sw_rst)) { drv_data 117 drivers/ata/ahci_st.c drv_data->sw_rst = NULL; drv_data 120 drivers/ata/ahci_st.c drv_data->pwr_rst = devm_reset_control_get(dev, "pwr-rst"); drv_data 121 drivers/ata/ahci_st.c if (IS_ERR(drv_data->pwr_rst)) { drv_data 123 drivers/ata/ahci_st.c drv_data->pwr_rst = NULL; drv_data 148 drivers/ata/ahci_st.c struct st_ahci_drv_data *drv_data; drv_data 152 drivers/ata/ahci_st.c drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); drv_data 153 drivers/ata/ahci_st.c if (!drv_data) drv_data 159 drivers/ata/ahci_st.c hpriv->plat_data = drv_data; drv_data 189 drivers/ata/ahci_st.c struct st_ahci_drv_data *drv_data = hpriv->plat_data; drv_data 196 drivers/ata/ahci_st.c if (drv_data->pwr) { drv_data 197 drivers/ata/ahci_st.c err = reset_control_assert(drv_data->pwr); drv_data 262 drivers/ata/pata_ep93xx.c static u16 ep93xx_pata_read(struct ep93xx_pata_data *drv_data, drv_data 266 drivers/ata/pata_ep93xx.c void __iomem *base = drv_data->ide_base; drv_data 267 drivers/ata/pata_ep93xx.c const struct ata_timing *t = &drv_data->t; drv_data 278 drivers/ata/pata_ep93xx.c ep93xx_pata_rw_end(base, addr, drv_data->iordy, t0, t2, t2i); drv_data 283 drivers/ata/pata_ep93xx.c static u16 ep93xx_pata_read_reg(struct ep93xx_pata_data *drv_data, drv_data 286 drivers/ata/pata_ep93xx.c return ep93xx_pata_read(drv_data, addr, true); drv_data 290 drivers/ata/pata_ep93xx.c static u16 ep93xx_pata_read_data(struct ep93xx_pata_data *drv_data, drv_data 293 drivers/ata/pata_ep93xx.c return ep93xx_pata_read(drv_data, addr, false); drv_data 296 drivers/ata/pata_ep93xx.c static void ep93xx_pata_write(struct ep93xx_pata_data *drv_data, drv_data 300 drivers/ata/pata_ep93xx.c void __iomem *base = drv_data->ide_base; drv_data 301 drivers/ata/pata_ep93xx.c const struct ata_timing *t = &drv_data->t; drv_data 313 drivers/ata/pata_ep93xx.c ep93xx_pata_rw_end(base, addr, drv_data->iordy, t0, t2, t2i); drv_data 317 drivers/ata/pata_ep93xx.c static void ep93xx_pata_write_reg(struct ep93xx_pata_data *drv_data, drv_data 320 drivers/ata/pata_ep93xx.c ep93xx_pata_write(drv_data, value, addr, true); drv_data 324 drivers/ata/pata_ep93xx.c static void ep93xx_pata_write_data(struct ep93xx_pata_data *drv_data, drv_data 327 drivers/ata/pata_ep93xx.c ep93xx_pata_write(drv_data, value, addr, false); drv_data 333 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 344 drivers/ata/pata_ep93xx.c ata_timing_compute(adev, adev->pio_mode, &drv_data->t, T, 0); drv_data 348 drivers/ata/pata_ep93xx.c ata_timing_merge(&t, &drv_data->t, &drv_data->t, drv_data 351 drivers/ata/pata_ep93xx.c drv_data->iordy = ata_pio_need_iordy(adev); drv_data 353 drivers/ata/pata_ep93xx.c ep93xx_pata_enable_pio(drv_data->ide_base, drv_data 360 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 362 drivers/ata/pata_ep93xx.c return ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_STATUS); drv_data 367 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 369 drivers/ata/pata_ep93xx.c return ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_ALTSTATUS); drv_data 376 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 380 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->ctl, IDECTRL_ADDR_CTL); drv_data 386 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->hob_feature, drv_data 388 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->hob_nsect, drv_data 390 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->hob_lbal, drv_data 392 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->hob_lbam, drv_data 394 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->hob_lbah, drv_data 399 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->feature, drv_data 401 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->nsect, IDECTRL_ADDR_NSECT); drv_data 402 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->lbal, IDECTRL_ADDR_LBAL); drv_data 403 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->lbam, IDECTRL_ADDR_LBAM); drv_data 404 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->lbah, IDECTRL_ADDR_LBAH); drv_data 408 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->device, drv_data 417 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 420 drivers/ata/pata_ep93xx.c tf->feature = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_FEATURE); drv_data 421 drivers/ata/pata_ep93xx.c tf->nsect = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_NSECT); drv_data 422 drivers/ata/pata_ep93xx.c tf->lbal = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_LBAL); drv_data 423 drivers/ata/pata_ep93xx.c tf->lbam = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_LBAM); drv_data 424 drivers/ata/pata_ep93xx.c tf->lbah = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_LBAH); drv_data 425 drivers/ata/pata_ep93xx.c tf->device = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_DEVICE); drv_data 428 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->ctl | ATA_HOB, drv_data 430 drivers/ata/pata_ep93xx.c tf->hob_feature = ep93xx_pata_read_reg(drv_data, drv_data 432 drivers/ata/pata_ep93xx.c tf->hob_nsect = ep93xx_pata_read_reg(drv_data, drv_data 434 drivers/ata/pata_ep93xx.c tf->hob_lbal = ep93xx_pata_read_reg(drv_data, drv_data 436 drivers/ata/pata_ep93xx.c tf->hob_lbam = ep93xx_pata_read_reg(drv_data, drv_data 438 drivers/ata/pata_ep93xx.c tf->hob_lbah = ep93xx_pata_read_reg(drv_data, drv_data 440 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->ctl, IDECTRL_ADDR_CTL); drv_data 449 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 451 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tf->command, drv_data 459 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 465 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, tmp, IDECTRL_ADDR_DEVICE); drv_data 472 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 474 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, ctl, IDECTRL_ADDR_CTL); drv_data 483 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 492 drivers/ata/pata_ep93xx.c drv_data, IDECTRL_ADDR_DATA)); drv_data 494 drivers/ata/pata_ep93xx.c ep93xx_pata_write_data(drv_data, le16_to_cpu(*data++), drv_data 506 drivers/ata/pata_ep93xx.c drv_data, IDECTRL_ADDR_DATA)); drv_data 510 drivers/ata/pata_ep93xx.c ep93xx_pata_write_data(drv_data, le16_to_cpu(*pad), drv_data 523 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 528 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, 0x55, IDECTRL_ADDR_NSECT); drv_data 529 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, 0xaa, IDECTRL_ADDR_LBAL); drv_data 531 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, 0xaa, IDECTRL_ADDR_NSECT); drv_data 532 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, 0x55, IDECTRL_ADDR_LBAL); drv_data 534 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, 0x55, IDECTRL_ADDR_NSECT); drv_data 535 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, 0xaa, IDECTRL_ADDR_LBAL); drv_data 537 drivers/ata/pata_ep93xx.c nsect = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_NSECT); drv_data 538 drivers/ata/pata_ep93xx.c lbal = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_LBAL); drv_data 552 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 585 drivers/ata/pata_ep93xx.c nsect = ep93xx_pata_read_reg(drv_data, drv_data 587 drivers/ata/pata_ep93xx.c lbal = ep93xx_pata_read_reg(drv_data, drv_data 615 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 617 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, ap->ctl, IDECTRL_ADDR_CTL); drv_data 619 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, ap->ctl | ATA_SRST, IDECTRL_ADDR_CTL); drv_data 621 drivers/ata/pata_ep93xx.c ep93xx_pata_write_reg(drv_data, ap->ctl, IDECTRL_ADDR_CTL); drv_data 627 drivers/ata/pata_ep93xx.c static void ep93xx_pata_release_dma(struct ep93xx_pata_data *drv_data) drv_data 629 drivers/ata/pata_ep93xx.c if (drv_data->dma_rx_channel) { drv_data 630 drivers/ata/pata_ep93xx.c dma_release_channel(drv_data->dma_rx_channel); drv_data 631 drivers/ata/pata_ep93xx.c drv_data->dma_rx_channel = NULL; drv_data 633 drivers/ata/pata_ep93xx.c if (drv_data->dma_tx_channel) { drv_data 634 drivers/ata/pata_ep93xx.c dma_release_channel(drv_data->dma_tx_channel); drv_data 635 drivers/ata/pata_ep93xx.c drv_data->dma_tx_channel = NULL; drv_data 648 drivers/ata/pata_ep93xx.c static void ep93xx_pata_dma_init(struct ep93xx_pata_data *drv_data) drv_data 650 drivers/ata/pata_ep93xx.c const struct platform_device *pdev = drv_data->pdev; drv_data 662 drivers/ata/pata_ep93xx.c drv_data->dma_rx_data.port = EP93XX_DMA_IDE; drv_data 663 drivers/ata/pata_ep93xx.c drv_data->dma_rx_data.direction = DMA_DEV_TO_MEM; drv_data 664 drivers/ata/pata_ep93xx.c drv_data->dma_rx_data.name = "ep93xx-pata-rx"; drv_data 665 drivers/ata/pata_ep93xx.c drv_data->dma_rx_channel = dma_request_channel(mask, drv_data 666 drivers/ata/pata_ep93xx.c ep93xx_pata_dma_filter, &drv_data->dma_rx_data); drv_data 667 drivers/ata/pata_ep93xx.c if (!drv_data->dma_rx_channel) drv_data 670 drivers/ata/pata_ep93xx.c drv_data->dma_tx_data.port = EP93XX_DMA_IDE; drv_data 671 drivers/ata/pata_ep93xx.c drv_data->dma_tx_data.direction = DMA_MEM_TO_DEV; drv_data 672 drivers/ata/pata_ep93xx.c drv_data->dma_tx_data.name = "ep93xx-pata-tx"; drv_data 673 drivers/ata/pata_ep93xx.c drv_data->dma_tx_channel = dma_request_channel(mask, drv_data 674 drivers/ata/pata_ep93xx.c ep93xx_pata_dma_filter, &drv_data->dma_tx_data); drv_data 675 drivers/ata/pata_ep93xx.c if (!drv_data->dma_tx_channel) { drv_data 676 drivers/ata/pata_ep93xx.c dma_release_channel(drv_data->dma_rx_channel); drv_data 683 drivers/ata/pata_ep93xx.c conf.src_addr = drv_data->udma_in_phys; drv_data 685 drivers/ata/pata_ep93xx.c if (dmaengine_slave_config(drv_data->dma_rx_channel, &conf)) { drv_data 687 drivers/ata/pata_ep93xx.c ep93xx_pata_release_dma(drv_data); drv_data 694 drivers/ata/pata_ep93xx.c conf.dst_addr = drv_data->udma_out_phys; drv_data 696 drivers/ata/pata_ep93xx.c if (dmaengine_slave_config(drv_data->dma_tx_channel, &conf)) { drv_data 698 drivers/ata/pata_ep93xx.c ep93xx_pata_release_dma(drv_data); drv_data 705 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = qc->ap->host->private_data; drv_data 706 drivers/ata/pata_ep93xx.c void __iomem *base = drv_data->ide_base; drv_data 710 drivers/ata/pata_ep93xx.c ? drv_data->dma_tx_channel : drv_data->dma_rx_channel; drv_data 745 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = qc->ap->host->private_data; drv_data 746 drivers/ata/pata_ep93xx.c void __iomem *base = drv_data->ide_base; drv_data 749 drivers/ata/pata_ep93xx.c dmaengine_terminate_all(drv_data->dma_rx_channel); drv_data 750 drivers/ata/pata_ep93xx.c dmaengine_terminate_all(drv_data->dma_tx_channel); drv_data 760 drivers/ata/pata_ep93xx.c ep93xx_pata_enable_pio(drv_data->ide_base, drv_data 773 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 774 drivers/ata/pata_ep93xx.c u32 val = readl(drv_data->ide_base + IDEUDMASTS); drv_data 794 drivers/ata/pata_ep93xx.c if (readl(drv_data->ide_base + IDECTRL) & IDECTRL_INTRQ) drv_data 845 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data; drv_data 852 drivers/ata/pata_ep93xx.c drv_data = ap->host->private_data; drv_data 856 drivers/ata/pata_ep93xx.c ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_DATA); drv_data 866 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = ap->host->private_data; drv_data 872 drivers/ata/pata_ep93xx.c drv_data->t = *ata_timing_find_mode(XFER_PIO_0); drv_data 916 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data; drv_data 942 drivers/ata/pata_ep93xx.c drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); drv_data 943 drivers/ata/pata_ep93xx.c if (!drv_data) { drv_data 948 drivers/ata/pata_ep93xx.c drv_data->pdev = pdev; drv_data 949 drivers/ata/pata_ep93xx.c drv_data->ide_base = ide_base; drv_data 950 drivers/ata/pata_ep93xx.c drv_data->udma_in_phys = mem_res->start + IDEUDMADATAIN; drv_data 951 drivers/ata/pata_ep93xx.c drv_data->udma_out_phys = mem_res->start + IDEUDMADATAOUT; drv_data 952 drivers/ata/pata_ep93xx.c ep93xx_pata_dma_init(drv_data); drv_data 963 drivers/ata/pata_ep93xx.c host->private_data = drv_data; drv_data 980 drivers/ata/pata_ep93xx.c if (drv_data->dma_rx_channel && drv_data->dma_tx_channel) { drv_data 1003 drivers/ata/pata_ep93xx.c ep93xx_pata_release_dma(drv_data); drv_data 1012 drivers/ata/pata_ep93xx.c struct ep93xx_pata_data *drv_data = host->private_data; drv_data 1015 drivers/ata/pata_ep93xx.c ep93xx_pata_release_dma(drv_data); drv_data 1016 drivers/ata/pata_ep93xx.c ep93xx_pata_clear_regs(drv_data->ide_base); drv_data 150 drivers/clk/clk-max77686.c struct max77686_clk_driver_data *drv_data = data; drv_data 153 drivers/clk/clk-max77686.c if (idx >= drv_data->num_clks) { drv_data 158 drivers/clk/clk-max77686.c return &drv_data->max_clk_data[idx].hw; drv_data 166 drivers/clk/clk-max77686.c struct max77686_clk_driver_data *drv_data; drv_data 171 drivers/clk/clk-max77686.c drv_data = devm_kzalloc(dev, sizeof(*drv_data), GFP_KERNEL); drv_data 172 drivers/clk/clk-max77686.c if (!drv_data) drv_data 181 drivers/clk/clk-max77686.c drv_data->chip = id->driver_data; drv_data 183 drivers/clk/clk-max77686.c switch (drv_data->chip) { drv_data 204 drivers/clk/clk-max77686.c drv_data->num_clks = num_clks; drv_data 205 drivers/clk/clk-max77686.c drv_data->max_clk_data = devm_kcalloc(dev, num_clks, drv_data 206 drivers/clk/clk-max77686.c sizeof(*drv_data->max_clk_data), drv_data 208 drivers/clk/clk-max77686.c if (!drv_data->max_clk_data) drv_data 215 drivers/clk/clk-max77686.c max_clk_data = &drv_data->max_clk_data[i]; drv_data 249 drivers/clk/clk-max77686.c drv_data); drv_data 259 drivers/clk/clk-max77686.c if (drv_data->chip == CHIP_MAX77802) { drv_data 29 drivers/crypto/chelsio/chcr_core.c static struct chcr_driver_data drv_data; drv_data 86 drivers/crypto/chelsio/chcr_core.c mutex_lock(&drv_data.drv_mutex); drv_data 87 drivers/crypto/chelsio/chcr_core.c if (!list_empty(&drv_data.act_dev)) { drv_data 88 drivers/crypto/chelsio/chcr_core.c u_ctx = drv_data.last_dev; drv_data 89 drivers/crypto/chelsio/chcr_core.c if (list_is_last(&drv_data.last_dev->entry, &drv_data.act_dev)) drv_data 90 drivers/crypto/chelsio/chcr_core.c drv_data.last_dev = list_first_entry(&drv_data.act_dev, drv_data 93 drivers/crypto/chelsio/chcr_core.c drv_data.last_dev = drv_data 94 drivers/crypto/chelsio/chcr_core.c list_next_entry(drv_data.last_dev, entry); drv_data 96 drivers/crypto/chelsio/chcr_core.c mutex_unlock(&drv_data.drv_mutex); drv_data 107 drivers/crypto/chelsio/chcr_core.c mutex_lock(&drv_data.drv_mutex); drv_data 108 drivers/crypto/chelsio/chcr_core.c list_move(&u_ctx->entry, &drv_data.act_dev); drv_data 109 drivers/crypto/chelsio/chcr_core.c if (!drv_data.last_dev) drv_data 110 drivers/crypto/chelsio/chcr_core.c drv_data.last_dev = u_ctx; drv_data 111 drivers/crypto/chelsio/chcr_core.c mutex_unlock(&drv_data.drv_mutex); drv_data 124 drivers/crypto/chelsio/chcr_core.c atomic_inc(&drv_data.dev_count); drv_data 126 drivers/crypto/chelsio/chcr_core.c mutex_lock(&drv_data.drv_mutex); drv_data 127 drivers/crypto/chelsio/chcr_core.c list_add_tail(&u_ctx->entry, &drv_data.inact_dev); drv_data 128 drivers/crypto/chelsio/chcr_core.c mutex_unlock(&drv_data.drv_mutex); drv_data 135 drivers/crypto/chelsio/chcr_core.c mutex_lock(&drv_data.drv_mutex); drv_data 136 drivers/crypto/chelsio/chcr_core.c if (drv_data.last_dev == u_ctx) { drv_data 137 drivers/crypto/chelsio/chcr_core.c if (list_is_last(&drv_data.last_dev->entry, &drv_data.act_dev)) drv_data 138 drivers/crypto/chelsio/chcr_core.c drv_data.last_dev = list_first_entry(&drv_data.act_dev, drv_data 141 drivers/crypto/chelsio/chcr_core.c drv_data.last_dev = drv_data 142 drivers/crypto/chelsio/chcr_core.c list_next_entry(drv_data.last_dev, entry); drv_data 144 drivers/crypto/chelsio/chcr_core.c list_move(&u_ctx->entry, &drv_data.inact_dev); drv_data 145 drivers/crypto/chelsio/chcr_core.c if (list_empty(&drv_data.act_dev)) drv_data 146 drivers/crypto/chelsio/chcr_core.c drv_data.last_dev = NULL; drv_data 149 drivers/crypto/chelsio/chcr_core.c atomic_dec(&drv_data.dev_count); drv_data 150 drivers/crypto/chelsio/chcr_core.c mutex_unlock(&drv_data.drv_mutex); drv_data 287 drivers/crypto/chelsio/chcr_core.c INIT_LIST_HEAD(&drv_data.act_dev); drv_data 288 drivers/crypto/chelsio/chcr_core.c INIT_LIST_HEAD(&drv_data.inact_dev); drv_data 289 drivers/crypto/chelsio/chcr_core.c atomic_set(&drv_data.dev_count, 0); drv_data 290 drivers/crypto/chelsio/chcr_core.c mutex_init(&drv_data.drv_mutex); drv_data 291 drivers/crypto/chelsio/chcr_core.c drv_data.last_dev = NULL; drv_data 305 drivers/crypto/chelsio/chcr_core.c mutex_lock(&drv_data.drv_mutex); drv_data 306 drivers/crypto/chelsio/chcr_core.c list_for_each_entry_safe(u_ctx, tmp, &drv_data.act_dev, entry) { drv_data 310 drivers/crypto/chelsio/chcr_core.c list_for_each_entry_safe(u_ctx, tmp, &drv_data.inact_dev, entry) { drv_data 314 drivers/crypto/chelsio/chcr_core.c mutex_unlock(&drv_data.drv_mutex); drv_data 17 drivers/dma/dw/pci.c const struct dw_dma_chip_pdata *drv_data = (void *)pid->driver_data; drv_data 43 drivers/dma/dw/pci.c data = devm_kmemdup(&pdev->dev, drv_data, sizeof(*drv_data), GFP_KERNEL); drv_data 123 drivers/gpu/drm/exynos/exynos_hdmi.c const struct hdmi_driver_data *drv_data; drv_data 669 drivers/gpu/drm/exynos/exynos_hdmi.c return hdmi_reg_map[reg_id & 0xffff][hdata->drv_data->type]; drv_data 740 drivers/gpu/drm/exynos/exynos_hdmi.c for (i = 0; i < hdata->drv_data->clk_gates.count; ++i) { drv_data 746 drivers/gpu/drm/exynos/exynos_hdmi.c hdata->drv_data->clk_gates.data[i], ret); drv_data 757 drivers/gpu/drm/exynos/exynos_hdmi.c int i = hdata->drv_data->clk_gates.count; drv_data 769 drivers/gpu/drm/exynos/exynos_hdmi.c for (i = 0; i < hdata->drv_data->clk_muxes.count; i += 3) { drv_data 777 drivers/gpu/drm/exynos/exynos_hdmi.c hdata->drv_data->clk_muxes.data[i + 2], drv_data 778 drivers/gpu/drm/exynos/exynos_hdmi.c hdata->drv_data->clk_muxes.data[i + to_phy], ret); drv_data 902 drivers/gpu/drm/exynos/exynos_hdmi.c const struct hdmiphy_configs *confs = &hdata->drv_data->phy_confs; drv_data 1154 drivers/gpu/drm/exynos/exynos_hdmi.c if (hdata->drv_data->type == HDMI_TYPE13) { drv_data 1387 drivers/gpu/drm/exynos/exynos_hdmi.c if (hdata->drv_data == &exynos5433_hdmi_driver_data) drv_data 1393 drivers/gpu/drm/exynos/exynos_hdmi.c if (hdata->drv_data->type == HDMI_TYPE13) drv_data 1417 drivers/gpu/drm/exynos/exynos_hdmi.c if (hdata->drv_data == &exynos5433_hdmi_driver_data) drv_data 1432 drivers/gpu/drm/exynos/exynos_hdmi.c phy_conf = hdata->drv_data->phy_confs.data[ret].conf; drv_data 1703 drivers/gpu/drm/exynos/exynos_hdmi.c const struct hdmi_driver_data *drv_data = hdata->drv_data; drv_data 1704 drivers/gpu/drm/exynos/exynos_hdmi.c int count = drv_data->clk_gates.count + drv_data->clk_muxes.count; drv_data 1717 drivers/gpu/drm/exynos/exynos_hdmi.c hdata->clk_muxes = clks + drv_data->clk_gates.count; drv_data 1719 drivers/gpu/drm/exynos/exynos_hdmi.c ret = hdmi_clks_get(hdata, &drv_data->clk_gates, hdata->clk_gates); drv_data 1723 drivers/gpu/drm/exynos/exynos_hdmi.c return hdmi_clks_get(hdata, &drv_data->clk_muxes, hdata->clk_muxes); drv_data 1922 drivers/gpu/drm/exynos/exynos_hdmi.c if (hdata->drv_data->is_apb_phy) { drv_data 1956 drivers/gpu/drm/exynos/exynos_hdmi.c hdata->drv_data = of_device_get_match_data(dev); drv_data 2005 drivers/gpu/drm/exynos/exynos_hdmi.c if (hdata->drv_data->has_sysreg) { drv_data 573 drivers/hid/hid-asus.c struct power_supply_config pscfg = { .drv_data = drvdata }; drv_data 434 drivers/hid/hid-input.c struct power_supply_config psy_cfg = { .drv_data = dev, }; drv_data 433 drivers/hid/hid-lg.c struct lg_drv_data *drv_data = hid_get_drvdata(hdev); drv_data 435 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && drv_data 442 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && drv_data 664 drivers/hid/hid-lg.c struct lg_drv_data *drv_data = hid_get_drvdata(hdev); drv_data 675 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) drv_data 685 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_IGNORE_DOUBLED_WHEEL) && drv_data 689 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_EXPANDED_KEYMAP) && drv_data 705 drivers/hid/hid-lg.c struct lg_drv_data *drv_data = hid_get_drvdata(hdev); drv_data 707 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && drv_data 711 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || drv_data 745 drivers/hid/hid-lg.c struct lg_drv_data *drv_data = hid_get_drvdata(hdev); drv_data 747 drivers/hid/hid-lg.c if ((drv_data->quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) { drv_data 752 drivers/hid/hid-lg.c if (drv_data->quirks & LG_FF4) { drv_data 753 drivers/hid/hid-lg.c return lg4ff_adjust_input_event(hdev, field, usage, value, drv_data); drv_data 762 drivers/hid/hid-lg.c struct lg_drv_data *drv_data = hid_get_drvdata(hdev); drv_data 764 drivers/hid/hid-lg.c if (drv_data->quirks & LG_FF4) drv_data 765 drivers/hid/hid-lg.c return lg4ff_raw_event(hdev, report, rd, size, drv_data); drv_data 775 drivers/hid/hid-lg.c struct lg_drv_data *drv_data; drv_data 785 drivers/hid/hid-lg.c drv_data = kzalloc(sizeof(struct lg_drv_data), GFP_KERNEL); drv_data 786 drivers/hid/hid-lg.c if (!drv_data) { drv_data 790 drivers/hid/hid-lg.c drv_data->quirks = id->driver_data; drv_data 792 drivers/hid/hid-lg.c hid_set_drvdata(hdev, (void *)drv_data); drv_data 794 drivers/hid/hid-lg.c if (drv_data->quirks & LG_NOGET) drv_data 803 drivers/hid/hid-lg.c if (drv_data->quirks & (LG_FF | LG_FF2 | LG_FF3 | LG_FF4)) drv_data 843 drivers/hid/hid-lg.c if (drv_data->quirks & LG_FF) drv_data 845 drivers/hid/hid-lg.c else if (drv_data->quirks & LG_FF2) drv_data 847 drivers/hid/hid-lg.c else if (drv_data->quirks & LG_FF3) drv_data 849 drivers/hid/hid-lg.c else if (drv_data->quirks & LG_FF4) drv_data 860 drivers/hid/hid-lg.c kfree(drv_data); drv_data 866 drivers/hid/hid-lg.c struct lg_drv_data *drv_data = hid_get_drvdata(hdev); drv_data 867 drivers/hid/hid-lg.c if (drv_data->quirks & LG_FF4) drv_data 870 drivers/hid/hid-lg.c kfree(drv_data); drv_data 301 drivers/hid/hid-lg4ff.c struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) drv_data 303 drivers/hid/hid-lg4ff.c struct lg4ff_device_entry *entry = drv_data->device_props; drv_data 327 drivers/hid/hid-lg4ff.c u8 *rd, int size, struct lg_drv_data *drv_data) drv_data 330 drivers/hid/hid-lg4ff.c struct lg4ff_device_entry *entry = drv_data->device_props; drv_data 410 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 415 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 416 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 421 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 474 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 477 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 478 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 483 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 552 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 557 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 558 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 563 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 587 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 591 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 592 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 597 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 622 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 627 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 628 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 633 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 766 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 771 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 772 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 777 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 802 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 806 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 807 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 812 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 851 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 857 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 858 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 863 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 938 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 941 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 942 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 947 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 962 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 965 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 966 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 971 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 991 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 994 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 995 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 1000 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 1017 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 1020 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 1021 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 1026 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 1050 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 1053 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 1054 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 1059 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 1084 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 1089 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 1090 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 1095 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 1119 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data = hid_get_drvdata(hid); drv_data 1123 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 1128 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 1154 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data = hid_get_drvdata(hid); drv_data 1158 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 1163 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 1264 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 1280 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 1281 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 1290 drivers/hid/hid-lg4ff.c drv_data->device_props = entry; drv_data 1443 drivers/hid/hid-lg4ff.c drv_data->device_props = NULL; drv_data 1451 drivers/hid/hid-lg4ff.c struct lg_drv_data *drv_data; drv_data 1453 drivers/hid/hid-lg4ff.c drv_data = hid_get_drvdata(hid); drv_data 1454 drivers/hid/hid-lg4ff.c if (!drv_data) { drv_data 1458 drivers/hid/hid-lg4ff.c entry = drv_data->device_props; drv_data 1487 drivers/hid/hid-lg4ff.c drv_data->device_props = NULL; drv_data 9 drivers/hid/hid-lg4ff.h struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data); drv_data 11 drivers/hid/hid-lg4ff.h u8 *rd, int size, struct lg_drv_data *drv_data); drv_data 16 drivers/hid/hid-lg4ff.h struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; } drv_data 18 drivers/hid/hid-lg4ff.h u8 *rd, int size, struct lg_drv_data *drv_data) { return 0; } drv_data 3217 drivers/hid/hid-logitech-hidpp.c struct power_supply_config cfg = { .drv_data = hidpp }; drv_data 1857 drivers/hid/hid-sony.c struct sony_sc *drv_data; drv_data 1862 drivers/hid/hid-sony.c drv_data = hid_get_drvdata(hdev); drv_data 1863 drivers/hid/hid-sony.c if (!drv_data) { drv_data 1875 drivers/hid/hid-sony.c force_update = !!(drv_data->quirks & SIXAXIS_CONTROLLER_USB); drv_data 1877 drivers/hid/hid-sony.c for (n = 0; n < drv_data->led_count; n++) { drv_data 1878 drivers/hid/hid-sony.c if (led == drv_data->leds[n] && (force_update || drv_data 1879 drivers/hid/hid-sony.c (value != drv_data->led_state[n] || drv_data 1880 drivers/hid/hid-sony.c drv_data->led_delay_on[n] || drv_data 1881 drivers/hid/hid-sony.c drv_data->led_delay_off[n]))) { drv_data 1883 drivers/hid/hid-sony.c drv_data->led_state[n] = value; drv_data 1886 drivers/hid/hid-sony.c drv_data->led_delay_on[n] = 0; drv_data 1887 drivers/hid/hid-sony.c drv_data->led_delay_off[n] = 0; drv_data 1889 drivers/hid/hid-sony.c sony_set_leds(drv_data); drv_data 1899 drivers/hid/hid-sony.c struct sony_sc *drv_data; drv_data 1903 drivers/hid/hid-sony.c drv_data = hid_get_drvdata(hdev); drv_data 1904 drivers/hid/hid-sony.c if (!drv_data) { drv_data 1909 drivers/hid/hid-sony.c for (n = 0; n < drv_data->led_count; n++) { drv_data 1910 drivers/hid/hid-sony.c if (led == drv_data->leds[n]) drv_data 1911 drivers/hid/hid-sony.c return drv_data->led_state[n]; drv_data 1922 drivers/hid/hid-sony.c struct sony_sc *drv_data = hid_get_drvdata(hdev); drv_data 1926 drivers/hid/hid-sony.c if (!drv_data) { drv_data 1944 drivers/hid/hid-sony.c for (n = 0; n < drv_data->led_count; n++) { drv_data 1945 drivers/hid/hid-sony.c if (led == drv_data->leds[n]) drv_data 1950 drivers/hid/hid-sony.c if (n >= drv_data->led_count) drv_data 1954 drivers/hid/hid-sony.c if (new_on != drv_data->led_delay_on[n] || drv_data 1955 drivers/hid/hid-sony.c new_off != drv_data->led_delay_off[n]) { drv_data 1956 drivers/hid/hid-sony.c drv_data->led_delay_on[n] = new_on; drv_data 1957 drivers/hid/hid-sony.c drv_data->led_delay_off[n] = new_off; drv_data 1958 drivers/hid/hid-sony.c sony_schedule_work(drv_data, SONY_WORKER_STATE); drv_data 2342 drivers/hid/hid-sony.c struct power_supply_config psy_cfg = { .drv_data = sc, }; drv_data 349 drivers/hid/hid-steam.c struct power_supply_config battery_cfg = { .drv_data = steam, }; drv_data 142 drivers/hid/hid-steelseries.c struct steelseries_srws1_data *drv_data = hid_get_drvdata(hid); drv_data 144 drivers/hid/hid-steelseries.c if (!drv_data) { drv_data 150 drivers/hid/hid-steelseries.c drv_data->led_state = 0; drv_data 152 drivers/hid/hid-steelseries.c drv_data->led_state = (1 << (SRWS1_NUMBER_LEDS + 1)) - 1; drv_data 154 drivers/hid/hid-steelseries.c steelseries_srws1_set_leds(hid, drv_data->led_state); drv_data 161 drivers/hid/hid-steelseries.c struct steelseries_srws1_data *drv_data; drv_data 163 drivers/hid/hid-steelseries.c drv_data = hid_get_drvdata(hid); drv_data 165 drivers/hid/hid-steelseries.c if (!drv_data) { drv_data 170 drivers/hid/hid-steelseries.c return (drv_data->led_state >> SRWS1_NUMBER_LEDS) ? LED_FULL : LED_OFF; drv_data 178 drivers/hid/hid-steelseries.c struct steelseries_srws1_data *drv_data = hid_get_drvdata(hid); drv_data 181 drivers/hid/hid-steelseries.c if (!drv_data) { drv_data 187 drivers/hid/hid-steelseries.c if (led_cdev != drv_data->led[i]) drv_data 190 drivers/hid/hid-steelseries.c state = (drv_data->led_state >> i) & 1; drv_data 192 drivers/hid/hid-steelseries.c drv_data->led_state &= ~(1 << i); drv_data 193 drivers/hid/hid-steelseries.c steelseries_srws1_set_leds(hid, drv_data->led_state); drv_data 195 drivers/hid/hid-steelseries.c drv_data->led_state |= 1 << i; drv_data 196 drivers/hid/hid-steelseries.c steelseries_srws1_set_leds(hid, drv_data->led_state); drv_data 206 drivers/hid/hid-steelseries.c struct steelseries_srws1_data *drv_data; drv_data 209 drivers/hid/hid-steelseries.c drv_data = hid_get_drvdata(hid); drv_data 211 drivers/hid/hid-steelseries.c if (!drv_data) { drv_data 217 drivers/hid/hid-steelseries.c if (led_cdev == drv_data->led[i]) { drv_data 218 drivers/hid/hid-steelseries.c value = (drv_data->led_state >> i) & 1; drv_data 233 drivers/hid/hid-steelseries.c struct steelseries_srws1_data *drv_data = kzalloc(sizeof(*drv_data), GFP_KERNEL); drv_data 235 drivers/hid/hid-steelseries.c if (drv_data == NULL) { drv_data 240 drivers/hid/hid-steelseries.c hid_set_drvdata(hdev, drv_data); drv_data 260 drivers/hid/hid-steelseries.c drv_data->led_state = 0; drv_data 262 drivers/hid/hid-steelseries.c drv_data->led[i] = NULL; drv_data 283 drivers/hid/hid-steelseries.c drv_data->led[SRWS1_NUMBER_LEDS] = led; drv_data 304 drivers/hid/hid-steelseries.c drv_data->led[i] = led; drv_data 312 drivers/hid/hid-steelseries.c led = drv_data->led[i]; drv_data 313 drivers/hid/hid-steelseries.c drv_data->led[i] = NULL; drv_data 325 drivers/hid/hid-steelseries.c kfree(drv_data); drv_data 334 drivers/hid/hid-steelseries.c struct steelseries_srws1_data *drv_data = hid_get_drvdata(hdev); drv_data 336 drivers/hid/hid-steelseries.c if (drv_data) { drv_data 339 drivers/hid/hid-steelseries.c led = drv_data->led[i]; drv_data 340 drivers/hid/hid-steelseries.c drv_data->led[i] = NULL; drv_data 350 drivers/hid/hid-steelseries.c kfree(drv_data); drv_data 237 drivers/hid/hid-wiimote-modules.c struct power_supply_config psy_cfg = { .drv_data = wdata, }; drv_data 1733 drivers/hid/wacom_sys.c struct power_supply_config psy_cfg = { .drv_data = battery, }; drv_data 56 drivers/hwmon/menf21bmc_hwmon.c struct menf21bmc_hwmon *drv_data = dev_get_drvdata(dev); drv_data 57 drivers/hwmon/menf21bmc_hwmon.c struct menf21bmc_hwmon *data_ret = drv_data; drv_data 59 drivers/hwmon/menf21bmc_hwmon.c if (time_after(jiffies, drv_data->last_update + HZ) drv_data 60 drivers/hwmon/menf21bmc_hwmon.c || !drv_data->valid) { drv_data 62 drivers/hwmon/menf21bmc_hwmon.c val = i2c_smbus_read_word_data(drv_data->i2c_client, drv_data 68 drivers/hwmon/menf21bmc_hwmon.c drv_data->in_val[i] = val; drv_data 70 drivers/hwmon/menf21bmc_hwmon.c drv_data->last_update = jiffies; drv_data 71 drivers/hwmon/menf21bmc_hwmon.c drv_data->valid = true; drv_data 77 drivers/hwmon/menf21bmc_hwmon.c static int menf21bmc_hwmon_get_volt_limits(struct menf21bmc_hwmon *drv_data) drv_data 82 drivers/hwmon/menf21bmc_hwmon.c val = i2c_smbus_read_word_data(drv_data->i2c_client, drv_data 87 drivers/hwmon/menf21bmc_hwmon.c drv_data->in_min[i] = val; drv_data 89 drivers/hwmon/menf21bmc_hwmon.c val = i2c_smbus_read_word_data(drv_data->i2c_client, drv_data 94 drivers/hwmon/menf21bmc_hwmon.c drv_data->in_max[i] = val; drv_data 111 drivers/hwmon/menf21bmc_hwmon.c struct menf21bmc_hwmon *drv_data = menf21bmc_hwmon_update(dev); drv_data 113 drivers/hwmon/menf21bmc_hwmon.c if (IS_ERR(drv_data)) drv_data 114 drivers/hwmon/menf21bmc_hwmon.c return PTR_ERR(drv_data); drv_data 116 drivers/hwmon/menf21bmc_hwmon.c return sprintf(buf, "%d\n", drv_data->in_val[attr->index]); drv_data 123 drivers/hwmon/menf21bmc_hwmon.c struct menf21bmc_hwmon *drv_data = dev_get_drvdata(dev); drv_data 125 drivers/hwmon/menf21bmc_hwmon.c return sprintf(buf, "%d\n", drv_data->in_min[attr->index]); drv_data 132 drivers/hwmon/menf21bmc_hwmon.c struct menf21bmc_hwmon *drv_data = dev_get_drvdata(dev); drv_data 134 drivers/hwmon/menf21bmc_hwmon.c return sprintf(buf, "%d\n", drv_data->in_max[attr->index]); drv_data 191 drivers/hwmon/menf21bmc_hwmon.c struct menf21bmc_hwmon *drv_data; drv_data 195 drivers/hwmon/menf21bmc_hwmon.c drv_data = devm_kzalloc(&pdev->dev, sizeof(struct menf21bmc_hwmon), drv_data 197 drivers/hwmon/menf21bmc_hwmon.c if (!drv_data) drv_data 200 drivers/hwmon/menf21bmc_hwmon.c drv_data->i2c_client = i2c_client; drv_data 202 drivers/hwmon/menf21bmc_hwmon.c ret = menf21bmc_hwmon_get_volt_limits(drv_data); drv_data 209 drivers/hwmon/menf21bmc_hwmon.c "menf21bmc", drv_data, drv_data 173 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_prepare_for_io(struct mv64xxx_i2c_data *drv_data, drv_data 178 drivers/i2c/busses/i2c-mv64xxx.c drv_data->cntl_bits = MV64XXX_I2C_REG_CONTROL_ACK | drv_data 185 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr1 = 0xf0 | (((u32)msg->addr & 0x300) >> 7) | dir; drv_data 186 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr2 = (u32)msg->addr & 0xff; drv_data 188 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr1 = MV64XXX_I2C_ADDR_ADDR((u32)msg->addr) | dir; drv_data 189 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr2 = 0; drv_data 203 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_hw_init(struct mv64xxx_i2c_data *drv_data) drv_data 205 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->offload_enabled) { drv_data 206 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + MV64XXX_I2C_REG_BRIDGE_CONTROL); drv_data 207 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + MV64XXX_I2C_REG_BRIDGE_TIMING); drv_data 208 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + drv_data 210 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + drv_data 214 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + drv_data->reg_offsets.soft_reset); drv_data 215 drivers/i2c/busses/i2c-mv64xxx.c writel(MV64XXX_I2C_BAUD_DIV_M(drv_data->freq_m) | MV64XXX_I2C_BAUD_DIV_N(drv_data->freq_n), drv_data 216 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.clock); drv_data 217 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + drv_data->reg_offsets.addr); drv_data 218 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + drv_data->reg_offsets.ext_addr); drv_data 220 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 221 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_IDLE; drv_data 225 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_fsm(struct mv64xxx_i2c_data *drv_data, u32 status) drv_data 232 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->state == MV64XXX_I2C_STATE_IDLE) { drv_data 233 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_STOP; drv_data 242 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_ADDR_1; drv_data 243 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK; drv_data 248 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->msg->flags & I2C_M_TEN) { drv_data 249 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_ADDR_2; drv_data 250 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = drv_data 257 drivers/i2c/busses/i2c-mv64xxx.c if ((drv_data->bytes_left == 0) drv_data 258 drivers/i2c/busses/i2c-mv64xxx.c || (drv_data->aborting drv_data 259 drivers/i2c/busses/i2c-mv64xxx.c && (drv_data->byte_posn != 0))) { drv_data 260 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->send_stop || drv_data->aborting) { drv_data 261 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_STOP; drv_data 262 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_IDLE; drv_data 264 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = drv_data 266 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = drv_data 270 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_DATA; drv_data 271 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = drv_data 273 drivers/i2c/busses/i2c-mv64xxx.c drv_data->bytes_left--; drv_data 279 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->msg->flags & I2C_M_TEN) { drv_data 280 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_ADDR_2; drv_data 281 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = drv_data 287 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->bytes_left == 0) { drv_data 288 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_STOP; drv_data 289 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_IDLE; drv_data 295 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_CONTINUE; drv_data 297 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_RCV_DATA; drv_data 298 drivers/i2c/busses/i2c-mv64xxx.c drv_data->bytes_left--; drv_data 300 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA; drv_data 302 drivers/i2c/busses/i2c-mv64xxx.c if ((drv_data->bytes_left == 1) || drv_data->aborting) drv_data 303 drivers/i2c/busses/i2c-mv64xxx.c drv_data->cntl_bits &= ~MV64XXX_I2C_REG_CONTROL_ACK; drv_data 307 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_RCV_DATA_STOP; drv_data 308 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_IDLE; drv_data 315 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_STOP; drv_data 316 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_IDLE; drv_data 317 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rc = -ENXIO; drv_data 321 drivers/i2c/busses/i2c-mv64xxx.c dev_err(&drv_data->adapter.dev, drv_data 324 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state, status, drv_data->msg->addr, drv_data 325 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg->flags); drv_data 326 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action = MV64XXX_I2C_ACTION_SEND_STOP; drv_data 327 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_hw_init(drv_data); drv_data 328 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rc = -EIO; drv_data 332 drivers/i2c/busses/i2c-mv64xxx.c static void mv64xxx_i2c_send_start(struct mv64xxx_i2c_data *drv_data) drv_data 334 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg = drv_data->msgs; drv_data 335 drivers/i2c/busses/i2c-mv64xxx.c drv_data->byte_posn = 0; drv_data 336 drivers/i2c/busses/i2c-mv64xxx.c drv_data->bytes_left = drv_data->msg->len; drv_data 337 drivers/i2c/busses/i2c-mv64xxx.c drv_data->aborting = 0; drv_data 338 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rc = 0; drv_data 340 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_prepare_for_io(drv_data, drv_data->msgs); drv_data 341 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits | MV64XXX_I2C_REG_CONTROL_START, drv_data 342 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 346 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_do_action(struct mv64xxx_i2c_data *drv_data) drv_data 348 drivers/i2c/busses/i2c-mv64xxx.c switch(drv_data->action) { drv_data 351 drivers/i2c/busses/i2c-mv64xxx.c BUG_ON(drv_data->num_msgs == 0); drv_data 353 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs++; drv_data 354 drivers/i2c/busses/i2c-mv64xxx.c drv_data->num_msgs--; drv_data 355 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_send_start(drv_data); drv_data 357 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->errata_delay) drv_data 365 drivers/i2c/busses/i2c-mv64xxx.c drv_data->send_stop = drv_data->num_msgs == 1; drv_data 369 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits, drv_data 370 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 374 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->addr1, drv_data 375 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.data); drv_data 376 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits, drv_data 377 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 381 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->addr2, drv_data 382 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.data); drv_data 383 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits, drv_data 384 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 388 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->msg->buf[drv_data->byte_posn++], drv_data 389 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.data); drv_data 390 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits, drv_data 391 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 395 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg->buf[drv_data->byte_posn++] = drv_data 396 drivers/i2c/busses/i2c-mv64xxx.c readl(drv_data->reg_base + drv_data->reg_offsets.data); drv_data 397 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits, drv_data 398 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 402 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg->buf[drv_data->byte_posn++] = drv_data 403 drivers/i2c/busses/i2c-mv64xxx.c readl(drv_data->reg_base + drv_data->reg_offsets.data); drv_data 404 drivers/i2c/busses/i2c-mv64xxx.c drv_data->cntl_bits &= ~MV64XXX_I2C_REG_CONTROL_INTEN; drv_data 405 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits | MV64XXX_I2C_REG_CONTROL_STOP, drv_data 406 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 407 drivers/i2c/busses/i2c-mv64xxx.c drv_data->block = 0; drv_data 408 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->errata_delay) drv_data 411 drivers/i2c/busses/i2c-mv64xxx.c wake_up(&drv_data->waitq); drv_data 416 drivers/i2c/busses/i2c-mv64xxx.c dev_err(&drv_data->adapter.dev, drv_data 418 drivers/i2c/busses/i2c-mv64xxx.c drv_data->action); drv_data 419 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rc = -EIO; drv_data 423 drivers/i2c/busses/i2c-mv64xxx.c drv_data->cntl_bits &= ~MV64XXX_I2C_REG_CONTROL_INTEN; drv_data 424 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits | MV64XXX_I2C_REG_CONTROL_STOP, drv_data 425 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 426 drivers/i2c/busses/i2c-mv64xxx.c drv_data->block = 0; drv_data 427 drivers/i2c/busses/i2c-mv64xxx.c wake_up(&drv_data->waitq); drv_data 433 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_read_offload_rx_data(struct mv64xxx_i2c_data *drv_data, drv_data 438 drivers/i2c/busses/i2c-mv64xxx.c buf[0] = readl(drv_data->reg_base + MV64XXX_I2C_REG_RX_DATA_LO); drv_data 439 drivers/i2c/busses/i2c-mv64xxx.c buf[1] = readl(drv_data->reg_base + MV64XXX_I2C_REG_RX_DATA_HI); drv_data 445 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_intr_offload(struct mv64xxx_i2c_data *drv_data) drv_data 449 drivers/i2c/busses/i2c-mv64xxx.c cause = readl(drv_data->reg_base + drv_data 454 drivers/i2c/busses/i2c-mv64xxx.c status = readl(drv_data->reg_base + drv_data 458 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rc = -EIO; drv_data 462 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rc = 0; drv_data 468 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->num_msgs == 1 && drv_data->msgs[0].flags & I2C_M_RD) { drv_data 469 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs); drv_data 470 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs++; drv_data 471 drivers/i2c/busses/i2c-mv64xxx.c drv_data->num_msgs--; drv_data 477 drivers/i2c/busses/i2c-mv64xxx.c else if (drv_data->num_msgs == 2 && drv_data 478 drivers/i2c/busses/i2c-mv64xxx.c !(drv_data->msgs[0].flags & I2C_M_RD) && drv_data 479 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs[1].flags & I2C_M_RD) { drv_data 480 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs + 1); drv_data 481 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs += 2; drv_data 482 drivers/i2c/busses/i2c-mv64xxx.c drv_data->num_msgs -= 2; drv_data 486 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + MV64XXX_I2C_REG_BRIDGE_CONTROL); drv_data 487 drivers/i2c/busses/i2c-mv64xxx.c writel(0, drv_data->reg_base + drv_data 489 drivers/i2c/busses/i2c-mv64xxx.c drv_data->block = 0; drv_data 491 drivers/i2c/busses/i2c-mv64xxx.c wake_up(&drv_data->waitq); drv_data 499 drivers/i2c/busses/i2c-mv64xxx.c struct mv64xxx_i2c_data *drv_data = dev_id; drv_data 504 drivers/i2c/busses/i2c-mv64xxx.c spin_lock_irqsave(&drv_data->lock, flags); drv_data 506 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->offload_enabled) drv_data 507 drivers/i2c/busses/i2c-mv64xxx.c rc = mv64xxx_i2c_intr_offload(drv_data); drv_data 509 drivers/i2c/busses/i2c-mv64xxx.c while (readl(drv_data->reg_base + drv_data->reg_offsets.control) & drv_data 511 drivers/i2c/busses/i2c-mv64xxx.c status = readl(drv_data->reg_base + drv_data->reg_offsets.status); drv_data 512 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_fsm(drv_data, status); drv_data 513 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_do_action(drv_data); drv_data 515 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->irq_clear_inverted) drv_data 516 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->cntl_bits | MV64XXX_I2C_REG_CONTROL_IFLG, drv_data 517 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base + drv_data->reg_offsets.control); drv_data 521 drivers/i2c/busses/i2c-mv64xxx.c spin_unlock_irqrestore(&drv_data->lock, flags); drv_data 534 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_wait_for_completion(struct mv64xxx_i2c_data *drv_data) drv_data 540 drivers/i2c/busses/i2c-mv64xxx.c time_left = wait_event_timeout(drv_data->waitq, drv_data 541 drivers/i2c/busses/i2c-mv64xxx.c !drv_data->block, drv_data->adapter.timeout); drv_data 543 drivers/i2c/busses/i2c-mv64xxx.c spin_lock_irqsave(&drv_data->lock, flags); drv_data 545 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rc = -ETIMEDOUT; drv_data 548 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rc = time_left; /* errno value */ drv_data 552 drivers/i2c/busses/i2c-mv64xxx.c if (abort && drv_data->block) { drv_data 553 drivers/i2c/busses/i2c-mv64xxx.c drv_data->aborting = 1; drv_data 554 drivers/i2c/busses/i2c-mv64xxx.c spin_unlock_irqrestore(&drv_data->lock, flags); drv_data 556 drivers/i2c/busses/i2c-mv64xxx.c time_left = wait_event_timeout(drv_data->waitq, drv_data 557 drivers/i2c/busses/i2c-mv64xxx.c !drv_data->block, drv_data->adapter.timeout); drv_data 559 drivers/i2c/busses/i2c-mv64xxx.c if ((time_left <= 0) && drv_data->block) { drv_data 560 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_IDLE; drv_data 561 drivers/i2c/busses/i2c-mv64xxx.c dev_err(&drv_data->adapter.dev, drv_data 563 drivers/i2c/busses/i2c-mv64xxx.c "time_left: %d\n", drv_data->block, drv_data 565 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_hw_init(drv_data); drv_data 568 drivers/i2c/busses/i2c-mv64xxx.c spin_unlock_irqrestore(&drv_data->lock, flags); drv_data 572 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_execute_msg(struct mv64xxx_i2c_data *drv_data, struct i2c_msg *msg, drv_data 577 drivers/i2c/busses/i2c-mv64xxx.c spin_lock_irqsave(&drv_data->lock, flags); drv_data 579 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state = MV64XXX_I2C_STATE_WAITING_FOR_START_COND; drv_data 581 drivers/i2c/busses/i2c-mv64xxx.c drv_data->send_stop = is_last; drv_data 582 drivers/i2c/busses/i2c-mv64xxx.c drv_data->block = 1; drv_data 583 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_send_start(drv_data); drv_data 584 drivers/i2c/busses/i2c-mv64xxx.c spin_unlock_irqrestore(&drv_data->lock, flags); drv_data 586 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_wait_for_completion(drv_data); drv_data 587 drivers/i2c/busses/i2c-mv64xxx.c return drv_data->rc; drv_data 591 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_prepare_tx(struct mv64xxx_i2c_data *drv_data) drv_data 593 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msg = drv_data->msgs; drv_data 598 drivers/i2c/busses/i2c-mv64xxx.c writel(buf[0], drv_data->reg_base + MV64XXX_I2C_REG_TX_DATA_LO); drv_data 599 drivers/i2c/busses/i2c-mv64xxx.c writel(buf[1], drv_data->reg_base + MV64XXX_I2C_REG_TX_DATA_HI); drv_data 603 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_offload_xfer(struct mv64xxx_i2c_data *drv_data) drv_data 605 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msgs = drv_data->msgs; drv_data 606 drivers/i2c/busses/i2c-mv64xxx.c int num = drv_data->num_msgs; drv_data 610 drivers/i2c/busses/i2c-mv64xxx.c spin_lock_irqsave(&drv_data->lock, flags); drv_data 625 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_prepare_tx(drv_data); drv_data 648 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_prepare_tx(drv_data); drv_data 652 drivers/i2c/busses/i2c-mv64xxx.c drv_data->block = 1; drv_data 653 drivers/i2c/busses/i2c-mv64xxx.c writel(ctrl_reg, drv_data->reg_base + MV64XXX_I2C_REG_BRIDGE_CONTROL); drv_data 654 drivers/i2c/busses/i2c-mv64xxx.c spin_unlock_irqrestore(&drv_data->lock, flags); drv_data 656 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_wait_for_completion(drv_data); drv_data 658 drivers/i2c/busses/i2c-mv64xxx.c return drv_data->rc; drv_data 668 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_can_offload(struct mv64xxx_i2c_data *drv_data) drv_data 670 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msgs = drv_data->msgs; drv_data 671 drivers/i2c/busses/i2c-mv64xxx.c int num = drv_data->num_msgs; drv_data 673 drivers/i2c/busses/i2c-mv64xxx.c if (!drv_data->offload_enabled) drv_data 715 drivers/i2c/busses/i2c-mv64xxx.c struct mv64xxx_i2c_data *drv_data = i2c_get_adapdata(adap); drv_data 718 drivers/i2c/busses/i2c-mv64xxx.c BUG_ON(drv_data->msgs != NULL); drv_data 719 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs = msgs; drv_data 720 drivers/i2c/busses/i2c-mv64xxx.c drv_data->num_msgs = num; drv_data 722 drivers/i2c/busses/i2c-mv64xxx.c if (mv64xxx_i2c_can_offload(drv_data)) drv_data 723 drivers/i2c/busses/i2c-mv64xxx.c rc = mv64xxx_i2c_offload_xfer(drv_data); drv_data 725 drivers/i2c/busses/i2c-mv64xxx.c rc = mv64xxx_i2c_execute_msg(drv_data, &msgs[0], num == 1); drv_data 730 drivers/i2c/busses/i2c-mv64xxx.c drv_data->num_msgs = 0; drv_data 731 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msgs = NULL; drv_data 760 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_calc_freq(struct mv64xxx_i2c_data *drv_data, drv_data 763 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->clk_n_base_0) drv_data 770 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_find_baud_factors(struct mv64xxx_i2c_data *drv_data, drv_data 778 drivers/i2c/busses/i2c-mv64xxx.c freq = mv64xxx_calc_freq(drv_data, tclk, n, m); drv_data 781 drivers/i2c/busses/i2c-mv64xxx.c drv_data->freq_m = m; drv_data 782 drivers/i2c/busses/i2c-mv64xxx.c drv_data->freq_n = n; drv_data 794 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, drv_data 806 drivers/i2c/busses/i2c-mv64xxx.c if (IS_ERR(drv_data->clk)) { drv_data 810 drivers/i2c/busses/i2c-mv64xxx.c tclk = clk_get_rate(drv_data->clk); drv_data 817 drivers/i2c/busses/i2c-mv64xxx.c drv_data->clk_n_base_0 = true; drv_data 819 drivers/i2c/busses/i2c-mv64xxx.c if (!mv64xxx_find_baud_factors(drv_data, bus_freq, tclk)) { drv_data 824 drivers/i2c/busses/i2c-mv64xxx.c drv_data->rstc = devm_reset_control_get_optional_exclusive(dev, NULL); drv_data 825 drivers/i2c/busses/i2c-mv64xxx.c if (IS_ERR(drv_data->rstc)) { drv_data 826 drivers/i2c/busses/i2c-mv64xxx.c rc = PTR_ERR(drv_data->rstc); drv_data 829 drivers/i2c/busses/i2c-mv64xxx.c reset_control_deassert(drv_data->rstc); drv_data 834 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.timeout = HZ; drv_data 840 drivers/i2c/busses/i2c-mv64xxx.c memcpy(&drv_data->reg_offsets, device->data, sizeof(drv_data->reg_offsets)); drv_data 847 drivers/i2c/busses/i2c-mv64xxx.c drv_data->offload_enabled = true; drv_data 850 drivers/i2c/busses/i2c-mv64xxx.c drv_data->errata_delay = true; drv_data 854 drivers/i2c/busses/i2c-mv64xxx.c drv_data->offload_enabled = false; drv_data 857 drivers/i2c/busses/i2c-mv64xxx.c drv_data->errata_delay = true; drv_data 861 drivers/i2c/busses/i2c-mv64xxx.c drv_data->irq_clear_inverted = true; drv_data 868 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, drv_data 878 drivers/i2c/busses/i2c-mv64xxx.c struct mv64xxx_i2c_data *drv_data; drv_data 886 drivers/i2c/busses/i2c-mv64xxx.c drv_data = devm_kzalloc(&pd->dev, sizeof(struct mv64xxx_i2c_data), drv_data 888 drivers/i2c/busses/i2c-mv64xxx.c if (!drv_data) drv_data 892 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_base = devm_ioremap_resource(&pd->dev, r); drv_data 893 drivers/i2c/busses/i2c-mv64xxx.c if (IS_ERR(drv_data->reg_base)) drv_data 894 drivers/i2c/busses/i2c-mv64xxx.c return PTR_ERR(drv_data->reg_base); drv_data 896 drivers/i2c/busses/i2c-mv64xxx.c strlcpy(drv_data->adapter.name, MV64XXX_I2C_CTLR_NAME " adapter", drv_data 897 drivers/i2c/busses/i2c-mv64xxx.c sizeof(drv_data->adapter.name)); drv_data 899 drivers/i2c/busses/i2c-mv64xxx.c init_waitqueue_head(&drv_data->waitq); drv_data 900 drivers/i2c/busses/i2c-mv64xxx.c spin_lock_init(&drv_data->lock); drv_data 903 drivers/i2c/busses/i2c-mv64xxx.c drv_data->clk = devm_clk_get(&pd->dev, NULL); drv_data 904 drivers/i2c/busses/i2c-mv64xxx.c if (IS_ERR(drv_data->clk) && PTR_ERR(drv_data->clk) == -EPROBE_DEFER) drv_data 906 drivers/i2c/busses/i2c-mv64xxx.c if (!IS_ERR(drv_data->clk)) drv_data 907 drivers/i2c/busses/i2c-mv64xxx.c clk_prepare_enable(drv_data->clk); drv_data 909 drivers/i2c/busses/i2c-mv64xxx.c drv_data->reg_clk = devm_clk_get(&pd->dev, "reg"); drv_data 910 drivers/i2c/busses/i2c-mv64xxx.c if (IS_ERR(drv_data->reg_clk) && drv_data 911 drivers/i2c/busses/i2c-mv64xxx.c PTR_ERR(drv_data->reg_clk) == -EPROBE_DEFER) drv_data 913 drivers/i2c/busses/i2c-mv64xxx.c if (!IS_ERR(drv_data->reg_clk)) drv_data 914 drivers/i2c/busses/i2c-mv64xxx.c clk_prepare_enable(drv_data->reg_clk); drv_data 916 drivers/i2c/busses/i2c-mv64xxx.c drv_data->irq = platform_get_irq(pd, 0); drv_data 919 drivers/i2c/busses/i2c-mv64xxx.c drv_data->freq_m = pdata->freq_m; drv_data 920 drivers/i2c/busses/i2c-mv64xxx.c drv_data->freq_n = pdata->freq_n; drv_data 921 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.timeout = msecs_to_jiffies(pdata->timeout); drv_data 922 drivers/i2c/busses/i2c-mv64xxx.c drv_data->offload_enabled = false; drv_data 923 drivers/i2c/busses/i2c-mv64xxx.c memcpy(&drv_data->reg_offsets, &mv64xxx_i2c_regs_mv64xxx, sizeof(drv_data->reg_offsets)); drv_data 925 drivers/i2c/busses/i2c-mv64xxx.c rc = mv64xxx_of_config(drv_data, &pd->dev); drv_data 929 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->irq < 0) { drv_data 930 drivers/i2c/busses/i2c-mv64xxx.c rc = drv_data->irq; drv_data 934 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.dev.parent = &pd->dev; drv_data 935 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.algo = &mv64xxx_i2c_algo; drv_data 936 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.owner = THIS_MODULE; drv_data 937 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.class = I2C_CLASS_DEPRECATED; drv_data 938 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.nr = pd->id; drv_data 939 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.dev.of_node = pd->dev.of_node; drv_data 940 drivers/i2c/busses/i2c-mv64xxx.c platform_set_drvdata(pd, drv_data); drv_data 941 drivers/i2c/busses/i2c-mv64xxx.c i2c_set_adapdata(&drv_data->adapter, drv_data); drv_data 943 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_hw_init(drv_data); drv_data 945 drivers/i2c/busses/i2c-mv64xxx.c rc = request_irq(drv_data->irq, mv64xxx_i2c_intr, 0, drv_data 946 drivers/i2c/busses/i2c-mv64xxx.c MV64XXX_I2C_CTLR_NAME, drv_data); drv_data 948 drivers/i2c/busses/i2c-mv64xxx.c dev_err(&drv_data->adapter.dev, drv_data 950 drivers/i2c/busses/i2c-mv64xxx.c drv_data->irq, rc); drv_data 952 drivers/i2c/busses/i2c-mv64xxx.c } else if ((rc = i2c_add_numbered_adapter(&drv_data->adapter)) != 0) { drv_data 953 drivers/i2c/busses/i2c-mv64xxx.c dev_err(&drv_data->adapter.dev, drv_data 961 drivers/i2c/busses/i2c-mv64xxx.c free_irq(drv_data->irq, drv_data); drv_data 963 drivers/i2c/busses/i2c-mv64xxx.c reset_control_assert(drv_data->rstc); drv_data 965 drivers/i2c/busses/i2c-mv64xxx.c clk_disable_unprepare(drv_data->reg_clk); drv_data 966 drivers/i2c/busses/i2c-mv64xxx.c clk_disable_unprepare(drv_data->clk); drv_data 974 drivers/i2c/busses/i2c-mv64xxx.c struct mv64xxx_i2c_data *drv_data = platform_get_drvdata(dev); drv_data 976 drivers/i2c/busses/i2c-mv64xxx.c i2c_del_adapter(&drv_data->adapter); drv_data 977 drivers/i2c/busses/i2c-mv64xxx.c free_irq(drv_data->irq, drv_data); drv_data 978 drivers/i2c/busses/i2c-mv64xxx.c reset_control_assert(drv_data->rstc); drv_data 979 drivers/i2c/busses/i2c-mv64xxx.c clk_disable_unprepare(drv_data->reg_clk); drv_data 980 drivers/i2c/busses/i2c-mv64xxx.c clk_disable_unprepare(drv_data->clk); drv_data 988 drivers/i2c/busses/i2c-mv64xxx.c struct mv64xxx_i2c_data *drv_data = dev_get_drvdata(dev); drv_data 990 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_hw_init(drv_data); drv_data 212 drivers/input/rmi4/rmi_2d_sensor.c struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); drv_data 214 drivers/input/rmi4/rmi_2d_sensor.c if (!drv_data->input) drv_data 217 drivers/input/rmi4/rmi_2d_sensor.c sensor->input = drv_data->input; drv_data 371 drivers/input/rmi4/rmi_f30.c struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); drv_data 378 drivers/input/rmi4/rmi_f30.c if (!drv_data->input) { drv_data 387 drivers/input/rmi4/rmi_f30.c f30->input = drv_data->input; drv_data 214 drivers/input/rmi4/rmi_f54.c struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); drv_data 215 drivers/input/rmi4/rmi_f54.c u8 rx = drv_data->num_rx_electrodes ? : f54->num_rx_electrodes; drv_data 216 drivers/input/rmi4/rmi_f54.c u8 tx = drv_data->num_tx_electrodes ? : f54->num_tx_electrodes; drv_data 401 drivers/input/rmi4/rmi_f54.c struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); drv_data 402 drivers/input/rmi4/rmi_f54.c u8 rx = drv_data->num_rx_electrodes ? : f54->num_rx_electrodes; drv_data 403 drivers/input/rmi4/rmi_f54.c u8 tx = drv_data->num_tx_electrodes ? : f54->num_tx_electrodes; drv_data 39 drivers/input/rmi4/rmi_f55.c struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); drv_data 59 drivers/input/rmi4/rmi_f55.c drv_data->num_rx_electrodes = f55->cfg_num_rx_electrodes; drv_data 60 drivers/input/rmi4/rmi_f55.c drv_data->num_tx_electrodes = f55->cfg_num_rx_electrodes; drv_data 83 drivers/input/rmi4/rmi_f55.c drv_data->num_rx_electrodes = total; drv_data 96 drivers/input/rmi4/rmi_f55.c drv_data->num_tx_electrodes = total; drv_data 67 drivers/irqchip/irq-stm32-exti.c const struct stm32_exti_drv_data *drv_data; drv_data 199 drivers/irqchip/irq-stm32-exti.c static int stm32_exti_to_irq(const struct stm32_exti_drv_data *drv_data, drv_data 205 drivers/irqchip/irq-stm32-exti.c if (!drv_data->desc_irqs) drv_data 208 drivers/irqchip/irq-stm32-exti.c for (i = 0; i < drv_data->irq_nr; i++) { drv_data 209 drivers/irqchip/irq-stm32-exti.c desc_irq = &drv_data->desc_irqs[i]; drv_data 566 drivers/irqchip/irq-stm32-exti.c for (i = 0; i < stm32_host_data->drv_data->bank_nr; i++) { drv_data 581 drivers/irqchip/irq-stm32-exti.c for (i = 0; i < stm32_host_data->drv_data->bank_nr; i++) { drv_data 637 drivers/irqchip/irq-stm32-exti.c p_irq = stm32_exti_to_irq(host_data->drv_data, hwirq); drv_data 661 drivers/irqchip/irq-stm32-exti.c host_data->drv_data = dd; drv_data 695 drivers/irqchip/irq-stm32-exti.c stm32_bank = h_data->drv_data->exti_banks[bank_idx]; drv_data 714 drivers/irqchip/irq-stm32-exti.c static int __init stm32_exti_init(const struct stm32_exti_drv_data *drv_data, drv_data 723 drivers/irqchip/irq-stm32-exti.c host_data = stm32_exti_host_init(drv_data, node); drv_data 727 drivers/irqchip/irq-stm32-exti.c domain = irq_domain_add_linear(node, drv_data->bank_nr * IRQS_PER_BANK, drv_data 744 drivers/irqchip/irq-stm32-exti.c for (i = 0; i < drv_data->bank_nr; i++) { drv_data 748 drivers/irqchip/irq-stm32-exti.c stm32_bank = drv_data->exti_banks[i]; drv_data 813 drivers/irqchip/irq-stm32-exti.c const struct stm32_exti_drv_data *drv_data; drv_data 839 drivers/irqchip/irq-stm32-exti.c drv_data = of_device_get_match_data(dev); drv_data 840 drivers/irqchip/irq-stm32-exti.c if (!drv_data) { drv_data 844 drivers/irqchip/irq-stm32-exti.c host_data->drv_data = drv_data; drv_data 846 drivers/irqchip/irq-stm32-exti.c host_data->chips_data = devm_kcalloc(dev, drv_data->bank_nr, drv_data 859 drivers/irqchip/irq-stm32-exti.c for (i = 0; i < drv_data->bank_nr; i++) drv_data 869 drivers/irqchip/irq-stm32-exti.c drv_data->bank_nr * IRQS_PER_BANK, drv_data 168 drivers/mailbox/rockchip-mailbox.c const struct rockchip_mbox_data *drv_data; drv_data 176 drivers/mailbox/rockchip-mailbox.c drv_data = (const struct rockchip_mbox_data *)match->data; drv_data 182 drivers/mailbox/rockchip-mailbox.c mb->chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, drv_data 187 drivers/mailbox/rockchip-mailbox.c mb->mbox.chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, drv_data 195 drivers/mailbox/rockchip-mailbox.c mb->mbox.num_chans = drv_data->num_chans; drv_data 208 drivers/mailbox/rockchip-mailbox.c mb->buf_size = (size_t)resource_size(res) / (drv_data->num_chans * 2); drv_data 1111 drivers/media/platform/exynos-gsc/gsc-core.c const struct gsc_driverdata *drv_data = of_device_get_match_data(dev); drv_data 1123 drivers/media/platform/exynos-gsc/gsc-core.c if (drv_data == &gsc_v_100_drvdata) drv_data 1127 drivers/media/platform/exynos-gsc/gsc-core.c if (gsc->id >= drv_data->num_entities) { drv_data 1132 drivers/media/platform/exynos-gsc/gsc-core.c gsc->num_clocks = drv_data->num_clocks; drv_data 1133 drivers/media/platform/exynos-gsc/gsc-core.c gsc->variant = drv_data->variant[gsc->id]; drv_data 1152 drivers/media/platform/exynos-gsc/gsc-core.c gsc->clock[i] = devm_clk_get(dev, drv_data->clk_names[i]); drv_data 1155 drivers/media/platform/exynos-gsc/gsc-core.c drv_data->clk_names[i]); drv_data 1164 drivers/media/platform/exynos-gsc/gsc-core.c drv_data->clk_names[i]); drv_data 67 drivers/media/platform/exynos4-is/fimc-capture.c if (fimc->drv_data->alpha_color) drv_data 170 drivers/media/platform/exynos4-is/fimc-capture.c if (fimc->drv_data->alpha_color) drv_data 426 drivers/media/platform/exynos4-is/fimc-core.c bool pix_hoff = ctx->fimc_dev->drv_data->dma_pix_hoff; drv_data 591 drivers/media/platform/exynos4-is/fimc-core.c if (ctx->fimc_dev->drv_data->alpha_color) drv_data 662 drivers/media/platform/exynos4-is/fimc-core.c if (ctrl == NULL || !fimc->drv_data->alpha_color) drv_data 884 drivers/media/platform/exynos4-is/fimc-core.c fimc->drv_data = of_id->data; drv_data 941 drivers/media/platform/exynos4-is/fimc-core.c fimc->drv_data = fimc_get_drvdata(pdev); drv_data 944 drivers/media/platform/exynos4-is/fimc-core.c if (!fimc->drv_data || fimc->id >= fimc->drv_data->num_entities || drv_data 951 drivers/media/platform/exynos4-is/fimc-core.c fimc->variant = fimc->drv_data->variant[fimc->id]; drv_data 977 drivers/media/platform/exynos4-is/fimc-core.c lclk_freq = fimc->drv_data->lclk_frequency; drv_data 425 drivers/media/platform/exynos4-is/fimc-core.h const struct fimc_drvdata *drv_data; drv_data 1459 drivers/media/platform/exynos4-is/fimc-lite.c struct flite_drvdata *drv_data = NULL; drv_data 1475 drivers/media/platform/exynos4-is/fimc-lite.c drv_data = (struct flite_drvdata *)of_id->data; drv_data 1478 drivers/media/platform/exynos4-is/fimc-lite.c if (!drv_data || fimc->index >= drv_data->num_instances || drv_data 1484 drivers/media/platform/exynos4-is/fimc-lite.c fimc->dd = drv_data; drv_data 151 drivers/media/platform/exynos4-is/fimc-m2m.c if (fimc->drv_data->alpha_color) drv_data 37 drivers/media/platform/exynos4-is/fimc-reg.c if (dev->drv_data->out_buf_count > 4) drv_data 763 drivers/media/platform/exynos4-is/fimc-reg.c if (dev->drv_data->cistatus2) { drv_data 779 drivers/media/platform/exynos4-is/fimc-reg.c if (!dev->drv_data->cistatus2) drv_data 764 drivers/media/platform/exynos4-is/mipi-csis.c const struct csis_drvdata *drv_data; drv_data 783 drivers/media/platform/exynos4-is/mipi-csis.c drv_data = of_id->data; drv_data 784 drivers/media/platform/exynos4-is/mipi-csis.c state->interrupt_mask = drv_data->interrupt_mask; drv_data 664 drivers/mfd/twl-core.c struct twl_regulator_driver_data drv_data; drv_data 682 drivers/mfd/twl-core.c drv_data.features = features; drv_data 683 drivers/mfd/twl-core.c drv_data.set_voltage = NULL; drv_data 684 drivers/mfd/twl-core.c drv_data.get_voltage = NULL; drv_data 685 drivers/mfd/twl-core.c drv_data.data = NULL; drv_data 686 drivers/mfd/twl-core.c pdata->driver_data = &drv_data; drv_data 77 drivers/misc/pti.c static struct pti_dev *drv_data; drv_data 114 drivers/misc/pti.c aperture = drv_data->pti_ioaddr + (mc->master << 15) drv_data 306 drivers/misc/pti.c mc = get_id(drv_data->ia_app, MAX_APP_IDS, drv_data 311 drivers/misc/pti.c mc = get_id(drv_data->ia_os, MAX_OS_IDS, drv_data 316 drivers/misc/pti.c mc = get_id(drv_data->ia_modem, MAX_MODEM_IDS, drv_data 348 drivers/misc/pti.c drv_data->ia_app[i] &= ~(0x80>>(channel & 0x7)); drv_data 351 drivers/misc/pti.c drv_data->ia_os[i] &= ~(0x80>>(channel & 0x7)); drv_data 354 drivers/misc/pti.c drv_data->ia_modem[i] &= ~(0x80>>(channel & 0x7)); drv_data 818 drivers/misc/pti.c drv_data = kzalloc(sizeof(*drv_data), GFP_KERNEL); drv_data 819 drivers/misc/pti.c if (drv_data == NULL) { drv_data 826 drivers/misc/pti.c drv_data->pti_addr = pci_resource_start(pdev, pci_bar); drv_data 835 drivers/misc/pti.c drv_data->aperture_base = drv_data->pti_addr+APERTURE_14; drv_data 836 drivers/misc/pti.c drv_data->pti_ioaddr = drv_data 837 drivers/misc/pti.c ioremap_nocache((u32)drv_data->aperture_base, drv_data 839 drivers/misc/pti.c if (!drv_data->pti_ioaddr) { drv_data 844 drivers/misc/pti.c pci_set_drvdata(pdev, drv_data); drv_data 847 drivers/misc/pti.c struct tty_port *port = &drv_data->port[a]; drv_data 860 drivers/misc/pti.c kfree(drv_data); drv_data 876 drivers/misc/pti.c struct pti_dev *drv_data = pci_get_drvdata(pdev); drv_data 883 drivers/misc/pti.c tty_port_destroy(&drv_data->port[a]); drv_data 886 drivers/misc/pti.c iounmap(drv_data->pti_ioaddr); drv_data 887 drivers/misc/pti.c kfree(drv_data); drv_data 548 drivers/mmc/host/dw_mmc-exynos.c const struct dw_mci_drv_data *drv_data; drv_data 553 drivers/mmc/host/dw_mmc-exynos.c drv_data = match->data; drv_data 559 drivers/mmc/host/dw_mmc-exynos.c ret = dw_mci_pltfm_register(pdev, drv_data); drv_data 454 drivers/mmc/host/dw_mmc-k3.c const struct dw_mci_drv_data *drv_data; drv_data 458 drivers/mmc/host/dw_mmc-k3.c drv_data = match->data; drv_data 460 drivers/mmc/host/dw_mmc-k3.c return dw_mci_pltfm_register(pdev, drv_data); drv_data 26 drivers/mmc/host/dw_mmc-pltfm.c const struct dw_mci_drv_data *drv_data) drv_data 39 drivers/mmc/host/dw_mmc-pltfm.c host->drv_data = drv_data; drv_data 76 drivers/mmc/host/dw_mmc-pltfm.c const struct dw_mci_drv_data *drv_data = NULL; drv_data 81 drivers/mmc/host/dw_mmc-pltfm.c drv_data = match->data; drv_data 84 drivers/mmc/host/dw_mmc-pltfm.c return dw_mci_pltfm_register(pdev, drv_data); drv_data 12 drivers/mmc/host/dw_mmc-pltfm.h const struct dw_mci_drv_data *drv_data); drv_data 335 drivers/mmc/host/dw_mmc-rockchip.c const struct dw_mci_drv_data *drv_data; drv_data 343 drivers/mmc/host/dw_mmc-rockchip.c drv_data = match->data; drv_data 351 drivers/mmc/host/dw_mmc-rockchip.c ret = dw_mci_pltfm_register(pdev, drv_data); drv_data 208 drivers/mmc/host/dw_mmc-zx.c const struct dw_mci_drv_data *drv_data; drv_data 212 drivers/mmc/host/dw_mmc-zx.c drv_data = match->data; drv_data 214 drivers/mmc/host/dw_mmc-zx.c return dw_mci_pltfm_register(pdev, drv_data); drv_data 1406 drivers/mmc/host/dw_mmc.c const struct dw_mci_drv_data *drv_data = slot->host->drv_data; drv_data 1441 drivers/mmc/host/dw_mmc.c if (drv_data && drv_data->set_ios) drv_data 1442 drivers/mmc/host/dw_mmc.c drv_data->set_ios(slot->host, ios); drv_data 1526 drivers/mmc/host/dw_mmc.c const struct dw_mci_drv_data *drv_data = host->drv_data; drv_data 1531 drivers/mmc/host/dw_mmc.c if (drv_data && drv_data->switch_voltage) drv_data 1532 drivers/mmc/host/dw_mmc.c return drv_data->switch_voltage(mmc, ios); drv_data 1685 drivers/mmc/host/dw_mmc.c const struct dw_mci_drv_data *drv_data = host->drv_data; drv_data 1688 drivers/mmc/host/dw_mmc.c if (drv_data && drv_data->execute_tuning) drv_data 1689 drivers/mmc/host/dw_mmc.c err = drv_data->execute_tuning(slot, opcode); drv_data 1698 drivers/mmc/host/dw_mmc.c const struct dw_mci_drv_data *drv_data = host->drv_data; drv_data 1700 drivers/mmc/host/dw_mmc.c if (drv_data && drv_data->prepare_hs400_tuning) drv_data 1701 drivers/mmc/host/dw_mmc.c return drv_data->prepare_hs400_tuning(host, ios); drv_data 2746 drivers/mmc/host/dw_mmc.c const struct dw_mci_drv_data *drv_data = host->drv_data; drv_data 2770 drivers/mmc/host/dw_mmc.c if (drv_data && drv_data->caps) { drv_data 2771 drivers/mmc/host/dw_mmc.c if (ctrl_id >= drv_data->num_caps) { drv_data 2776 drivers/mmc/host/dw_mmc.c mmc->caps |= drv_data->caps[ctrl_id]; drv_data 3094 drivers/mmc/host/dw_mmc.c const struct dw_mci_drv_data *drv_data = host->drv_data; drv_data 3124 drivers/mmc/host/dw_mmc.c if (drv_data && drv_data->parse_dt) { drv_data 3125 drivers/mmc/host/dw_mmc.c ret = drv_data->parse_dt(host); drv_data 3163 drivers/mmc/host/dw_mmc.c const struct dw_mci_drv_data *drv_data = host->drv_data; drv_data 3222 drivers/mmc/host/dw_mmc.c if (drv_data && drv_data->init) { drv_data 3223 drivers/mmc/host/dw_mmc.c ret = drv_data->init(host); drv_data 205 drivers/mmc/host/dw_mmc.h const struct dw_mci_drv_data *drv_data; drv_data 480 drivers/mmc/host/sdhci-s3c.c struct sdhci_s3c_drv_data *drv_data; drv_data 518 drivers/mmc/host/sdhci-s3c.c drv_data = sdhci_s3c_get_driver_data(pdev); drv_data 578 drivers/mmc/host/sdhci-s3c.c if (drv_data) { drv_data 579 drivers/mmc/host/sdhci-s3c.c host->quirks |= drv_data->sdhci_quirks; drv_data 580 drivers/mmc/host/sdhci-s3c.c sc->no_divider = drv_data->no_divider; drv_data 1651 drivers/net/wireless/ath/ath10k/snoc.c const struct ath10k_snoc_drv_priv *drv_data; drv_data 1666 drivers/net/wireless/ath/ath10k/snoc.c drv_data = of_id->data; drv_data 1669 drivers/net/wireless/ath/ath10k/snoc.c ret = dma_set_mask_and_coherent(dev, drv_data->dma_mask); drv_data 1676 drivers/net/wireless/ath/ath10k/snoc.c drv_data->hw_rev, &ath10k_snoc_hif_ops); drv_data 1688 drivers/net/wireless/ath/ath10k/snoc.c msa_size = drv_data->msa_size; drv_data 1000 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 1087 drivers/net/wireless/ralink/rt2x00/rt2800lib.c skbdesc->sta = drv_data->wcid_to_sta[wcid - WCID_START]; drv_data 1767 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 1770 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (drv_data->ampdu_factor_cnt[i] > 0) drv_data 1773 drivers/net/wireless/ralink/rt2x00/rt2800lib.c max_psdu = min(drv_data->max_psdu, i); drv_data 1784 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 1795 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->ampdu_factor_cnt[sta->ht_cap.ampdu_factor & 3]++; drv_data 1803 drivers/net/wireless/ralink/rt2x00/rt2800lib.c wcid = find_first_zero_bit(drv_data->sta_ids, STA_IDS_SIZE) + WCID_START; drv_data 1818 drivers/net/wireless/ralink/rt2x00/rt2800lib.c __set_bit(wcid - WCID_START, drv_data->sta_ids); drv_data 1819 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->wcid_to_sta[wcid - WCID_START] = sta; drv_data 1836 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 1841 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->ampdu_factor_cnt[sta->ht_cap.ampdu_factor & 3]--; drv_data 1852 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->wcid_to_sta[wcid - WCID_START] = NULL; drv_data 1853 drivers/net/wireless/ralink/rt2x00/rt2800lib.c __clear_bit(wcid - WCID_START, drv_data->sta_ids); drv_data 1861 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 1867 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->wcid_to_sta[wcid - WCID_START] = NULL; drv_data 1868 drivers/net/wireless/ralink/rt2x00/rt2800lib.c __clear_bit(wcid - WCID_START, drv_data->sta_ids); drv_data 2421 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 2464 drivers/net/wireless/ralink/rt2x00/rt2800lib.c calib_tx = drv_data->calibration_bw40; drv_data 2465 drivers/net/wireless/ralink/rt2x00/rt2800lib.c calib_rx = drv_data->calibration_bw40; drv_data 2467 drivers/net/wireless/ralink/rt2x00/rt2800lib.c calib_tx = drv_data->calibration_bw20; drv_data 2468 drivers/net/wireless/ralink/rt2x00/rt2800lib.c calib_rx = drv_data->calibration_bw20; drv_data 2499 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 2504 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_bbp_write(rt2x00dev, 25, drv_data->bbp25); drv_data 2505 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_bbp_write(rt2x00dev, 26, drv_data->bbp26); drv_data 2595 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_rfcsr_write(rt2x00dev, 24, drv_data->calibration_bw40); drv_data 2596 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_rfcsr_write(rt2x00dev, 31, drv_data->calibration_bw40); drv_data 2598 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_rfcsr_write(rt2x00dev, 24, drv_data->calibration_bw20); drv_data 2599 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_rfcsr_write(rt2x00dev, 31, drv_data->calibration_bw20); drv_data 2610 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->txmixer_gain_24g); drv_data 2632 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->txmixer_gain_5g); drv_data 2671 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 2690 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_bbp_write(rt2x00dev, 25, drv_data->bbp25); drv_data 2691 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_bbp_write(rt2x00dev, 26, drv_data->bbp26); drv_data 2799 drivers/net/wireless/ralink/rt2x00/rt2800lib.c txrx_agc_fc = rt2x00_get_field8(drv_data->calibration_bw40, drv_data 2801 drivers/net/wireless/ralink/rt2x00/rt2800lib.c txrx_h20m = rt2x00_get_field8(drv_data->calibration_bw40, drv_data 2804 drivers/net/wireless/ralink/rt2x00/rt2800lib.c txrx_agc_fc = rt2x00_get_field8(drv_data->calibration_bw20, drv_data 2806 drivers/net/wireless/ralink/rt2x00/rt2800lib.c txrx_h20m = rt2x00_get_field8(drv_data->calibration_bw20, drv_data 3634 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 3746 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rx_agc_fc = drv_data->rx_calibration_bw40; drv_data 3747 drivers/net/wireless/ralink/rt2x00/rt2800lib.c tx_agc_fc = drv_data->tx_calibration_bw40; drv_data 3749 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rx_agc_fc = drv_data->rx_calibration_bw20; drv_data 3750 drivers/net/wireless/ralink/rt2x00/rt2800lib.c tx_agc_fc = drv_data->tx_calibration_bw20; drv_data 5703 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 5893 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->max_psdu = 3; drv_data 5897 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->max_psdu = 2; drv_data 5899 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->max_psdu = 1; drv_data 5901 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2x00_set_field32(®, MAX_LEN_CFG_MAX_PSDU, drv_data->max_psdu); drv_data 7280 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 7296 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->calibration_bw20 = drv_data 7298 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->calibration_bw40 = drv_data 7304 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->bbp25 = rt2800_bbp_read(rt2x00dev, 25); drv_data 7305 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->bbp26 = rt2800_bbp_read(rt2x00dev, 26); drv_data 7326 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 7342 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (drv_data->txmixer_gain_24g >= min_gain) { drv_data 7344 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->txmixer_gain_24g); drv_data 7397 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 7406 drivers/net/wireless/ralink/rt2x00/rt2800lib.c tx_gain = rt2x00_get_field8(drv_data->txmixer_gain_24g, drv_data 7887 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 7953 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->calibration_bw20 = 0x1f; drv_data 7954 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->calibration_bw40 = 0x2f; drv_data 7957 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->bbp25 = rt2800_bbp_read(rt2x00dev, 25); drv_data 7958 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->bbp26 = rt2800_bbp_read(rt2x00dev, 26); drv_data 8482 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 8674 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->tx_calibration_bw20 = tx_agc_fc; drv_data 8676 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->tx_calibration_bw40 = tx_agc_fc; drv_data 8679 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->rx_calibration_bw20 = rx_agc_fc; drv_data 8681 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->rx_calibration_bw40 = rx_agc_fc; drv_data 9254 drivers/net/wireless/ralink/rt2x00/rt2800lib.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 9343 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->txmixer_gain_24g = rt2800_get_txmixer_gain_24g(rt2x00dev); drv_data 9357 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->txmixer_gain_5g = rt2800_get_txmixer_gain_5g(rt2x00dev); drv_data 225 drivers/net/wireless/ralink/rt2x00/rt2800mmio.c struct rt2800_drv_data *drv_data = rt2x00dev->drv_data; drv_data 237 drivers/net/wireless/ralink/rt2x00/rt2800mmio.c if (drv_data->tbtt_tick == (BCN_TBTT_OFFSET - 2)) { drv_data 242 drivers/net/wireless/ralink/rt2x00/rt2800mmio.c } else if (drv_data->tbtt_tick == (BCN_TBTT_OFFSET - 1)) { drv_data 248 drivers/net/wireless/ralink/rt2x00/rt2800mmio.c drv_data->tbtt_tick++; drv_data 249 drivers/net/wireless/ralink/rt2x00/rt2800mmio.c drv_data->tbtt_tick %= BCN_TBTT_OFFSET; drv_data 748 drivers/net/wireless/ralink/rt2x00/rt2x00.h void *drv_data; drv_data 1376 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c rt2x00dev->drv_data = kzalloc(rt2x00dev->ops->drv_data_size, drv_data 1378 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c if (!rt2x00dev->drv_data) { drv_data 1563 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c kfree(rt2x00dev->drv_data); drv_data 167 drivers/net/wireless/realtek/rtw88/tx.c u8 *drv_data; drv_data 170 drivers/net/wireless/realtek/rtw88/tx.c drv_data = (u8 *)IEEE80211_SKB_CB(skb)->status.status_driver_data; drv_data 171 drivers/net/wireless/realtek/rtw88/tx.c *drv_data = sn; drv_data 39 drivers/nfc/nfcmrvl/i2c.c static int nfcmrvl_i2c_read(struct nfcmrvl_i2c_drv_data *drv_data, drv_data 46 drivers/nfc/nfcmrvl/i2c.c ret = i2c_master_recv(drv_data->i2c, (u8 *)&nci_hdr, NCI_CTRL_HDR_SIZE); drv_data 48 drivers/nfc/nfcmrvl/i2c.c nfc_err(&drv_data->i2c->dev, "cannot read NCI header\n"); drv_data 53 drivers/nfc/nfcmrvl/i2c.c nfc_err(&drv_data->i2c->dev, "invalid packet payload size\n"); drv_data 57 drivers/nfc/nfcmrvl/i2c.c *skb = nci_skb_alloc(drv_data->priv->ndev, drv_data 67 drivers/nfc/nfcmrvl/i2c.c ret = i2c_master_recv(drv_data->i2c, drv_data 72 drivers/nfc/nfcmrvl/i2c.c nfc_err(&drv_data->i2c->dev, drv_data 85 drivers/nfc/nfcmrvl/i2c.c struct nfcmrvl_i2c_drv_data *drv_data = drv_data_ptr; drv_data 89 drivers/nfc/nfcmrvl/i2c.c if (!drv_data->priv) drv_data 92 drivers/nfc/nfcmrvl/i2c.c if (test_bit(NFCMRVL_PHY_ERROR, &drv_data->priv->flags)) drv_data 95 drivers/nfc/nfcmrvl/i2c.c ret = nfcmrvl_i2c_read(drv_data, &skb); drv_data 99 drivers/nfc/nfcmrvl/i2c.c set_bit(NFCMRVL_PHY_ERROR, &drv_data->priv->flags); drv_data 103 drivers/nfc/nfcmrvl/i2c.c nfc_err(&drv_data->i2c->dev, "read failed %d\n", ret); drv_data 106 drivers/nfc/nfcmrvl/i2c.c if (nfcmrvl_nci_recv_frame(drv_data->priv, skb) < 0) drv_data 107 drivers/nfc/nfcmrvl/i2c.c nfc_err(&drv_data->i2c->dev, "corrupted RX packet\n"); drv_data 115 drivers/nfc/nfcmrvl/i2c.c struct nfcmrvl_i2c_drv_data *drv_data = priv->drv_data; drv_data 117 drivers/nfc/nfcmrvl/i2c.c if (!drv_data) drv_data 131 drivers/nfc/nfcmrvl/i2c.c struct nfcmrvl_i2c_drv_data *drv_data = priv->drv_data; drv_data 137 drivers/nfc/nfcmrvl/i2c.c ret = i2c_master_send(drv_data->i2c, skb->data, skb->len); drv_data 141 drivers/nfc/nfcmrvl/i2c.c nfc_info(drv_data->dev, "chip may sleep, retry\n"); drv_data 143 drivers/nfc/nfcmrvl/i2c.c ret = i2c_master_send(drv_data->i2c, skb->data, skb->len); drv_data 148 drivers/nfc/nfcmrvl/i2c.c nfc_err(drv_data->dev, drv_data 201 drivers/nfc/nfcmrvl/i2c.c struct nfcmrvl_i2c_drv_data *drv_data; drv_data 211 drivers/nfc/nfcmrvl/i2c.c drv_data = devm_kzalloc(&client->dev, sizeof(*drv_data), GFP_KERNEL); drv_data 212 drivers/nfc/nfcmrvl/i2c.c if (!drv_data) drv_data 215 drivers/nfc/nfcmrvl/i2c.c drv_data->i2c = client; drv_data 216 drivers/nfc/nfcmrvl/i2c.c drv_data->dev = &client->dev; drv_data 217 drivers/nfc/nfcmrvl/i2c.c drv_data->priv = NULL; drv_data 219 drivers/nfc/nfcmrvl/i2c.c i2c_set_clientdata(client, drv_data); drv_data 231 drivers/nfc/nfcmrvl/i2c.c ret = devm_request_threaded_irq(&drv_data->i2c->dev, pdata->irq, drv_data 234 drivers/nfc/nfcmrvl/i2c.c "nfcmrvl_i2c_int", drv_data); drv_data 236 drivers/nfc/nfcmrvl/i2c.c nfc_err(&drv_data->i2c->dev, drv_data 241 drivers/nfc/nfcmrvl/i2c.c drv_data->priv = nfcmrvl_nci_register_dev(NFCMRVL_PHY_I2C, drv_data 242 drivers/nfc/nfcmrvl/i2c.c drv_data, &i2c_ops, drv_data 243 drivers/nfc/nfcmrvl/i2c.c &drv_data->i2c->dev, pdata); drv_data 245 drivers/nfc/nfcmrvl/i2c.c if (IS_ERR(drv_data->priv)) drv_data 246 drivers/nfc/nfcmrvl/i2c.c return PTR_ERR(drv_data->priv); drv_data 248 drivers/nfc/nfcmrvl/i2c.c drv_data->priv->support_fw_dnld = true; drv_data 255 drivers/nfc/nfcmrvl/i2c.c struct nfcmrvl_i2c_drv_data *drv_data = i2c_get_clientdata(client); drv_data 257 drivers/nfc/nfcmrvl/i2c.c nfcmrvl_nci_unregister_dev(drv_data->priv); drv_data 104 drivers/nfc/nfcmrvl/main.c void *drv_data, drv_data 119 drivers/nfc/nfcmrvl/main.c priv->drv_data = drv_data; drv_data 85 drivers/nfc/nfcmrvl/nfcmrvl.h void *drv_data; drv_data 105 drivers/nfc/nfcmrvl/nfcmrvl.h void *drv_data, drv_data 43 drivers/nfc/nfcmrvl/spi.c struct nfcmrvl_spi_drv_data *drv_data = drv_data_ptr; drv_data 50 drivers/nfc/nfcmrvl/spi.c if (test_and_clear_bit(SPI_WAIT_HANDSHAKE, &drv_data->flags)) { drv_data 51 drivers/nfc/nfcmrvl/spi.c complete(&drv_data->handshake_completion); drv_data 57 drivers/nfc/nfcmrvl/spi.c skb = nci_spi_read(drv_data->nci_spi); drv_data 59 drivers/nfc/nfcmrvl/spi.c nfc_err(&drv_data->spi->dev, "failed to read spi packet"); drv_data 63 drivers/nfc/nfcmrvl/spi.c if (nfcmrvl_nci_recv_frame(drv_data->priv, skb) < 0) drv_data 64 drivers/nfc/nfcmrvl/spi.c nfc_err(&drv_data->spi->dev, "corrupted RX packet"); drv_data 82 drivers/nfc/nfcmrvl/spi.c struct nfcmrvl_spi_drv_data *drv_data = priv->drv_data; drv_data 86 drivers/nfc/nfcmrvl/spi.c reinit_completion(&drv_data->handshake_completion); drv_data 87 drivers/nfc/nfcmrvl/spi.c set_bit(SPI_WAIT_HANDSHAKE, &drv_data->flags); drv_data 96 drivers/nfc/nfcmrvl/spi.c err = nci_spi_send(drv_data->nci_spi, &drv_data->handshake_completion, drv_data 107 drivers/nfc/nfcmrvl/spi.c struct nfcmrvl_spi_drv_data *drv_data = priv->drv_data; drv_data 110 drivers/nfc/nfcmrvl/spi.c drv_data->nci_spi->xfer_speed_hz = config->clk; drv_data 145 drivers/nfc/nfcmrvl/spi.c struct nfcmrvl_spi_drv_data *drv_data; drv_data 148 drivers/nfc/nfcmrvl/spi.c drv_data = devm_kzalloc(&spi->dev, sizeof(*drv_data), GFP_KERNEL); drv_data 149 drivers/nfc/nfcmrvl/spi.c if (!drv_data) drv_data 152 drivers/nfc/nfcmrvl/spi.c drv_data->spi = spi; drv_data 153 drivers/nfc/nfcmrvl/spi.c drv_data->priv = NULL; drv_data 154 drivers/nfc/nfcmrvl/spi.c spi_set_drvdata(spi, drv_data); drv_data 165 drivers/nfc/nfcmrvl/spi.c ret = devm_request_threaded_irq(&drv_data->spi->dev, pdata->irq, drv_data 168 drivers/nfc/nfcmrvl/spi.c "nfcmrvl_spi_int", drv_data); drv_data 170 drivers/nfc/nfcmrvl/spi.c nfc_err(&drv_data->spi->dev, "Unable to register IRQ handler"); drv_data 174 drivers/nfc/nfcmrvl/spi.c drv_data->priv = nfcmrvl_nci_register_dev(NFCMRVL_PHY_SPI, drv_data 175 drivers/nfc/nfcmrvl/spi.c drv_data, &spi_ops, drv_data 176 drivers/nfc/nfcmrvl/spi.c &drv_data->spi->dev, drv_data 178 drivers/nfc/nfcmrvl/spi.c if (IS_ERR(drv_data->priv)) drv_data 179 drivers/nfc/nfcmrvl/spi.c return PTR_ERR(drv_data->priv); drv_data 181 drivers/nfc/nfcmrvl/spi.c drv_data->priv->support_fw_dnld = true; drv_data 183 drivers/nfc/nfcmrvl/spi.c drv_data->nci_spi = nci_spi_allocate_spi(drv_data->spi, 0, 10, drv_data 184 drivers/nfc/nfcmrvl/spi.c drv_data->priv->ndev); drv_data 187 drivers/nfc/nfcmrvl/spi.c init_completion(&drv_data->handshake_completion); drv_data 193 drivers/nfc/nfcmrvl/spi.c struct nfcmrvl_spi_drv_data *drv_data = spi_get_drvdata(spi); drv_data 195 drivers/nfc/nfcmrvl/spi.c nfcmrvl_nci_unregister_dev(drv_data->priv); drv_data 48 drivers/nfc/nfcmrvl/uart.c struct nci_uart *nu = priv->drv_data; drv_data 56 drivers/nfc/nfcmrvl/uart.c struct nci_uart *nu = priv->drv_data; drv_data 142 drivers/nfc/nfcmrvl/uart.c nu->drv_data = priv; drv_data 150 drivers/nfc/nfcmrvl/uart.c nfcmrvl_nci_unregister_dev((struct nfcmrvl_private *)nu->drv_data); drv_data 155 drivers/nfc/nfcmrvl/uart.c return nfcmrvl_nci_recv_frame((struct nfcmrvl_private *)nu->drv_data, drv_data 161 drivers/nfc/nfcmrvl/uart.c struct nfcmrvl_private *priv = (struct nfcmrvl_private *)nu->drv_data; drv_data 175 drivers/nfc/nfcmrvl/uart.c struct nfcmrvl_private *priv = (struct nfcmrvl_private *)nu->drv_data; drv_data 54 drivers/nfc/nfcmrvl/usb.c static int nfcmrvl_inc_tx(struct nfcmrvl_usb_drv_data *drv_data) drv_data 59 drivers/nfc/nfcmrvl/usb.c spin_lock_irqsave(&drv_data->txlock, flags); drv_data 60 drivers/nfc/nfcmrvl/usb.c rv = test_bit(NFCMRVL_USB_SUSPENDING, &drv_data->flags); drv_data 62 drivers/nfc/nfcmrvl/usb.c drv_data->tx_in_flight++; drv_data 63 drivers/nfc/nfcmrvl/usb.c spin_unlock_irqrestore(&drv_data->txlock, flags); drv_data 70 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = urb->context; drv_data 74 drivers/nfc/nfcmrvl/usb.c dev_dbg(&drv_data->udev->dev, "urb %p status %d count %d\n", drv_data 77 drivers/nfc/nfcmrvl/usb.c if (!test_bit(NFCMRVL_NCI_RUNNING, &drv_data->flags)) drv_data 81 drivers/nfc/nfcmrvl/usb.c skb = nci_skb_alloc(drv_data->priv->ndev, urb->actual_length, drv_data 84 drivers/nfc/nfcmrvl/usb.c nfc_err(&drv_data->udev->dev, "failed to alloc mem\n"); drv_data 88 drivers/nfc/nfcmrvl/usb.c if (nfcmrvl_nci_recv_frame(drv_data->priv, skb) < 0) drv_data 89 drivers/nfc/nfcmrvl/usb.c nfc_err(&drv_data->udev->dev, drv_data 94 drivers/nfc/nfcmrvl/usb.c if (!test_bit(NFCMRVL_USB_BULK_RUNNING, &drv_data->flags)) drv_data 97 drivers/nfc/nfcmrvl/usb.c usb_anchor_urb(urb, &drv_data->bulk_anchor); drv_data 98 drivers/nfc/nfcmrvl/usb.c usb_mark_last_busy(drv_data->udev); drv_data 106 drivers/nfc/nfcmrvl/usb.c nfc_err(&drv_data->udev->dev, drv_data 113 drivers/nfc/nfcmrvl/usb.c nfcmrvl_submit_bulk_urb(struct nfcmrvl_usb_drv_data *drv_data, gfp_t mem_flags) drv_data 120 drivers/nfc/nfcmrvl/usb.c if (!drv_data->bulk_rx_ep) drv_data 133 drivers/nfc/nfcmrvl/usb.c pipe = usb_rcvbulkpipe(drv_data->udev, drv_data 134 drivers/nfc/nfcmrvl/usb.c drv_data->bulk_rx_ep->bEndpointAddress); drv_data 136 drivers/nfc/nfcmrvl/usb.c usb_fill_bulk_urb(urb, drv_data->udev, pipe, buf, size, drv_data 137 drivers/nfc/nfcmrvl/usb.c nfcmrvl_bulk_complete, drv_data); drv_data 141 drivers/nfc/nfcmrvl/usb.c usb_mark_last_busy(drv_data->udev); drv_data 142 drivers/nfc/nfcmrvl/usb.c usb_anchor_urb(urb, &drv_data->bulk_anchor); drv_data 147 drivers/nfc/nfcmrvl/usb.c nfc_err(&drv_data->udev->dev, drv_data 162 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = priv->drv_data; drv_data 168 drivers/nfc/nfcmrvl/usb.c spin_lock_irqsave(&drv_data->txlock, flags); drv_data 169 drivers/nfc/nfcmrvl/usb.c drv_data->tx_in_flight--; drv_data 170 drivers/nfc/nfcmrvl/usb.c spin_unlock_irqrestore(&drv_data->txlock, flags); drv_data 178 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = priv->drv_data; drv_data 181 drivers/nfc/nfcmrvl/usb.c err = usb_autopm_get_interface(drv_data->intf); drv_data 185 drivers/nfc/nfcmrvl/usb.c drv_data->intf->needs_remote_wakeup = 1; drv_data 187 drivers/nfc/nfcmrvl/usb.c err = nfcmrvl_submit_bulk_urb(drv_data, GFP_KERNEL); drv_data 191 drivers/nfc/nfcmrvl/usb.c set_bit(NFCMRVL_USB_BULK_RUNNING, &drv_data->flags); drv_data 192 drivers/nfc/nfcmrvl/usb.c nfcmrvl_submit_bulk_urb(drv_data, GFP_KERNEL); drv_data 194 drivers/nfc/nfcmrvl/usb.c usb_autopm_put_interface(drv_data->intf); drv_data 198 drivers/nfc/nfcmrvl/usb.c usb_autopm_put_interface(drv_data->intf); drv_data 202 drivers/nfc/nfcmrvl/usb.c static void nfcmrvl_usb_stop_traffic(struct nfcmrvl_usb_drv_data *drv_data) drv_data 204 drivers/nfc/nfcmrvl/usb.c usb_kill_anchored_urbs(&drv_data->bulk_anchor); drv_data 209 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = priv->drv_data; drv_data 212 drivers/nfc/nfcmrvl/usb.c cancel_work_sync(&drv_data->waker); drv_data 214 drivers/nfc/nfcmrvl/usb.c clear_bit(NFCMRVL_USB_BULK_RUNNING, &drv_data->flags); drv_data 216 drivers/nfc/nfcmrvl/usb.c nfcmrvl_usb_stop_traffic(drv_data); drv_data 217 drivers/nfc/nfcmrvl/usb.c usb_kill_anchored_urbs(&drv_data->tx_anchor); drv_data 218 drivers/nfc/nfcmrvl/usb.c err = usb_autopm_get_interface(drv_data->intf); drv_data 222 drivers/nfc/nfcmrvl/usb.c drv_data->intf->needs_remote_wakeup = 0; drv_data 223 drivers/nfc/nfcmrvl/usb.c usb_autopm_put_interface(drv_data->intf); drv_data 226 drivers/nfc/nfcmrvl/usb.c usb_scuttle_anchored_urbs(&drv_data->deferred); drv_data 233 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = priv->drv_data; drv_data 238 drivers/nfc/nfcmrvl/usb.c if (!drv_data->bulk_tx_ep) drv_data 245 drivers/nfc/nfcmrvl/usb.c pipe = usb_sndbulkpipe(drv_data->udev, drv_data 246 drivers/nfc/nfcmrvl/usb.c drv_data->bulk_tx_ep->bEndpointAddress); drv_data 248 drivers/nfc/nfcmrvl/usb.c usb_fill_bulk_urb(urb, drv_data->udev, pipe, skb->data, skb->len, drv_data 251 drivers/nfc/nfcmrvl/usb.c err = nfcmrvl_inc_tx(drv_data); drv_data 253 drivers/nfc/nfcmrvl/usb.c usb_anchor_urb(urb, &drv_data->deferred); drv_data 254 drivers/nfc/nfcmrvl/usb.c schedule_work(&drv_data->waker); drv_data 259 drivers/nfc/nfcmrvl/usb.c usb_anchor_urb(urb, &drv_data->tx_anchor); drv_data 264 drivers/nfc/nfcmrvl/usb.c nfc_err(&drv_data->udev->dev, drv_data 269 drivers/nfc/nfcmrvl/usb.c usb_mark_last_busy(drv_data->udev); drv_data 285 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = drv_data 289 drivers/nfc/nfcmrvl/usb.c err = usb_autopm_get_interface(drv_data->intf); drv_data 293 drivers/nfc/nfcmrvl/usb.c usb_autopm_put_interface(drv_data->intf); drv_data 300 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data; drv_data 312 drivers/nfc/nfcmrvl/usb.c drv_data = devm_kzalloc(&intf->dev, sizeof(*drv_data), GFP_KERNEL); drv_data 313 drivers/nfc/nfcmrvl/usb.c if (!drv_data) drv_data 319 drivers/nfc/nfcmrvl/usb.c if (!drv_data->bulk_tx_ep && drv_data 321 drivers/nfc/nfcmrvl/usb.c drv_data->bulk_tx_ep = ep_desc; drv_data 325 drivers/nfc/nfcmrvl/usb.c if (!drv_data->bulk_rx_ep && drv_data 327 drivers/nfc/nfcmrvl/usb.c drv_data->bulk_rx_ep = ep_desc; drv_data 332 drivers/nfc/nfcmrvl/usb.c if (!drv_data->bulk_tx_ep || !drv_data->bulk_rx_ep) drv_data 335 drivers/nfc/nfcmrvl/usb.c drv_data->udev = udev; drv_data 336 drivers/nfc/nfcmrvl/usb.c drv_data->intf = intf; drv_data 338 drivers/nfc/nfcmrvl/usb.c INIT_WORK(&drv_data->waker, nfcmrvl_waker); drv_data 339 drivers/nfc/nfcmrvl/usb.c spin_lock_init(&drv_data->txlock); drv_data 341 drivers/nfc/nfcmrvl/usb.c init_usb_anchor(&drv_data->tx_anchor); drv_data 342 drivers/nfc/nfcmrvl/usb.c init_usb_anchor(&drv_data->bulk_anchor); drv_data 343 drivers/nfc/nfcmrvl/usb.c init_usb_anchor(&drv_data->deferred); drv_data 345 drivers/nfc/nfcmrvl/usb.c priv = nfcmrvl_nci_register_dev(NFCMRVL_PHY_USB, drv_data, &usb_ops, drv_data 350 drivers/nfc/nfcmrvl/usb.c drv_data->priv = priv; drv_data 351 drivers/nfc/nfcmrvl/usb.c drv_data->priv->support_fw_dnld = false; drv_data 353 drivers/nfc/nfcmrvl/usb.c usb_set_intfdata(intf, drv_data); drv_data 360 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = usb_get_intfdata(intf); drv_data 362 drivers/nfc/nfcmrvl/usb.c if (!drv_data) drv_data 365 drivers/nfc/nfcmrvl/usb.c nfc_info(&drv_data->udev->dev, "intf %p\n", intf); drv_data 367 drivers/nfc/nfcmrvl/usb.c nfcmrvl_nci_unregister_dev(drv_data->priv); drv_data 369 drivers/nfc/nfcmrvl/usb.c usb_set_intfdata(drv_data->intf, NULL); drv_data 375 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = usb_get_intfdata(intf); drv_data 377 drivers/nfc/nfcmrvl/usb.c nfc_info(&drv_data->udev->dev, "intf %p\n", intf); drv_data 379 drivers/nfc/nfcmrvl/usb.c if (drv_data->suspend_count++) drv_data 382 drivers/nfc/nfcmrvl/usb.c spin_lock_irq(&drv_data->txlock); drv_data 383 drivers/nfc/nfcmrvl/usb.c if (!(PMSG_IS_AUTO(message) && drv_data->tx_in_flight)) { drv_data 384 drivers/nfc/nfcmrvl/usb.c set_bit(NFCMRVL_USB_SUSPENDING, &drv_data->flags); drv_data 385 drivers/nfc/nfcmrvl/usb.c spin_unlock_irq(&drv_data->txlock); drv_data 387 drivers/nfc/nfcmrvl/usb.c spin_unlock_irq(&drv_data->txlock); drv_data 388 drivers/nfc/nfcmrvl/usb.c drv_data->suspend_count--; drv_data 392 drivers/nfc/nfcmrvl/usb.c nfcmrvl_usb_stop_traffic(drv_data); drv_data 393 drivers/nfc/nfcmrvl/usb.c usb_kill_anchored_urbs(&drv_data->tx_anchor); drv_data 398 drivers/nfc/nfcmrvl/usb.c static void nfcmrvl_play_deferred(struct nfcmrvl_usb_drv_data *drv_data) drv_data 403 drivers/nfc/nfcmrvl/usb.c while ((urb = usb_get_from_anchor(&drv_data->deferred))) { drv_data 408 drivers/nfc/nfcmrvl/usb.c drv_data->tx_in_flight++; drv_data 410 drivers/nfc/nfcmrvl/usb.c usb_scuttle_anchored_urbs(&drv_data->deferred); drv_data 415 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = usb_get_intfdata(intf); drv_data 418 drivers/nfc/nfcmrvl/usb.c nfc_info(&drv_data->udev->dev, "intf %p\n", intf); drv_data 420 drivers/nfc/nfcmrvl/usb.c if (--drv_data->suspend_count) drv_data 423 drivers/nfc/nfcmrvl/usb.c if (!test_bit(NFCMRVL_NCI_RUNNING, &drv_data->flags)) drv_data 426 drivers/nfc/nfcmrvl/usb.c if (test_bit(NFCMRVL_USB_BULK_RUNNING, &drv_data->flags)) { drv_data 427 drivers/nfc/nfcmrvl/usb.c err = nfcmrvl_submit_bulk_urb(drv_data, GFP_NOIO); drv_data 429 drivers/nfc/nfcmrvl/usb.c clear_bit(NFCMRVL_USB_BULK_RUNNING, &drv_data->flags); drv_data 433 drivers/nfc/nfcmrvl/usb.c nfcmrvl_submit_bulk_urb(drv_data, GFP_NOIO); drv_data 436 drivers/nfc/nfcmrvl/usb.c spin_lock_irq(&drv_data->txlock); drv_data 437 drivers/nfc/nfcmrvl/usb.c nfcmrvl_play_deferred(drv_data); drv_data 438 drivers/nfc/nfcmrvl/usb.c clear_bit(NFCMRVL_USB_SUSPENDING, &drv_data->flags); drv_data 439 drivers/nfc/nfcmrvl/usb.c spin_unlock_irq(&drv_data->txlock); drv_data 444 drivers/nfc/nfcmrvl/usb.c usb_scuttle_anchored_urbs(&drv_data->deferred); drv_data 446 drivers/nfc/nfcmrvl/usb.c spin_lock_irq(&drv_data->txlock); drv_data 447 drivers/nfc/nfcmrvl/usb.c clear_bit(NFCMRVL_USB_SUSPENDING, &drv_data->flags); drv_data 448 drivers/nfc/nfcmrvl/usb.c spin_unlock_irq(&drv_data->txlock); drv_data 68 drivers/phy/samsung/phy-exynos-pcie.c const struct exynos_pcie_phy_data *drv_data; drv_data 236 drivers/phy/samsung/phy-exynos-pcie.c const struct exynos_pcie_phy_data *drv_data; drv_data 238 drivers/phy/samsung/phy-exynos-pcie.c drv_data = of_device_get_match_data(dev); drv_data 239 drivers/phy/samsung/phy-exynos-pcie.c if (!drv_data) drv_data 256 drivers/phy/samsung/phy-exynos-pcie.c exynos_phy->drv_data = drv_data; drv_data 258 drivers/phy/samsung/phy-exynos-pcie.c generic_phy = devm_phy_create(dev, dev->of_node, drv_data->ops); drv_data 199 drivers/phy/samsung/phy-exynos5-usbdrd.c const struct exynos5_usbdrd_phy_drvdata *drv_data; drv_data 486 drivers/phy/samsung/phy-exynos5-usbdrd.c if (!phy_drd->drv_data->has_common_clk_gate) { drv_data 521 drivers/phy/samsung/phy-exynos5-usbdrd.c if (!phy_drd->drv_data->has_common_clk_gate) { drv_data 547 drivers/phy/samsung/phy-exynos5-usbdrd.c if (!phy_drd->drv_data->has_common_clk_gate) { drv_data 754 drivers/phy/samsung/phy-exynos5-usbdrd.c if (!phy_drd->drv_data->has_common_clk_gate) { drv_data 846 drivers/phy/samsung/phy-exynos5-usbdrd.c const struct exynos5_usbdrd_phy_drvdata *drv_data; drv_data 864 drivers/phy/samsung/phy-exynos5-usbdrd.c drv_data = of_device_get_match_data(dev); drv_data 865 drivers/phy/samsung/phy-exynos5-usbdrd.c if (!drv_data) drv_data 868 drivers/phy/samsung/phy-exynos5-usbdrd.c phy_drd->drv_data = drv_data; drv_data 894 drivers/phy/samsung/phy-exynos5-usbdrd.c pmu_offset = phy_drd->drv_data->pmu_offset_usbdrd1_phy; drv_data 898 drivers/phy/samsung/phy-exynos5-usbdrd.c pmu_offset = phy_drd->drv_data->pmu_offset_usbdrd0_phy; drv_data 937 drivers/phy/samsung/phy-exynos5-usbdrd.c phy_drd->phys[i].phy_cfg = &drv_data->phy_cfg[i]; drv_data 227 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pin_desc *pdesc = pdata->pins[pin].drv_data; drv_data 309 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pin_desc *pdesc = pdata->pins[offset].drv_data; drv_data 35 drivers/pinctrl/aspeed/pinctrl-aspeed.h .drv_data = (void *) &(PIN_SYM(name_)) \ drv_data 376 drivers/pinctrl/bcm/pinctrl-bcm281xx.c { .number = a, .name = b, .drv_data = &c##_pin } drv_data 958 drivers/pinctrl/bcm/pinctrl-bcm281xx.c return *(enum bcm281xx_pin_type *)(pdata->pins[pin].drv_data); drv_data 852 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c const struct cygnus_gpio_mux *mux = pctrl_dev->desc->pins[pin].drv_data; drv_data 880 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c struct cygnus_gpio_mux *mux = pctrl_dev->desc->pins[pin].drv_data; drv_data 983 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c pins[i].drv_data = &cygnus_pins[i].gpio_mux; drv_data 319 drivers/pinctrl/bcm/pinctrl-ns.c unsigned int chipsets = (uintptr_t)src->drv_data; drv_data 663 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 686 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 709 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 733 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 750 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 777 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 799 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 825 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 844 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctldev->desc->pins[pin].drv_data; drv_data 904 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; drv_data 1078 drivers/pinctrl/bcm/pinctrl-ns2-mux.c pins[i].drv_data = &ns2_pins[i]; drv_data 485 drivers/pinctrl/bcm/pinctrl-nsp-mux.c u32 *gpio_select = pctrl_dev->desc->pins[pin].drv_data; drv_data 506 drivers/pinctrl/bcm/pinctrl-nsp-mux.c u32 *gpio_select = pctrl_dev->desc->pins[pin].drv_data; drv_data 607 drivers/pinctrl/bcm/pinctrl-nsp-mux.c pins[i].drv_data = &nsp_pins[i].gpio_select; drv_data 93 drivers/pinctrl/cirrus/pinctrl-lochnagar.c .drv_data = (void *)&lochnagar##REV##_##ID##_pin, \ drv_data 887 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin = priv->pins[group->pins[i]].drv_data; drv_data 922 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin = priv->pins[*group->pins].drv_data; drv_data 938 drivers/pinctrl/cirrus/pinctrl-lochnagar.c const struct lochnagar_pin *pin = priv->pins[offset].drv_data; drv_data 1063 drivers/pinctrl/cirrus/pinctrl-lochnagar.c const struct lochnagar_pin *pin = priv->pins[offset].drv_data; drv_data 233 drivers/pinctrl/core.c pindesc->drv_data = pin->drv_data; drv_data 163 drivers/pinctrl/core.h void *drv_data; drv_data 426 drivers/pinctrl/pinctrl-lpc18xx.c .drv_data = &lpc18xx_pin_p##port##_##pin \ drv_data 444 drivers/pinctrl/pinctrl-lpc18xx.c .drv_data = &lpc18xx_pin_##pname \ drv_data 866 drivers/pinctrl/pinctrl-lpc18xx.c return lpc18xx_pins[i].drv_data; drv_data 1156 drivers/pinctrl/pinctrl-lpc18xx.c struct lpc18xx_pin_caps *pin = lpc18xx_pins[group].drv_data; drv_data 1275 drivers/pinctrl/pinctrl-lpc18xx.c struct lpc18xx_pin_caps *p = lpc18xx_pins[pin].drv_data; drv_data 187 drivers/pinctrl/pinctrl-ocelot.c .drv_data = &ocelot_pin_##n \ drv_data 291 drivers/pinctrl/pinctrl-ocelot.c .drv_data = &jaguar2_pin_##n \ drv_data 388 drivers/pinctrl/pinctrl-ocelot.c struct ocelot_pin_caps *p = info->desc->pins[pin].drv_data; drv_data 405 drivers/pinctrl/pinctrl-ocelot.c struct ocelot_pin_caps *pin = info->desc->pins[group].drv_data; drv_data 304 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = pctldev->desc->pins[pin].drv_data; drv_data 380 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = pctldev->desc->pins[pin].drv_data; drv_data 461 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = pctldev->desc->pins[pin].drv_data; drv_data 636 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = pctldev->desc->pins[pin].drv_data; drv_data 713 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = state->ctrl->desc->pins[pin].drv_data; drv_data 1024 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pindesc->drv_data = pad; drv_data 309 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = pctldev->desc->pins[pin].drv_data; drv_data 336 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = pctldev->desc->pins[pin].drv_data; drv_data 410 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = pctldev->desc->pins[pin].drv_data; drv_data 524 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = pctldev->desc->pins[pin].drv_data; drv_data 589 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = state->ctrl->desc->pins[pin].drv_data; drv_data 630 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = state->ctrl->desc->pins[pin].drv_data; drv_data 860 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pindesc->drv_data = pad; drv_data 231 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[group].drv_data; drv_data 254 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 324 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 459 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 475 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 493 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 512 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 541 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 564 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 579 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 811 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pins[i].drv_data = &pin_data[i]; drv_data 303 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[group].drv_data; drv_data 323 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 373 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 445 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 469 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 493 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 510 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 534 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 549 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; drv_data 803 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pins[i].drv_data = &pin_data[i]; drv_data 1056 drivers/pinctrl/sprd/pinctrl-sprd.c pin_desc[i].drv_data = pinctrl_info; drv_data 462 drivers/pinctrl/ti/pinctrl-ti-iodelay.c pd->drv_data = &cfg[pin_index]; drv_data 667 drivers/pinctrl/ti/pinctrl-ti-iodelay.c cfg = pd->drv_data; drv_data 78 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c switch (uniphier_pin_get_pull_dir(desc->drv_data)) { drv_data 98 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c switch (uniphier_pin_get_drv_type(desc->drv_data)) { drv_data 155 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c uniphier_pin_get_drv_type(desc->drv_data); drv_data 194 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c drvctrl = uniphier_pin_get_drvctrl(desc->drv_data); drv_data 211 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c uniphier_pin_get_pull_dir(desc->drv_data); drv_data 241 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c pupdctrl = uniphier_pin_get_pupdctrl(desc->drv_data); drv_data 286 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int iectrl = uniphier_pin_get_iectrl(desc->drv_data); drv_data 348 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c uniphier_pin_get_pull_dir(desc->drv_data); drv_data 408 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c pupdctrl = uniphier_pin_get_pupdctrl(desc->drv_data); drv_data 459 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int iectrl = uniphier_pin_get_iectrl(desc->drv_data); drv_data 782 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c void *drv_data = socdata->pins[i].drv_data; drv_data 784 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c drvctrl = uniphier_pin_get_drvctrl(drv_data); drv_data 785 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c drv_type = uniphier_pin_get_drv_type(drv_data); drv_data 786 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c pupdctrl = uniphier_pin_get_pupdctrl(drv_data); drv_data 787 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c pull_dir = uniphier_pin_get_pull_dir(drv_data); drv_data 788 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c iectrl = uniphier_pin_get_iectrl(drv_data); drv_data 96 drivers/pinctrl/uniphier/pinctrl-uniphier.h static inline unsigned int uniphier_pin_get_iectrl(void *drv_data) drv_data 98 drivers/pinctrl/uniphier/pinctrl-uniphier.h return ((unsigned long)drv_data >> UNIPHIER_PIN_IECTRL_SHIFT) & drv_data 102 drivers/pinctrl/uniphier/pinctrl-uniphier.h static inline unsigned int uniphier_pin_get_drvctrl(void *drv_data) drv_data 104 drivers/pinctrl/uniphier/pinctrl-uniphier.h return ((unsigned long)drv_data >> UNIPHIER_PIN_DRVCTRL_SHIFT) & drv_data 108 drivers/pinctrl/uniphier/pinctrl-uniphier.h static inline unsigned int uniphier_pin_get_drv_type(void *drv_data) drv_data 110 drivers/pinctrl/uniphier/pinctrl-uniphier.h return ((unsigned long)drv_data >> UNIPHIER_PIN_DRV_TYPE_SHIFT) & drv_data 114 drivers/pinctrl/uniphier/pinctrl-uniphier.h static inline unsigned int uniphier_pin_get_pupdctrl(void *drv_data) drv_data 116 drivers/pinctrl/uniphier/pinctrl-uniphier.h return ((unsigned long)drv_data >> UNIPHIER_PIN_PUPDCTRL_SHIFT) & drv_data 120 drivers/pinctrl/uniphier/pinctrl-uniphier.h static inline unsigned int uniphier_pin_get_pull_dir(void *drv_data) drv_data 122 drivers/pinctrl/uniphier/pinctrl-uniphier.h return ((unsigned long)drv_data >> UNIPHIER_PIN_PULL_DIR_SHIFT) & drv_data 156 drivers/pinctrl/uniphier/pinctrl-uniphier.h .drv_data = (void *)UNIPHIER_PIN_ATTR_PACKED(c, d, e, f, g), \ drv_data 63 drivers/pinctrl/zte/pinctrl-zx.c struct zx_pin_data *data = pindesc->drv_data; drv_data 161 drivers/pinctrl/zte/pinctrl-zx.c struct zx_pin_data *data = pindesc->drv_data; drv_data 214 drivers/pinctrl/zte/pinctrl-zx.c struct zx_pin_data *data = pindesc->drv_data; drv_data 302 drivers/pinctrl/zte/pinctrl-zx.c struct zx_pin_data *data = pindesc->drv_data; drv_data 343 drivers/pinctrl/zte/pinctrl-zx.c struct zx_pin_data *data = pindesc->drv_data; drv_data 54 drivers/pinctrl/zte/pinctrl-zx.h .drv_data = &(struct zx_pin_data) { \ drv_data 69 drivers/pinctrl/zte/pinctrl-zx.h .drv_data = &(struct zx_pin_data) { \ drv_data 1064 drivers/platform/x86/compal-laptop.c psy_cfg.drv_data = data; drv_data 704 drivers/power/supply/88pm860x_charger.c psy_cfg.drv_data = info; drv_data 1033 drivers/power/supply/ab8500_btemp.c psy_cfg.drv_data = di; drv_data 3386 drivers/power/supply/ab8500_charger.c ac_psy_cfg.drv_data = &di->ac_chg; drv_data 3389 drivers/power/supply/ab8500_charger.c usb_psy_cfg.drv_data = &di->usb_chg; drv_data 3073 drivers/power/supply/ab8500_fg.c psy_cfg.drv_data = di; drv_data 2020 drivers/power/supply/abx500_chargalg.c psy_cfg.drv_data = di; drv_data 618 drivers/power/supply/act8945a_charger.c psy_cfg.drv_data = charger; drv_data 713 drivers/power/supply/adp5061.c psy_cfg.drv_data = st; drv_data 308 drivers/power/supply/axp20x_ac_power.c psy_cfg.drv_data = power; drv_data 590 drivers/power/supply/axp20x_battery.c psy_cfg.drv_data = axp20x_batt; drv_data 499 drivers/power/supply/axp20x_usb_power.c psy_cfg.drv_data = power; drv_data 842 drivers/power/supply/axp288_charger.c charger_cfg.drv_data = info; drv_data 829 drivers/power/supply/axp288_fuel_gauge.c psy_cfg.drv_data = info; drv_data 719 drivers/power/supply/bd70528-charger.c cfg.drv_data = bdpsy; drv_data 1479 drivers/power/supply/bq2415x_charger.c .drv_data = bq, drv_data 1755 drivers/power/supply/bq24190_charger.c charger_cfg.drv_data = bdi; drv_data 1770 drivers/power/supply/bq24190_charger.c battery_cfg.drv_data = bdi; drv_data 851 drivers/power/supply/bq24257_charger.c struct power_supply_config psy_cfg = { .drv_data = bq, }; drv_data 404 drivers/power/supply/bq24735-charger.c psy_cfg.drv_data = charger; drv_data 691 drivers/power/supply/bq25890_charger.c struct power_supply_config psy_cfg = { .drv_data = bq, }; drv_data 1864 drivers/power/supply/bq27xxx_battery.c .drv_data = di, drv_data 1638 drivers/power/supply/charger-manager.c psy_cfg.drv_data = cm; drv_data 338 drivers/power/supply/collie_battery.c psy_main_cfg.drv_data = &collie_bat_main; drv_data 347 drivers/power/supply/collie_battery.c psy_bu_cfg.drv_data = &collie_bat_bu; drv_data 772 drivers/power/supply/cpcap-battery.c psy_cfg.drv_data = ddata; drv_data 645 drivers/power/supply/cpcap-charger.c psy_cfg.drv_data = ddata; drv_data 647 drivers/power/supply/cros_usbpd-charger.c psy_cfg.drv_data = port; drv_data 542 drivers/power/supply/da9030_battery.c psy_cfg.drv_data = charger; drv_data 598 drivers/power/supply/da9052-battery.c psy_cfg.drv_data = bat; drv_data 707 drivers/power/supply/ds2760_battery.c psy_cfg.drv_data = di; drv_data 764 drivers/power/supply/ds2780_battery.c psy_cfg.drv_data = dev_info; drv_data 768 drivers/power/supply/ds2781_battery.c psy_cfg.drv_data = dev_info; drv_data 420 drivers/power/supply/ds2782_battery.c psy_cfg.drv_data = info; drv_data 255 drivers/power/supply/generic-adc-battery.c psy_cfg.drv_data = adc_bat; drv_data 235 drivers/power/supply/goldfish_battery.c psy_cfg.drv_data = data; drv_data 190 drivers/power/supply/gpio-charger.c psy_cfg.drv_data = gpio_charger; drv_data 146 drivers/power/supply/ingenic-battery.c psy_cfg.drv_data = bat; drv_data 426 drivers/power/supply/isp1704_charger.c psy_cfg.drv_data = isp; drv_data 208 drivers/power/supply/lego_ev3_battery.c psy_cfg.drv_data = batt; drv_data 135 drivers/power/supply/lt3651-charger.c psy_cfg.drv_data = lt3651_charger; drv_data 547 drivers/power/supply/ltc2941-battery-gauge.c psy_cfg.drv_data = info; drv_data 588 drivers/power/supply/max14577_charger.c psy_cfg.drv_data = chg; drv_data 271 drivers/power/supply/max14656_charger_detector.c psy_cfg.drv_data = chip; drv_data 211 drivers/power/supply/max17040_battery.c psy_cfg.drv_data = chip; drv_data 1048 drivers/power/supply/max17042_battery.c psy_cfg.drv_data = chip; drv_data 354 drivers/power/supply/max1721x_battery.c psy_cfg.drv_data = info; drv_data 304 drivers/power/supply/max77650-charger.c pscfg.drv_data = chg; drv_data 691 drivers/power/supply/max77693_charger.c psy_cfg.drv_data = chg; drv_data 376 drivers/power/supply/max8903_charger.c psy_cfg.drv_data = data; drv_data 145 drivers/power/supply/max8997_charger.c psy_cfg.drv_data = charger; drv_data 156 drivers/power/supply/max8998_charger.c psy_cfg.drv_data = max8998; drv_data 676 drivers/power/supply/olpc_battery.c ac_psy_cfg.drv_data = data; drv_data 694 drivers/power/supply/olpc_battery.c bat_psy_cfg.drv_data = data; drv_data 404 drivers/power/supply/pcf50633-charger.c psy_cfg.drv_data = mbc; drv_data 174 drivers/power/supply/pmu_battery.c psy_cfg.drv_data = pbat; drv_data 1032 drivers/power/supply/power_supply_core.c psy->drv_data = cfg->drv_data; drv_data 1261 drivers/power/supply/power_supply_core.c return psy->drv_data; drv_data 882 drivers/power/supply/qcom_smbb.c bat_cfg.drv_data = chg; drv_data 892 drivers/power/supply/qcom_smbb.c usb_cfg.drv_data = chg; drv_data 916 drivers/power/supply/qcom_smbb.c dc_cfg.drv_data = chg; drv_data 139 drivers/power/supply/rt5033_battery.c psy_cfg.drv_data = battery; drv_data 1662 drivers/power/supply/rt9455_charger.c rt9455_charger_config.drv_data = info; drv_data 210 drivers/power/supply/rx51_battery.c psy_cfg.drv_data = di; drv_data 313 drivers/power/supply/s3c_adc_battery.c psy_cfg.drv_data = &main_bat; drv_data 322 drivers/power/supply/s3c_adc_battery.c = { .drv_data = &backup_bat, }; drv_data 845 drivers/power/supply/sbs-battery.c psy_cfg.drv_data = chip; drv_data 179 drivers/power/supply/sbs-charger.c psy_cfg.drv_data = chip; drv_data 384 drivers/power/supply/sbs-manager.c psy_cfg.drv_data = data; drv_data 482 drivers/power/supply/sc2731_charger.c charger_cfg.drv_data = info; drv_data 1083 drivers/power/supply/sc27xx_fuel_gauge.c fgu_cfg.drv_data = data; drv_data 1247 drivers/power/supply/smb347-charger.c mains_usb_cfg.drv_data = smb; drv_data 1265 drivers/power/supply/smb347-charger.c battery_cfg.drv_data = smb; drv_data 365 drivers/power/supply/tosa_battery.c main_psy_cfg.drv_data = &tosa_bat_main; drv_data 374 drivers/power/supply/tosa_battery.c jacket_psy_cfg.drv_data = &tosa_bat_jacket; drv_data 383 drivers/power/supply/tosa_battery.c bu_psy_cfg.drv_data = &tosa_bat_bu; drv_data 263 drivers/power/supply/tps65090-charger.c psy_cfg.drv_data = cdata; drv_data 203 drivers/power/supply/tps65217_charger.c cfg.drv_data = charger; drv_data 232 drivers/power/supply/twl4030_madc_battery.c psy_cfg.drv_data = twl4030_madc_bat; drv_data 523 drivers/power/supply/ucs1002_power.c charger_config.drv_data = info; drv_data 170 drivers/power/supply/wilco-charger.c psy_cfg.drv_data = ec; drv_data 169 drivers/power/supply/wm97xx_battery.c cfg.drv_data = pdata; drv_data 205 drivers/power/supply/z2_battery.c psy_cfg.drv_data = charger; drv_data 645 drivers/regulator/act8865-regulator.c .drv_data = regmap, drv_data 92 drivers/rtc/rtc-max77686.c const struct max77686_rtc_driver_data *drv_data; drv_data 259 drivers/rtc/rtc-max77686.c u8 mask = info->drv_data->mask; drv_data 283 drivers/rtc/rtc-max77686.c if (!info->drv_data->alarm_enable_reg) drv_data 297 drivers/rtc/rtc-max77686.c if (info->drv_data->alarm_enable_reg) { drv_data 318 drivers/rtc/rtc-max77686.c unsigned long delay = info->drv_data->delay; drv_data 326 drivers/rtc/rtc-max77686.c info->drv_data->map[REG_RTC_UPDATE0], drv_data 352 drivers/rtc/rtc-max77686.c info->drv_data->map[REG_RTC_SEC], drv_data 379 drivers/rtc/rtc-max77686.c info->drv_data->map[REG_RTC_SEC], drv_data 398 drivers/rtc/rtc-max77686.c const unsigned int *map = info->drv_data->map; drv_data 418 drivers/rtc/rtc-max77686.c if (info->drv_data->alarm_enable_reg) { drv_data 446 drivers/rtc/rtc-max77686.c if (info->drv_data->alarm_pending_status_reg == MAX77686_INVALID_REG) drv_data 450 drivers/rtc/rtc-max77686.c info->drv_data->alarm_pending_status_reg, &val); drv_data 470 drivers/rtc/rtc-max77686.c const unsigned int *map = info->drv_data->map; drv_data 479 drivers/rtc/rtc-max77686.c if (info->drv_data->alarm_enable_reg) { drv_data 520 drivers/rtc/rtc-max77686.c const unsigned int *map = info->drv_data->map; drv_data 529 drivers/rtc/rtc-max77686.c if (info->drv_data->alarm_enable_reg) { drv_data 548 drivers/rtc/rtc-max77686.c if (data[RTC_YEAR] & info->drv_data->mask) drv_data 584 drivers/rtc/rtc-max77686.c info->drv_data->map[REG_ALARM1_SEC], drv_data 650 drivers/rtc/rtc-max77686.c info->drv_data->map[REG_RTC_CONTROLM], drv_data 672 drivers/rtc/rtc-max77686.c if (info->drv_data->rtc_irq_from_platform) { drv_data 688 drivers/rtc/rtc-max77686.c if (info->drv_data->rtc_i2c_addr == MAX77686_INVALID_I2C_ADDR) { drv_data 694 drivers/rtc/rtc-max77686.c info->drv_data->rtc_i2c_addr); drv_data 711 drivers/rtc/rtc-max77686.c IRQF_SHARED, 0, info->drv_data->rtc_irq_chip, drv_data 734 drivers/rtc/rtc-max77686.c info->drv_data = (const struct max77686_rtc_driver_data *) drv_data 49 drivers/soc/qcom/llcc-slice.c static struct llcc_drv_data *drv_data = (void *) -EPROBE_DEFER; drv_data 71 drivers/soc/qcom/llcc-slice.c if (IS_ERR(drv_data)) drv_data 72 drivers/soc/qcom/llcc-slice.c return ERR_CAST(drv_data); drv_data 74 drivers/soc/qcom/llcc-slice.c cfg = drv_data->cfg; drv_data 75 drivers/soc/qcom/llcc-slice.c sz = drv_data->cfg_size; drv_data 114 drivers/soc/qcom/llcc-slice.c if (IS_ERR(drv_data)) drv_data 115 drivers/soc/qcom/llcc-slice.c return PTR_ERR(drv_data); drv_data 122 drivers/soc/qcom/llcc-slice.c ret = regmap_write(drv_data->bcast_regmap, act_ctrl_reg, drv_data 129 drivers/soc/qcom/llcc-slice.c ret = regmap_write(drv_data->bcast_regmap, act_ctrl_reg, drv_data 134 drivers/soc/qcom/llcc-slice.c ret = regmap_read_poll_timeout(drv_data->bcast_regmap, status_reg, drv_data 152 drivers/soc/qcom/llcc-slice.c if (IS_ERR(drv_data)) drv_data 153 drivers/soc/qcom/llcc-slice.c return PTR_ERR(drv_data); drv_data 158 drivers/soc/qcom/llcc-slice.c mutex_lock(&drv_data->lock); drv_data 159 drivers/soc/qcom/llcc-slice.c if (test_bit(desc->slice_id, drv_data->bitmap)) { drv_data 160 drivers/soc/qcom/llcc-slice.c mutex_unlock(&drv_data->lock); drv_data 169 drivers/soc/qcom/llcc-slice.c mutex_unlock(&drv_data->lock); drv_data 173 drivers/soc/qcom/llcc-slice.c __set_bit(desc->slice_id, drv_data->bitmap); drv_data 174 drivers/soc/qcom/llcc-slice.c mutex_unlock(&drv_data->lock); drv_data 192 drivers/soc/qcom/llcc-slice.c if (IS_ERR(drv_data)) drv_data 193 drivers/soc/qcom/llcc-slice.c return PTR_ERR(drv_data); drv_data 198 drivers/soc/qcom/llcc-slice.c mutex_lock(&drv_data->lock); drv_data 199 drivers/soc/qcom/llcc-slice.c if (!test_bit(desc->slice_id, drv_data->bitmap)) { drv_data 200 drivers/soc/qcom/llcc-slice.c mutex_unlock(&drv_data->lock); drv_data 208 drivers/soc/qcom/llcc-slice.c mutex_unlock(&drv_data->lock); drv_data 212 drivers/soc/qcom/llcc-slice.c __clear_bit(desc->slice_id, drv_data->bitmap); drv_data 213 drivers/soc/qcom/llcc-slice.c mutex_unlock(&drv_data->lock); drv_data 258 drivers/soc/qcom/llcc-slice.c sz = drv_data->cfg_size; drv_data 259 drivers/soc/qcom/llcc-slice.c llcc_table = drv_data->cfg; drv_data 281 drivers/soc/qcom/llcc-slice.c max_cap_cacheline = max_cap_cacheline / drv_data->num_banks; drv_data 288 drivers/soc/qcom/llcc-slice.c ret = regmap_write(drv_data->bcast_regmap, attr1_cfg, drv_data 292 drivers/soc/qcom/llcc-slice.c ret = regmap_write(drv_data->bcast_regmap, attr0_cfg, drv_data 307 drivers/soc/qcom/llcc-slice.c drv_data = ERR_PTR(-ENODEV); drv_data 338 drivers/soc/qcom/llcc-slice.c drv_data = devm_kzalloc(dev, sizeof(*drv_data), GFP_KERNEL); drv_data 339 drivers/soc/qcom/llcc-slice.c if (!drv_data) { drv_data 344 drivers/soc/qcom/llcc-slice.c drv_data->regmap = qcom_llcc_init_mmio(pdev, "llcc_base"); drv_data 345 drivers/soc/qcom/llcc-slice.c if (IS_ERR(drv_data->regmap)) { drv_data 346 drivers/soc/qcom/llcc-slice.c ret = PTR_ERR(drv_data->regmap); drv_data 350 drivers/soc/qcom/llcc-slice.c drv_data->bcast_regmap = drv_data 352 drivers/soc/qcom/llcc-slice.c if (IS_ERR(drv_data->bcast_regmap)) { drv_data 353 drivers/soc/qcom/llcc-slice.c ret = PTR_ERR(drv_data->bcast_regmap); drv_data 357 drivers/soc/qcom/llcc-slice.c ret = regmap_read(drv_data->regmap, LLCC_COMMON_STATUS0, drv_data 364 drivers/soc/qcom/llcc-slice.c drv_data->num_banks = num_banks; drv_data 367 drivers/soc/qcom/llcc-slice.c if (llcc_cfg[i].slice_id > drv_data->max_slices) drv_data 368 drivers/soc/qcom/llcc-slice.c drv_data->max_slices = llcc_cfg[i].slice_id; drv_data 370 drivers/soc/qcom/llcc-slice.c drv_data->offsets = devm_kcalloc(dev, num_banks, sizeof(u32), drv_data 372 drivers/soc/qcom/llcc-slice.c if (!drv_data->offsets) { drv_data 378 drivers/soc/qcom/llcc-slice.c drv_data->offsets[i] = i * BANK_OFFSET_STRIDE; drv_data 380 drivers/soc/qcom/llcc-slice.c drv_data->bitmap = devm_kcalloc(dev, drv_data 381 drivers/soc/qcom/llcc-slice.c BITS_TO_LONGS(drv_data->max_slices), sizeof(unsigned long), drv_data 383 drivers/soc/qcom/llcc-slice.c if (!drv_data->bitmap) { drv_data 388 drivers/soc/qcom/llcc-slice.c drv_data->cfg = llcc_cfg; drv_data 389 drivers/soc/qcom/llcc-slice.c drv_data->cfg_size = sz; drv_data 390 drivers/soc/qcom/llcc-slice.c mutex_init(&drv_data->lock); drv_data 391 drivers/soc/qcom/llcc-slice.c platform_set_drvdata(pdev, drv_data); drv_data 397 drivers/soc/qcom/llcc-slice.c drv_data->ecc_irq = platform_get_irq(pdev, 0); drv_data 398 drivers/soc/qcom/llcc-slice.c if (drv_data->ecc_irq >= 0) { drv_data 400 drivers/soc/qcom/llcc-slice.c "qcom_llcc_edac", -1, drv_data, drv_data 401 drivers/soc/qcom/llcc-slice.c sizeof(*drv_data)); drv_data 408 drivers/soc/qcom/llcc-slice.c drv_data = ERR_PTR(-ENODEV); drv_data 20 drivers/spi/spi-pxa2xx-dma.c static void pxa2xx_spi_dma_transfer_complete(struct driver_data *drv_data, drv_data 23 drivers/spi/spi-pxa2xx-dma.c struct spi_message *msg = drv_data->controller->cur_msg; drv_data 31 drivers/spi/spi-pxa2xx-dma.c if (atomic_dec_and_test(&drv_data->dma_running)) { drv_data 38 drivers/spi/spi-pxa2xx-dma.c u32 status = pxa2xx_spi_read(drv_data, SSSR) drv_data 39 drivers/spi/spi-pxa2xx-dma.c & drv_data->mask_sr; drv_data 44 drivers/spi/spi-pxa2xx-dma.c pxa2xx_spi_write(drv_data, SSCR1, drv_data 45 drivers/spi/spi-pxa2xx-dma.c pxa2xx_spi_read(drv_data, SSCR1) drv_data 46 drivers/spi/spi-pxa2xx-dma.c & ~drv_data->dma_cr1); drv_data 47 drivers/spi/spi-pxa2xx-dma.c write_SSSR_CS(drv_data, drv_data->clear_sr); drv_data 48 drivers/spi/spi-pxa2xx-dma.c if (!pxa25x_ssp_comp(drv_data)) drv_data 49 drivers/spi/spi-pxa2xx-dma.c pxa2xx_spi_write(drv_data, SSTO, 0); drv_data 53 drivers/spi/spi-pxa2xx-dma.c pxa2xx_spi_write(drv_data, SSCR0, drv_data 54 drivers/spi/spi-pxa2xx-dma.c pxa2xx_spi_read(drv_data, SSCR0) drv_data 59 drivers/spi/spi-pxa2xx-dma.c spi_finalize_current_transfer(drv_data->controller); drv_data 69 drivers/spi/spi-pxa2xx-dma.c pxa2xx_spi_dma_prepare_one(struct driver_data *drv_data, drv_data 74 drivers/spi/spi-pxa2xx-dma.c spi_get_ctldata(drv_data->controller->cur_msg->spi); drv_data 81 drivers/spi/spi-pxa2xx-dma.c switch (drv_data->n_bytes) { drv_data 97 drivers/spi/spi-pxa2xx-dma.c cfg.dst_addr = drv_data->ssdr_physical; drv_data 102 drivers/spi/spi-pxa2xx-dma.c chan = drv_data->controller->dma_tx; drv_data 104 drivers/spi/spi-pxa2xx-dma.c cfg.src_addr = drv_data->ssdr_physical; drv_data 109 drivers/spi/spi-pxa2xx-dma.c chan = drv_data->controller->dma_rx; drv_data 114 drivers/spi/spi-pxa2xx-dma.c dev_warn(&drv_data->pdev->dev, "DMA slave config failed\n"); drv_data 122 drivers/spi/spi-pxa2xx-dma.c irqreturn_t pxa2xx_spi_dma_transfer(struct driver_data *drv_data) drv_data 126 drivers/spi/spi-pxa2xx-dma.c status = pxa2xx_spi_read(drv_data, SSSR) & drv_data->mask_sr; drv_data 128 drivers/spi/spi-pxa2xx-dma.c dev_err(&drv_data->pdev->dev, "FIFO overrun\n"); drv_data 130 drivers/spi/spi-pxa2xx-dma.c dmaengine_terminate_async(drv_data->controller->dma_rx); drv_data 131 drivers/spi/spi-pxa2xx-dma.c dmaengine_terminate_async(drv_data->controller->dma_tx); drv_data 133 drivers/spi/spi-pxa2xx-dma.c pxa2xx_spi_dma_transfer_complete(drv_data, true); drv_data 140 drivers/spi/spi-pxa2xx-dma.c int pxa2xx_spi_dma_prepare(struct driver_data *drv_data, drv_data 146 drivers/spi/spi-pxa2xx-dma.c tx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_MEM_TO_DEV, xfer); drv_data 148 drivers/spi/spi-pxa2xx-dma.c dev_err(&drv_data->pdev->dev, drv_data 154 drivers/spi/spi-pxa2xx-dma.c rx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_DEV_TO_MEM, xfer); drv_data 156 drivers/spi/spi-pxa2xx-dma.c dev_err(&drv_data->pdev->dev, drv_data 164 drivers/spi/spi-pxa2xx-dma.c rx_desc->callback_param = drv_data; drv_data 171 drivers/spi/spi-pxa2xx-dma.c dmaengine_terminate_async(drv_data->controller->dma_tx); drv_data 176 drivers/spi/spi-pxa2xx-dma.c void pxa2xx_spi_dma_start(struct driver_data *drv_data) drv_data 178 drivers/spi/spi-pxa2xx-dma.c dma_async_issue_pending(drv_data->controller->dma_rx); drv_data 179 drivers/spi/spi-pxa2xx-dma.c dma_async_issue_pending(drv_data->controller->dma_tx); drv_data 181 drivers/spi/spi-pxa2xx-dma.c atomic_set(&drv_data->dma_running, 1); drv_data 184 drivers/spi/spi-pxa2xx-dma.c void pxa2xx_spi_dma_stop(struct driver_data *drv_data) drv_data 186 drivers/spi/spi-pxa2xx-dma.c atomic_set(&drv_data->dma_running, 0); drv_data 187 drivers/spi/spi-pxa2xx-dma.c dmaengine_terminate_sync(drv_data->controller->dma_rx); drv_data 188 drivers/spi/spi-pxa2xx-dma.c dmaengine_terminate_sync(drv_data->controller->dma_tx); drv_data 191 drivers/spi/spi-pxa2xx-dma.c int pxa2xx_spi_dma_setup(struct driver_data *drv_data) drv_data 193 drivers/spi/spi-pxa2xx-dma.c struct pxa2xx_spi_controller *pdata = drv_data->controller_info; drv_data 194 drivers/spi/spi-pxa2xx-dma.c struct device *dev = &drv_data->pdev->dev; drv_data 195 drivers/spi/spi-pxa2xx-dma.c struct spi_controller *controller = drv_data->controller; drv_data 217 drivers/spi/spi-pxa2xx-dma.c void pxa2xx_spi_dma_release(struct driver_data *drv_data) drv_data 219 drivers/spi/spi-pxa2xx-dma.c struct spi_controller *controller = drv_data->controller; drv_data 239 drivers/spi/spi-pxa2xx-dma.c struct driver_data *drv_data = spi_controller_get_devdata(spi->controller); drv_data 240 drivers/spi/spi-pxa2xx-dma.c u32 dma_burst_size = drv_data->controller_info->dma_burst_size; drv_data 168 drivers/spi/spi-pxa2xx.c *lpss_get_config(const struct driver_data *drv_data) drv_data 170 drivers/spi/spi-pxa2xx.c return &lpss_platforms[drv_data->ssp_type - LPSS_LPT_SSP]; drv_data 173 drivers/spi/spi-pxa2xx.c static bool is_lpss_ssp(const struct driver_data *drv_data) drv_data 175 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 188 drivers/spi/spi-pxa2xx.c static bool is_quark_x1000_ssp(const struct driver_data *drv_data) drv_data 190 drivers/spi/spi-pxa2xx.c return drv_data->ssp_type == QUARK_X1000_SSP; drv_data 193 drivers/spi/spi-pxa2xx.c static u32 pxa2xx_spi_get_ssrc1_change_mask(const struct driver_data *drv_data) drv_data 195 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 206 drivers/spi/spi-pxa2xx.c pxa2xx_spi_get_rx_default_thre(const struct driver_data *drv_data) drv_data 208 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 218 drivers/spi/spi-pxa2xx.c static bool pxa2xx_spi_txfifo_full(const struct driver_data *drv_data) drv_data 222 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 234 drivers/spi/spi-pxa2xx.c return (pxa2xx_spi_read(drv_data, SSSR) & mask) == mask; drv_data 237 drivers/spi/spi-pxa2xx.c static void pxa2xx_spi_clear_rx_thre(const struct driver_data *drv_data, drv_data 242 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 256 drivers/spi/spi-pxa2xx.c static void pxa2xx_spi_set_rx_thre(const struct driver_data *drv_data, drv_data 259 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 272 drivers/spi/spi-pxa2xx.c static u32 pxa2xx_configure_sscr0(const struct driver_data *drv_data, drv_data 275 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 294 drivers/spi/spi-pxa2xx.c static u32 __lpss_ssp_read_priv(struct driver_data *drv_data, unsigned offset) drv_data 296 drivers/spi/spi-pxa2xx.c WARN_ON(!drv_data->lpss_base); drv_data 297 drivers/spi/spi-pxa2xx.c return readl(drv_data->lpss_base + offset); drv_data 300 drivers/spi/spi-pxa2xx.c static void __lpss_ssp_write_priv(struct driver_data *drv_data, drv_data 303 drivers/spi/spi-pxa2xx.c WARN_ON(!drv_data->lpss_base); drv_data 304 drivers/spi/spi-pxa2xx.c writel(value, drv_data->lpss_base + offset); drv_data 314 drivers/spi/spi-pxa2xx.c static void lpss_ssp_setup(struct driver_data *drv_data) drv_data 319 drivers/spi/spi-pxa2xx.c config = lpss_get_config(drv_data); drv_data 320 drivers/spi/spi-pxa2xx.c drv_data->lpss_base = drv_data->ioaddr + config->offset; drv_data 323 drivers/spi/spi-pxa2xx.c value = __lpss_ssp_read_priv(drv_data, config->reg_cs_ctrl); drv_data 326 drivers/spi/spi-pxa2xx.c __lpss_ssp_write_priv(drv_data, config->reg_cs_ctrl, value); drv_data 329 drivers/spi/spi-pxa2xx.c if (drv_data->controller_info->enable_dma) { drv_data 330 drivers/spi/spi-pxa2xx.c __lpss_ssp_write_priv(drv_data, config->reg_ssp, 1); drv_data 333 drivers/spi/spi-pxa2xx.c value = __lpss_ssp_read_priv(drv_data, drv_data 336 drivers/spi/spi-pxa2xx.c __lpss_ssp_write_priv(drv_data, drv_data 345 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = drv_data 352 drivers/spi/spi-pxa2xx.c value = __lpss_ssp_read_priv(drv_data, config->reg_cs_ctrl); drv_data 366 drivers/spi/spi-pxa2xx.c __lpss_ssp_write_priv(drv_data, drv_data 369 drivers/spi/spi-pxa2xx.c (drv_data->controller->max_speed_hz / 2)); drv_data 375 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = drv_data 380 drivers/spi/spi-pxa2xx.c config = lpss_get_config(drv_data); drv_data 385 drivers/spi/spi-pxa2xx.c value = __lpss_ssp_read_priv(drv_data, config->reg_cs_ctrl); drv_data 390 drivers/spi/spi-pxa2xx.c __lpss_ssp_write_priv(drv_data, config->reg_cs_ctrl, value); drv_data 400 drivers/spi/spi-pxa2xx.c clkgate = __lpss_ssp_read_priv(drv_data, LPSS_PRIV_CLOCK_GATE); drv_data 404 drivers/spi/spi-pxa2xx.c __lpss_ssp_write_priv(drv_data, LPSS_PRIV_CLOCK_GATE, value); drv_data 405 drivers/spi/spi-pxa2xx.c __lpss_ssp_write_priv(drv_data, LPSS_PRIV_CLOCK_GATE, clkgate); drv_data 412 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = drv_data 415 drivers/spi/spi-pxa2xx.c if (drv_data->ssp_type == CE4100_SSP) { drv_data 416 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSSR, chip->frm); drv_data 430 drivers/spi/spi-pxa2xx.c if (is_lpss_ssp(drv_data)) drv_data 437 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = drv_data 441 drivers/spi/spi-pxa2xx.c if (drv_data->ssp_type == CE4100_SSP) drv_data 446 drivers/spi/spi-pxa2xx.c while (pxa2xx_spi_read(drv_data, SSSR) & SSSR_BSY && drv_data 460 drivers/spi/spi-pxa2xx.c if (is_lpss_ssp(drv_data)) drv_data 472 drivers/spi/spi-pxa2xx.c int pxa2xx_spi_flush(struct driver_data *drv_data) drv_data 477 drivers/spi/spi-pxa2xx.c while (pxa2xx_spi_read(drv_data, SSSR) & SSSR_RNE) drv_data 478 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSDR); drv_data 479 drivers/spi/spi-pxa2xx.c } while ((pxa2xx_spi_read(drv_data, SSSR) & SSSR_BSY) && --limit); drv_data 480 drivers/spi/spi-pxa2xx.c write_SSSR_CS(drv_data, SSSR_ROR); drv_data 485 drivers/spi/spi-pxa2xx.c static int null_writer(struct driver_data *drv_data) drv_data 487 drivers/spi/spi-pxa2xx.c u8 n_bytes = drv_data->n_bytes; drv_data 489 drivers/spi/spi-pxa2xx.c if (pxa2xx_spi_txfifo_full(drv_data) drv_data 490 drivers/spi/spi-pxa2xx.c || (drv_data->tx == drv_data->tx_end)) drv_data 493 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSDR, 0); drv_data 494 drivers/spi/spi-pxa2xx.c drv_data->tx += n_bytes; drv_data 499 drivers/spi/spi-pxa2xx.c static int null_reader(struct driver_data *drv_data) drv_data 501 drivers/spi/spi-pxa2xx.c u8 n_bytes = drv_data->n_bytes; drv_data 503 drivers/spi/spi-pxa2xx.c while ((pxa2xx_spi_read(drv_data, SSSR) & SSSR_RNE) drv_data 504 drivers/spi/spi-pxa2xx.c && (drv_data->rx < drv_data->rx_end)) { drv_data 505 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSDR); drv_data 506 drivers/spi/spi-pxa2xx.c drv_data->rx += n_bytes; drv_data 509 drivers/spi/spi-pxa2xx.c return drv_data->rx == drv_data->rx_end; drv_data 512 drivers/spi/spi-pxa2xx.c static int u8_writer(struct driver_data *drv_data) drv_data 514 drivers/spi/spi-pxa2xx.c if (pxa2xx_spi_txfifo_full(drv_data) drv_data 515 drivers/spi/spi-pxa2xx.c || (drv_data->tx == drv_data->tx_end)) drv_data 518 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSDR, *(u8 *)(drv_data->tx)); drv_data 519 drivers/spi/spi-pxa2xx.c ++drv_data->tx; drv_data 524 drivers/spi/spi-pxa2xx.c static int u8_reader(struct driver_data *drv_data) drv_data 526 drivers/spi/spi-pxa2xx.c while ((pxa2xx_spi_read(drv_data, SSSR) & SSSR_RNE) drv_data 527 drivers/spi/spi-pxa2xx.c && (drv_data->rx < drv_data->rx_end)) { drv_data 528 drivers/spi/spi-pxa2xx.c *(u8 *)(drv_data->rx) = pxa2xx_spi_read(drv_data, SSDR); drv_data 529 drivers/spi/spi-pxa2xx.c ++drv_data->rx; drv_data 532 drivers/spi/spi-pxa2xx.c return drv_data->rx == drv_data->rx_end; drv_data 535 drivers/spi/spi-pxa2xx.c static int u16_writer(struct driver_data *drv_data) drv_data 537 drivers/spi/spi-pxa2xx.c if (pxa2xx_spi_txfifo_full(drv_data) drv_data 538 drivers/spi/spi-pxa2xx.c || (drv_data->tx == drv_data->tx_end)) drv_data 541 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSDR, *(u16 *)(drv_data->tx)); drv_data 542 drivers/spi/spi-pxa2xx.c drv_data->tx += 2; drv_data 547 drivers/spi/spi-pxa2xx.c static int u16_reader(struct driver_data *drv_data) drv_data 549 drivers/spi/spi-pxa2xx.c while ((pxa2xx_spi_read(drv_data, SSSR) & SSSR_RNE) drv_data 550 drivers/spi/spi-pxa2xx.c && (drv_data->rx < drv_data->rx_end)) { drv_data 551 drivers/spi/spi-pxa2xx.c *(u16 *)(drv_data->rx) = pxa2xx_spi_read(drv_data, SSDR); drv_data 552 drivers/spi/spi-pxa2xx.c drv_data->rx += 2; drv_data 555 drivers/spi/spi-pxa2xx.c return drv_data->rx == drv_data->rx_end; drv_data 558 drivers/spi/spi-pxa2xx.c static int u32_writer(struct driver_data *drv_data) drv_data 560 drivers/spi/spi-pxa2xx.c if (pxa2xx_spi_txfifo_full(drv_data) drv_data 561 drivers/spi/spi-pxa2xx.c || (drv_data->tx == drv_data->tx_end)) drv_data 564 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSDR, *(u32 *)(drv_data->tx)); drv_data 565 drivers/spi/spi-pxa2xx.c drv_data->tx += 4; drv_data 570 drivers/spi/spi-pxa2xx.c static int u32_reader(struct driver_data *drv_data) drv_data 572 drivers/spi/spi-pxa2xx.c while ((pxa2xx_spi_read(drv_data, SSSR) & SSSR_RNE) drv_data 573 drivers/spi/spi-pxa2xx.c && (drv_data->rx < drv_data->rx_end)) { drv_data 574 drivers/spi/spi-pxa2xx.c *(u32 *)(drv_data->rx) = pxa2xx_spi_read(drv_data, SSDR); drv_data 575 drivers/spi/spi-pxa2xx.c drv_data->rx += 4; drv_data 578 drivers/spi/spi-pxa2xx.c return drv_data->rx == drv_data->rx_end; drv_data 581 drivers/spi/spi-pxa2xx.c static void reset_sccr1(struct driver_data *drv_data) drv_data 584 drivers/spi/spi-pxa2xx.c spi_get_ctldata(drv_data->controller->cur_msg->spi); drv_data 587 drivers/spi/spi-pxa2xx.c sccr1_reg = pxa2xx_spi_read(drv_data, SSCR1) & ~drv_data->int_cr1; drv_data 588 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 600 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, sccr1_reg); drv_data 603 drivers/spi/spi-pxa2xx.c static void int_error_stop(struct driver_data *drv_data, const char* msg) drv_data 606 drivers/spi/spi-pxa2xx.c write_SSSR_CS(drv_data, drv_data->clear_sr); drv_data 607 drivers/spi/spi-pxa2xx.c reset_sccr1(drv_data); drv_data 608 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 609 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSTO, 0); drv_data 610 drivers/spi/spi-pxa2xx.c pxa2xx_spi_flush(drv_data); drv_data 611 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, drv_data 612 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSCR0) & ~SSCR0_SSE); drv_data 614 drivers/spi/spi-pxa2xx.c dev_err(&drv_data->pdev->dev, "%s\n", msg); drv_data 616 drivers/spi/spi-pxa2xx.c drv_data->controller->cur_msg->status = -EIO; drv_data 617 drivers/spi/spi-pxa2xx.c spi_finalize_current_transfer(drv_data->controller); drv_data 620 drivers/spi/spi-pxa2xx.c static void int_transfer_complete(struct driver_data *drv_data) drv_data 623 drivers/spi/spi-pxa2xx.c write_SSSR_CS(drv_data, drv_data->clear_sr); drv_data 624 drivers/spi/spi-pxa2xx.c reset_sccr1(drv_data); drv_data 625 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 626 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSTO, 0); drv_data 628 drivers/spi/spi-pxa2xx.c spi_finalize_current_transfer(drv_data->controller); drv_data 631 drivers/spi/spi-pxa2xx.c static irqreturn_t interrupt_transfer(struct driver_data *drv_data) drv_data 633 drivers/spi/spi-pxa2xx.c u32 irq_mask = (pxa2xx_spi_read(drv_data, SSCR1) & SSCR1_TIE) ? drv_data 634 drivers/spi/spi-pxa2xx.c drv_data->mask_sr : drv_data->mask_sr & ~SSSR_TFS; drv_data 636 drivers/spi/spi-pxa2xx.c u32 irq_status = pxa2xx_spi_read(drv_data, SSSR) & irq_mask; drv_data 639 drivers/spi/spi-pxa2xx.c int_error_stop(drv_data, "interrupt_transfer: fifo overrun"); drv_data 644 drivers/spi/spi-pxa2xx.c int_error_stop(drv_data, "interrupt_transfer: fifo underrun"); drv_data 649 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSSR, SSSR_TINT); drv_data 650 drivers/spi/spi-pxa2xx.c if (drv_data->read(drv_data)) { drv_data 651 drivers/spi/spi-pxa2xx.c int_transfer_complete(drv_data); drv_data 658 drivers/spi/spi-pxa2xx.c if (drv_data->read(drv_data)) { drv_data 659 drivers/spi/spi-pxa2xx.c int_transfer_complete(drv_data); drv_data 662 drivers/spi/spi-pxa2xx.c } while (drv_data->write(drv_data)); drv_data 664 drivers/spi/spi-pxa2xx.c if (drv_data->read(drv_data)) { drv_data 665 drivers/spi/spi-pxa2xx.c int_transfer_complete(drv_data); drv_data 669 drivers/spi/spi-pxa2xx.c if (drv_data->tx == drv_data->tx_end) { drv_data 673 drivers/spi/spi-pxa2xx.c sccr1_reg = pxa2xx_spi_read(drv_data, SSCR1); drv_data 680 drivers/spi/spi-pxa2xx.c if (pxa25x_ssp_comp(drv_data)) { drv_data 683 drivers/spi/spi-pxa2xx.c pxa2xx_spi_clear_rx_thre(drv_data, &sccr1_reg); drv_data 685 drivers/spi/spi-pxa2xx.c bytes_left = drv_data->rx_end - drv_data->rx; drv_data 686 drivers/spi/spi-pxa2xx.c switch (drv_data->n_bytes) { drv_data 695 drivers/spi/spi-pxa2xx.c rx_thre = pxa2xx_spi_get_rx_default_thre(drv_data); drv_data 699 drivers/spi/spi-pxa2xx.c pxa2xx_spi_set_rx_thre(drv_data, &sccr1_reg, rx_thre); drv_data 701 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, sccr1_reg); drv_data 708 drivers/spi/spi-pxa2xx.c static void handle_bad_msg(struct driver_data *drv_data) drv_data 710 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, drv_data 711 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSCR0) & ~SSCR0_SSE); drv_data 712 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, drv_data 713 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSCR1) & ~drv_data->int_cr1); drv_data 714 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 715 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSTO, 0); drv_data 716 drivers/spi/spi-pxa2xx.c write_SSSR_CS(drv_data, drv_data->clear_sr); drv_data 718 drivers/spi/spi-pxa2xx.c dev_err(&drv_data->pdev->dev, drv_data 724 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = dev_id; drv_data 726 drivers/spi/spi-pxa2xx.c u32 mask = drv_data->mask_sr; drv_data 735 drivers/spi/spi-pxa2xx.c if (pm_runtime_suspended(&drv_data->pdev->dev)) drv_data 744 drivers/spi/spi-pxa2xx.c status = pxa2xx_spi_read(drv_data, SSSR); drv_data 748 drivers/spi/spi-pxa2xx.c sccr1_reg = pxa2xx_spi_read(drv_data, SSCR1); drv_data 761 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, sccr1_reg & ~drv_data->int_cr1); drv_data 762 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, sccr1_reg); drv_data 764 drivers/spi/spi-pxa2xx.c if (!drv_data->controller->cur_msg) { drv_data 765 drivers/spi/spi-pxa2xx.c handle_bad_msg(drv_data); drv_data 770 drivers/spi/spi-pxa2xx.c return drv_data->transfer_handler(drv_data); drv_data 894 drivers/spi/spi-pxa2xx.c static unsigned int ssp_get_clk_div(struct driver_data *drv_data, int rate) drv_data 896 drivers/spi/spi-pxa2xx.c unsigned long ssp_clk = drv_data->controller->max_speed_hz; drv_data 897 drivers/spi/spi-pxa2xx.c const struct ssp_device *ssp = drv_data->ssp; drv_data 911 drivers/spi/spi-pxa2xx.c static unsigned int pxa2xx_ssp_get_clk_div(struct driver_data *drv_data, drv_data 915 drivers/spi/spi-pxa2xx.c spi_get_ctldata(drv_data->controller->cur_msg->spi); drv_data 918 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 923 drivers/spi/spi-pxa2xx.c clk_div = ssp_get_clk_div(drv_data, rate); drv_data 944 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = spi_controller_get_devdata(controller); drv_data 949 drivers/spi/spi-pxa2xx.c u32 change_mask = pxa2xx_spi_get_ssrc1_change_mask(drv_data); drv_data 977 drivers/spi/spi-pxa2xx.c if (pxa2xx_spi_flush(drv_data) == 0) { drv_data 981 drivers/spi/spi-pxa2xx.c drv_data->n_bytes = chip->n_bytes; drv_data 982 drivers/spi/spi-pxa2xx.c drv_data->tx = (void *)transfer->tx_buf; drv_data 983 drivers/spi/spi-pxa2xx.c drv_data->tx_end = drv_data->tx + transfer->len; drv_data 984 drivers/spi/spi-pxa2xx.c drv_data->rx = transfer->rx_buf; drv_data 985 drivers/spi/spi-pxa2xx.c drv_data->rx_end = drv_data->rx + transfer->len; drv_data 986 drivers/spi/spi-pxa2xx.c drv_data->write = drv_data->tx ? chip->write : null_writer; drv_data 987 drivers/spi/spi-pxa2xx.c drv_data->read = drv_data->rx ? chip->read : null_reader; drv_data 993 drivers/spi/spi-pxa2xx.c clk_div = pxa2xx_ssp_get_clk_div(drv_data, speed); drv_data 996 drivers/spi/spi-pxa2xx.c drv_data->n_bytes = 1; drv_data 997 drivers/spi/spi-pxa2xx.c drv_data->read = drv_data->read != null_reader ? drv_data 999 drivers/spi/spi-pxa2xx.c drv_data->write = drv_data->write != null_writer ? drv_data 1002 drivers/spi/spi-pxa2xx.c drv_data->n_bytes = 2; drv_data 1003 drivers/spi/spi-pxa2xx.c drv_data->read = drv_data->read != null_reader ? drv_data 1005 drivers/spi/spi-pxa2xx.c drv_data->write = drv_data->write != null_writer ? drv_data 1008 drivers/spi/spi-pxa2xx.c drv_data->n_bytes = 4; drv_data 1009 drivers/spi/spi-pxa2xx.c drv_data->read = drv_data->read != null_reader ? drv_data 1011 drivers/spi/spi-pxa2xx.c drv_data->write = drv_data->write != null_writer ? drv_data 1033 drivers/spi/spi-pxa2xx.c drv_data->transfer_handler = pxa2xx_spi_dma_transfer; drv_data 1035 drivers/spi/spi-pxa2xx.c err = pxa2xx_spi_dma_prepare(drv_data, transfer); drv_data 1040 drivers/spi/spi-pxa2xx.c cr1 = chip->cr1 | dma_thresh | drv_data->dma_cr1; drv_data 1041 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSSR, drv_data->clear_sr); drv_data 1043 drivers/spi/spi-pxa2xx.c pxa2xx_spi_dma_start(drv_data); drv_data 1046 drivers/spi/spi-pxa2xx.c drv_data->transfer_handler = interrupt_transfer; drv_data 1049 drivers/spi/spi-pxa2xx.c cr1 = chip->cr1 | chip->threshold | drv_data->int_cr1; drv_data 1050 drivers/spi/spi-pxa2xx.c write_SSSR_CS(drv_data, drv_data->clear_sr); drv_data 1054 drivers/spi/spi-pxa2xx.c cr0 = pxa2xx_configure_sscr0(drv_data, clk_div, bits); drv_data 1055 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 1066 drivers/spi/spi-pxa2xx.c if (is_lpss_ssp(drv_data)) { drv_data 1067 drivers/spi/spi-pxa2xx.c if ((pxa2xx_spi_read(drv_data, SSIRF) & 0xff) drv_data 1069 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSIRF, drv_data 1071 drivers/spi/spi-pxa2xx.c if ((pxa2xx_spi_read(drv_data, SSITF) & 0xffff) drv_data 1073 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSITF, drv_data 1077 drivers/spi/spi-pxa2xx.c if (is_quark_x1000_ssp(drv_data) && drv_data 1078 drivers/spi/spi-pxa2xx.c (pxa2xx_spi_read(drv_data, DDS_RATE) != chip->dds_rate)) drv_data 1079 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, DDS_RATE, chip->dds_rate); drv_data 1082 drivers/spi/spi-pxa2xx.c if ((pxa2xx_spi_read(drv_data, SSCR0) != cr0) drv_data 1083 drivers/spi/spi-pxa2xx.c || (pxa2xx_spi_read(drv_data, SSCR1) & change_mask) drv_data 1086 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, cr0 & ~SSCR0_SSE); drv_data 1087 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 1088 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSTO, chip->timeout); drv_data 1090 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, cr1 & change_mask); drv_data 1092 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, cr0); drv_data 1095 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 1096 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSTO, chip->timeout); drv_data 1099 drivers/spi/spi-pxa2xx.c if (drv_data->ssp_type == MMP2_SSP) { drv_data 1100 drivers/spi/spi-pxa2xx.c u8 tx_level = (pxa2xx_spi_read(drv_data, SSSR) drv_data 1109 drivers/spi/spi-pxa2xx.c drv_data->tx += tx_level; drv_data 1114 drivers/spi/spi-pxa2xx.c while (drv_data->write(drv_data)) drv_data 1116 drivers/spi/spi-pxa2xx.c if (drv_data->gpiod_ready) { drv_data 1117 drivers/spi/spi-pxa2xx.c gpiod_set_value(drv_data->gpiod_ready, 1); drv_data 1119 drivers/spi/spi-pxa2xx.c gpiod_set_value(drv_data->gpiod_ready, 0); drv_data 1127 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, cr1); drv_data 1134 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = spi_controller_get_devdata(controller); drv_data 1137 drivers/spi/spi-pxa2xx.c write_SSSR_CS(drv_data, drv_data->clear_sr); drv_data 1138 drivers/spi/spi-pxa2xx.c reset_sccr1(drv_data); drv_data 1139 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 1140 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSTO, 0); drv_data 1141 drivers/spi/spi-pxa2xx.c pxa2xx_spi_flush(drv_data); drv_data 1142 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, drv_data 1143 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSCR0) & ~SSCR0_SSE); drv_data 1145 drivers/spi/spi-pxa2xx.c dev_dbg(&drv_data->pdev->dev, "transfer aborted\n"); drv_data 1147 drivers/spi/spi-pxa2xx.c drv_data->controller->cur_msg->status = -EINTR; drv_data 1148 drivers/spi/spi-pxa2xx.c spi_finalize_current_transfer(drv_data->controller); drv_data 1156 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = spi_controller_get_devdata(controller); drv_data 1159 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, drv_data 1160 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSCR0) & ~SSCR0_SSE); drv_data 1162 drivers/spi/spi-pxa2xx.c write_SSSR_CS(drv_data, drv_data->clear_sr); drv_data 1163 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, drv_data 1164 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSCR1) drv_data 1165 drivers/spi/spi-pxa2xx.c & ~(drv_data->int_cr1 | drv_data->dma_cr1)); drv_data 1166 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 1167 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSTO, 0); drv_data 1176 drivers/spi/spi-pxa2xx.c if (atomic_read(&drv_data->dma_running)) drv_data 1177 drivers/spi/spi-pxa2xx.c pxa2xx_spi_dma_stop(drv_data); drv_data 1182 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = spi_controller_get_devdata(controller); drv_data 1185 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, drv_data 1186 drivers/spi/spi-pxa2xx.c pxa2xx_spi_read(drv_data, SSCR0) & ~SSCR0_SSE); drv_data 1194 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = drv_data 1202 drivers/spi/spi-pxa2xx.c if (drv_data->cs_gpiods) { drv_data 1203 drivers/spi/spi-pxa2xx.c gpiod = drv_data->cs_gpiods[spi->chip_select]; drv_data 1253 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = drv_data 1257 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 1274 drivers/spi/spi-pxa2xx.c config = lpss_get_config(drv_data); drv_data 1281 drivers/spi/spi-pxa2xx.c if (spi_controller_is_slave(drv_data->controller)) { drv_data 1298 drivers/spi/spi-pxa2xx.c if (drv_data->ssp_type == CE4100_SSP) { drv_data 1308 drivers/spi/spi-pxa2xx.c chip->enable_dma = drv_data->controller_info->enable_dma; drv_data 1331 drivers/spi/spi-pxa2xx.c if (spi_controller_is_slave(drv_data->controller)) { drv_data 1359 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 1399 drivers/spi/spi-pxa2xx.c if (drv_data->ssp_type == CE4100_SSP) drv_data 1408 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = drv_data 1414 drivers/spi/spi-pxa2xx.c if (drv_data->ssp_type != CE4100_SSP && !drv_data->cs_gpiods && drv_data 1621 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = spi_controller_get_devdata(controller); drv_data 1623 drivers/spi/spi-pxa2xx.c if (has_acpi_companion(&drv_data->pdev->dev)) { drv_data 1624 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 1652 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data; drv_data 1686 drivers/spi/spi-pxa2xx.c drv_data = spi_controller_get_devdata(controller); drv_data 1687 drivers/spi/spi-pxa2xx.c drv_data->controller = controller; drv_data 1688 drivers/spi/spi-pxa2xx.c drv_data->controller_info = platform_info; drv_data 1689 drivers/spi/spi-pxa2xx.c drv_data->pdev = pdev; drv_data 1690 drivers/spi/spi-pxa2xx.c drv_data->ssp = ssp; drv_data 1709 drivers/spi/spi-pxa2xx.c drv_data->ssp_type = ssp->type; drv_data 1711 drivers/spi/spi-pxa2xx.c drv_data->ioaddr = ssp->mmio_base; drv_data 1712 drivers/spi/spi-pxa2xx.c drv_data->ssdr_physical = ssp->phys_base + SSDR; drv_data 1713 drivers/spi/spi-pxa2xx.c if (pxa25x_ssp_comp(drv_data)) { drv_data 1714 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 1723 drivers/spi/spi-pxa2xx.c drv_data->int_cr1 = SSCR1_TIE | SSCR1_RIE; drv_data 1724 drivers/spi/spi-pxa2xx.c drv_data->dma_cr1 = 0; drv_data 1725 drivers/spi/spi-pxa2xx.c drv_data->clear_sr = SSSR_ROR; drv_data 1726 drivers/spi/spi-pxa2xx.c drv_data->mask_sr = SSSR_RFS | SSSR_TFS | SSSR_ROR; drv_data 1729 drivers/spi/spi-pxa2xx.c drv_data->int_cr1 = SSCR1_TIE | SSCR1_RIE | SSCR1_TINTE; drv_data 1730 drivers/spi/spi-pxa2xx.c drv_data->dma_cr1 = DEFAULT_DMA_CR1; drv_data 1731 drivers/spi/spi-pxa2xx.c drv_data->clear_sr = SSSR_ROR | SSSR_TINT; drv_data 1732 drivers/spi/spi-pxa2xx.c drv_data->mask_sr = SSSR_TINT | SSSR_RFS | SSSR_TFS drv_data 1737 drivers/spi/spi-pxa2xx.c drv_data); drv_data 1745 drivers/spi/spi-pxa2xx.c status = pxa2xx_spi_dma_setup(drv_data); drv_data 1767 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 1770 drivers/spi/spi-pxa2xx.c else if (!is_quark_x1000_ssp(drv_data)) drv_data 1775 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, 0); drv_data 1776 drivers/spi/spi-pxa2xx.c switch (drv_data->ssp_type) { drv_data 1780 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, tmp); drv_data 1784 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, tmp); drv_data 1789 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, tmp); drv_data 1791 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, tmp); drv_data 1806 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR1, tmp); drv_data 1810 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, tmp); drv_data 1814 drivers/spi/spi-pxa2xx.c if (!pxa25x_ssp_comp(drv_data)) drv_data 1815 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSTO, 0); drv_data 1817 drivers/spi/spi-pxa2xx.c if (!is_quark_x1000_ssp(drv_data)) drv_data 1818 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSPSP, 0); drv_data 1820 drivers/spi/spi-pxa2xx.c if (is_lpss_ssp(drv_data)) { drv_data 1821 drivers/spi/spi-pxa2xx.c lpss_ssp_setup(drv_data); drv_data 1822 drivers/spi/spi-pxa2xx.c config = lpss_get_config(drv_data); drv_data 1824 drivers/spi/spi-pxa2xx.c tmp = __lpss_ssp_read_priv(drv_data, drv_data 1842 drivers/spi/spi-pxa2xx.c drv_data->cs_gpiods = devm_kcalloc(&pdev->dev, drv_data 1845 drivers/spi/spi-pxa2xx.c if (!drv_data->cs_gpiods) { drv_data 1862 drivers/spi/spi-pxa2xx.c drv_data->cs_gpiods[i] = gpiod; drv_data 1868 drivers/spi/spi-pxa2xx.c drv_data->gpiod_ready = devm_gpiod_get_optional(dev, drv_data 1870 drivers/spi/spi-pxa2xx.c if (IS_ERR(drv_data->gpiod_ready)) { drv_data 1871 drivers/spi/spi-pxa2xx.c status = PTR_ERR(drv_data->gpiod_ready); drv_data 1882 drivers/spi/spi-pxa2xx.c platform_set_drvdata(pdev, drv_data); drv_data 1898 drivers/spi/spi-pxa2xx.c pxa2xx_spi_dma_release(drv_data); drv_data 1899 drivers/spi/spi-pxa2xx.c free_irq(ssp->irq, drv_data); drv_data 1909 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = platform_get_drvdata(pdev); drv_data 1912 drivers/spi/spi-pxa2xx.c if (!drv_data) drv_data 1914 drivers/spi/spi-pxa2xx.c ssp = drv_data->ssp; drv_data 1918 drivers/spi/spi-pxa2xx.c spi_unregister_controller(drv_data->controller); drv_data 1921 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, 0); drv_data 1925 drivers/spi/spi-pxa2xx.c if (drv_data->controller_info->enable_dma) drv_data 1926 drivers/spi/spi-pxa2xx.c pxa2xx_spi_dma_release(drv_data); drv_data 1932 drivers/spi/spi-pxa2xx.c free_irq(ssp->irq, drv_data); drv_data 1943 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = dev_get_drvdata(dev); drv_data 1944 drivers/spi/spi-pxa2xx.c struct ssp_device *ssp = drv_data->ssp; drv_data 1947 drivers/spi/spi-pxa2xx.c status = spi_controller_suspend(drv_data->controller); drv_data 1950 drivers/spi/spi-pxa2xx.c pxa2xx_spi_write(drv_data, SSCR0, 0); drv_data 1960 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = dev_get_drvdata(dev); drv_data 1961 drivers/spi/spi-pxa2xx.c struct ssp_device *ssp = drv_data->ssp; drv_data 1972 drivers/spi/spi-pxa2xx.c return spi_controller_resume(drv_data->controller); drv_data 1979 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = dev_get_drvdata(dev); drv_data 1981 drivers/spi/spi-pxa2xx.c clk_disable_unprepare(drv_data->ssp->clk); drv_data 1987 drivers/spi/spi-pxa2xx.c struct driver_data *drv_data = dev_get_drvdata(dev); drv_data 1990 drivers/spi/spi-pxa2xx.c status = clk_prepare_enable(drv_data->ssp->clk); drv_data 55 drivers/spi/spi-pxa2xx.h int (*write)(struct driver_data *drv_data); drv_data 56 drivers/spi/spi-pxa2xx.h int (*read)(struct driver_data *drv_data); drv_data 57 drivers/spi/spi-pxa2xx.h irqreturn_t (*transfer_handler)(struct driver_data *drv_data); drv_data 85 drivers/spi/spi-pxa2xx.h int (*write)(struct driver_data *drv_data); drv_data 86 drivers/spi/spi-pxa2xx.h int (*read)(struct driver_data *drv_data); drv_data 90 drivers/spi/spi-pxa2xx.h static inline u32 pxa2xx_spi_read(const struct driver_data *drv_data, drv_data 93 drivers/spi/spi-pxa2xx.h return __raw_readl(drv_data->ioaddr + reg); drv_data 96 drivers/spi/spi-pxa2xx.h static inline void pxa2xx_spi_write(const struct driver_data *drv_data, drv_data 99 drivers/spi/spi-pxa2xx.h __raw_writel(val, drv_data->ioaddr + reg); drv_data 104 drivers/spi/spi-pxa2xx.h static inline int pxa25x_ssp_comp(struct driver_data *drv_data) drv_data 106 drivers/spi/spi-pxa2xx.h switch (drv_data->ssp_type) { drv_data 116 drivers/spi/spi-pxa2xx.h static inline void write_SSSR_CS(struct driver_data *drv_data, u32 val) drv_data 118 drivers/spi/spi-pxa2xx.h if (drv_data->ssp_type == CE4100_SSP || drv_data 119 drivers/spi/spi-pxa2xx.h drv_data->ssp_type == QUARK_X1000_SSP) drv_data 120 drivers/spi/spi-pxa2xx.h val |= pxa2xx_spi_read(drv_data, SSSR) & SSSR_ALT_FRM_MASK; drv_data 122 drivers/spi/spi-pxa2xx.h pxa2xx_spi_write(drv_data, SSSR, val); drv_data 125 drivers/spi/spi-pxa2xx.h extern int pxa2xx_spi_flush(struct driver_data *drv_data); drv_data 130 drivers/spi/spi-pxa2xx.h extern irqreturn_t pxa2xx_spi_dma_transfer(struct driver_data *drv_data); drv_data 131 drivers/spi/spi-pxa2xx.h extern int pxa2xx_spi_dma_prepare(struct driver_data *drv_data, drv_data 133 drivers/spi/spi-pxa2xx.h extern void pxa2xx_spi_dma_start(struct driver_data *drv_data); drv_data 134 drivers/spi/spi-pxa2xx.h extern void pxa2xx_spi_dma_stop(struct driver_data *drv_data); drv_data 135 drivers/spi/spi-pxa2xx.h extern int pxa2xx_spi_dma_setup(struct driver_data *drv_data); drv_data 136 drivers/spi/spi-pxa2xx.h extern void pxa2xx_spi_dma_release(struct driver_data *drv_data); drv_data 822 drivers/staging/greybus/power_supply.c cfg.drv_data = gbpsy; drv_data 728 drivers/thermal/samsung/exynos_tmu.c static int exynos_tmu_set_emulation(void *drv_data, int temp) drv_data 730 drivers/thermal/samsung/exynos_tmu.c struct exynos_tmu_data *data = drv_data; drv_data 750 drivers/thermal/samsung/exynos_tmu.c static int exynos_tmu_set_emulation(void *drv_data, int temp) drv_data 1892 drivers/tty/serial/samsung.c ourport->drv_data = s3c24xx_get_driver_data(pdev); drv_data 1893 drivers/tty/serial/samsung.c if (!ourport->drv_data) { drv_data 1899 drivers/tty/serial/samsung.c ourport->info = ourport->drv_data->info; drv_data 1902 drivers/tty/serial/samsung.c ourport->drv_data->def_cfg; drv_data 1908 drivers/tty/serial/samsung.c if (ourport->drv_data->fifosize[index]) drv_data 1909 drivers/tty/serial/samsung.c ourport->port.fifosize = ourport->drv_data->fifosize[index]; drv_data 91 drivers/tty/serial/samsung.h struct s3c24xx_serial_drv_data *drv_data; drv_data 4701 drivers/usb/typec/tcpm/tcpm.c psy_cfg.drv_data = port; drv_data 60 drivers/watchdog/menf21bmc_wdt.c struct menf21bmc_wdt *drv_data = watchdog_get_drvdata(wdt); drv_data 62 drivers/watchdog/menf21bmc_wdt.c return i2c_smbus_write_byte(drv_data->i2c_client, BMC_CMD_WD_ON); drv_data 67 drivers/watchdog/menf21bmc_wdt.c struct menf21bmc_wdt *drv_data = watchdog_get_drvdata(wdt); drv_data 69 drivers/watchdog/menf21bmc_wdt.c return i2c_smbus_write_byte_data(drv_data->i2c_client, drv_data 77 drivers/watchdog/menf21bmc_wdt.c struct menf21bmc_wdt *drv_data = watchdog_get_drvdata(wdt); drv_data 84 drivers/watchdog/menf21bmc_wdt.c ret = i2c_smbus_write_word_data(drv_data->i2c_client, drv_data 96 drivers/watchdog/menf21bmc_wdt.c struct menf21bmc_wdt *drv_data = watchdog_get_drvdata(wdt); drv_data 98 drivers/watchdog/menf21bmc_wdt.c return i2c_smbus_write_byte(drv_data->i2c_client, BMC_CMD_WD_TRIG); drv_data 118 drivers/watchdog/menf21bmc_wdt.c struct menf21bmc_wdt *drv_data; drv_data 121 drivers/watchdog/menf21bmc_wdt.c drv_data = devm_kzalloc(dev, sizeof(struct menf21bmc_wdt), GFP_KERNEL); drv_data 122 drivers/watchdog/menf21bmc_wdt.c if (!drv_data) drv_data 125 drivers/watchdog/menf21bmc_wdt.c drv_data->wdt.ops = &menf21bmc_wdt_ops; drv_data 126 drivers/watchdog/menf21bmc_wdt.c drv_data->wdt.info = &menf21bmc_wdt_info; drv_data 127 drivers/watchdog/menf21bmc_wdt.c drv_data->wdt.min_timeout = BMC_WD_TIMEOUT_MIN; drv_data 128 drivers/watchdog/menf21bmc_wdt.c drv_data->wdt.max_timeout = BMC_WD_TIMEOUT_MAX; drv_data 129 drivers/watchdog/menf21bmc_wdt.c drv_data->wdt.parent = dev; drv_data 130 drivers/watchdog/menf21bmc_wdt.c drv_data->i2c_client = i2c_client; drv_data 136 drivers/watchdog/menf21bmc_wdt.c bmc_timeout = i2c_smbus_read_word_data(drv_data->i2c_client, drv_data 143 drivers/watchdog/menf21bmc_wdt.c watchdog_init_timeout(&drv_data->wdt, bmc_timeout / 10, dev); drv_data 144 drivers/watchdog/menf21bmc_wdt.c watchdog_set_nowayout(&drv_data->wdt, nowayout); drv_data 145 drivers/watchdog/menf21bmc_wdt.c watchdog_set_drvdata(&drv_data->wdt, drv_data); drv_data 146 drivers/watchdog/menf21bmc_wdt.c platform_set_drvdata(pdev, drv_data); drv_data 148 drivers/watchdog/menf21bmc_wdt.c ret = menf21bmc_wdt_set_bootstatus(drv_data); drv_data 154 drivers/watchdog/menf21bmc_wdt.c ret = devm_watchdog_register_device(dev, &drv_data->wdt); drv_data 165 drivers/watchdog/menf21bmc_wdt.c struct menf21bmc_wdt *drv_data = platform_get_drvdata(pdev); drv_data 167 drivers/watchdog/menf21bmc_wdt.c i2c_smbus_write_word_data(drv_data->i2c_client, drv_data 120 drivers/watchdog/s3c2410_wdt.c const struct s3c2410_wdt_variant *drv_data; drv_data 206 drivers/watchdog/s3c2410_wdt.c u32 mask_val = 1 << wdt->drv_data->mask_bit; drv_data 210 drivers/watchdog/s3c2410_wdt.c if (!(wdt->drv_data->quirks & QUIRK_HAS_PMU_CONFIG)) drv_data 217 drivers/watchdog/s3c2410_wdt.c wdt->drv_data->disable_reg, drv_data 223 drivers/watchdog/s3c2410_wdt.c wdt->drv_data->mask_reset_reg, drv_data 407 drivers/watchdog/s3c2410_wdt.c if (wdt->drv_data->quirks & QUIRK_HAS_WTCLRINT_REG) drv_data 485 drivers/watchdog/s3c2410_wdt.c if (!(wdt->drv_data->quirks & QUIRK_HAS_RST_STAT)) drv_data 488 drivers/watchdog/s3c2410_wdt.c ret = regmap_read(wdt->pmureg, wdt->drv_data->rst_stat_reg, &rst_stat); drv_data 491 drivers/watchdog/s3c2410_wdt.c else if (rst_stat & BIT(wdt->drv_data->rst_stat_bit)) drv_data 529 drivers/watchdog/s3c2410_wdt.c wdt->drv_data = s3c2410_get_wdt_drv_data(pdev); drv_data 530 drivers/watchdog/s3c2410_wdt.c if (wdt->drv_data->quirks & QUIRKS_HAVE_PMUREG) { drv_data 39 include/linux/pinctrl/pinctrl.h void *drv_data; drv_data 213 include/linux/power_supply.h void *drv_data; drv_data 274 include/linux/power_supply.h void *drv_data; drv_data 3244 include/net/cfg80211.h void *drv_data; drv_data 456 include/net/nfc/nci_core.h void *drv_data; drv_data 17 include/sound/hdaudio_ext.h #define HDA_CODEC_REV_EXT_ENTRY(_vid, _rev, _name, drv_data) \ drv_data 20 include/sound/hdaudio_ext.h .driver_data = (unsigned long)(drv_data) } drv_data 143 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_drv_data *drv_data; drv_data 1389 sound/soc/codecs/hdac_hdmi.c unsigned int vendor_nid = hdmi->drv_data->vendor_nid; drv_data 1407 sound/soc/codecs/hdac_hdmi.c unsigned int vendor_nid = hdmi->drv_data->vendor_nid; drv_data 1571 sound/soc/codecs/hdac_hdmi.c const int *map = hdmi->drv_data->port_map; drv_data 1574 sound/soc/codecs/hdac_hdmi.c if (!hdmi->drv_data->port_num) drv_data 1581 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < hdmi->drv_data->port_num; i++) { drv_data 1601 sound/soc/codecs/hdac_hdmi.c if (!hdmi->drv_data->port_num) { drv_data 1604 sound/soc/codecs/hdac_hdmi.c } else if (port < hdmi->drv_data->port_num) { drv_data 1606 sound/soc/codecs/hdac_hdmi.c pin_nid = hdmi->drv_data->port_map[port - 1]; drv_data 2076 sound/soc/codecs/hdac_hdmi.c hdmi_priv->drv_data = drv_data 2079 sound/soc/codecs/hdac_hdmi.c hdmi_priv->drv_data = &intel_drv_data;